JezK
Edit File: index.js
/*! For license information please see index.js.LICENSE.txt */ (()=>{var e,t,r={93450:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(86087),o=(0,n.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,n.cloneElement)(e,{width:t,height:t,...r,ref:o}))},55414:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(39793),o=r(5573),i=(0,n.jsx)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},71548:(e,t,r)=>{"use strict";r.d(t,{q:()=>f,P:()=>g});var n=r(56427),o=r(47143),i=r(27723),a=r(40314),s=r(83306),c=r(39793);const l=()=>(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("g",{id:"block-template-part-sidebar",children:(0,c.jsx)("path",{id:"Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M6 4H18C19.1046 4 20 4.89543 20 6V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V6C4 4.89543 4.89543 4 6 4ZM18 5.5H6C5.72386 5.5 5.5 5.72386 5.5 6V9H18.5V6C18.5 5.72386 18.2761 5.5 18 5.5ZM18.5 10.5H10L10 18.5H18C18.2761 18.5 18.5 18.2761 18.5 18V10.5Z",fill:"#1E1E1E"})})}),u=()=>(0,c.jsx)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"})}),d=()=>(0,c.jsxs)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),(0,c.jsx)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"})]});var p=r(17326),m=r(95583);const{Fill:f,Slot:h}=(0,n.createSlotFill)("DisplayOptions");f.Slot=h;const y=[{value:"single_column",label:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{}),(0,i.__)("Single column","woocommerce")]})},{value:"two_columns",label:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d,{}),(0,i.__)("Two columns","woocommerce")]})}],g=()=>{const{defaultHomescreenLayout:e}=(0,o.useSelect)(e=>{const{getOption:t}=e(a.optionsStore);return{defaultHomescreenLayout:t("woocommerce_default_homepage_layout")||"single_column"}}),{updateUserPreferences:t,homepage_layout:r}=(0,a.useUserPreferences)(),u=!(0,p.EM)("setup")||(0,m.G7)("analytics");return(0,c.jsx)(h,{children:o=>0!==o.length||u?(0,c.jsx)(n.DropdownMenu,{icon:(0,c.jsx)(l,{}),label:(0,i.__)("Display options","woocommerce"),toggleProps:{className:"woocommerce-layout__activity-panel-tab display-options",onClick:()=>(0,s.recordEvent)("homescreen_display_click")},popoverProps:{className:"woocommerce-layout__activity-panel-popover"},children:({onClose:a})=>(0,c.jsxs)(c.Fragment,{children:[o,u?(0,c.jsx)(n.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:(0,i.__)("Layout","woocommerce"),children:(0,c.jsx)(n.MenuItemsChoice,{choices:y,onSelect:e=>{t({homepage_layout:e}),a(),(0,s.recordEvent)("homescreen_display_option",{display_option:e})},value:r||e})}):null]})}):null})}},17326:(e,t,r)=>{"use strict";r.d(t,{EM:()=>c,fK:()=>p});var n=r(47143),o=r(40314),i=r(17290);const a=e=>(0,i.Qk)("visibleTaskListIds",[]).includes(e),s=e=>(0,i.Qk)("completedTaskListIds",[]).includes(e),c=e=>a(e)&&!s(e),l=()=>({requestingTaskListOptions:!1,setupTaskListHidden:!a("setup"),setupTaskListComplete:s("setup"),setupTaskListActive:c("setup"),setupTasksCount:void 0,setupTasksCompleteCount:void 0,thingsToDoNextCount:void 0}),u=e=>{const{getTaskList:t,hasFinishedResolution:r}=e,n=t("setup"),i=(0,o.getVisibleTasks)(n?.tasks||[]),a=!n||n.isHidden,s=n?.isComplete;return{setupTaskListHidden:a,setupTaskListComplete:s,setupTaskListActive:!a&&!s,setupTasksCount:i.length,setupTasksCompleteCount:i.filter(e=>e.isComplete).length,requestingTaskListOptions:!r("getTaskLists")}},d=e=>{const{getTaskList:t,hasFinishedResolution:r}=e;return{thingsToDoNextCount:(n=t("extended"),n&&n.tasks.length&&!n.isHidden?n.tasks.filter(e=>e.canView&&!e.isComplete&&!e.isDismissed).length:0),requestingTaskListOptions:!r("getTaskLists")};var n},p=({setupTasklist:e,extendedTaskList:t}={setupTasklist:!0,extendedTaskList:!0})=>{const r=e&&c("setup"),i=t&&c("extended");return(0,n.useSelect)(e=>{if(!r&&!i)return l();const t=e(o.ONBOARDING_STORE_NAME);return r?i?{...l(),...u(t),...d(t)}:{...l(),...u(t)}:{...l(),...d(t)}},[r,i])}},11569:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(47143),o=r(27723);function i(e){const{createNotice:t}=(0,n.dispatch)("core/notices");!function(e){return!!e&&(e instanceof TypeError||"object"==typeof e&&!("message"in e&&e.message||"errors"in e&&e.errors&&Object.keys(e.errors).length||"code"in e||"error_data"in e)&&"undefined"!=typeof window&&!1===window.navigator?.onLine)}(e)?e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach(r=>{t("error",e.errors[r].join(" "))}):e instanceof Error?e.message&&t("error",e.message):e.message&&t(e.code?"error":"success",e.message):t("error",(0,o.__)("Updating failed. You are probably offline.","woocommerce"))}},17290:(e,t,r)=>{"use strict";r.d(t,{GZ:()=>d,Qk:()=>l,kY:()=>u});var n=r(27723),o=r(15703);r(30001);const i=["wcAdminSettings","preloadSettings"],a=(0,o.getSetting)("admin",{}),s=Object.keys(a).reduce((e,t)=>(i.includes(t)||(e[t]=a[t]),e),{}),c={onboarding:{profile:"Deprecated: wcSettings.admin.onboarding.profile is deprecated. It is planned to be released in WooCommerce 10.0.0. Please use `getProfileItems` from the onboarding store. See https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/data/src/onboarding for more information.",euCountries:"Deprecated: wcSettings.admin.onboarding.euCountries is deprecated. Please use `/wc/v3/data/continents/eu` from the REST API. See https://developer.woocommerce.com/docs/apis/rest-api/v3/data/#list-all-continents for more information.",localInfo:'Deprecated: wcSettings.admin.onboarding.localInfo is deprecated. Please use `include WC()->plugin_path() . "/i18n/locale-info.php"` instead.',currencySymbols:'"Deprecated: wcSettings.admin.onboarding.currencySymbols is deprecated. Please use get_woocommerce_currency_symbols() function instead.'}};function l(e,t=!1,r=e=>e,o=c){if(i.includes(e))throw new Error((0,n.__)("Mutable settings should be accessed via data store.","woocommerce"));return r(s.hasOwnProperty(e)?s[e]:t,t)}const u=(0,o.getSetting)("adminUrl"),d=((0,o.getSetting)("countries"),(0,o.getSetting)("currency"),(0,o.getSetting)("locale"),(0,o.getSetting)("siteTitle"),(0,o.getSetting)("wcAssetUrl"));l("orderStatuses")},22348:(e,t,r)=>{"use strict";r.d(t,{G7:()=>s});var n=r(17290),o=r(82175);const i="features",a="__wcRetiredFeatureFlagsProxy";function s(e){const t=function(e){const t=(0,n.Qk)(i);return t&&t[e]}(e);return Boolean(t?.is_enabled)}"undefined"!=typeof window&&window.wcAdminFeatures&&!window.wcAdminFeatures[a]&&(window.wcAdminFeatures=new Proxy(window.wcAdminFeatures,{get:(e,t,r)=>("string"==typeof t&&(0,o.IA)(t)&&(0,o.A8)(t),Reflect.get(e,t,r))}),Object.defineProperty(window.wcAdminFeatures,a,{value:!0}))},95583:(e,t,r)=>{"use strict";r.d(t,{G7:()=>n.G7});var n=r(22348)},82175:(e,t,r)=>{"use strict";r.d(t,{A8:()=>s,IA:()=>a});var n=r(64040),o=r.n(n);const i={"activity-panels":{deprecatedSince:"11.1.0",removedIn:null},analytics:{deprecatedSince:"11.1.0",removedIn:null},"analytics-scheduled-import":{deprecatedSince:"11.1.0",removedIn:null},"experimental-iapi-mini-cart":{deprecatedSince:"11.1.0",removedIn:null},coupons:{deprecatedSince:"11.1.0",removedIn:null},"core-profiler":{deprecatedSince:"11.1.0",removedIn:null},"customize-store":{deprecatedSince:"11.1.0",removedIn:null},"customer-effort-score-tracks":{deprecatedSince:"11.1.0",removedIn:null},"import-products-task":{deprecatedSince:"11.1.0",removedIn:null},"experimental-fashion-sample-products":{deprecatedSince:"11.1.0",removedIn:null},"shipping-smart-defaults":{deprecatedSince:"11.1.0",removedIn:null},"shipping-setting-tour":{deprecatedSince:"11.1.0",removedIn:null},homescreen:{deprecatedSince:"11.1.0",removedIn:null},marketing:{deprecatedSince:"11.1.0",removedIn:null},"mobile-app-banner":{deprecatedSince:"11.1.0",removedIn:null},onboarding:{deprecatedSince:"11.1.0",removedIn:null},"onboarding-tasks":{deprecatedSince:"11.1.0",removedIn:null},"pattern-toolkit-full-composability":{deprecatedSince:"11.1.0",removedIn:null},"payment-gateway-suggestions":{deprecatedSince:"11.1.0",removedIn:null},"product-custom-fields":{deprecatedSince:"11.1.0",removedIn:null},printful:{deprecatedSince:"11.1.0",removedIn:null},"remote-inbox-notifications":{deprecatedSince:"11.1.0",removedIn:null},"remote-free-extensions":{deprecatedSince:"11.1.0",removedIn:null},"shipping-label-banner":{deprecatedSince:"11.1.0",removedIn:null},subscriptions:{deprecatedSince:"11.1.0",removedIn:null},"transient-notices":{deprecatedSince:"11.1.0",removedIn:null},"wc-pay-promotion":{deprecatedSince:"11.1.0",removedIn:null},"wc-pay-welcome-page":{deprecatedSince:"11.1.0",removedIn:null},"woo-mobile-welcome":{deprecatedSince:"11.1.0",removedIn:null},"launch-your-store":{deprecatedSince:"11.1.0",removedIn:null}},a=e=>Object.hasOwn(i,e),s=e=>{const t=(e=>i[e]?.deprecatedSince)(e);if(!t)return;const r=(e=>i[e]?.removedIn)(e);o()(`wcAdminFeatures.${e}`,{since:t,plugin:"WooCommerce",hint:`The ${e} WC Admin feature flag shim will be removed in ${r?`WooCommerce ${r}`:"a future version of WooCommerce"}.`})}},30001:(e,t,r)=>{"use strict";r.d(t,{CZ:()=>n.C,D8:()=>s,al:()=>o,s9:()=>i,vK:()=>n.v}),r(86087);var n=r(12023);function o(e){return e?e.substr(1).split("&").reduce((e,t)=>{const r=t.split("="),n=r[0];let o=decodeURIComponent(r[1]);return o=isNaN(Number(o))?o:Number(o),e[n]=o,e},{}):{}}function i(){let e="";const{page:t,path:r,post_type:n}=o(window.location.search);if(t){const n="wc-admin"===t?"home_screen":t;e=r?r.replace(/\//g,"_").substring(1):n}else n&&(e=n);return e}const a=[{name:"0-2s",max:2},{name:"2-5s",max:5},{name:"5-10s",max:10},{name:"10-15s",max:15},{name:"15-20s",max:20},{name:"20-30s",max:30},{name:"30-60s",max:60},{name:">60s"}],s=e=>{for(const t of a){if(!t.max)return t.name;if(e<1e3*t.max)return t.name}}},12023:(e,t,r)=>{"use strict";function n(e){return(e||"").split(":",1)[0]}function o(e){const t=n(e);return/^woocommerce(-|_)payments$/.test(t)?"wcpay":`${t.replace(/-/g,"_")}`.split(":",1)[0]}r.d(t,{C:()=>o,v:()=>n})},66303:(e,t,r)=>{"use strict";var n=r(72418),o=r(28713),i=r(1101),a=r(82322);e.exports=a||n.call(i,o)},28713:e=>{"use strict";e.exports=Function.prototype.apply},1101:e=>{"use strict";e.exports=Function.prototype.call},51089:(e,t,r)=>{"use strict";var n=r(72418),o=r(60084),i=r(1101),a=r(66303);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},82322:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},27771:(e,t,r)=>{"use strict";var n=r(41886),o=r(51089),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},96153:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))}),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(4048)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},4048:(e,t,r)=>{e.exports=function(e){function t(e){let r,o,i,a=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e,t){let r=0,n=0,o=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,i++,r=i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(o(e,r))return!1;for(const r of t.names)if(o(e,r))return!0;return!1},t.humanize=r(94636),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},45768:(e,t,r)=>{"use strict";var n,o=r(51089),i=r(47889);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},91760:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},27326:e=>{"use strict";e.exports=EvalError},77126:e=>{"use strict";e.exports=Error},95675:e=>{"use strict";e.exports=RangeError},51303:e=>{"use strict";e.exports=ReferenceError},34379:e=>{"use strict";e.exports=SyntaxError},60084:e=>{"use strict";e.exports=TypeError},28132:e=>{"use strict";e.exports=URIError},93667:e=>{"use strict";e.exports=Object},65786:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=r(0,o.length-a.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))}),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},72418:(e,t,r)=>{"use strict";var n=r(65786);e.exports=Function.prototype.bind||n},41886:(e,t,r)=>{"use strict";var n,o=r(93667),i=r(77126),a=r(27326),s=r(95675),c=r(51303),l=r(34379),u=r(60084),d=r(28132),p=r(82066),m=r(12672),f=r(80100),h=r(7850),y=r(12400),g=r(62182),w=r(55309),v=Function,b=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(47889),x=r(91760),S=function(){throw new u},k=_?function(){try{return S}catch(e){try{return _(arguments,"callee").get}catch(e){return S}}}():S,E=r(75764)(),A=r(46558),C=r(938),j=r(36642),P=r(28713),O=r(1101),I={},T="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":E&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&A?A(""[Symbol.iterator]()):n,"%Symbol%":E?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":k,"%TypedArray%":T,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":P,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":C,"%Math.abs%":p,"%Math.floor%":m,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":y,"%Math.round%":g,"%Math.sign%":w,"%Reflect.getPrototypeOf%":j};if(A)try{null.error}catch(e){var M=A(A(e));N["%Error.prototype%"]=M}var R=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return N[t]=r,r},F={__proto__:null,"%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"]},L=r(72418),D=r(7080),V=L.call(O,Array.prototype.concat),U=L.call(P,Array.prototype.splice),B=L.call(O,String.prototype.replace),z=L.call(O,String.prototype.slice),H=L.call(O,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,$=function(e,t){var r,n=e;if(D(F,n)&&(n="%"+(r=F[n])[0]+"%"),D(N,n)){var o=N[n];if(o===I&&(o=R(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=z(e,0,1),r=z(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return B(e,q,function(e,t,r,o){n[n.length]=r?B(o,G,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=$("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],U(r,V([0,1],c)));for(var d=1,p=!0;d<r.length;d+=1){var m=r[d],f=z(m,0,1),h=z(m,-1);if(('"'===f||"'"===f||"`"===f||'"'===h||"'"===h||"`"===h)&&f!==h)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&p||(s=!0),D(N,i="%"+(n+="."+m)+"%"))a=N[i];else if(null!=a){if(!(m in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&d+1>=r.length){var y=_(a,m);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[m]}else p=D(a,m),a=a[m];p&&!s&&(N[i]=a)}}return a}},938:(e,t,r)=>{"use strict";var n=r(93667);e.exports=n.getPrototypeOf||null},36642:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},46558:(e,t,r)=>{"use strict";var n=r(36642),o=r(938),i=r(45768);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},98683:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},47889:(e,t,r)=>{"use strict";var n=r(98683);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},75764:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(32294);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},32294: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(var n 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 i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7080:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(72418);e.exports=i.call(n,o)},82066:e=>{"use strict";e.exports=Math.abs},12672:e=>{"use strict";e.exports=Math.floor},44067:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},80100:e=>{"use strict";e.exports=Math.max},7850:e=>{"use strict";e.exports=Math.min},12400:e=>{"use strict";e.exports=Math.pow},62182:e=>{"use strict";e.exports=Math.round},55309:(e,t,r)=>{"use strict";var n=r(44067);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},94636:e=>{var t=1e3,r=60*t,n=60*r,o=24*n,i=7*o;function a(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,s){s=s||{};var c,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(c=e,(l=Math.abs(c))>=o?a(c,l,o,"day"):l>=n?a(c,l,n,"hour"):l>=r?a(c,l,r,"minute"):l>=t?a(c,l,t,"second"):c+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},94201:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,h=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,w=String.prototype.slice,v=String.prototype.replace,b=String.prototype.toUpperCase,_=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,k=Array.prototype.join,E=Array.prototype.slice,A=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,N=("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||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var o=String(n),i=w.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var R=r(52944),F=R.custom,L=G(F)?F:null,D={__proto__:null,double:'"',single:"'"},V={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=r.quoteStyle||t,o=D[n];return o+e+o}function B(e){return v.call(String(e),/"/g,""")}function z(e){return!I||!("object"==typeof e&&(I in e||void 0!==e[I]))}function H(e){return"[object Array]"===Q(e)&&z(e)}function q(e){return"[object RegExp]"===Q(e)&&z(e)}function G(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(W(c,"quoteStyle")&&!W(D,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(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 h=!W(c,"customInspect")||c.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(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(W(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=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 Z(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return b?M(t,x):x}if("bigint"==typeof t){var A=String(t)+"n";return b?M(t,A):A}var j=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=j&&j>0&&"object"==typeof t)return H(t)?"[Array]":"[Object]";var F,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=k.call(Array(e.indent+1)," ")}return{base:r,prev:k.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function $(t,r,n){if(r&&(s=E.call(s)).push(r),n){var i={depth:c.depth};return W(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!q(t)){var Y=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,$);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ne.length>0?" { "+k.call(ne,", ")+" }":"")}if(G(t)){var oe=O?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||O?oe:J(oe)}if((F=t)&&"object"==typeof F&&("undefined"!=typeof HTMLElement&&F instanceof HTMLElement||"string"==typeof F.nodeName&&"function"==typeof F.getAttribute)){for(var ie="<"+_.call(String(t.nodeName)),ae=t.attributes||[],se=0;se<ae.length;se++)ie+=" "+ae[se].name+"="+U(B(ae[se].value),"double",c);return ie+=">",t.childNodes&&t.childNodes.length&&(ie+="..."),ie+"</"+_.call(String(t.nodeName))+">"}if(H(t)){if(0===t.length)return"[]";var ce=re(t,$);return V&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(ce)?"["+te(ce,V)+"]":"[ "+k.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===Q(e)&&z(e)}(t)){var le=re(t,$);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(le,", ")+" }":"{ ["+String(t)+"] "+k.call(S.call("[cause]: "+$(t.cause),le),", ")+" }"}if("object"==typeof t&&h){if(L&&"function"==typeof t[L]&&R)return R(t,{depth:j-o});if("symbol"!==h&&"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 ue=[];return a&&a.call(t,function(e,r){ue.push($(r,t,!0)+" => "+$(e,t))}),ee("Map",i.call(t),ue,V)}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 de=[];return u&&u.call(t,function(e){de.push($(e,t))}),ee("Set",l.call(t),de,V)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{return m.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if(function(e){return"[object Number]"===Q(e)&&z(e)}(t))return J($(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return J($(C.call(t)));if(function(e){return"[object Boolean]"===Q(e)&&z(e)}(t))return J(f.call(t));if(function(e){return"[object String]"===Q(e)&&z(e)}(t))return J($(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Q(e)&&z(e)}(t)&&!q(t)){var pe=re(t,$),me=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!me&&I&&Object(t)===t&&I in t?w.call(Q(t),8,-1):fe?"Object":"",ye=(me||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+k.call(S.call([],he||[],fe||[]),": ")+"] ":"");return 0===pe.length?ye+"{}":V?ye+"{"+te(pe,V)+"}":ye+"{ "+k.call(pe,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return $.call(e,t)}function Q(e){return h.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Z(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Z(w.call(e,0,t.maxStringLength),t)+n}var o=V[t.quoteStyle||"single"];return o.lastIndex=0,U(v.call(v.call(e,o,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(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":"")+b.call(t.toString(16))}function J(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):k.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+k.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=H(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=W(e,o)?t(e[o],e):""}var i,a="function"==typeof j?j(e):[];if(O){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)W(e,c)&&(r&&String(Number(c))===c&&c<e.length||O&&i["$"+c]instanceof Symbol||(x.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof j)for(var l=0;l<a.length;l++)T.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}},2439:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8435:(e,t,r)=>{"use strict";var n=r(76898),o=r(78604),i=r(2439);e.exports={formats:i,parse:o,stringify:n}},78604:(e,t,r)=>{"use strict";var n=r(44174),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t,r,i){if(e){var a=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),a=i?r.slice(0,i.index):r,s=[];if(a){if(!t.plainObjects&&o.call(Object.prototype,a)&&!t.allowPrototypes)return;s[s.length]=a}for(var c=0;null!==(i=n.exec(r))&&c<t.depth;){c+=1;var l=i[1].slice(1,-1);if(!t.plainObjects&&o.call(Object.prototype,l)&&!t.allowPrototypes)return;s[s.length]=i[1]}if(i){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s[s.length]="["+r.slice(i.index)+"]"}return s}(e,r);if(a)return function(e,t,r,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:c(t,r,i),l=e.length-1;l>=0;--l){var u,d=e[l];if("[]"===d&&r.parseArrays)u=n.isOverflow(s)?s:r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,m=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(m,10),h=!isNaN(f)&&d!==m&&String(f)===m&&f>=0&&r.parseArrays;if(r.parseArrays||""!==m)if(h&&f<r.arrayLimit)(u=[])[f]=s;else{if(h&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");h?(u[f]=s,n.markOverflow(u,f)):"__proto__"!==m&&(u[m]=s)}else u={0:s}}s=u}return s}(a,t,r,i)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,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,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,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,duplicates:r,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,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==u?u+1:u);if(t.throwOnLimitExceeded&&void 0!==u&&d.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,m=-1,f=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[p]?f="utf-8":"utf8=%26%2310003%3B"===d[p]&&(f="iso-8859-1"),m=p,p=d.length);for(p=0;p<d.length;++p)if(p!==m){var h,y,g=d[p],w=g.indexOf("]="),v=-1===w?g.indexOf("="):w+1;if(-1===v?(h=t.decoder(g,a.decoder,f,"key"),y=t.strictNullHandling?null:""):null!==(h=t.decoder(g.slice(0,v),a.decoder,f,"key"))&&(y=n.maybeMap(c(g.slice(v+1),t,i(r[h])?r[h].length:0),function(e){return t.decoder(e,a.decoder,f,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===f&&(y=s(String(y))),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),t.comma&&i(y)&&y.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");y=n.combine([],y,t.arrayLimit,t.plainObjects)}if(null!==h){var b=o.call(r,h);b&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?r[h]=n.combine(r[h],y,t.arrayLimit,t.plainObjects):b&&"last"!==t.duplicates||(r[h]=y)}}return r}(e,r):e,d=r.plainObjects?{__proto__:null}:{},p=Object.keys(u),m=0;m<p.length;++m){var f=p[m],h=l(f,u[f],r,"string"==typeof e);d=n.merge(d,h,r)}return!0===r.allowSparse?d:n.compact(d)}},76898:(e,t,r)=>{"use strict";var n=r(16496),o=r(44174),i=r(2439),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,p=i.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f={},h=function e(t,r,i,a,s,l,d,p,h,y,g,w,v,b,_,x,S,k){for(var E,A=t,C=k,j=0,P=!1;void 0!==(C=C.get(f))&&!P;){var O=C.get(t);if(j+=1,void 0!==O){if(O===j)throw new RangeError("Cyclic object value");P=!0}void 0===C.get(f)&&(j=0)}if("function"==typeof y?A=y(r,A):A instanceof Date?A=v(A):"comma"===i&&c(A)&&(A=o.maybeMap(A,function(e){return e instanceof Date?v(e):e})),null===A){if(l)return h&&!x?h(r,m.encoder,S,"key",b):r;A=""}if("string"==typeof(E=A)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(A))return h?[_(x?r:h(r,m.encoder,S,"key",b))+"="+_(h(A,m.encoder,S,"value",b))]:[_(r)+"="+_(String(A))];var I,T=[];if(void 0===A)return T;if("comma"===i&&c(A))x&&h&&(A=o.maybeMap(A,h)),I=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(y))I=y;else{var N=Object.keys(A);I=g?N.sort(g):N}var M=p?String(r).replace(/\./g,"%2E"):String(r),R=a&&c(A)&&1===A.length?M+"[]":M;if(s&&c(A)&&0===A.length)return R+"[]";for(var F=0;F<I.length;++F){var L=I[F],D="object"==typeof L&&L&&void 0!==L.value?L.value:A[L];if(!d||null!==D){var V=w&&p?String(L).replace(/\./g,"%2E"):String(L),U=c(A)?"function"==typeof i?i(R,V):R:R+(w?"."+V:"["+V+"]");k.set(t,j);var B=n();B.set(f,k),u(T,e(D,U,i,a,s,l,d,p,"comma"===i&&x&&c(A)?null:h,y,g,w,v,b,_,x,S,B))}}return T};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return m;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");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||m.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 n,o=i.formatters[r],l=m.filter;if(("function"==typeof e.filter||c(e.filter))&&(l=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":m.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||m.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:l,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):c(l.filter)&&(r=l.filter);var d=[];if("object"!=typeof o||null===o)return"";var p=s[l.arrayFormat],f="comma"===p&&l.commaRoundTrip;r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var y=n(),g=0;g<r.length;++g){var w=r[g],v=o[w];l.skipNulls&&null===v||u(d,h(v,w,p,f,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var b=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},44174:(e,t,r)=>{"use strict";var n=r(2439),o=r(16496),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=o(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),m=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},f=1024;e.exports={arrayToObject:m,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(l(e)){var o=u(e)+1;return e[o]=t,d(e,o),e}var i=[].concat(e,t);return i.length>r?c(m(i,{plainObjects:n}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],s=Object.keys(i),c=0;c<s.length;++c){var l=s[c],u=i[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t[t.length]={obj:i,prop:l},r[r.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&(n[n.length]=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 a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",c=0;c<a.length;c+=f){for(var l=a.length>=f?a.slice(c,c+f):a,u=[],d=0;d<l.length;++d){var m=l.charCodeAt(d);45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===n.RFC1738&&(40===m||41===m)?u[u.length]=l.charAt(d):m<128?u[u.length]=p[m]:m<2048?u[u.length]=p[192|m>>6]+p[128|63&m]:m<55296||m>=57344?u[u.length]=p[224|m>>12]+p[128|m>>6&63]+p[128|63&m]:(d+=1,m=65536+((1023&m)<<10|1023&l.charCodeAt(d)),u[u.length]=p[240|m>>18]+p[128|m>>12&63]+p[128|m>>6&63]+p[128|63&m])}s+=u.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(a(t)){var o=t.length;if(n&&"number"==typeof n.arrayLimit&&o>n.arrayLimit)return c(m(t.concat(r),n),o);t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(l(t)){var s=u(t)+1;t[s]=r,d(t,s)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!=typeof t){if(l(r)){for(var p=Object.keys(r),f=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<p.length;h++)f[parseInt(p[h],10)+1]=r[p[h]];return c(f,u(r)+1)}var y=[t].concat(r);return n&&"number"==typeof n.arrayLimit&&y.length>n.arrayLimit?c(m(y,n),y.length-1):y}var g=t;return a(t)&&!a(r)&&(g=m(t,n)),a(t)&&a(r)?(r.forEach(function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t[t.length]=r}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];if(i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,l(r)&&!l(t)&&c(t,u(r)),l(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>u(t)&&d(t,s)}return t},g)}}},94931:(e,t,r)=>{"use strict";var n=r(51609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,i={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},39793:(e,t,r)=>{"use strict";e.exports=r(94931)},90488:(e,t,r)=>{"use strict";var n=r(94201),o=r(60084),i=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){var r=function(e,t){if(e)return i(e,t,!0)}(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var r=i(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},79544:(e,t,r)=>{"use strict";var n=r(41886),o=r(27771),i=r(94201),a=r(60084),s=n("%Map%",!0),c=o("Map.prototype.get",!0),l=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=d(e,t);return 0===p(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new s),l(e,t,r)}};return t}},12617:(e,t,r)=>{"use strict";var n=r(41886),o=r(27771),i=r(94201),a=r(79544),s=r(60084),c=n("%WeakMap%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?l(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),u(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},16496:(e,t,r)=>{"use strict";var n=r(60084),o=r(94201),i=r(90488),a=r(79544),s=r(12617)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},51609:e=>{"use strict";e.exports=window.React},66087:e=>{"use strict";e.exports=window.lodash},76154:e=>{"use strict";e.exports=window.moment},45155:e=>{"use strict";e.exports=window.wc.adminLayout},98846:e=>{"use strict";e.exports=window.wc.components},94111:e=>{"use strict";e.exports=window.wc.currency},27752:e=>{"use strict";e.exports=window.wc.customerEffortScore},40314:e=>{"use strict";e.exports=window.wc.data},14908:e=>{"use strict";e.exports=window.wc.experimental},96476:e=>{"use strict";e.exports=window.wc.navigation},42435:e=>{"use strict";e.exports=window.wc.sanitize},83306:e=>{"use strict";e.exports=window.wc.tracks},15703:e=>{"use strict";e.exports=window.wc.wcSettings},20195:e=>{"use strict";e.exports=window.wp.a11y},1455:e=>{"use strict";e.exports=window.wp.apiFetch},56427:e=>{"use strict";e.exports=window.wp.components},29491:e=>{"use strict";e.exports=window.wp.compose},47143:e=>{"use strict";e.exports=window.wp.data},64040:e=>{"use strict";e.exports=window.wp.deprecated},86087:e=>{"use strict";e.exports=window.wp.element},52619:e=>{"use strict";e.exports=window.wp.hooks},18537:e=>{"use strict";e.exports=window.wp.htmlEntities},27723:e=>{"use strict";e.exports=window.wp.i18n},48558:e=>{"use strict";e.exports=window.wp.keycodes},92279:e=>{"use strict";e.exports=window.wp.plugins},5573:e=>{"use strict";e.exports=window.wp.primitives},93832:e=>{"use strict";e.exports=window.wp.url},52944:()=>{},4921:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{A:()=>o});const o=function(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,r)=>(o.f[r](e,t),t),[])),o.u=e=>"chunks/"+({1438:"store-alerts",2464:"activity-panels-setup",2981:"tax-recommendations",2983:"products",3534:"shipping-recommendations",5097:"import-products",6087:"shipping-recommendation",7956:"activity-panels-help"}[e]||e)+".js?ver="+{1438:"c0a27e02bfd9de07b7b2",1528:"3035e57e6fa6bf0fbd84",2464:"c4244e85c0e8ca9a1bd4",2981:"d8985518db5cec491afd",2983:"110de035c3d066d59523",3534:"6a2837b56eca054fa833",3799:"746a226397ed5e3ac25f",4923:"040bf4622e2da87dfa1e",5097:"ad2f912ba8a8876a3a62",6087:"0079717111f7475f00eb",7956:"a4330f01e23c155067bd",9285:"d941a10e29f554fb4787"}[e],o.miniCssF=e=>"chunks/"+({1438:"store-alerts",2981:"tax-recommendations",2983:"products",3534:"shipping-recommendations",5097:"import-products",7956:"activity-panels-help"}[e]||e)+".style.css?ver="+{1438:"995e8be891a3fdd080c9",2981:"0ca8eecf131869c3e0df",2983:"178f6516f86cb9f1c9ed",3534:"17ed1f07f3fb96977574",3799:"fc9477a8e54e8fb1d62f",5097:"6d8c59228d31c901bf1b",7956:"d04d9cd82d872c33a468"}[e],o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="__wcAdmin_webpackJsonp:",o.l=(r,n,i,a)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[n];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(n)),t)return t(n)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=1722,(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../"})(),(()=>{if("undefined"!=typeof document){var e={1722:0};o.f.miniCss=(t,r)=>{e[t]?r.push(e[t]):0!==e[t]&&{1438:1,2981:1,2983:1,3534:1,3799:1,5097:1,7956:1}[t]&&r.push(e[t]=(e=>new Promise((t,r)=>{var n=o.miniCssF(e),i=o.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){var a;if((o=(a=i[n]).getAttribute("data-href"))===e||o===t)return a}})(n,i))return t();((e,t,r,n,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",o.nc&&(a.nonce=o.nc),a.onerror=a.onload=r=>{if(a.onerror=a.onload=null,"load"===r.type)n();else{var o=r&&r.type,s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=s,a.parentNode&&a.parentNode.removeChild(a),i(c)}},a.href=t,document.head.appendChild(a)})(e,i,0,t,r)}))(t).then(()=>{e[t]=0},r=>{throw delete e[t],r}))}}})(),(()=>{var e={1722:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,n[1](s)}},"chunk-"+t,t)}};var t=(t,r)=>{var n,i,[a,s,c]=r,l=0;if(a.some(t=>0!==e[t])){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);c&&c(o)}for(t&&t(r);l<a.length;l++)i=a[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};o.r(e),o.d(e,{activateInstalledPlugin:()=>So,handleFetchError:()=>bo,installAndActivateRecommendedPlugin:()=>ko,loadInstalledPluginsAfterActivation:()=>xo,receiveActivatingPlugin:()=>ho,receiveBlogPosts:()=>vo,receiveInstalledPlugins:()=>fo,receiveMiscRecommendations:()=>wo,receiveRecommendedPlugins:()=>go,removeActivatingPlugin:()=>yo,setError:()=>_o});var t={};o.r(t),o.d(t,{getActivatingPlugins:()=>Ao,getBlogPosts:()=>Po,getBlogPostsError:()=>Oo,getInstalledPlugins:()=>Eo,getMiscRecommendations:()=>jo,getRecommendedPlugins:()=>Co});var r={};o.r(r),o.d(r,{getBlogPosts:()=>No,getMiscRecommendations:()=>To,getRecommendedPlugins:()=>Io});const n=window.wc.remoteLogging;var i=o(27752),a=o(86087),s=o(96153),c=o.n(s),l=o(39793);const u=c()("wc-admin:client");var d=o(17290),p=o(52619),m=o(45155),f=o(8435),h=o(47143),y=o(40314);const g="woocommerce_show_marketplace_suggestions",w=({children:e})=>{const{currentUserCan:t}=(0,y.useUser)(),r=(0,h.useSelect)(e=>{const{getOption:t,hasFinishedResolution:r}=e(y.optionsStore),n=r("getOption",[g]),o="no"!==t(g);return n&&o},[]);return t("install_plugins")&&r?(0,l.jsx)(l.Fragment,{children:e}):null},v=(0,a.lazy)(()=>o.e(3534).then(o.bind(o,53904))),b=(0,a.lazy)(()=>o.e(2981).then(o.bind(o,67012))),_=[({})=>null,({page:e,tab:t,section:r,zone_id:n})=>"wc-settings"!==e||"shipping"!==t||Boolean(r)||Boolean(n)?null:(0,l.jsx)(w,{children:(0,l.jsx)(a.Suspense,{fallback:null,children:(0,l.jsx)(v,{})})}),({page:e,tab:t,section:r})=>"wc-settings"!==e||"tax"!==t||Boolean(r)?null:(0,l.jsx)(w,{children:(0,l.jsx)(a.Suspense,{fallback:null,children:(0,l.jsx)(b,{})})})],x=()=>{(0,a.useEffect)(()=>{(0,i.triggerExitPageCesSurvey)()},[]);const e=(0,f.parse)(location.search.substring(1));let t={page:"",tab:""};void 0!==e.page&&(t=e);const r=(0,p.applyFilters)("woocommerce_admin_embedded_layout_components",_,t);return(0,l.jsx)(m.LayoutContextProvider,{value:(0,m.getLayoutContextValue)(["page"]),children:(0,l.jsx)("div",{className:"woocommerce-embedded-layout__primary",id:"woocommerce-embedded-layout__primary",children:r.map((e,r)=>(0,l.jsx)(e,{...t},r))})})};window.wc.notices;class S extends a.Component{render(){return(0,l.jsx)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}const k=S,E=(0,a.lazy)(()=>o.e(1438).then(o.bind(o,66152))),A=({children:e,showStoreAlerts:t=!0,showNotices:r=!0})=>(0,l.jsxs)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary",children:[window.wcAdminFeatures["store-alerts"]&&t&&(0,l.jsx)(a.Suspense,{fallback:null,children:(0,l.jsx)(E,{})}),r&&(0,l.jsx)(k,{}),e]});var C=o(29491),j=o(66087),P=o(56427),O=o(96476),I=o(83306),T=o(92279),N=o(27723),M=o(93450),R=o(5573),F=(0,l.jsx)(R.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)(R.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})}),L=(0,l.jsx)(R.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)(R.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"})}),D=(0,l.jsx)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(R.Path,{d:"M12 4a8 8 0 1 1 .001 16.001A8 8 0 0 1 12 4Zm0 1.5a6.5 6.5 0 1 0-.001 13.001A6.5 6.5 0 0 0 12 5.5Zm.75 11h-1.5V15h1.5v1.5Zm-.445-9.234a3 3 0 0 1 .445 5.89V14h-1.5v-1.25c0-.57.452-.958.917-1.01A1.5 1.5 0 0 0 12 8.75a1.5 1.5 0 0 0-1.5 1.5H9a3 3 0 0 1 3.305-2.984Z"})}),V=(0,l.jsx)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(R.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),U=(0,l.jsx)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(R.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})}),B=o(98846),z=o(4921);const H=({icon:e,title:t,name:r,selected:n,isPanelOpen:o,onTabClick:i})=>{const a=(0,z.A)("woocommerce-layout__activity-panel-tab",{"is-active":o&&n}),s=`activity-panel-tab-${r}`,c=!t&&r?r.charAt(0).toUpperCase()+r.slice(1):void 0;return(0,l.jsx)(P.Button,{role:"tab",className:a,"aria-selected":n,"aria-controls":`activity-panel-${r}`,id:s,"data-testid":s,label:t||c,showTooltip:!0,onClick:()=>{i(r)},children:e},s)},q=({tabs:e,onTabClick:t,selectedTab:r,tabOpen:n=!1})=>(0,l.jsx)(P.NavigableMenu,{role:"tablist",orientation:"horizontal",className:"woocommerce-layout__activity-panel-tabs",children:e&&e.map((e,o)=>{if(e.component){const{component:t,options:r}=e;return(0,l.jsx)(t,{...r},o)}return(0,l.jsx)(H,{index:o,isPanelOpen:n,selected:r===e.name,...e,onTabClick:()=>t(e)},o)})});var G=o(71548);const $=window.wp.dom,W=["button","submit"];const Q=({content:e,isPanelOpen:t,isPanelSwitching:r,currentTab:n,tab:o,closePanel:i,clearPanel:s})=>{const c="woocommerce-layout__activity-panel-wrapper",u=function(e="firstElement"){const t=(0,a.useRef)(e);return(0,a.useEffect)(()=>{t.current=e},[e]),(0,a.useCallback)(e=>{if(!e||!1===t.current)return;if(e.contains(e.ownerDocument.activeElement))return;let r=e;if("firstElement"===t.current){const t=$.focus.tabbable.find(e)[0];t&&(r=t)}r.focus()},[])}(),d=(0,a.useRef)(null),p=function(e){const t=(0,a.useRef)(e);(0,a.useEffect)(()=>{t.current=e},[e]);const r=(0,a.useRef)(!1),n=(0,a.useRef)(),o=(0,a.useCallback)(()=>{clearTimeout(n.current)},[]);(0,a.useEffect)(()=>()=>o(),[]),(0,a.useEffect)(()=>{e||o()},[e,o]);const i=(0,a.useCallback)(e=>{const{type:t,target:n}=e;(0,j.includes)(["mouseup","touchend"],t)?r.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return(0,j.includes)(W,e.type)}return!1}(n)&&(r.current=!0)},[]),s=(0,a.useCallback)(e=>{e.persist(),r.current||(n.current=setTimeout(()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()},0))},[]);return{onFocus:o,onMouseDown:i,onMouseUp:i,onTouchStart:i,onTouchEnd:i,onBlur:s}}(e=>{const r=e.relatedTarget&&(e.relatedTarget.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.relatedTarget.closest(".components-snackbar__action"));t&&!r&&i()}),m=(0,a.useCallback)(e=>{d.current=e,u(e)},[]);if(!o)return(0,l.jsx)("div",{className:c});if(!e)return null;const f=(0,z.A)(c,{"is-open":t,"is-switching":r});return(0,l.jsx)("div",{className:f,tabIndex:0,role:"tabpanel","aria-label":o.title,onTransitionEnd:e=>{e&&"transform"===e.propertyName&&(s(),d.current&&t&&o&&u(d.current))},...p,ref:m,children:(0,l.jsx)("div",{className:"woocommerce-layout__activity-panel-content",id:"activity-panel-"+n,children:(0,l.jsx)(a.Suspense,{fallback:(0,l.jsx)(B.Spinner,{}),children:e})},"activity-panel-"+n)})};var K=o(30001),Z=o(51609),Y=o(15703);window.wp.coreData;const J="__EXPERIMENTAL__WcAdminSettingsSlots",{Slot:X}=(0,P.createSlotFill)(J),{Fill:ee}=(0,P.createSlotFill)(J);var te=o(17326),re=(0,l.jsx)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(R.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),ne=o(55414),oe=(0,l.jsx)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(R.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});function ie(e){const{setIsModalOpen:t,disconnectURL:r}=e,[n,o]=(0,a.useState)(!1),i=()=>t(!1);return(0,l.jsxs)(P.Modal,{title:(0,N.__)("Are you sure you want to disconnect?","woocommerce"),onRequestClose:i,focusOnMount:!0,className:"woocommerce-marketplace__header-account-modal",style:{borderRadius:4},size:"medium",overlayClassName:"woocommerce-marketplace__header-account-modal-overlay",children:[(0,l.jsx)("p",{className:"woocommerce-marketplace__header-account-modal-text",children:(0,N.__)("Keep your store connected to WooCommerce.com to get updates, manage your subscriptions, and receive streamlined support for your extensions and themes.","woocommerce")}),(0,l.jsxs)(P.ButtonGroup,{className:"woocommerce-marketplace__header-account-modal-button-group",children:[(0,l.jsx)(P.Button,{variant:"tertiary",href:r,onClick:()=>o(!n),isBusy:n,isDestructive:!0,className:"woocommerce-marketplace__header-account-modal-button",children:(0,N.__)("Disconnect","woocommerce")}),(0,l.jsx)(P.Button,{variant:"primary",onClick:i,className:"woocommerce-marketplace__header-account-modal-button",children:(0,N.__)("Keep connected","woocommerce")})]})]})}d.kY,o(1455),window.wp.notices;const ae={notices:{}},se=(0,h.createReduxStore)("woocommerce-admin/subscription-notices",{reducer(e=ae,t){switch(t.type){case"ADD_NOTICE":return{...e,notices:{...e.notices,[t.productKey]:{productKey:t.productKey,message:t.message,status:t.status,options:t.options}}};case"REMOVE_NOTICE":const r={...e.notices};return r[t.productKey]&&delete r[t.productKey],{...e,notices:r}}return e},actions:{addNotice:(e,t,r,n)=>({type:"ADD_NOTICE",productKey:e,message:t,status:r,options:n}),removeNotice:e=>({type:"REMOVE_NOTICE",productKey:e})},selectors:{notices:e=>e?Object.values(e.notices):[],getNotice(e,t){if(e)return e.notices[t]}}});(0,h.register)(se),new Map;const ce=e=>(0,l.jsx)(P.MenuItem,{...e});function le({page:e="wc-admin"}){const[t,r]=(0,a.useState)(!1),[n,o]=(0,a.useState)(!1),i=(0,d.Qk)("wccomHelper",{}),s=i?.isConnected??!1,c=((e="wc-admin",t=!1)=>{const r=(0,d.Qk)("wccomHelper",{});if(!t&&!r.connectURL)return"";if(t&&!r.reConnectURL)return"";const n=t?r.reConnectURL:r.connectURL,o=new URL(window.location.href);return o.searchParams.set("page",e),((e,t)=>{if(!e)return e;const r=new URL(e);return r?(t.forEach(([e,t])=>{r.searchParams.set(e,t)}),r.toString()):e})(n,[["redirect_admin_url",encodeURIComponent(o.toString())],["page",e]])})(e),u=i?.userEmail,p=i?.userAvatar,m="https://woocommerce.com/my-account/",f=s?m:c,h="wc-addons"===e,y={target:"_blank",rel:"noopener noreferrer"},g=(0,l.jsx)(P.VisuallyHidden,{as:"span",children:(0,N.__)("(opens in a new tab)","woocommerce")}),w=()=>s&&p&&!n?(0,l.jsx)("img",{src:p,alt:"",className:"woocommerce-marketplace__header-account-avatar",onError:()=>o(!0)}):(0,l.jsx)(M.A,{icon:re,size:18}),v=s?(0,N.__)("Connected to WooCommerce.com","woocommerce"):(0,N.__)("Connect to WooCommerce.com","woocommerce");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(P.DropdownMenu,{className:"woocommerce-marketplace__user-menu",icon:h?(0,l.jsxs)("span",{className:"woocommerce-marketplace__header-account-trigger",children:[w(),(0,l.jsx)("span",{className:"woocommerce-marketplace__header-account-trigger__email",title:s?u:(0,N.__)("Connect to WooCommerce.com","woocommerce"),children:s?u:(0,N.__)("Connect to WooCommerce.com","woocommerce")}),(0,l.jsx)(M.A,{icon:ne.A,size:24,className:"woocommerce-marketplace__header-account-trigger__expand-icon"})]}):w(),label:(0,N.__)("User options","woocommerce"),toggleProps:{className:"woocommerce-layout__activity-panel-tab",onClick:()=>(0,I.recordEvent)("header_account_click",{page:e})},popoverProps:{className:"woocommerce-layout__activity-panel-popover"},children:()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(P.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:h&&!s?void 0:v,children:[(0,l.jsx)(ce,{className:"woocommerce-marketplace__menu-item",href:f,...s?y:{},onClick:()=>{s?(0,I.recordEvent)("header_account_view_click",{page:e}):(0,I.recordEvent)("header_account_connect_click",{page:e})},children:s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M.A,{icon:re,size:24,className:"woocommerce-marketplace__menu-icon"}),(0,l.jsxs)("span",{className:"woocommerce-marketplace__main-text",children:[u,g]}),(0,l.jsx)(M.A,{icon:V,size:16,className:"woocommerce-marketplace__menu-external-icon"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M.A,{icon:re,size:24,className:"woocommerce-marketplace__menu-icon"}),(0,l.jsxs)("div",{className:"woocommerce-marketplace__menu-text",children:[(0,N.__)("Connect account","woocommerce"),(0,l.jsx)("span",{className:"woocommerce-marketplace__sub-text",children:(0,N.__)("Get product updates, manage your subscriptions from your store admin, and get streamlined support.","woocommerce")})]})]})}),"wc-addons"===e&&!s&&(0,l.jsxs)(ce,{href:m,...y,onClick:()=>(0,I.recordEvent)("header_account_view_click",{page:e}),children:[(0,l.jsx)(M.A,{icon:V,size:24,className:"woocommerce-marketplace__menu-icon"}),(0,N.__)("Your WooCommerce.com account","woocommerce"),g]})]}),s&&(0,l.jsx)(P.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",children:(0,l.jsxs)(ce,{onClick:()=>{(0,I.recordEvent)("header_account_disconnect_click",{page:e}),r(!0)},children:[(0,l.jsx)(M.A,{icon:oe,size:24,className:"woocommerce-marketplace__menu-icon"}),(0,N.__)("Disconnect account","woocommerce")]})})]})}),t&&(0,l.jsx)(ie,{setIsModalOpen:r,disconnectURL:c})]})}const ue=(0,a.lazy)(()=>Promise.all([o.e(9285),o.e(7956)]).then(o.bind(o,69537))),de=(0,a.lazy)(()=>Promise.all([o.e(1528),o.e(3799),o.e(2464)]).then(o.bind(o,97194))),pe=({isEmbedded:e,query:t})=>{const r="wc-admin"===t.page&&!t.path,[n,o]=(0,a.useState)(""),[s,c]=(0,a.useState)(!1),[u,p]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),{comingSoon:w}=(({enabled:e}={enabled:!0})=>{const{isLoading:t,launchYourStoreEnabled:r,comingSoon:n,storePagesOnly:o,privateLink:i,shareKey:a}=(0,h.useSelect)(t=>{if(!e)return{isLoading:!1,comingSoon:null,storePagesOnly:null,privateLink:null,shareKey:null,launchYourStoreEnabled:null};const{hasFinishedResolution:r,getOption:n}=t(y.optionsStore);return{isLoading:!(r("getOption",["woocommerce_coming_soon"])||r("getOption",["woocommerce_store_pages_only"])||r("getOption",["woocommerce_private_link"])||r("getOption",["woocommerce_share_key"])),comingSoon:n("woocommerce_coming_soon"),storePagesOnly:n("woocommerce_store_pages_only"),privateLink:n("woocommerce_private_link"),shareKey:n("woocommerce_share_key"),launchYourStoreEnabled:!0}},[e]);return{isLoading:t,comingSoon:n,storePagesOnly:o,privateLink:i,shareKey:a,launchYourStoreEnabled:r}})({enabled:r}),v=()=>{c(!0),p(!1)},b=()=>{u||(c(!1),g(!1),o(""))};(0,a.useEffect)(()=>(0,O.addHistoryListener)(()=>{v(),b()}),[]);const _=(0,m.useExtendLayout)("activity-panel"),x=(0,a.useCallback)((e,r)=>{let n={};if("wc-admin"===t.page&&"appearance"===t.task){const{getTaskLists:t}=e(y.onboardingStore),o=t().reduce((e,t)=>[...e,...t.tasks],[]).find(e=>"appearance"===e.id);n={set_notice:r("woocommerce_demo_store_notice")?"Y":"N",create_homepage:!0===o?.additionalData?.hasHomepage?"Y":"N",upload_logo:o?.additionalData?.themeMods?.custom_logo?"Y":"N"}}return n},[t.page,t.task]),{requestingTaskListOptions:S,setupTaskListComplete:k,setupTaskListHidden:E}=(0,te.fK)({setupTasklist:!0,extendedTaskList:!1}),{previewSiteBtnTrackData:A}=(0,h.useSelect)(e=>{const{getOption:t}=e(y.optionsStore);return{previewSiteBtnTrackData:x(e,t)}},[x]),{showCesModal:C}=(0,h.useDispatch)(i.STORE_KEY),{currentUserCan:P}=(0,y.useUser)(),T=()=>{const[e]=function(e){const t=e?.startsWith("/")?1:0,r=e?.endsWith("/")?-1:void 0;return e?.slice(t,r)?.split("/")??[]}(t.path);return"add-product"===e||"product"===e},R=()=>{const t=(0,K.al)(window.location.search);return e&&/post-new\.php$/.test(window.location.pathname)&&"product"===t?.post_type},z=()=>t.task&&!t.path&&(!0===S||!1===E&&!1===k),H=()=>{const n={name:"feedback",title:(0,N.__)("Feedback","woocommerce"),icon:(0,l.jsx)(M.A,{icon:F,size:18}),onClick:()=>{o("feedback"),p(!0),C({action:"product_feedback",title:(0,N.__)("How's your experience with the product editor?","woocommerce"),firstQuestion:(0,N.__)("The product editing screen is easy to use","woocommerce"),secondQuestion:(0,N.__)("The product editing screen's functionality meets my needs","woocommerce")},{onRecordScore:()=>{o(""),p(!1)},onCloseModal:()=>{o(""),p(!1)}},{type:"snackbar",icon:(0,l.jsx)("span",{children:"🌟"})})},visible:R()},i={name:"setup",title:(0,N.__)("Finish setup","woocommerce"),icon:(0,l.jsx)(M.A,{icon:L,size:18}),visible:P("manage_woocommerce")&&!S&&!E&&!k&&!r&&!T()},a={name:"help",icon:(0,l.jsx)(M.A,{icon:D}),visible:P("manage_woocommerce")&&(r&&!e||z())},s={component:G.P,visible:P("manage_woocommerce")&&!e&&r&&!z()},c={component:le,options:{page:"wc-admin"},visible:r};return[n,i,{name:"previewSite",title:(0,N.__)("Preview site","woocommerce"),icon:(0,l.jsx)(M.A,{icon:V}),visible:r&&"appearance"===t.task,onClick:()=>(window.open((0,d.Qk)("siteUrl")),(0,I.recordEvent)("wcadmin_tasklist_previewsite",A),null)},{name:"previewStore",title:"yes"===w&&(0,N.__)("Preview store","woocommerce")||(0,N.__)("View store","woocommerce"),icon:(0,l.jsx)(M.A,{icon:U}),visible:r&&"appearance"!==t.task,onClick:()=>(window.open((0,d.Qk)("shopUrl")),(0,I.recordEvent)("wcadmin_previewstore_click"),null)},s,c,a].filter(e=>e.visible)},$=H(),W=(0,j.uniqueId)("activity-panel-header_");return(0,l.jsx)(m.LayoutContextProvider,{value:_,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(B.H,{id:W,className:"screen-reader-text",children:(0,N.__)("Store Activity","woocommerce")}),(0,l.jsxs)(B.Section,{component:"aside",id:"woocommerce-activity-panel",className:"woocommerce-layout__activity-panel","aria-labelledby":W,children:[(0,l.jsx)(q,{tabs:$,tabOpen:u,selectedTab:n,onTabClick:e=>{if(e.onClick)return void e.onClick();const t=e.name;if(s&&t===n)return;const r=t===n,i=r&&u,a=!r&&""!==n&&u;i||(0,I.recordEvent)("activity_panel_open",{tab:t}),o(t),p(!i),g(a),c(i)}}),(0,l.jsx)(Q,{currentTab:!0,isPanelOpen:u,isPanelSwitching:f,tab:(0,j.find)(H(),{name:n}),content:(e=>{const{task:r}=t;switch(e){case"help":return(0,l.jsx)(ue,{taskName:r});case"setup":return(0,l.jsx)(de,{query:t});default:return null}})(n),closePanel:()=>v(),clearPanel:()=>b()})]})]})})},me=["wc-settings"];(0,T.registerPlugin)("activity-panel-header-item",{render:()=>(0,l.jsx)(m.WooHeaderItem,{order:20,children:({isEmbedded:e,query:t})=>me.includes(t.page)?null:(0,l.jsx)(pe,{isEmbedded:e,query:t})}),scope:"woocommerce-admin"});var fe=(0,l.jsx)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(R.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),he=o(14908),ye=o(18537);const ge=e=>{let t;return t=e.length>2&&Array.isArray(e[1])&&["admin.php?page=wc-settings","admin.php?page=wc-reports","admin.php?page=wc-status"].includes(e[1][0])?e[1][1]:e[e.length-1],t},we=({isEmbedded:e,query:t,sections:r,children:n,leftAlign:o=!0,suppressTitle:i=!1,compact:a=!1,trailingItems:s})=>{const c=(0,he.useSlot)(m.WC_HEADER_PAGE_TITLE_SLOT_NAME),u=Boolean(c?.fills?.length),d=u||!i;return(0,l.jsx)("div",{className:(0,z.A)("woocommerce-layout__header",{"is-chrome-only":a}),children:(0,l.jsxs)("div",{className:"woocommerce-layout__header-wrapper",children:[(0,l.jsx)(m.WooHeaderNavigationItem.Slot,{fillProps:{isEmbedded:e,query:t}}),d?(0,l.jsx)(he.Text,{className:(0,z.A)("woocommerce-layout__header-heading",{"woocommerce-layout__header-left-align":o}),as:"h1",children:u?(0,l.jsx)(m.WooHeaderPageTitle.Slot,{fillProps:{isEmbedded:e,query:t}}):(0,ye.decodeEntities)(ge(r))}):(0,l.jsx)("div",{className:"woocommerce-layout__header-spacer","aria-hidden":"true"}),n,(0,l.jsx)(m.WooHeaderItem.Slot,{fillProps:{isEmbedded:e,query:t}}),s]})})},ve=({sections:e,query:t})=>{const{hasH1:r,hasScreenOptions:n,hasContextualHelp:o,activeMetaIcon:i,triggerMetaIcon:s}=(e=>{const t=()=>({hasH1:!!document.querySelector(".wrap > h1.wp-heading-inline"),hasScreenOptions:!!document.querySelector("#screen-options-link-wrap"),hasContextualHelp:!!document.querySelector("#contextual-help-link-wrap")}),[r,n]=(0,a.useState)(t);(0,a.useEffect)(()=>{n(t())},[e]);const{hasH1:o,hasScreenOptions:i,hasContextualHelp:s}=r,[c,l]=(0,a.useState)(null);return(0,a.useEffect)(()=>{const e=e=>{const t=e.target;t?.closest(".woocommerce-layout__activity-panel-tab")&&(document.querySelector('#show-settings-link[aria-expanded="true"]')?.click(),document.querySelector('#contextual-help-link[aria-expanded="true"]')?.click())};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[]),(0,a.useEffect)(()=>{if(!i&&!s)return void l(null);const e=document.querySelector("#show-settings-link"),t=document.querySelector("#contextual-help-link"),r=()=>{const r="true"===e?.getAttribute("aria-expanded"),n="true"===t?.getAttribute("aria-expanded");let o=null;r?o="screen-options":n&&(o="help"),l(o)};r();const n=new MutationObserver(r),o={attributes:!0,attributeFilter:["aria-expanded"]};return e&&n.observe(e,o),t&&n.observe(t,o),()=>n.disconnect()},[i,s]),{hasH1:o,hasScreenOptions:i,hasContextualHelp:s,activeMetaIcon:c,triggerMetaIcon:(e,t)=>{document.querySelector(".woocommerce-layout__activity-panel-tab.is-active")?.click();const r="screen-options"===e?"#contextual-help-link":"#show-settings-link",n=document.querySelector(`${r}[aria-expanded="true"]`),o=()=>document.querySelector(t)?.click();if(n){const e=new MutationObserver(()=>{"true"!==n.getAttribute("aria-expanded")&&(e.disconnect(),o())});e.observe(n,{attributes:!0,attributeFilter:["aria-expanded"]}),n.click()}else o()}}})(t),c=(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)(P.Button,{className:(0,z.A)("woocommerce-layout__header-meta-icon",{"is-active":"screen-options"===i}),label:(0,N.__)("Screen options","woocommerce"),"aria-expanded":"screen-options"===i,showTooltip:!0,onClick:()=>{(0,I.recordEvent)("header_meta_icon_click",{icon:"screen-options",action:"screen-options"===i?"close":"open"}),s("screen-options","#show-settings-link")},children:(0,l.jsx)(P.Icon,{icon:fe,size:18})}),o&&(0,l.jsx)(P.Button,{className:(0,z.A)("woocommerce-layout__header-meta-icon",{"is-active":"help"===i}),label:(0,N.__)("Help","woocommerce"),"aria-expanded":"help"===i,showTooltip:!0,onClick:()=>{(0,I.recordEvent)("header_meta_icon_click",{icon:"help",action:"help"===i?"close":"open"}),s("help","#contextual-help-link")},children:(0,l.jsx)(P.Icon,{icon:D,size:18})})]});return(0,l.jsx)(we,{isEmbedded:!0,query:t,sections:e,suppressTitle:r,compact:r,trailingItems:c})};var be=Fe(),_e=e=>Te(e,be),xe=Fe();_e.write=e=>Te(e,xe);var Se=Fe();_e.onStart=e=>Te(e,Se);var ke=Fe();_e.onFrame=e=>Te(e,ke);var Ee=Fe();_e.onFinish=e=>Te(e,Ee);var Ae=[];_e.setTimeout=(e,t)=>{const r=_e.now()+t,n=()=>{const e=Ae.findIndex(e=>e.cancel==n);~e&&Ae.splice(e,1),Oe-=~e?1:0},o={time:r,handler:e,cancel:n};return Ae.splice(Ce(r),0,o),Oe+=1,Ne(),o};var Ce=e=>~(~Ae.findIndex(t=>t.time>e)||~Ae.length);_e.cancel=e=>{Se.delete(e),ke.delete(e),Ee.delete(e),be.delete(e),xe.delete(e)},_e.sync=e=>{Ie=!0,_e.batchedUpdates(e),Ie=!1},_e.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,_e.onStart(r)}return n.handler=e,n.cancel=()=>{Se.delete(r),t=null},n};var je="undefined"!=typeof window?window.requestAnimationFrame:()=>{};_e.use=e=>je=e,_e.now="undefined"!=typeof performance?()=>performance.now():Date.now,_e.batchedUpdates=e=>e(),_e.catch=console.error,_e.frameLoop="always",_e.advance=()=>{"demand"!==_e.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Re()};var Pe=-1,Oe=0,Ie=!1;function Te(e,t){Ie?(t.delete(e),e(0)):(t.add(e),Ne())}function Ne(){Pe<0&&(Pe=0,"demand"!==_e.frameLoop&&je(Me))}function Me(){~Pe&&(je(Me),_e.batchedUpdates(Re))}function Re(){const e=Pe;Pe=_e.now();const t=Ce(Pe);t&&(Le(Ae.splice(0,t),e=>e.handler()),Oe-=t),Oe?(Se.flush(),be.flush(e?Math.min(64,Pe-e):16.667),ke.flush(),xe.flush(),Ee.flush()):Pe=-1}function Fe(){let e=new Set,t=e;return{add(r){Oe+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(Oe-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,Oe-=t.size,Le(t,t=>t(r)&&e.add(t)),Oe+=e.size,t=e)}}}function Le(e,t){e.forEach(e=>{try{t(e)}catch(e){_e.catch(e)}})}var De=Object.defineProperty,Ve={};function Ue(){}((e,t)=>{for(var r in t)De(e,r,{get:t[r],enumerable:!0})})(Ve,{assign:()=>et,colors:()=>Ye,createStringInterpolator:()=>We,skipAnimation:()=>Je,to:()=>Qe,willAdvance:()=>Xe});var Be={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function ze(e,t){if(Be.arr(e)){if(!Be.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var He=(e,t)=>e.forEach(t);function qe(e,t,r){if(Be.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var Ge=e=>Be.und(e)?[]:Be.arr(e)?e:[e];function $e(e,t){if(e.size){const r=Array.from(e);e.clear(),He(r,t)}}var We,Qe,Ke=(e,...t)=>$e(e,e=>e(...t)),Ze=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ye=null,Je=!1,Xe=Ue,et=e=>{e.to&&(Qe=e.to),e.now&&(_e.now=e.now),void 0!==e.colors&&(Ye=e.colors),null!=e.skipAnimation&&(Je=e.skipAnimation),e.createStringInterpolator&&(We=e.createStringInterpolator),e.requestAnimationFrame&&_e.use(e.requestAnimationFrame),e.batchedUpdates&&(_e.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Xe=e.willAdvance),e.frameLoop&&(_e.frameLoop=e.frameLoop)},tt=new Set,rt=[],nt=[],ot=0,it={get idle(){return!tt.size&&!rt.length},start(e){ot>e.priority?(tt.add(e),_e.onStart(at)):(st(e),_e(lt))},advance:lt,sort(e){if(ot)_e.onFrame(()=>it.sort(e));else{const t=rt.indexOf(e);~t&&(rt.splice(t,1),ct(e))}},clear(){rt=[],tt.clear()}};function at(){tt.forEach(st),tt.clear(),_e(lt)}function st(e){rt.includes(e)||ct(e)}function ct(e){rt.splice(function(t){const r=t.findIndex(t=>t.priority>e.priority);return r<0?t.length:r}(rt),0,e)}function lt(e){const t=nt;for(let r=0;r<rt.length;r++){const n=rt[r];ot=n.priority,n.idle||(Xe(n),n.advance(e),n.idle||t.push(n))}return ot=0,(nt=rt).length=0,(rt=t).length>0}var ut="[-+]?\\d*\\.?\\d+",dt=ut+"%";function pt(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var mt=new RegExp("rgb"+pt(ut,ut,ut)),ft=new RegExp("rgba"+pt(ut,ut,ut,ut)),ht=new RegExp("hsl"+pt(ut,dt,dt)),yt=new RegExp("hsla"+pt(ut,dt,dt,ut)),gt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,vt=/^#([0-9a-fA-F]{6})$/,bt=/^#([0-9a-fA-F]{8})$/;function _t(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function xt(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,o=2*r-n,i=_t(o,n,e+1/3),a=_t(o,n,e),s=_t(o,n,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function St(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function kt(e){return(parseFloat(e)%360+360)%360/360}function Et(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function At(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ct(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=vt.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ye&&void 0!==Ye[e]?Ye[e]:(t=mt.exec(e))?(St(t[1])<<24|St(t[2])<<16|St(t[3])<<8|255)>>>0:(t=ft.exec(e))?(St(t[1])<<24|St(t[2])<<16|St(t[3])<<8|Et(t[4]))>>>0:(t=gt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=bt.exec(e))?parseInt(t[1],16)>>>0:(t=wt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ht.exec(e))?(255|xt(kt(t[1]),At(t[2]),At(t[3])))>>>0:(t=yt.exec(e))?(xt(kt(t[1]),At(t[2]),At(t[3]))|Et(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var jt=(e,t,r)=>{if(Be.fun(e))return e;if(Be.arr(e))return jt({range:e,output:t,extrapolate:r});if(Be.str(e.output[0]))return We(e);const n=e,o=n.output,i=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,i);return function(e,t,r,n,o,i,a,s,c){let l=c?c(e):e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>r){if("identity"===s)return l;"clamp"===s&&(l=r)}return n===o?n:t===r?e<=t?n:o:(t===-1/0?l=-l:r===1/0?l-=t:l=(l-t)/(r-t),l=i(l),n===-1/0?l=-l:o===1/0?l+=n:l=l*(o-n)+n,l)}(e,i[t],i[t+1],o[t],o[t+1],c,a,s,n.map)}},Pt=1.70158,Ot=1.525*Pt,It=Pt+1,Tt=2*Math.PI/3,Nt=2*Math.PI/4.5,Mt=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},Rt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>It*e*e*e-Pt*e*e,easeOutBack:e=>1+It*Math.pow(e-1,3)+Pt*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ot)/2:(Math.pow(2*e-2,2)*((Ot+1)*(2*e-2)+Ot)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Tt),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Tt)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Nt)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Nt)/2+1,easeInBounce:e=>1-Mt(1-e),easeOutBounce:Mt,easeInOutBounce:e=>e<.5?(1-Mt(1-2*e))/2:(1+Mt(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e;return o=("end"===t?Math.floor(n):Math.ceil(n))/e,Math.min(Math.max(o,0),1);var o}},Ft=Symbol.for("FluidValue.get"),Lt=Symbol.for("FluidValue.observers"),Dt=e=>Boolean(e&&e[Ft]),Vt=e=>e&&e[Ft]?e[Ft]():e,Ut=e=>e[Lt]||null;function Bt(e,t){const r=e[Lt];r&&r.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var zt=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ht(this,e)}},Ht=(e,t)=>Wt(e,Ft,t);function qt(e,t){if(e[Ft]){let r=e[Lt];r||Wt(e,Lt,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Gt(e,t){const r=e[Lt];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Lt]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var $t,Wt=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Qt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Kt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Zt=new RegExp(`(${Qt.source})(%|[a-z]+)`,"i"),Yt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Jt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Xt=e=>{const[t,r]=er(e);if(!t||Ze())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(r)||e}return r&&Jt.test(r)?Xt(r):r||e},er=e=>{const t=Jt.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},tr=(e,t,r,n,o)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${o})`,rr=e=>{$t||($t=Ye?new RegExp(`(${Object.keys(Ye).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>Vt(e).replace(Jt,Xt).replace(Kt,Ct).replace($t,Ct)),r=t.map(e=>e.match(Qt).map(Number)),n=r[0].map((e,t)=>r.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>jt({...e,output:t}));return e=>{const r=!Zt.test(t[0])&&t.find(e=>Zt.test(e))?.replace(Qt,"");let o=0;return t[0].replace(Qt,()=>`${n[o++](e)}${r||""}`).replace(Yt,tr)}},nr="react-spring: ",or=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${nr}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},ir=or(console.warn),ar=or(console.warn);function sr(e){return Be.str(e)&&("#"==e[0]||/\d/.test(e)||!Ze()&&Jt.test(e)||e in(Ye||{}))}var cr=Ze()?Z.useEffect:Z.useLayoutEffect;function lr(){const e=(0,Z.useState)()[1],t=(()=>{const e=(0,Z.useRef)(!1);return cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var ur=e=>(0,Z.useEffect)(e,dr),dr=[],pr=Symbol.for("Animated:node"),mr=e=>e&&e[pr],fr=(e,t)=>{return r=e,n=pr,o=t,Object.defineProperty(r,n,{value:o,writable:!0,configurable:!0});var r,n,o},hr=e=>e&&e[pr]&&e[pr].getPayload(),yr=class{constructor(){fr(this,this)}getPayload(){return this.payload||[]}},gr=class extends yr{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Be.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new gr(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Be.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Be.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},wr=class extends gr{constructor(e){super(0),this._string=null,this._toString=jt({output:[e,e]})}static create(e){return new wr(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Be.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=jt({output:[this.getValue(),e]})),this._value=0,super.reset()}},vr={dependencies:null},br=class extends yr{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return qe(this.source,(r,n)=>{var o;(o=r)&&o[pr]===o?t[n]=r.getValue(e):Dt(r)?t[n]=Vt(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&He(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return qe(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){vr.dependencies&&Dt(e)&&vr.dependencies.add(e);const t=hr(e);t&&He(t,e=>this.add(e))}},_r=class extends br{constructor(e){super(e)}static create(e){return new _r(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,r)=>t.setValue(e[r])).some(Boolean):(super.setValue(e.map(xr)),!0)}};function xr(e){return(sr(e)?wr:gr).create(e)}function Sr(e){const t=mr(e);return t?t.constructor:Be.arr(e)?_r:sr(e)?wr:gr}var kr=(e,t)=>{const r=!Be.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Z.forwardRef)((n,o)=>{const i=(0,Z.useRef)(null),a=r&&(0,Z.useCallback)(e=>{i.current=function(e,t){return e&&(Be.fun(e)?e(t):e.current=t),t}(o,e)},[o]),[s,c]=function(e,t){const r=new Set;return vr.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new br(e),vr.dependencies=null,[e,r]}(n,t),l=lr(),u=()=>{const e=i.current;r&&!e||!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&l()},d=new Er(u,c),p=(0,Z.useRef)();cr(()=>(p.current=d,He(c,e=>qt(e,d)),()=>{p.current&&(He(p.current.deps,e=>Gt(e,p.current)),_e.cancel(p.current.update))})),(0,Z.useEffect)(u,[]),ur(()=>()=>{const e=p.current;He(e.deps,t=>Gt(t,e))});const m=t.getComponentProps(s.getValue());return Z.createElement(e,{...m,ref:a})})},Er=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&_e.write(this.update)}},Ar=Symbol.for("AnimatedComponent"),Cr=e=>Be.str(e)?e:e&&Be.str(e.displayName)?e.displayName:Be.fun(e)&&e.name||null;function jr(e,...t){return Be.fun(e)?e(...t):e}var Pr=(e,t)=>!0===e||!!(t&&e&&(Be.fun(e)?e(t):Ge(e).includes(t))),Or=(e,t)=>Be.obj(e)?t&&e[t]:e,Ir=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Tr=e=>e,Nr=(e,t=Tr)=>{let r=Mr;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const o of r){const r=t(e[o],o);Be.und(r)||(n[o]=r)}return n},Mr=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Rr={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Fr(e){const t=function(e){const t={};let r=0;if(qe(e,(e,n)=>{Rr[n]||(t[n]=e,r++)}),r)return t}(e);if(t){const r={to:t};return qe(e,(e,n)=>n in t||(r[n]=e)),r}return{...e}}function Lr(e){return e=Vt(e),Be.arr(e)?e.map(Lr):sr(e)?Ve.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Dr(e){return Be.fun(e)||Be.arr(e)&&Be.obj(e[0])}function Vr(e,t){e.ref?.delete(e),t?.delete(e)}var Ur={tension:170,friction:26,mass:1,damping:1,easing:Rt.linear,clamp:!1},Br=class{constructor(){this.velocity=0,Object.assign(this,Ur)}};function zr(e,t){if(Be.und(t.decay)){const r=!Be.und(t.tension)||!Be.und(t.friction);!r&&Be.und(t.frequency)&&Be.und(t.damping)&&Be.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}var Hr=[],qr=class{constructor(){this.changed=!1,this.values=Hr,this.toValues=null,this.fromValues=Hr,this.config=new Br,this.immediate=!1}};function Gr(e,{key:t,props:r,defaultProps:n,state:o,actions:i}){return new Promise((a,s)=>{let c,l,u=Pr(r.cancel??n?.cancel,t);if(u)m();else{Be.und(r.pause)||(o.paused=Pr(r.pause,t));let e=n?.pause;!0!==e&&(e=o.paused||Pr(e,t)),c=jr(r.delay||0,t),e?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(l),l.cancel(),c=l.time-_e.now()}function p(){c>0&&!Ve.skipAnimation?(o.delayed=!0,l=_e.setTimeout(m,c),o.pauseQueue.add(d),o.timeouts.add(l)):m()}function m(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(l),e<=(o.cancelId||0)&&(u=!0);try{i.start({...r,callId:e,cancel:u},a)}catch(e){s(e)}}})}var $r=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Kr(e.get()):t.every(e=>e.noop)?Wr(e.get()):Qr(e.get(),t.every(e=>e.finished)),Wr=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Qr=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Kr=e=>({value:e,cancelled:!0,finished:!1});function Zr(e,t,r,n){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:c}=r;return i||e!==s||t.reset?r.promise=(async()=>{r.asyncId=o,r.asyncTo=e;const l=Nr(t,(e,t)=>"onRest"===t?void 0:e);let u,d;const p=new Promise((e,t)=>(u=e,d=t)),m=e=>{const t=o<=(r.cancelId||0)&&Kr(n)||o!==r.asyncId&&Qr(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new Jr,a=new Xr;return(async()=>{if(Ve.skipAnimation)throw Yr(r),a.result=Qr(n,!1),d(a),a;m(i);const s=Be.obj(e)?{...e}:{...t,to:e};s.parentId=o,qe(l,(e,t)=>{Be.und(s[t])&&(s[t]=e)});const c=await n.start(s);return m(i),r.paused&&await new Promise(e=>{r.resumeQueue.add(e)}),c})()};let h;if(Ve.skipAnimation)return Yr(r),Qr(n,!1);try{let t;t=Be.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,n.stop.bind(n))),await Promise.all([t.then(u),p]),h=Qr(n.get(),!0,!1)}catch(e){if(e instanceof Jr)h=e.result;else{if(!(e instanceof Xr))throw e;h=e.result}}finally{o==r.asyncId&&(r.asyncId=i,r.asyncTo=i?s:void 0,r.promise=i?c:void 0)}return Be.fun(a)&&_e.batchedUpdates(()=>{a(h,n,n.item)}),h})():c}function Yr(e,t){$e(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Jr=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Xr=class extends Error{constructor(){super("SkipAnimationSignal")}},en=e=>e instanceof rn,tn=1,rn=class extends zt{constructor(){super(...arguments),this.id=tn++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=mr(this);return e&&e.getValue()}to(...e){return Ve.to(this,e)}interpolate(...e){return ir(`${nr}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ve.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Bt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||it.sort(this),Bt(this,{type:"priority",parent:this,priority:e})}},nn=Symbol.for("SpringPhase"),on=e=>(1&e[nn])>0,an=e=>(2&e[nn])>0,sn=e=>(4&e[nn])>0,cn=(e,t)=>t?e[nn]|=3:e[nn]&=-3,ln=(e,t)=>t?e[nn]|=4:e[nn]&=-5,un=class extends rn{constructor(e,t){if(super(),this.animation=new qr,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Be.und(e)||!Be.und(t)){const r=Be.obj(e)?{...e}:{...t,from:e};Be.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(an(this)||this._state.asyncTo)||sn(this)}get goal(){return Vt(this.animation.to)}get velocity(){const e=mr(this);return e instanceof gr?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return on(this)}get isAnimating(){return an(this)}get isPaused(){return sn(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:o}=n;const{config:i}=n,a=hr(n.to);!a&&Dt(n.to)&&(o=Ge(Vt(n.to))),n.values.forEach((s,c)=>{if(s.done)return;const l=s.constructor==wr?1:a?a[c].lastPosition:o[c];let u=n.immediate,d=l;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[c],o=null!=s.v0?s.v0:s.v0=Be.arr(i.velocity)?i.velocity[c]:i.velocity;let a;const p=i.precision||(r==l?.005:Math.min(1,.001*Math.abs(l-r)));if(Be.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);d=r+o/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=p,a=o*n}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||p/10,n=i.clamp?0:i.bounce,c=!Be.und(n),m=r==l?s.v0>0:r<l;let f,h=!1;const y=1,g=Math.ceil(e/y);for(let e=0;e<g&&(f=Math.abs(a)>t,f||(u=Math.abs(l-d)<=p,!u));++e)c&&(h=d==l||d>l==m,h&&(a=-a*n,d=l)),a+=(1e-6*-i.tension*(d-l)+.001*-i.friction*a)/i.mass*y,d+=a*y}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+i.easing(n)*(l-r),a=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[c].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(r=!0)});const s=mr(this),c=s.getValue();if(t){const e=Vt(n.to);c===e&&!r||i.decay?r&&i.decay&&this._onChange(c):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(c)}set(e){return _e.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(an(this)){const{to:e,config:t}=this.animation;_e.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return Be.und(e)?(r=this.queue||[],this.queue=[]):r=[Be.obj(e)?e:{...t,to:e}],Promise.all(r.map(e=>this._update(e))).then(e=>$r(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Yr(this._state,e&&this._lastCallId),_e.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=Be.obj(r)?r[t]:r,(null==r||Dr(r))&&(r=void 0),n=Be.obj(n)?n[t]:n,null==n&&(n=void 0);const o={to:r,from:n};return on(this)||(e.reverse&&([r,n]=[n,r]),n=Vt(n),Be.und(n)?mr(this)||this._set(r):this._set(n)),o}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,Nr(e,(e,t)=>/^on/.test(t)?Or(e,r):e)),yn(this,e,"onProps"),gn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Gr(++this._lastCallId,{key:r,props:e,defaultProps:n,state:i,actions:{pause:()=>{sn(this)||(ln(this,!0),Ke(i.pauseQueue),gn(this,"onPause",Qr(this,dn(this,this.animation.to)),this))},resume:()=>{sn(this)&&(ln(this,!1),an(this)&&this._resume(),Ke(i.resumeQueue),gn(this,"onResume",Qr(this,dn(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(r=>{if(e.loop&&r.finished&&(!t||!r.noop)){const t=pn(e);if(t)return this._update(t,!0)}return r})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(Kr(this));const n=!Be.und(e.to),o=!Be.und(e.from);if(n||o){if(!(t.callId>this._lastToId))return r(Kr(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:c,from:l}=s;let{to:u=c,from:d=l}=e;!o||n||t.default&&!Be.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!ze(d,l);p&&(s.from=d),d=Vt(d);const m=!ze(u,c);m&&this._focus(u);const f=Dr(t.to),{config:h}=s,{decay:y,velocity:g}=h;(n||o)&&(h.velocity=0),t.config&&!f&&function(e,t,r){r&&(zr(r={...r},t),t={...r,...t}),zr(e,t),Object.assign(e,t);for(const t in Ur)null==e[t]&&(e[t]=Ur[t]);let{frequency:n,damping:o}=e;const{mass:i}=e;Be.und(n)||(n<.01&&(n=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/n,2)*i,e.friction=4*Math.PI*o*i/n)}(h,jr(t.config,i),t.config!==a.config?jr(a.config,i):void 0);let w=mr(this);if(!w||Be.und(u))return r(Qr(this,!0));const v=Be.und(t.reset)?o&&!t.default:!Be.und(d)&&Pr(t.reset,i),b=v?d:this.get(),_=Lr(u),x=Be.num(_)||Be.arr(_)||sr(_),S=!f&&(!x||Pr(a.immediate||t.immediate,i));if(m){const e=Sr(u);if(e!==w.constructor){if(!S)throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`);w=this._set(_)}}const k=w.constructor;let E=Dt(u),A=!1;if(!E){const e=v||!on(this)&&p;(m||e)&&(A=ze(Lr(b),_),E=!A),(ze(s.immediate,S)||S)&&ze(h.decay,y)&&ze(h.velocity,g)||(E=!0)}if(A&&an(this)&&(s.changed&&!v?E=!0:E||this._stop(c)),!f&&((E||Dt(c))&&(s.values=w.getPayload(),s.toValues=Dt(u)?null:k==wr?[1]:Ge(_)),s.immediate!=S&&(s.immediate=S,S||v||this._set(c)),E)){const{onRest:e}=s;He(hn,e=>yn(this,t,e));const n=Qr(this,dn(this,c));Ke(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&_e.batchedUpdates(()=>{s.changed=!v,e?.(n,this),v?jr(a.onRest,n):s.onStart?.(n,this)})}v&&this._set(b),f?r(Zr(t.to,t,this._state,this)):E?this._start():an(this)&&!m?this._pendingCalls.add(r):r(Wr(b))}_focus(e){const t=this.animation;e!==t.to&&(Ut(this)&&this._detach(),t.to=e,Ut(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Dt(t)&&(qt(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Dt(e)&&Gt(e,this)}_set(e,t=!0){const r=Vt(e);if(!Be.und(r)){const e=mr(this);if(!e||!ze(r,e.getValue())){const n=Sr(r);e&&e.constructor==n?e.setValue(r):fr(this,n.create(r)),e&&_e.batchedUpdates(()=>{this._onChange(r,t)})}}return mr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gn(this,"onStart",Qr(this,dn(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),jr(this.animation.onChange,e,this)),jr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;mr(this).reset(Vt(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),an(this)||(cn(this,!0),sn(this)||this._resume())}_resume(){Ve.skipAnimation?this.finish():it.start(this)}_stop(e,t){if(an(this)){cn(this,!1);const r=this.animation;He(r.values,e=>{e.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Bt(this,{type:"idle",parent:this});const n=t?Kr(this.get()):Qr(this.get(),dn(this,e??r.to));Ke(this._pendingCalls,n),r.changed&&(r.changed=!1,gn(this,"onRest",n,this))}}};function dn(e,t){const r=Lr(t);return ze(Lr(e.get()),r)}function pn(e,t=e.loop,r=e.to){const n=jr(t);if(n){const o=!0!==n&&Fr(n),i=(o||e).reverse,a=!o||o.reset;return mn({...e,loop:t,default:!1,pause:void 0,to:!i||Dr(r)?r:void 0,from:a?e.from:void 0,reset:a,...o})}}function mn(e){const{to:t,from:r}=e=Fr(e),n=new Set;return Be.obj(t)&&fn(t,n),Be.obj(r)&&fn(r,n),e.keys=n.size?Array.from(n):null,e}function fn(e,t){qe(e,(e,r)=>null!=e&&t.add(r))}var hn=["onStart","onRest","onChange","onPause","onResume"];function yn(e,t,r){e.animation[r]=t[r]!==Ir(t,r)?Or(t[r],e.key):void 0}function gn(e,t,...r){e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var wn=["onStart","onChange","onRest"],vn=1,bn=class{constructor(e,t){this.id=vn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(const t in e){const r=e[t];Be.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(mn(e)),this}start(e){let{queue:t}=this;return e?t=Ge(e).map(mn):this.queue=[],this._flush?this._flush(this,t):(En(this,t),function(e,t){return Promise.all(t.map(t=>_n(e,t))).then(t=>$r(e,t))}(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;He(Ge(t),t=>r[t].stop(!!e))}else Yr(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Be.und(e))this.start({pause:!0});else{const t=this.springs;He(Ge(e),e=>t[e].pause())}return this}resume(e){if(Be.und(e))this.start({pause:!1});else{const t=this.springs;He(Ge(e),e=>t[e].resume())}return this}each(e){qe(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,o=this._changed.size>0;(n&&!this._started||o&&!this._started)&&(this._started=!0,$e(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const i=!n&&this._started,a=o||i&&r.size?this.get():null;o&&t.size&&$e(t,([e,t])=>{t.value=a,e(t,this,this._item)}),i&&(this._started=!1,$e(r,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}_e.onFrame(this._onFrame)}};async function _n(e,t,r){const{keys:n,to:o,from:i,loop:a,onRest:s,onResolve:c}=t,l=Be.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Be.arr(o)||Be.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):He(wn,r=>{const n=t[r];if(Be.fun(n)){const o=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=o.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):o.set(n,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[r]=t[r])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ke(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(n||Object.keys(e.springs)).map(r=>e.springs[r].start(t)),m=!0===t.cancel||!0===Ir(t,"cancel");(u||m&&d.asyncId)&&p.push(Gr(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ue,resume:Ue,start(t,r){m?(Yr(d,e._lastAsyncId),r(Kr(e))):(t.onRest=s,r(Zr(u,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});const f=$r(e,await Promise.all(p));if(a&&f.finished&&(!r||!f.noop)){const r=pn(t,a,o);if(r)return En(e,[r]),_n(e,r,!0)}return c&&_e.batchedUpdates(()=>c(f,e,e.item)),f}function xn(e,t){const r={...e.springs};return t&&He(Ge(t),e=>{Be.und(e.keys)&&(e=mn(e)),Be.obj(e.to)||(e={...e,to:void 0}),kn(r,e,e=>Sn(e))}),function(e,t){qe(t,(t,r)=>{e.springs[r]||(e.springs[r]=t,qt(t,e))})}(e,r),r}function Sn(e,t){const r=new un;return r.key=e,t&&qt(r,t),r}function kn(e,t,r){t.keys&&He(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function En(e,t){He(t,t=>{kn(e.springs,t,t=>Sn(t,e))})}var An,Cn,jn=({children:e,...t})=>{const r=(0,Z.useContext)(Pn),n=t.pause||!!r.pause,o=t.immediate||!!r.immediate;t=function(e,t){const[r]=(0,Z.useState)(()=>({inputs:t,result:e()})),n=(0,Z.useRef)(),o=n.current;let i=o;return i?Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.inputs))||(i={inputs:t,result:e()}):i=r,(0,Z.useEffect)(()=>{n.current=i,o==r&&(r.inputs=r.result=void 0)},[i]),i.result}(()=>({pause:n,immediate:o}),[n,o]);const{Provider:i}=Pn;return Z.createElement(i,{value:t},e)},Pn=(An=jn,Cn={},Object.assign(An,Z.createContext(Cn)),An.Provider._context=An,An.Consumer._context=An,An);jn.Provider=Pn.Provider,jn.Consumer=Pn.Consumer;var On=()=>{const e=[],t=function(t){ar(`${nr}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const n=[];return He(e,(e,o)=>{if(Be.und(t))n.push(e.start());else{const i=r(t,e,o);i&&n.push(e.start(i))}}),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return He(e,e=>e.pause(...arguments)),this},t.resume=function(){return He(e,e=>e.resume(...arguments)),this},t.set=function(t){He(e,(e,r)=>{const n=Be.fun(t)?t(r,e):t;n&&e.set(n)})},t.start=function(t){const r=[];return He(e,(e,n)=>{if(Be.und(t))r.push(e.start());else{const o=this._getProps(t,e,n);o&&r.push(e.start(o))}}),r},t.stop=function(){return He(e,e=>e.stop(...arguments)),this},t.update=function(t){return He(e,(e,r)=>e.update(this._getProps(t,e,r))),this};const r=function(e,t,r){return Be.fun(e)?e(r,t):e};return t._getProps=r,t};var In=1,Tn=class extends rn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=jt(...t);const r=this._get(),n=Sr(r);fr(this,n.create(r))}advance(e){const t=this._get();ze(t,this.get())||(mr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Mn(this._active)&&Rn(this)}_get(){const e=Be.arr(this.source)?this.source.map(Vt):Ge(Vt(this.source));return this.calc(...e)}_start(){this.idle&&!Mn(this._active)&&(this.idle=!1,He(hr(this),e=>{e.done=!1}),Ve.skipAnimation?(_e.batchedUpdates(()=>this.advance()),Rn(this)):it.start(this))}_attach(){let e=1;He(Ge(this.source),t=>{Dt(t)&&qt(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){He(Ge(this.source),e=>{Dt(e)&&Gt(e,this)}),this._active.clear(),Rn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Ge(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function Nn(e){return!1!==e.idle}function Mn(e){return!e.size||Array.from(e).every(Nn)}function Rn(e){e.idle||(e.idle=!0,He(hr(e),e=>{e.done=!0}),Bt(e,{type:"idle",parent:e}))}Ve.assign({createStringInterpolator:rr,to:(e,t)=>new Tn(e,t)}),it.advance;const Fn=window.ReactDOM;var Ln=/^--/;function Dn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Ln.test(e)||Un.hasOwnProperty(e)&&Un[e]?(""+t).trim():t+"px"}var Vn={},Un={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bn=["Webkit","Ms","Moz","O"];Un=Object.keys(Un).reduce((e,t)=>(Bn.forEach(r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t]),e),Un);var zn=/^(matrix|translate|scale|rotate|skew)/,Hn=/^(translate)/,qn=/^(rotate|skew)/,Gn=(e,t)=>Be.num(e)&&0!==e?e+t:e,$n=(e,t)=>Be.arr(e)?e.every(e=>$n(e,t)):Be.num(e)?e===t:parseFloat(e)===t,Wn=class extends br{constructor({x:e,y:t,z:r,...n}){const o=[],i=[];(e||t||r)&&(o.push([e||0,t||0,r||0]),i.push(e=>[`translate3d(${e.map(e=>Gn(e,"px")).join(",")})`,$n(e,0)])),qe(n,(e,t)=>{if("transform"===t)o.push([e||""]),i.push(e=>[e,""===e]);else if(zn.test(t)){if(delete n[t],Be.und(e))return;const r=Hn.test(t)?"px":qn.test(t)?"deg":"";o.push(Ge(e)),i.push("rotate3d"===t?([e,t,n,o])=>[`rotate3d(${e},${t},${n},${Gn(o,r)})`,$n(o,0)]:e=>[`${t}(${e.map(e=>Gn(e,r)).join(",")})`,$n(e,t.startsWith("scale")?1:0)])}}),o.length&&(n.transform=new Qn(o,i)),super(n)}},Qn=class extends zt{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return He(this.inputs,(r,n)=>{const o=Vt(r[0]),[i,a]=this.transforms[n](Be.arr(o)?o:r.map(Vt));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){1==e&&He(this.inputs,e=>He(e,e=>Dt(e)&&qt(e,this)))}observerRemoved(e){0==e&&He(this.inputs,e=>He(e,e=>Dt(e)&&Gt(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Bt(this,e)}};Ve.assign({batchedUpdates:Fn.unstable_batchedUpdates,createStringInterpolator:rr,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Kn=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=e=>new br(e),getComponentProps:n=e=>e}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},i=e=>{const t=Cr(e)||"Anonymous";return(e=Be.str(e)?i[e]||(i[e]=kr(e,o)):e[Ar]||(e[Ar]=kr(e,o))).displayName=`Animated(${t})`,e};return qe(e,(t,r)=>{Be.arr(e)&&(r=Cr(t)),i[r]=i(t)}),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:n,style:o,children:i,scrollTop:a,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(t=>r||e.hasAttribute(t)?t:Vn[t]||(Vn[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==i&&(e.textContent=i);for(const t in o)if(o.hasOwnProperty(t)){const r=Dn(t,o[t]);Ln.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach((t,r)=>{e.setAttribute(t,u[r])}),void 0!==n&&(e.className=n),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==c&&e.setAttribute("viewBox",c)},createAnimatedStyle:e=>new Wn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),Zn=Kn.animated,Yn=o(20195);const Jn=window.wp.warning;var Xn=o.n(Jn);const eo=(0,a.forwardRef)(function({className:e,children:t,spokenMessage:r=t,politeness:n="polite",actions:o=[],onRemove:i=j.noop,icon:s=null,explicitDismiss:c=!1,onDismiss:u=null,__unstableHTML:d=!1},p){function m(e){e&&e.preventDefault&&e.preventDefault(),u(),i()}u=u||j.noop,function(e,t){const r="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)(()=>{r&&(0,Yn.speak)(r,t)},[r,t])}(r,n),(0,a.useEffect)(()=>{const e=setTimeout(()=>{c||(u(),i())},1e4);return()=>clearTimeout(e)},[c,u,i]);const f=(0,z.A)(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!c});o&&o.length>1&&(!0===globalThis.SCRIPT_DEBUG&&Xn()("Snackbar can only have 1 action, use Notice if your message require many messages"),o=[o[0]]);const h=(0,z.A)("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return!0===d&&(t=(0,l.jsx)(a.RawHTML,{children:t})),(0,l.jsx)("div",{ref:p,className:f,onClick:c?j.noop:m,tabIndex:"0",role:c?"":"button",onKeyPress:c?j.noop:m,"aria-label":c?"":(0,N.__)("Dismiss this notice","woocommerce"),children:(0,l.jsxs)("div",{className:h,children:[s&&(0,l.jsx)("div",{className:"components-snackbar__icon",children:s}),t,o.map(({label:e,onClick:t,url:r},n)=>(0,l.jsx)(P.Button,{href:r,isTertiary:!0,onClick:e=>function(e,t){e.stopPropagation(),i(),t&&t(e)}(e,t),className:"components-snackbar__action",children:e},n)),c&&(0,l.jsx)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:m,onKeyPress:m,children:"✕"})]})})}),to=function({notices:e,className:t,children:r,onRemove:n=j.noop,onRemove2:o=j.noop}){const i=(0,C.useReducedMotion)(),[s]=(0,a.useState)(()=>new WeakMap),c=function(e,t,r){const n=Be.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=n?n():t,p=(0,Z.useMemo)(()=>n||3==arguments.length?On():void 0,[]),m=Ge(e),f=[],h=(0,Z.useRef)(null),y=o?null:h.current;cr(()=>{h.current=f}),ur(()=>(He(f,e=>{p?.add(e.ctrl),e.ctrl.ref=p}),()=>{He(h.current,e=>{e.expired&&clearTimeout(e.expirationId),Vr(e.ctrl,p),e.ctrl.stop(!0)})}));const g=function(e,{key:t,keys:r=t},n){if(null===r){const t=new Set;return e.map(e=>{const r=n&&n.find(r=>r.item===e&&"leave"!==r.phase&&!t.has(r));return r?(t.add(r),r.key):In++})}return Be.und(r)?e:Be.fun(r)?e.map(r):Ge(r)}(m,n?n():t,y),w=o&&h.current||[];cr(()=>He(w,({ctrl:e,item:t,key:r})=>{Vr(e,p),jr(l,t,r)}));const v=[];if(y&&He(y,(e,t)=>{e.expired?(clearTimeout(e.expirationId),w.push(e)):~(t=v[t]=g.indexOf(e.key))&&(f[t]=e)}),He(m,(e,t)=>{f[t]||(f[t]={key:g[t],item:e,phase:"mount",ctrl:new bn},f[t].ctrl.item=e)}),v.length){let e=-1;const{leave:r}=n?n():t;He(v,(t,n)=>{const o=y[n];~t?(e=f.indexOf(o),f[e]={...o,item:m[t]}):r&&f.splice(++e,0,o)})}Be.fun(i)&&f.sort((e,t)=>i(e.item,t.item));let b=-a;const _=lr(),x=Nr(t),S=new Map,k=(0,Z.useRef)(new Map),E=(0,Z.useRef)(!1);He(f,(e,r)=>{const o=e.key,i=e.phase,l=n?n():t;let p,m;const f=jr(l.delay||0,o);if("mount"==i)p=l.enter,m="enter";else{const e=g.indexOf(o)<0;if("leave"!=i)if(e)p=l.leave,m="leave";else{if(!(p=l.update))return;m="update"}else{if(e)return;p=l.enter,m="enter"}}if(p=jr(p,e.item,r),p=Be.obj(p)?Fr(p):{to:p},!p.config){const t=d||x.config;p.config=jr(t,e.item,r,m)}b+=a;const w={...x,delay:f+b,ref:u,immediate:l.immediate,reset:!1,...p};if("enter"==m&&Be.und(w.from)){const o=n?n():t,i=Be.und(o.initial)||y?o.from:o.initial;w.from=jr(i,e.item,r)}const{onResolve:v}=w;w.onResolve=e=>{jr(v,e);const t=h.current,r=t.find(e=>e.key===o);if(r&&(!e.cancelled||"update"==r.phase)&&r.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if("leave"==r.phase){const t=jr(s,r.item);if(!1!==t){const n=!0===t?0:t;if(r.expired=!0,!e&&n>0)return void(n<=2147483647&&(r.expirationId=setTimeout(_,n)))}}e&&t.some(e=>e.expired)&&(k.current.delete(r),c&&(E.current=!0),_())}};const A=xn(e.ctrl,w);"leave"===m&&c?k.current.set(e,{phase:m,springs:A,payload:w}):S.set(e,{phase:m,springs:A,payload:w})});const A=(0,Z.useContext)(jn),C=function(e){const t=(0,Z.useRef)();return(0,Z.useEffect)(()=>{t.current=e}),t.current}(A),j=A!==C&&function(e){for(const t in e)return!0;return!1}(A);cr(()=>{j&&He(f,e=>{e.ctrl.start({default:A})})},[A]),He(S,(e,t)=>{if(k.current.size){const e=f.findIndex(e=>e.key===t.key);f.splice(e,1)}}),cr(()=>{He(k.current.size?k.current:S,({phase:e,payload:t},r)=>{const{ctrl:n}=r;r.phase=e,p?.add(n),j&&"enter"==e&&n.start({default:A}),t&&(function(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}(n,t.ref),!n.ref&&!p||E.current?(n.start(t),E.current&&(E.current=!1)):n.update(t))})},o?void 0:r);const P=e=>Z.createElement(Z.Fragment,null,f.map((t,r)=>{const{springs:n}=S.get(t)||t.ctrl,o=e({...n},t.item,t,r);return o&&o.type?Z.createElement(o.type,{...o.props,key:Be.str(t.key)||Be.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o}));return p?[P,p]:P}(e,{keys:e=>e.id,from:{opacity:0,height:0},enter:e=>async t=>await t({opacity:1,height:s.get(e).offsetHeight}),leave:()=>async e=>{await e({opacity:0}),await e({height:0})},immediate:i});t=(0,z.A)("components-snackbar-list",t);const u=e=>()=>{n(e.id),o(e.id)};return(0,l.jsxs)("div",{className:t,children:[r,(0,l.jsx)(l.Fragment,{children:c((e,t)=>(0,l.jsx)(Zn.div,{style:e,children:(0,l.jsx)("div",{className:"components-snackbar-list__notice-container",ref:e=>e&&s.set(t,e),children:(0,l.jsx)(eo,{...(0,j.omit)(t,["content"]),onRemove:u(t),children:t.content})})}))})]})},ro="woocommerce_admin_transient_notices_queue";function no(e){const{removeNotice:t}=(0,h.useDispatch)("core/notices"),{createNotice:r,removeNotice:n}=(0,h.useDispatch)("core/notices2"),{updateOptions:o}=(0,h.useDispatch)(y.optionsStore),{currentUser:i={},notices:s=[],notices2:c=[],noticesQueue:u={}}=(0,h.useSelect)(e=>({currentUser:e(y.userStore).getCurrentUser(),notices:e("core/notices").getNotices(),notices2:e("core/notices2").getNotices(),noticesQueue:e(y.optionsStore).getOption(ro)}));(0,a.useEffect)(()=>{Object.values(u).filter(e=>e.user_id===i.id||!e.user_id).forEach(e=>{const t=(0,p.applyFilters)("woocommerce_admin_queued_notice_filter",e);r(t.status,t.content,{onDismiss:()=>{(e=>{const t={...u};delete t[e],o({[ro]:t})})(t.id)},...t.options||{}})})},[]);const{className:d}=e,f=(0,z.A)("woocommerce-transient-notices","components-notices__snackbar",d),g=s.concat(c);return(0,l.jsx)(m.WooFooterItem,{children:(0,l.jsx)(to,{notices:g,className:f,onRemove:t,onRemove2:n})})}function oo(){return window.innerHeight+window.scrollY>=document.body.scrollHeight}const io=()=>{const e=(0,he.useSlot)(m.WC_FOOTER_SLOT_NAME),t=Boolean(e?.fills?.length),{atBottom:r}=function(){const[e,t]=(0,a.useState)(!1),[r,n]=(0,a.useState)(oo()),o=(0,a.useRef)(null);return(0,a.useEffect)(()=>{const e=()=>{t(window.pageYOffset>20),n(oo())},r=()=>{o.current=window.requestAnimationFrame(e)};return window.addEventListener("scroll",r),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.cancelAnimationFrame(o.current)}},[]),{isScrolled:e,atBottom:r,atTop:!e}}();return t?(0,l.jsx)("div",{className:(0,z.A)("woocommerce-layout__footer",{"at-bottom":r}),children:(0,l.jsx)(m.WooFooterItem.Slot,{})}):null},ao=(0,d.Qk)("dataEndpoints"),so=(0,C.compose)((0,d.Qk)("preloadOptions")?(0,y.withOptionsHydration)({...(0,d.Qk)("preloadOptions")}):j.identity,(0,y.withPluginsHydration)({...(0,d.Qk)("plugins",{}),jetpackStatus:ao&&ao.jetpackStatus||!1}))(()=>{const e=(0,d.Qk)("embedBreadcrumbs",[]);var t;t={breadcrumbs:e},(0,a.useEffect)(()=>{if(!t.path)return;const e=`woocommerce-admin-page_${"/"===(r=t.path)?"_home":r.replace(/:[a-zA-Z?]+/g,function(e){return(t=e,t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)).replace(":","");var t}).replace(/\//g,"_")}`;var r;return document.body.classList.add(e),()=>{document.body.classList.remove(e)}},[t.path]),(0,a.useEffect)(()=>{const e=document.location.pathname+document.location.search;(0,I.recordPageView)(e,{is_embedded:!0})},[]);const r=(0,O.getQuery)();return(0,l.jsx)(m.LayoutContextProvider,{value:(0,m.getLayoutContextValue)(["page"]),children:(0,l.jsxs)(P.SlotFillProvider,{children:[(0,l.jsxs)("div",{className:"woocommerce-layout",children:[(0,l.jsx)(ve,{sections:(0,j.isFunction)(e)?e({}):e,query:r}),(0,l.jsx)(no,{}),(0,l.jsx)(io,{}),(0,l.jsx)(i.CustomerEffortScoreModalContainer,{})]}),(0,l.jsx)(T.PluginArea,{scope:"woocommerce-admin"})]})})});var co=(0,l.jsx)(R.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(R.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})});const lo="wc/marketing",uo="/wc-admin/marketing",po=window.wp.dataControls,mo={SET_INSTALLED_PLUGINS:"SET_INSTALLED_PLUGINS",SET_ACTIVATING_PLUGIN:"SET_ACTIVATING_PLUGIN",REMOVE_ACTIVATING_PLUGIN:"REMOVE_ACTIVATING_PLUGIN",SET_RECOMMENDED_PLUGINS:"SET_RECOMMENDED_PLUGINS",INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN:"INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN",SET_BLOG_POSTS:"SET_BLOG_POSTS",SET_MISC_RECOMMENDATIONS:"SET_MISC_RECOMMENDATIONS",SET_ERROR:"SET_ERROR"};function fo(e){return{type:mo.SET_INSTALLED_PLUGINS,plugins:e}}function ho(e){return{type:mo.SET_ACTIVATING_PLUGIN,pluginSlug:e}}function yo(e){return{type:mo.REMOVE_ACTIVATING_PLUGIN,pluginSlug:e}}function go(e,t){return{type:mo.SET_RECOMMENDED_PLUGINS,data:{plugins:e,category:t}}}function wo(e){return{type:mo.SET_MISC_RECOMMENDATIONS,data:{miscRecommendations:e}}}function vo(e,t){return{type:mo.SET_BLOG_POSTS,data:{posts:e,category:t}}}function bo(e,t){const{createNotice:r}=(0,h.dispatch)("core/notices");r("error",t),console.log(e)}function _o(e,t){return{type:mo.SET_ERROR,category:e,error:t}}function*xo(e){try{const t=yield(0,po.apiFetch)({path:`${uo}/overview/installed-plugins`});if(!t)throw new Error;yield fo(t),yield yo(e)}catch(e){yield bo(e,(0,N.__)("There was an error loading installed extensions.","woocommerce"))}}function*So(e){const{createNotice:t}=(0,h.dispatch)("core/notices");yield ho(e);try{if(!(yield(0,po.apiFetch)({path:uo+"/overview/activate-plugin",method:"POST",data:{plugin:e}})))throw new Error;yield t("success",(0,N.__)("The extension has been successfully activated.","woocommerce")),yield xo(e)}catch(t){yield bo(t,(0,N.__)("There was an error trying to activate the extension.","woocommerce")),yield yo(e)}return!0}function*ko(e,t){return{type:mo.INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN,data:{pluginSlug:e,category:t}}}function Eo(e){return e.installedPlugins}function Ao(e){return e.activatingPlugins}function Co(e,t){return e.recommendedPlugins[t]||[]}function jo(e){return e.miscRecommendations}function Po(e,t){return e.blogPosts[t]||[]}function Oo(e,t){return e.errors.blogPosts&&e.errors.blogPosts[t]}function*Io(e){try{const t=yield e?`&category=${e}`:"",r=yield(0,po.apiFetch)({path:`${uo}/recommended?per_page=50${t}`});if(!r)throw new Error;yield go(r,e)}catch(e){yield bo(e,(0,N.__)("There was an error loading recommended extensions.","woocommerce"))}}function*To(){try{const e=yield(0,po.apiFetch)({path:`${uo}/misc-recommendations`});if(!e)throw new Error;yield wo(e)}catch(e){yield bo(e,(0,N.__)("There was an error loading misc recommendations","woocommerce"))}}function*No(e){try{const t=yield e?`?category=${e}`:"",r=yield(0,po.apiFetch)({path:`${uo}/knowledge-base${t}`,method:"GET"});if(!r)throw new Error;yield vo(r,e)}catch(t){yield _o(e,t)}}const{installedExtensions:Mo}=(0,d.Qk)("marketing",{}),Ro={installedPlugins:Mo,activatingPlugins:[],recommendedPlugins:{},miscRecommendations:[],blogPosts:{},errors:{}},Fo=(0,h.createReduxStore)(lo,{actions:e,selectors:t,resolvers:r,controls:po.controls,reducer:(e=Ro,t)=>{switch(t.type){case mo.SET_INSTALLED_PLUGINS:return{...e,installedPlugins:t.plugins};case mo.SET_ACTIVATING_PLUGIN:return{...e,activatingPlugins:[...e.activatingPlugins,t.pluginSlug]};case mo.REMOVE_ACTIVATING_PLUGIN:return{...e,activatingPlugins:(0,j.without)(e.activatingPlugins,t.pluginSlug)};case mo.SET_RECOMMENDED_PLUGINS:return{...e,recommendedPlugins:{...e.recommendedPlugins,[t.data.category]:t.data.plugins}};case mo.INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN:const r=e.recommendedPlugins[t.data.category]?.filter(e=>e.product!==t.data.pluginSlug);return{...e,recommendedPlugins:{...e.recommendedPlugins,[t.data.category]:r}};case mo.SET_BLOG_POSTS:return{...e,blogPosts:{...e.blogPosts,[t.data.category]:t.data.posts}};case mo.SET_MISC_RECOMMENDATIONS:return{...e,miscRecommendations:t.data.miscRecommendations};case mo.SET_ERROR:return{...e,errors:{...e.errors,blogPosts:{...e.errors.blogPosts,[t.category]:t.error}}};default:return e}}});(0,h.register)(Fo);const Lo="order_attribution_install_banner_dismissed",Do="woocommerce_remote_variant_assignment",Vo="order-attribution-install-banner",Uo="order-attribution-install-banner-small",Bo="order-attribution-install-banner-header";var zo=o(11569);const Ho=({bannerImage:e=null,bannerType:t="order-attribution-install-banner-big",eventContext:r="analytics-overview",dismissable:n=!1,badgeText:o="",title:i="",description:s="",buttonText:c=""})=>{const[u,d]=(0,a.useState)(!1),{isDismissed:p,dismiss:m,shouldShowBanner:f}=(({isInstalling:e})=>{const{currentUserCan:t}=(0,y.useUser)(),{[Lo]:r,updateUserPreferences:n}=(0,y.useUserPreferences)(),{canUserInstallPlugins:o,orderAttributionInstallState:i}=(0,h.useSelect)(e=>{const{getPluginInstallState:r}=e(y.pluginsStore);return{orderAttributionInstallState:r("woocommerce-analytics"),canUserInstallPlugins:t("install_plugins")}},[t]),{loading:s,isBannerDismissed:c,remoteVariantAssignment:l}=(0,h.useSelect)(e=>{const{getOption:t,hasFinishedResolution:n}=e(y.optionsStore);return{loading:!n("getOption",[Do]),isBannerDismissed:r,remoteVariantAssignment:t(Do)}},[r]),{loadingRecommendations:u,recommendations:d}=(0,h.useSelect)(e=>{const{getMiscRecommendations:t,hasFinishedResolution:r}=e(lo);return{loadingRecommendations:!o||!r("getMiscRecommendations"),recommendations:o?t():[]}},[o]),p=(0,a.useMemo)(()=>{if(u||!Array.isArray(d)||0===d.length)return null;for(const e of d)if("woocommerce-analytics"===e.id)return e?.order_attribution_promotion_percentage||null;return null},[u,d]),m=(0,a.useCallback)(()=>!(!o||s)&&(!!e||!["installed","activated"].includes(i)&&((e,t)=>{if(e=parseInt(e,10),isNaN(e))return!1;const r=(e=>{Array.isArray(e)&&0!==e.length||(e=[["9.7",10],["9.6",10],["9.5",1]]),e.sort((e,t)=>parseFloat(t[0])-parseFloat(e[0]));for(let[t,r]of e)if((0,Y.isWcVersion)(t,">="))return r=parseInt(r,10),isNaN(r)?12:r/100*120;return 12})(t);return e<=r})(l,p)),[s,o,i,l,p,e]);return{loading:s,isDismissed:"yes"===c,dismiss:(e="analytics-overview")=>{n({[Lo]:"yes"}),(0,I.recordEvent)("order_attribution_install_banner_dismissed",{path:(0,O.getPath)(),context:e})},shouldShowBanner:m()}})({isInstalling:u}),{installAndActivatePlugins:g}=(0,h.useDispatch)(y.pluginsStore),w=()=>{d(!0),(0,I.recordEvent)("order_attribution_install_banner_clicked",{path:(0,O.getPath)(),context:r}),g(["woocommerce-analytics"]).then(e=>{window.location.href="admin.php?page=wc-admin&path=/analytics/order-attribution",(0,zo.R)(e)}).catch(e=>{(0,zo.R)(e),d(!1)})},v=(0,a.useCallback)(()=>t===Bo?f&&p:n?f&&!p:f,[t,f,p,n])();if((0,a.useEffect)(()=>{v&&(0,I.recordEvent)("order_attribution_install_banner_viewed",{path:(0,O.getPath)(),context:r})},[r,v]),!v)return null;if(t===Bo)return(0,l.jsx)(P.Button,{className:"woocommerce-order-attribution-install-header-banner",variant:"secondary",icon:co,size:"default",onClick:w,isBusy:u,disabled:u,children:(0,N.__)("Try Order Attribution","woocommerce")});const b=t===Uo;return(0,l.jsx)(P.Card,{size:"medium",className:"woocommerce-order-attribution-install-banner "+(b?"small":""),children:(0,l.jsxs)(P.CardBody,{className:"woocommerce-order-attribution-install-banner__body "+(b?"small":""),children:[(0,l.jsx)("div",{className:"woocommerce-order-attribution-install-banner__image_container",children:e}),(0,l.jsxs)("div",{className:"woocommerce-order-attribution-install-banner__text_container "+(b?"small":""),children:[o&&(0,l.jsx)("div",{className:"woocommerce-order-attribution-install-banner__text-badge",children:(0,l.jsx)(he.Text,{className:"woocommerce-order-attribution-install-banner__text-description",as:"p",size:"12",align:"center",children:o})}),i&&(0,l.jsx)(he.Text,{className:"woocommerce-order-attribution-install-banner__text-title",as:"p",size:"16",children:i}),s&&(0,l.jsx)(he.Text,{className:"woocommerce-order-attribution-install-banner__text-description",as:"p",size:"12",children:s}),(0,l.jsxs)("div",{children:[(0,l.jsx)(P.Button,{className:b?"small":"",variant:b?"secondary":"primary",onClick:w,iconPosition:b?"right":null,isBusy:u,disabled:u,children:c}),n&&(0,l.jsx)(P.Button,{variant:"tertiary",onClick:()=>m(r),disabled:u,children:(0,N.__)("Dismiss","woocommerce")})]})]})]})})},{Slot:qo,Fill:Go}=(0,P.createSlotFill)("__EXPERIMENTAL__WcAdminOrderAttributionSlots"),$o=()=>(0,l.jsx)(Go,{children:(0,l.jsx)(Ho,{eventContext:"order-editor-order-attribution-metabox",bannerType:Uo,description:(0,N.__)("View all of your orders in our new Order Attribution extension.","woocommerce"),buttonText:(0,N.__)("Install the extension","woocommerce")})}),Wo=c()("wc-admin:client"),Qo=(e,t,r)=>{try{((e,t,r)=>{let n=(0,y.withSettingsHydration)(r,window.wcSettings?.admin)(so);t&&(n=(0,y.withCurrentUserHydration)(t)(n)),(0,a.createRoot)(e).render((0,l.jsx)(n,{}))})(e,t,r),e.classList.remove("is-embed-loading");const n=document.getElementById("wpbody-content");if(!n)return Wo("WP Body content element not found"),!1;const o=(e=>e.querySelector(".wrap.woocommerce")||document.querySelector("#wpbody-content > .woocommerce")||e.querySelector(".wrap")||(Wo("Wrap element not found"),null))(n);return!!o&&(((e,t)=>{const r=document.createElement("div");r.className="woocommerce-layout",(0,a.createRoot)(e.insertBefore(r,t)).render((0,l.jsx)(A,{}))})(n,o),((e,t)=>{const r=document.createElement("div");(0,a.createRoot)(e.insertBefore(r,t.nextSibling)).render((0,l.jsx)(x,{}))})(n,o),(()=>{const e=document.getElementById("order-attribution-install-banner-slotfill");e&&(0,a.createRoot)(e).render((0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(P.SlotFillProvider,{children:[(0,l.jsx)(qo,{}),(0,l.jsx)(T.PluginArea,{scope:Vo})]})}))})(),(0,T.registerPlugin)("woocommerce-admin-order-editor-order-attribution-install-banner-slotfill",{scope:Vo,render:$o}),!0)}catch(e){console.error("Failed to initialize embedded layout:",e)}};(0,n.init)({errorRateLimitMs:6e4});const Ko=document.getElementById("woocommerce-embedded-root");if(Ko){const e="wc_admin";Qo(Ko,(0,d.Qk)("currentUserData"),e),(Zo=Ko)?(0,a.createRoot)(Zo.insertBefore(document.createElement("div"),null)).render((0,l.jsx)(i.CustomerEffortScoreTracksContainer,{})):u("Customer Effort Score Tracks root not found")}var Zo})(),(window.wc=window.wc||{}).embed={}})();