File "index.js"

Full Path: /home/vantageo/public_html/cache/.wp-cli/wp-content/plugins/woocommerce/packages/woocommerce-admin/dist/navigation/index.js
File size: 28.57 KB
MIME-type: text/plain
Charset: utf-8

this.wc=this.wc||{},this.wc.navigation=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=601)}({0:function(e,t){e.exports=window.wp.element},101:function(e,t){e.exports=window.wp.hooks},104:function(e,t,r){"use strict";var n=r(192),o=r(193),i=r(114);e.exports={formats:i,parse:o,stringify:n}},114:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},136:function(e,t,r){"use strict";var n=r(114),o=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):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);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=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],c=Object.keys(a),u=0;u<c.length;++u){var l=c[u],s=a[l];"object"==typeof s&&null!==s&&-1===r.indexOf(s)&&(t.push({obj:a,prop:l}),r.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,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 u="",l=0;l<c.length;++l){var s=c.charCodeAt(l);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||i===n.RFC1738&&(40===s||41===s)?u+=c.charAt(l):s<128?u+=a[s]:s<2048?u+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?u+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(l+=1,s=65536+((1023&s)<<10|1023&c.charCodeAt(l)),u+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return u},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=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.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,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},139:function(e,t,r){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},143:function(e,t,r){var n=r(87);e.exports=function(e){if(Array.isArray(e))return n(e)}},144:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},145:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},173:function(e,t,r){"use strict";r.d(t,"a",(function(){return w})),r.d(t,"c",(function(){return j})),r.d(t,"b",(function(){return h})),r.d(t,"e",(function(){return y})),r.d(t,"d",(function(){return d}));var n=r(72);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var r=t,n=r+1,o=e.length;n<o;r+=1,n+=1)e[r]=e[n];e.pop()}var a=function(e,t){void 0===t&&(t="");var r,n=e&&e.split("/")||[],a=t&&t.split("/")||[],c=e&&o(e),u=t&&o(t),l=c||u;if(e&&o(e)?a=n:n.length&&(a.pop(),a=a.concat(n)),!a.length)return"/";if(a.length){var s=a[a.length-1];r="."===s||".."===s||""===s}else r=!1;for(var f=0,p=a.length;p>=0;p--){var d=a[p];"."===d?i(a,p):".."===d?(i(a,p),f++):f&&(i(a,p),f--)}if(!l)for(;f--;f)a.unshift("..");!l||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return r&&"/"!==h.substr(-1)&&(h+="/"),h};function c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}));if("object"==typeof t||"object"==typeof r){var n=c(t),o=c(r);return n!==t||o!==r?e(n,o):Object.keys(Object.assign({},t,r)).every((function(n){return e(t[n],r[n])}))}return!1},l=r(139);function s(e){return"/"===e.charAt(0)?e:"/"+e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&"?"!==r&&(o+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o}function h(e,t,r,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e)).state=t:(void 0===(i=Object(n.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return r&&(i.key=r),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,o){if(null!=e){var i="function"==typeof e?e(t,r):e;"string"==typeof i?"function"==typeof n?n(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.forEach((function(e){return e.apply(void 0,r)}))}}}var m=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}function b(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),m||Object(l.a)(!1);var t,r=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,c=a.forceRefresh,u=void 0!==c&&c,y=a.getUserConfirmation,w=void 0===y?g:y,O=a.keyLength,j=void 0===O?6:O,P=e.basename?p(s(e.basename)):"";function x(e){var t=e||{},r=t.key,n=t.state,o=window.location,i=o.pathname+o.search+o.hash;return P&&(i=f(i,P)),h(i,n,r)}function S(){return Math.random().toString(36).substr(2,j)}var E=v();function k(e){Object(n.a)(_,e),_.length=r.length,E.notifyListeners(_.location,_.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(x(e.state))}function L(){N(x(b()))}var D=!1;function N(e){if(D)D=!1,k();else{E.confirmTransitionTo(e,"POP",w,(function(t){t?k({action:"POP",location:e}):function(e){var t=_.location,r=F.indexOf(t.key);-1===r&&(r=0);var n=F.indexOf(e.key);-1===n&&(n=0);var o=r-n;o&&(D=!0,H(o))}(e)}))}}var C=x(b()),F=[C.key];function T(e){return P+d(e)}function H(e){r.go(e)}var I=0;function Q(e){1===(I+=e)&&1===e?(window.addEventListener("popstate",A),i&&window.addEventListener("hashchange",L)):0===I&&(window.removeEventListener("popstate",A),i&&window.removeEventListener("hashchange",L))}var R=!1;var _={length:r.length,action:"POP",location:C,createHref:T,push:function(e,t){var n=h(e,t,S(),_.location);E.confirmTransitionTo(n,"PUSH",w,(function(e){if(e){var t=T(n),i=n.key,a=n.state;if(o)if(r.pushState({key:i,state:a},null,t),u)window.location.href=t;else{var c=F.indexOf(_.location.key),l=F.slice(0,c+1);l.push(n.key),F=l,k({action:"PUSH",location:n})}else window.location.href=t}}))},replace:function(e,t){var n=h(e,t,S(),_.location);E.confirmTransitionTo(n,"REPLACE",w,(function(e){if(e){var t=T(n),i=n.key,a=n.state;if(o)if(r.replaceState({key:i,state:a},null,t),u)window.location.replace(t);else{var c=F.indexOf(_.location.key);-1!==c&&(F[c]=n.key),k({action:"REPLACE",location:n})}else window.location.replace(t)}}))},go:H,goBack:function(){H(-1)},goForward:function(){H(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return R||(Q(1),R=!0),function(){return R&&(R=!1,Q(-1)),t()}},listen:function(e){var t=E.appendListener(e);return Q(1),function(){Q(-1),t()}}};return _}function O(e,t,r){return Math.min(Math.max(e,t),r)}function j(e){void 0===e&&(e={});var t=e,r=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,c=void 0===a?0:a,u=t.keyLength,l=void 0===u?6:u,s=v();function f(e){Object(n.a)(w,e),w.length=w.entries.length,s.notifyListeners(w.location,w.action)}function p(){return Math.random().toString(36).substr(2,l)}var y=O(c,0,i.length-1),m=i.map((function(e){return h(e,void 0,"string"==typeof e?p():e.key||p())})),g=d;function b(e){var t=O(w.index+e,0,w.entries.length-1),n=w.entries[t];s.confirmTransitionTo(n,"POP",r,(function(e){e?f({action:"POP",location:n,index:t}):f()}))}var w={length:m.length,action:"POP",location:m[y],index:y,entries:m,createHref:g,push:function(e,t){var n=h(e,t,p(),w.location);s.confirmTransitionTo(n,"PUSH",r,(function(e){if(e){var t=w.index+1,r=w.entries.slice(0);r.length>t?r.splice(t,r.length-t,n):r.push(n),f({action:"PUSH",location:n,index:t,entries:r})}}))},replace:function(e,t){var n=h(e,t,p(),w.location);s.confirmTransitionTo(n,"REPLACE",r,(function(e){e&&(w.entries[w.index]=n,f({action:"REPLACE",location:n}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),s.setPrompt(e)},listen:function(e){return s.appendListener(e)}};return w}},192:function(e,t,r){"use strict";var n=r(136),o=r(114),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},s=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,r,o,i,a,u,s,f,d,h,y,v,m,g){var b,w=t;if("function"==typeof s?w=s(r,w):w instanceof Date?w=h(w):"comma"===o&&c(w)&&(w=n.maybeMap(w,(function(e){return e instanceof Date?h(e):e}))),null===w){if(i)return u&&!m?u(r,p.encoder,g,"key",y):r;w=""}if("string"==typeof(b=w)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||n.isBuffer(w))return u?[v(m?r:u(r,p.encoder,g,"key",y))+"="+v(u(w,p.encoder,g,"value",y))]:[v(r)+"="+v(String(w))];var O,j=[];if(void 0===w)return j;if("comma"===o&&c(w))O=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(s))O=s;else{var P=Object.keys(w);O=f?P.sort(f):P}for(var x=0;x<O.length;++x){var S=O[x],E="object"==typeof S&&void 0!==S.value?S.value:w[S];if(!a||null!==E){var k=c(w)?"function"==typeof o?o(r,S):r:r+(d?"."+S:"["+S+"]");l(j,e(E,k,o,i,a,u,s,f,d,h,y,v,m,g))}}return j};e.exports=function(e,t){var r,n=e,u=function(e){if(!e)return p;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||p.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=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=p.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?n=(0,u.filter)("",n):c(u.filter)&&(r=u.filter);var s,f=[];if("object"!=typeof n||null===n)return"";s=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=a[s];r||(r=Object.keys(n)),u.sort&&r.sort(u.sort);for(var y=0;y<r.length;++y){var v=r[y];u.skipNulls&&null===n[v]||l(f,d(n[v],v,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset))}var m=f.join(u.delimiter),g=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""}},193:function(e,t,r){"use strict";var n=r(136),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.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))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){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,s=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;s.push(l)}for(var f=0;r.depth>0&&null!==(c=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(c[1])}return c&&s.push("["+i.slice(c.index)+"]"),function(e,t,r,n){for(var o=n?t:u(t,r),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,s=parseInt(l,10);r.parseArrays||""!==l?!isNaN(s)&&c!==l&&String(s)===l&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=o:a[l]=o:a={0:o}}o=a}return o}(s,t,r,n)}};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,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||n.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 s="string"==typeof e?function(e,t){var r,l={},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=s.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?h="utf-8":"utf8=%26%2310003%3B"===p[r]&&(h="iso-8859-1"),d=r,r=p.length);for(r=0;r<p.length;++r)if(r!==d){var y,v,m=p[r],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(y=t.decoder(m,a.decoder,h,"key"),v=t.strictNullHandling?null:""):(y=t.decoder(m.slice(0,b),a.decoder,h,"key"),v=n.maybeMap(u(m.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===h&&(v=c(v)),m.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(l,y)?l[y]=n.combine(l[y],v):l[y]=v}return l}(e,r):e,f=r.plainObjects?Object.create(null):{},p=Object.keys(s),d=0;d<p.length;++d){var h=p[d],y=l(h,s[h],r,"string"==typeof e);f=n.merge(f,y,r)}return n.compact(f)}},29:function(e,t,r){var n=r(143),o=r(144),i=r(98),a=r(145);e.exports=function(e){return n(e)||o(e)||i(e)||a()}},3:function(e,t){e.exports=window.lodash},38:function(e,t){e.exports=window.wp.url},4:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},5:function(e,t){e.exports=window.wp.components},58:function(e,t){e.exports=window.wc.experimental},601:function(e,t,r){"use strict";r.r(t),r.d(t,"getHistory",(function(){return m})),r.d(t,"flattenFilters",(function(){return j})),r.d(t,"getActiveFiltersFromQuery",(function(){return P})),r.d(t,"getDefaultOptionValue",(function(){return x})),r.d(t,"getQueryFromActiveFilters",(function(){return S})),r.d(t,"getUrlKey",(function(){return E})),r.d(t,"getPath",(function(){return D})),r.d(t,"getPersistedQuery",(function(){return N})),r.d(t,"getQueryExcludedScreens",(function(){return C})),r.d(t,"pathIsExcluded",(function(){return F})),r.d(t,"getScreenFromPath",(function(){return T})),r.d(t,"getIdsFromQuery",(function(){return H})),r.d(t,"getSearchWords",(function(){return I})),r.d(t,"getNewPath",(function(){return Q})),r.d(t,"getQuery",(function(){return R})),r.d(t,"onQueryChange",(function(){return _})),r.d(t,"updateQueryString",(function(){return M})),r.d(t,"addHistoryListener",(function(){return U})),r.d(t,"WooNavigationItem",(function(){return B})),r.d(t,"NavSlotFillProvider",(function(){return d.SlotFillProvider})),r.d(t,"useNavSlot",(function(){return k.useSlot}));var n,o=r(4),i=r.n(o),a=r(62),c=r.n(a),u=r(0),l=r(38),s=r(104),f=r(3),p=r(101),d=r(5),h=r(173);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(){if(!n){var e=document.location.pathname,t=Object(h.a)({basename:e.substring(0,e.lastIndexOf("/"))});n={get length(){return t.length},get action(){return t.action},get location(){var e=t.location,r=Object(s.parse)(e.search.substring(1)).path||"/";return v(v({},e),{},{pathname:r})},createHref:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.createHref.apply(t,r)},push:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.push.apply(t,r)},replace:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.replace.apply(t,r)},go:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.go.apply(t,r)},goBack:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.goBack.apply(t,r)},goForward:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.goForward.apply(t,r)},block:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.block.apply(t,r)},listen:function(e){var r=this;return t.listen((function(){e(r.location,r.action)}))}}}return n}var g=r(29),b=r.n(g);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e){var t=[];return e.forEach((function(e){if(e.subFilters){t.push(Object(f.omit)(e,"subFilters"));var r=j(e.subFilters);t.push.apply(t,b()(r))}else t.push(e)})),t}function P(e,t){return Object.keys(t).reduce((function(r,n){var o=t[n];if(o.rules){var i=o.rules.filter((function(t){return e.hasOwnProperty(E(n,t.value))}));if(i.length)if(o.allowMultiple)i.forEach((function(t){e[E(n,t.value)].forEach((function(e){r.push({key:n,rule:t.value,value:e})}))}));else{var a=e[E(n,i[0].value)];r.push({key:n,rule:i[0].value,value:a})}}else if(e[n]){if(o.allowMultiple)e[n].forEach((function(e){r.push({key:n,value:e})}));else r.push({key:n,value:e[n]})}return r}),[])}function x(e,t){var r=e.input.defaultOption;if(e.input.defaultOption){var n=Object(f.find)(t,{value:r});return n?n.value:void console.warn("invalid defaultOption ".concat(r," supplied to ").concat(e.labels.add))}return Object(f.get)(t,[0,"value"])}function S(e,t,r){var n=P(t,r).reduce((function(e,t){return e[E(t.key,t.rule)]=void 0,e}),{}),o=e.reduce((function(e,t){if("between"===t.rule&&(!Array.isArray(t.value)||t.value.some((function(e){return!e}))))return e;if(t.value){var n=E(t.key,t.rule);r[t.key]&&r[t.key].allowMultiple?(e.hasOwnProperty(n)||(e[n]=[]),e[n].push(t.value)):e[n]=t.value}return e}),{});return O(O({},n),o)}function E(e,t){return t&&t.length?"".concat(e,"_").concat(t):e}var k=r(58);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var D=function(){return m().location.pathname},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R(),t=Object(p.applyFilters)("woocommerce_admin_persisted_queries",["period","compare","before","after","interval","type"]);return Object(f.pick)(e,t)},C=function(){return Object(p.applyFilters)("woocommerce_admin_time_excluded_screens",["stock","settings","customers","homescreen"])},F=function(e){return C().includes(T(e))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D();return"/"===e?"homescreen":e.replace("/analytics","").replace("/","")};function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(f.uniq)(e.split(",").map((function(e){return parseInt(e,10)})).filter(Boolean))}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R();if("object"!==c()(e))throw new Error("Invalid parameter passed to getSearchWords, it expects an object or no parameters.");var t=e.search;if(!t)return[];if("string"!=typeof t)throw new Error("Invalid 'search' type. getSearchWords expects query's 'search' property to be a string.");return t.split(",").map((function(e){return e.replace("%2C",",")}))}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R(),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"wc-admin",o=L(L({page:n},r),e);return"/"!==t&&(o.path=t),Object(l.addQueryArgs)("admin.php",o)}function R(){var e=m().location.search;return e.length&&Object(s.parse)(e.substring(1))||{}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R();switch(e){case"sort":return function(e,n){return M({orderby:e,order:n},t,r)};case"compare":return function(e,n,o){var a;return M((a={},i()(a,n,"compare-".concat(e)),i()(a,e,o),i()(a,"search",void 0),a),t,r)};default:return function(n){return M(i()({},e,n),t,r)}}}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R(),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"wc-admin",o=Q(e,t,r,n);m().push(o)}var U=function(e){var t,r,n;return window.wcNavigation&&!window.wcNavigation.historyPatched&&(t=window.history,r=t.pushState,n=t.replaceState,t.pushState=function(e){var n=new CustomEvent("pushstate",{state:e});return window.dispatchEvent(n),r.apply(t,arguments)},t.replaceState=function(e){var r=new CustomEvent("replacestate",{state:e});return window.dispatchEvent(r),n.apply(t,arguments)},window.wcNavigation.historyPatched=!0),window.addEventListener("popstate",e),window.addEventListener("pushstate",e),window.addEventListener("replacestate",e),function(){window.removeEventListener("popstate",e),window.removeEventListener("pushstate",e),window.removeEventListener("replacestate",e)}},B=function(e){var t=e.children,r=e.item;return Object(u.createElement)(d.Fill,{name:"woocommerce_navigation_"+r},t)};B.Slot=function(e){var t=e.name;return Object(u.createElement)(d.Slot,{name:"woocommerce_navigation_"+t})}},62:function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},72:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))},87:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},98:function(e,t,r){var n=r(87);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}}});