File "product-tour.js"

Full Path: /home/warrior1/public_html/wp-content-20241001222009/plugins/woocommerce/assets/client/admin/wp-admin-scripts/product-tour.js
File size: 39.07 KB
MIME-type: text/plain
Charset: utf-8

(()=>{var e={2864:(e,t,r)=>{"use strict";var o=r(49556),n=r(25592),i=n(o("String.prototype.indexOf"));e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n(r):r}},25592:(e,t,r)=>{"use strict";var o=r(22698),n=r(49556),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||o.call(a,i),p=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=c(o,a,arguments);if(p&&l){var r=p(t,"length");r.configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var s=function(){return c(o,i,arguments)};l?l(e.exports,"apply",{value:s}):e.exports.apply=s},59748:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString,n="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||o.call(i)!==n)throw new TypeError(t+i);for(var a,c=r.call(arguments,1),p=function(){if(this instanceof a){var t=i.apply(this,c.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,c.concat(r.call(arguments)))},l=Math.max(0,i.length-c.length),u=[],s=0;s<l;s++)u.push("$"+s);if(a=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(p),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},22698:(e,t,r)=>{"use strict";var o=r(59748);e.exports=Function.prototype.bind||o},49556:(e,t,r)=>{"use strict";var o,n=SyntaxError,i=Function,a=TypeError,c=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var l=function(){throw new a},u=p?function(){try{return l}catch(e){try{return p(arguments,"callee").get}catch(e){return l}}}():l,s=r(71732)(),f=Object.getPrototypeOf||function(e){return e.__proto__},y={},d="undefined"==typeof Uint8Array?o:f(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":s?f([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?f(f([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?f((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?f((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s?f(""[Symbol.iterator]()):o,"%Symbol%":s?Symbol:o,"%SyntaxError%":n,"%ThrowTypeError%":u,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=c("async function () {}");else if("%GeneratorFunction%"===t)r=c("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=c("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&(r=f(n.prototype))}return m[t]=r,r},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(22698),v=r(22786),S=b.call(Function.call,Array.prototype.concat),w=b.call(Function.apply,Array.prototype.splice),A=b.call(Function.call,String.prototype.replace),j=b.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,P=function(e){var t=j(e,0,1),r=j(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return A(e,E,(function(e,t,r,n){o[o.length]=r?A(n,O,"$1"):t||e})),o},x=function(e,t){var r,o=e;if(v(h,o)&&(o="%"+(r=h[o])[0]+"%"),v(m,o)){var i=m[o];if(i===y&&(i=g(o)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new n("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=P(e),o=r.length>0?r[0]:"",i=x("%"+o+"%",t),c=i.name,l=i.value,u=!1,s=i.alias;s&&(o=s[0],w(r,S([0,1],s)));for(var f=1,y=!0;f<r.length;f+=1){var d=r[f],g=j(d,0,1),h=j(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===h||"'"===h||"`"===h)&&g!==h)throw new n("property names with quotes must have matching quotes");if("constructor"!==d&&y||(u=!0),v(m,c="%"+(o+="."+d)+"%"))l=m[c];else if(null!=l){if(!(d in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&f+1>=r.length){var b=p(l,d);l=(y=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:l[d]}else y=v(l,d),l=l[d];y&&!u&&(m[c]=l)}}return l}},71732:(e,t,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(76849);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},76849:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},22786:(e,t,r)=>{"use strict";var o=r(22698);e.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},38419:(e,t,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,p=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=c&&p&&"function"==typeof p.get?p.get:null,u=c&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,h=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,S=String.prototype.toUpperCase,w=String.prototype.toLowerCase,A=RegExp.prototype.test,j=Array.prototype.concat,E=Array.prototype.join,O=Array.prototype.slice,P=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,F="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-P(-e):P(e);if(o!==e){var n=String(o),i=b.call(t,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var T=r(31780).custom,D=T&&W(T)?T:null;function L(e,t,r){var o="double"===(r.quoteStyle||t)?'"':"'";return o+e+o}function U(e){return v.call(String(e),/"/g,"&quot;")}function C(e){return!("[object Array]"!==H(e)||F&&"object"==typeof e&&F in e)}function W(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,n){var c=r||{};if(q(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=!q(c,"customInspect")||c.customInspect;if("boolean"!=typeof p&&"symbol"!==p)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return m?M(t,S):S}if("bigint"==typeof t){var A=String(t)+"n";return m?M(t,A):A}var P=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=P&&P>0&&"object"==typeof t)return C(t)?"[Array]":"[Object]";var k,T=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}(c,o);if(void 0===n)n=[];else if($(n,t)>=0)return"[Circular]";function B(t,r,i){if(r&&(n=O.call(n)).push(r),i){var a={depth:c.depth};return q(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),e(t,a,o+1,n)}return e(t,c,o+1,n)}if("function"==typeof t){var z=function(e){if(e.name)return e.name;var t=h.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Y=X(t,B);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(Y.length>0?" { "+E.call(Y,", ")+" }":"")}if(W(t)){var Z=I?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||I?Z:V(Z)}if((k=t)&&"object"==typeof k&&("undefined"!=typeof HTMLElement&&k instanceof HTMLElement||"string"==typeof k.nodeName&&"function"==typeof k.getAttribute)){for(var ee="<"+w.call(String(t.nodeName)),te=t.attributes||[],re=0;re<te.length;re++)ee+=" "+te[re].name+"="+L(U(te[re].value),"double",c);return ee+=">",t.childNodes&&t.childNodes.length&&(ee+="..."),ee+"</"+w.call(String(t.nodeName))+">"}if(C(t)){if(0===t.length)return"[]";var oe=X(t,B);return T&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(oe)?"["+K(oe,T)+"]":"[ "+E.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||F&&"object"==typeof e&&F in e)}(t)){var ne=X(t,B);return"cause"in t&&!N.call(t,"cause")?"{ ["+String(t)+"] "+E.call(j.call("[cause]: "+B(t.cause),ne),", ")+" }":0===ne.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ne,", ")+" }"}if("object"==typeof t&&p){if(D&&"function"==typeof t[D])return t[D]();if("symbol"!==p&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ie=[];return a.call(t,(function(e,r){ie.push(B(r,t,!0)+" => "+B(e,t))})),J("Map",i.call(t),ie,T)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return u.call(t,(function(e){ae.push(B(e,t))})),J("Set",l.call(t),ae,T)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==H(e)||F&&"object"==typeof e&&F in e)}(t))return V(B(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return V(B(x.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||F&&"object"==typeof e&&F in e)}(t))return V(d.call(t));if(function(e){return!("[object String]"!==H(e)||F&&"object"==typeof e&&F in e)}(t))return V(B(String(t)));if(!function(e){return!("[object Date]"!==H(e)||F&&"object"==typeof e&&F in e)}(t)&&!function(e){return!("[object RegExp]"!==H(e)||F&&"object"==typeof e&&F in e)}(t)){var ce=X(t,B),pe=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",ue=!pe&&F&&Object(t)===t&&F in t?b.call(H(t),8,-1):le?"Object":"",se=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ue||le?"["+E.call(j.call([],ue||[],le||[]),": ")+"] ":"");return 0===ce.length?se+"{}":T?se+"{"+K(ce,T)+"}":se+"{ "+E.call(ce,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return B.call(e,t)}function H(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return G(b.call(e,0,t.maxStringLength),t)+o}return L(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,z),"single",t)}function z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function V(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function J(e,t,r,o){return e+" ("+t+") {"+(o?K(r,o):E.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=C(e),o=[];if(r){o.length=e.length;for(var n=0;n<e.length;n++)o[n]=q(e,n)?t(e[n],e):""}var i,a="function"==typeof k?k(e):[];if(I){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var p in e)q(e,p)&&(r&&String(Number(p))===p&&p<e.length||I&&i["$"+p]instanceof Symbol||(A.call(/[^\w$]/,p)?o.push(t(p,e)+": "+t(e[p],e)):o.push(p+": "+t(e[p],e))));if("function"==typeof k)for(var l=0;l<a.length;l++)N.call(e,a[l])&&o.push("["+t(a[l])+"]: "+t(e[a[l]],e));return o}},38243:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},79119:(e,t,r)=>{"use strict";var o=r(67576),n=r(93649),i=r(38243);e.exports={formats:i,parse:n,stringify:o}},93649:(e,t,r)=>{"use strict";var o=r(7173),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},p=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=c?i.slice(0,c.index):i,u=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var s=0;r.depth>0&&null!==(c=a.exec(i))&&s<r.depth;){if(s+=1,!r.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+i.slice(c.index)+"]"),function(e,t,r,o){for(var n=o?t:p(t,r),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&c!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[])[u]=n:"__proto__"!==l&&(a[l]=n):a={0:n}}n=a}return n}(u,t,r,o)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,s),y=-1,d=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),y=r,r=f.length);for(r=0;r<f.length;++r)if(r!==y){var m,g,h=f[r],b=h.indexOf("]="),v=-1===b?h.indexOf("="):b+1;-1===v?(m=t.decoder(h,a.decoder,d,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(h.slice(0,v),a.decoder,d,"key"),g=o.maybeMap(p(h.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,d,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===d&&(g=c(g)),h.indexOf("[]=")>-1&&(g=i(g)?[g]:g),n.call(l,m)?l[m]=o.combine(l[m],g):l[m]=g}return l}(e,r):e,s=r.plainObjects?Object.create(null):{},f=Object.keys(u),y=0;y<f.length;++y){var d=f[y],m=l(d,u[d],r,"string"==typeof e);s=o.merge(s,m,r)}return!0===r.allowSparse?s:o.compact(s)}},67576:(e,t,r)=>{"use strict";var o=r(44852),n=r(7173),i=r(38243),a=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},p=Array.isArray,l=String.prototype.split,u=Array.prototype.push,s=function(e,t){u.apply(e,p(t)?t:[t])},f=Date.prototype.toISOString,y=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:y,formatter:i.formatters[y],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},m={},g=function e(t,r,i,a,c,u,f,y,g,h,b,v,S,w,A){for(var j,E=t,O=A,P=0,x=!1;void 0!==(O=O.get(m))&&!x;){var k=O.get(t);if(P+=1,void 0!==k){if(k===P)throw new RangeError("Cyclic object value");x=!0}void 0===O.get(m)&&(P=0)}if("function"==typeof f?E=f(r,E):E instanceof Date?E=h(E):"comma"===i&&p(E)&&(E=n.maybeMap(E,(function(e){return e instanceof Date?h(e):e}))),null===E){if(a)return u&&!S?u(r,d.encoder,w,"key",b):r;E=""}if("string"==typeof(j=E)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||n.isBuffer(E)){if(u){var _=S?r:u(r,d.encoder,w,"key",b);if("comma"===i&&S){for(var I=l.call(String(E),","),F="",N=0;N<I.length;++N)F+=(0===N?"":",")+v(u(I[N],d.encoder,w,"value",b));return[v(_)+"="+F]}return[v(_)+"="+v(u(E,d.encoder,w,"value",b))]}return[v(r)+"="+v(String(E))]}var R,M=[];if(void 0===E)return M;if("comma"===i&&p(E))R=[{value:E.length>0?E.join(",")||null:void 0}];else if(p(f))R=f;else{var T=Object.keys(E);R=y?T.sort(y):T}for(var D=0;D<R.length;++D){var L=R[D],U="object"==typeof L&&void 0!==L.value?L.value:E[L];if(!c||null!==U){var C=p(E)?"function"==typeof i?i(r,L):r:r+(g?"."+L:"["+L+"]");A.set(t,P);var W=o();W.set(m,A),s(M,e(U,C,i,a,c,u,f,y,g,h,b,v,S,w,W))}}return M};e.exports=function(e,t){var r,n=e,l=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var o=i.formatters[r],n=d.filter;return("function"==typeof e.filter||p(e.filter))&&(n=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof l.filter?n=(0,l.filter)("",n):p(l.filter)&&(r=l.filter);var u,f=[];if("object"!=typeof n||null===n)return"";u=t&&t.arrayFormat in c?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var y=c[u];r||(r=Object.keys(n)),l.sort&&r.sort(l.sort);for(var m=o(),h=0;h<r.length;++h){var b=r[h];l.skipNulls&&null===n[b]||s(f,g(n[b],b,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var v=f.join(l.delimiter),S=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),v.length>0?S+v:""}},7173:(e,t,r)=>{"use strict";var o=r(38243),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],a=n.obj[n.prop],c=Object.keys(a),p=0;p<c.length;++p){var l=c[p],u=a[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var p="",l=0;l<c.length;++l){var u=c.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===o.RFC1738&&(40===u||41===u)?p+=c.charAt(l):u<128?p+=a[u]:u<2048?p+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?p+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&c.charCodeAt(l)),p+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return p},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=c(t,o)),i(t)&&i(r)?(r.forEach((function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),a)}}},44852:(e,t,r)=>{"use strict";var o=r(49556),n=r(2864),i=r(38419),a=o("%TypeError%"),c=o("%WeakMap%",!0),p=o("%Map%",!0),l=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),y=n("Map.prototype.set",!0),d=n("Map.prototype.has",!0),m=function(e,t){for(var r,o=e;null!==(r=o.next);o=r)if(r.key===t)return o.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+i(e))},get:function(o){if(c&&o&&("object"==typeof o||"function"==typeof o)){if(e)return l(e,o)}else if(p){if(t)return f(t,o)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,o)},has:function(o){if(c&&o&&("object"==typeof o||"function"==typeof o)){if(e)return s(e,o)}else if(p){if(t)return d(t,o)}else if(r)return function(e,t){return!!m(e,t)}(r,o);return!1},set:function(o,n){c&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new c),u(e,o,n)):p?(t||(t=new p),y(t,o,n)):(r||(r={key:{},next:null}),function(e,t,r){var o=m(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}}(r,o,n))}};return o}},31780:()=>{}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o);const e=window.wp.element,t=window.wp.i18n,n=window.wc.components,i=window.wc.tracks;var a=r(79119),c=r.n(a);const p=t=>{let{iframeSelector:r,isActive:o}=t;return(0,e.useEffect)((()=>{if(!o)return;const e=(e=>{let{iframeSelector:t,childSelector:r,className:o}=e;const n=document.querySelector(t),i=n?.contentDocument||n?.contentWindow&&n?.contentWindow.document;if(i){const e=()=>n?.classList.add(o),t=()=>n?.classList.remove(o),a=i.querySelector(r);return a?.addEventListener("focus",e),a?.addEventListener("blur",t),()=>{a?.removeEventListener("focus",e),a?.removeEventListener("blur",t)}}return()=>({})})({iframeSelector:`${r}`,childSelector:"#tinymce",className:"focus-within"});return()=>{e()}}),[o,r]),{style:o?`\n\t\t\t\t${r}.focus-within {\n\t\t\t\t\tborder: 1.5px solid #007CBA;\n\t\t\t\t}\n\t\t\t\t`:null}},l=t=>{let{editorWrapSelector:r}=t;const o=(0,e.useRef)(document.querySelector(r));o||console.warn(`Editor Wrap ${r} not found`);const[n,i]=(0,e.useState)(o.current&&o.current.classList.contains("html-active")?"html":"tmce");return(0,e.useEffect)((()=>{const e=e=>{e.target&&i(e.target.classList.contains("switch-html")?"html":"tmce")},t=document.querySelector(`${r} .switch-tmce`);t?.addEventListener("click",e);const o=document.querySelector(`${r} .switch-html`);return o?.addEventListener("click",e),()=>{t?.removeEventListener("click",e),o?.removeEventListener("click",e)}}),[r]),{activeEditor:n,isTmce:"tmce"===n,isHtml:"html"===n}},u=e=>document.querySelector(e).value,s=e=>{const t=document.querySelector(e)?.contentWindow?.document.querySelector("#tinymce");return t?.innerHTML||""},f=e=>document.querySelector(e)?.value||"",y=e=>e?s("#content_ifr"):f("#wp-content-editor-container > .wp-editor-area"),d=e=>e?s("#excerpt_ifr"):f("#wp-excerpt-editor-container > .wp-editor-area"),m=document.createElement("div");m.setAttribute("id","product-tour-root"),(0,e.render)((0,e.createElement)((()=>{const[r,o]=(0,e.useState)(!1),{setIsLoaded:a,hasUpdatedInfo:s}=(()=>{const{isTmce:t}=l({editorWrapSelector:"#wp-content-wrap"}),{isTmce:r}=l({editorWrapSelector:"#wp-excerpt-wrap"}),[o,n]=(0,e.useState)({}),[i,a]=(0,e.useState)(!1),c=(0,e.useCallback)((()=>({"product-name":u("#title"),"product-description":y(t),"product-data":u("#_regular_price"),"product-short-description":d(r),"product-image":document.querySelector("#set-post-thumbnail img")?.src||"","product-tags":Array.from(document.querySelectorAll("#product_tag li")).map((e=>e.lastChild.textContent)).join(","),"product-categories":Array.from(document.querySelectorAll("#product_cat-all #product_catchecklist input")).map((e=>e.checked)).join(",")})),[t,r]),p=(0,e.useCallback)((e=>{const t=c();return o[e]!==t[e]&&""!==t[e]}),[c,o]);return(0,e.useEffect)((()=>{i&&n(c())}),[n,i,c]),{setIsLoaded:a,hasUpdatedInfo:p}})(),{isTmce:f}=l({editorWrapSelector:"#wp-content-wrap"}),{isTmce:m}=l({editorWrapSelector:"#wp-excerpt-wrap"}),{style:g}=p({isActive:r&&f,iframeSelector:"#content_ifr"}),{style:h}=p({isActive:r&&m,iframeSelector:"#excerpt_ifr"}),b=(e=>{let{isExcerptEditorTmceActive:r,isContentEditorTmceActive:o,closeHandler:n,onNextStepHandler:i}=e;return{placement:"bottom-start",options:{effects:{spotlight:{interactivity:{enabled:!0,rootElementSelector:"#wpwrap"}},arrowIndicator:!0,autoScroll:{behavior:"auto",block:"center"},liveResize:{mutation:!0,resize:!0,rootElementSelector:"#wpwrap"}},popperModifiers:[{name:"arrow",options:{padding:e=>{let{popper:t}=e;return{right:t.width-34}}}}],callbacks:{onNextStep:i}},steps:[{referenceElements:{desktop:"#title"},focusElement:{desktop:"#title"},meta:{name:"product-name",heading:(0,t.__)("Product name","woocommerce"),descriptions:{desktop:(0,t.__)("Start typing your new product name here. This will be what your customers will see in your store.","woocommerce")}}},{referenceElements:{desktop:"#postdivrich"},focusElement:{iframe:o?"#content_ifr":void 0,desktop:o?"#tinymce":"#wp-content-editor-container > .wp-editor-area"},meta:{name:"product-description",heading:(0,t.__)("Add your product description","woocommerce"),descriptions:{desktop:(0,t.__)("Start typing your new product name here. Add your full product description here. Describe your product in detail.","woocommerce")}}},{referenceElements:{desktop:"#woocommerce-product-data"},focusElement:{desktop:"#_regular_price"},meta:{name:"product-data",heading:(0,t.__)("Add your product data","woocommerce"),descriptions:{desktop:(0,t.__)("Use the tabs to switch between sections and insert product details. Start by adding your product price.","woocommerce")}}},{referenceElements:{desktop:"#postexcerpt"},focusElement:{iframe:r?"#excerpt_ifr":void 0,desktop:r?"#tinymce":"#wp-excerpt-editor-container > .wp-editor-area"},meta:{name:"product-short-description",heading:(0,t.__)("Add your short product description","woocommerce"),descriptions:{desktop:(0,t.__)("Type a quick summary for your product here. This will appear on the product page right under the product name.","woocommerce")}}},{referenceElements:{desktop:"#postimagediv"},focusElement:{desktop:"#set-post-thumbnail"},meta:{name:"product-image",heading:(0,t.__)("Add your product image","woocommerce"),descriptions:{desktop:(0,t.__)("Upload an image to your product here. Ideally a JPEG or PNG about 600 px wide or bigger. This image will be shown in your store’s catalog.","woocommerce")}}},{referenceElements:{desktop:"#tagsdiv-product_tag"},focusElement:{desktop:"#new-tag-product_tag"},meta:{name:"product-tags",heading:(0,t.__)("Add your product tags","woocommerce"),descriptions:{desktop:(0,t.__)("Add your product tags here. Tags are a method of labeling your products to make them easier for customers to find. For example, if you sell clothing, and you have a lot of cat prints, you could make a tag for “cat.”","woocommerce")}}},{referenceElements:{desktop:"#product_catdiv"},meta:{name:"product-categories",heading:(0,t.__)("Add your product categories","woocommerce"),descriptions:{desktop:(0,t.__)("Add your product categories here. Assign categories to your products to make them easier to browse through and find in your store.","woocommerce")}}},{referenceElements:{desktop:"#submitdiv"},focusElement:{desktop:"#submitdiv"},meta:{name:"publish",heading:(0,t.__)("Publish your product 🎉","woocommerce"),descriptions:{desktop:(0,t.__)("Good work! Now you can publish your product to your store by hitting the “Publish” button or keep editing it.","woocommerce")},primaryButton:{text:(0,t.__)("Keep editing","woocommerce")}}}],closeHandler:n}})({isContentEditorTmceActive:f,isExcerptEditorTmceActive:m,closeHandler:(e,t)=>{o(!1),e.length-1===t?(0,i.recordEvent)("walkthrough_product_completed"):(0,i.recordEvent)("walkthrough_product_dismissed",{step_name:e[t].meta.name})},onNextStepHandler:e=>{const t=b.steps[e].meta.name;(0,i.recordEvent)("walkthrough_product_step_completed",{step_name:t,added_info:s(t)?"yes":"no"})}});return(0,e.useEffect)((()=>{(e=>{const t=Array.from(window.document.querySelectorAll(".page-title-action")).find((e=>"Enable guided mode"===e.textContent));t&&t.addEventListener("click",(e=>{e.preventDefault(),o(!0),(0,i.recordEvent)("walkthrough_product_enable_button_click")}))})();const e=c().parse(window.location.search.slice(1));if(e&&"true"===e.tutorial){const e=((e,t,r)=>{const n=document.querySelector(e);let c=n?.getBoundingClientRect().top;const p=setInterval((()=>{const e=n?.getBoundingClientRect().top;c===e&&(o(!0),(0,i.recordEvent)("walkthrough_product_view",{spotlight:"yes",product_template:"physical"}),a(!0),clearInterval(p)),c=e}),500);return p})(b.steps[0].referenceElements?.desktop||"");return()=>clearInterval(e)}}),[]),(t=>{const r=(0,e.useRef)((()=>{}));(0,e.useEffect)((()=>(t?r.current=(e=>{const t=window.document.querySelector("#publish");return t&&t.addEventListener("click",e),function(){t?.removeEventListener("click",e)}})((()=>{(0,i.recordEvent)("walkthrough_product_completed")})):(r.current(),r.current=()=>{}),function(){r.current()})),[t])})(r),r?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("style",null,g,h,".wp-editor-area:focus {\n\t\t\t\t\t\tborder: 1.5px solid #007CBA;\n\t\t\t\t\t}"),(0,e.createElement)(n.TourKit,{config:b})):null}),null),document.body.appendChild(m))})(),(window.wc=window.wc||{}).productTour=o})();