@shopify/cli 3.91.1 → 3.92.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/run.js +2 -2
- package/dist/assets/dev-console/extensions/dev-console/assets/{index-0hw3R_TS.css → index-DISeE29z.css} +1 -1
- package/dist/assets/dev-console/extensions/dev-console/assets/{index-C12jKScn.js → index-WDo4Zf8i.js} +10 -10
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/{chunk-5JYQJQ2E.js → chunk-42GAT4OC.js} +2 -2
- package/dist/{chunk-FKP67FZI.js → chunk-67BH5NUT.js} +3 -3
- package/dist/{chunk-RKFRXKFE.js → chunk-6FKKSH4P.js} +3 -3
- package/dist/{chunk-E4GUDBAR.js → chunk-6O2ILC2V.js} +17171 -13653
- package/dist/{chunk-OIUDJFV2.js → chunk-7H2O5J4R.js} +12 -5
- package/dist/{chunk-VUYVHHZY.js → chunk-7QAT7P3M.js} +4 -4
- package/dist/{chunk-Z5FK5H2M.js → chunk-AVEWTIFC.js} +7 -7
- package/dist/{chunk-VRUH5BDH.js → chunk-C74PXA4B.js} +4 -4
- package/dist/{chunk-E44JKFB6.js → chunk-CLJTWTB3.js} +2 -2
- package/dist/{chunk-K52ORY26.js → chunk-DM56XRBC.js} +7 -7
- package/dist/{chunk-77BDQRQW.js → chunk-E7IWFBAC.js} +6 -6
- package/dist/{chunk-TY5YKCUW.js → chunk-ESKZOJHR.js} +5 -5
- package/dist/{chunk-HTGTTXQL.js → chunk-EURIZXCA.js} +7 -17
- package/dist/{chunk-CEUL3KX5.js → chunk-EZZRDRCA.js} +7757 -6910
- package/dist/{chunk-SUFC4ISB.js → chunk-FESVG7HJ.js} +6 -6
- package/dist/{chunk-ZLV2A27J.js → chunk-FNFU6QXG.js} +2 -2
- package/dist/{chunk-PCNR4TMY.js → chunk-GUCQ3JUX.js} +5 -5
- package/dist/{chunk-EG6MBBEN.js → chunk-H4D3T5OG.js} +14 -1
- package/dist/{chunk-SJXHR42U.js → chunk-HG2B3F2E.js} +2 -2
- package/dist/{chunk-5ZDTGPNX.js → chunk-HOCBMVPF.js} +3 -3
- package/dist/{chunk-DUNGALP3.js → chunk-IJLB2OZD.js} +3 -3
- package/dist/{chunk-WDYPK6VH.js → chunk-JOUJHIPW.js} +5 -5
- package/dist/{chunk-QFO7QSBW.js → chunk-JW4Y5WPI.js} +4 -4
- package/dist/{chunk-I23GZAC4.js → chunk-KQU2IAXJ.js} +6 -7
- package/dist/{chunk-SVV4RJVX.js → chunk-LM5QFSME.js} +4 -4
- package/dist/{chunk-ATQVKUJC.js → chunk-M7TUKQMY.js} +4 -4
- package/dist/{chunk-RLJICWO6.js → chunk-NE5FI6FS.js} +4 -4
- package/dist/{chunk-LFMBIRVC.js → chunk-NG44KZZS.js} +3 -3
- package/dist/{chunk-HOIU6WRE.js → chunk-NK4SILXH.js} +3 -3
- package/dist/{chunk-IUKBWIQY.js → chunk-NQTUC6ZO.js} +3 -3
- package/dist/{chunk-HAG3HJ2V.js → chunk-O3GDENDY.js} +35 -47
- package/dist/{chunk-54FE2FGU.js → chunk-Q7FGFF32.js} +2 -2
- package/dist/{chunk-ITTNM7I4.js → chunk-QJQS7BBK.js} +2 -2
- package/dist/{chunk-DR5R5UTE.js → chunk-SMO4IV7V.js} +6 -6
- package/dist/{chunk-NYP3N62G.js → chunk-T5M3A5TW.js} +2 -2
- package/dist/{chunk-2YAGQHB2.js → chunk-TC5DUCXE.js} +3 -3
- package/dist/{chunk-XDCBS7SY.js → chunk-UL2FJ5NI.js} +3 -3
- package/dist/{chunk-KV3364EL.js → chunk-USGISM5H.js} +1 -1
- package/dist/{chunk-R622IPZN.js → chunk-WXB4MZ4Q.js} +3 -3
- package/dist/{chunk-K45ALTZ7.js → chunk-YDQVL7CP.js} +3 -3
- package/dist/{chunk-463KYFYO.js → chunk-YUJEBN2A.js} +2 -2
- package/dist/{chunk-TH7ZYYDZ.js → chunk-ZN7BY463.js} +1144 -79
- package/dist/{chunk-A2CZGTAP.js → chunk-ZVE6VSBX.js} +109 -165
- package/dist/cli/commands/auth/login.js +10 -10
- package/dist/cli/commands/auth/login.test.js +12 -12
- package/dist/cli/commands/auth/logout.js +10 -10
- package/dist/cli/commands/auth/logout.test.js +12 -12
- package/dist/cli/commands/cache/clear.js +11 -11
- package/dist/cli/commands/debug/command-flags.js +10 -10
- package/dist/cli/commands/docs/generate.js +10 -10
- package/dist/cli/commands/docs/generate.test.js +11 -11
- package/dist/cli/commands/doctor-release/doctor-release.js +10 -10
- package/dist/cli/commands/doctor-release/theme/index.js +16 -16
- package/dist/cli/commands/help.js +10 -10
- package/dist/cli/commands/kitchen-sink/async.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.js +13 -13
- package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +11 -11
- package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.js +11 -11
- package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
- package/dist/cli/commands/notifications/generate.js +11 -11
- package/dist/cli/commands/notifications/list.js +11 -11
- package/dist/cli/commands/search.js +11 -11
- package/dist/cli/commands/upgrade.js +11 -11
- package/dist/cli/commands/upgrade.test.js +1 -1
- package/dist/cli/commands/version.js +11 -11
- package/dist/cli/commands/version.test.js +12 -12
- package/dist/cli/services/commands/notifications.js +9 -9
- package/dist/cli/services/commands/search.js +5 -5
- package/dist/cli/services/commands/search.test.js +6 -6
- package/dist/cli/services/commands/version.js +6 -6
- package/dist/cli/services/commands/version.test.js +8 -8
- package/dist/cli/services/doctor-release/context.js +2 -2
- package/dist/cli/services/doctor-release/theme/runner.js +9 -9
- package/dist/cli/services/doctor-release/theme/tests/init.js +6 -6
- package/dist/cli/services/doctor-release/theme/tests/push.js +6 -6
- package/dist/cli/services/kitchen-sink/async.js +5 -5
- package/dist/cli/services/kitchen-sink/prompts.js +5 -5
- package/dist/cli/services/kitchen-sink/static.js +5 -5
- package/dist/{custom-oclif-loader-AAJZ7WBW.js → custom-oclif-loader-MKZUUH3S.js} +5 -5
- package/dist/{devtools-BAOTGU3O.js → devtools-PI7DMKVT.js} +4 -4
- package/dist/{error-handler-GSQRFK57.js → error-handler-STUDJHBV.js} +8 -8
- package/dist/hooks/postrun.js +8 -8
- package/dist/hooks/prerun.js +9 -9
- package/dist/index.js +68763 -58537
- package/dist/{lib-HAW436ZI.js → lib-R4TQWF6K.js} +3 -3
- package/dist/{local-GOP2BHNI.js → local-SJCC5BYA.js} +5 -5
- package/dist/{morph-7WAMUK6I.js → morph-32Y5BUJM.js} +9 -9
- package/dist/{node-package-manager-W4R4DUTE.js → node-package-manager-2L2NJGLS.js} +6 -6
- package/dist/{path-GB4VIEM6.js → path-H3TILUQU.js} +4 -2
- package/dist/{prettier-5ODD6NHV.js → prettier-4RCJTIXY.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-VRLRLHWH.js → ui-ER5WOAGG.js} +5 -5
- package/dist/{workerd-AO3T6IIJ.js → workerd-KQSXBLVM.js} +13 -13
- package/oclif.manifest.json +6 -6
- package/package.json +7 -59
- package/dist/chunk-2EQNSO7C.js +0 -142
- package/dist/cli/services/upgrade.d.ts +0 -5
- package/dist/cli/services/upgrade.js +0 -21
- package/dist/cli/services/upgrade.test.js +0 -171
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
function Ih(r,o){for(var l=0;l<o.length;l++){const a=o[l];if(typeof a!="string"&&!Array.isArray(a)){for(const c in a)if(c!=="default"&&!(c in r)){const u=Object.getOwnPropertyDescriptor(a,c);u&&Object.defineProperty(r,c,u.get?u:{enumerable:!0,get:()=>a[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function l(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(c){if(c.ep)return;c.ep=!0;const u=l(c);fetch(c.href,u)}})();function oi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ql={exports:{}},ge={};/*
|
|
1
|
+
function Ih(r,o){for(var l=0;l<o.length;l++){const a=o[l];if(typeof a!="string"&&!Array.isArray(a)){for(const c in a)if(c!=="default"&&!(c in r)){const u=Object.getOwnPropertyDescriptor(a,c);u&&Object.defineProperty(r,c,u.get?u:{enumerable:!0,get:()=>a[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function l(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(c){if(c.ep)return;c.ep=!0;const u=l(c);fetch(c.href,u)}})();const Ah="Developer Console",Fh="Close Developer Console",Bh={extensions:"Extensions"},zh={title:Ah,close:Fh,nav:Bh},Uh="_OuterContainer_15qjc_1",$h="_DevTool_15qjc_7",jh="_Header_15qjc_32",Hh="_HeaderContent_15qjc_42",qf=window.top&&new URLSearchParams(location.search).get("app-preview")==="true";function oi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ql={exports:{}},ge={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var Jl,Bc;function
|
|
5
|
+
*/var Jl,Bc;function Jf(){if(Bc)return Jl;Bc=1;var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function a(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function c(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var f={},p=0;p<10;p++)f["_"+String.fromCharCode(p)]=p;var h=Object.getOwnPropertyNames(f).map(function(y){return f[y]});if(h.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(y){g[y]=y}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jl=c()?Object.assign:function(u,f){for(var p,h=a(u),g,y=1;y<arguments.length;y++){p=Object(arguments[y]);for(var S in p)o.call(p,S)&&(h[S]=p[S]);if(r){g=r(p);for(var x=0;x<g.length;x++)l.call(p,g[x])&&(h[g[x]]=p[g[x]])}}return h},Jl}/** @license React v17.0.2
|
|
6
6
|
* react.production.min.js
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var zc;function Ah(){if(zc)return ge;zc=1;var r=qf(),o=60103,l=60106;ge.Fragment=60107,ge.StrictMode=60108,ge.Profiler=60114;var a=60109,c=60110,u=60112;ge.Suspense=60113;var f=60115,p=60116;if(typeof Symbol=="function"&&Symbol.for){var h=Symbol.for;o=h("react.element"),l=h("react.portal"),ge.Fragment=h("react.fragment"),ge.StrictMode=h("react.strict_mode"),ge.Profiler=h("react.profiler"),a=h("react.provider"),c=h("react.context"),u=h("react.forward_ref"),ge.Suspense=h("react.suspense"),f=h("react.memo"),p=h("react.lazy")}var g=typeof Symbol=="function"&&Symbol.iterator;function y(w){return w===null||typeof w!="object"?null:(w=g&&w[g]||w["@@iterator"],typeof w=="function"?w:null)}function S(w){for(var P="https://reactjs.org/docs/error-decoder.html?invariant="+w,K=1;K<arguments.length;K++)P+="&args[]="+encodeURIComponent(arguments[K]);return"Minified React error #"+w+"; visit "+P+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M={};function L(w,P,K){this.props=w,this.context=P,this.refs=M,this.updater=K||x}L.prototype.isReactComponent={},L.prototype.setState=function(w,P){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error(S(85));this.updater.enqueueSetState(this,w,P,"setState")},L.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function I(){}I.prototype=L.prototype;function N(w,P,K){this.props=w,this.context=P,this.refs=M,this.updater=K||x}var B=N.prototype=new I;B.constructor=N,r(B,L.prototype),B.isPureReactComponent=!0;var J={current:null},se=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};function ne(w,P,K){var te,A={},W=null,V=null;if(P!=null)for(te in P.ref!==void 0&&(V=P.ref),P.key!==void 0&&(W=""+P.key),P)se.call(P,te)&&!ee.hasOwnProperty(te)&&(A[te]=P[te]);var q=arguments.length-2;if(q===1)A.children=K;else if(1<q){for(var X=Array(q),oe=0;oe<q;oe++)X[oe]=arguments[oe+2];A.children=X}if(w&&w.defaultProps)for(te in q=w.defaultProps,q)A[te]===void 0&&(A[te]=q[te]);return{$$typeof:o,type:w,key:W,ref:V,props:A,_owner:J.current}}function me(w,P){return{$$typeof:o,type:w.type,key:P,ref:w.ref,props:w.props,_owner:w._owner}}function ve(w){return typeof w=="object"&&w!==null&&w.$$typeof===o}function de(w){var P={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(K){return P[K]})}var Se=/\/+/g;function we(w,P){return typeof w=="object"&&w!==null&&w.key!=null?de(""+w.key):P.toString(36)}function Ne(w,P,K,te,A){var W=typeof w;(W==="undefined"||W==="boolean")&&(w=null);var V=!1;if(w===null)V=!0;else switch(W){case"string":case"number":V=!0;break;case"object":switch(w.$$typeof){case o:case l:V=!0}}if(V)return V=w,A=A(V),w=te===""?"."+we(V,0):te,Array.isArray(A)?(K="",w!=null&&(K=w.replace(Se,"$&/")+"/"),Ne(A,P,K,"",function(oe){return oe})):A!=null&&(ve(A)&&(A=me(A,K+(!A.key||V&&V.key===A.key?"":(""+A.key).replace(Se,"$&/")+"/")+w)),P.push(A)),1;if(V=0,te=te===""?".":te+":",Array.isArray(w))for(var q=0;q<w.length;q++){W=w[q];var X=te+we(W,q);V+=Ne(W,P,K,X,A)}else if(X=y(w),typeof X=="function")for(w=X.call(w),q=0;!(W=w.next()).done;)W=W.value,X=te+we(W,q++),V+=Ne(W,P,K,X,A);else if(W==="object")throw P=""+w,Error(S(31,P==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":P));return V}function he(w,P,K){if(w==null)return w;var te=[],A=0;return Ne(w,te,"","",function(W){return P.call(K,W,A++)}),te}function H(w){if(w._status===-1){var P=w._result;P=P(),w._status=0,w._result=P,P.then(function(K){w._status===0&&(K=K.default,w._status=1,w._result=K)},function(K){w._status===0&&(w._status=2,w._result=K)})}if(w._status===1)return w._result;throw w._result}var R={current:null};function j(){var w=R.current;if(w===null)throw Error(S(321));return w}var D={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:r};return ge.Children={map:he,forEach:function(w,P,K){he(w,function(){P.apply(this,arguments)},K)},count:function(w){var P=0;return he(w,function(){P++}),P},toArray:function(w){return he(w,function(P){return P})||[]},only:function(w){if(!ve(w))throw Error(S(143));return w}},ge.Component=L,ge.PureComponent=N,ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,ge.cloneElement=function(w,P,K){if(w==null)throw Error(S(267,w));var te=r({},w.props),A=w.key,W=w.ref,V=w._owner;if(P!=null){if(P.ref!==void 0&&(W=P.ref,V=J.current),P.key!==void 0&&(A=""+P.key),w.type&&w.type.defaultProps)var q=w.type.defaultProps;for(X in P)se.call(P,X)&&!ee.hasOwnProperty(X)&&(te[X]=P[X]===void 0&&q!==void 0?q[X]:P[X])}var X=arguments.length-2;if(X===1)te.children=K;else if(1<X){q=Array(X);for(var oe=0;oe<X;oe++)q[oe]=arguments[oe+2];te.children=q}return{$$typeof:o,type:w.type,key:A,ref:W,props:te,_owner:V}},ge.createContext=function(w,P){return P===void 0&&(P=null),w={$$typeof:c,_calculateChangedBits:P,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider={$$typeof:a,_context:w},w.Consumer=w},ge.createElement=ne,ge.createFactory=function(w){var P=ne.bind(null,w);return P.type=w,P},ge.createRef=function(){return{current:null}},ge.forwardRef=function(w){return{$$typeof:u,render:w}},ge.isValidElement=ve,ge.lazy=function(w){return{$$typeof:p,_payload:{_status:-1,_result:w},_init:H}},ge.memo=function(w,P){return{$$typeof:f,type:w,compare:P===void 0?null:P}},ge.useCallback=function(w,P){return j().useCallback(w,P)},ge.useContext=function(w,P){return j().useContext(w,P)},ge.useDebugValue=function(){},ge.useEffect=function(w,P){return j().useEffect(w,P)},ge.useImperativeHandle=function(w,P,K){return j().useImperativeHandle(w,P,K)},ge.useLayoutEffect=function(w,P){return j().useLayoutEffect(w,P)},ge.useMemo=function(w,P){return j().useMemo(w,P)},ge.useReducer=function(w,P,K){return j().useReducer(w,P,K)},ge.useRef=function(w){return j().useRef(w)},ge.useState=function(w){return j().useState(w)},ge.version="17.0.2",ge}var Uc;function Va(){return Uc||(Uc=1,ql.exports=Ah()),ql.exports}var z=Va();const _=oi(z),Fh=Ih({__proto__:null,default:_},[z]),Jf=_.createContext(null),$c=_.createContext([]),ed=_.createContext(null);function jc(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,a)}return l}function ye(r){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?jc(Object(l),!0).forEach(function(a){zh(r,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):jc(Object(l)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(l,a))})}return r}function Hc(r,o,l,a,c,u,f){try{var p=r[u](f),h=p.value}catch(g){l(g);return}p.done?o(h):Promise.resolve(h).then(a,c)}function Bh(r){return function(){var o=this,l=arguments;return new Promise(function(a,c){var u=r.apply(o,l);function f(h){Hc(u,a,c,f,p,"next",h)}function p(h){Hc(u,a,c,f,p,"throw",h)}f(void 0)})}}function zh(r,o,l){return o in r?Object.defineProperty(r,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[o]=l,r}function Uh(r,o){if(r==null)return{};var l={},a=Object.keys(r),c,u;for(u=0;u<a.length;u++)c=a[u],!(o.indexOf(c)>=0)&&(l[c]=r[c]);return l}function ea(r,o){if(r==null)return{};var l=Uh(r,o),a,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(c=0;c<u.length;c++)a=u[c],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(r,a)&&(l[a]=r[a])}return l}function $h(r,o,l,a,c){var u={};return Object.keys(a).forEach(function(f){u[f]=a[f]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=l.slice().reverse().reduce(function(f,p){return p(r,o,f)||f},u),c&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(r,o,u),u=null),u}class jh{get loading(){return this.translationPromises.size>0}constructor(o,l={}){this.details=o,this.translationGetters=new Map,this.fallbacks=new Map,this.translations=new Map,this.asyncTranslationIds=new Set,this.subscriptions=new Map,this.translationPromises=new Map,this.idsToUpdate=new Set,this.enqueuedUpdate=void 0;for(const[a,c]of Object.entries(l))this.translations.set(a,c),this.asyncTranslationIds.add(a)}resolve(){var o=this;return Bh(function*(){yield Promise.all([...o.translationPromises.values()])})()}extract(){return[...this.asyncTranslationIds].reduce((o,l)=>ye(ye({},o),{},{[l]:this.translations.get(l)}),{})}register({id:o,translations:l,fallback:a}){if(this.fallbacks.has(o)||this.fallbacks.set(o,a),this.details.fallbackLocale!=null&&a!=null){const u=ta(o,this.details.fallbackLocale);this.translations.has(u)||this.translations.set(u,a)}if(this.translationGetters.has(o))return;const c=l?Vh(l):bh;this.setTranslations(o,c)}state(o){const{locale:l,fallbackLocale:a}=this.details,c=bc(l),u=a!=null&&c.includes(a);let f=!1,p=!1;const h=o.reduce((g,y)=>{const S=[];for(const x of c){const M=ta(y,x),L=this.translations.get(M);L==null?this.translationPromises.has(M)&&(p=!0):S.push(L)}if(S.length===0&&p&&(f=!0),!u){const x=this.fallbacks.get(y);x!=null&&S.push(x)}return[...g,...S]},[]);return{loading:f,translations:h}}subscribe(o,l){return this.subscriptions.set(l,o),()=>{this.subscriptions.delete(l)}}update(o){this.details=o;for(const[l,a]of this.translationGetters)this.setTranslations(l,a);for(const[l,a]of this.subscriptions)l(this.state(a),this.details)}setTranslations(o,l){this.translationGetters.set(o,l);for(const a of bc(this.details.locale)){const c=ta(o,a);if(this.translations.has(c))continue;const u=l(a);if(Hh(u)){const f=u.then(p=>{this.translationPromises.delete(c),this.translations.set(c,p),this.asyncTranslationIds.add(c),p!=null&&this.updateSubscribersForId(o)}).catch(()=>{this.translationPromises.delete(c),this.translations.set(c,void 0),this.asyncTranslationIds.add(c)});this.translationPromises.set(c,f)}else this.translations.set(c,u)}}updateSubscribersForId(o){if(this.idsToUpdate.add(o),this.enqueuedUpdate!=null)return;const a=typeof window<"u"?window.requestAnimationFrame:setImmediate;this.enqueuedUpdate=a(()=>{delete this.enqueuedUpdate;const c=[...this.idsToUpdate];this.idsToUpdate.clear();for(const[u,f]of this.subscriptions)f.some(p=>c.includes(p))&&u(this.state(f),this.details)})}}function bc(r){const o=r.split("-");return o.length>1?[`${o[0]}-${o[1].toUpperCase()}`,o[0]]:[r]}function Hh(r){return r!=null&&r.then!=null}function ta(r,o){return`${r}__${o}`}function bh(){}function Vh(r){return typeof r=="function"?r:o=>r[o]}function Vc(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,a)}return l}function Wc(r){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?Vc(Object(l),!0).forEach(function(a){Wh(r,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):Vc(Object(l)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(l,a))})}return r}function Wh(r,o,l){return o in r?Object.defineProperty(r,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[o]=l,r}function Wt(r,o,l,a,c){var u={};return Object.keys(a).forEach(function(f){u[f]=a[f]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=l.slice().reverse().reduce(function(f,p){return p(r,o,f)||f},u),c&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(r,o,u),u=null),u}const Gh=50;function td(r,o){const l=new WeakMap,a=new Map,c=[];return function(...f){if(typeof window>"u")return r.apply(this,f);const p=f.length===1&&typeof f[0]=="object"&&!o;let h;p?h=f[0]:o&&o instanceof Function?h=o(...f):h=f[0];const g=p?l:a;if(g.has(h))return g.get(h);const y=r.apply(this,f);if(p)l.set(h,y);else if(a.set(h,y),c.push(h),a.size>Gh){const S=c[0];a.delete(S),c.shift()}return y}}function St(r){return function(o,l,a){const{value:c}=a;return!c||!(c instanceof Function)?a:{get:function(){const f={configurable:!0,value:td(c,r)};return Object.defineProperty(this,l,f),f.value}}}}function Vo(r){return r.replace("","")}const na=new Map;function Gc(r,o){const l=Kh(r,o);if(na.has(l))return na.get(l);const a=new Intl.DateTimeFormat(r,o);return na.set(l,a),a}const Kc=Intl.DateTimeFormat("en",{hour:"numeric"}),Qc=typeof Kc.resolvedOptions>"u"?void 0:Kc.resolvedOptions();function Ct(r,o,l={}){if(Qc!=null&&l.hour12===!1&&Qc.hourCycle!=null&&(l.hour12=void 0,l.hourCycle="h23"),l.timeZone!=null&&l.timeZone==="Etc/GMT+12"){const c=new Date(r.valueOf()-432e5);return Gc(o,Wc(Wc({},l),{},{timeZone:"UTC"})).format(c)}return Gc(o,l).format(r)}function Kh(r,o={}){return`${Array.isArray(r)?r.sort().join("-"):r}-${JSON.stringify(o)}`}var Yc,Xc,Zc,qc,Jc,ef,tf,nf,_e;const ra=/(\d{2})/;function Wn(r,o){return{year:()=>an.getYear(r,o),month:()=>an.getMonth(r,o),day:()=>an.getDay(r,o),weekday:()=>an.getWeekday(r,o),hour:()=>an.getHour(r,o),minute:()=>an.getMinute(r,o),second:()=>an.getSecond(r,o)}}function Gt(r){return(o,l)=>`${r}-${o.toString()}-${l}`}var rf;(function(r){r.Monday="Monday",r.Tuesday="Tuesday",r.Wednesday="Wednesday",r.Thursday="Thursday",r.Friday="Friday",r.Saturday="Saturday",r.Sunday="Sunday"})(rf||(rf={}));const nd={Monday:0,Tuesday:1,Wednesday:2,Thursday:3,Friday:4,Saturday:5,Sunday:6};function Qh(r){return Object.keys(nd).some(o=>o===r)}function Yh(r){throw new Error(r)}function Xh(r){return Qh(r)?nd[r]:Yh(`Unexpected weekday: ${r}`)}let an=(Yc=St(Gt("year")),Xc=St(Gt("month")),Zc=St(Gt("day")),qc=St(Gt("weekday")),Jc=St(Gt("hour")),ef=St(Gt("minute")),tf=St(Gt("second")),nf=St(Gt("timePartsFallback")),_e=class Yo{static getYear(o,l){if(isNaN(o.valueOf()))throw new Error(`Unable to parse date: ${o} for timezone: ${l}`);const a=Ct(o,"en",{timeZone:l,year:"numeric"}),c=Vo(a),u=parseInt(c,10);if(isNaN(u))throw new Error(`Unable to parse year: '${a}'`);return u}static getMonth(o,l){const a=Ct(o,"en",{timeZone:l,month:"numeric"}),c=Vo(a),u=parseInt(c,10);if(isNaN(u))throw new Error(`Unable to parse month: '${a}'`);return u}static getDay(o,l){const a=Ct(o,"en",{timeZone:l,day:"numeric"}),c=Vo(a),u=parseInt(c,10);if(isNaN(u))throw new Error(`Unable to parse day: '${a}'`);return u}static getWeekday(o,l){const a=Ct(o,"en",{timeZone:l,weekday:"long"}),c=Vo(a);return Xh(c)}static getHour(o,l){const a=Ct(o,"en",{timeZone:l,hour12:!1,hour:"numeric"});let c=parseInt(a,10);return isNaN(c)&&(c=Yo.getTimePartsFallback(o,l).hour),c}static getMinute(o,l){const a=Ct(o,"en",{timeZone:l,minute:"numeric"});let c=parseInt(a,10);return isNaN(c)&&(c=Yo.getTimePartsFallback(o,l).minute),c}static getSecond(o,l){const a=Ct(o,"en",{timeZone:l,second:"numeric"});let c=parseInt(a,10);return isNaN(c)&&(c=Yo.getTimePartsFallback(o,l).second),c}static getTimePartsFallback(o,l){const a=Ct(o,"en",{timeZone:l,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),[c,u,f]=a.split(":"),p=new RegExp(ra).exec(c),h=new RegExp(ra).exec(u),g=new RegExp(ra).exec(f);if(p!=null&&h!=null&&g!=null){const y=parseInt(p[1],10),S=parseInt(h[1],10),x=parseInt(g[1],10);return{hour:y,minute:S,second:x}}throw new Error(`Unable to parse timeString: '${a}'`)}},Wt(_e,"getYear",[Yc],Object.getOwnPropertyDescriptor(_e,"getYear"),_e),Wt(_e,"getMonth",[Xc],Object.getOwnPropertyDescriptor(_e,"getMonth"),_e),Wt(_e,"getDay",[Zc],Object.getOwnPropertyDescriptor(_e,"getDay"),_e),Wt(_e,"getWeekday",[qc],Object.getOwnPropertyDescriptor(_e,"getWeekday"),_e),Wt(_e,"getHour",[Jc],Object.getOwnPropertyDescriptor(_e,"getHour"),_e),Wt(_e,"getMinute",[ef],Object.getOwnPropertyDescriptor(_e,"getMinute"),_e),Wt(_e,"getSecond",[tf],Object.getOwnPropertyDescriptor(_e,"getSecond"),_e),Wt(_e,"getTimePartsFallback",[nf],Object.getOwnPropertyDescriptor(_e,"getTimePartsFallback"),_e),_e),Tt;(function(r){r[r.Second=1e3]="Second",r[r.Minute=6e4]="Minute",r[r.Hour=36e5]="Hour",r[r.Day=864e5]="Day",r[r.Week=6048e5]="Week",r[r.Year=31536e6]="Year"})(Tt||(Tt={}));function pn(r,o=new Date){return o<r}function Zh(r,o=new Date){return!pn(r,o)&&o.getTime()-r.getTime()<Tt.Hour}function qh(r,o=new Date){return!pn(r,o)&&o.getTime()-r.getTime()<Tt.Minute}function Jh(r,o=new Date){return!pn(r,o)&&o.getTime()-r.getTime()<Tt.Week}function em(r,o=new Date){return pn(r,o)&&r.getTime()-o.getTime()<Tt.Week}function tm(r,o=new Date){return!pn(r,o)&&o.getTime()-r.getTime()<Tt.Year}function nm(r,o=new Date){return pn(r,o)&&r.getTime()-o.getTime()<Tt.Year}function rm(r,o,l){const{year:a}=Wn(r,l),{year:c}=Wn(o,l);return a()===c()}function om(r,o,l){const{month:a}=Wn(r,l),{month:c}=Wn(o,l);return rm(r,o,l)&&a()===c()}function Wa(r,o,l){const{day:a}=Wn(r,l),{day:c}=Wn(o,l);return om(r,o,l)&&a()===c()}function of(r,o){return Wa(r,new Date,o)}function im(r,o){const l=new Date,a=new Date(l.valueOf()-1440*60*1e3);return Wa(r,a,o)}function lm(r,o){const l=new Date,a=new Date(l.valueOf()+1440*60*1e3);return Wa(r,a,o)}function lf(r){const o=r.split("-")[1];return o&&o.toUpperCase()}function rd(r){return r.split("-")[0].toLowerCase()}const od=new Map([["a","α"],["b","ḅ"],["c","ͼ"],["d","ḍ"],["e","ḛ"],["f","ϝ"],["g","ḡ"],["h","ḥ"],["i","ḭ"],["j","ĵ"],["k","ḳ"],["l","ḽ"],["m","ṃ"],["n","ṇ"],["o","ṓ"],["p","ṗ"],["q","ʠ"],["r","ṛ"],["s","ṡ"],["t","ṭ"],["u","ṵ"],["v","ṽ"],["w","ẁ"],["x","ẋ"],["y","ẏ"],["z","ẓ"],["A","Ḁ"],["B","Ḃ"],["C","Ḉ"],["D","Ḍ"],["E","Ḛ"],["F","Ḟ"],["G","Ḡ"],["H","Ḥ"],["I","Ḭ"],["J","Ĵ"],["K","Ḱ"],["L","Ḻ"],["M","Ṁ"],["N","Ṅ"],["O","Ṏ"],["P","Ṕ"],["Q","Ǫ"],["R","Ṛ"],["S","Ṣ"],["T","Ṫ"],["U","Ṳ"],["V","Ṿ"],["W","Ŵ"],["X","Ẋ"],["Y","Ŷ"],["Z","Ż"]]),af=1.15,sf=new Map([["zh",.5],["ja",.5],["ko",.8],["fr",1.3],["it",1.3],["de",1.5],["nl",1.5]]);function am({to:r}){return r==null?af:sf.get(r)||sf.get(rd(r))||af}function sm(r,{delimiter:o,startDelimiter:l=o,endDelimiter:a=o,prepend:c,append:u,toLocale:f}={}){const p=cm(r,{startDelimiter:l,endDelimiter:a}),h=p.reduce((L,I)=>typeof I=="string"?L+um(I):L,0),g=Math.ceil(h*am({to:f}))-h,y=h/Math.abs(g);let S=y,x=-1;const M=p.reduce((L,I)=>{const N=typeof I=="string"?[...I].map(B=>{const J=id(B);J&&x++;const se=od.get(B)||B;return J&&x+1===Math.floor(S)?(S+=y,g<0?"":se.repeat(2)):se}).join(""):I[0];return L+N},"");return`${c||""}${M}${u||""}`}function id(r){return od.has(r)}function um(r){return[...r].filter(id).length}function cm(r,{startDelimiter:o,endDelimiter:l}){const a=o&&l?fm(o,l):void 0;let c=0;const u=[];if(a){let f=a.exec(r);for(;f;)u.push(r.substring(c,f.index)),u.push(f),c=f.index+f[0].length,f=a.exec(r);u.push(r.substring(c,r.length))}else u.push(r);return u}function fm(r,o){if(r.length===1&&o.length===1)return new RegExp(`\\${r}[^\\${o}]*\\${o}`,"g");const l=[...r].map(c=>`\\${c}`).join(""),a=[...o].map(c=>`\\${c}`).join("");return new RegExp(`${l}.*?${a}`,"g")}let bn;(function(r){r[r.Rtl=0]="Rtl",r[r.Ltr=1]="Ltr"})(bn||(bn={}));let _t;(function(r){r.Long="Long",r.Short="Short",r.Humanize="Humanize",r.Time="Time"})(_t||(_t={}));const dm={[_t.Long]:{weekday:"long",month:"long",day:"2-digit",year:"numeric"},[_t.Short]:{month:"short",day:"numeric",year:"numeric"},[_t.Humanize]:{month:"long",day:"numeric",year:"numeric"},[_t.Time]:{hour:"2-digit",minute:"2-digit"}};let U;(function(r){r.Sunday="sunday",r.Monday="monday",r.Tuesday="tuesday",r.Wednesday="wednesday",r.Thursday="thursday",r.Friday="friday",r.Saturday="saturday"})(U||(U={}));const pm=U.Sunday,hm=new Map([["AE",U.Saturday],["AF",U.Saturday],["BH",U.Saturday],["DZ",U.Saturday],["EG",U.Saturday],["IQ",U.Saturday],["IR",U.Saturday],["JO",U.Saturday],["KW",U.Saturday],["LY",U.Saturday],["OM",U.Saturday],["QA",U.Saturday],["SA",U.Saturday],["SY",U.Saturday],["YE",U.Saturday],["AR",U.Sunday],["BO",U.Sunday],["BR",U.Sunday],["BZ",U.Sunday],["CA",U.Sunday],["CL",U.Sunday],["CO",U.Sunday],["CR",U.Sunday],["DO",U.Sunday],["EC",U.Sunday],["GT",U.Sunday],["HK",U.Sunday],["HN",U.Sunday],["IL",U.Sunday],["JM",U.Sunday],["JP",U.Sunday],["KE",U.Sunday],["KR",U.Sunday],["MO",U.Sunday],["MX",U.Sunday],["NI",U.Sunday],["PA",U.Sunday],["PE",U.Sunday],["PH",U.Sunday],["SG",U.Sunday],["SV",U.Sunday],["TW",U.Sunday],["US",U.Sunday],["VE",U.Sunday],["ZA",U.Sunday],["ZW",U.Sunday],["AD",U.Monday],["AL",U.Monday],["AM",U.Monday],["AU",U.Monday],["AZ",U.Monday],["BE",U.Monday],["BG",U.Monday],["BN",U.Monday],["BY",U.Monday],["CH",U.Monday],["CN",U.Monday],["CZ",U.Monday],["DE",U.Monday],["DK",U.Monday],["EE",U.Monday],["ES",U.Monday],["FI",U.Monday],["FR",U.Monday],["GB",U.Monday],["GE",U.Monday],["GF",U.Monday],["GR",U.Monday],["HR",U.Monday],["HU",U.Monday],["ID",U.Monday],["IE",U.Monday],["IN",U.Monday],["IS",U.Monday],["IT",U.Monday],["KG",U.Monday],["KZ",U.Monday],["LB",U.Monday],["LT",U.Monday],["LU",U.Monday],["LV",U.Monday],["MA",U.Monday],["MC",U.Monday],["MK",U.Monday],["MN",U.Monday],["MY",U.Monday],["NL",U.Monday],["NO",U.Monday],["NZ",U.Monday],["PK",U.Monday],["PL",U.Monday],["PT",U.Monday],["PY",U.Monday],["RO",U.Monday],["RS",U.Monday],["RU",U.Monday],["SE",U.Monday],["SK",U.Monday],["TH",U.Monday],["TN",U.Monday],["TR",U.Monday],["UA",U.Monday],["UY",U.Monday],["UZ",U.Monday],["VN",U.Monday],["XK",U.Monday]]),mm=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"],Wo=new Map([["ko",(r,o,l)=>l?`${o}${r}`:o],["ja",(r,o,l)=>l?`${o}${r}`:`${o}様`],["zh-CN",(r,o,l)=>l?`${o}${r}`:o],["zh-TW",(r,o,l)=>l?`${o}${r}`:o]]);class ld extends Error{constructor(o,l){super(`Missing translation for key: ${o} in locale: ${l}`)}}class uf extends Error{constructor(o,l={}){let a="";const c=Object.keys(l);c.length<1?a=`No replacement found for key '${o}' (and no replacements were passed in).`:a=`No replacement found for key '${o}'. The following replacements were passed: ${c.map(u=>`'${u}'`).join(", ")}`,super(a)}}class cf extends Error{constructor(o=""){const l="No currency code provided.";super(o===""?l:`${l} ${o}`)}}class gm extends Error{constructor(o=""){const l="No country code provided.";super(o===""?l:`${l} ${o}`)}}const vm=/{([^}]*)}/g,Ma=Symbol("Missing translation"),zr="count",Zo=".",oa=new Map;function jr(r,o){const l=Em(r,o);if(oa.has(l))return oa.get(l);const a=new Intl.NumberFormat(r,o);return oa.set(l,a),a}const ym={startDelimiter:"{",endDelimiter:"}",prepend:"[!!",append:"!!]"};function Em(r,o={}){return`${Array.isArray(r)?r.sort().join("-"):r}-${JSON.stringify(o)}`}function wm(r,o={}){return new Intl.PluralRules(r,o)}const Ga=td(wm,(r,o={})=>`${r}${JSON.stringify(o)}`);function ia(r,o,l,a){const c=Array.isArray(o)?o:[o];let u;for(const f of c){u=f;for(const p of r.split(Zo))if(u=u[p],!u)break;if(u)return a?typeof u=="string"?qo(u,a):ad(u,l,a):u}throw new ld(r,l)}function Sm(r,o,l,a){const{scope:c,replacements:u,pseudotranslate:f}=o,p=Array.isArray(l)?l:[l],h=_m(r,c);for(const g of p){const y=Cm(h,g,a,u,{pseudotranslate:f});if(y!==Ma)return y}throw new ld(h,a)}function Cm(r,o,l,a,{pseudotranslate:c=!1}={}){let u=o;for(const h of r.split(Zo)){if(u==null||typeof u!="object")return Ma;u=u[h]}const f={};if(typeof u=="object"&&a!=null&&Object.prototype.hasOwnProperty.call(a,zr)){const h=a[zr];if(typeof h=="number"){const g=Ga(l).select(h);u=u[g],f[zr]=jr(l).format(h)}}const p=typeof u=="string"&&c?sm(u,ye(ye({},ym),{},{toLocale:typeof c=="boolean"?void 0:c})):u;return typeof p=="string"?qo(p,ye(ye({},a),f)):Ma}function qo(r,o={}){const l=/([^{]*)({([^}]*)})?/g;if(Object.keys(o).every(c=>typeof o[c]!="object"))return r.replace(vm,c=>{const u=c.substring(1,c.length-1);if(!Object.prototype.hasOwnProperty.call(o,u))throw new uf(u,o);return o[u]});{const c=[];let u=l.exec(r),f=0;for(;u;){const p=u[1],h=u[3];if(u.index>=r.length)break;if(p&&c.push(p),h){if(!Object.prototype.hasOwnProperty.call(o,h))throw new uf(h,o);f+=1;const g=_.isValidElement(o[h])?_.cloneElement(o[h],{key:f}):o[h];c.push(g)}u=l.exec(r)}return l.lastIndex=0,c}}function _m(r,o){return o==null?r:`${typeof o=="string"?o:o.join(Zo)}${Zo}${r}`}function ad(r,o,l){if(Object.prototype.hasOwnProperty.call(l,zr)){const a=l[zr];if(typeof a=="number"){const c=Ga(o).select(a);if(typeof r[c]=="string")return qo(r[c],ye(ye({},l),{},{PLURALIZATION_KEY_NAME:jr(o).format(a)}))}}return Object.keys(r).reduce((a,c)=>ye(ye({},a),{},{[c]:typeof r[c]=="string"?qo(r[c],l):ad(r[c],o,l)}),{})}const la=2;var ff=new Map([["AED",2],["AFN",2],["ALL",2],["AMD",2],["ANG",2],["AOA",2],["ARS",2],["AUD",2],["AWG",2],["AZN",2],["BAM",2],["BBD",2],["BDT",2],["BGN",2],["BHD",3],["BIF",0],["BMD",2],["BND",2],["BOB",2],["BOV",2],["BRL",2],["BSD",2],["BTN",2],["BWP",2],["BYN",2],["BZD",2],["CAD",2],["CDF",2],["CHE",2],["CHF",2],["CHW",2],["CLF",4],["CLP",0],["CNY",2],["COP",2],["COU",2],["CRC",2],["CUC",2],["CUP",2],["CVE",2],["CZK",2],["DJF",0],["DKK",2],["DOP",2],["DZD",2],["EGP",2],["ERN",2],["ETB",2],["EUR",2],["FJD",2],["FKP",2],["GBP",2],["GEL",2],["GHS",2],["GIP",2],["GMD",2],["GNF",0],["GTQ",2],["GYD",2],["HKD",2],["HNL",2],["HRK",2],["HTG",2],["HUF",2],["IDR",2],["ILS",2],["INR",2],["IQD",3],["IRR",2],["ISK",0],["JMD",2],["JOD",3],["JPY",0],["KES",2],["KGS",2],["KHR",2],["KMF",0],["KPW",2],["KRW",0],["KWD",3],["KYD",2],["KZT",2],["LAK",2],["LBP",2],["LKR",2],["LRD",2],["LSL",2],["LYD",3],["MAD",2],["MDL",2],["MGA",2],["MKD",2],["MMK",2],["MNT",2],["MOP",2],["MRO",5],["MUR",2],["MVR",2],["MWK",2],["MXN",2],["MXV",2],["MYR",2],["MZN",2],["NAD",2],["NGN",2],["NIO",2],["NOK",2],["NPR",2],["NZD",2],["OMR",3],["PAB",2],["PEN",2],["PGK",2],["PHP",2],["PKR",2],["PLN",2],["PYG",0],["QAR",2],["RON",2],["RSD",2],["RUB",2],["RWF",0],["SAR",2],["SBD",2],["SCR",2],["SDG",2],["SEK",2],["SGD",2],["SHP",2],["SLL",2],["SOS",2],["SRD",2],["SSP",2],["STN",2],["SVC",2],["SYP",2],["SZL",2],["THB",2],["TJS",2],["TMT",2],["TND",3],["TOP",2],["TRY",2],["TTD",2],["TWD",2],["TZS",2],["UAH",2],["UGX",0],["USD",2],["USN",2],["UYI",0],["UYU",2],["UYW",4],["UZS",2],["VED",2],["VES",2],["VND",0],["VUV",0],["WST",2],["XAF",0],["XAG",0],["XAU",0],["XBA",0],["XBB",0],["XBC",0],["XBD",0],["XCD",2],["XDR",0],["XOF",0],["XPD",0],["XPF",0],["XPT",0],["XSU",0],["XTS",0],["XUA",0],["YER",2],["ZAR",2],["ZMW",2],["ZWL",2]]);function Tm(r,o){const a=/[\u200E\u200F]/,c=new RegExp("0[,.]*0*"),f=km(0,r,o).replace(a,""),p=c.exec(f);if(!p)throw new Error(`Number input in locale ${r} is currently not supported.`);const h=p[0],[g,y]=f.split(h);return{symbol:g||y,prefixed:g!==""}}function km(r,o,l){return jr(o,ye({style:"currency"},l)).format(r)}function xm(r){return r.replace(" "," ")}const Pm=["as","precision"],Om=["form"],Lm=["style"];var df,Ir;const aa=".",pf="-",Mm=/\d/g,hf=/\D/g,Nm=/\./g;let Na=(df=St(),Ir=class{get language(){return rd(this.locale)}get region(){return lf(this.locale)}get countryCode(){return lf(this.locale)}get languageDirection(){return mm.includes(this.language)?bn.Rtl:bn.Ltr}get isRtlLanguage(){return this.languageDirection===bn.Rtl}get isLtrLanguage(){return this.languageDirection===bn.Ltr}constructor(o,{locale:l,currency:a,timezone:c,country:u,pseudolocalize:f=!1,onError:p,loading:h}){this.translations=o,this.locale=void 0,this.pseudolocalize=void 0,this.defaultCountry=void 0,this.defaultCurrency=void 0,this.defaultTimezone=void 0,this.onError=void 0,this.loading=void 0,this.getCurrencySymbol=g=>{const y=g||this.defaultCurrency;if(y==null)throw new cf("formatCurrency cannot be called without a currency code.");return this.getCurrencySymbolLocalized(this.locale,y)},this.locale=l,this.defaultCountry=u,this.defaultCurrency=a,this.defaultTimezone=c,this.pseudolocalize=f,this.onError=p||this.defaultOnError,this.loading=h||!1}translate(o,l,a){const{pseudolocalize:c}=this;let u;l==null?u={pseudotranslate:c}:this.isTranslateOptions(l)?u=ye(ye({},l),{},{replacements:a,pseudotranslate:c}):u={replacements:l,pseudotranslate:c};try{return Sm(o,u,this.translations,this.locale)}catch(f){return this.onError(f),""}}getTranslationTree(o,l){try{return l?ia(o,this.translations,this.locale,l):ia(o,this.translations,this.locale)}catch(a){return this.onError(a),""}}translationKeyExists(o){try{return ia(o,this.translations,this.locale),!0}catch{return!1}}formatNumber(o,l={}){let{as:a,precision:c}=l,u=ea(l,Pm);const{locale:f,defaultCurrency:p}=this;return a==="currency"&&p==null&&u.currency==null?(this.onError(new cf("formatNumber(amount, {as: 'currency'}) cannot be called without a currency code.")),""):jr(f,ye({style:a,maximumFractionDigits:c,currency:p},u)).format(o)}unformatNumber(o){const{decimalSymbol:l}=this.numberSymbols(),a=this.normalizedNumber(o,l);return a===""?"":parseFloat(a).toString()}formatCurrency(o,l={}){let{form:a}=l,c=ea(l,Om);switch(a){case"auto":return this.formatCurrencyAuto(o,c);case"explicit":return this.formatCurrencyExplicit(o,c);case"short":return this.formatCurrencyShort(o,c);case"none":return this.formatCurrencyNone(o,c)}return this.formatNumber(o,ye({as:"currency"},c))}unformatCurrency(o,l){const{decimalSymbol:a}=this.numberSymbols(),c=ff.get(l.toUpperCase()),u=this.normalizedNumber(o,a,c);return u===""?"":c===0?`${parseFloat(u).toFixed(0)}.${"0".repeat(la)}`:parseFloat(u).toFixed(c)}formatPercentage(o,l={}){return this.formatNumber(o,ye({as:"percent"},l))}formatDate(o,l={}){const{locale:a,defaultTimezone:c}=this,{timeZone:u=c}=l,f=l||{},{style:p=void 0}=f,h=ea(f,Lm);return p?p===_t.Humanize?this.humanizeDate(o,ye(ye({},h),{},{timeZone:u})):this.formatDate(o,ye(ye({},h),dm[p])):Ct(o,a,ye(ye({},h),{},{timeZone:u}))}ordinal(o){const{locale:l}=this,a=Ga(l,{type:"ordinal"}).select(o);return this.translate(a,{scope:"ordinal"},{amount:o})}weekStartDay(o){const l=o||this.defaultCountry;if(!l)throw new gm("weekStartDay() cannot be called without a country code.");return hm.get(l)||pm}getCurrencySymbolLocalized(o,l){return Tm(o,{currency:l})}formatName(o,l,a){if(!o)return l||"";if(!l)return o;const c=!!(a&&a.full),u=Wo.get(this.locale)||Wo.get(this.language);return u?u(o,l,c):c?`${o} ${l}`:o}hasEasternNameOrderFormatter(){return!!(Wo.get(this.locale)||Wo.get(this.language))}numberSymbols(){const o=this.formatNumber(123456.7,{maximumFractionDigits:1,minimumFractionDigits:1});let l,a;for(const c of o)isNaN(parseInt(c,10))&&(l?a=c:l=c);return{thousandSymbol:l,decimalSymbol:a}}formatCurrencyAuto(o,l={}){return l.currency==null||this.defaultCurrency==null||l.currency===this.defaultCurrency?this.formatCurrencyShort(o,l):this.formatCurrencyExplicit(o,l)}formatCurrencyExplicit(o,l={}){const a=this.formatCurrencyShort(o,l),c=l.currency||this.defaultCurrency||"";return a.includes(c)?a:`${a} ${c}`}formatCurrencyShort(o,l={}){const a=this.formatCurrencyNone(o,l),c=this.getShortCurrencySymbol(l.currency),u=c.prefixed?`${c.symbol}${a}`:`${a}${c.symbol}`;return o<0?`-${u.replace(/[-−]/,"")}`:u}formatCurrencyNone(o,l={}){const{locale:a}=this;let c=l.precision;if(c===void 0){const u=l.currency||this.defaultCurrency||"";c=ff.get(u.toUpperCase())}return jr(a,ye({style:"decimal",minimumFractionDigits:c,maximumFractionDigits:c},l)).format(o)}getShortCurrencySymbol(o=this.defaultCurrency||""){const l=o||this.defaultCurrency||"",a=l.substring(0,2),c=this.getCurrencySymbol(l),u=c.symbol.replace(a,"");return/[A-Za-zÀ-ÖØ-öø-ÿĀ-ɏḂ-ỳ]/.exec(u)?c:{symbol:u,prefixed:c.prefixed}}humanizeDate(o,l){return pn(o)?this.humanizeFutureDate(o,l):this.humanizePastDate(o,l)}humanizePastDate(o,l){if(qh(o))return this.translate("date.humanize.lessThanOneMinuteAgo");if(Zh(o)){const f=Math.floor((new Date().getTime()-o.getTime())/Tt.Minute);return this.translate("date.humanize.lessThanOneHourAgo",{count:f})}const a=l==null?void 0:l.timeZone,c=this.getTimeFromDate(o,l);if(of(o,a))return c;if(im(o,a))return this.translate("date.humanize.yesterday",{time:c});if(Jh(o)){const u=this.getWeekdayFromDate(o,l);return this.translate("date.humanize.lessThanOneWeekAgo",{weekday:u,time:c})}if(tm(o)){const u=this.getMonthDayFromDate(o,l);return this.translate("date.humanize.lessThanOneYearAgo",{date:u,time:c})}return this.formatDate(o,ye(ye({},l),{},{style:_t.Short}))}humanizeFutureDate(o,l){const a=l==null?void 0:l.timeZone,c=this.getTimeFromDate(o,l);if(of(o,a))return this.translate("date.humanize.today",{time:c});if(lm(o,a))return this.translate("date.humanize.tomorrow",{time:c});if(em(o)){const u=this.getWeekdayFromDate(o,l);return this.translate("date.humanize.lessThanOneWeekAway",{weekday:u,time:c})}if(nm(o)){const u=this.getMonthDayFromDate(o,l);return this.translate("date.humanize.lessThanOneYearAway",{date:u,time:c})}return this.formatDate(o,ye(ye({},l),{},{style:_t.Short}))}getTimeZone(o,l){const{localeMatcher:a,formatMatcher:c,timeZone:u}=l||{},f=this.formatDate(o,{localeMatcher:a,formatMatcher:c,timeZone:u,hour12:!1,timeZoneName:"short",hour:"numeric"}),p=/\s([\w()+\-:.]+$)/.exec(f);return p?p[1]:""}getTimeFromDate(o,l){const{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f,timeZoneName:p}=l||{},h=this.formatDate(o,{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f,timeZoneName:p==="short"?void 0:p,hour:"numeric",minute:"2-digit"}).toLocaleLowerCase(),g=p==="short"?`${h} ${this.getTimeZone(o,l)}`:h;return xm(g)}getWeekdayFromDate(o,l){const{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f}=l||{};return this.formatDate(o,{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f,weekday:"long"})}getMonthDayFromDate(o,l){const{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f}=l||{};return this.formatDate(o,{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f,month:"short",day:"numeric"})}normalizedNumber(o,l,a=la){const c=Math.max(a,la),u=o.lastIndexOf(aa);let f=o.lastIndexOf(l);l!==aa&&(o.match(Nm)||[]).length===1&&this.decimalValue(o,u).length<=c&&(f=u);const p=this.integerValue(o,f),h=this.decimalValue(o,f),x=`${o.trim().startsWith(pf)?pf:""}${p}${f===-1?"":aa}${h}`;return x.match(Mm)?x:""}integerValue(o,l){return o.substring(0,l).replace(hf,"")}decimalValue(o,l){return o.substring(l+1).replace(hf,"")}isTranslateOptions(o){return"scope"in o}defaultOnError(o){throw o}},$h(Ir.prototype,"numberSymbols",[df],Object.getOwnPropertyDescriptor(Ir.prototype,"numberSymbols"),Ir.prototype),Ir);function mf(r){const[o]=z.useState(r);return z.useRef(o)}function mt(r){const o=_.useContext(Jf);if(o==null)throw new Error("Missing i18n manager. Make sure to use an <I18nContext.Provider /> somewhere in your React tree.");const l=_.useRef(r);if(gf(l.current)!==gf(r))throw new Error("You switched between providing registration options and not providing them, which is not supported.");return r==null?Dm(o):Rm(r,o)}function Rm({id:r,fallback:o,translations:l},a){const c=_.useRef(null),u=_.useRef(Am),f=_.useContext($c),p=mf(()=>r?[r,...f]:f);a!==c.current&&(c.current=a,u.current(),u.current=a.subscribe(p.current,({translations:x,loading:M},L)=>{const I=new Na(x,ye(ye({},L),{},{loading:M}));y.current=I,g(I)}),r&&(l||o)&&a.register({id:r,translations:l,fallback:o}));const[h,g]=_.useState(()=>{const x=a.state(p.current),{translations:M,loading:L}=x;return new Na(M,ye(ye({},a.details),{},{loading:L}))}),y=_.useRef(h);_.useEffect(()=>u.current,[]);const S=mf(()=>function({children:M}){return _.createElement($c.Provider,{value:p.current},_.createElement(ed.Provider,{value:y.current},M))});return[h,S.current]}function Dm(r){return[_.useContext(ed)||new Na([],r.details),Im]}function Im({children:r}){return _.createElement(_.Fragment,null,r)}function gf({fallback:r,translations:o}={}){return r!=null||o!=null}function Am(){}const Fm=["localization","name","description"];function Bm(r){const o=new Map;return sd(r,(l,a)=>o.set(l,a)),o}function sd(r,o,l){Object.keys(r).forEach(a=>{const c=r[a],u=l?`${l}.${a}`:a;c!=null&&(typeof c=="string"?o(u,c):sd(c,o,u))})}function zm(r,o){const l=sa(r.translations[r.defaultLocale]),a=Ra(o),c=sa(r.translations[a]),u=sa(r.translations[o]);return $m(new Map([...l,...c,...u]))}function sa(r){return r?Bm(r):new Map}function Um(r,o){const l=new Set(Object.keys(r.translations));if(l.size===0||l.has(o.user))return o.user;const a=Ra(o.user);if(l.has(a))return a;if(o.shop&&l.has(o.shop))return o.shop;const c=o.shop&&Ra(o.shop);return c&&l.has(c)?c:r.defaultLocale}function $m(r){const o={};for(const[l,a]of r)o[l]=a;return o}function Ra(r){return r.split("-")[0]}function jm(r,o){if(!r||!o)return;if(Da(r))return r;const l=Um(r,o),a=JSON.stringify(zm(r,l));return{extensionLocale:l,translations:a,lastUpdated:r.lastUpdated}}function Da(r){return typeof r.translations=="string"&&Object.prototype.hasOwnProperty.call(r,"extensionLocale")}const vf=()=>{};function Hm(r,o,l){const a=new Map(o.map(u=>[l(u),u]));return[...r.map(u=>{const f=l(u);if(a.has(f)){const p=a.get(f);return a.delete(f),p}else return u}),...a.values()]}function Go(r,o,l){const a=[],c=new Proxy({},{get:(h,g)=>(a.push(g),c)});o(c);const u={...r};let f=u;const p=a.pop();for(const h of a)f[h]={...f[h]},f=f[h];return f[p]=l,u}function ua(r){const o=new URL(r.url);return o.searchParams.set("lastUpdated",String(r.lastUpdated)),o.toString()}const bm=["admin","checkout","post_purchase","point_of_sale","customer-accounts"];function ud(r){return r&&bm.includes(r)}function Ia(r){return r.type==="ui_extension"&&Array.isArray(r.extensionPoints)&&r.extensionPoints.every(o=>typeof o=="object")}class cd{constructor(o={}){this.EVENT_THAT_WILL_MUTATE_THE_SERVER=["update"],this.listeners={},this.connectionListeners={close:new Set,open:new Set},this.connected=!1,this.uiExtensionsByUuid={},this.id=(Math.random()+1).toString(36).substring(7),this.options=fd({...o,connection:{automaticConnect:!0,protocols:[],...o.connection??{}}}),this.setupConnection(this.options.connection.automaticConnect)}connect(o={connection:{}}){const l=Vm(this.options,o);return JSON.stringify(l)!==JSON.stringify(this.options)&&(this.options=l,this.setupConnection(!0)),()=>{this.closeConnection()}}on(o,l){return this.listeners[o]||(this.listeners[o]=new Set),this.listeners[o].add(l),()=>this.listeners[o].delete(l)}persist(o,l){var a,c,u;if(this.EVENT_THAT_WILL_MUTATE_THE_SERVER.includes(o))return this.options.locales?((c=l.extensions)==null||c.forEach(f=>{Fm.forEach(p=>{var h;Ia(f)&&((h=f.extensionPoints)==null||h.forEach(g=>{delete g[p]})),delete f[p]})}),(u=this.connection)==null?void 0:u.send(JSON.stringify({event:o,data:l}))):(a=this.connection)==null?void 0:a.send(JSON.stringify({event:o,data:l}));console.warn('You tried to use "persist" with a dispatch event. Please use the "emit" method instead.')}emit(...o){var c;const[l,a]=o;if(this.EVENT_THAT_WILL_MUTATE_THE_SERVER.includes(l))return console.warn(`You tried to use "emit" with a the "${l}" event. Please use the "persist" method instead to persist changes to the server.`);(c=this.connection)==null||c.send(JSON.stringify({event:"dispatch",data:{type:l,payload:a}}))}onConnection(o,l){return this.connectionListeners[o].add(l),()=>this.connectionListeners[o].delete(l)}initializeConnection(){var o;this.connection&&(this.connection.addEventListener("open",l=>{this.connected=!0,this.connectionListeners.open.forEach(a=>a(l))}),this.connection.addEventListener("close",l=>{this.connected=!1,this.connectionListeners.close.forEach(a=>a(l))}),(o=this.connection)==null||o.addEventListener("message",l=>{var a,c;try{const{event:u,data:f}=JSON.parse(l.data);if(u==="dispatch"){const{type:h,payload:g}=f;(a=this.listeners[h])==null||a.forEach(y=>y(g));return}const p=f.extensions?Wm(f.extensions,this.options.surface):f.extensions;(c=this.listeners[u])==null||c.forEach(h=>{h({...f,extensions:this._getLocalizedExtensions(p)})})}catch(u){console.error("[ExtensionServer] Something went wrong while parsing a server message:",u instanceof Error?u.message:u)}}))}setupConnection(o=!0){this.options.connection.url&&o&&(this.closeConnection(),this.connection=new WebSocket(this.options.connection.url,this.options.connection.protocols),this.initializeConnection())}closeConnection(){var o;this.connected&&((o=this.connection)==null||o.close())}_getLocalizedExtensions(o){return o==null?void 0:o.map(l=>{var p,h,g,y,S;if(!this.options.locales||!Ia(l))return l;const c=((h=(p=this.uiExtensionsByUuid[l.uuid])==null?void 0:p.localization)==null?void 0:h.lastUpdated)!==((g=l.localization)==null?void 0:g.lastUpdated)?jm(l.localization,this.options.locales):((y=this.uiExtensionsByUuid[l.uuid])==null?void 0:y.localization)??l.localization,u=c&&Da(c)?JSON.parse(c.translations):c,f={...l,localization:c,name:u&&l.name.startsWith("t:")?this._getLocalizedValue(u,l.name):l.name,...l.description&&{description:u&&((S=l.description)!=null&&S.startsWith("t:"))?this._getLocalizedValue(u,l.description):l.description}};return this.uiExtensionsByUuid[l.uuid]={...f,extensionPoints:this._getLocalizedExtensionPoints(c,f)},this.uiExtensionsByUuid[l.uuid]})}_getLocalizedExtensionPoints(o,{extensionPoints:l,name:a,description:c}){return!o||!Da(o)?l:l==null?void 0:l.map(u=>({...u,localization:o,name:a,...c&&{description:c}}))}_getLocalizedValue(o,l){const a=l.replace("t:","");return o[a]||l}}function Vm(r,o){return fd({...r,...o,connection:{...r.connection,...o.connection}})}function fd(r){return ud(r.surface)||delete r.surface,r}function Wm(r,o){return o?r.filter(l=>l.surface===o?!0:Array.isArray(l.extensionPoints)?l.extensionPoints.filter(u=>typeof u=="string"?!1:u.surface===o).length>0:!1):r}function Gm(r){return{type:"connected",payload:r}}function Km(r){return{type:"update",payload:r}}function Qm(r){return{type:"refresh",payload:r}}function Ym(r){return{type:"focus",payload:r}}function Xm(r){return{type:"unfocus",payload:r}}const dd={extensions:[],store:""};function Zm(r,o){switch(o.type){case"connected":{const l=(o.payload.extensions??[]).map(a=>(Object.keys(a.assets).forEach(c=>a.assets[c].url=ua(a.assets[c])),a));return{...r,store:o.payload.store,app:o.payload.app,extensions:l}}case"update":{const l=(o.payload.extensions??[]).map(a=>(Object.keys(a.assets).forEach(c=>a.assets[c].url=ua(a.assets[c])),a));return{...r,app:{...r.app??{},...o.payload.app??{}},extensions:Hm(r.extensions,l,({uuid:a})=>a)}}case"refresh":return{...r,extensions:r.extensions.map(l=>{if(o.payload.some(({uuid:a})=>l.uuid===a)){const a={};return Object.keys(l.assets).forEach(c=>{const u={...l.assets[c]};u.lastUpdated=Date.now(),u.url=ua(u),a[c]=u}),Go(l,c=>c.assets,a)}return l})};case"focus":return{...r,extensions:r.extensions.map(l=>o.payload.some(({uuid:a})=>l.uuid===a)?Go(l,a=>a.development.focused,!0):l.development.focused?Go(l,a=>a.development.focused,!1):l)};case"unfocus":return{...r,extensions:r.extensions.map(l=>l.development.focused?Go(l,a=>a.development.focused,!1):l)};default:return r}}const qm={connect:vf,dispatch:vf,state:dd,client:new cd},pd=z.createContext(qm),Jm=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),yf=Jm?z.useEffect:z.useLayoutEffect;function eg(){return z.useReducer(Zm,dd)}function tg({children:r,options:o}){const[l,a]=eg(),[c,u]=z.useState(o),[f]=z.useState(()=>new cd),p=z.useCallback((g=c)=>{u(g)},[c]);yf(()=>f.connect(c),[f,c]),yf(()=>{const g=[f.on("update",y=>a(Km(y))),f.on("connected",y=>a(Gm(y))),f.on("refresh",y=>a(Qm(y))),f.on("focus",y=>a(Ym(y))),f.on("unfocus",y=>a(Xm(y)))];return()=>g.forEach(y=>y())},[a]);const h=z.useMemo(()=>({dispatch:a,state:l,connect:p,client:f}),[a,p,l,f]);return _.createElement(pd.Provider,{value:h},r)}const Hr=()=>z.useContext(pd),ng="_OuterContainer_15qjc_1",rg="_DevTool_15qjc_7",og="_Header_15qjc_32",ig="_HeaderContent_15qjc_42",lg="Developer Console",ag="Close Developer Console",sg={extensions:"Extensions"},ug={title:lg,close:ag,nav:sg};var Ka=function(o){return _.createElement("svg",Object.assign({viewBox:"0 0 20 20"},o),_.createElement("path",{fillRule:"evenodd",d:"M6.515 4.75a2 2 0 0 1 1.985-1.75h3a2 2 0 0 1 1.985 1.75h.265a2.25 2.25 0 0 1 2.25 2.25v7.75a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-7.75a2.25 2.25 0 0 1 2.25-2.25h.265Zm1.985-.25h3a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5Zm-1.987 1.73.002.02h-.265a.75.75 0 0 0-.75.75v7.75c0 .414.336.75.75.75h7.5a.75.75 0 0 0 .75-.75v-7.75a.75.75 0 0 0-.75-.75h-.265a2 2 0 0 1-1.985 1.75h-3a2 2 0 0 1-1.987-1.77Z"}))};Ka.displayName="ClipboardIcon";var hd=function(o){return _.createElement("svg",Object.assign({viewBox:"0 0 20 20"},o),_.createElement("path",{fillRule:"evenodd",d:"M6.52 3.83a4.768 4.768 0 0 1 6.423 5.374l2.783 2.782a2.644 2.644 0 0 1-3.74 3.74l-2.782-2.782a4.768 4.768 0 0 1-5.373-6.424.75.75 0 0 1 1.228-.256l1.646 1.647a.853.853 0 0 0 1.206-1.206l-1.646-1.646a.75.75 0 0 1 .256-1.228Zm1.809 1.17.643.644a2.353 2.353 0 1 1-3.327 3.327l-.644-.644a3.268 3.268 0 0 0 4.216 3.069.75.75 0 0 1 .748.187l3.082 3.082a1.144 1.144 0 1 0 1.618-1.618l-3.082-3.082a.75.75 0 0 1-.187-.748 3.268 3.268 0 0 0-3.067-4.217Z"}))};hd.displayName="WrenchIcon";var md=function(o){return _.createElement("svg",Object.assign({viewBox:"0 0 20 20"},o),_.createElement("path",{d:"M12.72 13.78a.75.75 0 1 0 1.06-1.06l-2.72-2.72 2.72-2.72a.75.75 0 0 0-1.06-1.06l-2.72 2.72-2.72-2.72a.75.75 0 0 0-1.06 1.06l2.72 2.72-2.72 2.72a.75.75 0 1 0 1.06 1.06l2.72-2.72 2.72 2.72Z"}))};md.displayName="XIcon";const gd=window.top&&new URLSearchParams(location.search).get("app-preview")==="true";function cg({children:r}){const[o]=mt({id:"Layout",fallback:ug});return _.createElement("div",{className:ng},_.createElement("div",{className:rg},!gd&&_.createElement("header",{className:og},_.createElement("section",{className:ig},_.createElement(hd,null),_.createElement("h1",null," ",o.translate("title")))),_.createElement("main",null,r)))}var ca={exports:{}},Ze={},fa={exports:{}},da={};/** @license React v0.20.2
|
|
12
|
+
*/var zc;function bh(){if(zc)return ge;zc=1;var r=Jf(),o=60103,l=60106;ge.Fragment=60107,ge.StrictMode=60108,ge.Profiler=60114;var a=60109,c=60110,u=60112;ge.Suspense=60113;var f=60115,p=60116;if(typeof Symbol=="function"&&Symbol.for){var h=Symbol.for;o=h("react.element"),l=h("react.portal"),ge.Fragment=h("react.fragment"),ge.StrictMode=h("react.strict_mode"),ge.Profiler=h("react.profiler"),a=h("react.provider"),c=h("react.context"),u=h("react.forward_ref"),ge.Suspense=h("react.suspense"),f=h("react.memo"),p=h("react.lazy")}var g=typeof Symbol=="function"&&Symbol.iterator;function y(w){return w===null||typeof w!="object"?null:(w=g&&w[g]||w["@@iterator"],typeof w=="function"?w:null)}function S(w){for(var P="https://reactjs.org/docs/error-decoder.html?invariant="+w,K=1;K<arguments.length;K++)P+="&args[]="+encodeURIComponent(arguments[K]);return"Minified React error #"+w+"; visit "+P+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M={};function L(w,P,K){this.props=w,this.context=P,this.refs=M,this.updater=K||x}L.prototype.isReactComponent={},L.prototype.setState=function(w,P){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error(S(85));this.updater.enqueueSetState(this,w,P,"setState")},L.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function I(){}I.prototype=L.prototype;function N(w,P,K){this.props=w,this.context=P,this.refs=M,this.updater=K||x}var B=N.prototype=new I;B.constructor=N,r(B,L.prototype),B.isPureReactComponent=!0;var J={current:null},se=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};function ne(w,P,K){var te,A={},W=null,V=null;if(P!=null)for(te in P.ref!==void 0&&(V=P.ref),P.key!==void 0&&(W=""+P.key),P)se.call(P,te)&&!ee.hasOwnProperty(te)&&(A[te]=P[te]);var q=arguments.length-2;if(q===1)A.children=K;else if(1<q){for(var X=Array(q),oe=0;oe<q;oe++)X[oe]=arguments[oe+2];A.children=X}if(w&&w.defaultProps)for(te in q=w.defaultProps,q)A[te]===void 0&&(A[te]=q[te]);return{$$typeof:o,type:w,key:W,ref:V,props:A,_owner:J.current}}function me(w,P){return{$$typeof:o,type:w.type,key:P,ref:w.ref,props:w.props,_owner:w._owner}}function ve(w){return typeof w=="object"&&w!==null&&w.$$typeof===o}function de(w){var P={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(K){return P[K]})}var Se=/\/+/g;function we(w,P){return typeof w=="object"&&w!==null&&w.key!=null?de(""+w.key):P.toString(36)}function Ne(w,P,K,te,A){var W=typeof w;(W==="undefined"||W==="boolean")&&(w=null);var V=!1;if(w===null)V=!0;else switch(W){case"string":case"number":V=!0;break;case"object":switch(w.$$typeof){case o:case l:V=!0}}if(V)return V=w,A=A(V),w=te===""?"."+we(V,0):te,Array.isArray(A)?(K="",w!=null&&(K=w.replace(Se,"$&/")+"/"),Ne(A,P,K,"",function(oe){return oe})):A!=null&&(ve(A)&&(A=me(A,K+(!A.key||V&&V.key===A.key?"":(""+A.key).replace(Se,"$&/")+"/")+w)),P.push(A)),1;if(V=0,te=te===""?".":te+":",Array.isArray(w))for(var q=0;q<w.length;q++){W=w[q];var X=te+we(W,q);V+=Ne(W,P,K,X,A)}else if(X=y(w),typeof X=="function")for(w=X.call(w),q=0;!(W=w.next()).done;)W=W.value,X=te+we(W,q++),V+=Ne(W,P,K,X,A);else if(W==="object")throw P=""+w,Error(S(31,P==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":P));return V}function he(w,P,K){if(w==null)return w;var te=[],A=0;return Ne(w,te,"","",function(W){return P.call(K,W,A++)}),te}function H(w){if(w._status===-1){var P=w._result;P=P(),w._status=0,w._result=P,P.then(function(K){w._status===0&&(K=K.default,w._status=1,w._result=K)},function(K){w._status===0&&(w._status=2,w._result=K)})}if(w._status===1)return w._result;throw w._result}var R={current:null};function j(){var w=R.current;if(w===null)throw Error(S(321));return w}var D={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:r};return ge.Children={map:he,forEach:function(w,P,K){he(w,function(){P.apply(this,arguments)},K)},count:function(w){var P=0;return he(w,function(){P++}),P},toArray:function(w){return he(w,function(P){return P})||[]},only:function(w){if(!ve(w))throw Error(S(143));return w}},ge.Component=L,ge.PureComponent=N,ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,ge.cloneElement=function(w,P,K){if(w==null)throw Error(S(267,w));var te=r({},w.props),A=w.key,W=w.ref,V=w._owner;if(P!=null){if(P.ref!==void 0&&(W=P.ref,V=J.current),P.key!==void 0&&(A=""+P.key),w.type&&w.type.defaultProps)var q=w.type.defaultProps;for(X in P)se.call(P,X)&&!ee.hasOwnProperty(X)&&(te[X]=P[X]===void 0&&q!==void 0?q[X]:P[X])}var X=arguments.length-2;if(X===1)te.children=K;else if(1<X){q=Array(X);for(var oe=0;oe<X;oe++)q[oe]=arguments[oe+2];te.children=q}return{$$typeof:o,type:w.type,key:A,ref:W,props:te,_owner:V}},ge.createContext=function(w,P){return P===void 0&&(P=null),w={$$typeof:c,_calculateChangedBits:P,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider={$$typeof:a,_context:w},w.Consumer=w},ge.createElement=ne,ge.createFactory=function(w){var P=ne.bind(null,w);return P.type=w,P},ge.createRef=function(){return{current:null}},ge.forwardRef=function(w){return{$$typeof:u,render:w}},ge.isValidElement=ve,ge.lazy=function(w){return{$$typeof:p,_payload:{_status:-1,_result:w},_init:H}},ge.memo=function(w,P){return{$$typeof:f,type:w,compare:P===void 0?null:P}},ge.useCallback=function(w,P){return j().useCallback(w,P)},ge.useContext=function(w,P){return j().useContext(w,P)},ge.useDebugValue=function(){},ge.useEffect=function(w,P){return j().useEffect(w,P)},ge.useImperativeHandle=function(w,P,K){return j().useImperativeHandle(w,P,K)},ge.useLayoutEffect=function(w,P){return j().useLayoutEffect(w,P)},ge.useMemo=function(w,P){return j().useMemo(w,P)},ge.useReducer=function(w,P,K){return j().useReducer(w,P,K)},ge.useRef=function(w){return j().useRef(w)},ge.useState=function(w){return j().useState(w)},ge.version="17.0.2",ge}var Uc;function Va(){return Uc||(Uc=1,ql.exports=bh()),ql.exports}var z=Va();const _=oi(z),Vh=Ih({__proto__:null,default:_},[z]);var Wa=function(o){return _.createElement("svg",Object.assign({viewBox:"0 0 20 20"},o),_.createElement("path",{fillRule:"evenodd",d:"M6.515 4.75a2 2 0 0 1 1.985-1.75h3a2 2 0 0 1 1.985 1.75h.265a2.25 2.25 0 0 1 2.25 2.25v7.75a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-7.75a2.25 2.25 0 0 1 2.25-2.25h.265Zm1.985-.25h3a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5Zm-1.987 1.73.002.02h-.265a.75.75 0 0 0-.75.75v7.75c0 .414.336.75.75.75h7.5a.75.75 0 0 0 .75-.75v-7.75a.75.75 0 0 0-.75-.75h-.265a2 2 0 0 1-1.985 1.75h-3a2 2 0 0 1-1.987-1.77Z"}))};Wa.displayName="ClipboardIcon";var ed=function(o){return _.createElement("svg",Object.assign({viewBox:"0 0 20 20"},o),_.createElement("path",{fillRule:"evenodd",d:"M6.52 3.83a4.768 4.768 0 0 1 6.423 5.374l2.783 2.782a2.644 2.644 0 0 1-3.74 3.74l-2.782-2.782a4.768 4.768 0 0 1-5.373-6.424.75.75 0 0 1 1.228-.256l1.646 1.647a.853.853 0 0 0 1.206-1.206l-1.646-1.646a.75.75 0 0 1 .256-1.228Zm1.809 1.17.643.644a2.353 2.353 0 1 1-3.327 3.327l-.644-.644a3.268 3.268 0 0 0 4.216 3.069.75.75 0 0 1 .748.187l3.082 3.082a1.144 1.144 0 1 0 1.618-1.618l-3.082-3.082a.75.75 0 0 1-.187-.748 3.268 3.268 0 0 0-3.067-4.217Z"}))};ed.displayName="WrenchIcon";var td=function(o){return _.createElement("svg",Object.assign({viewBox:"0 0 20 20"},o),_.createElement("path",{d:"M12.72 13.78a.75.75 0 1 0 1.06-1.06l-2.72-2.72 2.72-2.72a.75.75 0 0 0-1.06-1.06l-2.72 2.72-2.72-2.72a.75.75 0 0 0-1.06 1.06l2.72 2.72-2.72 2.72a.75.75 0 1 0 1.06 1.06l2.72-2.72 2.72 2.72Z"}))};td.displayName="XIcon";const nd=_.createContext(null),$c=_.createContext([]),rd=_.createContext(null);function jc(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,a)}return l}function ye(r){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?jc(Object(l),!0).forEach(function(a){Gh(r,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):jc(Object(l)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(l,a))})}return r}function Hc(r,o,l,a,c,u,f){try{var p=r[u](f),h=p.value}catch(g){l(g);return}p.done?o(h):Promise.resolve(h).then(a,c)}function Wh(r){return function(){var o=this,l=arguments;return new Promise(function(a,c){var u=r.apply(o,l);function f(h){Hc(u,a,c,f,p,"next",h)}function p(h){Hc(u,a,c,f,p,"throw",h)}f(void 0)})}}function Gh(r,o,l){return o in r?Object.defineProperty(r,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[o]=l,r}function Kh(r,o){if(r==null)return{};var l={},a=Object.keys(r),c,u;for(u=0;u<a.length;u++)c=a[u],!(o.indexOf(c)>=0)&&(l[c]=r[c]);return l}function ea(r,o){if(r==null)return{};var l=Kh(r,o),a,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(c=0;c<u.length;c++)a=u[c],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(r,a)&&(l[a]=r[a])}return l}function Qh(r,o,l,a,c){var u={};return Object.keys(a).forEach(function(f){u[f]=a[f]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=l.slice().reverse().reduce(function(f,p){return p(r,o,f)||f},u),c&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(r,o,u),u=null),u}class Yh{get loading(){return this.translationPromises.size>0}constructor(o,l={}){this.details=o,this.translationGetters=new Map,this.fallbacks=new Map,this.translations=new Map,this.asyncTranslationIds=new Set,this.subscriptions=new Map,this.translationPromises=new Map,this.idsToUpdate=new Set,this.enqueuedUpdate=void 0;for(const[a,c]of Object.entries(l))this.translations.set(a,c),this.asyncTranslationIds.add(a)}resolve(){var o=this;return Wh(function*(){yield Promise.all([...o.translationPromises.values()])})()}extract(){return[...this.asyncTranslationIds].reduce((o,l)=>ye(ye({},o),{},{[l]:this.translations.get(l)}),{})}register({id:o,translations:l,fallback:a}){if(this.fallbacks.has(o)||this.fallbacks.set(o,a),this.details.fallbackLocale!=null&&a!=null){const u=ta(o,this.details.fallbackLocale);this.translations.has(u)||this.translations.set(u,a)}if(this.translationGetters.has(o))return;const c=l?qh(l):Zh;this.setTranslations(o,c)}state(o){const{locale:l,fallbackLocale:a}=this.details,c=bc(l),u=a!=null&&c.includes(a);let f=!1,p=!1;const h=o.reduce((g,y)=>{const S=[];for(const x of c){const M=ta(y,x),L=this.translations.get(M);L==null?this.translationPromises.has(M)&&(p=!0):S.push(L)}if(S.length===0&&p&&(f=!0),!u){const x=this.fallbacks.get(y);x!=null&&S.push(x)}return[...g,...S]},[]);return{loading:f,translations:h}}subscribe(o,l){return this.subscriptions.set(l,o),()=>{this.subscriptions.delete(l)}}update(o){this.details=o;for(const[l,a]of this.translationGetters)this.setTranslations(l,a);for(const[l,a]of this.subscriptions)l(this.state(a),this.details)}setTranslations(o,l){this.translationGetters.set(o,l);for(const a of bc(this.details.locale)){const c=ta(o,a);if(this.translations.has(c))continue;const u=l(a);if(Xh(u)){const f=u.then(p=>{this.translationPromises.delete(c),this.translations.set(c,p),this.asyncTranslationIds.add(c),p!=null&&this.updateSubscribersForId(o)}).catch(()=>{this.translationPromises.delete(c),this.translations.set(c,void 0),this.asyncTranslationIds.add(c)});this.translationPromises.set(c,f)}else this.translations.set(c,u)}}updateSubscribersForId(o){if(this.idsToUpdate.add(o),this.enqueuedUpdate!=null)return;const a=typeof window<"u"?window.requestAnimationFrame:setImmediate;this.enqueuedUpdate=a(()=>{delete this.enqueuedUpdate;const c=[...this.idsToUpdate];this.idsToUpdate.clear();for(const[u,f]of this.subscriptions)f.some(p=>c.includes(p))&&u(this.state(f),this.details)})}}function bc(r){const o=r.split("-");return o.length>1?[`${o[0]}-${o[1].toUpperCase()}`,o[0]]:[r]}function Xh(r){return r!=null&&r.then!=null}function ta(r,o){return`${r}__${o}`}function Zh(){}function qh(r){return typeof r=="function"?r:o=>r[o]}function Vc(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,a)}return l}function Wc(r){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?Vc(Object(l),!0).forEach(function(a){Jh(r,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):Vc(Object(l)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(l,a))})}return r}function Jh(r,o,l){return o in r?Object.defineProperty(r,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[o]=l,r}function Wt(r,o,l,a,c){var u={};return Object.keys(a).forEach(function(f){u[f]=a[f]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=l.slice().reverse().reduce(function(f,p){return p(r,o,f)||f},u),c&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(c):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(r,o,u),u=null),u}const em=50;function od(r,o){const l=new WeakMap,a=new Map,c=[];return function(...f){if(typeof window>"u")return r.apply(this,f);const p=f.length===1&&typeof f[0]=="object"&&!o;let h;p?h=f[0]:o&&o instanceof Function?h=o(...f):h=f[0];const g=p?l:a;if(g.has(h))return g.get(h);const y=r.apply(this,f);if(p)l.set(h,y);else if(a.set(h,y),c.push(h),a.size>em){const S=c[0];a.delete(S),c.shift()}return y}}function St(r){return function(o,l,a){const{value:c}=a;return!c||!(c instanceof Function)?a:{get:function(){const f={configurable:!0,value:od(c,r)};return Object.defineProperty(this,l,f),f.value}}}}function Vo(r){return r.replace("","")}const na=new Map;function Gc(r,o){const l=tm(r,o);if(na.has(l))return na.get(l);const a=new Intl.DateTimeFormat(r,o);return na.set(l,a),a}const Kc=Intl.DateTimeFormat("en",{hour:"numeric"}),Qc=typeof Kc.resolvedOptions>"u"?void 0:Kc.resolvedOptions();function Ct(r,o,l={}){if(Qc!=null&&l.hour12===!1&&Qc.hourCycle!=null&&(l.hour12=void 0,l.hourCycle="h23"),l.timeZone!=null&&l.timeZone==="Etc/GMT+12"){const c=new Date(r.valueOf()-432e5);return Gc(o,Wc(Wc({},l),{},{timeZone:"UTC"})).format(c)}return Gc(o,l).format(r)}function tm(r,o={}){return`${Array.isArray(r)?r.sort().join("-"):r}-${JSON.stringify(o)}`}var Yc,Xc,Zc,qc,Jc,ef,tf,nf,_e;const ra=/(\d{2})/;function Wn(r,o){return{year:()=>an.getYear(r,o),month:()=>an.getMonth(r,o),day:()=>an.getDay(r,o),weekday:()=>an.getWeekday(r,o),hour:()=>an.getHour(r,o),minute:()=>an.getMinute(r,o),second:()=>an.getSecond(r,o)}}function Gt(r){return(o,l)=>`${r}-${o.toString()}-${l}`}var rf;(function(r){r.Monday="Monday",r.Tuesday="Tuesday",r.Wednesday="Wednesday",r.Thursday="Thursday",r.Friday="Friday",r.Saturday="Saturday",r.Sunday="Sunday"})(rf||(rf={}));const id={Monday:0,Tuesday:1,Wednesday:2,Thursday:3,Friday:4,Saturday:5,Sunday:6};function nm(r){return Object.keys(id).some(o=>o===r)}function rm(r){throw new Error(r)}function om(r){return nm(r)?id[r]:rm(`Unexpected weekday: ${r}`)}let an=(Yc=St(Gt("year")),Xc=St(Gt("month")),Zc=St(Gt("day")),qc=St(Gt("weekday")),Jc=St(Gt("hour")),ef=St(Gt("minute")),tf=St(Gt("second")),nf=St(Gt("timePartsFallback")),_e=class Yo{static getYear(o,l){if(isNaN(o.valueOf()))throw new Error(`Unable to parse date: ${o} for timezone: ${l}`);const a=Ct(o,"en",{timeZone:l,year:"numeric"}),c=Vo(a),u=parseInt(c,10);if(isNaN(u))throw new Error(`Unable to parse year: '${a}'`);return u}static getMonth(o,l){const a=Ct(o,"en",{timeZone:l,month:"numeric"}),c=Vo(a),u=parseInt(c,10);if(isNaN(u))throw new Error(`Unable to parse month: '${a}'`);return u}static getDay(o,l){const a=Ct(o,"en",{timeZone:l,day:"numeric"}),c=Vo(a),u=parseInt(c,10);if(isNaN(u))throw new Error(`Unable to parse day: '${a}'`);return u}static getWeekday(o,l){const a=Ct(o,"en",{timeZone:l,weekday:"long"}),c=Vo(a);return om(c)}static getHour(o,l){const a=Ct(o,"en",{timeZone:l,hour12:!1,hour:"numeric"});let c=parseInt(a,10);return isNaN(c)&&(c=Yo.getTimePartsFallback(o,l).hour),c}static getMinute(o,l){const a=Ct(o,"en",{timeZone:l,minute:"numeric"});let c=parseInt(a,10);return isNaN(c)&&(c=Yo.getTimePartsFallback(o,l).minute),c}static getSecond(o,l){const a=Ct(o,"en",{timeZone:l,second:"numeric"});let c=parseInt(a,10);return isNaN(c)&&(c=Yo.getTimePartsFallback(o,l).second),c}static getTimePartsFallback(o,l){const a=Ct(o,"en",{timeZone:l,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),[c,u,f]=a.split(":"),p=new RegExp(ra).exec(c),h=new RegExp(ra).exec(u),g=new RegExp(ra).exec(f);if(p!=null&&h!=null&&g!=null){const y=parseInt(p[1],10),S=parseInt(h[1],10),x=parseInt(g[1],10);return{hour:y,minute:S,second:x}}throw new Error(`Unable to parse timeString: '${a}'`)}},Wt(_e,"getYear",[Yc],Object.getOwnPropertyDescriptor(_e,"getYear"),_e),Wt(_e,"getMonth",[Xc],Object.getOwnPropertyDescriptor(_e,"getMonth"),_e),Wt(_e,"getDay",[Zc],Object.getOwnPropertyDescriptor(_e,"getDay"),_e),Wt(_e,"getWeekday",[qc],Object.getOwnPropertyDescriptor(_e,"getWeekday"),_e),Wt(_e,"getHour",[Jc],Object.getOwnPropertyDescriptor(_e,"getHour"),_e),Wt(_e,"getMinute",[ef],Object.getOwnPropertyDescriptor(_e,"getMinute"),_e),Wt(_e,"getSecond",[tf],Object.getOwnPropertyDescriptor(_e,"getSecond"),_e),Wt(_e,"getTimePartsFallback",[nf],Object.getOwnPropertyDescriptor(_e,"getTimePartsFallback"),_e),_e),Tt;(function(r){r[r.Second=1e3]="Second",r[r.Minute=6e4]="Minute",r[r.Hour=36e5]="Hour",r[r.Day=864e5]="Day",r[r.Week=6048e5]="Week",r[r.Year=31536e6]="Year"})(Tt||(Tt={}));function pn(r,o=new Date){return o<r}function im(r,o=new Date){return!pn(r,o)&&o.getTime()-r.getTime()<Tt.Hour}function lm(r,o=new Date){return!pn(r,o)&&o.getTime()-r.getTime()<Tt.Minute}function am(r,o=new Date){return!pn(r,o)&&o.getTime()-r.getTime()<Tt.Week}function sm(r,o=new Date){return pn(r,o)&&r.getTime()-o.getTime()<Tt.Week}function um(r,o=new Date){return!pn(r,o)&&o.getTime()-r.getTime()<Tt.Year}function cm(r,o=new Date){return pn(r,o)&&r.getTime()-o.getTime()<Tt.Year}function fm(r,o,l){const{year:a}=Wn(r,l),{year:c}=Wn(o,l);return a()===c()}function dm(r,o,l){const{month:a}=Wn(r,l),{month:c}=Wn(o,l);return fm(r,o,l)&&a()===c()}function Ga(r,o,l){const{day:a}=Wn(r,l),{day:c}=Wn(o,l);return dm(r,o,l)&&a()===c()}function of(r,o){return Ga(r,new Date,o)}function pm(r,o){const l=new Date,a=new Date(l.valueOf()-1440*60*1e3);return Ga(r,a,o)}function hm(r,o){const l=new Date,a=new Date(l.valueOf()+1440*60*1e3);return Ga(r,a,o)}function lf(r){const o=r.split("-")[1];return o&&o.toUpperCase()}function ld(r){return r.split("-")[0].toLowerCase()}const ad=new Map([["a","α"],["b","ḅ"],["c","ͼ"],["d","ḍ"],["e","ḛ"],["f","ϝ"],["g","ḡ"],["h","ḥ"],["i","ḭ"],["j","ĵ"],["k","ḳ"],["l","ḽ"],["m","ṃ"],["n","ṇ"],["o","ṓ"],["p","ṗ"],["q","ʠ"],["r","ṛ"],["s","ṡ"],["t","ṭ"],["u","ṵ"],["v","ṽ"],["w","ẁ"],["x","ẋ"],["y","ẏ"],["z","ẓ"],["A","Ḁ"],["B","Ḃ"],["C","Ḉ"],["D","Ḍ"],["E","Ḛ"],["F","Ḟ"],["G","Ḡ"],["H","Ḥ"],["I","Ḭ"],["J","Ĵ"],["K","Ḱ"],["L","Ḻ"],["M","Ṁ"],["N","Ṅ"],["O","Ṏ"],["P","Ṕ"],["Q","Ǫ"],["R","Ṛ"],["S","Ṣ"],["T","Ṫ"],["U","Ṳ"],["V","Ṿ"],["W","Ŵ"],["X","Ẋ"],["Y","Ŷ"],["Z","Ż"]]),af=1.15,sf=new Map([["zh",.5],["ja",.5],["ko",.8],["fr",1.3],["it",1.3],["de",1.5],["nl",1.5]]);function mm({to:r}){return r==null?af:sf.get(r)||sf.get(ld(r))||af}function gm(r,{delimiter:o,startDelimiter:l=o,endDelimiter:a=o,prepend:c,append:u,toLocale:f}={}){const p=ym(r,{startDelimiter:l,endDelimiter:a}),h=p.reduce((L,I)=>typeof I=="string"?L+vm(I):L,0),g=Math.ceil(h*mm({to:f}))-h,y=h/Math.abs(g);let S=y,x=-1;const M=p.reduce((L,I)=>{const N=typeof I=="string"?[...I].map(B=>{const J=sd(B);J&&x++;const se=ad.get(B)||B;return J&&x+1===Math.floor(S)?(S+=y,g<0?"":se.repeat(2)):se}).join(""):I[0];return L+N},"");return`${c||""}${M}${u||""}`}function sd(r){return ad.has(r)}function vm(r){return[...r].filter(sd).length}function ym(r,{startDelimiter:o,endDelimiter:l}){const a=o&&l?Em(o,l):void 0;let c=0;const u=[];if(a){let f=a.exec(r);for(;f;)u.push(r.substring(c,f.index)),u.push(f),c=f.index+f[0].length,f=a.exec(r);u.push(r.substring(c,r.length))}else u.push(r);return u}function Em(r,o){if(r.length===1&&o.length===1)return new RegExp(`\\${r}[^\\${o}]*\\${o}`,"g");const l=[...r].map(c=>`\\${c}`).join(""),a=[...o].map(c=>`\\${c}`).join("");return new RegExp(`${l}.*?${a}`,"g")}let bn;(function(r){r[r.Rtl=0]="Rtl",r[r.Ltr=1]="Ltr"})(bn||(bn={}));let _t;(function(r){r.Long="Long",r.Short="Short",r.Humanize="Humanize",r.Time="Time"})(_t||(_t={}));const wm={[_t.Long]:{weekday:"long",month:"long",day:"2-digit",year:"numeric"},[_t.Short]:{month:"short",day:"numeric",year:"numeric"},[_t.Humanize]:{month:"long",day:"numeric",year:"numeric"},[_t.Time]:{hour:"2-digit",minute:"2-digit"}};let U;(function(r){r.Sunday="sunday",r.Monday="monday",r.Tuesday="tuesday",r.Wednesday="wednesday",r.Thursday="thursday",r.Friday="friday",r.Saturday="saturday"})(U||(U={}));const Sm=U.Sunday,Cm=new Map([["AE",U.Saturday],["AF",U.Saturday],["BH",U.Saturday],["DZ",U.Saturday],["EG",U.Saturday],["IQ",U.Saturday],["IR",U.Saturday],["JO",U.Saturday],["KW",U.Saturday],["LY",U.Saturday],["OM",U.Saturday],["QA",U.Saturday],["SA",U.Saturday],["SY",U.Saturday],["YE",U.Saturday],["AR",U.Sunday],["BO",U.Sunday],["BR",U.Sunday],["BZ",U.Sunday],["CA",U.Sunday],["CL",U.Sunday],["CO",U.Sunday],["CR",U.Sunday],["DO",U.Sunday],["EC",U.Sunday],["GT",U.Sunday],["HK",U.Sunday],["HN",U.Sunday],["IL",U.Sunday],["JM",U.Sunday],["JP",U.Sunday],["KE",U.Sunday],["KR",U.Sunday],["MO",U.Sunday],["MX",U.Sunday],["NI",U.Sunday],["PA",U.Sunday],["PE",U.Sunday],["PH",U.Sunday],["SG",U.Sunday],["SV",U.Sunday],["TW",U.Sunday],["US",U.Sunday],["VE",U.Sunday],["ZA",U.Sunday],["ZW",U.Sunday],["AD",U.Monday],["AL",U.Monday],["AM",U.Monday],["AU",U.Monday],["AZ",U.Monday],["BE",U.Monday],["BG",U.Monday],["BN",U.Monday],["BY",U.Monday],["CH",U.Monday],["CN",U.Monday],["CZ",U.Monday],["DE",U.Monday],["DK",U.Monday],["EE",U.Monday],["ES",U.Monday],["FI",U.Monday],["FR",U.Monday],["GB",U.Monday],["GE",U.Monday],["GF",U.Monday],["GR",U.Monday],["HR",U.Monday],["HU",U.Monday],["ID",U.Monday],["IE",U.Monday],["IN",U.Monday],["IS",U.Monday],["IT",U.Monday],["KG",U.Monday],["KZ",U.Monday],["LB",U.Monday],["LT",U.Monday],["LU",U.Monday],["LV",U.Monday],["MA",U.Monday],["MC",U.Monday],["MK",U.Monday],["MN",U.Monday],["MY",U.Monday],["NL",U.Monday],["NO",U.Monday],["NZ",U.Monday],["PK",U.Monday],["PL",U.Monday],["PT",U.Monday],["PY",U.Monday],["RO",U.Monday],["RS",U.Monday],["RU",U.Monday],["SE",U.Monday],["SK",U.Monday],["TH",U.Monday],["TN",U.Monday],["TR",U.Monday],["UA",U.Monday],["UY",U.Monday],["UZ",U.Monday],["VN",U.Monday],["XK",U.Monday]]),_m=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"],Wo=new Map([["ko",(r,o,l)=>l?`${o}${r}`:o],["ja",(r,o,l)=>l?`${o}${r}`:`${o}様`],["zh-CN",(r,o,l)=>l?`${o}${r}`:o],["zh-TW",(r,o,l)=>l?`${o}${r}`:o]]);class ud extends Error{constructor(o,l){super(`Missing translation for key: ${o} in locale: ${l}`)}}class uf extends Error{constructor(o,l={}){let a="";const c=Object.keys(l);c.length<1?a=`No replacement found for key '${o}' (and no replacements were passed in).`:a=`No replacement found for key '${o}'. The following replacements were passed: ${c.map(u=>`'${u}'`).join(", ")}`,super(a)}}class cf extends Error{constructor(o=""){const l="No currency code provided.";super(o===""?l:`${l} ${o}`)}}class Tm extends Error{constructor(o=""){const l="No country code provided.";super(o===""?l:`${l} ${o}`)}}const km=/{([^}]*)}/g,Ma=Symbol("Missing translation"),zr="count",Zo=".",oa=new Map;function jr(r,o){const l=Pm(r,o);if(oa.has(l))return oa.get(l);const a=new Intl.NumberFormat(r,o);return oa.set(l,a),a}const xm={startDelimiter:"{",endDelimiter:"}",prepend:"[!!",append:"!!]"};function Pm(r,o={}){return`${Array.isArray(r)?r.sort().join("-"):r}-${JSON.stringify(o)}`}function Om(r,o={}){return new Intl.PluralRules(r,o)}const Ka=od(Om,(r,o={})=>`${r}${JSON.stringify(o)}`);function ia(r,o,l,a){const c=Array.isArray(o)?o:[o];let u;for(const f of c){u=f;for(const p of r.split(Zo))if(u=u[p],!u)break;if(u)return a?typeof u=="string"?qo(u,a):cd(u,l,a):u}throw new ud(r,l)}function Lm(r,o,l,a){const{scope:c,replacements:u,pseudotranslate:f}=o,p=Array.isArray(l)?l:[l],h=Nm(r,c);for(const g of p){const y=Mm(h,g,a,u,{pseudotranslate:f});if(y!==Ma)return y}throw new ud(h,a)}function Mm(r,o,l,a,{pseudotranslate:c=!1}={}){let u=o;for(const h of r.split(Zo)){if(u==null||typeof u!="object")return Ma;u=u[h]}const f={};if(typeof u=="object"&&a!=null&&Object.prototype.hasOwnProperty.call(a,zr)){const h=a[zr];if(typeof h=="number"){const g=Ka(l).select(h);u=u[g],f[zr]=jr(l).format(h)}}const p=typeof u=="string"&&c?gm(u,ye(ye({},xm),{},{toLocale:typeof c=="boolean"?void 0:c})):u;return typeof p=="string"?qo(p,ye(ye({},a),f)):Ma}function qo(r,o={}){const l=/([^{]*)({([^}]*)})?/g;if(Object.keys(o).every(c=>typeof o[c]!="object"))return r.replace(km,c=>{const u=c.substring(1,c.length-1);if(!Object.prototype.hasOwnProperty.call(o,u))throw new uf(u,o);return o[u]});{const c=[];let u=l.exec(r),f=0;for(;u;){const p=u[1],h=u[3];if(u.index>=r.length)break;if(p&&c.push(p),h){if(!Object.prototype.hasOwnProperty.call(o,h))throw new uf(h,o);f+=1;const g=_.isValidElement(o[h])?_.cloneElement(o[h],{key:f}):o[h];c.push(g)}u=l.exec(r)}return l.lastIndex=0,c}}function Nm(r,o){return o==null?r:`${typeof o=="string"?o:o.join(Zo)}${Zo}${r}`}function cd(r,o,l){if(Object.prototype.hasOwnProperty.call(l,zr)){const a=l[zr];if(typeof a=="number"){const c=Ka(o).select(a);if(typeof r[c]=="string")return qo(r[c],ye(ye({},l),{},{PLURALIZATION_KEY_NAME:jr(o).format(a)}))}}return Object.keys(r).reduce((a,c)=>ye(ye({},a),{},{[c]:typeof r[c]=="string"?qo(r[c],l):cd(r[c],o,l)}),{})}const la=2;var ff=new Map([["AED",2],["AFN",2],["ALL",2],["AMD",2],["ANG",2],["AOA",2],["ARS",2],["AUD",2],["AWG",2],["AZN",2],["BAM",2],["BBD",2],["BDT",2],["BGN",2],["BHD",3],["BIF",0],["BMD",2],["BND",2],["BOB",2],["BOV",2],["BRL",2],["BSD",2],["BTN",2],["BWP",2],["BYN",2],["BZD",2],["CAD",2],["CDF",2],["CHE",2],["CHF",2],["CHW",2],["CLF",4],["CLP",0],["CNY",2],["COP",2],["COU",2],["CRC",2],["CUC",2],["CUP",2],["CVE",2],["CZK",2],["DJF",0],["DKK",2],["DOP",2],["DZD",2],["EGP",2],["ERN",2],["ETB",2],["EUR",2],["FJD",2],["FKP",2],["GBP",2],["GEL",2],["GHS",2],["GIP",2],["GMD",2],["GNF",0],["GTQ",2],["GYD",2],["HKD",2],["HNL",2],["HRK",2],["HTG",2],["HUF",2],["IDR",2],["ILS",2],["INR",2],["IQD",3],["IRR",2],["ISK",0],["JMD",2],["JOD",3],["JPY",0],["KES",2],["KGS",2],["KHR",2],["KMF",0],["KPW",2],["KRW",0],["KWD",3],["KYD",2],["KZT",2],["LAK",2],["LBP",2],["LKR",2],["LRD",2],["LSL",2],["LYD",3],["MAD",2],["MDL",2],["MGA",2],["MKD",2],["MMK",2],["MNT",2],["MOP",2],["MRO",5],["MUR",2],["MVR",2],["MWK",2],["MXN",2],["MXV",2],["MYR",2],["MZN",2],["NAD",2],["NGN",2],["NIO",2],["NOK",2],["NPR",2],["NZD",2],["OMR",3],["PAB",2],["PEN",2],["PGK",2],["PHP",2],["PKR",2],["PLN",2],["PYG",0],["QAR",2],["RON",2],["RSD",2],["RUB",2],["RWF",0],["SAR",2],["SBD",2],["SCR",2],["SDG",2],["SEK",2],["SGD",2],["SHP",2],["SLL",2],["SOS",2],["SRD",2],["SSP",2],["STN",2],["SVC",2],["SYP",2],["SZL",2],["THB",2],["TJS",2],["TMT",2],["TND",3],["TOP",2],["TRY",2],["TTD",2],["TWD",2],["TZS",2],["UAH",2],["UGX",0],["USD",2],["USN",2],["UYI",0],["UYU",2],["UYW",4],["UZS",2],["VED",2],["VES",2],["VND",0],["VUV",0],["WST",2],["XAF",0],["XAG",0],["XAU",0],["XBA",0],["XBB",0],["XBC",0],["XBD",0],["XCD",2],["XDR",0],["XOF",0],["XPD",0],["XPF",0],["XPT",0],["XSU",0],["XTS",0],["XUA",0],["YER",2],["ZAR",2],["ZMW",2],["ZWL",2]]);function Rm(r,o){const a=/[\u200E\u200F]/,c=new RegExp("0[,.]*0*"),f=Dm(0,r,o).replace(a,""),p=c.exec(f);if(!p)throw new Error(`Number input in locale ${r} is currently not supported.`);const h=p[0],[g,y]=f.split(h);return{symbol:g||y,prefixed:g!==""}}function Dm(r,o,l){return jr(o,ye({style:"currency"},l)).format(r)}function Im(r){return r.replace(" "," ")}const Am=["as","precision"],Fm=["form"],Bm=["style"];var df,Ir;const aa=".",pf="-",zm=/\d/g,hf=/\D/g,Um=/\./g;let Na=(df=St(),Ir=class{get language(){return ld(this.locale)}get region(){return lf(this.locale)}get countryCode(){return lf(this.locale)}get languageDirection(){return _m.includes(this.language)?bn.Rtl:bn.Ltr}get isRtlLanguage(){return this.languageDirection===bn.Rtl}get isLtrLanguage(){return this.languageDirection===bn.Ltr}constructor(o,{locale:l,currency:a,timezone:c,country:u,pseudolocalize:f=!1,onError:p,loading:h}){this.translations=o,this.locale=void 0,this.pseudolocalize=void 0,this.defaultCountry=void 0,this.defaultCurrency=void 0,this.defaultTimezone=void 0,this.onError=void 0,this.loading=void 0,this.getCurrencySymbol=g=>{const y=g||this.defaultCurrency;if(y==null)throw new cf("formatCurrency cannot be called without a currency code.");return this.getCurrencySymbolLocalized(this.locale,y)},this.locale=l,this.defaultCountry=u,this.defaultCurrency=a,this.defaultTimezone=c,this.pseudolocalize=f,this.onError=p||this.defaultOnError,this.loading=h||!1}translate(o,l,a){const{pseudolocalize:c}=this;let u;l==null?u={pseudotranslate:c}:this.isTranslateOptions(l)?u=ye(ye({},l),{},{replacements:a,pseudotranslate:c}):u={replacements:l,pseudotranslate:c};try{return Lm(o,u,this.translations,this.locale)}catch(f){return this.onError(f),""}}getTranslationTree(o,l){try{return l?ia(o,this.translations,this.locale,l):ia(o,this.translations,this.locale)}catch(a){return this.onError(a),""}}translationKeyExists(o){try{return ia(o,this.translations,this.locale),!0}catch{return!1}}formatNumber(o,l={}){let{as:a,precision:c}=l,u=ea(l,Am);const{locale:f,defaultCurrency:p}=this;return a==="currency"&&p==null&&u.currency==null?(this.onError(new cf("formatNumber(amount, {as: 'currency'}) cannot be called without a currency code.")),""):jr(f,ye({style:a,maximumFractionDigits:c,currency:p},u)).format(o)}unformatNumber(o){const{decimalSymbol:l}=this.numberSymbols(),a=this.normalizedNumber(o,l);return a===""?"":parseFloat(a).toString()}formatCurrency(o,l={}){let{form:a}=l,c=ea(l,Fm);switch(a){case"auto":return this.formatCurrencyAuto(o,c);case"explicit":return this.formatCurrencyExplicit(o,c);case"short":return this.formatCurrencyShort(o,c);case"none":return this.formatCurrencyNone(o,c)}return this.formatNumber(o,ye({as:"currency"},c))}unformatCurrency(o,l){const{decimalSymbol:a}=this.numberSymbols(),c=ff.get(l.toUpperCase()),u=this.normalizedNumber(o,a,c);return u===""?"":c===0?`${parseFloat(u).toFixed(0)}.${"0".repeat(la)}`:parseFloat(u).toFixed(c)}formatPercentage(o,l={}){return this.formatNumber(o,ye({as:"percent"},l))}formatDate(o,l={}){const{locale:a,defaultTimezone:c}=this,{timeZone:u=c}=l,f=l||{},{style:p=void 0}=f,h=ea(f,Bm);return p?p===_t.Humanize?this.humanizeDate(o,ye(ye({},h),{},{timeZone:u})):this.formatDate(o,ye(ye({},h),wm[p])):Ct(o,a,ye(ye({},h),{},{timeZone:u}))}ordinal(o){const{locale:l}=this,a=Ka(l,{type:"ordinal"}).select(o);return this.translate(a,{scope:"ordinal"},{amount:o})}weekStartDay(o){const l=o||this.defaultCountry;if(!l)throw new Tm("weekStartDay() cannot be called without a country code.");return Cm.get(l)||Sm}getCurrencySymbolLocalized(o,l){return Rm(o,{currency:l})}formatName(o,l,a){if(!o)return l||"";if(!l)return o;const c=!!(a&&a.full),u=Wo.get(this.locale)||Wo.get(this.language);return u?u(o,l,c):c?`${o} ${l}`:o}hasEasternNameOrderFormatter(){return!!(Wo.get(this.locale)||Wo.get(this.language))}numberSymbols(){const o=this.formatNumber(123456.7,{maximumFractionDigits:1,minimumFractionDigits:1});let l,a;for(const c of o)isNaN(parseInt(c,10))&&(l?a=c:l=c);return{thousandSymbol:l,decimalSymbol:a}}formatCurrencyAuto(o,l={}){return l.currency==null||this.defaultCurrency==null||l.currency===this.defaultCurrency?this.formatCurrencyShort(o,l):this.formatCurrencyExplicit(o,l)}formatCurrencyExplicit(o,l={}){const a=this.formatCurrencyShort(o,l),c=l.currency||this.defaultCurrency||"";return a.includes(c)?a:`${a} ${c}`}formatCurrencyShort(o,l={}){const a=this.formatCurrencyNone(o,l),c=this.getShortCurrencySymbol(l.currency),u=c.prefixed?`${c.symbol}${a}`:`${a}${c.symbol}`;return o<0?`-${u.replace(/[-−]/,"")}`:u}formatCurrencyNone(o,l={}){const{locale:a}=this;let c=l.precision;if(c===void 0){const u=l.currency||this.defaultCurrency||"";c=ff.get(u.toUpperCase())}return jr(a,ye({style:"decimal",minimumFractionDigits:c,maximumFractionDigits:c},l)).format(o)}getShortCurrencySymbol(o=this.defaultCurrency||""){const l=o||this.defaultCurrency||"",a=l.substring(0,2),c=this.getCurrencySymbol(l),u=c.symbol.replace(a,"");return/[A-Za-zÀ-ÖØ-öø-ÿĀ-ɏḂ-ỳ]/.exec(u)?c:{symbol:u,prefixed:c.prefixed}}humanizeDate(o,l){return pn(o)?this.humanizeFutureDate(o,l):this.humanizePastDate(o,l)}humanizePastDate(o,l){if(lm(o))return this.translate("date.humanize.lessThanOneMinuteAgo");if(im(o)){const f=Math.floor((new Date().getTime()-o.getTime())/Tt.Minute);return this.translate("date.humanize.lessThanOneHourAgo",{count:f})}const a=l==null?void 0:l.timeZone,c=this.getTimeFromDate(o,l);if(of(o,a))return c;if(pm(o,a))return this.translate("date.humanize.yesterday",{time:c});if(am(o)){const u=this.getWeekdayFromDate(o,l);return this.translate("date.humanize.lessThanOneWeekAgo",{weekday:u,time:c})}if(um(o)){const u=this.getMonthDayFromDate(o,l);return this.translate("date.humanize.lessThanOneYearAgo",{date:u,time:c})}return this.formatDate(o,ye(ye({},l),{},{style:_t.Short}))}humanizeFutureDate(o,l){const a=l==null?void 0:l.timeZone,c=this.getTimeFromDate(o,l);if(of(o,a))return this.translate("date.humanize.today",{time:c});if(hm(o,a))return this.translate("date.humanize.tomorrow",{time:c});if(sm(o)){const u=this.getWeekdayFromDate(o,l);return this.translate("date.humanize.lessThanOneWeekAway",{weekday:u,time:c})}if(cm(o)){const u=this.getMonthDayFromDate(o,l);return this.translate("date.humanize.lessThanOneYearAway",{date:u,time:c})}return this.formatDate(o,ye(ye({},l),{},{style:_t.Short}))}getTimeZone(o,l){const{localeMatcher:a,formatMatcher:c,timeZone:u}=l||{},f=this.formatDate(o,{localeMatcher:a,formatMatcher:c,timeZone:u,hour12:!1,timeZoneName:"short",hour:"numeric"}),p=/\s([\w()+\-:.]+$)/.exec(f);return p?p[1]:""}getTimeFromDate(o,l){const{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f,timeZoneName:p}=l||{},h=this.formatDate(o,{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f,timeZoneName:p==="short"?void 0:p,hour:"numeric",minute:"2-digit"}).toLocaleLowerCase(),g=p==="short"?`${h} ${this.getTimeZone(o,l)}`:h;return Im(g)}getWeekdayFromDate(o,l){const{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f}=l||{};return this.formatDate(o,{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f,weekday:"long"})}getMonthDayFromDate(o,l){const{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f}=l||{};return this.formatDate(o,{localeMatcher:a,formatMatcher:c,hour12:u,timeZone:f,month:"short",day:"numeric"})}normalizedNumber(o,l,a=la){const c=Math.max(a,la),u=o.lastIndexOf(aa);let f=o.lastIndexOf(l);l!==aa&&(o.match(Um)||[]).length===1&&this.decimalValue(o,u).length<=c&&(f=u);const p=this.integerValue(o,f),h=this.decimalValue(o,f),x=`${o.trim().startsWith(pf)?pf:""}${p}${f===-1?"":aa}${h}`;return x.match(zm)?x:""}integerValue(o,l){return o.substring(0,l).replace(hf,"")}decimalValue(o,l){return o.substring(l+1).replace(hf,"")}isTranslateOptions(o){return"scope"in o}defaultOnError(o){throw o}},Qh(Ir.prototype,"numberSymbols",[df],Object.getOwnPropertyDescriptor(Ir.prototype,"numberSymbols"),Ir.prototype),Ir);function mf(r){const[o]=z.useState(r);return z.useRef(o)}function mt(r){const o=_.useContext(nd);if(o==null)throw new Error("Missing i18n manager. Make sure to use an <I18nContext.Provider /> somewhere in your React tree.");const l=_.useRef(r);if(gf(l.current)!==gf(r))throw new Error("You switched between providing registration options and not providing them, which is not supported.");return r==null?jm(o):$m(r,o)}function $m({id:r,fallback:o,translations:l},a){const c=_.useRef(null),u=_.useRef(bm),f=_.useContext($c),p=mf(()=>r?[r,...f]:f);a!==c.current&&(c.current=a,u.current(),u.current=a.subscribe(p.current,({translations:x,loading:M},L)=>{const I=new Na(x,ye(ye({},L),{},{loading:M}));y.current=I,g(I)}),r&&(l||o)&&a.register({id:r,translations:l,fallback:o}));const[h,g]=_.useState(()=>{const x=a.state(p.current),{translations:M,loading:L}=x;return new Na(M,ye(ye({},a.details),{},{loading:L}))}),y=_.useRef(h);_.useEffect(()=>u.current,[]);const S=mf(()=>function({children:M}){return _.createElement($c.Provider,{value:p.current},_.createElement(rd.Provider,{value:y.current},M))});return[h,S.current]}function jm(r){return[_.useContext(rd)||new Na([],r.details),Hm]}function Hm({children:r}){return _.createElement(_.Fragment,null,r)}function gf({fallback:r,translations:o}={}){return r!=null||o!=null}function bm(){}function Vm({children:r}){const[o]=mt({id:"Layout",fallback:zh});return _.createElement("div",{className:Uh},_.createElement("div",{className:$h},!qf&&_.createElement("header",{className:jh},_.createElement("section",{className:Hh},_.createElement(ed,null),_.createElement("h1",null," ",o.translate("title")))),_.createElement("main",null,r)))}const Wm="_Intro_1aphs_1",Gm="_ExtensionList_1aphs_9",Km="_isAppPreview_1aphs_23",Qm="_Empty_1aphs_45",Ym="View mobile",Xm={viewMobile:Ym},Zm="_Title_mda4k_1",qm=["localization","name","description"];function Jm(r){const o=new Map;return fd(r,(l,a)=>o.set(l,a)),o}function fd(r,o,l){Object.keys(r).forEach(a=>{const c=r[a],u=l?`${l}.${a}`:a;c!=null&&(typeof c=="string"?o(u,c):fd(c,o,u))})}function eg(r,o){const l=sa(r.translations[r.defaultLocale]),a=Ra(o),c=sa(r.translations[a]),u=sa(r.translations[o]);return ng(new Map([...l,...c,...u]))}function sa(r){return r?Jm(r):new Map}function tg(r,o){const l=new Set(Object.keys(r.translations));if(l.size===0||l.has(o.user))return o.user;const a=Ra(o.user);if(l.has(a))return a;if(o.shop&&l.has(o.shop))return o.shop;const c=o.shop&&Ra(o.shop);return c&&l.has(c)?c:r.defaultLocale}function ng(r){const o={};for(const[l,a]of r)o[l]=a;return o}function Ra(r){return r.split("-")[0]}function rg(r,o){if(!r||!o)return;if(Da(r))return r;const l=tg(r,o),a=JSON.stringify(eg(r,l));return{extensionLocale:l,translations:a,lastUpdated:r.lastUpdated}}function Da(r){return typeof r.translations=="string"&&Object.prototype.hasOwnProperty.call(r,"extensionLocale")}const vf=()=>{};function og(r,o,l){const a=new Map(o.map(u=>[l(u),u]));return[...r.map(u=>{const f=l(u);if(a.has(f)){const p=a.get(f);return a.delete(f),p}else return u}),...a.values()]}function Go(r,o,l){const a=[],c=new Proxy({},{get:(h,g)=>(a.push(g),c)});o(c);const u={...r};let f=u;const p=a.pop();for(const h of a)f[h]={...f[h]},f=f[h];return f[p]=l,u}function ua(r){const o=new URL(r.url);return o.searchParams.set("lastUpdated",String(r.lastUpdated)),o.toString()}const ig=["admin","checkout","post_purchase","point_of_sale","customer-accounts"];function dd(r){return!!r&&ig.includes(r)}function Ia(r){const o=r;return o.type==="ui_extension"&&Array.isArray(o.extensionPoints)&&o.extensionPoints.every(l=>typeof l=="object")}class pd{constructor(o={}){this.EVENT_THAT_WILL_MUTATE_THE_SERVER=["update"],this.listeners={},this.connectionListeners={close:new Set,open:new Set},this.connected=!1,this.uiExtensionsByUuid={},this.id=(Math.random()+1).toString(36).substring(7),this.options=hd({...o,connection:{automaticConnect:!0,protocols:[],...o.connection??{}}}),this.setupConnection(this.options.connection.automaticConnect)}connect(o={connection:{}}){const l=lg(this.options,o);return JSON.stringify(l)!==JSON.stringify(this.options)&&(this.options=l,this.setupConnection(!0)),()=>{this.closeConnection()}}on(o,l){return this.listeners[o]||(this.listeners[o]=new Set),this.listeners[o].add(l),()=>this.listeners[o].delete(l)}persist(o,l){var a,c,u;if(this.EVENT_THAT_WILL_MUTATE_THE_SERVER.includes(o))return this.options.locales?((c=l.extensions)==null||c.forEach(f=>{qm.forEach(p=>{var h;Ia(f)&&((h=f.extensionPoints)==null||h.forEach(g=>{delete g[p]})),delete f[p]})}),(u=this.connection)==null?void 0:u.send(JSON.stringify({event:o,data:l}))):(a=this.connection)==null?void 0:a.send(JSON.stringify({event:o,data:l}));console.warn('You tried to use "persist" with a dispatch event. Please use the "emit" method instead.')}emit(...o){var c;const l=o[0],a=o.length>1?o[1]:void 0;if(this.EVENT_THAT_WILL_MUTATE_THE_SERVER.includes(l))return console.warn(`You tried to use "emit" with a the "${l}" event. Please use the "persist" method instead to persist changes to the server.`);(c=this.connection)==null||c.send(JSON.stringify({event:"dispatch",data:{type:l,payload:a}}))}onConnection(o,l){return this.connectionListeners[o].add(l),()=>this.connectionListeners[o].delete(l)}initializeConnection(){var o;this.connection&&(this.connection.addEventListener("open",l=>{this.connected=!0,this.connectionListeners.open.forEach(a=>a(l))}),this.connection.addEventListener("close",l=>{this.connected=!1,this.connectionListeners.close.forEach(a=>a(l))}),(o=this.connection)==null||o.addEventListener("message",l=>{var a,c;try{const{event:u,data:f}=JSON.parse(l.data),p=f;if(u==="dispatch"){const{type:g,payload:y}=p;(a=this.listeners[g])==null||a.forEach(S=>S(y));return}const h=p.extensions?ag(p.extensions,this.options.surface):p.extensions;(c=this.listeners[u])==null||c.forEach(g=>{g({...p,extensions:this._getLocalizedExtensions(h)})})}catch(u){console.error("[ExtensionServer] Something went wrong while parsing a server message:",u instanceof Error?u.message:u)}}))}setupConnection(o=!0){this.options.connection.url&&o&&(this.closeConnection(),this.connection=new WebSocket(this.options.connection.url,this.options.connection.protocols),this.initializeConnection())}closeConnection(){var o;this.connected&&((o=this.connection)==null||o.close())}_getLocalizedExtensions(o){return o==null?void 0:o.map(l=>{var p,h,g,y,S;if(!this.options.locales||!Ia(l))return l;const c=((h=(p=this.uiExtensionsByUuid[l.uuid])==null?void 0:p.localization)==null?void 0:h.lastUpdated)!==((g=l.localization)==null?void 0:g.lastUpdated)?rg(l.localization,this.options.locales):((y=this.uiExtensionsByUuid[l.uuid])==null?void 0:y.localization)??l.localization,u=c&&Da(c)?JSON.parse(c.translations):c,f={...l,localization:c,name:u&&l.name.startsWith("t:")?this._getLocalizedValue(u,l.name):l.name,...l.description&&{description:u&&((S=l.description)!=null&&S.startsWith("t:"))?this._getLocalizedValue(u,l.description):l.description}};return this.uiExtensionsByUuid[l.uuid]={...f,extensionPoints:this._getLocalizedExtensionPoints(c,f)},this.uiExtensionsByUuid[l.uuid]})}_getLocalizedExtensionPoints(o,{extensionPoints:l,name:a,description:c}){return!o||!Da(o)?l:l==null?void 0:l.map(u=>({...u,localization:o,name:a,...c&&{description:c}}))}_getLocalizedValue(o,l){const a=l.replace("t:","");return o[a]||l}}function lg(r,o){return hd({...r,...o,connection:{...r.connection,...o.connection}})}function hd(r){return dd(r.surface)||delete r.surface,r}function ag(r,o){return o?r.filter(l=>l.surface===o?!0:Array.isArray(l.extensionPoints)?l.extensionPoints.filter(u=>typeof u=="string"?!1:u.surface===o).length>0:!1):r}function sg(r){return{type:"connected",payload:r}}function ug(r){return{type:"update",payload:r}}function cg(r){return{type:"refresh",payload:r}}function fg(r){return{type:"focus",payload:r}}function dg(r){return{type:"unfocus",payload:r}}const md={extensions:[],store:""};function pg(r,o){switch(o.type){case"connected":{const l=(o.payload.extensions??[]).map(a=>(Object.keys(a.assets).forEach(c=>a.assets[c].url=ua(a.assets[c])),a));return{...r,store:o.payload.store,app:o.payload.app,extensions:l}}case"update":{const l=(o.payload.extensions??[]).map(a=>(Object.keys(a.assets).forEach(c=>a.assets[c].url=ua(a.assets[c])),a));return{...r,app:{...r.app??{},...o.payload.app??{}},extensions:og(r.extensions,l,({uuid:a})=>a)}}case"refresh":return{...r,extensions:r.extensions.map(l=>{if(o.payload.some(({uuid:a})=>l.uuid===a)){const a={};return Object.keys(l.assets).forEach(c=>{const u={...l.assets[c]};u.lastUpdated=Date.now(),u.url=ua(u),a[c]=u}),Go(l,c=>c.assets,a)}return l})};case"focus":return{...r,extensions:r.extensions.map(l=>o.payload.some(({uuid:a})=>l.uuid===a)?Go(l,a=>a.development.focused,!0):l.development.focused?Go(l,a=>a.development.focused,!1):l)};case"unfocus":return{...r,extensions:r.extensions.map(l=>l.development.focused?Go(l,a=>a.development.focused,!1):l)};default:return r}}const hg={connect:vf,dispatch:vf,state:md,client:new pd},gd=z.createContext(hg),mg=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),yf=mg?z.useEffect:z.useLayoutEffect;function gg(){return z.useReducer(pg,md)}function vg({children:r,options:o}){const[l,a]=gg(),[c,u]=z.useState(o),[f]=z.useState(()=>new pd),p=z.useCallback((g=c)=>{u(g)},[c]);yf(()=>f.connect(c),[f,c]),yf(()=>{const g=[f.on("update",y=>a(ug(y))),f.on("connected",y=>a(sg(y))),f.on("refresh",y=>a(cg(y))),f.on("focus",y=>a(fg(y))),f.on("unfocus",y=>a(dg(y)))];return()=>g.forEach(y=>y())},[a]);const h=z.useMemo(()=>({dispatch:a,state:l,connect:p,client:f}),[a,p,l,f]);return _.createElement(gd.Provider,{value:h},r)}const Hr=()=>z.useContext(gd);function Qa(){const r=Hr(),o=r.state.store,l=r.state.app;return z.useMemo(()=>({store:o,app:l}),[JSON.stringify(l),o])}function vd(){const o=Hr().client.options;return z.useMemo(()=>o,[JSON.stringify(o)])}const yg="_Button_s4bwx_1",Eg="_WithIcon_s4bwx_12",wg="_Icon_s4bwx_15",Sg="_Icon_dakzz_1",Cg="_Muted_dakzz_18",ca={Icon:Sg,Muted:Cg},_g="_VisuallyHidden_1p9uv_1",Tg={VisuallyHidden:_g};function kg({children:r}){return _.createElement("span",{className:Tg.VisuallyHidden},r)}function qe(...r){return r.filter(Boolean).join(" ")}function yd({source:r,accessibilityLabel:o,muted:l=!1}){const a=r;return _.createElement(_.Fragment,null,_.createElement(kg,null,o),_.createElement("span",{className:ca.Icon},_.createElement(a,{className:qe(ca.Svg,l&&ca.Muted),focusable:"false","aria-hidden":"true"})))}function Ed({className:r,selected:o,icon:l,children:a,...c}){const u=l?_.createElement("span",{className:wg},_.createElement(yd,{source:l.source})):null;return _.createElement("button",{...c,className:qe(l&&Eg,yg,r),"aria-pressed":o},l&&l.position==="left"&&u,_.createElement("span",null,a),l&&l.position==="right"&&u)}const xg="_IconButton_wwtfg_1",Pg="_Icon_wwtfg_1";function Ya({className:r,selected:o,source:l,accessibilityLabel:a,...c}){return _.createElement("button",{...c,className:qe(r,xg),"aria-pressed":o},_.createElement("span",{className:Pg},_.createElement(yd,{source:l,accessibilityLabel:a})))}const Og="_BodyWrapper_11cpl_1",Lg={BodyWrapper:Og},Mg="_Backdrop_1yvdu_9",Ng={Backdrop:Mg};function Rg({onClick:r,setClosing:o}){const l=()=>{o(!0)},a=()=>{o(!1),r()};return _.createElement(_.Fragment,null,_.createElement("div",{className:Ng.Backdrop,onClick:r,onMouseDown:l,onMouseUp:a}))}const Dg="Close modal",Ig={close:Dg};function Ag({pressed:r,onClick:o}){const[l]=mt({id:"ModalCloseButton",fallback:Ig});return _.createElement(Ya,{source:td,type:"button",onClick:o,selected:r,accessibilityLabel:l.translate("close")})}const Fg="_Container_rwtbo_1",Bg="_Dialog_rwtbo_14",zg="_Modal_rwtbo_18",Ug="_animateFadeUp_rwtbo_40",$g="_entering_rwtbo_46",jg="_exiting_rwtbo_46",Hg="_exited_rwtbo_46",bg="_entered_rwtbo_50",$e={Container:Fg,Dialog:Bg,Modal:zg,"Width-large":"_Width-large_rwtbo_33","Width-small":"_Width-small_rwtbo_36",animateFadeUp:Ug,entering:$g,exiting:jg,exited:Hg,entered:bg};function Vg(r,o=!0){var l;(l=Wg(r,o))==null||l.focus()}function Wg(r,o=!0){const l='a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled):not([aria-disabled="true"]):not([tabindex="-1"]),*[tabindex]';return!o&&Gg(r,l)?r:r.querySelector(l)}function Gg(r,o){if(r.matches)return r.matches(o);const l=(r.ownerDocument||document).querySelectorAll(o);let a=l.length;for(;--a>=0&&l.item(a)!==r;)return a>-1}function Jo(){return Jo=Object.assign?Object.assign.bind():function(r){for(var o=1;o<arguments.length;o++){var l=arguments[o];for(var a in l)({}).hasOwnProperty.call(l,a)&&(r[a]=l[a])}return r},Jo.apply(null,arguments)}function Xa(r,o){if(r==null)return{};var l={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(o.indexOf(a)!==-1)continue;l[a]=r[a]}return l}function Aa(r,o){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,a){return l.__proto__=a,l},Aa(r,o)}function Za(r,o){r.prototype=Object.create(o.prototype),r.prototype.constructor=r,Aa(r,o)}function Kg(r,o){return r.classList?!!o&&r.classList.contains(o):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+o+" ")!==-1}function Qg(r,o){r.classList?r.classList.add(o):Kg(r,o)||(typeof r.className=="string"?r.className=r.className+" "+o:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+o))}function Ef(r,o){return r.replace(new RegExp("(^|\\s)"+o+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yg(r,o){r.classList?r.classList.remove(o):typeof r.className=="string"?r.className=Ef(r.className,o):r.setAttribute("class",Ef(r.className&&r.className.baseVal||"",o))}var fa={exports:{}},Ze={},da={exports:{}},pa={};/** @license React v0.20.2
|
|
13
13
|
* scheduler.production.min.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
19
|
+
*/var wf;function Xg(){return wf||(wf=1,(function(r){var o,l,a,c;if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}if(typeof window>"u"||typeof MessageChannel!="function"){var h=null,g=null,y=function(){if(h!==null)try{var A=r.unstable_now();h(!0,A),h=null}catch(W){throw setTimeout(y,0),W}};o=function(A){h!==null?setTimeout(o,0,A):(h=A,setTimeout(y,0))},l=function(A,W){g=setTimeout(A,W)},a=function(){clearTimeout(g)},r.unstable_shouldYield=function(){return!1},c=r.unstable_forceFrameRate=function(){}}else{var S=window.setTimeout,x=window.clearTimeout;if(typeof console<"u"){var M=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof M!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var L=!1,I=null,N=-1,B=5,J=0;r.unstable_shouldYield=function(){return r.unstable_now()>=J},c=function(){},r.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<A?Math.floor(1e3/A):5};var se=new MessageChannel,ee=se.port2;se.port1.onmessage=function(){if(I!==null){var A=r.unstable_now();J=A+B;try{I(!0,A)?ee.postMessage(null):(L=!1,I=null)}catch(W){throw ee.postMessage(null),W}}else L=!1},o=function(A){I=A,L||(L=!0,ee.postMessage(null))},l=function(A,W){N=S(function(){A(r.unstable_now())},W)},a=function(){x(N),N=-1}}function ne(A,W){var V=A.length;A.push(W);e:for(;;){var q=V-1>>>1,X=A[q];if(X!==void 0&&0<de(X,W))A[q]=W,A[V]=X,V=q;else break e}}function me(A){return A=A[0],A===void 0?null:A}function ve(A){var W=A[0];if(W!==void 0){var V=A.pop();if(V!==W){A[0]=V;e:for(var q=0,X=A.length;q<X;){var oe=2*(q+1)-1,Ee=A[oe],Oe=oe+1,ke=A[Oe];if(Ee!==void 0&&0>de(Ee,V))ke!==void 0&&0>de(ke,Ee)?(A[q]=ke,A[Oe]=V,q=Oe):(A[q]=Ee,A[oe]=V,q=oe);else if(ke!==void 0&&0>de(ke,V))A[q]=ke,A[Oe]=V,q=Oe;else break e}}return W}return null}function de(A,W){var V=A.sortIndex-W.sortIndex;return V!==0?V:A.id-W.id}var Se=[],we=[],Ne=1,he=null,H=3,R=!1,j=!1,D=!1;function w(A){for(var W=me(we);W!==null;){if(W.callback===null)ve(we);else if(W.startTime<=A)ve(we),W.sortIndex=W.expirationTime,ne(Se,W);else break;W=me(we)}}function P(A){if(D=!1,w(A),!j)if(me(Se)!==null)j=!0,o(K);else{var W=me(we);W!==null&&l(P,W.startTime-A)}}function K(A,W){j=!1,D&&(D=!1,a()),R=!0;var V=H;try{for(w(W),he=me(Se);he!==null&&(!(he.expirationTime>W)||A&&!r.unstable_shouldYield());){var q=he.callback;if(typeof q=="function"){he.callback=null,H=he.priorityLevel;var X=q(he.expirationTime<=W);W=r.unstable_now(),typeof X=="function"?he.callback=X:he===me(Se)&&ve(Se),w(W)}else ve(Se);he=me(Se)}if(he!==null)var oe=!0;else{var Ee=me(we);Ee!==null&&l(P,Ee.startTime-W),oe=!1}return oe}finally{he=null,H=V,R=!1}}var te=c;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(A){A.callback=null},r.unstable_continueExecution=function(){j||R||(j=!0,o(K))},r.unstable_getCurrentPriorityLevel=function(){return H},r.unstable_getFirstCallbackNode=function(){return me(Se)},r.unstable_next=function(A){switch(H){case 1:case 2:case 3:var W=3;break;default:W=H}var V=H;H=W;try{return A()}finally{H=V}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=te,r.unstable_runWithPriority=function(A,W){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var V=H;H=A;try{return W()}finally{H=V}},r.unstable_scheduleCallback=function(A,W,V){var q=r.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?q+V:q):V=q,A){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=V+X,A={id:Ne++,callback:W,priorityLevel:A,startTime:V,expirationTime:X,sortIndex:-1},V>q?(A.sortIndex=V,ne(we,A),me(Se)===null&&A===me(we)&&(D?a():D=!0,l(P,V-q))):(A.sortIndex=X,ne(Se,A),j||R||(j=!0,o(K))),A},r.unstable_wrapCallback=function(A){var W=H;return function(){var V=H;H=W;try{return A.apply(this,arguments)}finally{H=V}}}})(pa)),pa}var Sf;function Zg(){return Sf||(Sf=1,da.exports=Xg()),da.exports}/** @license React v17.0.2
|
|
20
20
|
* react-dom.production.min.js
|
|
21
21
|
*
|
|
22
22
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var
|
|
26
|
+
*/var Cf;function qg(){if(Cf)return Ze;Cf=1;var r=Va(),o=Jf(),l=Zg();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var c=new Set,u={};function f(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(u[e]=t,e=0;e<t.length;e++)c.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y=Object.prototype.hasOwnProperty,S={},x={};function M(e){return y.call(x,e)?!0:y.call(S,e)?!1:g.test(e)?x[e]=!0:(S[e]=!0,!1)}function L(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I(e,t,n,i){if(t===null||typeof t>"u"||L(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function N(e,t,n,i,s,d,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=m}var B={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){B[e]=new N(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];B[t]=new N(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){B[e]=new N(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){B[e]=new N(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){B[e]=new N(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){B[e]=new N(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){B[e]=new N(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){B[e]=new N(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){B[e]=new N(e,5,!1,e.toLowerCase(),null,!1,!1)});var J=/[\-:]([a-z])/g;function se(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(J,se);B[t]=new N(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(J,se);B[t]=new N(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(J,se);B[t]=new N(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){B[e]=new N(e,1,!1,e.toLowerCase(),null,!1,!1)}),B.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){B[e]=new N(e,1,!1,e.toLowerCase(),null,!0,!0)});function ee(e,t,n,i){var s=B.hasOwnProperty(t)?B[t]:null,d=s!==null?s.type===0:i?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");d||(I(t,n,s,i)&&(n=null),i||s===null?M(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,i=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var ne=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,me=60103,ve=60106,de=60107,Se=60108,we=60114,Ne=60109,he=60110,H=60112,R=60113,j=60120,D=60115,w=60116,P=60121,K=60128,te=60129,A=60130,W=60131;if(typeof Symbol=="function"&&Symbol.for){var V=Symbol.for;me=V("react.element"),ve=V("react.portal"),de=V("react.fragment"),Se=V("react.strict_mode"),we=V("react.profiler"),Ne=V("react.provider"),he=V("react.context"),H=V("react.forward_ref"),R=V("react.suspense"),j=V("react.suspense_list"),D=V("react.memo"),w=V("react.lazy"),P=V("react.block"),V("react.scope"),K=V("react.opaque.id"),te=V("react.debug_trace_mode"),A=V("react.offscreen"),W=V("react.legacy_hidden")}var q=typeof Symbol=="function"&&Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var oe;function Ee(e){if(oe===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oe=t&&t[1]||""}return`
|
|
27
27
|
`+oe+e}var Oe=!1;function ke(e,t){if(!e||Oe)return"";Oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(E){var i=E}Reflect.construct(e,[],t)}else{try{t.call()}catch(E){i=E}e.call(t.prototype)}else{try{throw Error()}catch(E){i=E}e()}}catch(E){if(E&&i&&typeof E.stack=="string"){for(var s=E.stack.split(`
|
|
28
28
|
`),d=i.stack.split(`
|
|
29
29
|
`),m=s.length-1,v=d.length-1;1<=m&&0<=v&&s[m]!==d[v];)v--;for(;1<=m&&0<=v;m--,v--)if(s[m]!==d[v]){if(m!==1||v!==1)do if(m--,v--,0>v||s[m]!==d[v])return`
|
|
@@ -31,7 +31,7 @@ object-assign
|
|
|
31
31
|
Error generating stack: `+d.message+`
|
|
32
32
|
`+d.stack}return{value:e,source:t,stack:s}}function Ll(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ch=typeof WeakMap=="function"?WeakMap:Map;function mc(e,t,n){n=At(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Io||(Io=!0,Ul=i),Ll(e,t)},n}function gc(e,t,n){n=At(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var s=t.value;n.payload=function(){return Ll(e,t),i(s)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(n.callback=function(){typeof i!="function"&&(ht===null?ht=new Set([this]):ht.add(this),Ll(e,t));var m=t.stack;this.componentDidCatch(t.value,{componentStack:m!==null?m:""})}),n}var fh=typeof WeakSet=="function"?WeakSet:Set;function vc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Ht(e,n)}else t.current=null}function dh(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,i=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:at(t.type,n),i),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Ji(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ph(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var i=e.create;e.destroy=i()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;i=s.next,s=s.tag,(s&4)!==0&&(s&1)!==0&&(Rc(n,e),Sh(n,e)),e=i}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(i=n.elementType===n.type?t.memoizedProps:at(n.type,t.memoizedProps),e.componentDidUpdate(i,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Du(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Du(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&hu(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Ms(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function yc(e,t){for(var n=e;;){if(n.tag===5){var i=n.stateNode;if(t)i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{i=n.stateNode;var s=n.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=ps("display",s)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Ec(e,t){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(nl,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var i=n,s=i.destroy;if(i=i.tag,s!==void 0)if((i&4)!==0)Rc(t,n);else{i=t;try{s()}catch(d){Ht(i,d)}}n=n.next}while(n!==e)}break;case 1:if(vc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(d){Ht(t,d)}break;case 5:vc(t);break;case 4:_c(e,t)}}function wc(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Sc(e){return e.tag===5||e.tag===3||e.tag===4}function Cc(e){e:{for(var t=e.return;t!==null;){if(Sc(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var i=!1;break;case 3:t=t.containerInfo,i=!0;break;case 4:t=t.containerInfo,i=!0;break;default:throw Error(a(161))}n.flags&16&&(Gn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Sc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}i?Ml(e,n,t):Nl(e,n,t)}function Ml(e,t,n){var i=e.tag,s=i===5||i===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ao));else if(i!==4&&(e=e.child,e!==null))for(Ml(e,t,n),e=e.sibling;e!==null;)Ml(e,t,n),e=e.sibling}function Nl(e,t,n){var i=e.tag,s=i===5||i===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Nl(e,t,n),e=e.sibling;e!==null;)Nl(e,t,n),e=e.sibling}function _c(e,t){for(var n=t,i=!1,s,d;;){if(!i){i=n.return;e:for(;;){if(i===null)throw Error(a(160));switch(s=i.stateNode,i.tag){case 5:d=!1;break e;case 3:s=s.containerInfo,d=!0;break e;case 4:s=s.containerInfo,d=!0;break e}i=i.return}i=!0}if(n.tag===5||n.tag===6){e:for(var m=e,v=n,E=v;;)if(Ec(m,E),E.child!==null&&E.tag!==4)E.child.return=E,E=E.child;else{if(E===v)break e;for(;E.sibling===null;){if(E.return===null||E.return===v)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}d?(m=s,v=n.stateNode,m.nodeType===8?m.parentNode.removeChild(v):m.removeChild(v)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,d=!0,n.child.return=n,n=n.child;continue}}else if(Ec(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(i=!1)}n.sibling.return=n.return,n=n.sibling}}function Rl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do(i.tag&3)===3&&(e=i.destroy,i.destroy=void 0,e!==void 0&&e()),i=i.next;while(i!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){i=t.memoizedProps;var s=e!==null?e.memoizedProps:i;e=t.type;var d=t.updateQueue;if(t.updateQueue=null,d!==null){for(n[uo]=i,e==="input"&&i.type==="radio"&&i.name!=null&&ls(n,i),Ei(e,s),t=Ei(e,i),s=0;s<d.length;s+=2){var m=d[s],v=d[s+1];m==="style"?hs(n,v):m==="dangerouslySetInnerHTML"?ds(n,v):m==="children"?Gn(n,v):ee(n,m,v,t)}switch(e){case"input":di(n,i);break;case"textarea":us(n,i);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!i.multiple,d=i.value,d!=null?mn(n,!!i.multiple,d,!1):e!==!!i.multiple&&(i.defaultValue!=null?mn(n,!!i.multiple,i.defaultValue,!0):mn(n,!!i.multiple,i.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(a(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Ms(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Bl=Be(),yc(t.child,!0)),Tc(t);return;case 19:Tc(t);return;case 17:return;case 23:case 24:yc(t,t.memoizedState!==null);return}throw Error(a(163))}function Tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fh),t.forEach(function(i){var s=Th.bind(null,e,i);n.has(i)||(n.add(i),i.then(s,s))})}}function hh(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var mh=Math.ceil,Ro=ne.ReactCurrentDispatcher,Dl=ne.ReactCurrentOwner,ie=0,He=null,De=null,Ue=0,on=0,Il=Rt(0),Ae=0,Do=null,An=0,xr=0,Fn=0,Al=0,Fl=null,Bl=0,zl=1/0;function Bn(){zl=Be()+500}var Q=null,Io=!1,Ul=null,ht=null,zt=!1,Pr=null,Or=90,$l=[],jl=[],Et=null,Lr=0,Hl=null,Ao=-1,wt=0,Fo=0,Mr=null,Bo=!1;function Xe(){return(ie&48)!==0?Be():Ao!==-1?Ao:Ao=Be()}function Ut(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return Mn()===99?1:2;if(wt===0&&(wt=An),nh.transition!==0){Fo!==0&&(Fo=Fl!==null?Fl.pendingLanes:0),e=wt;var t=4186112&~Fo;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Mn(),(ie&4)!==0&&e===98?e=qr(12,wt):(e=op(e),e=qr(e,wt)),e}function $t(e,t,n){if(50<Lr)throw Lr=0,Hl=null,Error(a(185));if(e=zo(e,t),e===null)return null;Jr(e,t,n),e===He&&(Fn|=t,Ae===4&&zn(e,Ue));var i=Mn();t===1?(ie&8)!==0&&(ie&48)===0?bl(e):(nt(e,n),ie===0&&(Bn(),ct())):((ie&4)===0||i!==98&&i!==99||(Et===null?Et=new Set([e]):Et.add(e)),nt(e,n)),Fl=e}function zo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function nt(e,t){for(var n=e.callbackNode,i=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,m=e.pendingLanes;0<m;){var v=31-Lt(m),E=1<<v,O=d[v];if(O===-1){if((E&i)===0||(E&s)!==0){O=t,En(E);var G=Ce;d[v]=10<=G?O+250:6<=G?O+5e3:-1}}else O<=t&&(e.expiredLanes|=E);m&=~E}if(i=nr(e,e===He?Ue:0),t=Ce,i===0)n!==null&&(n!==ll&&ol(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==ll&&ol(n)}t===15?(n=bl.bind(null,e),gt===null?(gt=[n],mo=rl(ho,Lu)):gt.push(n),n=ll):t===14?n=pr(99,bl.bind(null,e)):(n=ip(t),n=pr(n,kc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function kc(e){if(Ao=-1,Fo=wt=0,(ie&48)!==0)throw Error(a(327));var t=e.callbackNode;if(jt()&&e.callbackNode!==t)return null;var n=nr(e,e===He?Ue:0);if(n===0)return null;var i=n,s=ie;ie|=16;var d=Lc();(He!==e||Ue!==i)&&(Bn(),Un(e,i));do try{yh();break}catch(v){Oc(e,v)}while(!0);if(sl(),Ro.current=d,ie=s,De!==null?i=0:(He=null,Ue=0,i=Ae),(An&Fn)!==0)Un(e,0);else if(i!==0){if(i===2&&(ie|=64,e.hydrate&&(e.hydrate=!1,Ji(e.containerInfo)),n=Bs(e),n!==0&&(i=Nr(e,n))),i===1)throw t=Do,Un(e,0),zn(e,n),nt(e,Be()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,i){case 0:case 1:throw Error(a(345));case 2:ln(e);break;case 3:if(zn(e,n),(n&62914560)===n&&(i=Bl+500-Be(),10<i)){if(nr(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Xe(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=mu(ln.bind(null,e),i);break}ln(e);break;case 4:if(zn(e,n),(n&4186112)===n)break;for(i=e.eventTimes,s=-1;0<n;){var m=31-Lt(n);d=1<<m,m=i[m],m>s&&(s=m),n&=~d}if(n=s,n=Be()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*mh(n/1960))-n,10<n){e.timeoutHandle=mu(ln.bind(null,e),n);break}ln(e);break;case 5:ln(e);break;default:throw Error(a(329))}}return nt(e,Be()),e.callbackNode===t?kc.bind(null,e):null}function zn(e,t){for(t&=~Al,t&=~Fn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Lt(t),i=1<<n;e[n]=-1,t&=~i}}function bl(e){if((ie&48)!==0)throw Error(a(327));if(jt(),e===He&&(e.expiredLanes&Ue)!==0){var t=Ue,n=Nr(e,t);(An&Fn)!==0&&(t=nr(e,t),n=Nr(e,t))}else t=nr(e,0),n=Nr(e,t);if(e.tag!==0&&n===2&&(ie|=64,e.hydrate&&(e.hydrate=!1,Ji(e.containerInfo)),t=Bs(e),t!==0&&(n=Nr(e,t))),n===1)throw n=Do,Un(e,0),zn(e,t),nt(e,Be()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,ln(e),nt(e,Be()),null}function gh(){if(Et!==null){var e=Et;Et=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,nt(t,Be())})}ct()}function xc(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(Bn(),ct())}}function Pc(e,t){var n=ie;ie&=-2,ie|=8;try{return e(t)}finally{ie=n,ie===0&&(Bn(),ct())}}function Uo(e,t){Le(Il,on),on|=t,An|=t}function Vl(){on=Il.current,Pe(Il)}function Un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xp(n)),De!==null)for(n=De.return;n!==null;){var i=n;switch(i.tag){case 1:i=i.type.childContextTypes,i!=null&&fo();break;case 3:Dn(),Pe(be),Pe(Fe),gl();break;case 5:pl(i);break;case 4:Dn();break;case 13:Pe(Me);break;case 19:Pe(Me);break;case 10:ul(i);break;case 23:case 24:Vl()}n=n.return}He=e,De=bt(e.current,null),Ue=on=An=t,Ae=0,Do=null,Al=Fn=xr=0}function Oc(e,t){do{var n=De;try{if(sl(),Er.current=Mo,xo){for(var i=Re.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}xo=!1}if(wr=0,Ie=ze=Re=null,Sr=!1,Dl.current=null,n===null||n.return===null){Ae=1,Do=t,De=null;break}e:{var d=e,m=n.return,v=n,E=t;if(t=Ue,v.flags|=2048,v.firstEffect=v.lastEffect=null,E!==null&&typeof E=="object"&&typeof E.then=="function"){var O=E;if((v.mode&2)===0){var G=v.alternate;G?(v.updateQueue=G.updateQueue,v.memoizedState=G.memoizedState,v.lanes=G.lanes):(v.updateQueue=null,v.memoizedState=null)}var ae=(Me.current&1)!==0,b=m;do{var Z;if(Z=b.tag===13){var le=b.memoizedState;if(le!==null)Z=le.dehydrated!==null;else{var re=b.memoizedProps;Z=re.fallback===void 0?!1:re.unstable_avoidThisFallback!==!0?!0:!ae}}if(Z){var k=b.updateQueue;if(k===null){var C=new Set;C.add(O),b.updateQueue=C}else k.add(O);if((b.mode&2)===0){if(b.flags|=64,v.flags|=16384,v.flags&=-2981,v.tag===1)if(v.alternate===null)v.tag=17;else{var T=At(-1,1);T.tag=2,Ft(v,T)}v.lanes|=1;break e}E=void 0,v=t;var F=d.pingCache;if(F===null?(F=d.pingCache=new ch,E=new Set,F.set(O,E)):(E=F.get(O),E===void 0&&(E=new Set,F.set(O,E))),!E.has(v)){E.add(v);var $=_h.bind(null,d,O,v);O.then($,$)}b.flags|=4096,b.lanes=t;break e}b=b.return}while(b!==null);E=Error((it(v.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
33
33
|
|
|
34
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ae!==5&&(Ae=2),E=Ol(E,v),b=m;do{switch(b.tag){case 3:d=E,b.flags|=4096,t&=-t,b.lanes|=t;var ue=mc(b,d,t);Ru(b,ue);break e;case 1:d=E;var Y=b.type,ce=b.stateNode;if((b.flags&64)===0&&(typeof Y.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(ht===null||!ht.has(ce)))){b.flags|=4096,t&=-t,b.lanes|=t;var pe=gc(b,d,t);Ru(b,pe);break e}}b=b.return}while(b!==null)}Nc(n)}catch(fe){t=fe,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Lc(){var e=Ro.current;return Ro.current=Mo,e===null?Mo:e}function Nr(e,t){var n=ie;ie|=16;var i=Lc();He===e&&Ue===t||Un(e,t);do try{vh();break}catch(s){Oc(e,s)}while(!0);if(sl(),ie=n,Ro.current=i,De!==null)throw Error(a(261));return He=null,Ue=0,Ae}function vh(){for(;De!==null;)Mc(De)}function yh(){for(;De!==null&&!Jp();)Mc(De)}function Mc(e){var t=Ic(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?Nc(e):De=t,Dl.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=sh(n,t,on),n!==null){De=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(on&1073741824)!==0||(n.mode&4)===0){for(var i=0,s=n.child;s!==null;)i|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=i}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=uh(t),n!==null){n.flags&=2047,De=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Ae===0&&(Ae=5)}function ln(e){var t=Mn();return en(99,Eh.bind(null,e,t)),null}function Eh(e,t){do jt();while(Pr!==null);if((ie&48)!==0)throw Error(a(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var i=n.lanes|n.childLanes,s=i,d=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var m=e.eventTimes,v=e.expirationTimes;0<d;){var E=31-Lt(d),O=1<<E;s[E]=0,m[E]=-1,v[E]=-1,d&=~O}if(Et!==null&&(i&24)===0&&Et.has(e)&&Et.delete(e),e===He&&(De=He=null,Ue=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,i!==null){if(s=ie,ie|=32,Dl.current=null,Xi=eo,m=ru(),Gi(m)){if("selectionStart"in m)v={start:m.selectionStart,end:m.selectionEnd};else e:if(v=(v=m.ownerDocument)&&v.defaultView||window,(O=v.getSelection&&v.getSelection())&&O.rangeCount!==0){v=O.anchorNode,d=O.anchorOffset,E=O.focusNode,O=O.focusOffset;try{v.nodeType,E.nodeType}catch{v=null;break e}var G=0,ae=-1,b=-1,Z=0,le=0,re=m,k=null;t:for(;;){for(var C;re!==v||d!==0&&re.nodeType!==3||(ae=G+d),re!==E||O!==0&&re.nodeType!==3||(b=G+O),re.nodeType===3&&(G+=re.nodeValue.length),(C=re.firstChild)!==null;)k=re,re=C;for(;;){if(re===m)break t;if(k===v&&++Z===d&&(ae=G),k===E&&++le===O&&(b=G),(C=re.nextSibling)!==null)break;re=k,k=re.parentNode}re=C}v=ae===-1||b===-1?null:{start:ae,end:b}}else v=null;v=v||{start:0,end:0}}else v=null;Zi={focusedElem:m,selectionRange:v},eo=!1,Mr=null,Bo=!1,Q=i;do try{wh()}catch(fe){if(Q===null)throw Error(a(330));Ht(Q,fe),Q=Q.nextEffect}while(Q!==null);Mr=null,Q=i;do try{for(m=e;Q!==null;){var T=Q.flags;if(T&16&&Gn(Q.stateNode,""),T&128){var F=Q.alternate;if(F!==null){var $=F.ref;$!==null&&(typeof $=="function"?$(null):$.current=null)}}switch(T&1038){case 2:Cc(Q),Q.flags&=-3;break;case 6:Cc(Q),Q.flags&=-3,Rl(Q.alternate,Q);break;case 1024:Q.flags&=-1025;break;case 1028:Q.flags&=-1025,Rl(Q.alternate,Q);break;case 4:Rl(Q.alternate,Q);break;case 8:v=Q,_c(m,v);var ue=v.alternate;wc(v),ue!==null&&wc(ue)}Q=Q.nextEffect}}catch(fe){if(Q===null)throw Error(a(330));Ht(Q,fe),Q=Q.nextEffect}while(Q!==null);if($=Zi,F=ru(),T=$.focusedElem,m=$.selectionRange,F!==T&&T&&T.ownerDocument&&nu(T.ownerDocument.documentElement,T)){for(m!==null&&Gi(T)&&(F=m.start,$=m.end,$===void 0&&($=F),"selectionStart"in T?(T.selectionStart=F,T.selectionEnd=Math.min($,T.value.length)):($=(F=T.ownerDocument||document)&&F.defaultView||window,$.getSelection&&($=$.getSelection(),v=T.textContent.length,ue=Math.min(m.start,v),m=m.end===void 0?ue:Math.min(m.end,v),!$.extend&&ue>m&&(v=m,m=ue,ue=v),v=tu(T,ue),d=tu(T,m),v&&d&&($.rangeCount!==1||$.anchorNode!==v.node||$.anchorOffset!==v.offset||$.focusNode!==d.node||$.focusOffset!==d.offset)&&(F=F.createRange(),F.setStart(v.node,v.offset),$.removeAllRanges(),ue>m?($.addRange(F),$.extend(d.node,d.offset)):(F.setEnd(d.node,d.offset),$.addRange(F)))))),F=[],$=T;$=$.parentNode;)$.nodeType===1&&F.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<F.length;T++)$=F[T],$.element.scrollLeft=$.left,$.element.scrollTop=$.top}eo=!!Xi,Zi=Xi=null,e.current=n,Q=i;do try{for(T=e;Q!==null;){var Y=Q.flags;if(Y&36&&ph(T,Q.alternate,Q),Y&128){F=void 0;var ce=Q.ref;if(ce!==null){var pe=Q.stateNode;switch(Q.tag){case 5:F=pe;break;default:F=pe}typeof ce=="function"?ce(F):ce.current=F}}Q=Q.nextEffect}}catch(fe){if(Q===null)throw Error(a(330));Ht(Q,fe),Q=Q.nextEffect}while(Q!==null);Q=null,th(),ie=s}else e.current=n;if(zt)zt=!1,Pr=e,Or=t;else for(Q=i;Q!==null;)t=Q.nextEffect,Q.nextEffect=null,Q.flags&8&&(Y=Q,Y.sibling=null,Y.stateNode=null),Q=t;if(i=e.pendingLanes,i===0&&(ht=null),i===1?e===Hl?Lr++:(Lr=0,Hl=e):Lr=0,n=n.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(nl,n,void 0,(n.current.flags&64)===64)}catch{}if(nt(e,Be()),Io)throw Io=!1,e=Ul,Ul=null,e;return(ie&8)!==0||ct(),null}function wh(){for(;Q!==null;){var e=Q.alternate;Bo||Mr===null||((Q.flags&8)!==0?_s(Q,Mr)&&(Bo=!0):Q.tag===13&&hh(e,Q)&&_s(Q,Mr)&&(Bo=!0));var t=Q.flags;(t&256)!==0&&dh(e,Q),(t&512)===0||zt||(zt=!0,pr(97,function(){return jt(),null})),Q=Q.nextEffect}}function jt(){if(Or!==90){var e=97<Or?97:Or;return Or=90,en(e,Ch)}return!1}function Sh(e,t){$l.push(t,e),zt||(zt=!0,pr(97,function(){return jt(),null}))}function Rc(e,t){jl.push(t,e),zt||(zt=!0,pr(97,function(){return jt(),null}))}function Ch(){if(Pr===null)return!1;var e=Pr;if(Pr=null,(ie&48)!==0)throw Error(a(331));var t=ie;ie|=32;var n=jl;jl=[];for(var i=0;i<n.length;i+=2){var s=n[i],d=n[i+1],m=s.destroy;if(s.destroy=void 0,typeof m=="function")try{m()}catch(E){if(d===null)throw Error(a(330));Ht(d,E)}}for(n=$l,$l=[],i=0;i<n.length;i+=2){s=n[i],d=n[i+1];try{var v=s.create;s.destroy=v()}catch(E){if(d===null)throw Error(a(330));Ht(d,E)}}for(v=e.current.firstEffect;v!==null;)e=v.nextEffect,v.nextEffect=null,v.flags&8&&(v.sibling=null,v.stateNode=null),v=e;return ie=t,ct(),!0}function Dc(e,t,n){t=Ol(n,t),t=mc(e,t,1),Ft(e,t),t=Xe(),e=zo(e,1),e!==null&&(Jr(e,1,t),nt(e,t))}function Ht(e,t){if(e.tag===3)Dc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Dc(n,e,t);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ht===null||!ht.has(i))){e=Ol(t,e);var s=gc(n,e,1);if(Ft(n,s),s=Xe(),n=zo(n,1),n!==null)Jr(n,1,s),nt(n,s);else if(typeof i.componentDidCatch=="function"&&(ht===null||!ht.has(i)))try{i.componentDidCatch(t,e)}catch{}break}}n=n.return}}function _h(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Ue&n)===n&&(Ae===4||Ae===3&&(Ue&62914560)===Ue&&500>Be()-Bl?Un(e,0):Al|=n),nt(e,t)}function Th(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Mn()===99?1:2:(wt===0&&(wt=An),t=wn(62914560&~wt),t===0&&(t=4194304))),n=Xe(),e=zo(e,t),e!==null&&(Jr(e,t,n),nt(e,n))}var Ic;Ic=function(e,t,n){var i=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)st=!0;else if((n&i)!==0)st=(e.flags&16384)!==0;else{switch(st=!1,t.tag){case 3:ic(t),ml();break;case 5:$u(t);break;case 1:Ve(t.type)&&po(t);break;case 4:dl(t,t.stateNode.containerInfo);break;case 10:i=t.memoizedProps.value;var s=t.type._context;Le(go,s._currentValue),s._currentValue=i;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?lc(e,t,n):(Le(Me,Me.current&1),t=yt(e,t,n),t!==null?t.sibling:null);Le(Me,Me.current&1);break;case 19:if(i=(n&t.childLanes)!==0,(e.flags&64)!==0){if(i)return fc(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Le(Me,Me.current),i)break;return null;case 23:case 24:return t.lanes=0,_l(e,t,n)}return yt(e,t,n)}else st=!1;switch(t.lanes=0,t.tag){case 2:if(i=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=Ln(t,Fe.current),Rn(t,n),s=yl(null,t,i,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(i)){var d=!0;po(t)}else d=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,cl(t);var m=i.getDerivedStateFromProps;typeof m=="function"&&Eo(t,i,m,e),s.updater=wo,t.stateNode=s,s._reactInternals=t,fl(t,i,e,n),t=kl(null,t,i,!0,d,n)}else t.tag=0,Ge(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,d=s._init,s=d(s._payload),t.type=s,d=t.tag=xh(s),e=at(s,e),d){case 0:t=Tl(null,t,s,e,n);break e;case 1:t=oc(null,t,s,e,n);break e;case 11:t=ec(null,t,s,e,n);break e;case 14:t=tc(null,t,s,at(s.type,e),i,n);break e}throw Error(a(306,s,""))}return t;case 0:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:at(i,s),Tl(e,t,i,s,n);case 1:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:at(i,s),oc(e,t,i,s,n);case 3:if(ic(t),i=t.updateQueue,e===null||i===null)throw Error(a(282));if(i=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,Nu(e,t),hr(t,i,null,n),i=t.memoizedState.element,i===s)ml(),t=yt(e,t,n);else{if(s=t.stateNode,(d=s.hydrate)&&(Bt=kn(t.stateNode.containerInfo.firstChild),vt=t,d=dt=!0),d){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)d=e[s],d._workInProgressVersionPrimary=e[s+1],In.push(d);for(n=Uu(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ge(e,t,i,n),ml();t=t.child}return t;case 5:return $u(t),e===null&&hl(t),i=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,m=s.children,qi(i,s)?m=null:d!==null&&qi(i,d)&&(t.flags|=16),rc(e,t),Ge(e,t,m,n),t.child;case 6:return e===null&&hl(t),null;case 13:return lc(e,t,n);case 4:return dl(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=_o(t,null,i,n):Ge(e,t,i,n),t.child;case 11:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:at(i,s),ec(e,t,i,s,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{i=t.type._context,s=t.pendingProps,m=t.memoizedProps,d=s.value;var v=t.type._context;if(Le(go,v._currentValue),v._currentValue=d,m!==null)if(v=m.value,d=Je(v,d)?0:(typeof i._calculateChangedBits=="function"?i._calculateChangedBits(v,d):1073741823)|0,d===0){if(m.children===s.children&&!be.current){t=yt(e,t,n);break e}}else for(v=t.child,v!==null&&(v.return=t);v!==null;){var E=v.dependencies;if(E!==null){m=v.child;for(var O=E.firstContext;O!==null;){if(O.context===i&&(O.observedBits&d)!==0){v.tag===1&&(O=At(-1,n&-n),O.tag=2,Ft(v,O)),v.lanes|=n,O=v.alternate,O!==null&&(O.lanes|=n),Mu(v.return,n),E.lanes|=n;break}O=O.next}}else m=v.tag===10&&v.type===t.type?null:v.child;if(m!==null)m.return=v;else for(m=v;m!==null;){if(m===t){m=null;break}if(v=m.sibling,v!==null){v.return=m.return,m=v;break}m=m.return}v=m}Ge(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,d=t.pendingProps,i=d.children,Rn(t,n),s=et(s,d.unstable_observedBits),i=i(s),t.flags|=1,Ge(e,t,i,n),t.child;case 14:return s=t.type,d=at(s,t.pendingProps),d=at(s.type,d),tc(e,t,s,d,i,n);case 15:return nc(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:at(i,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Ve(i)?(e=!0,po(t)):e=!1,Rn(t,n),Fu(t,i,s),fl(t,i,s,n),kl(null,t,i,!0,e,n);case 19:return fc(e,t,n);case 23:return _l(e,t,n);case 24:return _l(e,t,n)}throw Error(a(156,t.tag))};function kh(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,i){return new kh(e,t,n,i)}function Wl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xh(e){if(typeof e=="function")return Wl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===H)return 11;if(e===D)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $o(e,t,n,i,s,d){var m=2;if(i=e,typeof e=="function")Wl(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case de:return $n(n.children,s,d,t);case te:m=8,s|=16;break;case Se:m=8,s|=1;break;case we:return e=rt(12,n,t,s|8),e.elementType=we,e.type=we,e.lanes=d,e;case R:return e=rt(13,n,t,s),e.type=R,e.elementType=R,e.lanes=d,e;case j:return e=rt(19,n,t,s),e.elementType=j,e.lanes=d,e;case A:return Gl(n,s,d,t);case W:return e=rt(24,n,t,s),e.elementType=W,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ne:m=10;break e;case he:m=9;break e;case H:m=11;break e;case D:m=14;break e;case w:m=16,i=null;break e;case P:m=22;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=rt(m,n,t,s),t.elementType=e,t.type=i,t.lanes=d,t}function $n(e,t,n,i){return e=rt(7,e,i,t),e.lanes=n,e}function Gl(e,t,n,i){return e=rt(23,e,i,t),e.elementType=A,e.lanes=n,e}function Kl(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ph(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ii(0),this.expirationTimes=Ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ii(0),this.mutableSourceEagerHydrationData=null}function Oh(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ve,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}function jo(e,t,n,i){var s=t.current,d=Xe(),m=Ut(s);e:if(n){n=n._reactInternals;t:{if(Xt(n)!==n||n.tag!==1)throw Error(a(170));var v=n;do{switch(v.tag){case 3:v=v.stateNode.context;break t;case 1:if(Ve(v.type)){v=v.stateNode.__reactInternalMemoizedMergedChildContext;break t}}v=v.return}while(v!==null);throw Error(a(171))}if(n.tag===1){var E=n.type;if(Ve(E)){n=wu(n,E,v);break e}}n=v}else n=Dt;return t.context===null?t.context=n:t.pendingContext=n,t=At(d,m),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),Ft(s,t),$t(s,m,d),m}function Yl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ac(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xl(e,t){Ac(e,t),(e=e.alternate)&&Ac(e,t)}function Lh(){return null}function Zl(e,t,n){var i=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Ph(e,t,n!=null&&n.hydrate===!0),t=rt(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,cl(t),e[xn]=n.current,uu(e.nodeType===8?e.parentNode:e),i)for(e=0;e<i.length;e++){t=i[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}Zl.prototype.render=function(e){jo(e,this._internalRoot,null,null)},Zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;jo(null,e,null,function(){t[xn]=null})};function Rr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mh(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Zl(e,0,t?{hydrate:!0}:void 0)}function Ho(e,t,n,i,s){var d=n._reactRootContainer;if(d){var m=d._internalRoot;if(typeof s=="function"){var v=s;s=function(){var O=Yl(m);v.call(O)}}jo(t,m,e,s)}else{if(d=n._reactRootContainer=Mh(n,i),m=d._internalRoot,typeof s=="function"){var E=s;s=function(){var O=Yl(m);E.call(O)}}Pc(function(){jo(t,m,e,s)})}return Yl(m)}Ts=function(e){if(e.tag===13){var t=Xe();$t(e,4,t),Xl(e,4)}},Oi=function(e){if(e.tag===13){var t=Xe();$t(e,67108864,t),Xl(e,67108864)}},ks=function(e){if(e.tag===13){var t=Xe(),n=Ut(e);$t(e,n,t),Xl(e,n)}},xs=function(e,t){return t()},Si=function(e,t,n){switch(t){case"input":if(di(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var s=co(i);if(!s)throw Error(a(90));Vr(i),di(i,s)}}}break;case"textarea":us(e,n);break;case"select":t=n.value,t!=null&&mn(e,!!n.multiple,t,!1)}},Ci=xc,ys=function(e,t,n,i,s){var d=ie;ie|=4;try{return en(98,e.bind(null,t,n,i,s))}finally{ie=d,ie===0&&(Bn(),ct())}},_i=function(){(ie&49)===0&&(gh(),jt())},Es=function(e,t){var n=ie;ie|=2;try{return e(t)}finally{ie=n,ie===0&&(Bn(),ct())}};function Fc(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rr(t))throw Error(a(200));return Oh(e,t,null,n)}var Nh={Events:[dr,Pn,co,gs,vs,jt,{current:!1}]},Dr={findFiberByHostInstance:Zt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Rh={bundleType:Dr.bundleType,version:Dr.version,rendererPackageName:Dr.rendererPackageName,rendererConfig:Dr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cs(e),e===null?null:e.stateNode},findFiberByHostInstance:Dr.findFiberByHostInstance||Lh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bo.isDisabled&&bo.supportsFiber)try{nl=bo.inject(Rh),Jt=bo}catch{}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Nh,Ze.createPortal=Fc,Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):Error(a(268,Object.keys(e)));return e=Cs(t),e=e===null?null:e.stateNode,e},Ze.flushSync=function(e,t){var n=ie;if((n&48)!==0)return e(t);ie|=1;try{if(e)return en(99,e.bind(null,t))}finally{ie=n,ct()}},Ze.hydrate=function(e,t,n){if(!Rr(t))throw Error(a(200));return Ho(null,e,t,!0,n)},Ze.render=function(e,t,n){if(!Rr(t))throw Error(a(200));return Ho(null,e,t,!1,n)},Ze.unmountComponentAtNode=function(e){if(!Rr(e))throw Error(a(40));return e._reactRootContainer?(Pc(function(){Ho(null,null,e,!1,function(){e._reactRootContainer=null,e[xn]=null})}),!0):!1},Ze.unstable_batchedUpdates=xc,Ze.unstable_createPortal=function(e,t){return Fc(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Rr(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Ho(e,t,n,!1,i)},Ze.version="17.0.2",Ze}var Cf;function hg(){if(Cf)return ca.exports;Cf=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}return r(),ca.exports=pg(),ca.exports}var vd=hg();const Ar=oi(vd);/**
|
|
34
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ae!==5&&(Ae=2),E=Ol(E,v),b=m;do{switch(b.tag){case 3:d=E,b.flags|=4096,t&=-t,b.lanes|=t;var ue=mc(b,d,t);Ru(b,ue);break e;case 1:d=E;var Y=b.type,ce=b.stateNode;if((b.flags&64)===0&&(typeof Y.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(ht===null||!ht.has(ce)))){b.flags|=4096,t&=-t,b.lanes|=t;var pe=gc(b,d,t);Ru(b,pe);break e}}b=b.return}while(b!==null)}Nc(n)}catch(fe){t=fe,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Lc(){var e=Ro.current;return Ro.current=Mo,e===null?Mo:e}function Nr(e,t){var n=ie;ie|=16;var i=Lc();He===e&&Ue===t||Un(e,t);do try{vh();break}catch(s){Oc(e,s)}while(!0);if(sl(),ie=n,Ro.current=i,De!==null)throw Error(a(261));return He=null,Ue=0,Ae}function vh(){for(;De!==null;)Mc(De)}function yh(){for(;De!==null&&!Jp();)Mc(De)}function Mc(e){var t=Ic(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?Nc(e):De=t,Dl.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=sh(n,t,on),n!==null){De=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(on&1073741824)!==0||(n.mode&4)===0){for(var i=0,s=n.child;s!==null;)i|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=i}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=uh(t),n!==null){n.flags&=2047,De=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Ae===0&&(Ae=5)}function ln(e){var t=Mn();return en(99,Eh.bind(null,e,t)),null}function Eh(e,t){do jt();while(Pr!==null);if((ie&48)!==0)throw Error(a(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var i=n.lanes|n.childLanes,s=i,d=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var m=e.eventTimes,v=e.expirationTimes;0<d;){var E=31-Lt(d),O=1<<E;s[E]=0,m[E]=-1,v[E]=-1,d&=~O}if(Et!==null&&(i&24)===0&&Et.has(e)&&Et.delete(e),e===He&&(De=He=null,Ue=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,i!==null){if(s=ie,ie|=32,Dl.current=null,Xi=eo,m=ru(),Gi(m)){if("selectionStart"in m)v={start:m.selectionStart,end:m.selectionEnd};else e:if(v=(v=m.ownerDocument)&&v.defaultView||window,(O=v.getSelection&&v.getSelection())&&O.rangeCount!==0){v=O.anchorNode,d=O.anchorOffset,E=O.focusNode,O=O.focusOffset;try{v.nodeType,E.nodeType}catch{v=null;break e}var G=0,ae=-1,b=-1,Z=0,le=0,re=m,k=null;t:for(;;){for(var C;re!==v||d!==0&&re.nodeType!==3||(ae=G+d),re!==E||O!==0&&re.nodeType!==3||(b=G+O),re.nodeType===3&&(G+=re.nodeValue.length),(C=re.firstChild)!==null;)k=re,re=C;for(;;){if(re===m)break t;if(k===v&&++Z===d&&(ae=G),k===E&&++le===O&&(b=G),(C=re.nextSibling)!==null)break;re=k,k=re.parentNode}re=C}v=ae===-1||b===-1?null:{start:ae,end:b}}else v=null;v=v||{start:0,end:0}}else v=null;Zi={focusedElem:m,selectionRange:v},eo=!1,Mr=null,Bo=!1,Q=i;do try{wh()}catch(fe){if(Q===null)throw Error(a(330));Ht(Q,fe),Q=Q.nextEffect}while(Q!==null);Mr=null,Q=i;do try{for(m=e;Q!==null;){var T=Q.flags;if(T&16&&Gn(Q.stateNode,""),T&128){var F=Q.alternate;if(F!==null){var $=F.ref;$!==null&&(typeof $=="function"?$(null):$.current=null)}}switch(T&1038){case 2:Cc(Q),Q.flags&=-3;break;case 6:Cc(Q),Q.flags&=-3,Rl(Q.alternate,Q);break;case 1024:Q.flags&=-1025;break;case 1028:Q.flags&=-1025,Rl(Q.alternate,Q);break;case 4:Rl(Q.alternate,Q);break;case 8:v=Q,_c(m,v);var ue=v.alternate;wc(v),ue!==null&&wc(ue)}Q=Q.nextEffect}}catch(fe){if(Q===null)throw Error(a(330));Ht(Q,fe),Q=Q.nextEffect}while(Q!==null);if($=Zi,F=ru(),T=$.focusedElem,m=$.selectionRange,F!==T&&T&&T.ownerDocument&&nu(T.ownerDocument.documentElement,T)){for(m!==null&&Gi(T)&&(F=m.start,$=m.end,$===void 0&&($=F),"selectionStart"in T?(T.selectionStart=F,T.selectionEnd=Math.min($,T.value.length)):($=(F=T.ownerDocument||document)&&F.defaultView||window,$.getSelection&&($=$.getSelection(),v=T.textContent.length,ue=Math.min(m.start,v),m=m.end===void 0?ue:Math.min(m.end,v),!$.extend&&ue>m&&(v=m,m=ue,ue=v),v=tu(T,ue),d=tu(T,m),v&&d&&($.rangeCount!==1||$.anchorNode!==v.node||$.anchorOffset!==v.offset||$.focusNode!==d.node||$.focusOffset!==d.offset)&&(F=F.createRange(),F.setStart(v.node,v.offset),$.removeAllRanges(),ue>m?($.addRange(F),$.extend(d.node,d.offset)):(F.setEnd(d.node,d.offset),$.addRange(F)))))),F=[],$=T;$=$.parentNode;)$.nodeType===1&&F.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<F.length;T++)$=F[T],$.element.scrollLeft=$.left,$.element.scrollTop=$.top}eo=!!Xi,Zi=Xi=null,e.current=n,Q=i;do try{for(T=e;Q!==null;){var Y=Q.flags;if(Y&36&&ph(T,Q.alternate,Q),Y&128){F=void 0;var ce=Q.ref;if(ce!==null){var pe=Q.stateNode;switch(Q.tag){case 5:F=pe;break;default:F=pe}typeof ce=="function"?ce(F):ce.current=F}}Q=Q.nextEffect}}catch(fe){if(Q===null)throw Error(a(330));Ht(Q,fe),Q=Q.nextEffect}while(Q!==null);Q=null,th(),ie=s}else e.current=n;if(zt)zt=!1,Pr=e,Or=t;else for(Q=i;Q!==null;)t=Q.nextEffect,Q.nextEffect=null,Q.flags&8&&(Y=Q,Y.sibling=null,Y.stateNode=null),Q=t;if(i=e.pendingLanes,i===0&&(ht=null),i===1?e===Hl?Lr++:(Lr=0,Hl=e):Lr=0,n=n.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(nl,n,void 0,(n.current.flags&64)===64)}catch{}if(nt(e,Be()),Io)throw Io=!1,e=Ul,Ul=null,e;return(ie&8)!==0||ct(),null}function wh(){for(;Q!==null;){var e=Q.alternate;Bo||Mr===null||((Q.flags&8)!==0?_s(Q,Mr)&&(Bo=!0):Q.tag===13&&hh(e,Q)&&_s(Q,Mr)&&(Bo=!0));var t=Q.flags;(t&256)!==0&&dh(e,Q),(t&512)===0||zt||(zt=!0,pr(97,function(){return jt(),null})),Q=Q.nextEffect}}function jt(){if(Or!==90){var e=97<Or?97:Or;return Or=90,en(e,Ch)}return!1}function Sh(e,t){$l.push(t,e),zt||(zt=!0,pr(97,function(){return jt(),null}))}function Rc(e,t){jl.push(t,e),zt||(zt=!0,pr(97,function(){return jt(),null}))}function Ch(){if(Pr===null)return!1;var e=Pr;if(Pr=null,(ie&48)!==0)throw Error(a(331));var t=ie;ie|=32;var n=jl;jl=[];for(var i=0;i<n.length;i+=2){var s=n[i],d=n[i+1],m=s.destroy;if(s.destroy=void 0,typeof m=="function")try{m()}catch(E){if(d===null)throw Error(a(330));Ht(d,E)}}for(n=$l,$l=[],i=0;i<n.length;i+=2){s=n[i],d=n[i+1];try{var v=s.create;s.destroy=v()}catch(E){if(d===null)throw Error(a(330));Ht(d,E)}}for(v=e.current.firstEffect;v!==null;)e=v.nextEffect,v.nextEffect=null,v.flags&8&&(v.sibling=null,v.stateNode=null),v=e;return ie=t,ct(),!0}function Dc(e,t,n){t=Ol(n,t),t=mc(e,t,1),Ft(e,t),t=Xe(),e=zo(e,1),e!==null&&(Jr(e,1,t),nt(e,t))}function Ht(e,t){if(e.tag===3)Dc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Dc(n,e,t);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ht===null||!ht.has(i))){e=Ol(t,e);var s=gc(n,e,1);if(Ft(n,s),s=Xe(),n=zo(n,1),n!==null)Jr(n,1,s),nt(n,s);else if(typeof i.componentDidCatch=="function"&&(ht===null||!ht.has(i)))try{i.componentDidCatch(t,e)}catch{}break}}n=n.return}}function _h(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Ue&n)===n&&(Ae===4||Ae===3&&(Ue&62914560)===Ue&&500>Be()-Bl?Un(e,0):Al|=n),nt(e,t)}function Th(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Mn()===99?1:2:(wt===0&&(wt=An),t=wn(62914560&~wt),t===0&&(t=4194304))),n=Xe(),e=zo(e,t),e!==null&&(Jr(e,t,n),nt(e,n))}var Ic;Ic=function(e,t,n){var i=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)st=!0;else if((n&i)!==0)st=(e.flags&16384)!==0;else{switch(st=!1,t.tag){case 3:ic(t),ml();break;case 5:$u(t);break;case 1:Ve(t.type)&&po(t);break;case 4:dl(t,t.stateNode.containerInfo);break;case 10:i=t.memoizedProps.value;var s=t.type._context;Le(go,s._currentValue),s._currentValue=i;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?lc(e,t,n):(Le(Me,Me.current&1),t=yt(e,t,n),t!==null?t.sibling:null);Le(Me,Me.current&1);break;case 19:if(i=(n&t.childLanes)!==0,(e.flags&64)!==0){if(i)return fc(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Le(Me,Me.current),i)break;return null;case 23:case 24:return t.lanes=0,_l(e,t,n)}return yt(e,t,n)}else st=!1;switch(t.lanes=0,t.tag){case 2:if(i=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=Ln(t,Fe.current),Rn(t,n),s=yl(null,t,i,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(i)){var d=!0;po(t)}else d=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,cl(t);var m=i.getDerivedStateFromProps;typeof m=="function"&&Eo(t,i,m,e),s.updater=wo,t.stateNode=s,s._reactInternals=t,fl(t,i,e,n),t=kl(null,t,i,!0,d,n)}else t.tag=0,Ge(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,d=s._init,s=d(s._payload),t.type=s,d=t.tag=xh(s),e=at(s,e),d){case 0:t=Tl(null,t,s,e,n);break e;case 1:t=oc(null,t,s,e,n);break e;case 11:t=ec(null,t,s,e,n);break e;case 14:t=tc(null,t,s,at(s.type,e),i,n);break e}throw Error(a(306,s,""))}return t;case 0:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:at(i,s),Tl(e,t,i,s,n);case 1:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:at(i,s),oc(e,t,i,s,n);case 3:if(ic(t),i=t.updateQueue,e===null||i===null)throw Error(a(282));if(i=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,Nu(e,t),hr(t,i,null,n),i=t.memoizedState.element,i===s)ml(),t=yt(e,t,n);else{if(s=t.stateNode,(d=s.hydrate)&&(Bt=kn(t.stateNode.containerInfo.firstChild),vt=t,d=dt=!0),d){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)d=e[s],d._workInProgressVersionPrimary=e[s+1],In.push(d);for(n=Uu(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ge(e,t,i,n),ml();t=t.child}return t;case 5:return $u(t),e===null&&hl(t),i=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,m=s.children,qi(i,s)?m=null:d!==null&&qi(i,d)&&(t.flags|=16),rc(e,t),Ge(e,t,m,n),t.child;case 6:return e===null&&hl(t),null;case 13:return lc(e,t,n);case 4:return dl(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=_o(t,null,i,n):Ge(e,t,i,n),t.child;case 11:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:at(i,s),ec(e,t,i,s,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{i=t.type._context,s=t.pendingProps,m=t.memoizedProps,d=s.value;var v=t.type._context;if(Le(go,v._currentValue),v._currentValue=d,m!==null)if(v=m.value,d=Je(v,d)?0:(typeof i._calculateChangedBits=="function"?i._calculateChangedBits(v,d):1073741823)|0,d===0){if(m.children===s.children&&!be.current){t=yt(e,t,n);break e}}else for(v=t.child,v!==null&&(v.return=t);v!==null;){var E=v.dependencies;if(E!==null){m=v.child;for(var O=E.firstContext;O!==null;){if(O.context===i&&(O.observedBits&d)!==0){v.tag===1&&(O=At(-1,n&-n),O.tag=2,Ft(v,O)),v.lanes|=n,O=v.alternate,O!==null&&(O.lanes|=n),Mu(v.return,n),E.lanes|=n;break}O=O.next}}else m=v.tag===10&&v.type===t.type?null:v.child;if(m!==null)m.return=v;else for(m=v;m!==null;){if(m===t){m=null;break}if(v=m.sibling,v!==null){v.return=m.return,m=v;break}m=m.return}v=m}Ge(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,d=t.pendingProps,i=d.children,Rn(t,n),s=et(s,d.unstable_observedBits),i=i(s),t.flags|=1,Ge(e,t,i,n),t.child;case 14:return s=t.type,d=at(s,t.pendingProps),d=at(s.type,d),tc(e,t,s,d,i,n);case 15:return nc(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,s=t.pendingProps,s=t.elementType===i?s:at(i,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Ve(i)?(e=!0,po(t)):e=!1,Rn(t,n),Fu(t,i,s),fl(t,i,s,n),kl(null,t,i,!0,e,n);case 19:return fc(e,t,n);case 23:return _l(e,t,n);case 24:return _l(e,t,n)}throw Error(a(156,t.tag))};function kh(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,i){return new kh(e,t,n,i)}function Wl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xh(e){if(typeof e=="function")return Wl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===H)return 11;if(e===D)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $o(e,t,n,i,s,d){var m=2;if(i=e,typeof e=="function")Wl(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case de:return $n(n.children,s,d,t);case te:m=8,s|=16;break;case Se:m=8,s|=1;break;case we:return e=rt(12,n,t,s|8),e.elementType=we,e.type=we,e.lanes=d,e;case R:return e=rt(13,n,t,s),e.type=R,e.elementType=R,e.lanes=d,e;case j:return e=rt(19,n,t,s),e.elementType=j,e.lanes=d,e;case A:return Gl(n,s,d,t);case W:return e=rt(24,n,t,s),e.elementType=W,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ne:m=10;break e;case he:m=9;break e;case H:m=11;break e;case D:m=14;break e;case w:m=16,i=null;break e;case P:m=22;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=rt(m,n,t,s),t.elementType=e,t.type=i,t.lanes=d,t}function $n(e,t,n,i){return e=rt(7,e,i,t),e.lanes=n,e}function Gl(e,t,n,i){return e=rt(23,e,i,t),e.elementType=A,e.lanes=n,e}function Kl(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ph(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ii(0),this.expirationTimes=Ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ii(0),this.mutableSourceEagerHydrationData=null}function Oh(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ve,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}function jo(e,t,n,i){var s=t.current,d=Xe(),m=Ut(s);e:if(n){n=n._reactInternals;t:{if(Xt(n)!==n||n.tag!==1)throw Error(a(170));var v=n;do{switch(v.tag){case 3:v=v.stateNode.context;break t;case 1:if(Ve(v.type)){v=v.stateNode.__reactInternalMemoizedMergedChildContext;break t}}v=v.return}while(v!==null);throw Error(a(171))}if(n.tag===1){var E=n.type;if(Ve(E)){n=wu(n,E,v);break e}}n=v}else n=Dt;return t.context===null?t.context=n:t.pendingContext=n,t=At(d,m),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),Ft(s,t),$t(s,m,d),m}function Yl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ac(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xl(e,t){Ac(e,t),(e=e.alternate)&&Ac(e,t)}function Lh(){return null}function Zl(e,t,n){var i=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Ph(e,t,n!=null&&n.hydrate===!0),t=rt(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,cl(t),e[xn]=n.current,uu(e.nodeType===8?e.parentNode:e),i)for(e=0;e<i.length;e++){t=i[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}Zl.prototype.render=function(e){jo(e,this._internalRoot,null,null)},Zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;jo(null,e,null,function(){t[xn]=null})};function Rr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mh(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Zl(e,0,t?{hydrate:!0}:void 0)}function Ho(e,t,n,i,s){var d=n._reactRootContainer;if(d){var m=d._internalRoot;if(typeof s=="function"){var v=s;s=function(){var O=Yl(m);v.call(O)}}jo(t,m,e,s)}else{if(d=n._reactRootContainer=Mh(n,i),m=d._internalRoot,typeof s=="function"){var E=s;s=function(){var O=Yl(m);E.call(O)}}Pc(function(){jo(t,m,e,s)})}return Yl(m)}Ts=function(e){if(e.tag===13){var t=Xe();$t(e,4,t),Xl(e,4)}},Oi=function(e){if(e.tag===13){var t=Xe();$t(e,67108864,t),Xl(e,67108864)}},ks=function(e){if(e.tag===13){var t=Xe(),n=Ut(e);$t(e,n,t),Xl(e,n)}},xs=function(e,t){return t()},Si=function(e,t,n){switch(t){case"input":if(di(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var s=co(i);if(!s)throw Error(a(90));Vr(i),di(i,s)}}}break;case"textarea":us(e,n);break;case"select":t=n.value,t!=null&&mn(e,!!n.multiple,t,!1)}},Ci=xc,ys=function(e,t,n,i,s){var d=ie;ie|=4;try{return en(98,e.bind(null,t,n,i,s))}finally{ie=d,ie===0&&(Bn(),ct())}},_i=function(){(ie&49)===0&&(gh(),jt())},Es=function(e,t){var n=ie;ie|=2;try{return e(t)}finally{ie=n,ie===0&&(Bn(),ct())}};function Fc(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rr(t))throw Error(a(200));return Oh(e,t,null,n)}var Nh={Events:[dr,Pn,co,gs,vs,jt,{current:!1}]},Dr={findFiberByHostInstance:Zt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Rh={bundleType:Dr.bundleType,version:Dr.version,rendererPackageName:Dr.rendererPackageName,rendererConfig:Dr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cs(e),e===null?null:e.stateNode},findFiberByHostInstance:Dr.findFiberByHostInstance||Lh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bo.isDisabled&&bo.supportsFiber)try{nl=bo.inject(Rh),Jt=bo}catch{}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Nh,Ze.createPortal=Fc,Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):Error(a(268,Object.keys(e)));return e=Cs(t),e=e===null?null:e.stateNode,e},Ze.flushSync=function(e,t){var n=ie;if((n&48)!==0)return e(t);ie|=1;try{if(e)return en(99,e.bind(null,t))}finally{ie=n,ct()}},Ze.hydrate=function(e,t,n){if(!Rr(t))throw Error(a(200));return Ho(null,e,t,!0,n)},Ze.render=function(e,t,n){if(!Rr(t))throw Error(a(200));return Ho(null,e,t,!1,n)},Ze.unmountComponentAtNode=function(e){if(!Rr(e))throw Error(a(40));return e._reactRootContainer?(Pc(function(){Ho(null,null,e,!1,function(){e._reactRootContainer=null,e[xn]=null})}),!0):!1},Ze.unstable_batchedUpdates=xc,Ze.unstable_createPortal=function(e,t){return Fc(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Rr(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Ho(e,t,n,!1,i)},Ze.version="17.0.2",Ze}var _f;function Jg(){if(_f)return fa.exports;_f=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}return r(),fa.exports=qg(),fa.exports}var wd=Jg();const Ar=oi(wd),Tf={disabled:!1},ei=_.createContext(null);var Sd=function(o){return o.scrollTop},Fr="unmounted",sn="exited",un="entering",Hn="entered",Fa="exiting",kt=(function(r){Za(o,r);function o(a,c){var u;u=r.call(this,a,c)||this;var f=c,p=f&&!f.isMounting?a.enter:a.appear,h;return u.appearStatus=null,a.in?p?(h=sn,u.appearStatus=un):h=Hn:a.unmountOnExit||a.mountOnEnter?h=Fr:h=sn,u.state={status:h},u.nextCallback=null,u}o.getDerivedStateFromProps=function(c,u){var f=c.in;return f&&u.status===Fr?{status:sn}:null};var l=o.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(c){var u=null;if(c!==this.props){var f=this.state.status;this.props.in?f!==un&&f!==Hn&&(u=un):(f===un||f===Hn)&&(u=Fa)}this.updateStatus(!1,u)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var c=this.props.timeout,u,f,p;return u=f=p=c,c!=null&&typeof c!="number"&&(u=c.exit,f=c.enter,p=c.appear!==void 0?c.appear:f),{exit:u,enter:f,appear:p}},l.updateStatus=function(c,u){if(c===void 0&&(c=!1),u!==null)if(this.cancelNextCallback(),u===un){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this);f&&Sd(f)}this.performEnter(c)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sn&&this.setState({status:Fr})},l.performEnter=function(c){var u=this,f=this.props.enter,p=this.context?this.context.isMounting:c,h=this.props.nodeRef?[p]:[Ar.findDOMNode(this),p],g=h[0],y=h[1],S=this.getTimeouts(),x=p?S.appear:S.enter;if(!c&&!f||Tf.disabled){this.safeSetState({status:Hn},function(){u.props.onEntered(g)});return}this.props.onEnter(g,y),this.safeSetState({status:un},function(){u.props.onEntering(g,y),u.onTransitionEnd(x,function(){u.safeSetState({status:Hn},function(){u.props.onEntered(g,y)})})})},l.performExit=function(){var c=this,u=this.props.exit,f=this.getTimeouts(),p=this.props.nodeRef?void 0:Ar.findDOMNode(this);if(!u||Tf.disabled){this.safeSetState({status:sn},function(){c.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:Fa},function(){c.props.onExiting(p),c.onTransitionEnd(f.exit,function(){c.safeSetState({status:sn},function(){c.props.onExited(p)})})})},l.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(c,u){u=this.setNextCallback(u),this.setState(c,u)},l.setNextCallback=function(c){var u=this,f=!0;return this.nextCallback=function(p){f&&(f=!1,u.nextCallback=null,c(p))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},l.onTransitionEnd=function(c,u){this.setNextCallback(u);var f=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this),p=c==null&&!this.props.addEndListener;if(!f||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],g=h[0],y=h[1];this.props.addEndListener(g,y)}c!=null&&setTimeout(this.nextCallback,c)},l.render=function(){var c=this.state.status;if(c===Fr)return null;var u=this.props,f=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var p=Xa(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(ei.Provider,{value:null},typeof f=="function"?f(c,p):_.cloneElement(_.Children.only(f),p))},o})(_.Component);kt.contextType=ei;kt.propTypes={};function jn(){}kt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jn,onEntering:jn,onEntered:jn,onExit:jn,onExiting:jn,onExited:jn};kt.UNMOUNTED=Fr;kt.EXITED=sn;kt.ENTERING=un;kt.ENTERED=Hn;kt.EXITING=Fa;var ev=function(o,l){return o&&l&&l.split(" ").forEach(function(a){return Qg(o,a)})},ha=function(o,l){return o&&l&&l.split(" ").forEach(function(a){return Yg(o,a)})},qa=(function(r){Za(o,r);function o(){for(var a,c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return a=r.call.apply(r,[this].concat(u))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(p,h){var g=a.resolveArguments(p,h),y=g[0],S=g[1];a.removeClasses(y,"exit"),a.addClass(y,S?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(p,h)},a.onEntering=function(p,h){var g=a.resolveArguments(p,h),y=g[0],S=g[1],x=S?"appear":"enter";a.addClass(y,x,"active"),a.props.onEntering&&a.props.onEntering(p,h)},a.onEntered=function(p,h){var g=a.resolveArguments(p,h),y=g[0],S=g[1],x=S?"appear":"enter";a.removeClasses(y,x),a.addClass(y,x,"done"),a.props.onEntered&&a.props.onEntered(p,h)},a.onExit=function(p){var h=a.resolveArguments(p),g=h[0];a.removeClasses(g,"appear"),a.removeClasses(g,"enter"),a.addClass(g,"exit","base"),a.props.onExit&&a.props.onExit(p)},a.onExiting=function(p){var h=a.resolveArguments(p),g=h[0];a.addClass(g,"exit","active"),a.props.onExiting&&a.props.onExiting(p)},a.onExited=function(p){var h=a.resolveArguments(p),g=h[0];a.removeClasses(g,"exit"),a.addClass(g,"exit","done"),a.props.onExited&&a.props.onExited(p)},a.resolveArguments=function(p,h){return a.props.nodeRef?[a.props.nodeRef.current,p]:[p,h]},a.getClassNames=function(p){var h=a.props.classNames,g=typeof h=="string",y=g&&h?h+"-":"",S=g?""+y+p:h[p],x=g?S+"-active":h[p+"Active"],M=g?S+"-done":h[p+"Done"];return{baseClassName:S,activeClassName:x,doneClassName:M}},a}var l=o.prototype;return l.addClass=function(c,u,f){var p=this.getClassNames(u)[f+"ClassName"],h=this.getClassNames("enter"),g=h.doneClassName;u==="appear"&&f==="done"&&g&&(p+=" "+g),f==="active"&&c&&Sd(c),p&&(this.appliedClasses[u][f]=p,ev(c,p))},l.removeClasses=function(c,u){var f=this.appliedClasses[u],p=f.base,h=f.active,g=f.done;this.appliedClasses[u]={},p&&ha(c,p),h&&ha(c,h),g&&ha(c,g)},l.render=function(){var c=this.props;c.classNames;var u=Xa(c,["classNames"]);return _.createElement(kt,Jo({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},o})(_.Component);qa.defaultProps={classNames:""};qa.propTypes={};function tv(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Ja(r,o){var l=function(u){return o&&z.isValidElement(u)?o(u):u},a=Object.create(null);return r&&z.Children.map(r,function(c){return c}).forEach(function(c){a[c.key]=l(c)}),a}function nv(r,o){r=r||{},o=o||{};function l(y){return y in o?o[y]:r[y]}var a=Object.create(null),c=[];for(var u in r)u in o?c.length&&(a[u]=c,c=[]):c.push(u);var f,p={};for(var h in o){if(a[h])for(f=0;f<a[h].length;f++){var g=a[h][f];p[a[h][f]]=l(g)}p[h]=l(h)}for(f=0;f<c.length;f++)p[c[f]]=l(c[f]);return p}function fn(r,o,l){return l[o]!=null?l[o]:r.props[o]}function rv(r,o){return Ja(r.children,function(l){return z.cloneElement(l,{onExited:o.bind(null,l),in:!0,appear:fn(l,"appear",r),enter:fn(l,"enter",r),exit:fn(l,"exit",r)})})}function ov(r,o,l){var a=Ja(r.children),c=nv(o,a);return Object.keys(c).forEach(function(u){var f=c[u];if(z.isValidElement(f)){var p=u in o,h=u in a,g=o[u],y=z.isValidElement(g)&&!g.props.in;h&&(!p||y)?c[u]=z.cloneElement(f,{onExited:l.bind(null,f),in:!0,exit:fn(f,"exit",r),enter:fn(f,"enter",r)}):!h&&p&&!y?c[u]=z.cloneElement(f,{in:!1}):h&&p&&z.isValidElement(g)&&(c[u]=z.cloneElement(f,{onExited:l.bind(null,f),in:g.props.in,exit:fn(f,"exit",r),enter:fn(f,"enter",r)}))}}),c}var iv=Object.values||function(r){return Object.keys(r).map(function(o){return r[o]})},lv={component:"div",childFactory:function(o){return o}},es=(function(r){Za(o,r);function o(a,c){var u;u=r.call(this,a,c)||this;var f=u.handleExited.bind(tv(u));return u.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},u}var l=o.prototype;return l.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},l.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(c,u){var f=u.children,p=u.handleExited,h=u.firstRender;return{children:h?rv(c,p):ov(c,f,p),firstRender:!1}},l.handleExited=function(c,u){var f=Ja(this.props.children);c.key in f||(c.props.onExited&&c.props.onExited(u),this.mounted&&this.setState(function(p){var h=Jo({},p.children);return delete h[c.key],{children:h}}))},l.render=function(){var c=this.props,u=c.component,f=c.childFactory,p=Xa(c,["component","childFactory"]),h=this.state.contextValue,g=iv(this.state.children).map(f);return delete p.appear,delete p.enter,delete p.exit,u===null?_.createElement(ei.Provider,{value:h},g):_.createElement(ei.Provider,{value:h},_.createElement(u,p,g))},o})(_.Component);es.propTypes={};es.defaultProps=lv;function av({labelledBy:r,children:o,onClose:l,setClosing:a,width:c,...u}){const f=z.useRef(null),p=z.useCallback(()=>{f.current&&!f.current.contains(document.activeElement)&&Vg(f.current)},[]),h=y=>{y.keyCode===27&&a(!0)},g=y=>{y.keyCode===27&&(a(!1),l())};return z.useLayoutEffect(p,[]),z.useLayoutEffect(()=>(document.addEventListener("keydown",h),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",g)}),[]),_.createElement(qa,{classNames:sv,nodeRef:f,mountOnEnter:!0,unmountOnExit:!0,timeout:200,...u},_.createElement("div",{className:$e.Container,ref:f},_.createElement("div",{role:"dialog","aria-modal":!0,"aria-labelledby":r,tabIndex:-1,className:$e.Dialog},_.createElement("div",{className:qe($e.Modal,$e[`Width-${c}`])},o))))}const sv={appear:qe($e.animateFadeUp,$e.entering),appearActive:qe($e.animateFadeUp,$e.entered),enter:qe($e.animateFadeUp,$e.entering),enterActive:qe($e.animateFadeUp,$e.entered),exit:qe($e.animateFadeUp,$e.exiting),exitActive:qe($e.animateFadeUp,$e.exited)},uv="_Header_rltzr_1",cv="_Title_rltzr_10",kf={Header:uv,Title:cv};function fv({id:r,closing:o,children:l,onClose:a}){return _.createElement("div",{className:kf.Header},_.createElement("div",{id:r,className:kf.Title},_.createElement("h2",null,l)),_.createElement(Ag,{pressed:o,onClick:a}))}const Ba="modal-container";function dv(){return _.createElement("div",{id:Ba})}function pv({children:r,title:o,open:l,onClose:a,width:c="large"}){const[u,f]=z.useState(!1);let p,h;l&&(p=_.createElement(av,{labelledBy:"modal-header",onClose:a,setClosing:f,in:l,width:c},_.createElement(fv,{id:"modal-header",closing:u,onClose:a},o),_.createElement("div",{className:Lg.BodyWrapper},r)),h=_.createElement(Rg,{setClosing:f,onClick:a}));const g=document.getElementById(Ba);return g===null?(l&&console.error(`Could not find element with id ${Ba} to render Modal inside`),null):wd.createPortal(_.createElement(_.Fragment,null,_.createElement(es,{appear:!0,enter:!0,exit:!0},p),h),g)}function hv(){const[r,o]=z.useState(!1),[l]=mt({id:"AppHomeRow",fallback:Xm}),{surface:a}=vd(),{app:c}=Qa();if(!c)return null;const u=a==="admin"&&c.handle?`/admin/apps/${c.handle}`:void 0;return _.createElement(ts,null,_.createElement("td",null,_.createElement("span",{className:Zm},c.title)),_.createElement("td",null,_.createElement(ja,{resourceUrl:u,rootUrl:c.url,title:"App home"})),_.createElement("td",null,_.createElement(Ed,{type:"button",onClick:()=>o(!0)},l.translate("viewMobile")),_.createElement(Nd,{code:r?{url:c.url,type:"home",title:c.title}:void 0,onClose:()=>o(!1)})),_.createElement("td",null,_.createElement(Cd,null)))}const mv="Extension targets",gv={previewLinksTitle:mv},vv="_PreviewLinksTitle_w3znb_1",yv="_PreviewLinks_w3znb_1";function Ev({extension:r,isUnifiedPOSUI:o}){var a;const[l]=mt({id:"PreviewLinks",fallback:gv});if(r.surface==="point_of_sale")return _.createElement(Cd,null);if(r.type==="ui_extension"||r.type==="checkout_post_purchase"){const c=r.extensionPoints&&r.extensionPoints.length>1,u=c?_.createElement("span",{className:vv},l.translate("previewLinksTitle"),":"):null;return _.createElement(_.Fragment,null,u,_.createElement("span",{className:qe(c&&yv)},(a=r.extensionPoints)==null?void 0:a.map(f=>{if(typeof f=="string")return null;const{root:p,target:h,resource:g}=f;return _.createElement(ja,{rootUrl:p.url,title:r.type==="checkout_post_purchase"?"checkout post-purchase":h,key:h,resourceUrl:g.url,hasLink:!o})})))}return _.createElement(ja,{rootUrl:r.development.root.url,resourceUrl:r.development.resource.url,title:r.type.replaceAll("_"," ")})}const wv="View mobile",Sv={viewMobile:wv},Cv="_Title_mda4k_1";function _v(r){const o=Hr(),l=o.state.extensions,a=l.find(c=>c.uuid===r);return z.useMemo(()=>({extension:a,focus:()=>o.client.emit("focus",[{uuid:r}]),unfocus:()=>o.client.emit("unfocus"),navigate:c=>o.client.emit("navigate",{url:c})}),[JSON.stringify(l)])}function za(r){var o;return(o=r.extensionPoints)==null?void 0:o.some(l=>l.surface==="point_of_sale")}function Tv(r){return Ia(r)?za(r):r.surface==="point_of_sale"||r.surface==="admin"}function kv({uuid:r}){const[o,l]=z.useState(!1),[a]=mt({id:"ExtensionRow",fallback:Sv}),{focus:c,unfocus:u,extension:f}=_v(r);return f?_.createElement(ts,{onMouseEnter:c,onMouseLeave:u},_.createElement("td",null,_.createElement("span",{className:Cv},f.handle)),_.createElement("td",null,_.createElement(Ev,{extension:f,isUnifiedPOSUI:za(f)})),_.createElement("td",null,Tv(f)&&_.createElement(Ed,{id:"showQRCodeModalButton",type:"button",onClick:()=>l(!0)},a.translate("viewMobile")),_.createElement(Nd,{code:o?{url:f.development.root.url,type:za(f)?"point_of_sale":f.surface,title:f.handle}:void 0,onClose:()=>l(!1)})),_.createElement("td",null,_.createElement(Cy,{status:f.development.status}))):null}const xv="_NotApplicable_d2d93_1";function Cd(){return _.createElement("span",{className:xv},"--")}const Pv={success:"URL copied",error:"Couldn't copy URL"},Ov="Preview {title}",Lv="Copy preview link for {title} to clipboard",Mv={copy:Pv,linkLabel:Ov,iconLabel:Lv},Nv="_PreviewLink_18l39_1";function Rv(){const r=Hr();return z.useMemo(()=>o=>r.client.emit("navigate",{url:o}),[r.client.emit])}const Ua=window.top&&new URLSearchParams(location.search).get("embedded")==="true";function _d(r){var o,l,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r))for(o=0;o<r.length;o++)r[o]&&(l=_d(r[o]))&&(a&&(a+=" "),a+=l);else for(o in r)r[o]&&(a&&(a+=" "),a+=o);return a}function Kt(){for(var r,o,l=0,a="";l<arguments.length;)(r=arguments[l++])&&(o=_d(r))&&(a&&(a+=" "),a+=o);return a}const Ur=r=>typeof r=="number"&&!isNaN(r),dn=r=>typeof r=="string",Ke=r=>typeof r=="function",Xo=r=>dn(r)||Ke(r)?r:null,ma=r=>z.isValidElement(r)||dn(r)||Ke(r)||Ur(r);function Dv(r,o,l){l===void 0&&(l=300);const{scrollHeight:a,style:c}=r;requestAnimationFrame(()=>{c.minHeight="initial",c.height=a+"px",c.transition=`all ${l}ms`,requestAnimationFrame(()=>{c.height="0",c.padding="0",c.margin="0",setTimeout(o,l)})})}function ii(r){let{enter:o,exit:l,appendPosition:a=!1,collapse:c=!0,collapseDuration:u=300}=r;return function(f){let{children:p,position:h,preventExitTransition:g,done:y,nodeRef:S,isIn:x}=f;const M=a?`${o}--${h}`:o,L=a?`${l}--${h}`:l,I=z.useRef(0);return z.useLayoutEffect(()=>{const N=S.current,B=M.split(" "),J=se=>{se.target===S.current&&(N.dispatchEvent(new Event("d")),N.removeEventListener("animationend",J),N.removeEventListener("animationcancel",J),I.current===0&&se.type!=="animationcancel"&&N.classList.remove(...B))};N.classList.add(...B),N.addEventListener("animationend",J),N.addEventListener("animationcancel",J)},[]),z.useEffect(()=>{const N=S.current,B=()=>{N.removeEventListener("animationend",B),c?Dv(N,y,u):y()};x||(g?B():(I.current=1,N.className+=` ${L}`,N.addEventListener("animationend",B)))},[x]),_.createElement(_.Fragment,null,p)}}function xf(r,o){return r!=null?{content:r.content,containerId:r.props.containerId,id:r.props.toastId,theme:r.props.theme,type:r.props.type,data:r.props.data||{},isLoading:r.props.isLoading,icon:r.props.icon,status:o}:{}}const ot={list:new Map,emitQueue:new Map,on(r,o){return this.list.has(r)||this.list.set(r,[]),this.list.get(r).push(o),this},off(r,o){if(o){const l=this.list.get(r).filter(a=>a!==o);return this.list.set(r,l),this}return this.list.delete(r),this},cancelEmit(r){const o=this.emitQueue.get(r);return o&&(o.forEach(clearTimeout),this.emitQueue.delete(r)),this},emit(r){this.list.has(r)&&this.list.get(r).forEach(o=>{const l=setTimeout(()=>{o(...[].slice.call(arguments,1))},0);this.emitQueue.has(r)||this.emitQueue.set(r,[]),this.emitQueue.get(r).push(l)})}},Ko=r=>{let{theme:o,type:l,...a}=r;return _.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:o==="colored"?"currentColor":`var(--toastify-icon-color-${l})`,...a})},ga={info:function(r){return _.createElement(Ko,{...r},_.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(r){return _.createElement(Ko,{...r},_.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(r){return _.createElement(Ko,{...r},_.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(r){return _.createElement(Ko,{...r},_.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return _.createElement("div",{className:"Toastify__spinner"})}};function Iv(r){const[,o]=z.useReducer(M=>M+1,0),[l,a]=z.useState([]),c=z.useRef(null),u=z.useRef(new Map).current,f=M=>l.indexOf(M)!==-1,p=z.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:r,containerId:null,isToastActive:f,getToast:M=>u.get(M)}).current;function h(M){let{containerId:L}=M;const{limit:I}=p.props;!I||L&&p.containerId!==L||(p.count-=p.queue.length,p.queue=[])}function g(M){a(L=>M==null?[]:L.filter(I=>I!==M))}function y(){const{toastContent:M,toastProps:L,staleId:I}=p.queue.shift();x(M,L,I)}function S(M,L){let{delay:I,staleId:N,...B}=L;if(!ma(M)||(function(he){return!c.current||p.props.enableMultiContainer&&he.containerId!==p.props.containerId||u.has(he.toastId)&&he.updateId==null})(B))return;const{toastId:J,updateId:se,data:ee}=B,{props:ne}=p,me=()=>g(J),ve=se==null;ve&&p.count++;const de={...ne,style:ne.toastStyle,key:p.toastKey++,...Object.fromEntries(Object.entries(B).filter(he=>{let[H,R]=he;return R!=null})),toastId:J,updateId:se,data:ee,closeToast:me,isIn:!1,className:Xo(B.className||ne.toastClassName),bodyClassName:Xo(B.bodyClassName||ne.bodyClassName),progressClassName:Xo(B.progressClassName||ne.progressClassName),autoClose:!B.isLoading&&(Se=B.autoClose,we=ne.autoClose,Se===!1||Ur(Se)&&Se>0?Se:we),deleteToast(){const he=xf(u.get(J),"removed");u.delete(J),ot.emit(4,he);const H=p.queue.length;if(p.count=J==null?p.count-p.displayedToast:p.count-1,p.count<0&&(p.count=0),H>0){const R=J==null?p.props.limit:1;if(H===1||R===1)p.displayedToast++,y();else{const j=R>H?H:R;p.displayedToast=j;for(let D=0;D<j;D++)y()}}else o()}};var Se,we;de.iconOut=(function(he){let{theme:H,type:R,isLoading:j,icon:D}=he,w=null;const P={theme:H,type:R};return D===!1||(Ke(D)?w=D(P):z.isValidElement(D)?w=z.cloneElement(D,P):dn(D)||Ur(D)?w=D:j?w=ga.spinner():(K=>K in ga)(R)&&(w=ga[R](P))),w})(de),Ke(B.onOpen)&&(de.onOpen=B.onOpen),Ke(B.onClose)&&(de.onClose=B.onClose),de.closeButton=ne.closeButton,B.closeButton===!1||ma(B.closeButton)?de.closeButton=B.closeButton:B.closeButton===!0&&(de.closeButton=!ma(ne.closeButton)||ne.closeButton);let Ne=M;z.isValidElement(M)&&!dn(M.type)?Ne=z.cloneElement(M,{closeToast:me,toastProps:de,data:ee}):Ke(M)&&(Ne=M({closeToast:me,toastProps:de,data:ee})),ne.limit&&ne.limit>0&&p.count>ne.limit&&ve?p.queue.push({toastContent:Ne,toastProps:de,staleId:N}):Ur(I)?setTimeout(()=>{x(Ne,de,N)},I):x(Ne,de,N)}function x(M,L,I){const{toastId:N}=L;I&&u.delete(I);const B={content:M,props:L};u.set(N,B),a(J=>[...J,N].filter(se=>se!==I)),ot.emit(4,xf(B,B.props.updateId==null?"added":"updated"))}return z.useEffect(()=>(p.containerId=r.containerId,ot.cancelEmit(3).on(0,S).on(1,M=>c.current&&g(M)).on(5,h).emit(2,p),()=>{u.clear(),ot.emit(3,p)}),[]),z.useEffect(()=>{p.props=r,p.isToastActive=f,p.displayedToast=l.length}),{getToastToRender:function(M){const L=new Map,I=Array.from(u.values());return r.newestOnTop&&I.reverse(),I.forEach(N=>{const{position:B}=N.props;L.has(B)||L.set(B,[]),L.get(B).push(N)}),Array.from(L,N=>M(N[0],N[1]))},containerRef:c,isToastActive:f}}function Pf(r){return r.targetTouches&&r.targetTouches.length>=1?r.targetTouches[0].clientX:r.clientX}function Of(r){return r.targetTouches&&r.targetTouches.length>=1?r.targetTouches[0].clientY:r.clientY}function Av(r){const[o,l]=z.useState(!1),[a,c]=z.useState(!1),u=z.useRef(null),f=z.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,p=z.useRef(r),{autoClose:h,pauseOnHover:g,closeToast:y,onClick:S,closeOnClick:x}=r;function M(ee){if(r.draggable){ee.nativeEvent.type==="touchstart"&&ee.nativeEvent.preventDefault(),f.didMove=!1,document.addEventListener("mousemove",B),document.addEventListener("mouseup",J),document.addEventListener("touchmove",B),document.addEventListener("touchend",J);const ne=u.current;f.canCloseOnClick=!0,f.canDrag=!0,f.boundingRect=ne.getBoundingClientRect(),ne.style.transition="",f.x=Pf(ee.nativeEvent),f.y=Of(ee.nativeEvent),r.draggableDirection==="x"?(f.start=f.x,f.removalDistance=ne.offsetWidth*(r.draggablePercent/100)):(f.start=f.y,f.removalDistance=ne.offsetHeight*(r.draggablePercent===80?1.5*r.draggablePercent:r.draggablePercent/100))}}function L(ee){if(f.boundingRect){const{top:ne,bottom:me,left:ve,right:de}=f.boundingRect;ee.nativeEvent.type!=="touchend"&&r.pauseOnHover&&f.x>=ve&&f.x<=de&&f.y>=ne&&f.y<=me?N():I()}}function I(){l(!0)}function N(){l(!1)}function B(ee){const ne=u.current;f.canDrag&&ne&&(f.didMove=!0,o&&N(),f.x=Pf(ee),f.y=Of(ee),f.delta=r.draggableDirection==="x"?f.x-f.start:f.y-f.start,f.start!==f.x&&(f.canCloseOnClick=!1),ne.style.transform=`translate${r.draggableDirection}(${f.delta}px)`,ne.style.opacity=""+(1-Math.abs(f.delta/f.removalDistance)))}function J(){document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",J),document.removeEventListener("touchmove",B),document.removeEventListener("touchend",J);const ee=u.current;if(f.canDrag&&f.didMove&&ee){if(f.canDrag=!1,Math.abs(f.delta)>f.removalDistance)return c(!0),void r.closeToast();ee.style.transition="transform 0.2s, opacity 0.2s",ee.style.transform=`translate${r.draggableDirection}(0)`,ee.style.opacity="1"}}z.useEffect(()=>{p.current=r}),z.useEffect(()=>(u.current&&u.current.addEventListener("d",I,{once:!0}),Ke(r.onOpen)&&r.onOpen(z.isValidElement(r.children)&&r.children.props),()=>{const ee=p.current;Ke(ee.onClose)&&ee.onClose(z.isValidElement(ee.children)&&ee.children.props)}),[]),z.useEffect(()=>(r.pauseOnFocusLoss&&(document.hasFocus()||N(),window.addEventListener("focus",I),window.addEventListener("blur",N)),()=>{r.pauseOnFocusLoss&&(window.removeEventListener("focus",I),window.removeEventListener("blur",N))}),[r.pauseOnFocusLoss]);const se={onMouseDown:M,onTouchStart:M,onMouseUp:L,onTouchEnd:L};return h&&g&&(se.onMouseEnter=N,se.onMouseLeave=I),x&&(se.onClick=ee=>{S&&S(ee),f.canCloseOnClick&&y()}),{playToast:I,pauseToast:N,isRunning:o,preventExitTransition:a,toastRef:u,eventHandlers:se}}function Td(r){let{closeToast:o,theme:l,ariaLabel:a="close"}=r;return _.createElement("button",{className:`Toastify__close-button Toastify__close-button--${l}`,type:"button",onClick:c=>{c.stopPropagation(),o(c)},"aria-label":a},_.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},_.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Fv(r){let{delay:o,isRunning:l,closeToast:a,type:c="default",hide:u,className:f,style:p,controlledProgress:h,progress:g,rtl:y,isIn:S,theme:x}=r;const M=u||h&&g===0,L={...p,animationDuration:`${o}ms`,animationPlayState:l?"running":"paused",opacity:M?0:1};h&&(L.transform=`scaleX(${g})`);const I=Kt("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${x}`,`Toastify__progress-bar--${c}`,{"Toastify__progress-bar--rtl":y}),N=Ke(f)?f({rtl:y,type:c,defaultClassName:I}):Kt(I,f);return _.createElement("div",{role:"progressbar","aria-hidden":M?"true":"false","aria-label":"notification timer",className:N,style:L,[h&&g>=1?"onTransitionEnd":"onAnimationEnd"]:h&&g<1?null:()=>{S&&a()}})}const Bv=r=>{const{isRunning:o,preventExitTransition:l,toastRef:a,eventHandlers:c}=Av(r),{closeButton:u,children:f,autoClose:p,onClick:h,type:g,hideProgressBar:y,closeToast:S,transition:x,position:M,className:L,style:I,bodyClassName:N,bodyStyle:B,progressClassName:J,progressStyle:se,updateId:ee,role:ne,progress:me,rtl:ve,toastId:de,deleteToast:Se,isIn:we,isLoading:Ne,iconOut:he,closeOnClick:H,theme:R}=r,j=Kt("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":ve},{"Toastify__toast--close-on-click":H}),D=Ke(L)?L({rtl:ve,position:M,type:g,defaultClassName:j}):Kt(j,L),w=!!me||!p,P={closeToast:S,type:g,theme:R};let K=null;return u===!1||(K=Ke(u)?u(P):z.isValidElement(u)?z.cloneElement(u,P):Td(P)),_.createElement(x,{isIn:we,done:Se,position:M,preventExitTransition:l,nodeRef:a},_.createElement("div",{id:de,onClick:h,className:D,...c,style:I,ref:a},_.createElement("div",{...we&&{role:ne},className:Ke(N)?N({type:g}):Kt("Toastify__toast-body",N),style:B},he!=null&&_.createElement("div",{className:Kt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ne})},he),_.createElement("div",null,f)),K,_.createElement(Fv,{...ee&&!w?{key:`pb-${ee}`}:{},rtl:ve,theme:R,delay:p,isRunning:o,isIn:we,closeToast:S,hide:y,type:g,style:se,className:J,controlledProgress:w,progress:me||0})))},li=function(r,o){return o===void 0&&(o=!1),{enter:`Toastify--animate Toastify__${r}-enter`,exit:`Toastify--animate Toastify__${r}-exit`,appendPosition:o}},zv=ii(li("bounce",!0));ii(li("slide",!0));ii(li("zoom"));ii(li("flip"));const $a=z.forwardRef((r,o)=>{const{getToastToRender:l,containerRef:a,isToastActive:c}=Iv(r),{className:u,style:f,rtl:p,containerId:h}=r;function g(y){const S=Kt("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":p});return Ke(u)?u({position:y,rtl:p,defaultClassName:S}):Kt(S,Xo(u))}return z.useEffect(()=>{o&&(o.current=a.current)},[]),_.createElement("div",{ref:a,className:"Toastify",id:h},l((y,S)=>{const x=S.length?{...f}:{...f,pointerEvents:"none"};return _.createElement("div",{className:g(y),style:x,key:`container-${y}`},S.map((M,L)=>{let{content:I,props:N}=M;return _.createElement(Bv,{...N,isIn:c(N.toastId),style:{...N.style,"--nth":L+1,"--len":S.length},key:`toast-${N.key}`},I)}))}))});$a.displayName="ToastContainer",$a.defaultProps={position:"top-right",transition:zv,autoClose:5e3,closeButton:Td,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let va,cn=new Map,Br=[],Uv=1;function kd(){return""+Uv++}function $v(r){return r&&(dn(r.toastId)||Ur(r.toastId))?r.toastId:kd()}function $r(r,o){return cn.size>0?ot.emit(0,r,o):Br.push({content:r,options:o}),o.toastId}function ti(r,o){return{...o,type:o&&o.type||r,toastId:$v(o)}}function Qo(r){return(o,l)=>$r(o,ti(r,l))}function Te(r,o){return $r(r,ti("default",o))}Te.loading=(r,o)=>$r(r,ti("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...o})),Te.promise=function(r,o,l){let a,{pending:c,error:u,success:f}=o;c&&(a=dn(c)?Te.loading(c,l):Te.loading(c.render,{...l,...c}));const p={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(y,S,x)=>{if(S==null)return void Te.dismiss(a);const M={type:y,...p,...l,data:x},L=dn(S)?{render:S}:S;return a?Te.update(a,{...M,...L}):Te(L.render,{...M,...L}),x},g=Ke(r)?r():r;return g.then(y=>h("success",f,y)).catch(y=>h("error",u,y)),g},Te.success=Qo("success"),Te.info=Qo("info"),Te.error=Qo("error"),Te.warning=Qo("warning"),Te.warn=Te.warning,Te.dark=(r,o)=>$r(r,ti("default",{theme:"dark",...o})),Te.dismiss=r=>{cn.size>0?ot.emit(1,r):Br=Br.filter(o=>r!=null&&o.options.toastId!==r)},Te.clearWaitingQueue=function(r){return r===void 0&&(r={}),ot.emit(5,r)},Te.isActive=r=>{let o=!1;return cn.forEach(l=>{l.isToastActive&&l.isToastActive(r)&&(o=!0)}),o},Te.update=function(r,o){o===void 0&&(o={}),setTimeout(()=>{const l=(function(a,c){let{containerId:u}=c;const f=cn.get(u||va);return f&&f.getToast(a)})(r,o);if(l){const{props:a,content:c}=l,u={delay:100,...a,...o,toastId:o.toastId||r,updateId:kd()};u.toastId!==r&&(u.staleId=r);const f=u.render||c;delete u.render,$r(f,u)}},0)},Te.done=r=>{Te.update(r,{progress:1})},Te.onChange=r=>(ot.on(4,r),()=>{ot.off(4,r)}),Te.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Te.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ot.on(2,r=>{va=r.containerId||r,cn.set(va,r),Br.forEach(o=>{ot.emit(0,o.content,o.options)}),Br=[]}).on(3,r=>{cn.delete(r.containerId||r),cn.size===0&&ot.off(0).off(1).off(5)});function ja({rootUrl:r,resourceUrl:o,title:l,hasLink:a=!0}){const[c]=mt({id:"PreviewLink",fallback:Mv}),u=Rv(),f=h=>{Ua&&o&&(u(o),h.preventDefault())};function p(){navigator.clipboard.writeText(r).then(()=>{Te(c.translate("copy.success"),{toastId:`copy-${r}`})}).catch(()=>{Te(c.translate("copy.error"),{type:"error",toastId:`copy-${r}-error`})})}return _.createElement("span",{className:Nv},a?_.createElement("a",{href:r,target:Ua?"_top":"_blank","aria-label":c.translate("linkLabel",{title:l}),onClick:f},l):l,_.createElement(Ya,{type:"button",onClick:()=>p(),source:Wa,accessibilityLabel:c.translate("iconLabel",{title:l})}))}const jv="_Wrapper_1tz7v_1",Hv="_LeftColumn_1tz7v_6",bv="_QRCode_1tz7v_15",Vv="_RightColumn_1tz7v_21",Wv="_UrlCta_1tz7v_29",Gv="View your work on mobile",Kv={one:"Scan with your phone camera to see your work",two:"Or copy the URL to share:"},Qv={copy:"Copy link",copied:"Link copied",content:"Scan to test {title} on mobile"},xd={title:Gv,right:Kv,qrcode:Qv};var ya,Lf;function Yv(){return Lf||(Lf=1,ya=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var o=document.activeElement,l=[],a=0;a<r.rangeCount;a++)l.push(r.getRangeAt(a));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||l.forEach(function(c){r.addRange(c)}),o&&o.focus()}}),ya}var Ea,Mf;function Xv(){if(Mf)return Ea;Mf=1;var r=Yv(),o={"text/plain":"Text","text/html":"Url",default:"Text"},l="Copy to clipboard: #{key}, Enter";function a(u){var f=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return u.replace(/#{\s*key\s*}/g,f)}function c(u,f){var p,h,g,y,S,x,M=!1;f||(f={}),p=f.debug||!1;try{g=r(),y=document.createRange(),S=document.getSelection(),x=document.createElement("span"),x.textContent=u,x.ariaHidden="true",x.style.all="unset",x.style.position="fixed",x.style.top=0,x.style.clip="rect(0, 0, 0, 0)",x.style.whiteSpace="pre",x.style.webkitUserSelect="text",x.style.MozUserSelect="text",x.style.msUserSelect="text",x.style.userSelect="text",x.addEventListener("copy",function(I){if(I.stopPropagation(),f.format)if(I.preventDefault(),typeof I.clipboardData>"u"){p&&console.warn("unable to use e.clipboardData"),p&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var N=o[f.format]||o.default;window.clipboardData.setData(N,u)}else I.clipboardData.clearData(),I.clipboardData.setData(f.format,u);f.onCopy&&(I.preventDefault(),f.onCopy(I.clipboardData))}),document.body.appendChild(x),y.selectNodeContents(x),S.addRange(y);var L=document.execCommand("copy");if(!L)throw new Error("copy command was unsuccessful");M=!0}catch(I){p&&console.error("unable to copy using execCommand: ",I),p&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",u),f.onCopy&&f.onCopy(window.clipboardData),M=!0}catch(N){p&&console.error("unable to copy using clipboardData: ",N),p&&console.error("falling back to prompt"),h=a("message"in f?f.message:l),window.prompt(h,u)}}finally{S&&(typeof S.removeRange=="function"?S.removeRange(y):S.removeAllRanges()),x&&document.body.removeChild(x),g()}return M}return Ea=c,Ea}var Zv=Xv();const qv=oi(Zv);var wa,Nf;function Pd(){return Nf||(Nf=1,wa={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),wa}var Sa,Rf;function Jv(){if(Rf)return Sa;Rf=1;var r=Pd();function o(l){this.mode=r.MODE_8BIT_BYTE,this.data=l}return o.prototype={getLength:function(l){return this.data.length},write:function(l){for(var a=0;a<this.data.length;a++)l.put(this.data.charCodeAt(a),8)}},Sa=o,Sa}var Ca,Df;function Od(){return Df||(Df=1,Ca={L:1,M:0,Q:3,H:2}),Ca}var _a,If;function ey(){if(If)return _a;If=1;var r=Od();function o(l,a){this.totalCount=l,this.dataCount=a}return o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(l,a){var c=o.getRsBlockTable(l,a);if(c==null)throw new Error("bad rs block @ typeNumber:"+l+"/errorCorrectLevel:"+a);for(var u=c.length/3,f=new Array,p=0;p<u;p++)for(var h=c[p*3+0],g=c[p*3+1],y=c[p*3+2],S=0;S<h;S++)f.push(new o(g,y));return f},o.getRsBlockTable=function(l,a){switch(a){case r.L:return o.RS_BLOCK_TABLE[(l-1)*4+0];case r.M:return o.RS_BLOCK_TABLE[(l-1)*4+1];case r.Q:return o.RS_BLOCK_TABLE[(l-1)*4+2];case r.H:return o.RS_BLOCK_TABLE[(l-1)*4+3];default:return}},_a=o,_a}var Ta,Af;function ty(){if(Af)return Ta;Af=1;function r(){this.buffer=new Array,this.length=0}return r.prototype={get:function(o){var l=Math.floor(o/8);return(this.buffer[l]>>>7-o%8&1)==1},put:function(o,l){for(var a=0;a<l;a++)this.putBit((o>>>l-a-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(o){var l=Math.floor(this.length/8);this.buffer.length<=l&&this.buffer.push(0),o&&(this.buffer[l]|=128>>>this.length%8),this.length++}},Ta=r,Ta}var ka,Ff;function Ld(){if(Ff)return ka;Ff=1;for(var r={glog:function(l){if(l<1)throw new Error("glog("+l+")");return r.LOG_TABLE[l]},gexp:function(l){for(;l<0;)l+=255;for(;l>=256;)l-=255;return r.EXP_TABLE[l]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},o=0;o<8;o++)r.EXP_TABLE[o]=1<<o;for(var o=8;o<256;o++)r.EXP_TABLE[o]=r.EXP_TABLE[o-4]^r.EXP_TABLE[o-5]^r.EXP_TABLE[o-6]^r.EXP_TABLE[o-8];for(var o=0;o<255;o++)r.LOG_TABLE[r.EXP_TABLE[o]]=o;return ka=r,ka}var xa,Bf;function Md(){if(Bf)return xa;Bf=1;var r=Ld();function o(l,a){if(l.length==null)throw new Error(l.length+"/"+a);for(var c=0;c<l.length&&l[c]==0;)c++;this.num=new Array(l.length-c+a);for(var u=0;u<l.length-c;u++)this.num[u]=l[u+c]}return o.prototype={get:function(l){return this.num[l]},getLength:function(){return this.num.length},multiply:function(l){for(var a=new Array(this.getLength()+l.getLength()-1),c=0;c<this.getLength();c++)for(var u=0;u<l.getLength();u++)a[c+u]^=r.gexp(r.glog(this.get(c))+r.glog(l.get(u)));return new o(a,0)},mod:function(l){if(this.getLength()-l.getLength()<0)return this;for(var a=r.glog(this.get(0))-r.glog(l.get(0)),c=new Array(this.getLength()),u=0;u<this.getLength();u++)c[u]=this.get(u);for(var u=0;u<l.getLength();u++)c[u]^=r.gexp(r.glog(l.get(u))+a);return new o(c,0).mod(l)}},xa=o,xa}var Pa,zf;function ny(){if(zf)return Pa;zf=1;var r=Pd(),o=Md(),l=Ld(),a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(u){for(var f=u<<10;c.getBCHDigit(f)-c.getBCHDigit(c.G15)>=0;)f^=c.G15<<c.getBCHDigit(f)-c.getBCHDigit(c.G15);return(u<<10|f)^c.G15_MASK},getBCHTypeNumber:function(u){for(var f=u<<12;c.getBCHDigit(f)-c.getBCHDigit(c.G18)>=0;)f^=c.G18<<c.getBCHDigit(f)-c.getBCHDigit(c.G18);return u<<12|f},getBCHDigit:function(u){for(var f=0;u!=0;)f++,u>>>=1;return f},getPatternPosition:function(u){return c.PATTERN_POSITION_TABLE[u-1]},getMask:function(u,f,p){switch(u){case a.PATTERN000:return(f+p)%2==0;case a.PATTERN001:return f%2==0;case a.PATTERN010:return p%3==0;case a.PATTERN011:return(f+p)%3==0;case a.PATTERN100:return(Math.floor(f/2)+Math.floor(p/3))%2==0;case a.PATTERN101:return f*p%2+f*p%3==0;case a.PATTERN110:return(f*p%2+f*p%3)%2==0;case a.PATTERN111:return(f*p%3+(f+p)%2)%2==0;default:throw new Error("bad maskPattern:"+u)}},getErrorCorrectPolynomial:function(u){for(var f=new o([1],0),p=0;p<u;p++)f=f.multiply(new o([1,l.gexp(p)],0));return f},getLengthInBits:function(u,f){if(1<=f&&f<10)switch(u){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw new Error("mode:"+u)}else if(f<27)switch(u){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+u)}else if(f<41)switch(u){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+u)}else throw new Error("type:"+f)},getLostPoint:function(u){for(var f=u.getModuleCount(),p=0,h=0;h<f;h++)for(var g=0;g<f;g++){for(var y=0,S=u.isDark(h,g),x=-1;x<=1;x++)if(!(h+x<0||f<=h+x))for(var M=-1;M<=1;M++)g+M<0||f<=g+M||x==0&&M==0||S==u.isDark(h+x,g+M)&&y++;y>5&&(p+=3+y-5)}for(var h=0;h<f-1;h++)for(var g=0;g<f-1;g++){var L=0;u.isDark(h,g)&&L++,u.isDark(h+1,g)&&L++,u.isDark(h,g+1)&&L++,u.isDark(h+1,g+1)&&L++,(L==0||L==4)&&(p+=3)}for(var h=0;h<f;h++)for(var g=0;g<f-6;g++)u.isDark(h,g)&&!u.isDark(h,g+1)&&u.isDark(h,g+2)&&u.isDark(h,g+3)&&u.isDark(h,g+4)&&!u.isDark(h,g+5)&&u.isDark(h,g+6)&&(p+=40);for(var g=0;g<f;g++)for(var h=0;h<f-6;h++)u.isDark(h,g)&&!u.isDark(h+1,g)&&u.isDark(h+2,g)&&u.isDark(h+3,g)&&u.isDark(h+4,g)&&!u.isDark(h+5,g)&&u.isDark(h+6,g)&&(p+=40);for(var I=0,g=0;g<f;g++)for(var h=0;h<f;h++)u.isDark(h,g)&&I++;var N=Math.abs(100*I/f/f-50)/5;return p+=N*10,p}};return Pa=c,Pa}var Oa,Uf;function ry(){if(Uf)return Oa;Uf=1;var r=Jv(),o=ey(),l=ty(),a=ny(),c=Md();function u(p,h){this.typeNumber=p,this.errorCorrectLevel=h,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var f=u.prototype;return f.addData=function(p){var h=new r(p);this.dataList.push(h),this.dataCache=null},f.isDark=function(p,h){if(p<0||this.moduleCount<=p||h<0||this.moduleCount<=h)throw new Error(p+","+h);return this.modules[p][h]},f.getModuleCount=function(){return this.moduleCount},f.make=function(){if(this.typeNumber<1){var p=1;for(p=1;p<40;p++){for(var h=o.getRSBlocks(p,this.errorCorrectLevel),g=new l,y=0,S=0;S<h.length;S++)y+=h[S].dataCount;for(var S=0;S<this.dataList.length;S++){var x=this.dataList[S];g.put(x.mode,4),g.put(x.getLength(),a.getLengthInBits(x.mode,p)),x.write(g)}if(g.getLengthInBits()<=y*8)break}this.typeNumber=p}this.makeImpl(!1,this.getBestMaskPattern())},f.makeImpl=function(p,h){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var g=0;g<this.moduleCount;g++){this.modules[g]=new Array(this.moduleCount);for(var y=0;y<this.moduleCount;y++)this.modules[g][y]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(p,h),this.typeNumber>=7&&this.setupTypeNumber(p),this.dataCache==null&&(this.dataCache=u.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,h)},f.setupPositionProbePattern=function(p,h){for(var g=-1;g<=7;g++)if(!(p+g<=-1||this.moduleCount<=p+g))for(var y=-1;y<=7;y++)h+y<=-1||this.moduleCount<=h+y||(0<=g&&g<=6&&(y==0||y==6)||0<=y&&y<=6&&(g==0||g==6)||2<=g&&g<=4&&2<=y&&y<=4?this.modules[p+g][h+y]=!0:this.modules[p+g][h+y]=!1)},f.getBestMaskPattern=function(){for(var p=0,h=0,g=0;g<8;g++){this.makeImpl(!0,g);var y=a.getLostPoint(this);(g==0||p>y)&&(p=y,h=g)}return h},f.createMovieClip=function(p,h,g){var y=p.createEmptyMovieClip(h,g),S=1;this.make();for(var x=0;x<this.modules.length;x++)for(var M=x*S,L=0;L<this.modules[x].length;L++){var I=L*S,N=this.modules[x][L];N&&(y.beginFill(0,100),y.moveTo(I,M),y.lineTo(I+S,M),y.lineTo(I+S,M+S),y.lineTo(I,M+S),y.endFill())}return y},f.setupTimingPattern=function(){for(var p=8;p<this.moduleCount-8;p++)this.modules[p][6]==null&&(this.modules[p][6]=p%2==0);for(var h=8;h<this.moduleCount-8;h++)this.modules[6][h]==null&&(this.modules[6][h]=h%2==0)},f.setupPositionAdjustPattern=function(){for(var p=a.getPatternPosition(this.typeNumber),h=0;h<p.length;h++)for(var g=0;g<p.length;g++){var y=p[h],S=p[g];if(this.modules[y][S]==null)for(var x=-2;x<=2;x++)for(var M=-2;M<=2;M++)x==-2||x==2||M==-2||M==2||x==0&&M==0?this.modules[y+x][S+M]=!0:this.modules[y+x][S+M]=!1}},f.setupTypeNumber=function(p){for(var h=a.getBCHTypeNumber(this.typeNumber),g=0;g<18;g++){var y=!p&&(h>>g&1)==1;this.modules[Math.floor(g/3)][g%3+this.moduleCount-8-3]=y}for(var g=0;g<18;g++){var y=!p&&(h>>g&1)==1;this.modules[g%3+this.moduleCount-8-3][Math.floor(g/3)]=y}},f.setupTypeInfo=function(p,h){for(var g=this.errorCorrectLevel<<3|h,y=a.getBCHTypeInfo(g),S=0;S<15;S++){var x=!p&&(y>>S&1)==1;S<6?this.modules[S][8]=x:S<8?this.modules[S+1][8]=x:this.modules[this.moduleCount-15+S][8]=x}for(var S=0;S<15;S++){var x=!p&&(y>>S&1)==1;S<8?this.modules[8][this.moduleCount-S-1]=x:S<9?this.modules[8][15-S-1+1]=x:this.modules[8][15-S-1]=x}this.modules[this.moduleCount-8][8]=!p},f.mapData=function(p,h){for(var g=-1,y=this.moduleCount-1,S=7,x=0,M=this.moduleCount-1;M>0;M-=2)for(M==6&&M--;;){for(var L=0;L<2;L++)if(this.modules[y][M-L]==null){var I=!1;x<p.length&&(I=(p[x]>>>S&1)==1);var N=a.getMask(h,y,M-L);N&&(I=!I),this.modules[y][M-L]=I,S--,S==-1&&(x++,S=7)}if(y+=g,y<0||this.moduleCount<=y){y-=g,g=-g;break}}},u.PAD0=236,u.PAD1=17,u.createData=function(p,h,g){for(var y=o.getRSBlocks(p,h),S=new l,x=0;x<g.length;x++){var M=g[x];S.put(M.mode,4),S.put(M.getLength(),a.getLengthInBits(M.mode,p)),M.write(S)}for(var L=0,x=0;x<y.length;x++)L+=y[x].dataCount;if(S.getLengthInBits()>L*8)throw new Error("code length overflow. ("+S.getLengthInBits()+">"+L*8+")");for(S.getLengthInBits()+4<=L*8&&S.put(0,4);S.getLengthInBits()%8!=0;)S.putBit(!1);for(;!(S.getLengthInBits()>=L*8||(S.put(u.PAD0,8),S.getLengthInBits()>=L*8));)S.put(u.PAD1,8);return u.createBytes(S,y)},u.createBytes=function(p,h){for(var g=0,y=0,S=0,x=new Array(h.length),M=new Array(h.length),L=0;L<h.length;L++){var I=h[L].dataCount,N=h[L].totalCount-I;y=Math.max(y,I),S=Math.max(S,N),x[L]=new Array(I);for(var B=0;B<x[L].length;B++)x[L][B]=255&p.buffer[B+g];g+=I;var J=a.getErrorCorrectPolynomial(N),se=new c(x[L],J.getLength()-1),ee=se.mod(J);M[L]=new Array(J.getLength()-1);for(var B=0;B<M[L].length;B++){var ne=B+ee.getLength()-M[L].length;M[L][B]=ne>=0?ee.get(ne):0}}for(var me=0,B=0;B<h.length;B++)me+=h[B].totalCount;for(var ve=new Array(me),de=0,B=0;B<y;B++)for(var L=0;L<h.length;L++)B<x[L].length&&(ve[de++]=x[L][B]);for(var B=0;B<S;B++)for(var L=0;L<h.length;L++)B<M[L].length&&(ve[de++]=M[L][B]);return ve},Oa=u,Oa}var La,$f;function oy(){if($f)return La;$f=1;function r(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(j){return typeof j}:r=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},r(H)}function o(){return o=Object.assign||function(H){for(var R=1;R<arguments.length;R++){var j=arguments[R];for(var D in j)Object.prototype.hasOwnProperty.call(j,D)&&(H[D]=j[D])}return H},o.apply(this,arguments)}function l(H,R){var j=Object.keys(H);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(H);R&&(D=D.filter(function(w){return Object.getOwnPropertyDescriptor(H,w).enumerable})),j.push.apply(j,D)}return j}function a(H){for(var R=1;R<arguments.length;R++){var j=arguments[R]!=null?arguments[R]:{};R%2?l(j,!0).forEach(function(D){L(H,D,j[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(j)):l(j).forEach(function(D){Object.defineProperty(H,D,Object.getOwnPropertyDescriptor(j,D))})}return H}function c(H,R){if(H==null)return{};var j=u(H,R),D,w;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(H);for(w=0;w<P.length;w++)D=P[w],!(R.indexOf(D)>=0)&&Object.prototype.propertyIsEnumerable.call(H,D)&&(j[D]=H[D])}return j}function u(H,R){if(H==null)return{};var j={},D=Object.keys(H),w,P;for(P=0;P<D.length;P++)w=D[P],!(R.indexOf(w)>=0)&&(j[w]=H[w]);return j}function f(H,R){if(!(H instanceof R))throw new TypeError("Cannot call a class as a function")}function p(H,R){for(var j=0;j<R.length;j++){var D=R[j];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(H,D.key,D)}}function h(H,R,j){return R&&p(H.prototype,R),H}function g(H,R){return R&&(r(R)==="object"||typeof R=="function")?R:S(H)}function y(H){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},y(H)}function S(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function x(H,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(R&&R.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),R&&M(H,R)}function M(H,R){return M=Object.setPrototypeOf||function(D,w){return D.__proto__=w,D},M(H,R)}function L(H,R,j){return R in H?Object.defineProperty(H,R,{value:j,enumerable:!0,configurable:!0,writable:!0}):H[R]=j,H}var I=Va(),N=ry(),B=Od();function J(H){for(var R="",j=0;j<H.length;j++){var D=H.charCodeAt(j);D<128?R+=String.fromCharCode(D):D<2048?(R+=String.fromCharCode(192|D>>6),R+=String.fromCharCode(128|D&63)):D<55296||D>=57344?(R+=String.fromCharCode(224|D>>12),R+=String.fromCharCode(128|D>>6&63),R+=String.fromCharCode(128|D&63)):(j++,D=65536+((D&1023)<<10|H.charCodeAt(j)&1023),R+=String.fromCharCode(240|D>>18),R+=String.fromCharCode(128|D>>12&63),R+=String.fromCharCode(128|D>>6&63),R+=String.fromCharCode(128|D&63))}return R}var se={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},ee=4,ne=.1;function me(H){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[];return H.forEach(function(D,w){var P=null;D.forEach(function(K,te){if(!K&&P!==null){j.push("M".concat(P+R," ").concat(w+R,"h").concat(te-P,"v1H").concat(P+R,"z")),P=null;return}if(te===D.length-1){if(!K)return;P===null?j.push("M".concat(te+R,",").concat(w+R," h1v1H").concat(te+R,"z")):j.push("M".concat(P+R,",").concat(w+R," h").concat(te+1-P,"v1H").concat(P+R,"z"));return}K&&P===null&&(P=te)})}),j.join("")}function ve(H,R){return H.slice().map(function(j,D){return D<R.y||D>=R.y+R.h?j:j.map(function(w,P){return P<R.x||P>=R.x+R.w?w:!1})})}function de(H,R){var j=H.imageSettings,D=H.size,w=H.includeMargin;if(j==null)return null;var P=w?ee:0,K=R.length+P*2,te=Math.floor(D*ne),A=K/D,W=(j.width||te)*A,V=(j.height||te)*A,q=j.x==null?R.length/2-W/2:j.x*A,X=j.y==null?R.length/2-V/2:j.y*A,oe=null;if(j.excavate){var Ee=Math.floor(q),Oe=Math.floor(X),ke=Math.ceil(W+q-Ee),je=Math.ceil(V+X-Oe);oe={x:Ee,y:Oe,w:ke,h:je}}return{x:q,y:X,h:V,w:W,excavation:oe}}var Se=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),we=(function(H){x(R,H);function R(){var j,D;f(this,R);for(var w=arguments.length,P=new Array(w),K=0;K<w;K++)P[K]=arguments[K];return D=g(this,(j=y(R)).call.apply(j,[this].concat(P))),L(S(D),"_canvas",void 0),L(S(D),"_image",void 0),L(S(D),"state",{imgLoaded:!1}),L(S(D),"handleImageLoad",function(){D.setState({imgLoaded:!0})}),D}return h(R,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(D){var w,P,K=(w=this.props.imageSettings)===null||w===void 0?void 0:w.src,te=(P=D.imageSettings)===null||P===void 0?void 0:P.src;K!==te&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var D=this.props,w=D.value,P=D.size,K=D.level,te=D.bgColor,A=D.fgColor,W=D.includeMargin,V=D.imageSettings,q=new N(-1,B[K]);if(q.addData(J(w)),q.make(),this._canvas!=null){var X=this._canvas,oe=X.getContext("2d");if(!oe)return;var Ee=q.modules;if(Ee===null)return;var Oe=W?ee:0,ke=Ee.length+Oe*2,je=de(this.props,Ee);V!=null&&je!=null&&je.excavation!=null&&(Ee=ve(Ee,je.excavation));var it=window.devicePixelRatio||1;X.height=X.width=P*it;var lt=P/ke*it;oe.scale(lt,lt),oe.fillStyle=te,oe.fillRect(0,0,ke,ke),oe.fillStyle=A,Se?oe.fill(new Path2D(me(Ee,Oe))):Ee.forEach(function(br,ci){br.forEach(function(hn,Vr){hn&&oe.fillRect(Vr+Oe,ci+Oe,1,1)})}),this.state.imgLoaded&&this._image&&je!=null&&oe.drawImage(this._image,je.x+Oe,je.y+Oe,je.w,je.h)}}},{key:"render",value:function(){var D=this,w=this.props;w.value;var P=w.size;w.level,w.bgColor,w.fgColor;var K=w.style;w.includeMargin;var te=w.imageSettings,A=c(w,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),W=a({height:P,width:P},K),V=null,q=te&&te.src;return te!=null&&q!=null&&(V=I.createElement("img",{src:q,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(oe){return D._image=oe}})),I.createElement(I.Fragment,null,I.createElement("canvas",o({style:W,height:P,width:P,ref:function(oe){return D._canvas=oe}},A)),V)}}]),R})(I.PureComponent);L(we,"defaultProps",se);var Ne=(function(H){x(R,H);function R(){return f(this,R),g(this,y(R).apply(this,arguments))}return h(R,[{key:"render",value:function(){var D=this.props,w=D.value,P=D.size,K=D.level,te=D.bgColor,A=D.fgColor,W=D.includeMargin,V=D.imageSettings,q=c(D,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),X=new N(-1,B[K]);X.addData(J(w)),X.make();var oe=X.modules;if(oe===null)return null;var Ee=W?ee:0,Oe=oe.length+Ee*2,ke=de(this.props,oe),je=null;V!=null&&ke!=null&&(ke.excavation!=null&&(oe=ve(oe,ke.excavation)),je=I.createElement("image",{xlinkHref:V.src,height:ke.h,width:ke.w,x:ke.x+Ee,y:ke.y+Ee,preserveAspectRatio:"none"}));var it=me(oe,Ee);return I.createElement("svg",o({shapeRendering:"crispEdges",height:P,width:P,viewBox:"0 0 ".concat(Oe," ").concat(Oe)},q),I.createElement("path",{fill:te,d:"M0,0 h".concat(Oe,"v").concat(Oe,"H0z")}),I.createElement("path",{fill:A,d:it}),je)}}]),R})(I.PureComponent);L(Ne,"defaultProps",se);var he=function(R){var j=R.renderAs,D=c(R,["renderAs"]),w=j==="svg"?Ne:we;return I.createElement(w,D)};return he.defaultProps=a({renderAs:"canvas"},se),La=he,La}var iy=oy();const ly=oi(iy);function Nd({code:r,onClose:o}){const[l]=mt({id:"QRCodeModal",fallback:xd});return _.createElement(pv,{title:l.translate("title",{title:r==null?void 0:r.title}),open:!!r,onClose:o,width:"small"},r?_.createElement(ay,{...r}):null)}function ay({url:r,type:o}){const[l]=mt({id:"QRCodeModal",fallback:xd}),{store:a,app:c}=Qa(),u=z.useMemo(()=>c?o==="point_of_sale"?`com.shopify.pos://pos-ui-extensions?url=${r}`:o==="home"?c.mobileUrl:`https://${a}/admin/extensions-dev/mobile?url=${r}`:null,[r,c,c==null?void 0:c.mobileUrl]),f=z.useCallback(()=>{u&&qv(u)&&Te(l.translate("qrcode.copied"),{toastId:`copy-qrcode-${u}`})},[u]);return u?_.createElement("div",{className:jv},_.createElement("span",{className:Hv},_.createElement("span",{className:bv},_.createElement(ly,{value:u,size:170}))),_.createElement("span",{className:Vv},l.translate("right.one"),_.createElement("span",{className:Wv},l.translate("right.two")," ",_.createElement(Ya,{type:"button",source:Wa,accessibilityLabel:l.translate("qrcode.copy"),onClick:f})))):null}const sy="_Row_1rpxh_1",uy="_Hoverable_1rpxh_9";function ts({className:r,children:o,...l}){const a=qe(r,sy,l.onMouseEnter||l.onMouseLeave?uy:void 0);return _.createElement("tr",{className:a,...l},o)}const cy={label:"Connected",tooltipMessage:"No connection issues detected."},fy={label:"Disconnected",tooltipMessage:"Extension not available. Return to the CLI and run the 'dev' command again."},dy={label:"Build Error",tooltipMessage:"Check the CLI logs about an error in your source code."},py={success:cy,disconnected:fy,error:dy},ns="_Status_1aimo_1",Rd="_success_1aimo_10",Dd="_disconnected_1aimo_11",rs="_error_1aimo_12",hy={Status:ns,success:Rd,disconnected:Dd,error:rs},my=Object.freeze(Object.defineProperty({__proto__:null,Status:ns,default:hy,disconnected:Dd,error:rs,success:Rd},Symbol.toStringTag,{value:"Module"})),gy="_Tooltip_ru6ke_1",vy="_TooltipUnderline_ru6ke_9",jf={Tooltip:gy,TooltipUnderline:vy},yy="_Popover_1ehpl_5",Ey={Popover:yy},Hf=10;function wy({targetRef:r,text:o}){const l=z.useRef(null),a=()=>{if(!r.current)return{x:0,y:0};const{x:c,y:u,height:f}=r.current.getBoundingClientRect(),{scrollY:p,scrollX:h}=window;return{x:c+h,y:u+f+Hf+p}};return z.useLayoutEffect(()=>{if(!l.current||!(r!=null&&r.current))return;let{x:c,y:u}=a();const{innerWidth:f,innerHeight:p}=window,{height:h,width:g}=l.current.getBoundingClientRect();c+g>f&&(c-=g-r.current.getBoundingClientRect().width),u+h>p&&(u-=h+r.current.getBoundingClientRect().height+2*Hf),l.current.style.top=`${u}px`,l.current.style.left=`${c}px`},[]),_.createElement("div",{className:Ey.Popover,role:"tooltip",ref:l},o)}function Sy({children:r,text:o}){const l=z.useRef(null),[a,c]=z.useState(!1),u=()=>{!l.current||a||(typeof r!="string"&&(l.current.firstChild.tabIndex=-1),c(!0))},f=p=>{var h;p.key==="Enter"&&((h=l.current)==null?void 0:h.firstChild).click()};return _.createElement("div",{className:qe(jf.Tooltip,typeof r=="string"&&jf.TooltipUnderline),onMouseEnter:u,onFocus:u,onBlur:()=>c(!1),onMouseLeave:()=>c(!1),onKeyUp:f,ref:l,tabIndex:0},r,a&&_.createElement(wy,{text:o,targetRef:l}))}function Cy({status:r}){const[o]=mt({id:"Status",fallback:py}),l=r?my[r||"error"]:rs;return _.createElement("span",{className:ns},_.createElement("span",{className:l}),_.createElement(Sy,{text:o.translate(`${r}.tooltipMessage`)},o.translate(`${r}.label`)))}const _y="{installLink} to see changes live. Share preview links with teammates or clients.",Ty="Install your app",ky={handle:"Handle",preview:"Preview link",mobile:"Mobile",view:"View",status:"Status",refresh:"Refresh",delete:"Delete"},xy={viewColumnHeader:"Hide your local extensions to view what's in production."},Py={show:"Show",hide:"Hide",selectAll:"Select all",deselectAll:"Deselect all"},Oy={noExtensions:"No extensions found",noExtensionsForSurface:"No extensions found for the surface: {surface}"},Ly={intro:_y,introInstallCta:Ty,extensionList:ky,tooltips:xy,bulkActions:Py,errors:Oy};function My(){const r=Hr();return z.useMemo(()=>r.state.extensions.sort((o,l)=>o.type.toLowerCase()==="app_home"?-1:o.handle.localeCompare(l.handle)).map(({uuid:o,type:l})=>({uuid:o,type:l})),[r.state.extensions.length])}function Ny(){const[r]=mt({id:"Extensions",fallback:Ly}),o=My(),{surface:l}=vd(),{app:a}=Qa();if(!o.length)return _.createElement("div",{className:Qm},l?r.translate("errors.noExtensionsForSurface",{surface:l}):r.translate("errors.noExtensions"));const c=r.translate("intro",{installLink:_.createElement("a",{href:a==null?void 0:a.url,target:"_blank","aria-label":r.translate("introInstallCta")},r.translate("introInstallCta"))});return _.createElement("section",{className:`${Gm} ${qf?Km:""}`},Ua?null:_.createElement("p",{className:Wm},c),_.createElement("table",null,_.createElement("thead",null,_.createElement(ts,null,_.createElement("th",null,r.translate("extensionList.handle")),_.createElement("th",null,r.translate("extensionList.preview")),_.createElement("th",null,r.translate("extensionList.mobile")),_.createElement("th",null,r.translate("extensionList.status")))),_.createElement("tbody",null,_.createElement(hv,null),o.map(({uuid:u})=>_.createElement(kv,{key:u,uuid:u})))))}/**
|
|
35
35
|
* @remix-run/router v1.23.0
|
|
36
36
|
*
|
|
37
37
|
* Copyright (c) Remix Software Inc.
|
|
@@ -40,7 +40,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
40
40
|
* LICENSE.md file in the root directory of this source tree.
|
|
41
41
|
*
|
|
42
42
|
* @license MIT
|
|
43
|
-
*/function
|
|
43
|
+
*/function ni(){return ni=Object.assign?Object.assign.bind():function(r){for(var o=1;o<arguments.length;o++){var l=arguments[o];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(r[a]=l[a])}return r},ni.apply(this,arguments)}var Qt;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(Qt||(Qt={}));const bf="popstate";function Ry(r){r===void 0&&(r={});function o(a,c){let{pathname:u,search:f,hash:p}=a.location;return Ha("",{pathname:u,search:f,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function l(a,c){return typeof c=="string"?c:Ad(c)}return Iy(o,l,null,r)}function Qe(r,o){if(r===!1||r===null||typeof r>"u")throw new Error(o)}function Id(r,o){if(!r){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Dy(){return Math.random().toString(36).substr(2,8)}function Vf(r,o){return{usr:r.state,key:r.key,idx:o}}function Ha(r,o,l,a){return l===void 0&&(l=null),ni({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof o=="string"?ai(o):o,{state:l,key:o&&o.key||a||Dy()})}function Ad(r){let{pathname:o="/",search:l="",hash:a=""}=r;return l&&l!=="?"&&(o+=l.charAt(0)==="?"?l:"?"+l),a&&a!=="#"&&(o+=a.charAt(0)==="#"?a:"#"+a),o}function ai(r){let o={};if(r){let l=r.indexOf("#");l>=0&&(o.hash=r.substr(l),r=r.substr(0,l));let a=r.indexOf("?");a>=0&&(o.search=r.substr(a),r=r.substr(0,a)),r&&(o.pathname=r)}return o}function Iy(r,o,l,a){a===void 0&&(a={});let{window:c=document.defaultView,v5Compat:u=!1}=a,f=c.history,p=Qt.Pop,h=null,g=y();g==null&&(g=0,f.replaceState(ni({},f.state,{idx:g}),""));function y(){return(f.state||{idx:null}).idx}function S(){p=Qt.Pop;let N=y(),B=N==null?null:N-g;g=N,h&&h({action:p,location:I.location,delta:B})}function x(N,B){p=Qt.Push;let J=Ha(I.location,N,B);g=y()+1;let se=Vf(J,g),ee=I.createHref(J);try{f.pushState(se,"",ee)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;c.location.assign(ee)}u&&h&&h({action:p,location:I.location,delta:1})}function M(N,B){p=Qt.Replace;let J=Ha(I.location,N,B);g=y();let se=Vf(J,g),ee=I.createHref(J);f.replaceState(se,"",ee),u&&h&&h({action:p,location:I.location,delta:0})}function L(N){let B=c.location.origin!=="null"?c.location.origin:c.location.href,J=typeof N=="string"?N:Ad(N);return J=J.replace(/ $/,"%20"),Qe(B,"No window.location.(origin|href) available to create URL for href: "+J),new URL(J,B)}let I={get action(){return p},get location(){return r(c,f)},listen(N){if(h)throw new Error("A history only accepts one active listener");return c.addEventListener(bf,S),h=N,()=>{c.removeEventListener(bf,S),h=null}},createHref(N){return o(c,N)},createURL:L,encodeLocation(N){let B=L(N);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:x,replace:M,go(N){return f.go(N)}};return I}var Wf;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(Wf||(Wf={}));function Ay(r,o,l){return l===void 0&&(l="/"),Fy(r,o,l)}function Fy(r,o,l,a){let c=typeof o=="string"?ai(o):o,u=zd(c.pathname||"/",l);if(u==null)return null;let f=Fd(r);By(f);let p=null;for(let h=0;p==null&&h<f.length;++h){let g=Yy(u);p=Gy(f[h],g)}return p}function Fd(r,o,l,a){o===void 0&&(o=[]),l===void 0&&(l=[]),a===void 0&&(a="");let c=(u,f,p)=>{let h={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};h.relativePath.startsWith("/")&&(Qe(h.relativePath.startsWith(a),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(a.length));let g=Vn([a,h.relativePath]),y=l.concat(h);u.children&&u.children.length>0&&(Qe(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),Fd(u.children,o,y,g)),!(u.path==null&&!u.index)&&o.push({path:g,score:Vy(g,u.index),routesMeta:y})};return r.forEach((u,f)=>{var p;if(u.path===""||!((p=u.path)!=null&&p.includes("?")))c(u,f);else for(let h of Bd(u.path))c(u,f,h)}),o}function Bd(r){let o=r.split("/");if(o.length===0)return[];let[l,...a]=o,c=l.endsWith("?"),u=l.replace(/\?$/,"");if(a.length===0)return c?[u,""]:[u];let f=Bd(a.join("/")),p=[];return p.push(...f.map(h=>h===""?u:[u,h].join("/"))),c&&p.push(...f),p.map(h=>r.startsWith("/")&&h===""?"/":h)}function By(r){r.sort((o,l)=>o.score!==l.score?l.score-o.score:Wy(o.routesMeta.map(a=>a.childrenIndex),l.routesMeta.map(a=>a.childrenIndex)))}const zy=/^:[\w-]+$/,Uy=3,$y=2,jy=1,Hy=10,by=-2,Gf=r=>r==="*";function Vy(r,o){let l=r.split("/"),a=l.length;return l.some(Gf)&&(a+=by),o&&(a+=$y),l.filter(c=>!Gf(c)).reduce((c,u)=>c+(zy.test(u)?Uy:u===""?jy:Hy),a)}function Wy(r,o){return r.length===o.length&&r.slice(0,-1).every((a,c)=>a===o[c])?r[r.length-1]-o[o.length-1]:0}function Gy(r,o,l){let{routesMeta:a}=r,c={},u="/",f=[];for(let p=0;p<a.length;++p){let h=a[p],g=p===a.length-1,y=u==="/"?o:o.slice(u.length)||"/",S=Ky({path:h.relativePath,caseSensitive:h.caseSensitive,end:g},y),x=h.route;if(!S)return null;Object.assign(c,S.params),f.push({params:c,pathname:Vn([u,S.pathname]),pathnameBase:Xy(Vn([u,S.pathnameBase])),route:x}),S.pathnameBase!=="/"&&(u=Vn([u,S.pathnameBase]))}return f}function Ky(r,o){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[l,a]=Qy(r.path,r.caseSensitive,r.end),c=o.match(l);if(!c)return null;let u=c[0],f=u.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:a.reduce((g,y,S)=>{let{paramName:x,isOptional:M}=y;if(x==="*"){let I=p[S]||"";f=u.slice(0,u.length-I.length).replace(/(.)\/+$/,"$1")}const L=p[S];return M&&!L?g[x]=void 0:g[x]=(L||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:f,pattern:r}}function Qy(r,o,l){o===void 0&&(o=!1),l===void 0&&(l=!0),Id(r==="*"||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".'));let a=[],c="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,h)=>(a.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return r.endsWith("*")?(a.push({paramName:"*"}),c+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":r!==""&&r!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,o?void 0:"i"),a]}function Yy(r){try{return r.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Id(!1,'The URL path "'+r+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+o+").")),r}}function zd(r,o){if(o==="/")return r;if(!r.toLowerCase().startsWith(o.toLowerCase()))return null;let l=o.endsWith("/")?o.length-1:o.length,a=r.charAt(l);return a&&a!=="/"?null:r.slice(l)||"/"}const Vn=r=>r.join("/").replace(/\/\/+/g,"/"),Xy=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/");function Zy(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}const Ud=["post","put","patch","delete"];new Set(Ud);const qy=["get",...Ud];new Set(qy);/**
|
|
44
44
|
* React Router v6.30.1
|
|
45
45
|
*
|
|
46
46
|
* Copyright (c) Remix Software Inc.
|
|
@@ -49,7 +49,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
49
49
|
* LICENSE.md file in the root directory of this source tree.
|
|
50
50
|
*
|
|
51
51
|
* @license MIT
|
|
52
|
-
*/function
|
|
52
|
+
*/function ri(){return ri=Object.assign?Object.assign.bind():function(r){for(var o=1;o<arguments.length;o++){var l=arguments[o];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(r[a]=l[a])}return r},ri.apply(this,arguments)}const Jy=z.createContext(null),e1=z.createContext(null),$d=z.createContext(null),si=z.createContext(null),ui=z.createContext({outlet:null,matches:[],isDataRoute:!1}),jd=z.createContext(null);function os(){return z.useContext(si)!=null}function t1(){return os()||Qe(!1),z.useContext(si).location}function n1(r,o){return r1(r,o)}function r1(r,o,l,a){os()||Qe(!1);let{navigator:c}=z.useContext($d),{matches:u}=z.useContext(ui),f=u[u.length-1],p=f?f.params:{};f&&f.pathname;let h=f?f.pathnameBase:"/";f&&f.route;let g=t1(),y;if(o){var S;let N=typeof o=="string"?ai(o):o;h==="/"||(S=N.pathname)!=null&&S.startsWith(h)||Qe(!1),y=N}else y=g;let x=y.pathname||"/",M=x;if(h!=="/"){let N=h.replace(/^\//,"").split("/");M="/"+x.replace(/^\//,"").split("/").slice(N.length).join("/")}let L=Ay(r,{pathname:M}),I=s1(L&&L.map(N=>Object.assign({},N,{params:Object.assign({},p,N.params),pathname:Vn([h,c.encodeLocation?c.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?h:Vn([h,c.encodeLocation?c.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),u,l,a);return o&&I?z.createElement(si.Provider,{value:{location:ri({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Qt.Pop}},I):I}function o1(){let r=d1(),o=Zy(r)?r.status+" "+r.statusText:r instanceof Error?r.message:JSON.stringify(r),l=r instanceof Error?r.stack:null,c={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},o),l?z.createElement("pre",{style:c},l):null,null)}const i1=z.createElement(o1,null);class l1 extends z.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,l){return l.location!==o.location||l.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:l.error,location:l.location,revalidation:o.revalidation||l.revalidation}}componentDidCatch(o,l){console.error("React Router caught the following error during render",o,l)}render(){return this.state.error!==void 0?z.createElement(ui.Provider,{value:this.props.routeContext},z.createElement(jd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function a1(r){let{routeContext:o,match:l,children:a}=r,c=z.useContext(Jy);return c&&c.static&&c.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=l.route.id),z.createElement(ui.Provider,{value:o},a)}function s1(r,o,l,a){var c;if(o===void 0&&(o=[]),l===void 0&&(l=null),a===void 0&&(a=null),r==null){var u;if(!l)return null;if(l.errors)r=l.matches;else if((u=a)!=null&&u.v7_partialHydration&&o.length===0&&!l.initialized&&l.matches.length>0)r=l.matches;else return null}let f=r,p=(c=l)==null?void 0:c.errors;if(p!=null){let y=f.findIndex(S=>S.route.id&&(p==null?void 0:p[S.route.id])!==void 0);y>=0||Qe(!1),f=f.slice(0,Math.min(f.length,y+1))}let h=!1,g=-1;if(l&&a&&a.v7_partialHydration)for(let y=0;y<f.length;y++){let S=f[y];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(g=y),S.route.id){let{loaderData:x,errors:M}=l,L=S.route.loader&&x[S.route.id]===void 0&&(!M||M[S.route.id]===void 0);if(S.route.lazy||L){h=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}return f.reduceRight((y,S,x)=>{let M,L=!1,I=null,N=null;l&&(M=p&&S.route.id?p[S.route.id]:void 0,I=S.route.errorElement||i1,h&&(g<0&&x===0?(p1("route-fallback"),L=!0,N=null):g===x&&(L=!0,N=S.route.hydrateFallbackElement||null)));let B=o.concat(f.slice(0,x+1)),J=()=>{let se;return M?se=I:L?se=N:S.route.Component?se=z.createElement(S.route.Component,null):S.route.element?se=S.route.element:se=y,z.createElement(a1,{match:S,routeContext:{outlet:y,matches:B,isDataRoute:l!=null},children:se})};return l&&(S.route.ErrorBoundary||S.route.errorElement||x===0)?z.createElement(l1,{location:l.location,revalidation:l.revalidation,component:I,error:M,children:J(),routeContext:{outlet:null,matches:B,isDataRoute:!0}}):J()},null)}var Hd=(function(r){return r.UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r.UseRouteId="useRouteId",r})(Hd||{});function u1(r){let o=z.useContext(e1);return o||Qe(!1),o}function c1(r){let o=z.useContext(ui);return o||Qe(!1),o}function f1(r){let o=c1(),l=o.matches[o.matches.length-1];return l.route.id||Qe(!1),l.route.id}function d1(){var r;let o=z.useContext(jd),l=u1(Hd.UseRouteError),a=f1();return o!==void 0?o:(r=l.errors)==null?void 0:r[a]}const Kf={};function p1(r,o,l){Kf[r]||(Kf[r]=!0)}function h1(r,o){r==null||r.v7_startTransition,r==null||r.v7_relativeSplatPath}function bd(r){Qe(!1)}function m1(r){let{basename:o="/",children:l=null,location:a,navigationType:c=Qt.Pop,navigator:u,static:f=!1,future:p}=r;os()&&Qe(!1);let h=o.replace(/^\/*/,"/"),g=z.useMemo(()=>({basename:h,navigator:u,static:f,future:ri({v7_relativeSplatPath:!1},p)}),[h,p,u,f]);typeof a=="string"&&(a=ai(a));let{pathname:y="/",search:S="",hash:x="",state:M=null,key:L="default"}=a,I=z.useMemo(()=>{let N=zd(y,h);return N==null?null:{location:{pathname:N,search:S,hash:x,state:M,key:L},navigationType:c}},[h,y,S,x,M,L,c]);return I==null?null:z.createElement($d.Provider,{value:g},z.createElement(si.Provider,{children:l,value:I}))}function g1(r){let{children:o,location:l}=r;return n1(ba(o),l)}new Promise(()=>{});function ba(r,o){o===void 0&&(o=[]);let l=[];return z.Children.forEach(r,(a,c)=>{if(!z.isValidElement(a))return;let u=[...o,c];if(a.type===z.Fragment){l.push.apply(l,ba(a.props.children,u));return}a.type!==bd&&Qe(!1),!a.props.index||!a.props.children||Qe(!1);let f={id:a.props.id||u.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(f.children=ba(a.props.children,u)),l.push(f)}),l}/**
|
|
53
53
|
* React Router DOM v6.30.1
|
|
54
54
|
*
|
|
55
55
|
* Copyright (c) Remix Software Inc.
|
|
@@ -58,7 +58,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
58
58
|
* LICENSE.md file in the root directory of this source tree.
|
|
59
59
|
*
|
|
60
60
|
* @license MIT
|
|
61
|
-
*/const ev="6";try{window.__reactRouterVersion=ev}catch{}const tv="startTransition",Of=Fh[tv];function nv(r){let{basename:o,children:l,future:a,window:c}=r,u=z.useRef();u.current==null&&(u.current=mg({window:c,v5Compat:!0}));let f=u.current,[p,h]=z.useState({action:f.action,location:f.location}),{v7_startTransition:g}=a||{},y=z.useCallback(S=>{g&&Of?Of(()=>h(S)):h(S)},[h,g]);return z.useLayoutEffect(()=>f.listen(y),[f,y]),z.useEffect(()=>Zg(a),[a]),z.createElement(qg,{basename:o,children:l,location:p.location,navigationType:p.action,navigator:f,future:a})}var Lf;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(Lf||(Lf={}));var Mf;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(Mf||(Mf={}));const rv="_Intro_1aphs_1",ov="_ExtensionList_1aphs_9",iv="_isAppPreview_1aphs_23",lv="_Empty_1aphs_45",av="_Title_mda4k_1",sv="View mobile",uv={viewMobile:sv};function Ya(){const r=Hr(),o=r.state.store,l=r.state.app;return z.useMemo(()=>({store:o,app:l}),[JSON.stringify(l),o])}function Od(){const o=Hr().client.options;return z.useMemo(()=>o,[JSON.stringify(o)])}const cv="_Button_s4bwx_1",fv="_WithIcon_s4bwx_12",dv="_Icon_s4bwx_15",pv="_Icon_dakzz_1",hv="_Muted_dakzz_18",pa={Icon:pv,Muted:hv},mv="_VisuallyHidden_1p9uv_1",gv={VisuallyHidden:mv};function vv({children:r}){return _.createElement("span",{className:gv.VisuallyHidden},r)}function qe(...r){return r.filter(Boolean).join(" ")}function Ld({source:r,accessibilityLabel:o,muted:l=!1}){const a=r;return _.createElement(_.Fragment,null,_.createElement(vv,null,o),_.createElement("span",{className:pa.Icon},_.createElement(a,{className:qe(pa.Svg,l&&pa.Muted),focusable:"false","aria-hidden":"true"})))}function Md({className:r,selected:o,icon:l,children:a,...c}){const u=l?_.createElement("span",{className:dv},_.createElement(Ld,{source:l.source})):null;return _.createElement("button",{...c,className:qe(l&&fv,cv,r),"aria-pressed":o},l&&l.position==="left"&&u,_.createElement("span",null,a),l&&l.position==="right"&&u)}const yv="_IconButton_wwtfg_1",Ev="_Icon_wwtfg_1";function Xa({className:r,selected:o,source:l,accessibilityLabel:a,...c}){return _.createElement("button",{...c,className:qe(r,yv),"aria-pressed":o},_.createElement("span",{className:Ev},_.createElement(Ld,{source:l,accessibilityLabel:a})))}const wv="_Backdrop_1yvdu_9",Sv={Backdrop:wv};function Cv({onClick:r,setClosing:o}){const l=()=>{o(!0)},a=()=>{o(!1),r()};return _.createElement(_.Fragment,null,_.createElement("div",{className:Sv.Backdrop,onClick:r,onMouseDown:l,onMouseUp:a}))}const _v="Close modal",Tv={close:_v};function kv({pressed:r,onClick:o}){const[l]=mt({id:"ModalCloseButton",fallback:Tv});return _.createElement(Xa,{source:md,type:"button",onClick:o,selected:r,accessibilityLabel:l.translate("close")})}const xv="_Container_rwtbo_1",Pv="_Dialog_rwtbo_14",Ov="_Modal_rwtbo_18",Lv="_animateFadeUp_rwtbo_40",Mv="_entering_rwtbo_46",Nv="_exiting_rwtbo_46",Rv="_exited_rwtbo_46",Dv="_entered_rwtbo_50",$e={Container:xv,Dialog:Pv,Modal:Ov,"Width-large":"_Width-large_rwtbo_33","Width-small":"_Width-small_rwtbo_36",animateFadeUp:Lv,entering:Mv,exiting:Nv,exited:Rv,entered:Dv};function ti(){return ti=Object.assign?Object.assign.bind():function(r){for(var o=1;o<arguments.length;o++){var l=arguments[o];for(var a in l)({}).hasOwnProperty.call(l,a)&&(r[a]=l[a])}return r},ti.apply(null,arguments)}function Za(r,o){if(r==null)return{};var l={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(o.indexOf(a)!==-1)continue;l[a]=r[a]}return l}function Ba(r,o){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,a){return l.__proto__=a,l},Ba(r,o)}function qa(r,o){r.prototype=Object.create(o.prototype),r.prototype.constructor=r,Ba(r,o)}function Iv(r,o){return r.classList?!!o&&r.classList.contains(o):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+o+" ")!==-1}function Av(r,o){r.classList?r.classList.add(o):Iv(r,o)||(typeof r.className=="string"?r.className=r.className+" "+o:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+o))}function Nf(r,o){return r.replace(new RegExp("(^|\\s)"+o+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Fv(r,o){r.classList?r.classList.remove(o):typeof r.className=="string"?r.className=Nf(r.className,o):r.setAttribute("class",Nf(r.className&&r.className.baseVal||"",o))}const Rf={disabled:!1},ni=_.createContext(null);var Nd=function(o){return o.scrollTop},Fr="unmounted",sn="exited",un="entering",Hn="entered",za="exiting",kt=(function(r){qa(o,r);function o(a,c){var u;u=r.call(this,a,c)||this;var f=c,p=f&&!f.isMounting?a.enter:a.appear,h;return u.appearStatus=null,a.in?p?(h=sn,u.appearStatus=un):h=Hn:a.unmountOnExit||a.mountOnEnter?h=Fr:h=sn,u.state={status:h},u.nextCallback=null,u}o.getDerivedStateFromProps=function(c,u){var f=c.in;return f&&u.status===Fr?{status:sn}:null};var l=o.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(c){var u=null;if(c!==this.props){var f=this.state.status;this.props.in?f!==un&&f!==Hn&&(u=un):(f===un||f===Hn)&&(u=za)}this.updateStatus(!1,u)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var c=this.props.timeout,u,f,p;return u=f=p=c,c!=null&&typeof c!="number"&&(u=c.exit,f=c.enter,p=c.appear!==void 0?c.appear:f),{exit:u,enter:f,appear:p}},l.updateStatus=function(c,u){if(c===void 0&&(c=!1),u!==null)if(this.cancelNextCallback(),u===un){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this);f&&Nd(f)}this.performEnter(c)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sn&&this.setState({status:Fr})},l.performEnter=function(c){var u=this,f=this.props.enter,p=this.context?this.context.isMounting:c,h=this.props.nodeRef?[p]:[Ar.findDOMNode(this),p],g=h[0],y=h[1],S=this.getTimeouts(),x=p?S.appear:S.enter;if(!c&&!f||Rf.disabled){this.safeSetState({status:Hn},function(){u.props.onEntered(g)});return}this.props.onEnter(g,y),this.safeSetState({status:un},function(){u.props.onEntering(g,y),u.onTransitionEnd(x,function(){u.safeSetState({status:Hn},function(){u.props.onEntered(g,y)})})})},l.performExit=function(){var c=this,u=this.props.exit,f=this.getTimeouts(),p=this.props.nodeRef?void 0:Ar.findDOMNode(this);if(!u||Rf.disabled){this.safeSetState({status:sn},function(){c.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:za},function(){c.props.onExiting(p),c.onTransitionEnd(f.exit,function(){c.safeSetState({status:sn},function(){c.props.onExited(p)})})})},l.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(c,u){u=this.setNextCallback(u),this.setState(c,u)},l.setNextCallback=function(c){var u=this,f=!0;return this.nextCallback=function(p){f&&(f=!1,u.nextCallback=null,c(p))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},l.onTransitionEnd=function(c,u){this.setNextCallback(u);var f=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this),p=c==null&&!this.props.addEndListener;if(!f||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],g=h[0],y=h[1];this.props.addEndListener(g,y)}c!=null&&setTimeout(this.nextCallback,c)},l.render=function(){var c=this.state.status;if(c===Fr)return null;var u=this.props,f=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var p=Za(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(ni.Provider,{value:null},typeof f=="function"?f(c,p):_.cloneElement(_.Children.only(f),p))},o})(_.Component);kt.contextType=ni;kt.propTypes={};function jn(){}kt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jn,onEntering:jn,onEntered:jn,onExit:jn,onExiting:jn,onExited:jn};kt.UNMOUNTED=Fr;kt.EXITED=sn;kt.ENTERING=un;kt.ENTERED=Hn;kt.EXITING=za;var Bv=function(o,l){return o&&l&&l.split(" ").forEach(function(a){return Av(o,a)})},ha=function(o,l){return o&&l&&l.split(" ").forEach(function(a){return Fv(o,a)})},Ja=(function(r){qa(o,r);function o(){for(var a,c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return a=r.call.apply(r,[this].concat(u))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(p,h){var g=a.resolveArguments(p,h),y=g[0],S=g[1];a.removeClasses(y,"exit"),a.addClass(y,S?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(p,h)},a.onEntering=function(p,h){var g=a.resolveArguments(p,h),y=g[0],S=g[1],x=S?"appear":"enter";a.addClass(y,x,"active"),a.props.onEntering&&a.props.onEntering(p,h)},a.onEntered=function(p,h){var g=a.resolveArguments(p,h),y=g[0],S=g[1],x=S?"appear":"enter";a.removeClasses(y,x),a.addClass(y,x,"done"),a.props.onEntered&&a.props.onEntered(p,h)},a.onExit=function(p){var h=a.resolveArguments(p),g=h[0];a.removeClasses(g,"appear"),a.removeClasses(g,"enter"),a.addClass(g,"exit","base"),a.props.onExit&&a.props.onExit(p)},a.onExiting=function(p){var h=a.resolveArguments(p),g=h[0];a.addClass(g,"exit","active"),a.props.onExiting&&a.props.onExiting(p)},a.onExited=function(p){var h=a.resolveArguments(p),g=h[0];a.removeClasses(g,"exit"),a.addClass(g,"exit","done"),a.props.onExited&&a.props.onExited(p)},a.resolveArguments=function(p,h){return a.props.nodeRef?[a.props.nodeRef.current,p]:[p,h]},a.getClassNames=function(p){var h=a.props.classNames,g=typeof h=="string",y=g&&h?h+"-":"",S=g?""+y+p:h[p],x=g?S+"-active":h[p+"Active"],M=g?S+"-done":h[p+"Done"];return{baseClassName:S,activeClassName:x,doneClassName:M}},a}var l=o.prototype;return l.addClass=function(c,u,f){var p=this.getClassNames(u)[f+"ClassName"],h=this.getClassNames("enter"),g=h.doneClassName;u==="appear"&&f==="done"&&g&&(p+=" "+g),f==="active"&&c&&Nd(c),p&&(this.appliedClasses[u][f]=p,Bv(c,p))},l.removeClasses=function(c,u){var f=this.appliedClasses[u],p=f.base,h=f.active,g=f.done;this.appliedClasses[u]={},p&&ha(c,p),h&&ha(c,h),g&&ha(c,g)},l.render=function(){var c=this.props;c.classNames;var u=Za(c,["classNames"]);return _.createElement(kt,ti({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},o})(_.Component);Ja.defaultProps={classNames:""};Ja.propTypes={};function zv(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function es(r,o){var l=function(u){return o&&z.isValidElement(u)?o(u):u},a=Object.create(null);return r&&z.Children.map(r,function(c){return c}).forEach(function(c){a[c.key]=l(c)}),a}function Uv(r,o){r=r||{},o=o||{};function l(y){return y in o?o[y]:r[y]}var a=Object.create(null),c=[];for(var u in r)u in o?c.length&&(a[u]=c,c=[]):c.push(u);var f,p={};for(var h in o){if(a[h])for(f=0;f<a[h].length;f++){var g=a[h][f];p[a[h][f]]=l(g)}p[h]=l(h)}for(f=0;f<c.length;f++)p[c[f]]=l(c[f]);return p}function fn(r,o,l){return l[o]!=null?l[o]:r.props[o]}function $v(r,o){return es(r.children,function(l){return z.cloneElement(l,{onExited:o.bind(null,l),in:!0,appear:fn(l,"appear",r),enter:fn(l,"enter",r),exit:fn(l,"exit",r)})})}function jv(r,o,l){var a=es(r.children),c=Uv(o,a);return Object.keys(c).forEach(function(u){var f=c[u];if(z.isValidElement(f)){var p=u in o,h=u in a,g=o[u],y=z.isValidElement(g)&&!g.props.in;h&&(!p||y)?c[u]=z.cloneElement(f,{onExited:l.bind(null,f),in:!0,exit:fn(f,"exit",r),enter:fn(f,"enter",r)}):!h&&p&&!y?c[u]=z.cloneElement(f,{in:!1}):h&&p&&z.isValidElement(g)&&(c[u]=z.cloneElement(f,{onExited:l.bind(null,f),in:g.props.in,exit:fn(f,"exit",r),enter:fn(f,"enter",r)}))}}),c}var Hv=Object.values||function(r){return Object.keys(r).map(function(o){return r[o]})},bv={component:"div",childFactory:function(o){return o}},ts=(function(r){qa(o,r);function o(a,c){var u;u=r.call(this,a,c)||this;var f=u.handleExited.bind(zv(u));return u.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},u}var l=o.prototype;return l.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},l.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(c,u){var f=u.children,p=u.handleExited,h=u.firstRender;return{children:h?$v(c,p):jv(c,f,p),firstRender:!1}},l.handleExited=function(c,u){var f=es(this.props.children);c.key in f||(c.props.onExited&&c.props.onExited(u),this.mounted&&this.setState(function(p){var h=ti({},p.children);return delete h[c.key],{children:h}}))},l.render=function(){var c=this.props,u=c.component,f=c.childFactory,p=Za(c,["component","childFactory"]),h=this.state.contextValue,g=Hv(this.state.children).map(f);return delete p.appear,delete p.enter,delete p.exit,u===null?_.createElement(ni.Provider,{value:h},g):_.createElement(ni.Provider,{value:h},_.createElement(u,p,g))},o})(_.Component);ts.propTypes={};ts.defaultProps=bv;function Vv(r,o=!0){var l;(l=Wv(r,o))==null||l.focus()}function Wv(r,o=!0){const l='a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled):not([aria-disabled="true"]):not([tabindex="-1"]),*[tabindex]';return!o&&Gv(r,l)?r:r.querySelector(l)}function Gv(r,o){if(r.matches)return r.matches(o);const l=(r.ownerDocument||document).querySelectorAll(o);let a=l.length;for(;--a>=0&&l.item(a)!==r;)return a>-1}function Kv({labelledBy:r,children:o,onClose:l,setClosing:a,width:c,...u}){const f=z.useRef(null),p=z.useCallback(()=>{f.current&&!f.current.contains(document.activeElement)&&Vv(f.current)},[]),h=y=>{y.keyCode===27&&a(!0)},g=y=>{y.keyCode===27&&(a(!1),l())};return z.useLayoutEffect(p,[]),z.useLayoutEffect(()=>(document.addEventListener("keydown",h),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",g)}),[]),_.createElement(Ja,{classNames:Qv,nodeRef:f,mountOnEnter:!0,unmountOnExit:!0,timeout:200,...u},_.createElement("div",{className:$e.Container,ref:f},_.createElement("div",{role:"dialog","aria-modal":!0,"aria-labelledby":r,tabIndex:-1,className:$e.Dialog},_.createElement("div",{className:qe($e.Modal,$e[`Width-${c}`])},o))))}const Qv={appear:qe($e.animateFadeUp,$e.entering),appearActive:qe($e.animateFadeUp,$e.entered),enter:qe($e.animateFadeUp,$e.entering),enterActive:qe($e.animateFadeUp,$e.entered),exit:qe($e.animateFadeUp,$e.exiting),exitActive:qe($e.animateFadeUp,$e.exited)},Yv="_Header_rltzr_1",Xv="_Title_rltzr_10",Df={Header:Yv,Title:Xv};function Zv({id:r,closing:o,children:l,onClose:a}){return _.createElement("div",{className:Df.Header},_.createElement("div",{id:r,className:Df.Title},_.createElement("h2",null,l)),_.createElement(kv,{pressed:o,onClick:a}))}const qv="_BodyWrapper_11cpl_1",Jv={BodyWrapper:qv},Ua="modal-container";function ey(){return _.createElement("div",{id:Ua})}function ty({children:r,title:o,open:l,onClose:a,width:c="large"}){const[u,f]=z.useState(!1);let p,h;l&&(p=_.createElement(Kv,{labelledBy:"modal-header",onClose:a,setClosing:f,in:l,width:c},_.createElement(Zv,{id:"modal-header",closing:u,onClose:a},o),_.createElement("div",{className:Jv.BodyWrapper},r)),h=_.createElement(Cv,{setClosing:f,onClick:a}));const g=document.getElementById(Ua);return g===null?(l&&console.error(`Could not find element with id ${Ua} to render Modal inside`),null):vd.createPortal(_.createElement(_.Fragment,null,_.createElement(ts,{appear:!0,enter:!0,exit:!0},p),h),g)}function ny(){const[r,o]=z.useState(!1),[l]=mt({id:"AppHomeRow",fallback:uv}),{surface:a}=Od(),{app:c}=Ya();if(!c)return null;const u=a==="admin"&&c.handle?`/admin/apps/${c.handle}`:void 0;return _.createElement(ns,null,_.createElement("td",null,_.createElement("span",{className:av},c.title)),_.createElement("td",null,_.createElement(ba,{resourceUrl:u,rootUrl:c.url,title:"App home"})),_.createElement("td",null,_.createElement(Md,{type:"button",onClick:()=>o(!0)},l.translate("viewMobile")),_.createElement(jd,{code:r?{url:c.url,type:"home",title:c.title}:void 0,onClose:()=>o(!1)})),_.createElement("td",null,_.createElement(Rd,null)))}const ry="_Title_mda4k_1",oy="View mobile",iy={viewMobile:oy},ly="_PreviewLinksTitle_w3znb_1",ay="_PreviewLinks_w3znb_1",sy="Extension targets",uy={previewLinksTitle:sy};function cy({extension:r,isUnifiedPOSUI:o}){var a;const[l]=mt({id:"PreviewLinks",fallback:uy});if(r.surface==="point_of_sale")return _.createElement(Rd,null);if(r.type==="ui_extension"||r.type==="checkout_post_purchase"){const c=r.extensionPoints&&r.extensionPoints.length>1,u=c?_.createElement("span",{className:ly},l.translate("previewLinksTitle"),":"):null;return _.createElement(_.Fragment,null,u,_.createElement("span",{className:qe(c&&ay)},(a=r.extensionPoints)==null?void 0:a.map(f=>{if(typeof f=="string")return null;const{root:p,target:h,resource:g}=f;return _.createElement(ba,{rootUrl:p.url,title:r.type==="checkout_post_purchase"?"checkout post-purchase":h,key:h,resourceUrl:g.url,hasLink:!o})})))}return _.createElement(ba,{rootUrl:r.development.root.url,resourceUrl:r.development.resource.url,title:r.type.replaceAll("_"," ")})}function fy(r){const o=Hr(),l=o.state.extensions,a=l.find(c=>c.uuid===r);return z.useMemo(()=>({extension:a,focus:()=>o.client.emit("focus",[{uuid:r}]),unfocus:()=>o.client.emit("unfocus"),navigate:c=>o.client.emit("navigate",{url:c})}),[JSON.stringify(l)])}function $a(r){var o;return(o=r.extensionPoints)==null?void 0:o.some(l=>l.surface==="point_of_sale")}function dy(r){return Ia(r)?$a(r):r.surface==="point_of_sale"||r.surface==="admin"}function py({uuid:r}){const[o,l]=z.useState(!1),[a]=mt({id:"ExtensionRow",fallback:iy}),{focus:c,unfocus:u,extension:f}=fy(r);return f?_.createElement(ns,{onMouseEnter:c,onMouseLeave:u},_.createElement("td",null,_.createElement("span",{className:ry},f.handle)),_.createElement("td",null,_.createElement(cy,{extension:f,isUnifiedPOSUI:$a(f)})),_.createElement("td",null,dy(f)&&_.createElement(Md,{id:"showQRCodeModalButton",type:"button",onClick:()=>l(!0)},a.translate("viewMobile")),_.createElement(jd,{code:o?{url:f.development.root.url,type:$a(f)?"point_of_sale":f.surface,title:f.handle}:void 0,onClose:()=>l(!1)})),_.createElement("td",null,_.createElement(c1,{status:f.development.status}))):null}const hy="_NotApplicable_d2d93_1";function Rd(){return _.createElement("span",{className:hy},"--")}const my="_PreviewLink_18l39_1",gy={success:"URL copied",error:"Couldn't copy URL"},vy="Preview {title}",yy="Copy preview link for {title} to clipboard",Ey={copy:gy,linkLabel:vy,iconLabel:yy};function wy(){const r=Hr();return z.useMemo(()=>o=>r.client.emit("navigate",{url:o}),[r.client.emit])}function Dd(r){var o,l,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r))for(o=0;o<r.length;o++)r[o]&&(l=Dd(r[o]))&&(a&&(a+=" "),a+=l);else for(o in r)r[o]&&(a&&(a+=" "),a+=o);return a}function Qt(){for(var r,o,l=0,a="";l<arguments.length;)(r=arguments[l++])&&(o=Dd(r))&&(a&&(a+=" "),a+=o);return a}const Ur=r=>typeof r=="number"&&!isNaN(r),dn=r=>typeof r=="string",Ke=r=>typeof r=="function",Xo=r=>dn(r)||Ke(r)?r:null,ma=r=>z.isValidElement(r)||dn(r)||Ke(r)||Ur(r);function Sy(r,o,l){l===void 0&&(l=300);const{scrollHeight:a,style:c}=r;requestAnimationFrame(()=>{c.minHeight="initial",c.height=a+"px",c.transition=`all ${l}ms`,requestAnimationFrame(()=>{c.height="0",c.padding="0",c.margin="0",setTimeout(o,l)})})}function si(r){let{enter:o,exit:l,appendPosition:a=!1,collapse:c=!0,collapseDuration:u=300}=r;return function(f){let{children:p,position:h,preventExitTransition:g,done:y,nodeRef:S,isIn:x}=f;const M=a?`${o}--${h}`:o,L=a?`${l}--${h}`:l,I=z.useRef(0);return z.useLayoutEffect(()=>{const N=S.current,B=M.split(" "),J=se=>{se.target===S.current&&(N.dispatchEvent(new Event("d")),N.removeEventListener("animationend",J),N.removeEventListener("animationcancel",J),I.current===0&&se.type!=="animationcancel"&&N.classList.remove(...B))};N.classList.add(...B),N.addEventListener("animationend",J),N.addEventListener("animationcancel",J)},[]),z.useEffect(()=>{const N=S.current,B=()=>{N.removeEventListener("animationend",B),c?Sy(N,y,u):y()};x||(g?B():(I.current=1,N.className+=` ${L}`,N.addEventListener("animationend",B)))},[x]),_.createElement(_.Fragment,null,p)}}function If(r,o){return r!=null?{content:r.content,containerId:r.props.containerId,id:r.props.toastId,theme:r.props.theme,type:r.props.type,data:r.props.data||{},isLoading:r.props.isLoading,icon:r.props.icon,status:o}:{}}const ot={list:new Map,emitQueue:new Map,on(r,o){return this.list.has(r)||this.list.set(r,[]),this.list.get(r).push(o),this},off(r,o){if(o){const l=this.list.get(r).filter(a=>a!==o);return this.list.set(r,l),this}return this.list.delete(r),this},cancelEmit(r){const o=this.emitQueue.get(r);return o&&(o.forEach(clearTimeout),this.emitQueue.delete(r)),this},emit(r){this.list.has(r)&&this.list.get(r).forEach(o=>{const l=setTimeout(()=>{o(...[].slice.call(arguments,1))},0);this.emitQueue.has(r)||this.emitQueue.set(r,[]),this.emitQueue.get(r).push(l)})}},Ko=r=>{let{theme:o,type:l,...a}=r;return _.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:o==="colored"?"currentColor":`var(--toastify-icon-color-${l})`,...a})},ga={info:function(r){return _.createElement(Ko,{...r},_.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(r){return _.createElement(Ko,{...r},_.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(r){return _.createElement(Ko,{...r},_.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(r){return _.createElement(Ko,{...r},_.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return _.createElement("div",{className:"Toastify__spinner"})}};function Cy(r){const[,o]=z.useReducer(M=>M+1,0),[l,a]=z.useState([]),c=z.useRef(null),u=z.useRef(new Map).current,f=M=>l.indexOf(M)!==-1,p=z.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:r,containerId:null,isToastActive:f,getToast:M=>u.get(M)}).current;function h(M){let{containerId:L}=M;const{limit:I}=p.props;!I||L&&p.containerId!==L||(p.count-=p.queue.length,p.queue=[])}function g(M){a(L=>M==null?[]:L.filter(I=>I!==M))}function y(){const{toastContent:M,toastProps:L,staleId:I}=p.queue.shift();x(M,L,I)}function S(M,L){let{delay:I,staleId:N,...B}=L;if(!ma(M)||(function(he){return!c.current||p.props.enableMultiContainer&&he.containerId!==p.props.containerId||u.has(he.toastId)&&he.updateId==null})(B))return;const{toastId:J,updateId:se,data:ee}=B,{props:ne}=p,me=()=>g(J),ve=se==null;ve&&p.count++;const de={...ne,style:ne.toastStyle,key:p.toastKey++,...Object.fromEntries(Object.entries(B).filter(he=>{let[H,R]=he;return R!=null})),toastId:J,updateId:se,data:ee,closeToast:me,isIn:!1,className:Xo(B.className||ne.toastClassName),bodyClassName:Xo(B.bodyClassName||ne.bodyClassName),progressClassName:Xo(B.progressClassName||ne.progressClassName),autoClose:!B.isLoading&&(Se=B.autoClose,we=ne.autoClose,Se===!1||Ur(Se)&&Se>0?Se:we),deleteToast(){const he=If(u.get(J),"removed");u.delete(J),ot.emit(4,he);const H=p.queue.length;if(p.count=J==null?p.count-p.displayedToast:p.count-1,p.count<0&&(p.count=0),H>0){const R=J==null?p.props.limit:1;if(H===1||R===1)p.displayedToast++,y();else{const j=R>H?H:R;p.displayedToast=j;for(let D=0;D<j;D++)y()}}else o()}};var Se,we;de.iconOut=(function(he){let{theme:H,type:R,isLoading:j,icon:D}=he,w=null;const P={theme:H,type:R};return D===!1||(Ke(D)?w=D(P):z.isValidElement(D)?w=z.cloneElement(D,P):dn(D)||Ur(D)?w=D:j?w=ga.spinner():(K=>K in ga)(R)&&(w=ga[R](P))),w})(de),Ke(B.onOpen)&&(de.onOpen=B.onOpen),Ke(B.onClose)&&(de.onClose=B.onClose),de.closeButton=ne.closeButton,B.closeButton===!1||ma(B.closeButton)?de.closeButton=B.closeButton:B.closeButton===!0&&(de.closeButton=!ma(ne.closeButton)||ne.closeButton);let Ne=M;z.isValidElement(M)&&!dn(M.type)?Ne=z.cloneElement(M,{closeToast:me,toastProps:de,data:ee}):Ke(M)&&(Ne=M({closeToast:me,toastProps:de,data:ee})),ne.limit&&ne.limit>0&&p.count>ne.limit&&ve?p.queue.push({toastContent:Ne,toastProps:de,staleId:N}):Ur(I)?setTimeout(()=>{x(Ne,de,N)},I):x(Ne,de,N)}function x(M,L,I){const{toastId:N}=L;I&&u.delete(I);const B={content:M,props:L};u.set(N,B),a(J=>[...J,N].filter(se=>se!==I)),ot.emit(4,If(B,B.props.updateId==null?"added":"updated"))}return z.useEffect(()=>(p.containerId=r.containerId,ot.cancelEmit(3).on(0,S).on(1,M=>c.current&&g(M)).on(5,h).emit(2,p),()=>{u.clear(),ot.emit(3,p)}),[]),z.useEffect(()=>{p.props=r,p.isToastActive=f,p.displayedToast=l.length}),{getToastToRender:function(M){const L=new Map,I=Array.from(u.values());return r.newestOnTop&&I.reverse(),I.forEach(N=>{const{position:B}=N.props;L.has(B)||L.set(B,[]),L.get(B).push(N)}),Array.from(L,N=>M(N[0],N[1]))},containerRef:c,isToastActive:f}}function Af(r){return r.targetTouches&&r.targetTouches.length>=1?r.targetTouches[0].clientX:r.clientX}function Ff(r){return r.targetTouches&&r.targetTouches.length>=1?r.targetTouches[0].clientY:r.clientY}function _y(r){const[o,l]=z.useState(!1),[a,c]=z.useState(!1),u=z.useRef(null),f=z.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,p=z.useRef(r),{autoClose:h,pauseOnHover:g,closeToast:y,onClick:S,closeOnClick:x}=r;function M(ee){if(r.draggable){ee.nativeEvent.type==="touchstart"&&ee.nativeEvent.preventDefault(),f.didMove=!1,document.addEventListener("mousemove",B),document.addEventListener("mouseup",J),document.addEventListener("touchmove",B),document.addEventListener("touchend",J);const ne=u.current;f.canCloseOnClick=!0,f.canDrag=!0,f.boundingRect=ne.getBoundingClientRect(),ne.style.transition="",f.x=Af(ee.nativeEvent),f.y=Ff(ee.nativeEvent),r.draggableDirection==="x"?(f.start=f.x,f.removalDistance=ne.offsetWidth*(r.draggablePercent/100)):(f.start=f.y,f.removalDistance=ne.offsetHeight*(r.draggablePercent===80?1.5*r.draggablePercent:r.draggablePercent/100))}}function L(ee){if(f.boundingRect){const{top:ne,bottom:me,left:ve,right:de}=f.boundingRect;ee.nativeEvent.type!=="touchend"&&r.pauseOnHover&&f.x>=ve&&f.x<=de&&f.y>=ne&&f.y<=me?N():I()}}function I(){l(!0)}function N(){l(!1)}function B(ee){const ne=u.current;f.canDrag&&ne&&(f.didMove=!0,o&&N(),f.x=Af(ee),f.y=Ff(ee),f.delta=r.draggableDirection==="x"?f.x-f.start:f.y-f.start,f.start!==f.x&&(f.canCloseOnClick=!1),ne.style.transform=`translate${r.draggableDirection}(${f.delta}px)`,ne.style.opacity=""+(1-Math.abs(f.delta/f.removalDistance)))}function J(){document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",J),document.removeEventListener("touchmove",B),document.removeEventListener("touchend",J);const ee=u.current;if(f.canDrag&&f.didMove&&ee){if(f.canDrag=!1,Math.abs(f.delta)>f.removalDistance)return c(!0),void r.closeToast();ee.style.transition="transform 0.2s, opacity 0.2s",ee.style.transform=`translate${r.draggableDirection}(0)`,ee.style.opacity="1"}}z.useEffect(()=>{p.current=r}),z.useEffect(()=>(u.current&&u.current.addEventListener("d",I,{once:!0}),Ke(r.onOpen)&&r.onOpen(z.isValidElement(r.children)&&r.children.props),()=>{const ee=p.current;Ke(ee.onClose)&&ee.onClose(z.isValidElement(ee.children)&&ee.children.props)}),[]),z.useEffect(()=>(r.pauseOnFocusLoss&&(document.hasFocus()||N(),window.addEventListener("focus",I),window.addEventListener("blur",N)),()=>{r.pauseOnFocusLoss&&(window.removeEventListener("focus",I),window.removeEventListener("blur",N))}),[r.pauseOnFocusLoss]);const se={onMouseDown:M,onTouchStart:M,onMouseUp:L,onTouchEnd:L};return h&&g&&(se.onMouseEnter=N,se.onMouseLeave=I),x&&(se.onClick=ee=>{S&&S(ee),f.canCloseOnClick&&y()}),{playToast:I,pauseToast:N,isRunning:o,preventExitTransition:a,toastRef:u,eventHandlers:se}}function Id(r){let{closeToast:o,theme:l,ariaLabel:a="close"}=r;return _.createElement("button",{className:`Toastify__close-button Toastify__close-button--${l}`,type:"button",onClick:c=>{c.stopPropagation(),o(c)},"aria-label":a},_.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},_.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Ty(r){let{delay:o,isRunning:l,closeToast:a,type:c="default",hide:u,className:f,style:p,controlledProgress:h,progress:g,rtl:y,isIn:S,theme:x}=r;const M=u||h&&g===0,L={...p,animationDuration:`${o}ms`,animationPlayState:l?"running":"paused",opacity:M?0:1};h&&(L.transform=`scaleX(${g})`);const I=Qt("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${x}`,`Toastify__progress-bar--${c}`,{"Toastify__progress-bar--rtl":y}),N=Ke(f)?f({rtl:y,type:c,defaultClassName:I}):Qt(I,f);return _.createElement("div",{role:"progressbar","aria-hidden":M?"true":"false","aria-label":"notification timer",className:N,style:L,[h&&g>=1?"onTransitionEnd":"onAnimationEnd"]:h&&g<1?null:()=>{S&&a()}})}const ky=r=>{const{isRunning:o,preventExitTransition:l,toastRef:a,eventHandlers:c}=_y(r),{closeButton:u,children:f,autoClose:p,onClick:h,type:g,hideProgressBar:y,closeToast:S,transition:x,position:M,className:L,style:I,bodyClassName:N,bodyStyle:B,progressClassName:J,progressStyle:se,updateId:ee,role:ne,progress:me,rtl:ve,toastId:de,deleteToast:Se,isIn:we,isLoading:Ne,iconOut:he,closeOnClick:H,theme:R}=r,j=Qt("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":ve},{"Toastify__toast--close-on-click":H}),D=Ke(L)?L({rtl:ve,position:M,type:g,defaultClassName:j}):Qt(j,L),w=!!me||!p,P={closeToast:S,type:g,theme:R};let K=null;return u===!1||(K=Ke(u)?u(P):z.isValidElement(u)?z.cloneElement(u,P):Id(P)),_.createElement(x,{isIn:we,done:Se,position:M,preventExitTransition:l,nodeRef:a},_.createElement("div",{id:de,onClick:h,className:D,...c,style:I,ref:a},_.createElement("div",{...we&&{role:ne},className:Ke(N)?N({type:g}):Qt("Toastify__toast-body",N),style:B},he!=null&&_.createElement("div",{className:Qt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ne})},he),_.createElement("div",null,f)),K,_.createElement(Ty,{...ee&&!w?{key:`pb-${ee}`}:{},rtl:ve,theme:R,delay:p,isRunning:o,isIn:we,closeToast:S,hide:y,type:g,style:se,className:J,controlledProgress:w,progress:me||0})))},ui=function(r,o){return o===void 0&&(o=!1),{enter:`Toastify--animate Toastify__${r}-enter`,exit:`Toastify--animate Toastify__${r}-exit`,appendPosition:o}},xy=si(ui("bounce",!0));si(ui("slide",!0));si(ui("zoom"));si(ui("flip"));const ja=z.forwardRef((r,o)=>{const{getToastToRender:l,containerRef:a,isToastActive:c}=Cy(r),{className:u,style:f,rtl:p,containerId:h}=r;function g(y){const S=Qt("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":p});return Ke(u)?u({position:y,rtl:p,defaultClassName:S}):Qt(S,Xo(u))}return z.useEffect(()=>{o&&(o.current=a.current)},[]),_.createElement("div",{ref:a,className:"Toastify",id:h},l((y,S)=>{const x=S.length?{...f}:{...f,pointerEvents:"none"};return _.createElement("div",{className:g(y),style:x,key:`container-${y}`},S.map((M,L)=>{let{content:I,props:N}=M;return _.createElement(ky,{...N,isIn:c(N.toastId),style:{...N.style,"--nth":L+1,"--len":S.length},key:`toast-${N.key}`},I)}))}))});ja.displayName="ToastContainer",ja.defaultProps={position:"top-right",transition:xy,autoClose:5e3,closeButton:Id,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let va,cn=new Map,Br=[],Py=1;function Ad(){return""+Py++}function Oy(r){return r&&(dn(r.toastId)||Ur(r.toastId))?r.toastId:Ad()}function $r(r,o){return cn.size>0?ot.emit(0,r,o):Br.push({content:r,options:o}),o.toastId}function ri(r,o){return{...o,type:o&&o.type||r,toastId:Oy(o)}}function Qo(r){return(o,l)=>$r(o,ri(r,l))}function Te(r,o){return $r(r,ri("default",o))}Te.loading=(r,o)=>$r(r,ri("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...o})),Te.promise=function(r,o,l){let a,{pending:c,error:u,success:f}=o;c&&(a=dn(c)?Te.loading(c,l):Te.loading(c.render,{...l,...c}));const p={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(y,S,x)=>{if(S==null)return void Te.dismiss(a);const M={type:y,...p,...l,data:x},L=dn(S)?{render:S}:S;return a?Te.update(a,{...M,...L}):Te(L.render,{...M,...L}),x},g=Ke(r)?r():r;return g.then(y=>h("success",f,y)).catch(y=>h("error",u,y)),g},Te.success=Qo("success"),Te.info=Qo("info"),Te.error=Qo("error"),Te.warning=Qo("warning"),Te.warn=Te.warning,Te.dark=(r,o)=>$r(r,ri("default",{theme:"dark",...o})),Te.dismiss=r=>{cn.size>0?ot.emit(1,r):Br=Br.filter(o=>r!=null&&o.options.toastId!==r)},Te.clearWaitingQueue=function(r){return r===void 0&&(r={}),ot.emit(5,r)},Te.isActive=r=>{let o=!1;return cn.forEach(l=>{l.isToastActive&&l.isToastActive(r)&&(o=!0)}),o},Te.update=function(r,o){o===void 0&&(o={}),setTimeout(()=>{const l=(function(a,c){let{containerId:u}=c;const f=cn.get(u||va);return f&&f.getToast(a)})(r,o);if(l){const{props:a,content:c}=l,u={delay:100,...a,...o,toastId:o.toastId||r,updateId:Ad()};u.toastId!==r&&(u.staleId=r);const f=u.render||c;delete u.render,$r(f,u)}},0)},Te.done=r=>{Te.update(r,{progress:1})},Te.onChange=r=>(ot.on(4,r),()=>{ot.off(4,r)}),Te.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Te.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ot.on(2,r=>{va=r.containerId||r,cn.set(va,r),Br.forEach(o=>{ot.emit(0,o.content,o.options)}),Br=[]}).on(3,r=>{cn.delete(r.containerId||r),cn.size===0&&ot.off(0).off(1).off(5)});const Ha=window.top&&new URLSearchParams(location.search).get("embedded")==="true";function ba({rootUrl:r,resourceUrl:o,title:l,hasLink:a=!0}){const[c]=mt({id:"PreviewLink",fallback:Ey}),u=wy(),f=h=>{Ha&&o&&(u(o),h.preventDefault())};function p(){navigator.clipboard.writeText(r).then(()=>{Te(c.translate("copy.success"),{toastId:`copy-${r}`})}).catch(()=>{Te(c.translate("copy.error"),{type:"error",toastId:`copy-${r}-error`})})}return _.createElement("span",{className:my},a?_.createElement("a",{href:r,target:Ha?"_top":"_blank","aria-label":c.translate("linkLabel",{title:l}),onClick:f},l):l,_.createElement(Xa,{type:"button",onClick:()=>p(),source:Ka,accessibilityLabel:c.translate("iconLabel",{title:l})}))}const Ly="View your work on mobile",My={one:"Scan with your phone camera to see your work",two:"Or copy the URL to share:"},Ny={copy:"Copy link",copied:"Link copied",content:"Scan to test {title} on mobile"},Fd={title:Ly,right:My,qrcode:Ny},Ry="_Wrapper_1tz7v_1",Dy="_LeftColumn_1tz7v_6",Iy="_QRCode_1tz7v_15",Ay="_RightColumn_1tz7v_21",Fy="_UrlCta_1tz7v_29";var ya,Bf;function By(){return Bf||(Bf=1,ya=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var o=document.activeElement,l=[],a=0;a<r.rangeCount;a++)l.push(r.getRangeAt(a));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||l.forEach(function(c){r.addRange(c)}),o&&o.focus()}}),ya}var Ea,zf;function zy(){if(zf)return Ea;zf=1;var r=By(),o={"text/plain":"Text","text/html":"Url",default:"Text"},l="Copy to clipboard: #{key}, Enter";function a(u){var f=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return u.replace(/#{\s*key\s*}/g,f)}function c(u,f){var p,h,g,y,S,x,M=!1;f||(f={}),p=f.debug||!1;try{g=r(),y=document.createRange(),S=document.getSelection(),x=document.createElement("span"),x.textContent=u,x.ariaHidden="true",x.style.all="unset",x.style.position="fixed",x.style.top=0,x.style.clip="rect(0, 0, 0, 0)",x.style.whiteSpace="pre",x.style.webkitUserSelect="text",x.style.MozUserSelect="text",x.style.msUserSelect="text",x.style.userSelect="text",x.addEventListener("copy",function(I){if(I.stopPropagation(),f.format)if(I.preventDefault(),typeof I.clipboardData>"u"){p&&console.warn("unable to use e.clipboardData"),p&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var N=o[f.format]||o.default;window.clipboardData.setData(N,u)}else I.clipboardData.clearData(),I.clipboardData.setData(f.format,u);f.onCopy&&(I.preventDefault(),f.onCopy(I.clipboardData))}),document.body.appendChild(x),y.selectNodeContents(x),S.addRange(y);var L=document.execCommand("copy");if(!L)throw new Error("copy command was unsuccessful");M=!0}catch(I){p&&console.error("unable to copy using execCommand: ",I),p&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",u),f.onCopy&&f.onCopy(window.clipboardData),M=!0}catch(N){p&&console.error("unable to copy using clipboardData: ",N),p&&console.error("falling back to prompt"),h=a("message"in f?f.message:l),window.prompt(h,u)}}finally{S&&(typeof S.removeRange=="function"?S.removeRange(y):S.removeAllRanges()),x&&document.body.removeChild(x),g()}return M}return Ea=c,Ea}var Uy=zy();const $y=oi(Uy);var wa,Uf;function Bd(){return Uf||(Uf=1,wa={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),wa}var Sa,$f;function jy(){if($f)return Sa;$f=1;var r=Bd();function o(l){this.mode=r.MODE_8BIT_BYTE,this.data=l}return o.prototype={getLength:function(l){return this.data.length},write:function(l){for(var a=0;a<this.data.length;a++)l.put(this.data.charCodeAt(a),8)}},Sa=o,Sa}var Ca,jf;function zd(){return jf||(jf=1,Ca={L:1,M:0,Q:3,H:2}),Ca}var _a,Hf;function Hy(){if(Hf)return _a;Hf=1;var r=zd();function o(l,a){this.totalCount=l,this.dataCount=a}return o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(l,a){var c=o.getRsBlockTable(l,a);if(c==null)throw new Error("bad rs block @ typeNumber:"+l+"/errorCorrectLevel:"+a);for(var u=c.length/3,f=new Array,p=0;p<u;p++)for(var h=c[p*3+0],g=c[p*3+1],y=c[p*3+2],S=0;S<h;S++)f.push(new o(g,y));return f},o.getRsBlockTable=function(l,a){switch(a){case r.L:return o.RS_BLOCK_TABLE[(l-1)*4+0];case r.M:return o.RS_BLOCK_TABLE[(l-1)*4+1];case r.Q:return o.RS_BLOCK_TABLE[(l-1)*4+2];case r.H:return o.RS_BLOCK_TABLE[(l-1)*4+3];default:return}},_a=o,_a}var Ta,bf;function by(){if(bf)return Ta;bf=1;function r(){this.buffer=new Array,this.length=0}return r.prototype={get:function(o){var l=Math.floor(o/8);return(this.buffer[l]>>>7-o%8&1)==1},put:function(o,l){for(var a=0;a<l;a++)this.putBit((o>>>l-a-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(o){var l=Math.floor(this.length/8);this.buffer.length<=l&&this.buffer.push(0),o&&(this.buffer[l]|=128>>>this.length%8),this.length++}},Ta=r,Ta}var ka,Vf;function Ud(){if(Vf)return ka;Vf=1;for(var r={glog:function(l){if(l<1)throw new Error("glog("+l+")");return r.LOG_TABLE[l]},gexp:function(l){for(;l<0;)l+=255;for(;l>=256;)l-=255;return r.EXP_TABLE[l]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},o=0;o<8;o++)r.EXP_TABLE[o]=1<<o;for(var o=8;o<256;o++)r.EXP_TABLE[o]=r.EXP_TABLE[o-4]^r.EXP_TABLE[o-5]^r.EXP_TABLE[o-6]^r.EXP_TABLE[o-8];for(var o=0;o<255;o++)r.LOG_TABLE[r.EXP_TABLE[o]]=o;return ka=r,ka}var xa,Wf;function $d(){if(Wf)return xa;Wf=1;var r=Ud();function o(l,a){if(l.length==null)throw new Error(l.length+"/"+a);for(var c=0;c<l.length&&l[c]==0;)c++;this.num=new Array(l.length-c+a);for(var u=0;u<l.length-c;u++)this.num[u]=l[u+c]}return o.prototype={get:function(l){return this.num[l]},getLength:function(){return this.num.length},multiply:function(l){for(var a=new Array(this.getLength()+l.getLength()-1),c=0;c<this.getLength();c++)for(var u=0;u<l.getLength();u++)a[c+u]^=r.gexp(r.glog(this.get(c))+r.glog(l.get(u)));return new o(a,0)},mod:function(l){if(this.getLength()-l.getLength()<0)return this;for(var a=r.glog(this.get(0))-r.glog(l.get(0)),c=new Array(this.getLength()),u=0;u<this.getLength();u++)c[u]=this.get(u);for(var u=0;u<l.getLength();u++)c[u]^=r.gexp(r.glog(l.get(u))+a);return new o(c,0).mod(l)}},xa=o,xa}var Pa,Gf;function Vy(){if(Gf)return Pa;Gf=1;var r=Bd(),o=$d(),l=Ud(),a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(u){for(var f=u<<10;c.getBCHDigit(f)-c.getBCHDigit(c.G15)>=0;)f^=c.G15<<c.getBCHDigit(f)-c.getBCHDigit(c.G15);return(u<<10|f)^c.G15_MASK},getBCHTypeNumber:function(u){for(var f=u<<12;c.getBCHDigit(f)-c.getBCHDigit(c.G18)>=0;)f^=c.G18<<c.getBCHDigit(f)-c.getBCHDigit(c.G18);return u<<12|f},getBCHDigit:function(u){for(var f=0;u!=0;)f++,u>>>=1;return f},getPatternPosition:function(u){return c.PATTERN_POSITION_TABLE[u-1]},getMask:function(u,f,p){switch(u){case a.PATTERN000:return(f+p)%2==0;case a.PATTERN001:return f%2==0;case a.PATTERN010:return p%3==0;case a.PATTERN011:return(f+p)%3==0;case a.PATTERN100:return(Math.floor(f/2)+Math.floor(p/3))%2==0;case a.PATTERN101:return f*p%2+f*p%3==0;case a.PATTERN110:return(f*p%2+f*p%3)%2==0;case a.PATTERN111:return(f*p%3+(f+p)%2)%2==0;default:throw new Error("bad maskPattern:"+u)}},getErrorCorrectPolynomial:function(u){for(var f=new o([1],0),p=0;p<u;p++)f=f.multiply(new o([1,l.gexp(p)],0));return f},getLengthInBits:function(u,f){if(1<=f&&f<10)switch(u){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw new Error("mode:"+u)}else if(f<27)switch(u){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+u)}else if(f<41)switch(u){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+u)}else throw new Error("type:"+f)},getLostPoint:function(u){for(var f=u.getModuleCount(),p=0,h=0;h<f;h++)for(var g=0;g<f;g++){for(var y=0,S=u.isDark(h,g),x=-1;x<=1;x++)if(!(h+x<0||f<=h+x))for(var M=-1;M<=1;M++)g+M<0||f<=g+M||x==0&&M==0||S==u.isDark(h+x,g+M)&&y++;y>5&&(p+=3+y-5)}for(var h=0;h<f-1;h++)for(var g=0;g<f-1;g++){var L=0;u.isDark(h,g)&&L++,u.isDark(h+1,g)&&L++,u.isDark(h,g+1)&&L++,u.isDark(h+1,g+1)&&L++,(L==0||L==4)&&(p+=3)}for(var h=0;h<f;h++)for(var g=0;g<f-6;g++)u.isDark(h,g)&&!u.isDark(h,g+1)&&u.isDark(h,g+2)&&u.isDark(h,g+3)&&u.isDark(h,g+4)&&!u.isDark(h,g+5)&&u.isDark(h,g+6)&&(p+=40);for(var g=0;g<f;g++)for(var h=0;h<f-6;h++)u.isDark(h,g)&&!u.isDark(h+1,g)&&u.isDark(h+2,g)&&u.isDark(h+3,g)&&u.isDark(h+4,g)&&!u.isDark(h+5,g)&&u.isDark(h+6,g)&&(p+=40);for(var I=0,g=0;g<f;g++)for(var h=0;h<f;h++)u.isDark(h,g)&&I++;var N=Math.abs(100*I/f/f-50)/5;return p+=N*10,p}};return Pa=c,Pa}var Oa,Kf;function Wy(){if(Kf)return Oa;Kf=1;var r=jy(),o=Hy(),l=by(),a=Vy(),c=$d();function u(p,h){this.typeNumber=p,this.errorCorrectLevel=h,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var f=u.prototype;return f.addData=function(p){var h=new r(p);this.dataList.push(h),this.dataCache=null},f.isDark=function(p,h){if(p<0||this.moduleCount<=p||h<0||this.moduleCount<=h)throw new Error(p+","+h);return this.modules[p][h]},f.getModuleCount=function(){return this.moduleCount},f.make=function(){if(this.typeNumber<1){var p=1;for(p=1;p<40;p++){for(var h=o.getRSBlocks(p,this.errorCorrectLevel),g=new l,y=0,S=0;S<h.length;S++)y+=h[S].dataCount;for(var S=0;S<this.dataList.length;S++){var x=this.dataList[S];g.put(x.mode,4),g.put(x.getLength(),a.getLengthInBits(x.mode,p)),x.write(g)}if(g.getLengthInBits()<=y*8)break}this.typeNumber=p}this.makeImpl(!1,this.getBestMaskPattern())},f.makeImpl=function(p,h){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var g=0;g<this.moduleCount;g++){this.modules[g]=new Array(this.moduleCount);for(var y=0;y<this.moduleCount;y++)this.modules[g][y]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(p,h),this.typeNumber>=7&&this.setupTypeNumber(p),this.dataCache==null&&(this.dataCache=u.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,h)},f.setupPositionProbePattern=function(p,h){for(var g=-1;g<=7;g++)if(!(p+g<=-1||this.moduleCount<=p+g))for(var y=-1;y<=7;y++)h+y<=-1||this.moduleCount<=h+y||(0<=g&&g<=6&&(y==0||y==6)||0<=y&&y<=6&&(g==0||g==6)||2<=g&&g<=4&&2<=y&&y<=4?this.modules[p+g][h+y]=!0:this.modules[p+g][h+y]=!1)},f.getBestMaskPattern=function(){for(var p=0,h=0,g=0;g<8;g++){this.makeImpl(!0,g);var y=a.getLostPoint(this);(g==0||p>y)&&(p=y,h=g)}return h},f.createMovieClip=function(p,h,g){var y=p.createEmptyMovieClip(h,g),S=1;this.make();for(var x=0;x<this.modules.length;x++)for(var M=x*S,L=0;L<this.modules[x].length;L++){var I=L*S,N=this.modules[x][L];N&&(y.beginFill(0,100),y.moveTo(I,M),y.lineTo(I+S,M),y.lineTo(I+S,M+S),y.lineTo(I,M+S),y.endFill())}return y},f.setupTimingPattern=function(){for(var p=8;p<this.moduleCount-8;p++)this.modules[p][6]==null&&(this.modules[p][6]=p%2==0);for(var h=8;h<this.moduleCount-8;h++)this.modules[6][h]==null&&(this.modules[6][h]=h%2==0)},f.setupPositionAdjustPattern=function(){for(var p=a.getPatternPosition(this.typeNumber),h=0;h<p.length;h++)for(var g=0;g<p.length;g++){var y=p[h],S=p[g];if(this.modules[y][S]==null)for(var x=-2;x<=2;x++)for(var M=-2;M<=2;M++)x==-2||x==2||M==-2||M==2||x==0&&M==0?this.modules[y+x][S+M]=!0:this.modules[y+x][S+M]=!1}},f.setupTypeNumber=function(p){for(var h=a.getBCHTypeNumber(this.typeNumber),g=0;g<18;g++){var y=!p&&(h>>g&1)==1;this.modules[Math.floor(g/3)][g%3+this.moduleCount-8-3]=y}for(var g=0;g<18;g++){var y=!p&&(h>>g&1)==1;this.modules[g%3+this.moduleCount-8-3][Math.floor(g/3)]=y}},f.setupTypeInfo=function(p,h){for(var g=this.errorCorrectLevel<<3|h,y=a.getBCHTypeInfo(g),S=0;S<15;S++){var x=!p&&(y>>S&1)==1;S<6?this.modules[S][8]=x:S<8?this.modules[S+1][8]=x:this.modules[this.moduleCount-15+S][8]=x}for(var S=0;S<15;S++){var x=!p&&(y>>S&1)==1;S<8?this.modules[8][this.moduleCount-S-1]=x:S<9?this.modules[8][15-S-1+1]=x:this.modules[8][15-S-1]=x}this.modules[this.moduleCount-8][8]=!p},f.mapData=function(p,h){for(var g=-1,y=this.moduleCount-1,S=7,x=0,M=this.moduleCount-1;M>0;M-=2)for(M==6&&M--;;){for(var L=0;L<2;L++)if(this.modules[y][M-L]==null){var I=!1;x<p.length&&(I=(p[x]>>>S&1)==1);var N=a.getMask(h,y,M-L);N&&(I=!I),this.modules[y][M-L]=I,S--,S==-1&&(x++,S=7)}if(y+=g,y<0||this.moduleCount<=y){y-=g,g=-g;break}}},u.PAD0=236,u.PAD1=17,u.createData=function(p,h,g){for(var y=o.getRSBlocks(p,h),S=new l,x=0;x<g.length;x++){var M=g[x];S.put(M.mode,4),S.put(M.getLength(),a.getLengthInBits(M.mode,p)),M.write(S)}for(var L=0,x=0;x<y.length;x++)L+=y[x].dataCount;if(S.getLengthInBits()>L*8)throw new Error("code length overflow. ("+S.getLengthInBits()+">"+L*8+")");for(S.getLengthInBits()+4<=L*8&&S.put(0,4);S.getLengthInBits()%8!=0;)S.putBit(!1);for(;!(S.getLengthInBits()>=L*8||(S.put(u.PAD0,8),S.getLengthInBits()>=L*8));)S.put(u.PAD1,8);return u.createBytes(S,y)},u.createBytes=function(p,h){for(var g=0,y=0,S=0,x=new Array(h.length),M=new Array(h.length),L=0;L<h.length;L++){var I=h[L].dataCount,N=h[L].totalCount-I;y=Math.max(y,I),S=Math.max(S,N),x[L]=new Array(I);for(var B=0;B<x[L].length;B++)x[L][B]=255&p.buffer[B+g];g+=I;var J=a.getErrorCorrectPolynomial(N),se=new c(x[L],J.getLength()-1),ee=se.mod(J);M[L]=new Array(J.getLength()-1);for(var B=0;B<M[L].length;B++){var ne=B+ee.getLength()-M[L].length;M[L][B]=ne>=0?ee.get(ne):0}}for(var me=0,B=0;B<h.length;B++)me+=h[B].totalCount;for(var ve=new Array(me),de=0,B=0;B<y;B++)for(var L=0;L<h.length;L++)B<x[L].length&&(ve[de++]=x[L][B]);for(var B=0;B<S;B++)for(var L=0;L<h.length;L++)B<M[L].length&&(ve[de++]=M[L][B]);return ve},Oa=u,Oa}var La,Qf;function Gy(){if(Qf)return La;Qf=1;function r(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(j){return typeof j}:r=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},r(H)}function o(){return o=Object.assign||function(H){for(var R=1;R<arguments.length;R++){var j=arguments[R];for(var D in j)Object.prototype.hasOwnProperty.call(j,D)&&(H[D]=j[D])}return H},o.apply(this,arguments)}function l(H,R){var j=Object.keys(H);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(H);R&&(D=D.filter(function(w){return Object.getOwnPropertyDescriptor(H,w).enumerable})),j.push.apply(j,D)}return j}function a(H){for(var R=1;R<arguments.length;R++){var j=arguments[R]!=null?arguments[R]:{};R%2?l(j,!0).forEach(function(D){L(H,D,j[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(j)):l(j).forEach(function(D){Object.defineProperty(H,D,Object.getOwnPropertyDescriptor(j,D))})}return H}function c(H,R){if(H==null)return{};var j=u(H,R),D,w;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(H);for(w=0;w<P.length;w++)D=P[w],!(R.indexOf(D)>=0)&&Object.prototype.propertyIsEnumerable.call(H,D)&&(j[D]=H[D])}return j}function u(H,R){if(H==null)return{};var j={},D=Object.keys(H),w,P;for(P=0;P<D.length;P++)w=D[P],!(R.indexOf(w)>=0)&&(j[w]=H[w]);return j}function f(H,R){if(!(H instanceof R))throw new TypeError("Cannot call a class as a function")}function p(H,R){for(var j=0;j<R.length;j++){var D=R[j];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(H,D.key,D)}}function h(H,R,j){return R&&p(H.prototype,R),H}function g(H,R){return R&&(r(R)==="object"||typeof R=="function")?R:S(H)}function y(H){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},y(H)}function S(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function x(H,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(R&&R.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),R&&M(H,R)}function M(H,R){return M=Object.setPrototypeOf||function(D,w){return D.__proto__=w,D},M(H,R)}function L(H,R,j){return R in H?Object.defineProperty(H,R,{value:j,enumerable:!0,configurable:!0,writable:!0}):H[R]=j,H}var I=Va(),N=Wy(),B=zd();function J(H){for(var R="",j=0;j<H.length;j++){var D=H.charCodeAt(j);D<128?R+=String.fromCharCode(D):D<2048?(R+=String.fromCharCode(192|D>>6),R+=String.fromCharCode(128|D&63)):D<55296||D>=57344?(R+=String.fromCharCode(224|D>>12),R+=String.fromCharCode(128|D>>6&63),R+=String.fromCharCode(128|D&63)):(j++,D=65536+((D&1023)<<10|H.charCodeAt(j)&1023),R+=String.fromCharCode(240|D>>18),R+=String.fromCharCode(128|D>>12&63),R+=String.fromCharCode(128|D>>6&63),R+=String.fromCharCode(128|D&63))}return R}var se={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},ee=4,ne=.1;function me(H){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[];return H.forEach(function(D,w){var P=null;D.forEach(function(K,te){if(!K&&P!==null){j.push("M".concat(P+R," ").concat(w+R,"h").concat(te-P,"v1H").concat(P+R,"z")),P=null;return}if(te===D.length-1){if(!K)return;P===null?j.push("M".concat(te+R,",").concat(w+R," h1v1H").concat(te+R,"z")):j.push("M".concat(P+R,",").concat(w+R," h").concat(te+1-P,"v1H").concat(P+R,"z"));return}K&&P===null&&(P=te)})}),j.join("")}function ve(H,R){return H.slice().map(function(j,D){return D<R.y||D>=R.y+R.h?j:j.map(function(w,P){return P<R.x||P>=R.x+R.w?w:!1})})}function de(H,R){var j=H.imageSettings,D=H.size,w=H.includeMargin;if(j==null)return null;var P=w?ee:0,K=R.length+P*2,te=Math.floor(D*ne),A=K/D,W=(j.width||te)*A,V=(j.height||te)*A,q=j.x==null?R.length/2-W/2:j.x*A,X=j.y==null?R.length/2-V/2:j.y*A,oe=null;if(j.excavate){var Ee=Math.floor(q),Oe=Math.floor(X),ke=Math.ceil(W+q-Ee),je=Math.ceil(V+X-Oe);oe={x:Ee,y:Oe,w:ke,h:je}}return{x:q,y:X,h:V,w:W,excavation:oe}}var Se=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),we=(function(H){x(R,H);function R(){var j,D;f(this,R);for(var w=arguments.length,P=new Array(w),K=0;K<w;K++)P[K]=arguments[K];return D=g(this,(j=y(R)).call.apply(j,[this].concat(P))),L(S(D),"_canvas",void 0),L(S(D),"_image",void 0),L(S(D),"state",{imgLoaded:!1}),L(S(D),"handleImageLoad",function(){D.setState({imgLoaded:!0})}),D}return h(R,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(D){var w,P,K=(w=this.props.imageSettings)===null||w===void 0?void 0:w.src,te=(P=D.imageSettings)===null||P===void 0?void 0:P.src;K!==te&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var D=this.props,w=D.value,P=D.size,K=D.level,te=D.bgColor,A=D.fgColor,W=D.includeMargin,V=D.imageSettings,q=new N(-1,B[K]);if(q.addData(J(w)),q.make(),this._canvas!=null){var X=this._canvas,oe=X.getContext("2d");if(!oe)return;var Ee=q.modules;if(Ee===null)return;var Oe=W?ee:0,ke=Ee.length+Oe*2,je=de(this.props,Ee);V!=null&&je!=null&&je.excavation!=null&&(Ee=ve(Ee,je.excavation));var it=window.devicePixelRatio||1;X.height=X.width=P*it;var lt=P/ke*it;oe.scale(lt,lt),oe.fillStyle=te,oe.fillRect(0,0,ke,ke),oe.fillStyle=A,Se?oe.fill(new Path2D(me(Ee,Oe))):Ee.forEach(function(br,ci){br.forEach(function(hn,Vr){hn&&oe.fillRect(Vr+Oe,ci+Oe,1,1)})}),this.state.imgLoaded&&this._image&&je!=null&&oe.drawImage(this._image,je.x+Oe,je.y+Oe,je.w,je.h)}}},{key:"render",value:function(){var D=this,w=this.props;w.value;var P=w.size;w.level,w.bgColor,w.fgColor;var K=w.style;w.includeMargin;var te=w.imageSettings,A=c(w,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),W=a({height:P,width:P},K),V=null,q=te&&te.src;return te!=null&&q!=null&&(V=I.createElement("img",{src:q,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(oe){return D._image=oe}})),I.createElement(I.Fragment,null,I.createElement("canvas",o({style:W,height:P,width:P,ref:function(oe){return D._canvas=oe}},A)),V)}}]),R})(I.PureComponent);L(we,"defaultProps",se);var Ne=(function(H){x(R,H);function R(){return f(this,R),g(this,y(R).apply(this,arguments))}return h(R,[{key:"render",value:function(){var D=this.props,w=D.value,P=D.size,K=D.level,te=D.bgColor,A=D.fgColor,W=D.includeMargin,V=D.imageSettings,q=c(D,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),X=new N(-1,B[K]);X.addData(J(w)),X.make();var oe=X.modules;if(oe===null)return null;var Ee=W?ee:0,Oe=oe.length+Ee*2,ke=de(this.props,oe),je=null;V!=null&&ke!=null&&(ke.excavation!=null&&(oe=ve(oe,ke.excavation)),je=I.createElement("image",{xlinkHref:V.src,height:ke.h,width:ke.w,x:ke.x+Ee,y:ke.y+Ee,preserveAspectRatio:"none"}));var it=me(oe,Ee);return I.createElement("svg",o({shapeRendering:"crispEdges",height:P,width:P,viewBox:"0 0 ".concat(Oe," ").concat(Oe)},q),I.createElement("path",{fill:te,d:"M0,0 h".concat(Oe,"v").concat(Oe,"H0z")}),I.createElement("path",{fill:A,d:it}),je)}}]),R})(I.PureComponent);L(Ne,"defaultProps",se);var he=function(R){var j=R.renderAs,D=c(R,["renderAs"]),w=j==="svg"?Ne:we;return I.createElement(w,D)};return he.defaultProps=a({renderAs:"canvas"},se),La=he,La}var Ky=Gy();const Qy=oi(Ky);function jd({code:r,onClose:o}){const[l]=mt({id:"QRCodeModal",fallback:Fd});return _.createElement(ty,{title:l.translate("title",{title:r==null?void 0:r.title}),open:!!r,onClose:o,width:"small"},r?_.createElement(Yy,{...r}):null)}function Yy({url:r,type:o}){const[l]=mt({id:"QRCodeModal",fallback:Fd}),{store:a,app:c}=Ya(),u=z.useMemo(()=>c?o==="point_of_sale"?`com.shopify.pos://pos-ui-extensions?url=${r}`:o==="home"?c.mobileUrl:`https://${a}/admin/extensions-dev/mobile?url=${r}`:null,[r,c,c==null?void 0:c.mobileUrl]),f=z.useCallback(()=>{u&&$y(u)&&Te(l.translate("qrcode.copied"),{toastId:`copy-qrcode-${u}`})},[u]);return u?_.createElement("div",{className:Ry},_.createElement("span",{className:Dy},_.createElement("span",{className:Iy},_.createElement(Qy,{value:u,size:170}))),_.createElement("span",{className:Ay},l.translate("right.one"),_.createElement("span",{className:Fy},l.translate("right.two")," ",_.createElement(Xa,{type:"button",source:Ka,accessibilityLabel:l.translate("qrcode.copy"),onClick:f})))):null}const Xy="_Row_1rpxh_1",Zy="_Hoverable_1rpxh_9";function ns({className:r,children:o,...l}){const a=qe(r,Xy,l.onMouseEnter||l.onMouseLeave?Zy:void 0);return _.createElement("tr",{className:a,...l},o)}const rs="_Status_1aimo_1",Hd="_success_1aimo_10",bd="_disconnected_1aimo_11",os="_error_1aimo_12",qy={Status:rs,success:Hd,disconnected:bd,error:os},Jy=Object.freeze(Object.defineProperty({__proto__:null,Status:rs,default:qy,disconnected:bd,error:os,success:Hd},Symbol.toStringTag,{value:"Module"})),e1={label:"Connected",tooltipMessage:"No connection issues detected."},t1={label:"Disconnected",tooltipMessage:"Extension not available. Return to the CLI and run the 'dev' command again."},n1={label:"Build Error",tooltipMessage:"Check the CLI logs about an error in your source code."},r1={success:e1,disconnected:t1,error:n1},o1="_Tooltip_ru6ke_1",i1="_TooltipUnderline_ru6ke_9",Yf={Tooltip:o1,TooltipUnderline:i1},l1="_Popover_1ehpl_5",a1={Popover:l1},Xf=10;function s1({targetRef:r,text:o}){const l=z.useRef(null),a=()=>{if(!r.current)return{x:0,y:0};const{x:c,y:u,height:f}=r.current.getBoundingClientRect(),{scrollY:p,scrollX:h}=window;return{x:c+h,y:u+f+Xf+p}};return z.useLayoutEffect(()=>{if(!l.current||!(r!=null&&r.current))return;let{x:c,y:u}=a();const{innerWidth:f,innerHeight:p}=window,{height:h,width:g}=l.current.getBoundingClientRect();c+g>f&&(c-=g-r.current.getBoundingClientRect().width),u+h>p&&(u-=h+r.current.getBoundingClientRect().height+2*Xf),l.current.style.top=`${u}px`,l.current.style.left=`${c}px`},[]),_.createElement("div",{className:a1.Popover,role:"tooltip",ref:l},o)}function u1({children:r,text:o}){const l=z.useRef(null),[a,c]=z.useState(!1),u=()=>{!l.current||a||(typeof r!="string"&&(l.current.firstChild.tabIndex=-1),c(!0))},f=p=>{var h;p.key==="Enter"&&((h=l.current)==null?void 0:h.firstChild).click()};return _.createElement("div",{className:qe(Yf.Tooltip,typeof r=="string"&&Yf.TooltipUnderline),onMouseEnter:u,onFocus:u,onBlur:()=>c(!1),onMouseLeave:()=>c(!1),onKeyUp:f,ref:l,tabIndex:0},r,a&&_.createElement(s1,{text:o,targetRef:l}))}function c1({status:r}){const[o]=mt({id:"Status",fallback:r1}),l=r?Jy[r||"error"]:os;return _.createElement("span",{className:rs},_.createElement("span",{className:l}),_.createElement(u1,{text:o.translate(`${r}.tooltipMessage`)},o.translate(`${r}.label`)))}const f1="{installLink} to see changes live. Share preview links with teammates or clients.",d1="Install your app",p1={handle:"Handle",preview:"Preview link",mobile:"Mobile",view:"View",status:"Status",refresh:"Refresh",delete:"Delete"},h1={viewColumnHeader:"Hide your local extensions to view what's in production."},m1={show:"Show",hide:"Hide",selectAll:"Select all",deselectAll:"Deselect all"},g1={noExtensions:"No extensions found",noExtensionsForSurface:"No extensions found for the surface: {surface}"},v1={intro:f1,introInstallCta:d1,extensionList:p1,tooltips:h1,bulkActions:m1,errors:g1};function y1(){const r=Hr();return z.useMemo(()=>r.state.extensions.sort((o,l)=>o.type.toLowerCase()==="app_home"?-1:o.handle.localeCompare(l.handle)).map(({uuid:o,type:l})=>({uuid:o,type:l})),[r.state.extensions.length])}function E1(){const[r]=mt({id:"Extensions",fallback:v1}),o=y1(),{surface:l}=Od(),{app:a}=Ya();if(!o.length)return _.createElement("div",{className:lv},l?r.translate("errors.noExtensionsForSurface",{surface:l}):r.translate("errors.noExtensions"));const c=r.translate("intro",{installLink:_.createElement("a",{href:a==null?void 0:a.url,target:"_blank","aria-label":r.translate("introInstallCta")},r.translate("introInstallCta"))});return _.createElement("section",{className:`${ov} ${gd?iv:""}`},Ha?null:_.createElement("p",{className:rv},c),_.createElement("table",null,_.createElement("thead",null,_.createElement(ns,null,_.createElement("th",null,r.translate("extensionList.handle")),_.createElement("th",null,r.translate("extensionList.preview")),_.createElement("th",null,r.translate("extensionList.mobile")),_.createElement("th",null,r.translate("extensionList.status")))),_.createElement("tbody",null,_.createElement(ny,null),o.map(({uuid:u})=>_.createElement(py,{key:u,uuid:u})))))}function w1(){return _.createElement(nv,null,_.createElement(Jg,null,_.createElement(Pd,{path:"*",element:_.createElement(E1,null)})))}const S1="_Toast_1qbvq_1";function C1(){return _.createElement("div",{className:S1},_.createElement(ja,{position:"bottom-center",theme:"dark",closeButton:!1,pauseOnFocusLoss:!1,closeOnClick:!0,hideProgressBar:!0}),_.createElement("style",null,`.Toastify__toast-body {
|
|
61
|
+
*/const v1="6";try{window.__reactRouterVersion=v1}catch{}const y1="startTransition",Qf=Vh[y1];function E1(r){let{basename:o,children:l,future:a,window:c}=r,u=z.useRef();u.current==null&&(u.current=Ry({window:c,v5Compat:!0}));let f=u.current,[p,h]=z.useState({action:f.action,location:f.location}),{v7_startTransition:g}=a||{},y=z.useCallback(S=>{g&&Qf?Qf(()=>h(S)):h(S)},[h,g]);return z.useLayoutEffect(()=>f.listen(y),[f,y]),z.useEffect(()=>h1(a),[a]),z.createElement(m1,{basename:o,children:l,location:p.location,navigationType:p.action,navigator:f,future:a})}var Yf;(function(r){r.UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState"})(Yf||(Yf={}));var Xf;(function(r){r.UseFetcher="useFetcher",r.UseFetchers="useFetchers",r.UseScrollRestoration="useScrollRestoration"})(Xf||(Xf={}));function w1(){return _.createElement(E1,null,_.createElement(g1,null,_.createElement(bd,{path:"*",element:_.createElement(Ny,null)})))}const S1="_Toast_1qbvq_1";function C1(){return _.createElement("div",{className:S1},_.createElement($a,{position:"bottom-center",theme:"dark",closeButton:!1,pauseOnFocusLoss:!1,closeOnClick:!0,hideProgressBar:!0}),_.createElement("style",null,`.Toastify__toast-body {
|
|
62
62
|
padding: 0 16px;
|
|
63
63
|
margin: 0;
|
|
64
|
-
}`))}const _1="_Theme_1aigu_1";function T1({children:r}){return _.createElement("div",{className:_1},r)}function k1(){return`${location.protocol==="http:"?"ws:":"wss:"}//${location.host}/extensions`}const Zf=new URLSearchParams(location.search).get("surface"),x1={connection:{url:k1()},surface:
|
|
64
|
+
}`))}const _1="_Theme_1aigu_1";function T1({children:r}){return _.createElement("div",{className:_1},r)}function k1(){return`${location.protocol==="http:"?"ws:":"wss:"}//${location.host}/extensions`}const Zf=new URLSearchParams(location.search).get("surface"),x1={connection:{url:k1()},surface:dd(Zf)?Zf:void 0},P1=new Yh({locale:"en",onError(r){console.error(r)}});function O1(){return _.createElement(vg,{options:x1},_.createElement(nd.Provider,{value:P1},_.createElement(T1,null,_.createElement(Vm,null,_.createElement(w1,null),_.createElement(C1,null),_.createElement(dv,null)))))}Ar.render(_.createElement(_.StrictMode,null,_.createElement(O1,null)),document.getElementById("root"));
|