@wix/cli 1.1.39 → 1.1.41
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/build/{LoginCommand-4AJYVC35.js → LoginCommand-CBVAUYRO.js} +2 -2
- package/build/LogoutCommand-4VR5TSKR.js +4 -0
- package/build/LogoutCommand-4VR5TSKR.js.map +1 -0
- package/build/{WhoamiCommand-LXENA3P6.js → WhoamiCommand-QMW6VO2R.js} +2 -2
- package/build/chunk-34HYWOQN.js +4 -0
- package/build/{chunk-R644SCVZ.js.map → chunk-34HYWOQN.js.map} +1 -1
- package/build/chunk-3VDYJ2A2.js +4 -0
- package/build/chunk-3VDYJ2A2.js.map +1 -0
- package/build/{chunk-E5UPMTBO.js → chunk-4QFYZ5K5.js} +2 -2
- package/build/{chunk-E5UPMTBO.js.map → chunk-4QFYZ5K5.js.map} +1 -1
- package/build/{chunk-4BZMFYVJ.js → chunk-CNRVJIPG.js} +3 -3
- package/build/chunk-CNRVJIPG.js.map +1 -0
- package/build/{chunk-FETHBYZJ.js → chunk-CU4HXYD6.js} +4 -4
- package/build/{chunk-FETHBYZJ.js.map → chunk-CU4HXYD6.js.map} +1 -1
- package/build/chunk-K2P7OT6H.js +174 -0
- package/build/chunk-K2P7OT6H.js.map +1 -0
- package/build/{chunk-AKFSC7TY.js → chunk-MKQBXJBE.js} +2 -2
- package/build/{chunk-IDVMSNIR.js → chunk-NUQ6G6J3.js} +2 -2
- package/build/{chunk-ITZHAIIT.js → chunk-Q6WPLZZC.js} +2 -2
- package/build/{chunk-VAHKW25J.js → chunk-QC5Y7QKP.js} +2 -2
- package/build/chunk-QC5Y7QKP.js.map +1 -0
- package/build/{chunk-JFUGOSWJ.js → chunk-QKI65SFV.js} +2 -2
- package/build/chunk-QKI65SFV.js.map +1 -0
- package/build/{chunk-LM63VRXC.js → chunk-SHTCM5ZT.js} +6 -6
- package/build/{chunk-LM63VRXC.js.map → chunk-SHTCM5ZT.js.map} +1 -1
- package/build/{chunk-FGALJZRN.js → chunk-SKH2TXDX.js} +2 -2
- package/build/chunk-SPXP6KD4.js +93 -0
- package/build/chunk-SPXP6KD4.js.map +1 -0
- package/build/chunk-SYHT5LTW.js +4 -0
- package/build/chunk-SYHT5LTW.js.map +1 -0
- package/build/{chunk-SDDOYSZT.js → chunk-ULZRRJS5.js} +2 -2
- package/build/{chunk-7INBYM44.js → chunk-XBIKRRQN.js} +2 -2
- package/build/{chunk-R3FGH2CR.js → chunk-YCUOSGLG.js} +2 -2
- package/build/{chunk-MBFTIRSJ.js → chunk-Z6MBXKB5.js} +2 -2
- package/build/{dev-FDICF2SI.js → dev-HCU2RSK2.js} +3 -3
- package/build/{dev-FDICF2SI.js.map → dev-HCU2RSK2.js.map} +1 -1
- package/build/devtools-CQIMIA2J.js +10 -0
- package/build/devtools-CQIMIA2J.js.map +1 -0
- package/build/index.js +3 -3
- package/build/index.js.map +1 -1
- package/build/{install-3GQZ4CR5.js → install-ZS3JQW7R.js} +2 -2
- package/build/{preview-UM7J4ASZ.js → preview-47HHGDUS.js} +2 -2
- package/build/{publish-4MUHRH6N.js → publish-KHEPZGLL.js} +2 -2
- package/build/{render-command-YOJON3E7.js → render-command-63MT5OBI.js} +2 -2
- package/build/{run-command-XYGTTYQN.js → run-command-6FANXPF7.js} +2 -2
- package/build/{src-VQYSSOBX.js → src-2WK77SL5.js} +2 -2
- package/build/{src-YYRC7YT3.js → src-47U27AOS.js} +2 -2
- package/build/{src-ZRURTJ5K.js → src-FZ36Z3LP.js} +2 -2
- package/build/sync-types-MNFPKTU2.js +4 -0
- package/build/{uninstall-BZZIAJNG.js → uninstall-OVBDTT64.js} +2 -2
- package/package.json +3 -3
- package/build/LogoutCommand-2GUZMV7I.js +0 -4
- package/build/LogoutCommand-2GUZMV7I.js.map +0 -1
- package/build/chunk-4BZMFYVJ.js.map +0 -1
- package/build/chunk-6TMOZJXV.js +0 -4
- package/build/chunk-6TMOZJXV.js.map +0 -1
- package/build/chunk-GIZ6HNLG.js +0 -172
- package/build/chunk-GIZ6HNLG.js.map +0 -1
- package/build/chunk-JFUGOSWJ.js.map +0 -1
- package/build/chunk-NA3PS2J2.js +0 -6
- package/build/chunk-NA3PS2J2.js.map +0 -1
- package/build/chunk-OQEXAUDS.js +0 -93
- package/build/chunk-OQEXAUDS.js.map +0 -1
- package/build/chunk-R644SCVZ.js +0 -4
- package/build/chunk-VAHKW25J.js.map +0 -1
- package/build/devtools-QUFBWWMT.js +0 -10
- package/build/devtools-QUFBWWMT.js.map +0 -1
- package/build/sync-types-Z6SYJMVP.js +0 -4
- /package/build/{LoginCommand-4AJYVC35.js.map → LoginCommand-CBVAUYRO.js.map} +0 -0
- /package/build/{WhoamiCommand-LXENA3P6.js.map → WhoamiCommand-QMW6VO2R.js.map} +0 -0
- /package/build/{chunk-AKFSC7TY.js.map → chunk-MKQBXJBE.js.map} +0 -0
- /package/build/{chunk-IDVMSNIR.js.map → chunk-NUQ6G6J3.js.map} +0 -0
- /package/build/{chunk-ITZHAIIT.js.map → chunk-Q6WPLZZC.js.map} +0 -0
- /package/build/{chunk-FGALJZRN.js.map → chunk-SKH2TXDX.js.map} +0 -0
- /package/build/{chunk-SDDOYSZT.js.map → chunk-ULZRRJS5.js.map} +0 -0
- /package/build/{chunk-7INBYM44.js.map → chunk-XBIKRRQN.js.map} +0 -0
- /package/build/{chunk-R3FGH2CR.js.map → chunk-YCUOSGLG.js.map} +0 -0
- /package/build/{chunk-MBFTIRSJ.js.map → chunk-Z6MBXKB5.js.map} +0 -0
- /package/build/{install-3GQZ4CR5.js.map → install-ZS3JQW7R.js.map} +0 -0
- /package/build/{preview-UM7J4ASZ.js.map → preview-47HHGDUS.js.map} +0 -0
- /package/build/{publish-4MUHRH6N.js.map → publish-KHEPZGLL.js.map} +0 -0
- /package/build/{render-command-YOJON3E7.js.map → render-command-63MT5OBI.js.map} +0 -0
- /package/build/{run-command-XYGTTYQN.js.map → run-command-6FANXPF7.js.map} +0 -0
- /package/build/{src-VQYSSOBX.js.map → src-2WK77SL5.js.map} +0 -0
- /package/build/{src-YYRC7YT3.js.map → src-47U27AOS.js.map} +0 -0
- /package/build/{src-ZRURTJ5K.js.map → src-FZ36Z3LP.js.map} +0 -0
- /package/build/{sync-types-Z6SYJMVP.js.map → sync-types-MNFPKTU2.js.map} +0 -0
- /package/build/{uninstall-BZZIAJNG.js.map → uninstall-OVBDTT64.js.map} +0 -0
package/build/chunk-OQEXAUDS.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
-
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as y0,b as F0,c as S0,d as Wi,e as ye,f as op,i as vo,k as zi}from"./chunk-6TMOZJXV.js";import{a as Xn,b as zt,c as T0}from"./chunk-K656WQZA.js";import{a as x0,b as Vn,c as Lt,d as C0}from"./chunk-F67LDVCV.js";import{a as v0,b as ji,c as Pe}from"./chunk-ZBJRW65P.js";import{b as za}from"./chunk-NWTFQJ5S.js";import{a as dn,c as ip,e as up}from"./chunk-FETHBYZJ.js";import{a as E0,c as Ie,e as $,i as D}from"./chunk-UO4ZAUJK.js";var Ep=Ie(he=>{"use strict";D();var Vi=Symbol.for("react.element"),N0=Symbol.for("react.portal"),I0=Symbol.for("react.fragment"),A0=Symbol.for("react.strict_mode"),_0=Symbol.for("react.profiler"),L0=Symbol.for("react.provider"),w0=Symbol.for("react.context"),O0=Symbol.for("react.forward_ref"),P0=Symbol.for("react.suspense"),R0=Symbol.for("react.memo"),B0=Symbol.for("react.lazy"),sp=Symbol.iterator;function b0(e){return e===null||typeof e!="object"?null:(e=sp&&e[sp]||e["@@iterator"],typeof e=="function"?e:null)}var fp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cp=Object.assign,pp={};function Yn(e,r,i){this.props=e,this.context=r,this.refs=pp,this.updater=i||fp}Yn.prototype.isReactComponent={};Yn.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};Yn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dp(){}dp.prototype=Yn.prototype;function Xa(e,r,i){this.props=e,this.context=r,this.refs=pp,this.updater=i||fp}var Ya=Xa.prototype=new dp;Ya.constructor=Xa;cp(Ya,Yn.prototype);Ya.isPureReactComponent=!0;var ap=Array.isArray,hp=Object.prototype.hasOwnProperty,$a={current:null},mp={key:!0,ref:!0,__self:!0,__source:!0};function Dp(e,r,i){var o,a={},f=null,c=null;if(r!=null)for(o in r.ref!==void 0&&(c=r.ref),r.key!==void 0&&(f=""+r.key),r)hp.call(r,o)&&!mp.hasOwnProperty(o)&&(a[o]=r[o]);var d=arguments.length-2;if(d===1)a.children=i;else if(1<d){for(var h=Array(d),m=0;m<d;m++)h[m]=arguments[m+2];a.children=h}if(e&&e.defaultProps)for(o in d=e.defaultProps,d)a[o]===void 0&&(a[o]=d[o]);return{$$typeof:Vi,type:e,key:f,ref:c,props:a,_owner:$a.current}}function k0(e,r){return{$$typeof:Vi,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function Qa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vi}function U0(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return r[i]})}var lp=/\/+/g;function Va(e,r){return typeof e=="object"&&e!==null&&e.key!=null?U0(""+e.key):r.toString(36)}function Co(e,r,i,o,a){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(f){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Vi:case N0:c=!0}}if(c)return c=e,a=a(c),e=o===""?"."+Va(c,0):o,ap(a)?(i="",e!=null&&(i=e.replace(lp,"$&/")+"/"),Co(a,r,i,"",function(m){return m})):a!=null&&(Qa(a)&&(a=k0(a,i+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(lp,"$&/")+"/")+e)),r.push(a)),1;if(c=0,o=o===""?".":o+":",ap(e))for(var d=0;d<e.length;d++){f=e[d];var h=o+Va(f,d);c+=Co(f,r,i,h,a)}else if(h=b0(e),typeof h=="function")for(e=h.call(e),d=0;!(f=e.next()).done;)f=f.value,h=o+Va(f,d++),c+=Co(f,r,i,h,a);else if(f==="object")throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function xo(e,r,i){if(e==null)return e;var o=[],a=0;return Co(e,o,"","",function(f){return r.call(i,f,a++)}),o}function H0(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var vt={current:null},Fo={transition:null},M0={ReactCurrentDispatcher:vt,ReactCurrentBatchConfig:Fo,ReactCurrentOwner:$a};function gp(){throw Error("act(...) is not supported in production builds of React.")}he.Children={map:xo,forEach:function(e,r,i){xo(e,function(){r.apply(this,arguments)},i)},count:function(e){var r=0;return xo(e,function(){r++}),r},toArray:function(e){return xo(e,function(r){return r})||[]},only:function(e){if(!Qa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};he.Component=Yn;he.Fragment=I0;he.Profiler=_0;he.PureComponent=Xa;he.StrictMode=A0;he.Suspense=P0;he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M0;he.act=gp;he.cloneElement=function(e,r,i){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=cp({},e.props),a=e.key,f=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(f=r.ref,c=$a.current),r.key!==void 0&&(a=""+r.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(h in r)hp.call(r,h)&&!mp.hasOwnProperty(h)&&(o[h]=r[h]===void 0&&d!==void 0?d[h]:r[h])}var h=arguments.length-2;if(h===1)o.children=i;else if(1<h){d=Array(h);for(var m=0;m<h;m++)d[m]=arguments[m+2];o.children=d}return{$$typeof:Vi,type:e.type,key:a,ref:f,props:o,_owner:c}};he.createContext=function(e){return e={$$typeof:w0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:L0,_context:e},e.Consumer=e};he.createElement=Dp;he.createFactory=function(e){var r=Dp.bind(null,e);return r.type=e,r};he.createRef=function(){return{current:null}};he.forwardRef=function(e){return{$$typeof:O0,render:e}};he.isValidElement=Qa;he.lazy=function(e){return{$$typeof:B0,_payload:{_status:-1,_result:e},_init:H0}};he.memo=function(e,r){return{$$typeof:R0,type:e,compare:r===void 0?null:r}};he.startTransition=function(e){var r=Fo.transition;Fo.transition={};try{e()}finally{Fo.transition=r}};he.unstable_act=gp;he.useCallback=function(e,r){return vt.current.useCallback(e,r)};he.useContext=function(e){return vt.current.useContext(e)};he.useDebugValue=function(){};he.useDeferredValue=function(e){return vt.current.useDeferredValue(e)};he.useEffect=function(e,r){return vt.current.useEffect(e,r)};he.useId=function(){return vt.current.useId()};he.useImperativeHandle=function(e,r,i){return vt.current.useImperativeHandle(e,r,i)};he.useInsertionEffect=function(e,r){return vt.current.useInsertionEffect(e,r)};he.useLayoutEffect=function(e,r){return vt.current.useLayoutEffect(e,r)};he.useMemo=function(e,r){return vt.current.useMemo(e,r)};he.useReducer=function(e,r,i){return vt.current.useReducer(e,r,i)};he.useRef=function(e){return vt.current.useRef(e)};he.useState=function(e){return vt.current.useState(e)};he.useSyncExternalStore=function(e,r,i){return vt.current.useSyncExternalStore(e,r,i)};he.useTransition=function(){return vt.current.useTransition()};he.version="18.3.1"});var ie=Ie((Kv,yp)=>{"use strict";D();yp.exports=Ep()});var So=Ie((e2,vp)=>{"use strict";D();function G0(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}vp.exports=G0});var Cp=Ie((r2,xp)=>{"use strict";D();var j0=typeof global=="object"&&global&&global.Object===Object&&global;xp.exports=j0});var Ja=Ie((i2,Fp)=>{"use strict";D();var W0=Cp(),z0=typeof self=="object"&&self&&self.Object===Object&&self,V0=W0||z0||Function("return this")();Fp.exports=V0});var Tp=Ie((o2,Sp)=>{"use strict";D();var X0=Ja(),Y0=function(){return X0.Date.now()};Sp.exports=Y0});var Ip=Ie((a2,Np)=>{"use strict";D();var $0=/\s/;function Q0(e){for(var r=e.length;r--&&$0.test(e.charAt(r)););return r}Np.exports=Q0});var _p=Ie((f2,Ap)=>{"use strict";D();var J0=Ip(),q0=/^\s+/;function K0(e){return e&&e.slice(0,J0(e)+1).replace(q0,"")}Ap.exports=K0});var qa=Ie((p2,Lp)=>{"use strict";D();var Z0=Ja(),eE=Z0.Symbol;Lp.exports=eE});var Rp=Ie((h2,Pp)=>{"use strict";D();var wp=qa(),Op=Object.prototype,tE=Op.hasOwnProperty,rE=Op.toString,Xi=wp?wp.toStringTag:void 0;function nE(e){var r=tE.call(e,Xi),i=e[Xi];try{e[Xi]=void 0;var o=!0}catch{}var a=rE.call(e);return o&&(r?e[Xi]=i:delete e[Xi]),a}Pp.exports=nE});var bp=Ie((D2,Bp)=>{"use strict";D();var iE=Object.prototype,uE=iE.toString;function oE(e){return uE.call(e)}Bp.exports=oE});var Mp=Ie((E2,Hp)=>{"use strict";D();var kp=qa(),sE=Rp(),aE=bp(),lE="[object Null]",fE="[object Undefined]",Up=kp?kp.toStringTag:void 0;function cE(e){return e==null?e===void 0?fE:lE:Up&&Up in Object(e)?sE(e):aE(e)}Hp.exports=cE});var jp=Ie((v2,Gp)=>{"use strict";D();function pE(e){return e!=null&&typeof e=="object"}Gp.exports=pE});var zp=Ie((C2,Wp)=>{"use strict";D();var dE=Mp(),hE=jp(),mE="[object Symbol]";function DE(e){return typeof e=="symbol"||hE(e)&&dE(e)==mE}Wp.exports=DE});var $p=Ie((S2,Yp)=>{"use strict";D();var gE=_p(),Vp=So(),EE=zp(),Xp=NaN,yE=/^[-+]0x[0-9a-f]+$/i,vE=/^0b[01]+$/i,xE=/^0o[0-7]+$/i,CE=parseInt;function FE(e){if(typeof e=="number")return e;if(EE(e))return Xp;if(Vp(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Vp(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=gE(e);var i=vE.test(e);return i||xE.test(e)?CE(e.slice(2),i?2:8):yE.test(e)?Xp:+e}Yp.exports=FE});var qp=Ie((N2,Jp)=>{"use strict";D();var SE=So(),Ka=Tp(),Qp=$p(),TE="Expected a function",NE=Math.max,IE=Math.min;function AE(e,r,i){var o,a,f,c,d,h,m=0,v=!1,C=!1,x=!0;if(typeof e!="function")throw new TypeError(TE);r=Qp(r)||0,SE(i)&&(v=!!i.leading,C="maxWait"in i,f=C?NE(Qp(i.maxWait)||0,r):f,x="trailing"in i?!!i.trailing:x);function O(H){var ne=o,Me=a;return o=a=void 0,m=H,c=e.apply(Me,ne),c}function R(H){return m=H,d=setTimeout(B,r),v?O(H):c}function k(H){var ne=H-h,Me=H-m,Le=r-ne;return C?IE(Le,f-Me):Le}function P(H){var ne=H-h,Me=H-m;return h===void 0||ne>=r||ne<0||C&&Me>=f}function B(){var H=Ka();if(P(H))return j(H);d=setTimeout(B,k(H))}function j(H){return d=void 0,x&&o?O(H):(o=a=void 0,c)}function q(){d!==void 0&&clearTimeout(d),m=0,o=h=a=d=void 0}function z(){return d===void 0?c:j(Ka())}function Y(){var H=Ka(),ne=P(H);if(o=arguments,a=this,h=H,ne){if(d===void 0)return R(h);if(C)return clearTimeout(d),d=setTimeout(B,r),O(h)}return d===void 0&&(d=setTimeout(B,r)),c}return Y.cancel=q,Y.flush=z,Y}Jp.exports=AE});var Zp=Ie((A2,Kp)=>{"use strict";D();var _E=qp(),LE=So(),wE="Expected a function";function OE(e,r,i){var o=!0,a=!0;if(typeof e!="function")throw new TypeError(wE);return LE(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),_E(e,r,{leading:o,maxWait:r,trailing:a})}Kp.exports=OE});var Ah=Ie(we=>{"use strict";D();function ol(e,r){var i=e.length;e.push(r);e:for(;0<i;){var o=i-1>>>1,a=e[o];if(0<To(a,r))e[o]=r,e[i]=a,i=o;else break e}}function rr(e){return e.length===0?null:e[0]}function Io(e){if(e.length===0)return null;var r=e[0],i=e.pop();if(i!==r){e[0]=i;e:for(var o=0,a=e.length,f=a>>>1;o<f;){var c=2*(o+1)-1,d=e[c],h=c+1,m=e[h];if(0>To(d,i))h<a&&0>To(m,d)?(e[o]=m,e[h]=i,o=h):(e[o]=d,e[c]=i,o=c);else if(h<a&&0>To(m,i))e[o]=m,e[h]=i,o=h;else break e}}return r}function To(e,r){var i=e.sortIndex-r.sortIndex;return i!==0?i:e.id-r.id}typeof performance=="object"&&typeof performance.now=="function"?(yh=performance,we.unstable_now=function(){return yh.now()}):(nl=Date,vh=nl.now(),we.unstable_now=function(){return nl.now()-vh});var yh,nl,vh,mr=[],Qr=[],ME=1,Vt=null,Dt=3,Ao=!1,hn=!1,qi=!1,Fh=typeof setTimeout=="function"?setTimeout:null,Sh=typeof clearTimeout=="function"?clearTimeout:null,xh=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function sl(e){for(var r=rr(Qr);r!==null;){if(r.callback===null)Io(Qr);else if(r.startTime<=e)Io(Qr),r.sortIndex=r.expirationTime,ol(mr,r);else break;r=rr(Qr)}}function al(e){if(qi=!1,sl(e),!hn)if(rr(mr)!==null)hn=!0,fl(ll);else{var r=rr(Qr);r!==null&&cl(al,r.startTime-e)}}function ll(e,r){hn=!1,qi&&(qi=!1,Sh(Ki),Ki=-1),Ao=!0;var i=Dt;try{for(sl(r),Vt=rr(mr);Vt!==null&&(!(Vt.expirationTime>r)||e&&!Ih());){var o=Vt.callback;if(typeof o=="function"){Vt.callback=null,Dt=Vt.priorityLevel;var a=o(Vt.expirationTime<=r);r=we.unstable_now(),typeof a=="function"?Vt.callback=a:Vt===rr(mr)&&Io(mr),sl(r)}else Io(mr);Vt=rr(mr)}if(Vt!==null)var f=!0;else{var c=rr(Qr);c!==null&&cl(al,c.startTime-r),f=!1}return f}finally{Vt=null,Dt=i,Ao=!1}}var _o=!1,No=null,Ki=-1,Th=5,Nh=-1;function Ih(){return!(we.unstable_now()-Nh<Th)}function il(){if(No!==null){var e=we.unstable_now();Nh=e;var r=!0;try{r=No(!0,e)}finally{r?Ji():(_o=!1,No=null)}}else _o=!1}var Ji;typeof xh=="function"?Ji=function(){xh(il)}:typeof MessageChannel<"u"?(ul=new MessageChannel,Ch=ul.port2,ul.port1.onmessage=il,Ji=function(){Ch.postMessage(null)}):Ji=function(){Fh(il,0)};var ul,Ch;function fl(e){No=e,_o||(_o=!0,Ji())}function cl(e,r){Ki=Fh(function(){e(we.unstable_now())},r)}we.unstable_IdlePriority=5;we.unstable_ImmediatePriority=1;we.unstable_LowPriority=4;we.unstable_NormalPriority=3;we.unstable_Profiling=null;we.unstable_UserBlockingPriority=2;we.unstable_cancelCallback=function(e){e.callback=null};we.unstable_continueExecution=function(){hn||Ao||(hn=!0,fl(ll))};we.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Th=0<e?Math.floor(1e3/e):5};we.unstable_getCurrentPriorityLevel=function(){return Dt};we.unstable_getFirstCallbackNode=function(){return rr(mr)};we.unstable_next=function(e){switch(Dt){case 1:case 2:case 3:var r=3;break;default:r=Dt}var i=Dt;Dt=r;try{return e()}finally{Dt=i}};we.unstable_pauseExecution=function(){};we.unstable_requestPaint=function(){};we.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=Dt;Dt=e;try{return r()}finally{Dt=i}};we.unstable_scheduleCallback=function(e,r,i){var o=we.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?o+i:o):i=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=i+a,e={id:ME++,callback:r,priorityLevel:e,startTime:i,expirationTime:a,sortIndex:-1},i>o?(e.sortIndex=i,ol(Qr,e),rr(mr)===null&&e===rr(Qr)&&(qi?(Sh(Ki),Ki=-1):qi=!0,cl(al,i-o))):(e.sortIndex=a,ol(mr,e),hn||Ao||(hn=!0,fl(ll))),e};we.unstable_shouldYield=Ih;we.unstable_wrapCallback=function(e){var r=Dt;return function(){var i=Dt;Dt=r;try{return e.apply(this,arguments)}finally{Dt=i}}}});var Lh=Ie((K2,_h)=>{"use strict";D();_h.exports=Ah()});var Oh=Ie((ex,wh)=>{"use strict";D();wh.exports=function(r){var i={},o=ie(),a=Lh(),f=Object.assign;function c(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,u=1;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),q=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Y=Symbol.iterator;function H(t){return t===null||typeof t!="object"?null:(t=Y&&t[Y]||t["@@iterator"],typeof t=="function"?t:null)}function ne(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case v:return"Fragment";case m:return"Portal";case x:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case B:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case R:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case k:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case j:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case q:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}function Me(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ne(n);case 8:return n===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Le(t){var n=t,u=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(u=n.return),t=n.return;while(t)}return n.tag===3?u:null}function Ae(t){if(Le(t)!==t)throw Error(c(188))}function ze(t){var n=t.alternate;if(!n){if(n=Le(t),n===null)throw Error(c(188));return n!==t?null:t}for(var u=t,s=n;;){var l=u.return;if(l===null)break;var p=l.alternate;if(p===null){if(s=l.return,s!==null){u=s;continue}break}if(l.child===p.child){for(p=l.child;p;){if(p===u)return Ae(l),t;if(p===s)return Ae(l),n;p=p.sibling}throw Error(c(188))}if(u.return!==s.return)u=l,s=p;else{for(var g=!1,F=l.child;F;){if(F===u){g=!0,u=l,s=p;break}if(F===s){g=!0,s=l,u=p;break}F=F.sibling}if(!g){for(F=p.child;F;){if(F===u){g=!0,u=p,s=l;break}if(F===s){g=!0,s=p,u=l;break}F=F.sibling}if(!g)throw Error(c(189))}}if(u.alternate!==s)throw Error(c(190))}if(u.tag!==3)throw Error(c(188));return u.stateNode.current===u?t:n}function et(t){return t=ze(t),t!==null?ot(t):null}function ot(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=ot(t);if(n!==null)return n;t=t.sibling}return null}function Et(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){if(t.tag!==4){var n=Et(t);if(n!==null)return n}t=t.sibling}return null}var Ne=Array.isArray,Rt=r.getPublicInstance,Zr=r.getRootHostContext,$e=r.getChildHostContext,Ge=r.prepareForCommit,Xt=r.resetAfterCommit,vr=r.createInstance,ir=r.appendInitialChild,ce=r.finalizeInitialChildren,Br=r.prepareUpdate,br=r.shouldSetTextContent,pi=r.createTextInstance,di=r.scheduleTimeout,Qe=r.cancelTimeout,xr=r.noTimeout,kr=r.isPrimaryRenderer,Je=r.supportsMutation,Ct=r.supportsPersistence,ct=r.supportsHydration,Cr=r.getInstanceFromNode,yu=r.preparePortalMount,vu=r.getCurrentEventPriority,vn=r.detachDeletedInstance,hi=r.supportsMicrotasks,xu=r.scheduleMicrotask,Ur=r.supportsTestSelectors,Cu=r.findFiberRoot,xn=r.getBoundingRect,Cn=r.getTextContent,Bt=r.isHiddenSubtree,Fn=r.matchAccessibilityRole,mi=r.setFocusIfFocusable,en=r.setupIntersectionObserver,Hr=r.appendChild,Sn=r.appendChildToContainer,ur=r.commitTextUpdate,Di=r.commitMount,Yt=r.commitUpdate,gi=r.insertBefore,or=r.insertInContainerBefore,Ei=r.removeChild,Ns=r.removeChildFromContainer,Tn=r.resetTextContent,Is=r.hideInstance,As=r.hideTextInstance,_s=r.unhideInstance,$t=r.unhideTextInstance,Nn=r.clearContainer,Fu=r.cloneInstance,Ft=r.createContainerChildSet,yi=r.appendChildToContainerChildSet,In=r.finalizeContainerChildren,tn=r.replaceContainerChildren,An=r.cloneHiddenInstance,_n=r.cloneHiddenTextInstance,vi=r.canHydrateInstance,Ls=r.canHydrateTextInstance,ws=r.canHydrateSuspenseInstance,Su=r.isSuspenseInstancePending,xi=r.isSuspenseInstanceFallback,Os=r.getSuspenseInstanceFallbackErrorDetails,Ps=r.registerSuspenseInstanceRetry,Ln=r.getNextHydratableSibling,Tu=r.getFirstHydratableChild,wn=r.getFirstHydratableChildWithinContainer,Nu=r.getFirstHydratableChildWithinSuspenseInstance,Rs=r.hydrateInstance,Iu=r.hydrateTextInstance,On=r.hydrateSuspenseInstance,Bs=r.getNextHydratableInstanceAfterSuspenseInstance,Au=r.commitHydratedContainer,Ci=r.commitHydratedSuspenseInstance,Qt=r.clearSuspenseBoundary,_u=r.clearSuspenseBoundaryFromContainer,y=r.shouldDeleteUnhydratedTailInstances,E=r.didNotMatchHydratedContainerTextInstance,T=r.didNotMatchHydratedTextInstance,I;function N(t){if(I===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
|
|
4
|
-
`+I+t}var L=!1;function M(t,n){if(!t||L)return"";L=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(W){var s=W}Reflect.construct(t,[],n)}else{try{n.call()}catch(W){s=W}t.call(n.prototype)}else{try{throw Error()}catch(W){s=W}t()}}catch(W){if(W&&s&&typeof W.stack=="string"){for(var l=W.stack.split(`
|
|
5
|
-
`),p=s.stack.split(`
|
|
6
|
-
`),g=l.length-1,F=p.length-1;1<=g&&0<=F&&l[g]!==p[F];)F--;for(;1<=g&&0<=F;g--,F--)if(l[g]!==p[F]){if(g!==1||F!==1)do if(g--,F--,0>F||l[g]!==p[F]){var _=`
|
|
7
|
-
`+l[g].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=g&&0<=F);break}}}finally{L=!1,Error.prepareStackTrace=u}return(t=t?t.displayName||t.name:"")?N(t):""}var b=Object.prototype.hasOwnProperty,G=[],U=-1;function V(t){return{current:t}}function te(t){0>U||(t.current=G[U],G[U]=null,U--)}function re(t,n){U++,G[U]=t.current,t.current=n}var pe={},oe=V(pe),Ee=V(!1),St=pe;function Tt(t,n){var u=t.type.contextTypes;if(!u)return pe;var s=t.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===n)return s.__reactInternalMemoizedMaskedChildContext;var l={},p;for(p in u)l[p]=n[p];return s&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=l),l}function Ve(t){return t=t.childContextTypes,t!=null}function Mr(){te(Ee),te(oe)}function Fr(t,n,u){if(oe.current!==pe)throw Error(c(168));re(oe,n),re(Ee,u)}function Fi(t,n,u){var s=t.stateNode;if(n=n.childContextTypes,typeof s.getChildContext!="function")return u;s=s.getChildContext();for(var l in s)if(!(l in n))throw Error(c(108,Me(t)||"Unknown",l));return f({},u,s)}function rn(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||pe,St=oe.current,re(oe,t),re(Ee,Ee.current),!0}function Sf(t,n,u){var s=t.stateNode;if(!s)throw Error(c(169));u?(t=Fi(t,n,St),s.__reactInternalMemoizedMergedChildContext=t,te(Ee),te(oe),re(oe,t)):te(Ee),re(Ee,u)}var Jt=Math.clz32?Math.clz32:_g,Ig=Math.log,Ag=Math.LN2;function _g(t){return t>>>=0,t===0?32:31-(Ig(t)/Ag|0)|0}var Lu=64,wu=4194304;function Si(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ou(t,n){var u=t.pendingLanes;if(u===0)return 0;var s=0,l=t.suspendedLanes,p=t.pingedLanes,g=u&268435455;if(g!==0){var F=g&~l;F!==0?s=Si(F):(p&=g,p!==0&&(s=Si(p)))}else g=u&~l,g!==0?s=Si(g):p!==0&&(s=Si(p));if(s===0)return 0;if(n!==0&&n!==s&&!(n&l)&&(l=s&-s,p=n&-n,l>=p||l===16&&(p&4194240)!==0))return n;if(s&4&&(s|=u&16),n=t.entangledLanes,n!==0)for(t=t.entanglements,n&=s;0<n;)u=31-Jt(n),l=1<<u,s|=t[u],n&=~l;return s}function Lg(t,n){switch(t){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wg(t,n){for(var u=t.suspendedLanes,s=t.pingedLanes,l=t.expirationTimes,p=t.pendingLanes;0<p;){var g=31-Jt(p),F=1<<g,_=l[g];_===-1?(!(F&u)||F&s)&&(l[g]=Lg(F,n)):_<=n&&(t.expiredLanes|=F),p&=~F}}function bs(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Tf(){var t=Lu;return Lu<<=1,!(Lu&4194240)&&(Lu=64),t}function ks(t){for(var n=[],u=0;31>u;u++)n.push(t);return n}function Ti(t,n,u){t.pendingLanes|=n,n!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,n=31-Jt(n),t[n]=u}function Og(t,n){var u=t.pendingLanes&~n;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=n,t.mutableReadLanes&=n,t.entangledLanes&=n,n=t.entanglements;var s=t.eventTimes;for(t=t.expirationTimes;0<u;){var l=31-Jt(u),p=1<<l;n[l]=0,s[l]=-1,t[l]=-1,u&=~p}}function Us(t,n){var u=t.entangledLanes|=n;for(t=t.entanglements;u;){var s=31-Jt(u),l=1<<s;l&n|t[s]&n&&(t[s]|=n),u&=~l}}var xe=0;function Nf(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Hs=a.unstable_scheduleCallback,If=a.unstable_cancelCallback,Pg=a.unstable_shouldYield,Rg=a.unstable_requestPaint,tt=a.unstable_now,Ms=a.unstable_ImmediatePriority,Bg=a.unstable_UserBlockingPriority,Gs=a.unstable_NormalPriority,bg=a.unstable_IdlePriority,Pu=null,sr=null;function kg(t){if(sr&&typeof sr.onCommitFiberRoot=="function")try{sr.onCommitFiberRoot(Pu,t,void 0,(t.current.flags&128)===128)}catch{}}function Ug(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var qt=typeof Object.is=="function"?Object.is:Ug,Sr=null,Ru=!1,js=!1;function Af(t){Sr===null?Sr=[t]:Sr.push(t)}function Hg(t){Ru=!0,Af(t)}function ar(){if(!js&&Sr!==null){js=!0;var t=0,n=xe;try{var u=Sr;for(xe=1;t<u.length;t++){var s=u[t];do s=s(!0);while(s!==null)}Sr=null,Ru=!1}catch(l){throw Sr!==null&&(Sr=Sr.slice(t+1)),Hs(Ms,ar),l}finally{xe=n,js=!1}}return null}var Pn=[],Rn=0,Bu=null,bu=0,bt=[],kt=0,nn=null,Tr=1,Nr="";function un(t,n){Pn[Rn++]=bu,Pn[Rn++]=Bu,Bu=t,bu=n}function _f(t,n,u){bt[kt++]=Tr,bt[kt++]=Nr,bt[kt++]=nn,nn=t;var s=Tr;t=Nr;var l=32-Jt(s)-1;s&=~(1<<l),u+=1;var p=32-Jt(n)+l;if(30<p){var g=l-l%5;p=(s&(1<<g)-1).toString(32),s>>=g,l-=g,Tr=1<<32-Jt(n)+l|u<<l|s,Nr=p+t}else Tr=1<<p|u<<l|s,Nr=t}function Ws(t){t.return!==null&&(un(t,1),_f(t,1,0))}function zs(t){for(;t===Bu;)Bu=Pn[--Rn],Pn[Rn]=null,bu=Pn[--Rn],Pn[Rn]=null;for(;t===nn;)nn=bt[--kt],bt[kt]=null,Nr=bt[--kt],bt[kt]=null,Tr=bt[--kt],bt[kt]=null}var wt=null,Ut=null,Be=!1,Ni=!1,Kt=null;function Lf(t,n){var u=Wt(5,null,null,0);u.elementType="DELETED",u.stateNode=n,u.return=t,n=t.deletions,n===null?(t.deletions=[u],t.flags|=16):n.push(u)}function wf(t,n){switch(t.tag){case 5:return n=vi(n,t.type,t.pendingProps),n!==null?(t.stateNode=n,wt=t,Ut=Tu(n),!0):!1;case 6:return n=Ls(n,t.pendingProps),n!==null?(t.stateNode=n,wt=t,Ut=null,!0):!1;case 13:if(n=ws(n),n!==null){var u=nn!==null?{id:Tr,overflow:Nr}:null;return t.memoizedState={dehydrated:n,treeContext:u,retryLane:1073741824},u=Wt(18,null,null,0),u.stateNode=n,u.return=t,t.child=u,wt=t,Ut=null,!0}return!1;default:return!1}}function Vs(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Xs(t){if(Be){var n=Ut;if(n){var u=n;if(!wf(t,n)){if(Vs(t))throw Error(c(418));n=Ln(u);var s=wt;n&&wf(t,n)?Lf(s,u):(t.flags=t.flags&-4097|2,Be=!1,wt=t)}}else{if(Vs(t))throw Error(c(418));t.flags=t.flags&-4097|2,Be=!1,wt=t}}}function Of(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;wt=t}function ku(t){if(!ct||t!==wt)return!1;if(!Be)return Of(t),Be=!0,!1;if(t.tag!==3&&(t.tag!==5||y(t.type)&&!br(t.type,t.memoizedProps))){var n=Ut;if(n){if(Vs(t))throw Pf(),Error(c(418));for(;n;)Lf(t,n),n=Ln(n)}}if(Of(t),t.tag===13){if(!ct)throw Error(c(316));if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ut=Bs(t)}else Ut=wt?Ln(t.stateNode):null;return!0}function Pf(){for(var t=Ut;t;)t=Ln(t)}function Bn(){ct&&(Ut=wt=null,Ni=Be=!1)}function Ys(t){Kt===null?Kt=[t]:Kt.push(t)}var Mg=d.ReactCurrentBatchConfig;function Uu(t,n){if(qt(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var u=Object.keys(t),s=Object.keys(n);if(u.length!==s.length)return!1;for(s=0;s<u.length;s++){var l=u[s];if(!b.call(n,l)||!qt(t[l],n[l]))return!1}return!0}function Gg(t){switch(t.tag){case 5:return N(t.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return t=M(t.type,!1),t;case 11:return t=M(t.type.render,!1),t;case 1:return t=M(t.type,!0),t;default:return""}}function Zt(t,n){if(t&&t.defaultProps){n=f({},n),t=t.defaultProps;for(var u in t)n[u]===void 0&&(n[u]=t[u]);return n}return n}var Hu=V(null),Mu=null,bn=null,$s=null;function Qs(){$s=bn=Mu=null}function Rf(t,n,u){kr?(re(Hu,n._currentValue),n._currentValue=u):(re(Hu,n._currentValue2),n._currentValue2=u)}function Js(t){var n=Hu.current;te(Hu),kr?t._currentValue=n:t._currentValue2=n}function qs(t,n,u){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===u)break;t=t.return}}function kn(t,n){Mu=t,$s=bn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&n&&(Nt=!0),t.firstContext=null)}function Ht(t){var n=kr?t._currentValue:t._currentValue2;if($s!==t)if(t={context:t,memoizedValue:n,next:null},bn===null){if(Mu===null)throw Error(c(308));bn=t,Mu.dependencies={lanes:0,firstContext:t}}else bn=bn.next=t;return n}var on=null;function Ks(t){on===null?on=[t]:on.push(t)}function Bf(t,n,u,s){var l=n.interleaved;return l===null?(u.next=u,Ks(n)):(u.next=l.next,l.next=u),n.interleaved=u,lr(t,s)}function lr(t,n){t.lanes|=n;var u=t.alternate;for(u!==null&&(u.lanes|=n),u=t,t=t.return;t!==null;)t.childLanes|=n,u=t.alternate,u!==null&&(u.childLanes|=n),u=t,t=t.return;return u.tag===3?u.stateNode:null}var Gr=!1;function Zs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bf(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ir(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function jr(t,n,u){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,de&2){var l=s.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),s.pending=n,lr(t,u)}return l=s.interleaved,l===null?(n.next=n,Ks(s)):(n.next=l.next,l.next=n),s.interleaved=n,lr(t,u)}function Gu(t,n,u){if(n=n.updateQueue,n!==null&&(n=n.shared,(u&4194240)!==0)){var s=n.lanes;s&=t.pendingLanes,u|=s,n.lanes=u,Us(t,u)}}function kf(t,n){var u=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,u===s)){var l=null,p=null;if(u=u.firstBaseUpdate,u!==null){do{var g={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};p===null?l=p=g:p=p.next=g,u=u.next}while(u!==null);p===null?l=p=n:p=p.next=n}else l=p=n;u={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:p,shared:s.shared,effects:s.effects},t.updateQueue=u;return}t=u.lastBaseUpdate,t===null?u.firstBaseUpdate=n:t.next=n,u.lastBaseUpdate=n}function ju(t,n,u,s){var l=t.updateQueue;Gr=!1;var p=l.firstBaseUpdate,g=l.lastBaseUpdate,F=l.shared.pending;if(F!==null){l.shared.pending=null;var _=F,W=_.next;_.next=null,g===null?p=W:g.next=W,g=_;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,F=Z.lastBaseUpdate,F!==g&&(F===null?Z.firstBaseUpdate=W:F.next=W,Z.lastBaseUpdate=_))}if(p!==null){var ae=l.baseState;g=0,Z=W=_=null,F=p;do{var Q=F.lane,Oe=F.eventTime;if((s&Q)===Q){Z!==null&&(Z=Z.next={eventTime:Oe,lane:0,tag:F.tag,payload:F.payload,callback:F.callback,next:null});e:{var _e=t,_t=F;switch(Q=n,Oe=u,_t.tag){case 1:if(_e=_t.payload,typeof _e=="function"){ae=_e.call(Oe,ae,Q);break e}ae=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=_t.payload,Q=typeof _e=="function"?_e.call(Oe,ae,Q):_e,Q==null)break e;ae=f({},ae,Q);break e;case 2:Gr=!0}}F.callback!==null&&F.lane!==0&&(t.flags|=64,Q=l.effects,Q===null?l.effects=[F]:Q.push(F))}else Oe={eventTime:Oe,lane:Q,tag:F.tag,payload:F.payload,callback:F.callback,next:null},Z===null?(W=Z=Oe,_=ae):Z=Z.next=Oe,g|=Q;if(F=F.next,F===null){if(F=l.shared.pending,F===null)break;Q=F,F=Q.next,Q.next=null,l.lastBaseUpdate=Q,l.shared.pending=null}}while(!0);if(Z===null&&(_=ae),l.baseState=_,l.firstBaseUpdate=W,l.lastBaseUpdate=Z,n=l.shared.interleaved,n!==null){l=n;do g|=l.lane,l=l.next;while(l!==n)}else p===null&&(l.shared.lanes=0);an|=g,t.lanes=g,t.memoizedState=ae}}function Uf(t,n,u){if(t=n.effects,n.effects=null,t!==null)for(n=0;n<t.length;n++){var s=t[n],l=s.callback;if(l!==null){if(s.callback=null,s=u,typeof l!="function")throw Error(c(191,l));l.call(s)}}}var Hf=new o.Component().refs;function ea(t,n,u,s){n=t.memoizedState,u=u(s,n),u=u==null?n:f({},n,u),t.memoizedState=u,t.lanes===0&&(t.updateQueue.baseState=u)}var Wu={isMounted:function(t){return(t=t._reactInternals)?Le(t)===t:!1},enqueueSetState:function(t,n,u){t=t._reactInternals;var s=mt(),l=Vr(t),p=Ir(s,l);p.payload=n,u!=null&&(p.callback=u),n=jr(t,p,l),n!==null&&(jt(n,t,l,s),Gu(n,t,l))},enqueueReplaceState:function(t,n,u){t=t._reactInternals;var s=mt(),l=Vr(t),p=Ir(s,l);p.tag=1,p.payload=n,u!=null&&(p.callback=u),n=jr(t,p,l),n!==null&&(jt(n,t,l,s),Gu(n,t,l))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var u=mt(),s=Vr(t),l=Ir(u,s);l.tag=2,n!=null&&(l.callback=n),n=jr(t,l,s),n!==null&&(jt(n,t,s,u),Gu(n,t,s))}};function Mf(t,n,u,s,l,p,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,p,g):n.prototype&&n.prototype.isPureReactComponent?!Uu(u,s)||!Uu(l,p):!0}function Gf(t,n,u){var s=!1,l=pe,p=n.contextType;return typeof p=="object"&&p!==null?p=Ht(p):(l=Ve(n)?St:oe.current,s=n.contextTypes,p=(s=s!=null)?Tt(t,l):pe),n=new n(u,p),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Wu,t.stateNode=n,n._reactInternals=t,s&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=l,t.__reactInternalMemoizedMaskedChildContext=p),n}function jf(t,n,u,s){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(u,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(u,s),n.state!==t&&Wu.enqueueReplaceState(n,n.state,null)}function ta(t,n,u,s){var l=t.stateNode;l.props=u,l.state=t.memoizedState,l.refs=Hf,Zs(t);var p=n.contextType;typeof p=="object"&&p!==null?l.context=Ht(p):(p=Ve(n)?St:oe.current,l.context=Tt(t,p)),l.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(ea(t,n,p,u),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(n=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),n!==l.state&&Wu.enqueueReplaceState(l,l.state,null),ju(t,u,l,s),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308)}function Ii(t,n,u){if(t=u.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(c(309));var s=u.stateNode}if(!s)throw Error(c(147,t));var l=s,p=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===p?n.ref:(n=function(g){var F=l.refs;F===Hf&&(F=l.refs={}),g===null?delete F[p]:F[p]=g},n._stringRef=p,n)}if(typeof t!="string")throw Error(c(284));if(!u._owner)throw Error(c(290,t))}return t}function zu(t,n){throw t=Object.prototype.toString.call(n),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function Wf(t){var n=t._init;return n(t._payload)}function zf(t){function n(A,S){if(t){var w=A.deletions;w===null?(A.deletions=[S],A.flags|=16):w.push(S)}}function u(A,S){if(!t)return null;for(;S!==null;)n(A,S),S=S.sibling;return null}function s(A,S){for(A=new Map;S!==null;)S.key!==null?A.set(S.key,S):A.set(S.index,S),S=S.sibling;return A}function l(A,S){return A=Yr(A,S),A.index=0,A.sibling=null,A}function p(A,S,w){return A.index=w,t?(w=A.alternate,w!==null?(w=w.index,w<S?(A.flags|=2,S):w):(A.flags|=2,S)):(A.flags|=1048576,S)}function g(A){return t&&A.alternate===null&&(A.flags|=2),A}function F(A,S,w,J){return S===null||S.tag!==6?(S=ja(w,A.mode,J),S.return=A,S):(S=l(S,w),S.return=A,S)}function _(A,S,w,J){var ue=w.type;return ue===v?Z(A,S,w.props.children,J,w.key):S!==null&&(S.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===q&&Wf(ue)===S.type)?(J=l(S,w.props),J.ref=Ii(A,S,w),J.return=A,J):(J=go(w.type,w.key,w.props,null,A.mode,J),J.ref=Ii(A,S,w),J.return=A,J)}function W(A,S,w,J){return S===null||S.tag!==4||S.stateNode.containerInfo!==w.containerInfo||S.stateNode.implementation!==w.implementation?(S=Wa(w,A.mode,J),S.return=A,S):(S=l(S,w.children||[]),S.return=A,S)}function Z(A,S,w,J,ue){return S===null||S.tag!==7?(S=pn(w,A.mode,J,ue),S.return=A,S):(S=l(S,w),S.return=A,S)}function ae(A,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return S=ja(""+S,A.mode,w),S.return=A,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case h:return w=go(S.type,S.key,S.props,null,A.mode,w),w.ref=Ii(A,null,S),w.return=A,w;case m:return S=Wa(S,A.mode,w),S.return=A,S;case q:var J=S._init;return ae(A,J(S._payload),w)}if(Ne(S)||H(S))return S=pn(S,A.mode,w,null),S.return=A,S;zu(A,S)}return null}function Q(A,S,w,J){var ue=S!==null?S.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return ue!==null?null:F(A,S,""+w,J);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case h:return w.key===ue?_(A,S,w,J):null;case m:return w.key===ue?W(A,S,w,J):null;case q:return ue=w._init,Q(A,S,ue(w._payload),J)}if(Ne(w)||H(w))return ue!==null?null:Z(A,S,w,J,null);zu(A,w)}return null}function Oe(A,S,w,J,ue){if(typeof J=="string"&&J!==""||typeof J=="number")return A=A.get(w)||null,F(S,A,""+J,ue);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case h:return A=A.get(J.key===null?w:J.key)||null,_(S,A,J,ue);case m:return A=A.get(J.key===null?w:J.key)||null,W(S,A,J,ue);case q:var fe=J._init;return Oe(A,S,w,fe(J._payload),ue)}if(Ne(J)||H(J))return A=A.get(w)||null,Z(S,A,J,ue,null);zu(S,J)}return null}function _e(A,S,w,J){for(var ue=null,fe=null,le=S,Ce=S=0,it=null;le!==null&&Ce<w.length;Ce++){le.index>Ce?(it=le,le=null):it=le.sibling;var Fe=Q(A,le,w[Ce],J);if(Fe===null){le===null&&(le=it);break}t&&le&&Fe.alternate===null&&n(A,le),S=p(Fe,S,Ce),fe===null?ue=Fe:fe.sibling=Fe,fe=Fe,le=it}if(Ce===w.length)return u(A,le),Be&&un(A,Ce),ue;if(le===null){for(;Ce<w.length;Ce++)le=ae(A,w[Ce],J),le!==null&&(S=p(le,S,Ce),fe===null?ue=le:fe.sibling=le,fe=le);return Be&&un(A,Ce),ue}for(le=s(A,le);Ce<w.length;Ce++)it=Oe(le,A,Ce,w[Ce],J),it!==null&&(t&&it.alternate!==null&&le.delete(it.key===null?Ce:it.key),S=p(it,S,Ce),fe===null?ue=it:fe.sibling=it,fe=it);return t&&le.forEach(function($r){return n(A,$r)}),Be&&un(A,Ce),ue}function _t(A,S,w,J){var ue=H(w);if(typeof ue!="function")throw Error(c(150));if(w=ue.call(w),w==null)throw Error(c(151));for(var fe=ue=null,le=S,Ce=S=0,it=null,Fe=w.next();le!==null&&!Fe.done;Ce++,Fe=w.next()){le.index>Ce?(it=le,le=null):it=le.sibling;var $r=Q(A,le,Fe.value,J);if($r===null){le===null&&(le=it);break}t&&le&&$r.alternate===null&&n(A,le),S=p($r,S,Ce),fe===null?ue=$r:fe.sibling=$r,fe=$r,le=it}if(Fe.done)return u(A,le),Be&&un(A,Ce),ue;if(le===null){for(;!Fe.done;Ce++,Fe=w.next())Fe=ae(A,Fe.value,J),Fe!==null&&(S=p(Fe,S,Ce),fe===null?ue=Fe:fe.sibling=Fe,fe=Fe);return Be&&un(A,Ce),ue}for(le=s(A,le);!Fe.done;Ce++,Fe=w.next())Fe=Oe(le,A,Ce,Fe.value,J),Fe!==null&&(t&&Fe.alternate!==null&&le.delete(Fe.key===null?Ce:Fe.key),S=p(Fe,S,Ce),fe===null?ue=Fe:fe.sibling=Fe,fe=Fe);return t&&le.forEach(function(g0){return n(A,g0)}),Be&&un(A,Ce),ue}function Lr(A,S,w,J){if(typeof w=="object"&&w!==null&&w.type===v&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case h:e:{for(var ue=w.key,fe=S;fe!==null;){if(fe.key===ue){if(ue=w.type,ue===v){if(fe.tag===7){u(A,fe.sibling),S=l(fe,w.props.children),S.return=A,A=S;break e}}else if(fe.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===q&&Wf(ue)===fe.type){u(A,fe.sibling),S=l(fe,w.props),S.ref=Ii(A,fe,w),S.return=A,A=S;break e}u(A,fe);break}else n(A,fe);fe=fe.sibling}w.type===v?(S=pn(w.props.children,A.mode,J,w.key),S.return=A,A=S):(J=go(w.type,w.key,w.props,null,A.mode,J),J.ref=Ii(A,S,w),J.return=A,A=J)}return g(A);case m:e:{for(fe=w.key;S!==null;){if(S.key===fe)if(S.tag===4&&S.stateNode.containerInfo===w.containerInfo&&S.stateNode.implementation===w.implementation){u(A,S.sibling),S=l(S,w.children||[]),S.return=A,A=S;break e}else{u(A,S);break}else n(A,S);S=S.sibling}S=Wa(w,A.mode,J),S.return=A,A=S}return g(A);case q:return fe=w._init,Lr(A,S,fe(w._payload),J)}if(Ne(w))return _e(A,S,w,J);if(H(w))return _t(A,S,w,J);zu(A,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,S!==null&&S.tag===6?(u(A,S.sibling),S=l(S,w),S.return=A,A=S):(u(A,S),S=ja(w,A.mode,J),S.return=A,A=S),g(A)):u(A,S)}return Lr}var Un=zf(!0),Vf=zf(!1),Ai={},Mt=V(Ai),_i=V(Ai),Hn=V(Ai);function fr(t){if(t===Ai)throw Error(c(174));return t}function ra(t,n){re(Hn,n),re(_i,t),re(Mt,Ai),t=Zr(n),te(Mt),re(Mt,t)}function Mn(){te(Mt),te(_i),te(Hn)}function Xf(t){var n=fr(Hn.current),u=fr(Mt.current);n=$e(u,t.type,n),u!==n&&(re(_i,t),re(Mt,n))}function na(t){_i.current===t&&(te(Mt),te(_i))}var ke=V(0);function Vu(t){for(var n=t;n!==null;){if(n.tag===13){var u=n.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Su(u)||xi(u)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(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 null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ia=[];function ua(){for(var t=0;t<ia.length;t++){var n=ia[t];kr?n._workInProgressVersionPrimary=null:n._workInProgressVersionSecondary=null}ia.length=0}var Xu=d.ReactCurrentDispatcher,oa=d.ReactCurrentBatchConfig,sn=0,Ue=null,qe=null,rt=null,Yu=!1,Li=!1,wi=0,jg=0;function pt(){throw Error(c(321))}function sa(t,n){if(n===null)return!1;for(var u=0;u<n.length&&u<t.length;u++)if(!qt(t[u],n[u]))return!1;return!0}function aa(t,n,u,s,l,p){if(sn=p,Ue=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Xu.current=t===null||t.memoizedState===null?Xg:Yg,t=u(s,l),Li){p=0;do{if(Li=!1,wi=0,25<=p)throw Error(c(301));p+=1,rt=qe=null,n.updateQueue=null,Xu.current=$g,t=u(s,l)}while(Li)}if(Xu.current=Ju,n=qe!==null&&qe.next!==null,sn=0,rt=qe=Ue=null,Yu=!1,n)throw Error(c(300));return t}function la(){var t=wi!==0;return wi=0,t}function cr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Ue.memoizedState=rt=t:rt=rt.next=t,rt}function Gt(){if(qe===null){var t=Ue.alternate;t=t!==null?t.memoizedState:null}else t=qe.next;var n=rt===null?Ue.memoizedState:rt.next;if(n!==null)rt=n,qe=t;else{if(t===null)throw Error(c(310));qe=t,t={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},rt===null?Ue.memoizedState=rt=t:rt=rt.next=t}return rt}function Oi(t,n){return typeof n=="function"?n(t):n}function fa(t){var n=Gt(),u=n.queue;if(u===null)throw Error(c(311));u.lastRenderedReducer=t;var s=qe,l=s.baseQueue,p=u.pending;if(p!==null){if(l!==null){var g=l.next;l.next=p.next,p.next=g}s.baseQueue=l=p,u.pending=null}if(l!==null){p=l.next,s=s.baseState;var F=g=null,_=null,W=p;do{var Z=W.lane;if((sn&Z)===Z)_!==null&&(_=_.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),s=W.hasEagerState?W.eagerState:t(s,W.action);else{var ae={lane:Z,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};_===null?(F=_=ae,g=s):_=_.next=ae,Ue.lanes|=Z,an|=Z}W=W.next}while(W!==null&&W!==p);_===null?g=s:_.next=F,qt(s,n.memoizedState)||(Nt=!0),n.memoizedState=s,n.baseState=g,n.baseQueue=_,u.lastRenderedState=s}if(t=u.interleaved,t!==null){l=t;do p=l.lane,Ue.lanes|=p,an|=p,l=l.next;while(l!==t)}else l===null&&(u.lanes=0);return[n.memoizedState,u.dispatch]}function ca(t){var n=Gt(),u=n.queue;if(u===null)throw Error(c(311));u.lastRenderedReducer=t;var s=u.dispatch,l=u.pending,p=n.memoizedState;if(l!==null){u.pending=null;var g=l=l.next;do p=t(p,g.action),g=g.next;while(g!==l);qt(p,n.memoizedState)||(Nt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),u.lastRenderedState=p}return[p,s]}function Yf(){}function $f(t,n){var u=Ue,s=Gt(),l=n(),p=!qt(s.memoizedState,l);if(p&&(s.memoizedState=l,Nt=!0),s=s.queue,pa(qf.bind(null,u,s,t),[t]),s.getSnapshot!==n||p||rt!==null&&rt.memoizedState.tag&1){if(u.flags|=2048,Pi(9,Jf.bind(null,u,s,l,n),void 0,null),nt===null)throw Error(c(349));sn&30||Qf(u,n,l)}return l}function Qf(t,n,u){t.flags|=16384,t={getSnapshot:n,value:u},n=Ue.updateQueue,n===null?(n={lastEffect:null,stores:null},Ue.updateQueue=n,n.stores=[t]):(u=n.stores,u===null?n.stores=[t]:u.push(t))}function Jf(t,n,u,s){n.value=u,n.getSnapshot=s,Kf(n)&&Zf(t)}function qf(t,n,u){return u(function(){Kf(n)&&Zf(t)})}function Kf(t){var n=t.getSnapshot;t=t.value;try{var u=n();return!qt(t,u)}catch{return!0}}function Zf(t){var n=lr(t,1);n!==null&&jt(n,t,1,-1)}function ec(t){var n=cr();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oi,lastRenderedState:t},n.queue=t,t=t.dispatch=Vg.bind(null,Ue,t),[n.memoizedState,t]}function Pi(t,n,u,s){return t={tag:t,create:n,destroy:u,deps:s,next:null},n=Ue.updateQueue,n===null?(n={lastEffect:null,stores:null},Ue.updateQueue=n,n.lastEffect=t.next=t):(u=n.lastEffect,u===null?n.lastEffect=t.next=t:(s=u.next,u.next=t,t.next=s,n.lastEffect=t)),t}function tc(){return Gt().memoizedState}function $u(t,n,u,s){var l=cr();Ue.flags|=t,l.memoizedState=Pi(1|n,u,void 0,s===void 0?null:s)}function Qu(t,n,u,s){var l=Gt();s=s===void 0?null:s;var p=void 0;if(qe!==null){var g=qe.memoizedState;if(p=g.destroy,s!==null&&sa(s,g.deps)){l.memoizedState=Pi(n,u,p,s);return}}Ue.flags|=t,l.memoizedState=Pi(1|n,u,p,s)}function rc(t,n){return $u(8390656,8,t,n)}function pa(t,n){return Qu(2048,8,t,n)}function nc(t,n){return Qu(4,2,t,n)}function ic(t,n){return Qu(4,4,t,n)}function uc(t,n){if(typeof n=="function")return t=t(),n(t),function(){n(null)};if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function oc(t,n,u){return u=u!=null?u.concat([t]):null,Qu(4,4,uc.bind(null,n,t),u)}function da(){}function sc(t,n){var u=Gt();n=n===void 0?null:n;var s=u.memoizedState;return s!==null&&n!==null&&sa(n,s[1])?s[0]:(u.memoizedState=[t,n],t)}function ac(t,n){var u=Gt();n=n===void 0?null:n;var s=u.memoizedState;return s!==null&&n!==null&&sa(n,s[1])?s[0]:(t=t(),u.memoizedState=[t,n],t)}function lc(t,n,u){return sn&21?(qt(u,n)||(u=Tf(),Ue.lanes|=u,an|=u,t.baseState=!0),n):(t.baseState&&(t.baseState=!1,Nt=!0),t.memoizedState=u)}function Wg(t,n){var u=xe;xe=u!==0&&4>u?u:4,t(!0);var s=oa.transition;oa.transition={};try{t(!1),n()}finally{xe=u,oa.transition=s}}function fc(){return Gt().memoizedState}function zg(t,n,u){var s=Vr(t);if(u={lane:s,action:u,hasEagerState:!1,eagerState:null,next:null},cc(t))pc(n,u);else if(u=Bf(t,n,u,s),u!==null){var l=mt();jt(u,t,s,l),dc(u,n,s)}}function Vg(t,n,u){var s=Vr(t),l={lane:s,action:u,hasEagerState:!1,eagerState:null,next:null};if(cc(t))pc(n,l);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var g=n.lastRenderedState,F=p(g,u);if(l.hasEagerState=!0,l.eagerState=F,qt(F,g)){var _=n.interleaved;_===null?(l.next=l,Ks(n)):(l.next=_.next,_.next=l),n.interleaved=l;return}}catch{}finally{}u=Bf(t,n,l,s),u!==null&&(l=mt(),jt(u,t,s,l),dc(u,n,s))}}function cc(t){var n=t.alternate;return t===Ue||n!==null&&n===Ue}function pc(t,n){Li=Yu=!0;var u=t.pending;u===null?n.next=n:(n.next=u.next,u.next=n),t.pending=n}function dc(t,n,u){if(u&4194240){var s=n.lanes;s&=t.pendingLanes,u|=s,n.lanes=u,Us(t,u)}}var Ju={readContext:Ht,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},Xg={readContext:Ht,useCallback:function(t,n){return cr().memoizedState=[t,n===void 0?null:n],t},useContext:Ht,useEffect:rc,useImperativeHandle:function(t,n,u){return u=u!=null?u.concat([t]):null,$u(4194308,4,uc.bind(null,n,t),u)},useLayoutEffect:function(t,n){return $u(4194308,4,t,n)},useInsertionEffect:function(t,n){return $u(4,2,t,n)},useMemo:function(t,n){var u=cr();return n=n===void 0?null:n,t=t(),u.memoizedState=[t,n],t},useReducer:function(t,n,u){var s=cr();return n=u!==void 0?u(n):n,s.memoizedState=s.baseState=n,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},s.queue=t,t=t.dispatch=zg.bind(null,Ue,t),[s.memoizedState,t]},useRef:function(t){var n=cr();return t={current:t},n.memoizedState=t},useState:ec,useDebugValue:da,useDeferredValue:function(t){return cr().memoizedState=t},useTransition:function(){var t=ec(!1),n=t[0];return t=Wg.bind(null,t[1]),cr().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,u){var s=Ue,l=cr();if(Be){if(u===void 0)throw Error(c(407));u=u()}else{if(u=n(),nt===null)throw Error(c(349));sn&30||Qf(s,n,u)}l.memoizedState=u;var p={value:u,getSnapshot:n};return l.queue=p,rc(qf.bind(null,s,p,t),[t]),s.flags|=2048,Pi(9,Jf.bind(null,s,p,u,n),void 0,null),u},useId:function(){var t=cr(),n=nt.identifierPrefix;if(Be){var u=Nr,s=Tr;u=(s&~(1<<32-Jt(s)-1)).toString(32)+u,n=":"+n+"R"+u,u=wi++,0<u&&(n+="H"+u.toString(32)),n+=":"}else u=jg++,n=":"+n+"r"+u.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},Yg={readContext:Ht,useCallback:sc,useContext:Ht,useEffect:pa,useImperativeHandle:oc,useInsertionEffect:nc,useLayoutEffect:ic,useMemo:ac,useReducer:fa,useRef:tc,useState:function(){return fa(Oi)},useDebugValue:da,useDeferredValue:function(t){var n=Gt();return lc(n,qe.memoizedState,t)},useTransition:function(){var t=fa(Oi)[0],n=Gt().memoizedState;return[t,n]},useMutableSource:Yf,useSyncExternalStore:$f,useId:fc,unstable_isNewReconciler:!1},$g={readContext:Ht,useCallback:sc,useContext:Ht,useEffect:pa,useImperativeHandle:oc,useInsertionEffect:nc,useLayoutEffect:ic,useMemo:ac,useReducer:ca,useRef:tc,useState:function(){return ca(Oi)},useDebugValue:da,useDeferredValue:function(t){var n=Gt();return qe===null?n.memoizedState=t:lc(n,qe.memoizedState,t)},useTransition:function(){var t=ca(Oi)[0],n=Gt().memoizedState;return[t,n]},useMutableSource:Yf,useSyncExternalStore:$f,useId:fc,unstable_isNewReconciler:!1};function Gn(t,n){try{var u="",s=n;do u+=Gg(s),s=s.return;while(s);var l=u}catch(p){l=`
|
|
8
|
-
Error generating stack: `+p.message+`
|
|
9
|
-
`+p.stack}return{value:t,source:n,stack:l,digest:null}}function ha(t,n,u){return{value:t,source:null,stack:u??null,digest:n??null}}function ma(t,n){try{console.error(n.value)}catch(u){setTimeout(function(){throw u})}}var Qg=typeof WeakMap=="function"?WeakMap:Map;function hc(t,n,u){u=Ir(-1,u),u.tag=3,u.payload={element:null};var s=n.value;return u.callback=function(){fo||(fo=!0,Ba=s),ma(t,n)},u}function mc(t,n,u){u=Ir(-1,u),u.tag=3;var s=t.type.getDerivedStateFromError;if(typeof s=="function"){var l=n.value;u.payload=function(){return s(l)},u.callback=function(){ma(t,n)}}var p=t.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(u.callback=function(){ma(t,n),typeof s!="function"&&(Wr===null?Wr=new Set([this]):Wr.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})}),u}function Dc(t,n,u){var s=t.pingCache;if(s===null){s=t.pingCache=new Qg;var l=new Set;s.set(n,l)}else l=s.get(n),l===void 0&&(l=new Set,s.set(n,l));l.has(u)||(l.add(u),t=l0.bind(null,t,n,u),n.then(t,t))}function gc(t){do{var n;if((n=t.tag===13)&&(n=t.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return t;t=t.return}while(t!==null);return null}function Ec(t,n,u,s,l){return t.mode&1?(t.flags|=65536,t.lanes=l,t):(t===n?t.flags|=65536:(t.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(n=Ir(-1,1),n.tag=2,jr(u,n,1))),u.lanes|=1),t)}var Jg=d.ReactCurrentOwner,Nt=!1;function yt(t,n,u,s){n.child=t===null?Vf(n,null,u,s):Un(n,t.child,u,s)}function yc(t,n,u,s,l){u=u.render;var p=n.ref;return kn(n,l),s=aa(t,n,u,s,p,l),u=la(),t!==null&&!Nt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~l,Ar(t,n,l)):(Be&&u&&Ws(n),n.flags|=1,yt(t,n,s,l),n.child)}function vc(t,n,u,s,l){if(t===null){var p=u.type;return typeof p=="function"&&!Ga(p)&&p.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(n.tag=15,n.type=p,xc(t,n,p,s,l)):(t=go(u.type,null,s,n,n.mode,l),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!(t.lanes&l)){var g=p.memoizedProps;if(u=u.compare,u=u!==null?u:Uu,u(g,s)&&t.ref===n.ref)return Ar(t,n,l)}return n.flags|=1,t=Yr(p,s),t.ref=n.ref,t.return=n,n.child=t}function xc(t,n,u,s,l){if(t!==null){var p=t.memoizedProps;if(Uu(p,s)&&t.ref===n.ref)if(Nt=!1,n.pendingProps=s=p,(t.lanes&l)!==0)t.flags&131072&&(Nt=!0);else return n.lanes=t.lanes,Ar(t,n,l)}return Da(t,n,u,s,l)}function Cc(t,n,u){var s=n.pendingProps,l=s.children,p=t!==null?t.memoizedState:null;if(s.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(Wn,Ot),Ot|=u;else{if(!(u&1073741824))return t=p!==null?p.baseLanes|u:u,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,re(Wn,Ot),Ot|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=p!==null?p.baseLanes:u,re(Wn,Ot),Ot|=s}else p!==null?(s=p.baseLanes|u,n.memoizedState=null):s=u,re(Wn,Ot),Ot|=s;return yt(t,n,l,u),n.child}function Fc(t,n){var u=n.ref;(t===null&&u!==null||t!==null&&t.ref!==u)&&(n.flags|=512,n.flags|=2097152)}function Da(t,n,u,s,l){var p=Ve(u)?St:oe.current;return p=Tt(n,p),kn(n,l),u=aa(t,n,u,s,p,l),s=la(),t!==null&&!Nt?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~l,Ar(t,n,l)):(Be&&s&&Ws(n),n.flags|=1,yt(t,n,u,l),n.child)}function Sc(t,n,u,s,l){if(Ve(u)){var p=!0;rn(n)}else p=!1;if(kn(n,l),n.stateNode===null)Ku(t,n),Gf(n,u,s),ta(n,u,s,l),s=!0;else if(t===null){var g=n.stateNode,F=n.memoizedProps;g.props=F;var _=g.context,W=u.contextType;typeof W=="object"&&W!==null?W=Ht(W):(W=Ve(u)?St:oe.current,W=Tt(n,W));var Z=u.getDerivedStateFromProps,ae=typeof Z=="function"||typeof g.getSnapshotBeforeUpdate=="function";ae||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(F!==s||_!==W)&&jf(n,g,s,W),Gr=!1;var Q=n.memoizedState;g.state=Q,ju(n,s,g,l),_=n.memoizedState,F!==s||Q!==_||Ee.current||Gr?(typeof Z=="function"&&(ea(n,u,Z,s),_=n.memoizedState),(F=Gr||Mf(n,u,F,s,Q,_,W))?(ae||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(n.flags|=4194308)):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=_),g.props=s,g.state=_,g.context=W,s=F):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{g=n.stateNode,bf(t,n),F=n.memoizedProps,W=n.type===n.elementType?F:Zt(n.type,F),g.props=W,ae=n.pendingProps,Q=g.context,_=u.contextType,typeof _=="object"&&_!==null?_=Ht(_):(_=Ve(u)?St:oe.current,_=Tt(n,_));var Oe=u.getDerivedStateFromProps;(Z=typeof Oe=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(F!==ae||Q!==_)&&jf(n,g,s,_),Gr=!1,Q=n.memoizedState,g.state=Q,ju(n,s,g,l);var _e=n.memoizedState;F!==ae||Q!==_e||Ee.current||Gr?(typeof Oe=="function"&&(ea(n,u,Oe,s),_e=n.memoizedState),(W=Gr||Mf(n,u,W,s,Q,_e,_)||!1)?(Z||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,_e,_),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,_e,_)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||F===t.memoizedProps&&Q===t.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||F===t.memoizedProps&&Q===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=_e),g.props=s,g.state=_e,g.context=_,s=W):(typeof g.componentDidUpdate!="function"||F===t.memoizedProps&&Q===t.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||F===t.memoizedProps&&Q===t.memoizedState||(n.flags|=1024),s=!1)}return ga(t,n,u,s,p,l)}function ga(t,n,u,s,l,p){Fc(t,n);var g=(n.flags&128)!==0;if(!s&&!g)return l&&Sf(n,u,!1),Ar(t,n,p);s=n.stateNode,Jg.current=n;var F=g&&typeof u.getDerivedStateFromError!="function"?null:s.render();return n.flags|=1,t!==null&&g?(n.child=Un(n,t.child,null,p),n.child=Un(n,null,F,p)):yt(t,n,F,p),n.memoizedState=s.state,l&&Sf(n,u,!0),n.child}function Tc(t){var n=t.stateNode;n.pendingContext?Fr(t,n.pendingContext,n.pendingContext!==n.context):n.context&&Fr(t,n.context,!1),ra(t,n.containerInfo)}function Nc(t,n,u,s,l){return Bn(),Ys(l),n.flags|=256,yt(t,n,u,s),n.child}var Ea={dehydrated:null,treeContext:null,retryLane:0};function ya(t){return{baseLanes:t,cachePool:null,transitions:null}}function Ic(t,n,u){var s=n.pendingProps,l=ke.current,p=!1,g=(n.flags&128)!==0,F;if((F=g)||(F=t!==null&&t.memoizedState===null?!1:(l&2)!==0),F?(p=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(l|=1),re(ke,l&1),t===null)return Xs(n),t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(n.mode&1?xi(t)?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(g=s.children,t=s.fallback,p?(s=n.mode,p=n.child,g={mode:"hidden",children:g},!(s&1)&&p!==null?(p.childLanes=0,p.pendingProps=g):p=Eo(g,s,0,null),t=pn(t,s,u,null),p.return=n,t.return=n,p.sibling=t,n.child=p,n.child.memoizedState=ya(u),n.memoizedState=Ea,t):va(n,g));if(l=t.memoizedState,l!==null&&(F=l.dehydrated,F!==null))return qg(t,n,g,s,F,l,u);if(p){p=s.fallback,g=n.mode,l=t.child,F=l.sibling;var _={mode:"hidden",children:s.children};return!(g&1)&&n.child!==l?(s=n.child,s.childLanes=0,s.pendingProps=_,n.deletions=null):(s=Yr(l,_),s.subtreeFlags=l.subtreeFlags&14680064),F!==null?p=Yr(F,p):(p=pn(p,g,u,null),p.flags|=2),p.return=n,s.return=n,s.sibling=p,n.child=s,s=p,p=n.child,g=t.child.memoizedState,g=g===null?ya(u):{baseLanes:g.baseLanes|u,cachePool:null,transitions:g.transitions},p.memoizedState=g,p.childLanes=t.childLanes&~u,n.memoizedState=Ea,s}return p=t.child,t=p.sibling,s=Yr(p,{mode:"visible",children:s.children}),!(n.mode&1)&&(s.lanes=u),s.return=n,s.sibling=null,t!==null&&(u=n.deletions,u===null?(n.deletions=[t],n.flags|=16):u.push(t)),n.child=s,n.memoizedState=null,s}function va(t,n){return n=Eo({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function qu(t,n,u,s){return s!==null&&Ys(s),Un(n,t.child,null,u),t=va(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function qg(t,n,u,s,l,p,g){if(u)return n.flags&256?(n.flags&=-257,s=ha(Error(c(422))),qu(t,n,g,s)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(p=s.fallback,l=n.mode,s=Eo({mode:"visible",children:s.children},l,0,null),p=pn(p,l,g,null),p.flags|=2,s.return=n,p.return=n,s.sibling=p,n.child=s,n.mode&1&&Un(n,t.child,null,g),n.child.memoizedState=ya(g),n.memoizedState=Ea,p);if(!(n.mode&1))return qu(t,n,g,null);if(xi(l))return s=Os(l).digest,p=Error(c(419)),s=ha(p,s,void 0),qu(t,n,g,s);if(u=(g&t.childLanes)!==0,Nt||u){if(s=nt,s!==null){switch(g&-g){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(s.suspendedLanes|g)?0:l,l!==0&&l!==p.retryLane&&(p.retryLane=l,lr(t,l),jt(s,t,l,-1))}return Ma(),s=ha(Error(c(421))),qu(t,n,g,s)}return Su(l)?(n.flags|=128,n.child=t.child,n=f0.bind(null,t),Ps(l,n),null):(t=p.treeContext,ct&&(Ut=Nu(l),wt=n,Be=!0,Kt=null,Ni=!1,t!==null&&(bt[kt++]=Tr,bt[kt++]=Nr,bt[kt++]=nn,Tr=t.id,Nr=t.overflow,nn=n)),n=va(n,s.children),n.flags|=4096,n)}function Ac(t,n,u){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),qs(t.return,n,u)}function xa(t,n,u,s,l){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:u,tailMode:l}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=s,p.tail=u,p.tailMode=l)}function _c(t,n,u){var s=n.pendingProps,l=s.revealOrder,p=s.tail;if(yt(t,n,s.children,u),s=ke.current,s&2)s=s&1|2,n.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ac(t,u,n);else if(t.tag===19)Ac(t,u,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}s&=1}if(re(ke,s),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(u=n.child,l=null;u!==null;)t=u.alternate,t!==null&&Vu(t)===null&&(l=u),u=u.sibling;u=l,u===null?(l=n.child,n.child=null):(l=u.sibling,u.sibling=null),xa(n,!1,l,u,p);break;case"backwards":for(u=null,l=n.child,n.child=null;l!==null;){if(t=l.alternate,t!==null&&Vu(t)===null){n.child=l;break}t=l.sibling,l.sibling=u,u=l,l=t}xa(n,!0,u,null,p);break;case"together":xa(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ku(t,n){!(n.mode&1)&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function Ar(t,n,u){if(t!==null&&(n.dependencies=t.dependencies),an|=n.lanes,!(u&n.childLanes))return null;if(t!==null&&n.child!==t.child)throw Error(c(153));if(n.child!==null){for(t=n.child,u=Yr(t,t.pendingProps),n.child=u,u.return=n;t.sibling!==null;)t=t.sibling,u=u.sibling=Yr(t,t.pendingProps),u.return=n;u.sibling=null}return n.child}function Kg(t,n,u){switch(n.tag){case 3:Tc(n),Bn();break;case 5:Xf(n);break;case 1:Ve(n.type)&&rn(n);break;case 4:ra(n,n.stateNode.containerInfo);break;case 10:Rf(n,n.type._context,n.memoizedProps.value);break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(re(ke,ke.current&1),n.flags|=128,null):u&n.child.childLanes?Ic(t,n,u):(re(ke,ke.current&1),t=Ar(t,n,u),t!==null?t.sibling:null);re(ke,ke.current&1);break;case 19:if(s=(u&n.childLanes)!==0,t.flags&128){if(s)return _c(t,n,u);n.flags|=128}var l=n.memoizedState;if(l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),re(ke,ke.current),s)break;return null;case 22:case 23:return n.lanes=0,Cc(t,n,u)}return Ar(t,n,u)}function pr(t){t.flags|=4}function Lc(t,n){if(t!==null&&t.child===n.child)return!0;if(n.flags&16)return!1;for(t=n.child;t!==null;){if(t.flags&12854||t.subtreeFlags&12854)return!1;t=t.sibling}return!0}var Ri,Bi,Zu,eo;if(Je)Ri=function(t,n){for(var u=n.child;u!==null;){if(u.tag===5||u.tag===6)ir(t,u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===n)break;for(;u.sibling===null;){if(u.return===null||u.return===n)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},Bi=function(){},Zu=function(t,n,u,s,l){if(t=t.memoizedProps,t!==s){var p=n.stateNode,g=fr(Mt.current);u=Br(p,u,t,s,l,g),(n.updateQueue=u)&&pr(n)}},eo=function(t,n,u,s){u!==s&&pr(n)};else if(Ct){Ri=function(t,n,u,s){for(var l=n.child;l!==null;){if(l.tag===5){var p=l.stateNode;u&&s&&(p=An(p,l.type,l.memoizedProps,l)),ir(t,p)}else if(l.tag===6)p=l.stateNode,u&&s&&(p=_n(p,l.memoizedProps,l)),ir(t,p);else if(l.tag!==4){if(l.tag===22&&l.memoizedState!==null)p=l.child,p!==null&&(p.return=l),Ri(t,l,!0,!0);else if(l.child!==null){l.child.return=l,l=l.child;continue}}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}};var wc=function(t,n,u,s){for(var l=n.child;l!==null;){if(l.tag===5){var p=l.stateNode;u&&s&&(p=An(p,l.type,l.memoizedProps,l)),yi(t,p)}else if(l.tag===6)p=l.stateNode,u&&s&&(p=_n(p,l.memoizedProps,l)),yi(t,p);else if(l.tag!==4){if(l.tag===22&&l.memoizedState!==null)p=l.child,p!==null&&(p.return=l),wc(t,l,!0,!0);else if(l.child!==null){l.child.return=l,l=l.child;continue}}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}};Bi=function(t,n){var u=n.stateNode;if(!Lc(t,n)){t=u.containerInfo;var s=Ft(t);wc(s,n,!1,!1),u.pendingChildren=s,pr(n),In(t,s)}},Zu=function(t,n,u,s,l){var p=t.stateNode,g=t.memoizedProps;if((t=Lc(t,n))&&g===s)n.stateNode=p;else{var F=n.stateNode,_=fr(Mt.current),W=null;g!==s&&(W=Br(F,u,g,s,l,_)),t&&W===null?n.stateNode=p:(p=Fu(p,W,u,g,s,n,t,F),ce(p,u,s,l,_)&&pr(n),n.stateNode=p,t?pr(n):Ri(p,n,!1,!1))}},eo=function(t,n,u,s){u!==s?(t=fr(Hn.current),u=fr(Mt.current),n.stateNode=pi(s,t,u,n),pr(n)):n.stateNode=t.stateNode}}else Bi=function(){},Zu=function(){},eo=function(){};function bi(t,n){if(!Be)switch(t.tailMode){case"hidden":n=t.tail;for(var u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?t.tail=null:u.sibling=null;break;case"collapsed":u=t.tail;for(var s=null;u!==null;)u.alternate!==null&&(s=u),u=u.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function dt(t){var n=t.alternate!==null&&t.alternate.child===t.child,u=0,s=0;if(n)for(var l=t.child;l!==null;)u|=l.lanes|l.childLanes,s|=l.subtreeFlags&14680064,s|=l.flags&14680064,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)u|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=s,t.childLanes=u,n}function Zg(t,n,u){var s=n.pendingProps;switch(zs(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(n),null;case 1:return Ve(n.type)&&Mr(),dt(n),null;case 3:return u=n.stateNode,Mn(),te(Ee),te(oe),ua(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(t===null||t.child===null)&&(ku(n)?pr(n):t===null||t.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Kt!==null&&(Ua(Kt),Kt=null))),Bi(t,n),dt(n),null;case 5:na(n),u=fr(Hn.current);var l=n.type;if(t!==null&&n.stateNode!=null)Zu(t,n,l,s,u),t.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!s){if(n.stateNode===null)throw Error(c(166));return dt(n),null}if(t=fr(Mt.current),ku(n)){if(!ct)throw Error(c(175));t=Rs(n.stateNode,n.type,n.memoizedProps,u,t,n,!Ni),n.updateQueue=t,t!==null&&pr(n)}else{var p=vr(l,s,u,t,n);Ri(p,n,!1,!1),n.stateNode=p,ce(p,l,s,u,t)&&pr(n)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return dt(n),null;case 6:if(t&&n.stateNode!=null)eo(t,n,t.memoizedProps,s);else{if(typeof s!="string"&&n.stateNode===null)throw Error(c(166));if(t=fr(Hn.current),u=fr(Mt.current),ku(n)){if(!ct)throw Error(c(176));if(t=n.stateNode,u=n.memoizedProps,(s=Iu(t,u,n,!Ni))&&(l=wt,l!==null))switch(l.tag){case 3:E(l.stateNode.containerInfo,t,u,(l.mode&1)!==0);break;case 5:T(l.type,l.memoizedProps,l.stateNode,t,u,(l.mode&1)!==0)}s&&pr(n)}else n.stateNode=pi(s,t,u,n)}return dt(n),null;case 13:if(te(ke),s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Be&&Ut!==null&&n.mode&1&&!(n.flags&128))Pf(),Bn(),n.flags|=98560,l=!1;else if(l=ku(n),s!==null&&s.dehydrated!==null){if(t===null){if(!l)throw Error(c(318));if(!ct)throw Error(c(344));if(l=n.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(c(317));On(l,n)}else Bn(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;dt(n),l=!1}else Kt!==null&&(Ua(Kt),Kt=null),l=!0;if(!l)return n.flags&65536?n:null}return n.flags&128?(n.lanes=u,n):(u=s!==null,u!==(t!==null&&t.memoizedState!==null)&&u&&(n.child.flags|=8192,n.mode&1&&(t===null||ke.current&1?Ke===0&&(Ke=3):Ma())),n.updateQueue!==null&&(n.flags|=4),dt(n),null);case 4:return Mn(),Bi(t,n),t===null&&yu(n.stateNode.containerInfo),dt(n),null;case 10:return Js(n.type._context),dt(n),null;case 17:return Ve(n.type)&&Mr(),dt(n),null;case 19:if(te(ke),l=n.memoizedState,l===null)return dt(n),null;if(s=(n.flags&128)!==0,p=l.rendering,p===null)if(s)bi(l,!1);else{if(Ke!==0||t!==null&&t.flags&128)for(t=n.child;t!==null;){if(p=Vu(t),p!==null){for(n.flags|=128,bi(l,!1),t=p.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),n.subtreeFlags=0,t=u,u=n.child;u!==null;)s=u,l=t,s.flags&=14680066,p=s.alternate,p===null?(s.childLanes=0,s.lanes=l,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=p.childLanes,s.lanes=p.lanes,s.child=p.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=p.memoizedProps,s.memoizedState=p.memoizedState,s.updateQueue=p.updateQueue,s.type=p.type,l=p.dependencies,s.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),u=u.sibling;return re(ke,ke.current&1|2),n.child}t=t.sibling}l.tail!==null&&tt()>Ra&&(n.flags|=128,s=!0,bi(l,!1),n.lanes=4194304)}else{if(!s)if(t=Vu(p),t!==null){if(n.flags|=128,s=!0,t=t.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),bi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!Be)return dt(n),null}else 2*tt()-l.renderingStartTime>Ra&&u!==1073741824&&(n.flags|=128,s=!0,bi(l,!1),n.lanes=4194304);l.isBackwards?(p.sibling=n.child,n.child=p):(t=l.last,t!==null?t.sibling=p:n.child=p,l.last=p)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=tt(),n.sibling=null,t=ke.current,re(ke,s?t&1|2:t&1),n):(dt(n),null);case 22:case 23:return Ha(),u=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==u&&(n.flags|=8192),u&&n.mode&1?Ot&1073741824&&(dt(n),Je&&n.subtreeFlags&6&&(n.flags|=8192)):dt(n),null;case 24:return null;case 25:return null}throw Error(c(156,n.tag))}function e0(t,n){switch(zs(n),n.tag){case 1:return Ve(n.type)&&Mr(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Mn(),te(Ee),te(oe),ua(),t=n.flags,t&65536&&!(t&128)?(n.flags=t&-65537|128,n):null;case 5:return na(n),null;case 13:if(te(ke),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(c(340));Bn()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return te(ke),null;case 4:return Mn(),null;case 10:return Js(n.type._context),null;case 22:case 23:return Ha(),null;case 24:return null;default:return null}}var to=!1,ht=!1,t0=typeof WeakSet=="function"?WeakSet:Set,K=null;function jn(t,n){var u=t.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(s){be(t,n,s)}else u.current=null}function Ca(t,n,u){try{u()}catch(s){be(t,n,s)}}var Oc=!1;function r0(t,n){for(Ge(t.containerInfo),K=n;K!==null;)if(t=K,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,K=n;else for(;K!==null;){t=K;try{var u=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(u!==null){var s=u.memoizedProps,l=u.memoizedState,p=t.stateNode,g=p.getSnapshotBeforeUpdate(t.elementType===t.type?s:Zt(t.type,s),l);p.__reactInternalSnapshotBeforeUpdate=g}break;case 3:Je&&Nn(t.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(c(163))}}catch(F){be(t,t.return,F)}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}return u=Oc,Oc=!1,u}function ki(t,n,u){var s=n.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&t)===t){var p=l.destroy;l.destroy=void 0,p!==void 0&&Ca(n,u,p)}l=l.next}while(l!==s)}}function ro(t,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var u=n=n.next;do{if((u.tag&t)===t){var s=u.create;u.destroy=s()}u=u.next}while(u!==n)}}function Fa(t){var n=t.ref;if(n!==null){var u=t.stateNode;switch(t.tag){case 5:t=Rt(u);break;default:t=u}typeof n=="function"?n(t):n.current=t}}function Pc(t){var n=t.alternate;n!==null&&(t.alternate=null,Pc(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&vn(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Rc(t){return t.tag===5||t.tag===3||t.tag===4}function Bc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Rc(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Sa(t,n,u){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?or(u,t,n):Sn(u,t);else if(s!==4&&(t=t.child,t!==null))for(Sa(t,n,u),t=t.sibling;t!==null;)Sa(t,n,u),t=t.sibling}function Ta(t,n,u){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?gi(u,t,n):Hr(u,t);else if(s!==4&&(t=t.child,t!==null))for(Ta(t,n,u),t=t.sibling;t!==null;)Ta(t,n,u),t=t.sibling}var st=null,er=!1;function dr(t,n,u){for(u=u.child;u!==null;)Na(t,n,u),u=u.sibling}function Na(t,n,u){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(Pu,u)}catch{}switch(u.tag){case 5:ht||jn(u,n);case 6:if(Je){var s=st,l=er;st=null,dr(t,n,u),st=s,er=l,st!==null&&(er?Ns(st,u.stateNode):Ei(st,u.stateNode))}else dr(t,n,u);break;case 18:Je&&st!==null&&(er?_u(st,u.stateNode):Qt(st,u.stateNode));break;case 4:Je?(s=st,l=er,st=u.stateNode.containerInfo,er=!0,dr(t,n,u),st=s,er=l):(Ct&&(s=u.stateNode.containerInfo,l=Ft(s),tn(s,l)),dr(t,n,u));break;case 0:case 11:case 14:case 15:if(!ht&&(s=u.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var p=l,g=p.destroy;p=p.tag,g!==void 0&&(p&2||p&4)&&Ca(u,n,g),l=l.next}while(l!==s)}dr(t,n,u);break;case 1:if(!ht&&(jn(u,n),s=u.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=u.memoizedProps,s.state=u.memoizedState,s.componentWillUnmount()}catch(F){be(u,n,F)}dr(t,n,u);break;case 21:dr(t,n,u);break;case 22:u.mode&1?(ht=(s=ht)||u.memoizedState!==null,dr(t,n,u),ht=s):dr(t,n,u);break;default:dr(t,n,u)}}function bc(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var u=t.stateNode;u===null&&(u=t.stateNode=new t0),n.forEach(function(s){var l=c0.bind(null,t,s);u.has(s)||(u.add(s),s.then(l,l))})}}function tr(t,n){var u=n.deletions;if(u!==null)for(var s=0;s<u.length;s++){var l=u[s];try{var p=t,g=n;if(Je){var F=g;e:for(;F!==null;){switch(F.tag){case 5:st=F.stateNode,er=!1;break e;case 3:st=F.stateNode.containerInfo,er=!0;break e;case 4:st=F.stateNode.containerInfo,er=!0;break e}F=F.return}if(st===null)throw Error(c(160));Na(p,g,l),st=null,er=!1}else Na(p,g,l);var _=l.alternate;_!==null&&(_.return=null),l.return=null}catch(W){be(l,n,W)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)kc(n,t),n=n.sibling}function kc(t,n){var u=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(tr(n,t),hr(t),s&4){try{ki(3,t,t.return),ro(3,t)}catch(Q){be(t,t.return,Q)}try{ki(5,t,t.return)}catch(Q){be(t,t.return,Q)}}break;case 1:tr(n,t),hr(t),s&512&&u!==null&&jn(u,u.return);break;case 5:if(tr(n,t),hr(t),s&512&&u!==null&&jn(u,u.return),Je){if(t.flags&32){var l=t.stateNode;try{Tn(l)}catch(Q){be(t,t.return,Q)}}if(s&4&&(l=t.stateNode,l!=null)){var p=t.memoizedProps;if(u=u!==null?u.memoizedProps:p,s=t.type,n=t.updateQueue,t.updateQueue=null,n!==null)try{Yt(l,n,s,u,p,t)}catch(Q){be(t,t.return,Q)}}}break;case 6:if(tr(n,t),hr(t),s&4&&Je){if(t.stateNode===null)throw Error(c(162));l=t.stateNode,p=t.memoizedProps,u=u!==null?u.memoizedProps:p;try{ur(l,u,p)}catch(Q){be(t,t.return,Q)}}break;case 3:if(tr(n,t),hr(t),s&4){if(Je&&ct&&u!==null&&u.memoizedState.isDehydrated)try{Au(n.containerInfo)}catch(Q){be(t,t.return,Q)}if(Ct){l=n.containerInfo,p=n.pendingChildren;try{tn(l,p)}catch(Q){be(t,t.return,Q)}}}break;case 4:if(tr(n,t),hr(t),s&4&&Ct){p=t.stateNode,l=p.containerInfo,p=p.pendingChildren;try{tn(l,p)}catch(Q){be(t,t.return,Q)}}break;case 13:tr(n,t),hr(t),l=t.child,l.flags&8192&&(p=l.memoizedState!==null,l.stateNode.isHidden=p,!p||l.alternate!==null&&l.alternate.memoizedState!==null||(Pa=tt())),s&4&&bc(t);break;case 22:var g=u!==null&&u.memoizedState!==null;if(t.mode&1?(ht=(u=ht)||g,tr(n,t),ht=u):tr(n,t),hr(t),s&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!g&&t.mode&1)for(K=t,s=t.child;s!==null;){for(n=K=s;K!==null;){g=K;var F=g.child;switch(g.tag){case 0:case 11:case 14:case 15:ki(4,g,g.return);break;case 1:jn(g,g.return);var _=g.stateNode;if(typeof _.componentWillUnmount=="function"){var W=g,Z=g.return;try{var ae=W;_.props=ae.memoizedProps,_.state=ae.memoizedState,_.componentWillUnmount()}catch(Q){be(W,Z,Q)}}break;case 5:jn(g,g.return);break;case 22:if(g.memoizedState!==null){Mc(n);continue}}F!==null?(F.return=g,K=F):Mc(n)}s=s.sibling}if(Je){e:if(s=null,Je)for(n=t;;){if(n.tag===5){if(s===null){s=n;try{l=n.stateNode,u?Is(l):_s(n.stateNode,n.memoizedProps)}catch(Q){be(t,t.return,Q)}}}else if(n.tag===6){if(s===null)try{p=n.stateNode,u?As(p):$t(p,n.memoizedProps)}catch(Q){be(t,t.return,Q)}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;s===n&&(s=null),n=n.return}s===n&&(s=null),n.sibling.return=n.return,n=n.sibling}}}break;case 19:tr(n,t),hr(t),s&4&&bc(t);break;case 21:break;default:tr(n,t),hr(t)}}function hr(t){var n=t.flags;if(n&2){try{if(Je){e:{for(var u=t.return;u!==null;){if(Rc(u)){var s=u;break e}u=u.return}throw Error(c(160))}switch(s.tag){case 5:var l=s.stateNode;s.flags&32&&(Tn(l),s.flags&=-33);var p=Bc(t);Ta(t,p,l);break;case 3:case 4:var g=s.stateNode.containerInfo,F=Bc(t);Sa(t,F,g);break;default:throw Error(c(161))}}}catch(_){be(t,t.return,_)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function n0(t,n,u){K=t,Uc(t,n,u)}function Uc(t,n,u){for(var s=(t.mode&1)!==0;K!==null;){var l=K,p=l.child;if(l.tag===22&&s){var g=l.memoizedState!==null||to;if(!g){var F=l.alternate,_=F!==null&&F.memoizedState!==null||ht;F=to;var W=ht;if(to=g,(ht=_)&&!W)for(K=l;K!==null;)g=K,_=g.child,g.tag===22&&g.memoizedState!==null?Gc(l):_!==null?(_.return=g,K=_):Gc(l);for(;p!==null;)K=p,Uc(p,n,u),p=p.sibling;K=l,to=F,ht=W}Hc(t,n,u)}else l.subtreeFlags&8772&&p!==null?(p.return=l,K=p):Hc(t,n,u)}}function Hc(t){for(;K!==null;){var n=K;if(n.flags&8772){var u=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:ht||ro(5,n);break;case 1:var s=n.stateNode;if(n.flags&4&&!ht)if(u===null)s.componentDidMount();else{var l=n.elementType===n.type?u.memoizedProps:Zt(n.type,u.memoizedProps);s.componentDidUpdate(l,u.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var p=n.updateQueue;p!==null&&Uf(n,p,s);break;case 3:var g=n.updateQueue;if(g!==null){if(u=null,n.child!==null)switch(n.child.tag){case 5:u=Rt(n.child.stateNode);break;case 1:u=n.child.stateNode}Uf(n,g,u)}break;case 5:var F=n.stateNode;u===null&&n.flags&4&&Di(F,n.type,n.memoizedProps,n);break;case 6:break;case 4:break;case 12:break;case 13:if(ct&&n.memoizedState===null){var _=n.alternate;if(_!==null){var W=_.memoizedState;if(W!==null){var Z=W.dehydrated;Z!==null&&Ci(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(c(163))}ht||n.flags&512&&Fa(n)}catch(ae){be(n,n.return,ae)}}if(n===t){K=null;break}if(u=n.sibling,u!==null){u.return=n.return,K=u;break}K=n.return}}function Mc(t){for(;K!==null;){var n=K;if(n===t){K=null;break}var u=n.sibling;if(u!==null){u.return=n.return,K=u;break}K=n.return}}function Gc(t){for(;K!==null;){var n=K;try{switch(n.tag){case 0:case 11:case 15:var u=n.return;try{ro(4,n)}catch(_){be(n,u,_)}break;case 1:var s=n.stateNode;if(typeof s.componentDidMount=="function"){var l=n.return;try{s.componentDidMount()}catch(_){be(n,l,_)}}var p=n.return;try{Fa(n)}catch(_){be(n,p,_)}break;case 5:var g=n.return;try{Fa(n)}catch(_){be(n,g,_)}}}catch(_){be(n,n.return,_)}if(n===t){K=null;break}var F=n.sibling;if(F!==null){F.return=n.return,K=F;break}K=n.return}}var no=0,io=1,uo=2,oo=3,so=4;if(typeof Symbol=="function"&&Symbol.for){var Ui=Symbol.for;no=Ui("selector.component"),io=Ui("selector.has_pseudo_class"),uo=Ui("selector.role"),oo=Ui("selector.test_id"),so=Ui("selector.text")}function Ia(t){var n=Cr(t);if(n!=null){if(typeof n.memoizedProps["data-testname"]!="string")throw Error(c(364));return n}if(t=Cu(t),t===null)throw Error(c(362));return t.stateNode.current}function Aa(t,n){switch(n.$$typeof){case no:if(t.type===n.value)return!0;break;case io:e:{n=n.value,t=[t,0];for(var u=0;u<t.length;){var s=t[u++],l=t[u++],p=n[l];if(s.tag!==5||!Bt(s)){for(;p!=null&&Aa(s,p);)l++,p=n[l];if(l===n.length){n=!0;break e}else for(s=s.child;s!==null;)t.push(s,l),s=s.sibling}}n=!1}return n;case uo:if(t.tag===5&&Fn(t.stateNode,n.value))return!0;break;case so:if((t.tag===5||t.tag===6)&&(t=Cn(t),t!==null&&0<=t.indexOf(n.value)))return!0;break;case oo:if(t.tag===5&&(t=t.memoizedProps["data-testname"],typeof t=="string"&&t.toLowerCase()===n.value.toLowerCase()))return!0;break;default:throw Error(c(365))}return!1}function _a(t){switch(t.$$typeof){case no:return"<"+(ne(t.value)||"Unknown")+">";case io:return":has("+(_a(t)||"")+")";case uo:return'[role="'+t.value+'"]';case so:return'"'+t.value+'"';case oo:return'[data-testname="'+t.value+'"]';default:throw Error(c(365))}}function jc(t,n){var u=[];t=[t,0];for(var s=0;s<t.length;){var l=t[s++],p=t[s++],g=n[p];if(l.tag!==5||!Bt(l)){for(;g!=null&&Aa(l,g);)p++,g=n[p];if(p===n.length)u.push(l);else for(l=l.child;l!==null;)t.push(l,p),l=l.sibling}}return u}function La(t,n){if(!Ur)throw Error(c(363));t=Ia(t),t=jc(t,n),n=[],t=Array.from(t);for(var u=0;u<t.length;){var s=t[u++];if(s.tag===5)Bt(s)||n.push(s.stateNode);else for(s=s.child;s!==null;)t.push(s),s=s.sibling}return n}var i0=Math.ceil,ao=d.ReactCurrentDispatcher,wa=d.ReactCurrentOwner,je=d.ReactCurrentBatchConfig,de=0,nt=null,Xe=null,at=0,Ot=0,Wn=V(0),Ke=0,Hi=null,an=0,lo=0,Oa=0,Mi=null,It=null,Pa=0,Ra=1/0,_r=null;function zn(){Ra=tt()+500}var fo=!1,Ba=null,Wr=null,co=!1,zr=null,po=0,Gi=0,ba=null,ho=-1,mo=0;function mt(){return de&6?tt():ho!==-1?ho:ho=tt()}function Vr(t){return t.mode&1?de&2&&at!==0?at&-at:Mg.transition!==null?(mo===0&&(mo=Tf()),mo):(t=xe,t!==0?t:vu()):1}function jt(t,n,u,s){if(50<Gi)throw Gi=0,ba=null,Error(c(185));Ti(t,u,s),(!(de&2)||t!==nt)&&(t===nt&&(!(de&2)&&(lo|=u),Ke===4&&Xr(t,at)),At(t,s),u===1&&de===0&&!(n.mode&1)&&(zn(),Ru&&ar()))}function At(t,n){var u=t.callbackNode;wg(t,n);var s=Ou(t,t===nt?at:0);if(s===0)u!==null&&If(u),t.callbackNode=null,t.callbackPriority=0;else if(n=s&-s,t.callbackPriority!==n){if(u!=null&&If(u),n===1)t.tag===0?Hg(zc.bind(null,t)):Af(zc.bind(null,t)),hi?xu(function(){!(de&6)&&ar()}):Hs(Ms,ar),u=null;else{switch(Nf(s)){case 1:u=Ms;break;case 4:u=Bg;break;case 16:u=Gs;break;case 536870912:u=bg;break;default:u=Gs}u=Zc(u,Wc.bind(null,t))}t.callbackPriority=n,t.callbackNode=u}}function Wc(t,n){if(ho=-1,mo=0,de&6)throw Error(c(327));var u=t.callbackNode;if(cn()&&t.callbackNode!==u)return null;var s=Ou(t,t===nt?at:0);if(s===0)return null;if(s&30||s&t.expiredLanes||n)n=Do(t,s);else{n=s;var l=de;de|=2;var p=Yc();(nt!==t||at!==n)&&(_r=null,zn(),ln(t,n));do try{s0();break}catch(F){Xc(t,F)}while(!0);Qs(),ao.current=p,de=l,Xe!==null?n=0:(nt=null,at=0,n=Ke)}if(n!==0){if(n===2&&(l=bs(t),l!==0&&(s=l,n=ka(t,l))),n===1)throw u=Hi,ln(t,0),Xr(t,s),At(t,tt()),u;if(n===6)Xr(t,s);else{if(l=t.current.alternate,!(s&30)&&!u0(l)&&(n=Do(t,s),n===2&&(p=bs(t),p!==0&&(s=p,n=ka(t,p))),n===1))throw u=Hi,ln(t,0),Xr(t,s),At(t,tt()),u;switch(t.finishedWork=l,t.finishedLanes=s,n){case 0:case 1:throw Error(c(345));case 2:fn(t,It,_r);break;case 3:if(Xr(t,s),(s&130023424)===s&&(n=Pa+500-tt(),10<n)){if(Ou(t,0)!==0)break;if(l=t.suspendedLanes,(l&s)!==s){mt(),t.pingedLanes|=t.suspendedLanes&l;break}t.timeoutHandle=di(fn.bind(null,t,It,_r),n);break}fn(t,It,_r);break;case 4:if(Xr(t,s),(s&4194240)===s)break;for(n=t.eventTimes,l=-1;0<s;){var g=31-Jt(s);p=1<<g,g=n[g],g>l&&(l=g),s&=~p}if(s=l,s=tt()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*i0(s/1960))-s,10<s){t.timeoutHandle=di(fn.bind(null,t,It,_r),s);break}fn(t,It,_r);break;case 5:fn(t,It,_r);break;default:throw Error(c(329))}}}return At(t,tt()),t.callbackNode===u?Wc.bind(null,t):null}function ka(t,n){var u=Mi;return t.current.memoizedState.isDehydrated&&(ln(t,n).flags|=256),t=Do(t,n),t!==2&&(n=It,It=u,n!==null&&Ua(n)),t}function Ua(t){It===null?It=t:It.push.apply(It,t)}function u0(t){for(var n=t;;){if(n.flags&16384){var u=n.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var s=0;s<u.length;s++){var l=u[s],p=l.getSnapshot;l=l.value;try{if(!qt(p(),l))return!1}catch{return!1}}}if(u=n.child,n.subtreeFlags&16384&&u!==null)u.return=n,n=u;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Xr(t,n){for(n&=~Oa,n&=~lo,t.suspendedLanes|=n,t.pingedLanes&=~n,t=t.expirationTimes;0<n;){var u=31-Jt(n),s=1<<u;t[u]=-1,n&=~s}}function zc(t){if(de&6)throw Error(c(327));cn();var n=Ou(t,0);if(!(n&1))return At(t,tt()),null;var u=Do(t,n);if(t.tag!==0&&u===2){var s=bs(t);s!==0&&(n=s,u=ka(t,s))}if(u===1)throw u=Hi,ln(t,0),Xr(t,n),At(t,tt()),u;if(u===6)throw Error(c(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,fn(t,It,_r),At(t,tt()),null}function Vc(t){zr!==null&&zr.tag===0&&!(de&6)&&cn();var n=de;de|=1;var u=je.transition,s=xe;try{if(je.transition=null,xe=1,t)return t()}finally{xe=s,je.transition=u,de=n,!(de&6)&&ar()}}function Ha(){Ot=Wn.current,te(Wn)}function ln(t,n){t.finishedWork=null,t.finishedLanes=0;var u=t.timeoutHandle;if(u!==xr&&(t.timeoutHandle=xr,Qe(u)),Xe!==null)for(u=Xe.return;u!==null;){var s=u;switch(zs(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Mr();break;case 3:Mn(),te(Ee),te(oe),ua();break;case 5:na(s);break;case 4:Mn();break;case 13:te(ke);break;case 19:te(ke);break;case 10:Js(s.type._context);break;case 22:case 23:Ha()}u=u.return}if(nt=t,Xe=t=Yr(t.current,null),at=Ot=n,Ke=0,Hi=null,Oa=lo=an=0,It=Mi=null,on!==null){for(n=0;n<on.length;n++)if(u=on[n],s=u.interleaved,s!==null){u.interleaved=null;var l=s.next,p=u.pending;if(p!==null){var g=p.next;p.next=l,s.next=g}u.pending=s}on=null}return t}function Xc(t,n){do{var u=Xe;try{if(Qs(),Xu.current=Ju,Yu){for(var s=Ue.memoizedState;s!==null;){var l=s.queue;l!==null&&(l.pending=null),s=s.next}Yu=!1}if(sn=0,rt=qe=Ue=null,Li=!1,wi=0,wa.current=null,u===null||u.return===null){Ke=1,Hi=n,Xe=null;break}e:{var p=t,g=u.return,F=u,_=n;if(n=at,F.flags|=32768,_!==null&&typeof _=="object"&&typeof _.then=="function"){var W=_,Z=F,ae=Z.tag;if(!(Z.mode&1)&&(ae===0||ae===11||ae===15)){var Q=Z.alternate;Q?(Z.updateQueue=Q.updateQueue,Z.memoizedState=Q.memoizedState,Z.lanes=Q.lanes):(Z.updateQueue=null,Z.memoizedState=null)}var Oe=gc(g);if(Oe!==null){Oe.flags&=-257,Ec(Oe,g,F,p,n),Oe.mode&1&&Dc(p,W,n),n=Oe,_=W;var _e=n.updateQueue;if(_e===null){var _t=new Set;_t.add(_),n.updateQueue=_t}else _e.add(_);break e}else{if(!(n&1)){Dc(p,W,n),Ma();break e}_=Error(c(426))}}else if(Be&&F.mode&1){var Lr=gc(g);if(Lr!==null){!(Lr.flags&65536)&&(Lr.flags|=256),Ec(Lr,g,F,p,n),Ys(Gn(_,F));break e}}p=_=Gn(_,F),Ke!==4&&(Ke=2),Mi===null?Mi=[p]:Mi.push(p),p=g;do{switch(p.tag){case 3:p.flags|=65536,n&=-n,p.lanes|=n;var A=hc(p,_,n);kf(p,A);break e;case 1:F=_;var S=p.type,w=p.stateNode;if(!(p.flags&128)&&(typeof S.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Wr===null||!Wr.has(w)))){p.flags|=65536,n&=-n,p.lanes|=n;var J=mc(p,F,n);kf(p,J);break e}}p=p.return}while(p!==null)}Qc(u)}catch(ue){n=ue,Xe===u&&u!==null&&(Xe=u=u.return);continue}break}while(!0)}function Yc(){var t=ao.current;return ao.current=Ju,t===null?Ju:t}function Ma(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),nt===null||!(an&268435455)&&!(lo&268435455)||Xr(nt,at)}function Do(t,n){var u=de;de|=2;var s=Yc();(nt!==t||at!==n)&&(_r=null,ln(t,n));do try{o0();break}catch(l){Xc(t,l)}while(!0);if(Qs(),de=u,ao.current=s,Xe!==null)throw Error(c(261));return nt=null,at=0,Ke}function o0(){for(;Xe!==null;)$c(Xe)}function s0(){for(;Xe!==null&&!Pg();)$c(Xe)}function $c(t){var n=Kc(t.alternate,t,Ot);t.memoizedProps=t.pendingProps,n===null?Qc(t):Xe=n,wa.current=null}function Qc(t){var n=t;do{var u=n.alternate;if(t=n.return,n.flags&32768){if(u=e0(u,n),u!==null){u.flags&=32767,Xe=u;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ke=6,Xe=null;return}}else if(u=Zg(u,n,Ot),u!==null){Xe=u;return}if(n=n.sibling,n!==null){Xe=n;return}Xe=n=t}while(n!==null);Ke===0&&(Ke=5)}function fn(t,n,u){var s=xe,l=je.transition;try{je.transition=null,xe=1,a0(t,n,u,s)}finally{je.transition=l,xe=s}return null}function a0(t,n,u,s){do cn();while(zr!==null);if(de&6)throw Error(c(327));u=t.finishedWork;var l=t.finishedLanes;if(u===null)return null;if(t.finishedWork=null,t.finishedLanes=0,u===t.current)throw Error(c(177));t.callbackNode=null,t.callbackPriority=0;var p=u.lanes|u.childLanes;if(Og(t,p),t===nt&&(Xe=nt=null,at=0),!(u.subtreeFlags&2064)&&!(u.flags&2064)||co||(co=!0,Zc(Gs,function(){return cn(),null})),p=(u.flags&15990)!==0,u.subtreeFlags&15990||p){p=je.transition,je.transition=null;var g=xe;xe=1;var F=de;de|=4,wa.current=null,r0(t,u),kc(u,t),Xt(t.containerInfo),t.current=u,n0(u,t,l),Rg(),de=F,xe=g,je.transition=p}else t.current=u;if(co&&(co=!1,zr=t,po=l),p=t.pendingLanes,p===0&&(Wr=null),kg(u.stateNode,s),At(t,tt()),n!==null)for(s=t.onRecoverableError,u=0;u<n.length;u++)l=n[u],s(l.value,{componentStack:l.stack,digest:l.digest});if(fo)throw fo=!1,t=Ba,Ba=null,t;return po&1&&t.tag!==0&&cn(),p=t.pendingLanes,p&1?t===ba?Gi++:(Gi=0,ba=t):Gi=0,ar(),null}function cn(){if(zr!==null){var t=Nf(po),n=je.transition,u=xe;try{if(je.transition=null,xe=16>t?16:t,zr===null)var s=!1;else{if(t=zr,zr=null,po=0,de&6)throw Error(c(331));var l=de;for(de|=4,K=t.current;K!==null;){var p=K,g=p.child;if(K.flags&16){var F=p.deletions;if(F!==null){for(var _=0;_<F.length;_++){var W=F[_];for(K=W;K!==null;){var Z=K;switch(Z.tag){case 0:case 11:case 15:ki(8,Z,p)}var ae=Z.child;if(ae!==null)ae.return=Z,K=ae;else for(;K!==null;){Z=K;var Q=Z.sibling,Oe=Z.return;if(Pc(Z),Z===W){K=null;break}if(Q!==null){Q.return=Oe,K=Q;break}K=Oe}}}var _e=p.alternate;if(_e!==null){var _t=_e.child;if(_t!==null){_e.child=null;do{var Lr=_t.sibling;_t.sibling=null,_t=Lr}while(_t!==null)}}K=p}}if(p.subtreeFlags&2064&&g!==null)g.return=p,K=g;else e:for(;K!==null;){if(p=K,p.flags&2048)switch(p.tag){case 0:case 11:case 15:ki(9,p,p.return)}var A=p.sibling;if(A!==null){A.return=p.return,K=A;break e}K=p.return}}var S=t.current;for(K=S;K!==null;){g=K;var w=g.child;if(g.subtreeFlags&2064&&w!==null)w.return=g,K=w;else e:for(g=S;K!==null;){if(F=K,F.flags&2048)try{switch(F.tag){case 0:case 11:case 15:ro(9,F)}}catch(ue){be(F,F.return,ue)}if(F===g){K=null;break e}var J=F.sibling;if(J!==null){J.return=F.return,K=J;break e}K=F.return}}if(de=l,ar(),sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(Pu,t)}catch{}s=!0}return s}finally{xe=u,je.transition=n}}return!1}function Jc(t,n,u){n=Gn(u,n),n=hc(t,n,1),t=jr(t,n,1),n=mt(),t!==null&&(Ti(t,1,n),At(t,n))}function be(t,n,u){if(t.tag===3)Jc(t,t,u);else for(;n!==null;){if(n.tag===3){Jc(n,t,u);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wr===null||!Wr.has(s))){t=Gn(u,t),t=mc(n,t,1),n=jr(n,t,1),t=mt(),n!==null&&(Ti(n,1,t),At(n,t));break}}n=n.return}}function l0(t,n,u){var s=t.pingCache;s!==null&&s.delete(n),n=mt(),t.pingedLanes|=t.suspendedLanes&u,nt===t&&(at&u)===u&&(Ke===4||Ke===3&&(at&130023424)===at&&500>tt()-Pa?ln(t,0):Oa|=u),At(t,n)}function qc(t,n){n===0&&(t.mode&1?(n=wu,wu<<=1,!(wu&130023424)&&(wu=4194304)):n=1);var u=mt();t=lr(t,n),t!==null&&(Ti(t,n,u),At(t,u))}function f0(t){var n=t.memoizedState,u=0;n!==null&&(u=n.retryLane),qc(t,u)}function c0(t,n){var u=0;switch(t.tag){case 13:var s=t.stateNode,l=t.memoizedState;l!==null&&(u=l.retryLane);break;case 19:s=t.stateNode;break;default:throw Error(c(314))}s!==null&&s.delete(n),qc(t,u)}var Kc;Kc=function(t,n,u){if(t!==null)if(t.memoizedProps!==n.pendingProps||Ee.current)Nt=!0;else{if(!(t.lanes&u)&&!(n.flags&128))return Nt=!1,Kg(t,n,u);Nt=!!(t.flags&131072)}else Nt=!1,Be&&n.flags&1048576&&_f(n,bu,n.index);switch(n.lanes=0,n.tag){case 2:var s=n.type;Ku(t,n),t=n.pendingProps;var l=Tt(n,oe.current);kn(n,u),l=aa(null,n,s,t,l,u);var p=la();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Ve(s)?(p=!0,rn(n)):p=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Zs(n),l.updater=Wu,n.stateNode=l,l._reactInternals=n,ta(n,s,t,u),n=ga(null,n,s,!0,p,u)):(n.tag=0,Be&&p&&Ws(n),yt(null,n,l,u),n=n.child),n;case 16:s=n.elementType;e:{switch(Ku(t,n),t=n.pendingProps,l=s._init,s=l(s._payload),n.type=s,l=n.tag=d0(s),t=Zt(s,t),l){case 0:n=Da(null,n,s,t,u);break e;case 1:n=Sc(null,n,s,t,u);break e;case 11:n=yc(null,n,s,t,u);break e;case 14:n=vc(null,n,s,Zt(s.type,t),u);break e}throw Error(c(306,s,""))}return n;case 0:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Zt(s,l),Da(t,n,s,l,u);case 1:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Zt(s,l),Sc(t,n,s,l,u);case 3:e:{if(Tc(n),t===null)throw Error(c(387));s=n.pendingProps,p=n.memoizedState,l=p.element,bf(t,n),ju(n,s,null,u);var g=n.memoizedState;if(s=g.element,ct&&p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){l=Gn(Error(c(423)),n),n=Nc(t,n,s,u,l);break e}else if(s!==l){l=Gn(Error(c(424)),n),n=Nc(t,n,s,u,l);break e}else for(ct&&(Ut=wn(n.stateNode.containerInfo),wt=n,Be=!0,Kt=null,Ni=!1),u=Vf(n,null,s,u),n.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Bn(),s===l){n=Ar(t,n,u);break e}yt(t,n,s,u)}n=n.child}return n;case 5:return Xf(n),t===null&&Xs(n),s=n.type,l=n.pendingProps,p=t!==null?t.memoizedProps:null,g=l.children,br(s,l)?g=null:p!==null&&br(s,p)&&(n.flags|=32),Fc(t,n),yt(t,n,g,u),n.child;case 6:return t===null&&Xs(n),null;case 13:return Ic(t,n,u);case 4:return ra(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=Un(n,null,s,u):yt(t,n,s,u),n.child;case 11:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Zt(s,l),yc(t,n,s,l,u);case 7:return yt(t,n,n.pendingProps,u),n.child;case 8:return yt(t,n,n.pendingProps.children,u),n.child;case 12:return yt(t,n,n.pendingProps.children,u),n.child;case 10:e:{if(s=n.type._context,l=n.pendingProps,p=n.memoizedProps,g=l.value,Rf(n,s,g),p!==null)if(qt(p.value,g)){if(p.children===l.children&&!Ee.current){n=Ar(t,n,u);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var F=p.dependencies;if(F!==null){g=p.child;for(var _=F.firstContext;_!==null;){if(_.context===s){if(p.tag===1){_=Ir(-1,u&-u),_.tag=2;var W=p.updateQueue;if(W!==null){W=W.shared;var Z=W.pending;Z===null?_.next=_:(_.next=Z.next,Z.next=_),W.pending=_}}p.lanes|=u,_=p.alternate,_!==null&&(_.lanes|=u),qs(p.return,u,n),F.lanes|=u;break}_=_.next}}else if(p.tag===10)g=p.type===n.type?null:p.child;else if(p.tag===18){if(g=p.return,g===null)throw Error(c(341));g.lanes|=u,F=g.alternate,F!==null&&(F.lanes|=u),qs(g,u,n),g=p.sibling}else g=p.child;if(g!==null)g.return=p;else for(g=p;g!==null;){if(g===n){g=null;break}if(p=g.sibling,p!==null){p.return=g.return,g=p;break}g=g.return}p=g}yt(t,n,l.children,u),n=n.child}return n;case 9:return l=n.type,s=n.pendingProps.children,kn(n,u),l=Ht(l),s=s(l),n.flags|=1,yt(t,n,s,u),n.child;case 14:return s=n.type,l=Zt(s,n.pendingProps),l=Zt(s.type,l),vc(t,n,s,l,u);case 15:return xc(t,n,n.type,n.pendingProps,u);case 17:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Zt(s,l),Ku(t,n),n.tag=1,Ve(s)?(t=!0,rn(n)):t=!1,kn(n,u),Gf(n,s,l),ta(n,s,l,u),ga(null,n,s,!0,t,u);case 19:return _c(t,n,u);case 22:return Cc(t,n,u)}throw Error(c(156,n.tag))};function Zc(t,n){return Hs(t,n)}function p0(t,n,u,s){this.tag=t,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(t,n,u,s){return new p0(t,n,u,s)}function Ga(t){return t=t.prototype,!(!t||!t.isReactComponent)}function d0(t){if(typeof t=="function")return Ga(t)?1:0;if(t!=null){if(t=t.$$typeof,t===k)return 11;if(t===j)return 14}return 2}function Yr(t,n){var u=t.alternate;return u===null?(u=Wt(t.tag,n,t.key,t.mode),u.elementType=t.elementType,u.type=t.type,u.stateNode=t.stateNode,u.alternate=t,t.alternate=u):(u.pendingProps=n,u.type=t.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=t.flags&14680064,u.childLanes=t.childLanes,u.lanes=t.lanes,u.child=t.child,u.memoizedProps=t.memoizedProps,u.memoizedState=t.memoizedState,u.updateQueue=t.updateQueue,n=t.dependencies,u.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},u.sibling=t.sibling,u.index=t.index,u.ref=t.ref,u}function go(t,n,u,s,l,p){var g=2;if(s=t,typeof t=="function")Ga(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case v:return pn(u.children,l,p,n);case C:g=8,l|=8;break;case x:return t=Wt(12,u,n,l|2),t.elementType=x,t.lanes=p,t;case P:return t=Wt(13,u,n,l),t.elementType=P,t.lanes=p,t;case B:return t=Wt(19,u,n,l),t.elementType=B,t.lanes=p,t;case z:return Eo(u,l,p,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case O:g=10;break e;case R:g=9;break e;case k:g=11;break e;case j:g=14;break e;case q:g=16,s=null;break e}throw Error(c(130,t==null?t:typeof t,""))}return n=Wt(g,u,n,l),n.elementType=t,n.type=s,n.lanes=p,n}function pn(t,n,u,s){return t=Wt(7,t,s,n),t.lanes=u,t}function Eo(t,n,u,s){return t=Wt(22,t,s,n),t.elementType=z,t.lanes=u,t.stateNode={isHidden:!1},t}function ja(t,n,u){return t=Wt(6,t,null,n),t.lanes=u,t}function Wa(t,n,u){return n=Wt(4,t.children!==null?t.children:[],t.key,n),n.lanes=u,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function h0(t,n,u,s,l){this.tag=n,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=xr,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ks(0),this.expirationTimes=ks(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ks(0),this.identifierPrefix=s,this.onRecoverableError=l,ct&&(this.mutableSourceEagerHydrationData=null)}function ep(t,n,u,s,l,p,g,F,_){return t=new h0(t,n,u,F,_),n===1?(n=1,p===!0&&(n|=8)):n=0,p=Wt(3,null,null,n),t.current=p,p.stateNode=t,p.memoizedState={element:s,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zs(p),t}function tp(t){if(!t)return pe;t=t._reactInternals;e:{if(Le(t)!==t||t.tag!==1)throw Error(c(170));var n=t;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Ve(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(c(171))}if(t.tag===1){var u=t.type;if(Ve(u))return Fi(t,u,n)}return n}function rp(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=et(n),t===null?null:t.stateNode}function np(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var u=t.retryLane;t.retryLane=u!==0&&u<n?u:n}}function yo(t,n){np(t,n),(t=t.alternate)&&np(t,n)}function m0(t){return t=et(t),t===null?null:t.stateNode}function D0(){return null}return i.attemptContinuousHydration=function(t){if(t.tag===13){var n=lr(t,134217728);if(n!==null){var u=mt();jt(n,t,134217728,u)}yo(t,134217728)}},i.attemptDiscreteHydration=function(t){if(t.tag===13){var n=lr(t,1);if(n!==null){var u=mt();jt(n,t,1,u)}yo(t,1)}},i.attemptHydrationAtCurrentPriority=function(t){if(t.tag===13){var n=Vr(t),u=lr(t,n);if(u!==null){var s=mt();jt(u,t,n,s)}yo(t,n)}},i.attemptSynchronousHydration=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var u=Si(n.pendingLanes);u!==0&&(Us(n,u|1),At(n,tt()),!(de&6)&&(zn(),ar()))}break;case 13:Vc(function(){var s=lr(t,1);if(s!==null){var l=mt();jt(s,t,1,l)}}),yo(t,1)}},i.batchedUpdates=function(t,n){var u=de;de|=1;try{return t(n)}finally{de=u,de===0&&(zn(),Ru&&ar())}},i.createComponentSelector=function(t){return{$$typeof:no,value:t}},i.createContainer=function(t,n,u,s,l,p,g){return ep(t,n,!1,null,u,s,l,p,g)},i.createHasPseudoClassSelector=function(t){return{$$typeof:io,value:t}},i.createHydrationContainer=function(t,n,u,s,l,p,g,F,_){return t=ep(u,s,!0,t,l,p,g,F,_),t.context=tp(null),u=t.current,s=mt(),l=Vr(u),p=Ir(s,l),p.callback=n??null,jr(u,p,l),t.current.lanes=l,Ti(t,l,s),At(t,s),t},i.createPortal=function(t,n,u){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:s==null?null:""+s,children:t,containerInfo:n,implementation:u}},i.createRoleSelector=function(t){return{$$typeof:uo,value:t}},i.createTestNameSelector=function(t){return{$$typeof:oo,value:t}},i.createTextSelector=function(t){return{$$typeof:so,value:t}},i.deferredUpdates=function(t){var n=xe,u=je.transition;try{return je.transition=null,xe=16,t()}finally{xe=n,je.transition=u}},i.discreteUpdates=function(t,n,u,s,l){var p=xe,g=je.transition;try{return je.transition=null,xe=1,t(n,u,s,l)}finally{xe=p,je.transition=g,de===0&&zn()}},i.findAllNodes=La,i.findBoundingRects=function(t,n){if(!Ur)throw Error(c(363));n=La(t,n),t=[];for(var u=0;u<n.length;u++)t.push(xn(n[u]));for(n=t.length-1;0<n;n--){u=t[n];for(var s=u.x,l=s+u.width,p=u.y,g=p+u.height,F=n-1;0<=F;F--)if(n!==F){var _=t[F],W=_.x,Z=W+_.width,ae=_.y,Q=ae+_.height;if(s>=W&&p>=ae&&l<=Z&&g<=Q){t.splice(n,1);break}else if(s!==W||u.width!==_.width||Q<p||ae>g){if(!(p!==ae||u.height!==_.height||Z<s||W>l)){W>s&&(_.width+=W-s,_.x=s),Z<l&&(_.width=l-W),t.splice(n,1);break}}else{ae>p&&(_.height+=ae-p,_.y=p),Q<g&&(_.height=g-ae),t.splice(n,1);break}}}return t},i.findHostInstance=rp,i.findHostInstanceWithNoPortals=function(t){return t=ze(t),t=t!==null?Et(t):null,t===null?null:t.stateNode},i.findHostInstanceWithWarning=function(t){return rp(t)},i.flushControlled=function(t){var n=de;de|=1;var u=je.transition,s=xe;try{je.transition=null,xe=1,t()}finally{xe=s,je.transition=u,de=n,de===0&&(zn(),ar())}},i.flushPassiveEffects=cn,i.flushSync=Vc,i.focusWithin=function(t,n){if(!Ur)throw Error(c(363));for(t=Ia(t),n=jc(t,n),n=Array.from(n),t=0;t<n.length;){var u=n[t++];if(!Bt(u)){if(u.tag===5&&mi(u.stateNode))return!0;for(u=u.child;u!==null;)n.push(u),u=u.sibling}}return!1},i.getCurrentUpdatePriority=function(){return xe},i.getFindAllNodesFailureDescription=function(t,n){if(!Ur)throw Error(c(363));var u=0,s=[];t=[Ia(t),0];for(var l=0;l<t.length;){var p=t[l++],g=t[l++],F=n[g];if((p.tag!==5||!Bt(p))&&(Aa(p,F)&&(s.push(_a(F)),g++,g>u&&(u=g)),g<n.length))for(p=p.child;p!==null;)t.push(p,g),p=p.sibling}if(u<n.length){for(t=[];u<n.length;u++)t.push(_a(n[u]));return`findAllNodes was able to match part of the selector:
|
|
10
|
-
`+(s.join(" > ")+`
|
|
11
|
-
|
|
12
|
-
No matching component was found for:
|
|
13
|
-
`)+t.join(" > ")}return null},i.getPublicRootInstance=function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return Rt(t.child.stateNode);default:return t.child.stateNode}},i.injectIntoDevTools=function(t){if(t={bundleType:t.bundleType,version:t.version,rendererPackageName:t.rendererPackageName,rendererConfig:t.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:d.ReactCurrentDispatcher,findHostInstanceByFiber:m0,findFiberByHostInstance:t.findFiberByHostInstance||D0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")t=!1;else{var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled||!n.supportsFiber)t=!0;else{try{Pu=n.inject(t),sr=n}catch{}t=!!n.checkDCE}}return t},i.isAlreadyRendering=function(){return!1},i.observeVisibleRects=function(t,n,u,s){if(!Ur)throw Error(c(363));t=La(t,n);var l=en(t,u,s).disconnect;return{disconnect:function(){l()}}},i.registerMutableSourceForHydration=function(t,n){var u=n._getVersion;u=u(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,u]:t.mutableSourceEagerHydrationData.push(n,u)},i.runWithPriority=function(t,n){var u=xe;try{return xe=t,n()}finally{xe=u}},i.shouldError=function(){return null},i.shouldSuspend=function(){return!1},i.updateContainer=function(t,n,u,s){var l=n.current,p=mt(),g=Vr(l);return u=tp(u),n.context===null?n.context=u:n.pendingContext=u,n=Ir(p,g),n.payload={element:t},s=s===void 0?null:s,s!==null&&(n.callback=s),t=jr(l,n,g),t!==null&&(jt(t,l,g,p),Gu(t,l,g)),g},i}});var Rh=Ie((rx,Ph)=>{"use strict";D();Ph.exports=Oh()});var Bh=Ie(mn=>{"use strict";D();mn.ConcurrentRoot=1;mn.ContinuousEventPriority=4;mn.DefaultEventPriority=16;mn.DiscreteEventPriority=1;mn.IdleEventPriority=536870912;mn.LegacyRoot=0});var kh=Ie((ox,bh)=>{"use strict";D();bh.exports=Bh()});var Mh=Ie((cx,Hh)=>{"use strict";D();Hh.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var xm=Ie((QC,vm)=>{"use strict";D();var _1=/[|\\{}()[\]^$+*?.-]/g;vm.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(_1,"\\$&")}});var Tm=Ie((qC,Sm)=>{"use strict";D();var L1=xm(),w1=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",Fm=[].concat(E0("module").builtinModules,"bootstrap_node","node").map(e=>new RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`));Fm.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var Al=class e{constructor(r){r={ignoredPackages:[],...r},"internals"in r||(r.internals=e.nodeInternals()),"cwd"in r||(r.cwd=w1),this._cwd=r.cwd.replace(/\\/g,"/"),this._internals=[].concat(r.internals,O1(r.ignoredPackages)),this._wrapCallSite=r.wrapCallSite||!1}static nodeInternals(){return[...Fm]}clean(r,i=0){i=" ".repeat(i),Array.isArray(r)||(r=r.split(`
|
|
14
|
-
`)),!/^\s*at /.test(r[0])&&/^\s*at /.test(r[1])&&(r=r.slice(1));let o=!1,a=null,f=[];return r.forEach(c=>{if(c=c.replace(/\\/g,"/"),this._internals.some(h=>h.test(c)))return;let d=/^\s*at /.test(c);o?c=c.trimEnd().replace(/^(\s+)at /,"$1"):(c=c.trim(),d&&(c=c.slice(3))),c=c.replace(`${this._cwd}/`,""),c&&(d?(a&&(f.push(a),a=null),f.push(c)):(o=!0,a=c))}),f.map(c=>`${i}${c}
|
|
15
|
-
`).join("")}captureString(r,i=this.captureString){typeof r=="function"&&(i=r,r=1/0);let{stackTraceLimit:o}=Error;r&&(Error.stackTraceLimit=r);let a={};Error.captureStackTrace(a,i);let{stack:f}=a;return Error.stackTraceLimit=o,this.clean(f)}capture(r,i=this.capture){typeof r=="function"&&(i=r,r=1/0);let{prepareStackTrace:o,stackTraceLimit:a}=Error;Error.prepareStackTrace=(d,h)=>this._wrapCallSite?h.map(this._wrapCallSite):h,r&&(Error.stackTraceLimit=r);let f={};Error.captureStackTrace(f,i);let{stack:c}=f;return Object.assign(Error,{prepareStackTrace:o,stackTraceLimit:a}),c}at(r=this.at){let[i]=this.capture(1,r);if(!i)return{};let o={line:i.getLineNumber(),column:i.getColumnNumber()};Cm(o,i.getFileName(),this._cwd),i.isConstructor()&&Object.defineProperty(o,"constructor",{value:!0,configurable:!0}),i.isEval()&&(o.evalOrigin=i.getEvalOrigin()),i.isNative()&&(o.native=!0);let a;try{a=i.getTypeName()}catch{}a&&a!=="Object"&&a!=="[object Object]"&&(o.type=a);let f=i.getFunctionName();f&&(o.function=f);let c=i.getMethodName();return c&&f!==c&&(o.method=c),o}parseLine(r){let i=r&&r.match(P1);if(!i)return null;let o=i[1]==="new",a=i[2],f=i[3],c=i[4],d=Number(i[5]),h=Number(i[6]),m=i[7],v=i[8],C=i[9],x=i[10]==="native",O=i[11]===")",R,k={};if(v&&(k.line=Number(v)),C&&(k.column=Number(C)),O&&m){let P=0;for(let B=m.length-1;B>0;B--)if(m.charAt(B)===")")P++;else if(m.charAt(B)==="("&&m.charAt(B-1)===" "&&(P--,P===-1&&m.charAt(B-1)===" ")){let j=m.slice(0,B-1);m=m.slice(B+1),a+=` (${j}`;break}}if(a){let P=a.match(R1);P&&(a=P[1],R=P[2])}return Cm(k,m,this._cwd),o&&Object.defineProperty(k,"constructor",{value:!0,configurable:!0}),f&&(k.evalOrigin=f,k.evalLine=d,k.evalColumn=h,k.evalFile=c&&c.replace(/\\/g,"/")),x&&(k.native=!0),a&&(k.function=a),R&&a!==R&&(k.method=R),k}};function Cm(e,r,i){r&&(r=r.replace(/\\/g,"/"),r.startsWith(`${i}/`)&&(r=r.slice(i.length+1)),e.file=r)}function O1(e){if(e.length===0)return[];let r=e.map(i=>L1(i));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${r.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var P1=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),R1=/^(.*?) \[as (.*?)\]$/;Sm.exports=Al});var pD=Ie((XN,cD)=>{"use strict";D();var dy=S0(),ri=F0();function fD(e){if(/^\d{3,4}$/.test(e)){let i=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(i[1],10),patch:parseInt(i[2],10)}}let r=(e||"").split(".").map(i=>parseInt(i,10));return{major:r[0],minor:r[1],patch:r[2]}}function Vl(e){let{env:r}=process;if("FORCE_HYPERLINK"in r)return!(r.FORCE_HYPERLINK.length>0&&parseInt(r.FORCE_HYPERLINK,10)===0);if(ri("no-hyperlink")||ri("no-hyperlinks")||ri("hyperlink=false")||ri("hyperlink=never"))return!1;if(ri("hyperlink=true")||ri("hyperlink=always")||"NETLIFY"in r)return!0;if(!dy.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in r||"TEAMCITY_VERSION"in r)return!1;if("TERM_PROGRAM"in r){let i=fD(r.TERM_PROGRAM_VERSION);switch(r.TERM_PROGRAM){case"iTerm.app":return i.major===3?i.minor>=1:i.major>3;case"WezTerm":return i.major>=20200620;case"vscode":return i.major>1||i.major===1&&i.minor>=72}}if("VTE_VERSION"in r){if(r.VTE_VERSION==="0.50.0")return!1;let i=fD(r.VTE_VERSION);return i.major>0||i.minor>=50}return!1}cD.exports={supportsHyperlink:Vl,stdout:Vl(process.stdout),stderr:Vl(process.stderr)}});var xD=Ie((M3,vD)=>{"use strict";D();vD.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});D();var Vm=$(ie(),1);D();D();import{Stream as j1}from"node:stream";import Wo from"node:process";D();var Rm=$(ie(),1),Ol=$(Zp(),1);import Pm from"node:process";D();import Za from"node:process";var Se="\x1B[",$i="\x1B]",$n="\x07",Yi=";",el=typeof window<"u"&&typeof window.document<"u",ed=!el&&Za.env.TERM_PROGRAM==="Apple_Terminal",PE=!el&&Za.platform==="win32",RE=el?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Za.cwd,me={};me.cursorTo=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?Se+(e+1)+"G":Se+(r+1)+Yi+(e+1)+"H"};me.cursorMove=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let i="";return e<0?i+=Se+-e+"D":e>0&&(i+=Se+e+"C"),r<0?i+=Se+-r+"A":r>0&&(i+=Se+r+"B"),i};me.cursorUp=(e=1)=>Se+e+"A";me.cursorDown=(e=1)=>Se+e+"B";me.cursorForward=(e=1)=>Se+e+"C";me.cursorBackward=(e=1)=>Se+e+"D";me.cursorLeft=Se+"G";me.cursorSavePosition=ed?"\x1B7":Se+"s";me.cursorRestorePosition=ed?"\x1B8":Se+"u";me.cursorGetPosition=Se+"6n";me.cursorNextLine=Se+"E";me.cursorPrevLine=Se+"F";me.cursorHide=Se+"?25l";me.cursorShow=Se+"?25h";me.eraseLines=e=>{let r="";for(let i=0;i<e;i++)r+=me.eraseLine+(i<e-1?me.cursorUp():"");return e&&(r+=me.cursorLeft),r};me.eraseEndLine=Se+"K";me.eraseStartLine=Se+"1K";me.eraseLine=Se+"2K";me.eraseDown=Se+"J";me.eraseUp=Se+"1J";me.eraseScreen=Se+"2J";me.scrollUp=Se+"S";me.scrollDown=Se+"T";me.clearScreen="\x1Bc";me.clearTerminal=PE?`${me.eraseScreen}${Se}0f`:`${me.eraseScreen}${Se}3J${Se}H`;me.enterAlternativeScreen=Se+"?1049h";me.exitAlternativeScreen=Se+"?1049l";me.beep=$n;me.link=(e,r)=>[$i,"8",Yi,Yi,r,$n,e,$i,"8",Yi,Yi,$n].join("");me.image=(e,r={})=>{let i=`${$i}1337;File=inline=1`;return r.width&&(i+=`;width=${r.width}`),r.height&&(i+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(i+=";preserveAspectRatio=0"),i+":"+e.toString("base64")+$n};me.iTerm={setCwd:(e=RE())=>`${$i}50;CurrentDir=${e}${$n}`,annotation(e,r={}){let i=`${$i}1337;`,o=typeof r.x<"u",a=typeof r.y<"u";if((o||a)&&!(o&&a&&typeof r.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),i+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?i+=(o?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):i+=e,i+$n}};var Qi=me;var Bm=$(y0(),1);D();var BE=e=>{let r=new Set;do for(let i of Reflect.ownKeys(e))r.add([e,i]);while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return r};function tl(e,{include:r,exclude:i}={}){let o=a=>{let f=c=>typeof c=="string"?a===c:c.test(a);return r?r.some(f):i?!i.some(f):!0};for(let[a,f]of BE(e.constructor.prototype)){if(f==="constructor"||!o(f))continue;let c=Reflect.getOwnPropertyDescriptor(a,f);c&&typeof c.value=="function"&&(e[f]=e[f].bind(e))}return e}var bm=$(v0(),1);D();import{PassThrough as td}from"node:stream";var rd=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],rl={},bE=e=>{let r=new td,i=new td;r.write=a=>{e("stdout",a)},i.write=a=>{e("stderr",a)};let o=new console.Console(r,i);for(let a of rd)rl[a]=console[a],console[a]=o[a];return()=>{for(let a of rd)console[a]=rl[a];rl={}}},nd=bE;D();import{readFile as UE}from"node:fs/promises";import{createRequire as HE}from"node:module";D();D();var X={},id=X.ALIGN_AUTO=0,ud=X.ALIGN_FLEX_START=1,od=X.ALIGN_CENTER=2,sd=X.ALIGN_FLEX_END=3,ad=X.ALIGN_STRETCH=4,ld=X.ALIGN_BASELINE=5,fd=X.ALIGN_SPACE_BETWEEN=6,cd=X.ALIGN_SPACE_AROUND=7,pd=X.DIMENSION_WIDTH=0,dd=X.DIMENSION_HEIGHT=1,hd=X.DIRECTION_INHERIT=0,md=X.DIRECTION_LTR=1,Dd=X.DIRECTION_RTL=2,gd=X.DISPLAY_FLEX=0,Ed=X.DISPLAY_NONE=1,yd=X.EDGE_LEFT=0,vd=X.EDGE_TOP=1,xd=X.EDGE_RIGHT=2,Cd=X.EDGE_BOTTOM=3,Fd=X.EDGE_START=4,Sd=X.EDGE_END=5,Td=X.EDGE_HORIZONTAL=6,Nd=X.EDGE_VERTICAL=7,Id=X.EDGE_ALL=8,Ad=X.EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS=0,_d=X.EXPERIMENTAL_FEATURE_ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE=1,Ld=X.EXPERIMENTAL_FEATURE_FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN=2,wd=X.FLEX_DIRECTION_COLUMN=0,Od=X.FLEX_DIRECTION_COLUMN_REVERSE=1,Pd=X.FLEX_DIRECTION_ROW=2,Rd=X.FLEX_DIRECTION_ROW_REVERSE=3,Bd=X.GUTTER_COLUMN=0,bd=X.GUTTER_ROW=1,kd=X.GUTTER_ALL=2,Ud=X.JUSTIFY_FLEX_START=0,Hd=X.JUSTIFY_CENTER=1,Md=X.JUSTIFY_FLEX_END=2,Gd=X.JUSTIFY_SPACE_BETWEEN=3,jd=X.JUSTIFY_SPACE_AROUND=4,Wd=X.JUSTIFY_SPACE_EVENLY=5,zd=X.LOG_LEVEL_ERROR=0,Vd=X.LOG_LEVEL_WARN=1,Xd=X.LOG_LEVEL_INFO=2,Yd=X.LOG_LEVEL_DEBUG=3,$d=X.LOG_LEVEL_VERBOSE=4,Qd=X.LOG_LEVEL_FATAL=5,Jd=X.MEASURE_MODE_UNDEFINED=0,qd=X.MEASURE_MODE_EXACTLY=1,Kd=X.MEASURE_MODE_AT_MOST=2,Zd=X.NODE_TYPE_DEFAULT=0,eh=X.NODE_TYPE_TEXT=1,th=X.OVERFLOW_VISIBLE=0,rh=X.OVERFLOW_HIDDEN=1,nh=X.OVERFLOW_SCROLL=2,ih=X.POSITION_TYPE_STATIC=0,uh=X.POSITION_TYPE_RELATIVE=1,oh=X.POSITION_TYPE_ABSOLUTE=2,sh=X.PRINT_OPTIONS_LAYOUT=1,ah=X.PRINT_OPTIONS_STYLE=2,lh=X.PRINT_OPTIONS_CHILDREN=4,fh=X.UNIT_UNDEFINED=0,ch=X.UNIT_POINT=1,ph=X.UNIT_PERCENT=2,dh=X.UNIT_AUTO=3,hh=X.WRAP_NO_WRAP=0,mh=X.WRAP_WRAP=1,Dh=X.WRAP_WRAP_REVERSE=2;var gh=e=>{function r(a,f,c){let d=a[f];a[f]=function(...h){return c.call(this,d,...h)}}for(let a of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){let f={[X.UNIT_POINT]:e.Node.prototype[a],[X.UNIT_PERCENT]:e.Node.prototype[`${a}Percent`],[X.UNIT_AUTO]:e.Node.prototype[`${a}Auto`]};r(e.Node.prototype,a,function(c,...d){let h,m,v=d.pop();if(v==="auto")h=X.UNIT_AUTO,m=void 0;else if(typeof v=="object")h=v.unit,m=v.valueOf();else if(h=typeof v=="string"&&v.endsWith("%")?X.UNIT_PERCENT:X.UNIT_POINT,m=parseFloat(v),!Number.isNaN(v)&&Number.isNaN(m))throw Error(`Invalid value ${v} for ${a}`);if(!f[h])throw Error(`Failed to execute "${a}": Unsupported unit '${v}'`);return m!==void 0?f[h].call(this,...d,m):f[h].call(this,...d)})}function i(a){return e.MeasureCallback.implement({measure:(...f)=>{let{width:c,height:d}=a(...f);return{width:c??NaN,height:d??NaN}}})}function o(a){return e.DirtiedCallback.implement({dirtied:a})}return r(e.Node.prototype,"setMeasureFunc",function(a,f){return f?a.call(this,i(f)):this.unsetMeasureFunc()}),r(e.Node.prototype,"setDirtiedFunc",function(a,f){a.call(this,o(f))}),r(e.Config.prototype,"free",function(){e.Config.destroy(this)}),r(e.Node,"create",(a,f)=>f?e.Node.createWithConfig(f):e.Node.createDefault()),r(e.Node.prototype,"free",function(){e.Node.destroy(this)}),r(e.Node.prototype,"freeRecursive",function(){for(let a=0,f=this.getChildCount();a<f;++a)this.getChild(0).freeRecursive();this.free()}),r(e.Node.prototype,"calculateLayout",function(a,f=NaN,c=NaN,d=X.DIRECTION_LTR){return a.call(this,f,c,d)}),{Config:e.Config,Node:e.Node,...X}};var kE=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(r={}){h||(h=r!==void 0?r:{}),h.ready=new Promise(function(y,E){m=y,v=E});var i,o,a=Object.assign({},h),f="";typeof document<"u"&&document.currentScript&&(f=document.currentScript.src),e&&(f=e),f=f.indexOf("blob:")!==0?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var c=console.log.bind(console),d=console.warn.bind(console);Object.assign(h,a),a=null,typeof WebAssembly!="object"&&ot("no native wasm support detected");var h,m,v,C,x=!1;function O(y,E,T){T=E+T;for(var I="";!(E>=T);){var N=y[E++];if(!N)break;if(128&N){var L=63&y[E++];if((224&N)==192)I+=String.fromCharCode((31&N)<<6|L);else{var M=63&y[E++];65536>(N=(240&N)==224?(15&N)<<12|L<<6|M:(7&N)<<18|L<<12|M<<6|63&y[E++])?I+=String.fromCharCode(N):(N-=65536,I+=String.fromCharCode(55296|N>>10,56320|1023&N))}}else I+=String.fromCharCode(N)}return I}function R(){var y=C.buffer;h.HEAP8=k=new Int8Array(y),h.HEAP16=B=new Int16Array(y),h.HEAP32=q=new Int32Array(y),h.HEAPU8=P=new Uint8Array(y),h.HEAPU16=j=new Uint16Array(y),h.HEAPU32=z=new Uint32Array(y),h.HEAPF32=Y=new Float32Array(y),h.HEAPF64=H=new Float64Array(y)}var k,P,B,j,q,z,Y,H,ne,Me=[],Le=[],Ae=[],ze=0,et=null;function ot(y){throw d(y="Aborted("+y+")"),x=!0,v(y=new WebAssembly.RuntimeError(y+". Build with -sASSERTIONS for more info.")),y}function Et(){return i.startsWith("data:application/octet-stream;base64,")}function Ne(){try{throw"both async and sync fetching of the wasm failed"}catch(y){ot(y)}}function Rt(y){for(;0<y.length;)y.shift()(h)}function Zr(y){if(y===void 0)return"_unknown";var E=(y=y.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=E&&57>=E?"_"+y:y}function $e(y,E){return y=Zr(y),function(){return E.apply(this,arguments)}}i="yoga.wasm",Et()||(i=f+i);var Ge=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Xt=[];function vr(y){var E=Error,T=$e(y,function(I){this.name=y,this.message=I,(I=Error(I).stack)!==void 0&&(this.stack=this.toString()+`
|
|
16
|
-
`+I.replace(/^Error(:[^\n]*)?\n/,""))});return T.prototype=Object.create(E.prototype),T.prototype.constructor=T,T.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},T}var ir=void 0;function ce(y){throw new ir(y)}var Br=y=>(y||ce("Cannot use deleted val. handle = "+y),Ge[y].value),br=y=>{switch(y){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var E=Xt.length?Xt.pop():Ge.length;return Ge[E]={fa:1,value:y},E}},pi=void 0,di=void 0;function Qe(y){for(var E="";P[y];)E+=di[P[y++]];return E}var xr=[];function kr(){for(;xr.length;){var y=xr.pop();y.L.Z=!1,y.delete()}}var Je=void 0,Ct={};function ct(y,E){for(E===void 0&&ce("ptr should not be undefined");y.P;)E=y.aa(E),y=y.P;return E}var Cr={};function yu(y){var E=Qe(y=Au(y));return Qt(y),E}function vu(y,E){var T=Cr[y];return T===void 0&&ce(E+" has unknown type "+yu(y)),T}function vn(){}var hi=!1;function xu(y){--y.count.value,y.count.value===0&&(y.S?y.T.V(y.S):y.O.M.V(y.N))}var Ur={},Cu=void 0;function xn(y){throw new Cu(y)}function Cn(y,E){return E.O&&E.N||xn("makeClassHandle requires ptr and ptrType"),!!E.T!=!!E.S&&xn("Both smartPtrType and smartPtr must be specified"),E.count={value:1},Bt(Object.create(y,{L:{value:E}}))}function Bt(y){return typeof FinalizationRegistry>"u"?(Bt=E=>E,y):(hi=new FinalizationRegistry(E=>{xu(E.L)}),Bt=E=>{var T=E.L;return T.S&&hi.register(E,{L:T},E),E},vn=E=>{hi.unregister(E)},Bt(y))}var Fn={};function mi(y){for(;y.length;){var E=y.pop();y.pop()(E)}}function en(y){return this.fromWireType(q[y>>2])}var Hr={},Sn={};function ur(y,E,T){function I(b){(b=T(b)).length!==y.length&&xn("Mismatched type converter count");for(var G=0;G<y.length;++G)Yt(y[G],b[G])}y.forEach(function(b){Sn[b]=E});var N=Array(E.length),L=[],M=0;E.forEach((b,G)=>{Cr.hasOwnProperty(b)?N[G]=Cr[b]:(L.push(b),Hr.hasOwnProperty(b)||(Hr[b]=[]),Hr[b].push(()=>{N[G]=Cr[b],++M===L.length&&I(N)}))}),L.length===0&&I(N)}function Di(y){switch(y){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+y)}}function Yt(y,E,T={}){if(!("argPackAdvance"in E))throw TypeError("registerType registeredInstance requires argPackAdvance");var I=E.name;if(y||ce('type "'+I+'" must have a positive integer typeid pointer'),Cr.hasOwnProperty(y)){if(T.ta)return;ce("Cannot register type '"+I+"' twice")}Cr[y]=E,delete Sn[y],Hr.hasOwnProperty(y)&&(E=Hr[y],delete Hr[y],E.forEach(N=>N()))}function gi(y){ce(y.L.O.M.name+" instance already deleted")}function or(){}function Ei(y,E,T){if(y[E].R===void 0){var I=y[E];y[E]=function(){return y[E].R.hasOwnProperty(arguments.length)||ce("Function '"+T+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+y[E].R+")!"),y[E].R[arguments.length].apply(this,arguments)},y[E].R=[],y[E].R[I.Y]=I}}function Ns(y,E,T,I,N,L,M,b){this.name=y,this.constructor=E,this.W=T,this.V=I,this.P=N,this.oa=L,this.aa=M,this.ma=b,this.ia=[]}function Tn(y,E,T){for(;E!==T;)E.aa||ce("Expected null or instance of "+T.name+", got an instance of "+E.name),y=E.aa(y),E=E.P;return y}function Is(y,E){return E===null?(this.da&&ce("null is not a valid "+this.name),0):(E.L||ce('Cannot pass "'+vi(E)+'" as a '+this.name),E.L.N||ce("Cannot pass deleted object as a pointer of type "+this.name),Tn(E.L.N,E.L.O.M,this.M))}function As(y,E){if(E===null){if(this.da&&ce("null is not a valid "+this.name),this.ca){var T=this.ea();return y!==null&&y.push(this.V,T),T}return 0}if(E.L||ce('Cannot pass "'+vi(E)+'" as a '+this.name),E.L.N||ce("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&E.L.O.ba&&ce("Cannot convert argument of type "+(E.L.T?E.L.T.name:E.L.O.name)+" to parameter type "+this.name),T=Tn(E.L.N,E.L.O.M,this.M),this.ca)switch(E.L.S===void 0&&ce("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:E.L.T===this?T=E.L.S:ce("Cannot convert argument of type "+(E.L.T?E.L.T.name:E.L.O.name)+" to parameter type "+this.name);break;case 1:T=E.L.S;break;case 2:if(E.L.T===this)T=E.L.S;else{var I=E.clone();T=this.wa(T,br(function(){I.delete()})),y!==null&&y.push(this.V,T)}break;default:ce("Unsupporting sharing policy")}return T}function _s(y,E){return E===null?(this.da&&ce("null is not a valid "+this.name),0):(E.L||ce('Cannot pass "'+vi(E)+'" as a '+this.name),E.L.N||ce("Cannot pass deleted object as a pointer of type "+this.name),E.L.O.ba&&ce("Cannot convert argument of type "+E.L.O.name+" to parameter type "+this.name),Tn(E.L.N,E.L.O.M,this.M))}function $t(y,E,T,I){this.name=y,this.M=E,this.da=T,this.ba=I,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,E.P!==void 0?this.toWireType=As:(this.toWireType=I?Is:_s,this.U=null)}var Nn=[];function Fu(y){var E=Nn[y];return E||(y>=Nn.length&&(Nn.length=y+1),Nn[y]=E=ne.get(y)),E}function Ft(y,E){var T,I,N=(y=Qe(y)).includes("j")?(T=y,I=[],function(){if(I.length=0,Object.assign(I,arguments),T.includes("j")){var L=h["dynCall_"+T];L=I&&I.length?L.apply(null,[E].concat(I)):L.call(null,E)}else L=Fu(E).apply(null,I);return L}):Fu(E);return typeof N!="function"&&ce("unknown function pointer with signature "+y+": "+E),N}var yi=void 0;function In(y,E){var T=[],I={};throw E.forEach(function N(L){I[L]||Cr[L]||(Sn[L]?Sn[L].forEach(N):(T.push(L),I[L]=!0))}),new yi(y+": "+T.map(yu).join([", "]))}function tn(y,E,T,I,N){var L=E.length;2>L&&ce("argTypes array size mismatch! Must at least get return value and 'this' types!");var M=E[1]!==null&&T!==null,b=!1;for(T=1;T<E.length;++T)if(E[T]!==null&&E[T].U===void 0){b=!0;break}var G=E[0].name!=="void",U=L-2,V=Array(U),te=[],re=[];return function(){if(arguments.length!==U&&ce("function "+y+" called with "+arguments.length+" arguments, expected "+U+" args!"),re.length=0,te.length=M?2:1,te[0]=N,M){var pe=E[1].toWireType(re,this);te[1]=pe}for(var oe=0;oe<U;++oe)V[oe]=E[oe+2].toWireType(re,arguments[oe]),te.push(V[oe]);if(oe=I.apply(null,te),b)mi(re);else for(var Ee=M?1:2;Ee<E.length;Ee++){var St=Ee===1?pe:V[Ee-2];E[Ee].U!==null&&E[Ee].U(St)}return G?E[0].fromWireType(oe):void 0}}function An(y,E){for(var T=[],I=0;I<y;I++)T.push(z[E+4*I>>2]);return T}function _n(y){4<y&&--Ge[y].fa==0&&(Ge[y]=void 0,Xt.push(y))}function vi(y){if(y===null)return"null";var E=typeof y;return E==="object"||E==="array"||E==="function"?y.toString():""+y}function Ls(y,E){for(var T="",I=0;!(I>=E/2);++I){var N=B[y+2*I>>1];if(N==0)break;T+=String.fromCharCode(N)}return T}function ws(y,E,T){if(T===void 0&&(T=2147483647),2>T)return 0;T-=2;var I=E;T=T<2*y.length?T/2:y.length;for(var N=0;N<T;++N)B[E>>1]=y.charCodeAt(N),E+=2;return B[E>>1]=0,E-I}function Su(y){return 2*y.length}function xi(y,E){for(var T=0,I="";!(T>=E/4);){var N=q[y+4*T>>2];if(N==0)break;++T,65536<=N?(N-=65536,I+=String.fromCharCode(55296|N>>10,56320|1023&N)):I+=String.fromCharCode(N)}return I}function Os(y,E,T){if(T===void 0&&(T=2147483647),4>T)return 0;var I=E;T=I+T-4;for(var N=0;N<y.length;++N){var L=y.charCodeAt(N);if(55296<=L&&57343>=L&&(L=65536+((1023&L)<<10)|1023&y.charCodeAt(++N)),q[E>>2]=L,(E+=4)+4>T)break}return q[E>>2]=0,E-I}function Ps(y){for(var E=0,T=0;T<y.length;++T){var I=y.charCodeAt(T);55296<=I&&57343>=I&&++T,E+=4}return E}var Ln={};function Tu(y){var E=Ln[y];return E===void 0?Qe(y):E}var wn=[],Nu=[],Rs=[null,[],[]];ir=h.BindingError=vr("BindingError"),h.count_emval_handles=function(){for(var y=0,E=5;E<Ge.length;++E)Ge[E]!==void 0&&++y;return y},h.get_first_emval=function(){for(var y=5;y<Ge.length;++y)if(Ge[y]!==void 0)return Ge[y];return null},pi=h.PureVirtualError=vr("PureVirtualError");for(var Iu=Array(256),On=0;256>On;++On)Iu[On]=String.fromCharCode(On);di=Iu,h.getInheritedInstanceCount=function(){return Object.keys(Ct).length},h.getLiveInheritedInstances=function(){var y,E=[];for(y in Ct)Ct.hasOwnProperty(y)&&E.push(Ct[y]);return E},h.flushPendingDeletes=kr,h.setDelayFunction=function(y){Je=y,xr.length&&Je&&Je(kr)},Cu=h.InternalError=vr("InternalError"),or.prototype.isAliasOf=function(y){if(!(this instanceof or&&y instanceof or))return!1;var E=this.L.O.M,T=this.L.N,I=y.L.O.M;for(y=y.L.N;E.P;)T=E.aa(T),E=E.P;for(;I.P;)y=I.aa(y),I=I.P;return E===I&&T===y},or.prototype.clone=function(){if(this.L.N||gi(this),this.L.$)return this.L.count.value+=1,this;var y=Bt,E=Object,T=E.create,I=Object.getPrototypeOf(this),N=this.L;return y=y(T.call(E,I,{L:{value:{count:N.count,Z:N.Z,$:N.$,N:N.N,O:N.O,S:N.S,T:N.T}}})),y.L.count.value+=1,y.L.Z=!1,y},or.prototype.delete=function(){this.L.N||gi(this),this.L.Z&&!this.L.$&&ce("Object already scheduled for deletion"),vn(this),xu(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},or.prototype.isDeleted=function(){return!this.L.N},or.prototype.deleteLater=function(){return this.L.N||gi(this),this.L.Z&&!this.L.$&&ce("Object already scheduled for deletion"),xr.push(this),xr.length===1&&Je&&Je(kr),this.L.Z=!0,this},$t.prototype.pa=function(y){return this.ja&&(y=this.ja(y)),y},$t.prototype.ga=function(y){this.V&&this.V(y)},$t.prototype.argPackAdvance=8,$t.prototype.readValueFromPointer=en,$t.prototype.deleteObject=function(y){y!==null&&y.delete()},$t.prototype.fromWireType=function(y){function E(){return this.ca?Cn(this.M.W,{O:this.va,N:I,T:this,S:y}):Cn(this.M.W,{O:this,N:y})}var T,I=this.pa(y);if(!I)return this.ga(y),null;var N=Ct[ct(this.M,I)];if(N!==void 0)return N.L.count.value===0?(N.L.N=I,N.L.S=y,N.clone()):(N=N.clone(),this.ga(y),N);if(!(N=Ur[N=this.M.oa(I)]))return E.call(this);N=this.ba?N.ka:N.pointerType;var L=function M(b,G,U){return G===U?b:U.P===void 0||(b=M(b,G,U.P))===null?null:U.ma(b)}(I,this.M,N.M);return L===null?E.call(this):this.ca?Cn(N.M.W,{O:N,N:L,T:this,S:y}):Cn(N.M.W,{O:N,N:L})},yi=h.UnboundTypeError=vr("UnboundTypeError");var Bs={q:function(y,E,T){y=Qe(y),E=vu(E,"wrapper"),T=Br(T);var I=[].slice,N=E.M,L=N.W,M=N.P.W,b=N.P.constructor;for(var G in y=$e(y,function(){N.P.ia.forEach(function(U){if(this[U]===M[U])throw new pi("Pure virtual function "+U+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:L}),this.__construct.apply(this,I.call(arguments))}),L.__construct=function(){this===L&&ce("Pass correct 'this' to __construct");var U=b.implement.apply(void 0,[this].concat(I.call(arguments)));vn(U);var V=U.L;U.notifyOnDestruction(),V.$=!0,Object.defineProperties(this,{L:{value:V}}),Bt(this),U=ct(N,U=V.N),Ct.hasOwnProperty(U)?ce("Tried to register registered instance: "+U):Ct[U]=this},L.__destruct=function(){this===L&&ce("Pass correct 'this' to __destruct"),vn(this);var U=this.L.N;U=ct(N,U),Ct.hasOwnProperty(U)?delete Ct[U]:ce("Tried to unregister unregistered instance: "+U)},y.prototype=Object.create(L),T)y.prototype[G]=T[G];return br(y)},l:function(y){var E=Fn[y];delete Fn[y];var T=E.ea,I=E.V,N=E.ha;ur([y],N.map(L=>L.sa).concat(N.map(L=>L.ya)),L=>{var M={};return N.forEach((b,G)=>{var U=L[G],V=b.qa,te=b.ra,re=L[G+N.length],pe=b.xa,oe=b.za;M[b.na]={read:Ee=>U.fromWireType(V(te,Ee)),write:(Ee,St)=>{var Tt=[];pe(oe,Ee,re.toWireType(Tt,St)),mi(Tt)}}}),[{name:E.name,fromWireType:function(b){var G,U={};for(G in M)U[G]=M[G].read(b);return I(b),U},toWireType:function(b,G){for(var U in M)if(!(U in G))throw TypeError('Missing field: "'+U+'"');var V=T();for(U in M)M[U].write(V,G[U]);return b!==null&&b.push(I,V),V},argPackAdvance:8,readValueFromPointer:en,U:I}]})},v:function(){},B:function(y,E,T,I,N){var L=Di(T);Yt(y,{name:E=Qe(E),fromWireType:function(M){return!!M},toWireType:function(M,b){return b?I:N},argPackAdvance:8,readValueFromPointer:function(M){if(T===1)var b=k;else if(T===2)b=B;else if(T===4)b=q;else throw TypeError("Unknown boolean type size: "+E);return this.fromWireType(b[M>>L])},U:null})},h:function(y,E,T,I,N,L,M,b,G,U,V,te,re){V=Qe(V),L=Ft(N,L),b&&(b=Ft(M,b)),U&&(U=Ft(G,U)),re=Ft(te,re);var pe,oe=Zr(V);pe=function(){In("Cannot construct "+V+" due to unbound types",[I])},h.hasOwnProperty(oe)?(ce("Cannot register public name '"+oe+"' twice"),Ei(h,oe,oe),h.hasOwnProperty(void 0)&&ce("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),h[oe].R[void 0]=pe):h[oe]=pe,ur([y,E,T],I?[I]:[],function(Ee){if(Ee=Ee[0],I)var St,Tt=Ee.M,Ve=Tt.W;else Ve=or.prototype;Ee=$e(oe,function(){if(Object.getPrototypeOf(this)!==Mr)throw new ir("Use 'new' to construct "+V);if(Fr.X===void 0)throw new ir(V+" has no accessible constructor");var rn=Fr.X[arguments.length];if(rn===void 0)throw new ir("Tried to invoke ctor of "+V+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Fr.X).toString()+") parameters instead!");return rn.apply(this,arguments)});var Mr=Object.create(Ve,{constructor:{value:Ee}});Ee.prototype=Mr;var Fr=new Ns(V,Ee,Mr,re,Tt,L,b,U);Tt=new $t(V,Fr,!0,!1),Ve=new $t(V+"*",Fr,!1,!1);var Fi=new $t(V+" const*",Fr,!1,!0);return Ur[y]={pointerType:Ve,ka:Fi},St=Ee,h.hasOwnProperty(oe)||xn("Replacing nonexistant public symbol"),h[oe]=St,h[oe].Y=void 0,[Tt,Ve,Fi]})},d:function(y,E,T,I,N,L,M){var b=An(T,I);E=Qe(E),L=Ft(N,L),ur([],[y],function(G){function U(){In("Cannot call "+V+" due to unbound types",b)}var V=(G=G[0]).name+"."+E;E.startsWith("@@")&&(E=Symbol[E.substring(2)]);var te=G.M.constructor;return te[E]===void 0?(U.Y=T-1,te[E]=U):(Ei(te,E,V),te[E].R[T-1]=U),ur([],b,function(re){return re=tn(V,[re[0],null].concat(re.slice(1)),null,L,M),te[E].R===void 0?(re.Y=T-1,te[E]=re):te[E].R[T-1]=re,[]}),[]})},p:function(y,E,T,I,N,L){0<E||ot();var M=An(E,T);N=Ft(I,N),ur([],[y],function(b){var G="constructor "+(b=b[0]).name;if(b.M.X===void 0&&(b.M.X=[]),b.M.X[E-1]!==void 0)throw new ir("Cannot register multiple constructors with identical number of parameters ("+(E-1)+") for class '"+b.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return b.M.X[E-1]=()=>{In("Cannot construct "+b.name+" due to unbound types",M)},ur([],M,function(U){return U.splice(1,0,null),b.M.X[E-1]=tn(G,U,null,N,L),[]}),[]})},a:function(y,E,T,I,N,L,M,b){var G=An(T,I);E=Qe(E),L=Ft(N,L),ur([],[y],function(U){function V(){In("Cannot call "+te+" due to unbound types",G)}var te=(U=U[0]).name+"."+E;E.startsWith("@@")&&(E=Symbol[E.substring(2)]),b&&U.M.ia.push(E);var re=U.M.W,pe=re[E];return pe===void 0||pe.R===void 0&&pe.className!==U.name&&pe.Y===T-2?(V.Y=T-2,V.className=U.name,re[E]=V):(Ei(re,E,te),re[E].R[T-2]=V),ur([],G,function(oe){return oe=tn(te,oe,U,L,M),re[E].R===void 0?(oe.Y=T-2,re[E]=oe):re[E].R[T-2]=oe,[]}),[]})},A:function(y,E){Yt(y,{name:E=Qe(E),fromWireType:function(T){var I=Br(T);return _n(T),I},toWireType:function(T,I){return br(I)},argPackAdvance:8,readValueFromPointer:en,U:null})},n:function(y,E,T){T=Di(T),Yt(y,{name:E=Qe(E),fromWireType:function(I){return I},toWireType:function(I,N){return N},argPackAdvance:8,readValueFromPointer:function(I,N){switch(N){case 2:return function(L){return this.fromWireType(Y[L>>2])};case 3:return function(L){return this.fromWireType(H[L>>3])};default:throw TypeError("Unknown float type: "+I)}}(E,T),U:null})},e:function(y,E,T,I,N){E=Qe(E),N===-1&&(N=4294967295),N=Di(T);var L=b=>b;if(I===0){var M=32-8*T;L=b=>b<<M>>>M}T=E.includes("unsigned")?function(b,G){return G>>>0}:function(b,G){return G},Yt(y,{name:E,fromWireType:L,toWireType:T,argPackAdvance:8,readValueFromPointer:function(b,G,U){switch(G){case 0:return U?function(V){return k[V]}:function(V){return P[V]};case 1:return U?function(V){return B[V>>1]}:function(V){return j[V>>1]};case 2:return U?function(V){return q[V>>2]}:function(V){return z[V>>2]};default:throw TypeError("Unknown integer type: "+b)}}(E,N,I!==0),U:null})},b:function(y,E,T){function I(L){L>>=2;var M=z;return new N(M.buffer,M[L+1],M[L])}var N=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][E];Yt(y,{name:T=Qe(T),fromWireType:I,argPackAdvance:8,readValueFromPointer:I},{ta:!0})},o:function(y,E){var T=(E=Qe(E))==="std::string";Yt(y,{name:E,fromWireType:function(I){var N=z[I>>2],L=I+4;if(T)for(var M=L,b=0;b<=N;++b){var G=L+b;if(b==N||P[G]==0){if(M=M?O(P,M,G-M):"",U===void 0)var U=M;else U+="\0"+M;M=G+1}}else{for(b=0,U=Array(N);b<N;++b)U[b]=String.fromCharCode(P[L+b]);U=U.join("")}return Qt(I),U},toWireType:function(I,N){N instanceof ArrayBuffer&&(N=new Uint8Array(N));var L,M=typeof N=="string";if(M||N instanceof Uint8Array||N instanceof Uint8ClampedArray||N instanceof Int8Array||ce("Cannot pass non-string to std::string"),T&&M){var b=0;for(L=0;L<N.length;++L){var G=N.charCodeAt(L);127>=G?b++:2047>=G?b+=2:55296<=G&&57343>=G?(b+=4,++L):b+=3}L=b}else L=N.length;if(G=(b=Ci(4+L+1))+4,z[b>>2]=L,T&&M){if(M=G,G=L+1,L=P,0<G){G=M+G-1;for(var U=0;U<N.length;++U){var V=N.charCodeAt(U);if(55296<=V&&57343>=V&&(V=65536+((1023&V)<<10)|1023&N.charCodeAt(++U)),127>=V){if(M>=G)break;L[M++]=V}else{if(2047>=V){if(M+1>=G)break;L[M++]=192|V>>6}else{if(65535>=V){if(M+2>=G)break;L[M++]=224|V>>12}else{if(M+3>=G)break;L[M++]=240|V>>18,L[M++]=128|V>>12&63}L[M++]=128|V>>6&63}L[M++]=128|63&V}}L[M]=0}}else if(M)for(M=0;M<L;++M)255<(U=N.charCodeAt(M))&&(Qt(G),ce("String has UTF-16 code units that do not fit in 8 bits")),P[G+M]=U;else for(M=0;M<L;++M)P[G+M]=N[M];return I!==null&&I.push(Qt,b),b},argPackAdvance:8,readValueFromPointer:en,U:function(I){Qt(I)}})},k:function(y,E,T){if(T=Qe(T),E===2)var I=Ls,N=ws,L=Su,M=()=>j,b=1;else E===4&&(I=xi,N=Os,L=Ps,M=()=>z,b=2);Yt(y,{name:T,fromWireType:function(G){for(var U,V=z[G>>2],te=M(),re=G+4,pe=0;pe<=V;++pe){var oe=G+4+pe*E;(pe==V||te[oe>>b]==0)&&(re=I(re,oe-re),U===void 0?U=re:U+="\0"+re,re=oe+E)}return Qt(G),U},toWireType:function(G,U){typeof U!="string"&&ce("Cannot pass non-string to C++ string type "+T);var V=L(U),te=Ci(4+V+E);return z[te>>2]=V>>b,N(U,te+4,V+E),G!==null&&G.push(Qt,te),te},argPackAdvance:8,readValueFromPointer:en,U:function(G){Qt(G)}})},m:function(y,E,T,I,N,L){Fn[y]={name:Qe(E),ea:Ft(T,I),V:Ft(N,L),ha:[]}},c:function(y,E,T,I,N,L,M,b,G,U){Fn[y].ha.push({na:Qe(E),sa:T,qa:Ft(I,N),ra:L,ya:M,xa:Ft(b,G),za:U})},C:function(y,E){Yt(y,{ua:!0,name:E=Qe(E),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},t:function(y,E,T,I,N){y=wn[y],E=Br(E),T=Tu(T);var L=[];return z[I>>2]=br(L),y(E,T,L,N)},j:function(y,E,T,I){y=wn[y],y(E=Br(E),T=Tu(T),null,I)},f:_n,g:function(y,E){var T,I,N=function(G,U){for(var V=Array(G),te=0;te<G;++te)V[te]=vu(z[U+4*te>>2],"parameter "+te);return V}(y,E),L=N[0],M=Nu[E=L.name+"_$"+N.slice(1).map(function(G){return G.name}).join("_")+"$"];if(M!==void 0)return M;var b=Array(y-1);return T=(G,U,V,te)=>{for(var re=0,pe=0;pe<y-1;++pe)b[pe]=N[pe+1].readValueFromPointer(te+re),re+=N[pe+1].argPackAdvance;for(pe=0,G=G[U].apply(G,b);pe<y-1;++pe)N[pe+1].la&&N[pe+1].la(b[pe]);if(!L.ua)return L.toWireType(V,G)},I=wn.length,wn.push(T),M=I,Nu[E]=M},r:function(y){4<y&&(Ge[y].fa+=1)},s:function(y){mi(Br(y)),_n(y)},i:function(){ot("")},x:function(y,E,T){P.copyWithin(y,E,E+T)},w:function(y){var E=P.length;if(2147483648<(y>>>=0))return!1;for(var T=1;4>=T;T*=2){var I=E*(1+.2/T);I=Math.min(I,y+100663296);var N=Math,L=N.min;I=Math.max(y,I),I+=(65536-I%65536)%65536;e:{var M=C.buffer;try{C.grow(L.call(N,2147483648,I)-M.byteLength+65535>>>16),R();var b=1;break e}catch{}b=void 0}if(b)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(y,E,T,I){for(var N=0,L=0;L<T;L++){var M=z[E>>2],b=z[E+4>>2];E+=8;for(var G=0;G<b;G++){var U=P[M+G],V=Rs[y];U===0||U===10?((y===1?c:d)(O(V,0)),V.length=0):V.push(U)}N+=b}return z[I>>2]=N,0}};(function(){function y(N){h.asm=N.exports,C=h.asm.D,R(),ne=h.asm.I,Le.unshift(h.asm.E),--ze==0&&et&&(N=et,et=null,N())}function E(N){y(N.instance)}function T(N){return(typeof fetch=="function"?fetch(i,{credentials:"same-origin"}).then(function(L){if(!L.ok)throw"failed to load wasm binary file at '"+i+"'";return L.arrayBuffer()}).catch(function(){return Ne()}):Promise.resolve().then(function(){return Ne()})).then(function(L){return WebAssembly.instantiate(L,I)}).then(function(L){return L}).then(N,function(L){d("failed to asynchronously prepare wasm: "+L),ot(L)})}var I={a:Bs};if(ze++,h.instantiateWasm)try{return h.instantiateWasm(I,y)}catch(N){d("Module.instantiateWasm callback failed with error: "+N),v(N)}(typeof WebAssembly.instantiateStreaming!="function"||Et()||typeof fetch!="function"?T(E):fetch(i,{credentials:"same-origin"}).then(function(N){return WebAssembly.instantiateStreaming(N,I).then(E,function(L){return d("wasm streaming compile failed: "+L),d("falling back to ArrayBuffer instantiation"),T(E)})})).catch(v)})();var Au=h.___getTypeName=function(){return(Au=h.___getTypeName=h.asm.F).apply(null,arguments)};function Ci(){return(Ci=h.asm.H).apply(null,arguments)}function Qt(){return(Qt=h.asm.J).apply(null,arguments)}function _u(){0<ze||(Rt(Me),0<ze||o||(o=!0,h.calledRun=!0,x||(Rt(Le),m(h),Rt(Ae))))}return h.__embind_initialize_bindings=function(){return(h.__embind_initialize_bindings=h.asm.G).apply(null,arguments)},h.dynCall_jiji=function(){return(h.dynCall_jiji=h.asm.K).apply(null,arguments)},et=function y(){o||_u(),o||(et=y)},_u(),r.ready}})();async function Eh(e){let r=await kE({instantiateWasm(i,o){WebAssembly.instantiate(e,i).then(a=>{a instanceof WebAssembly.Instance?o(a):o(a.instance)})}});return gh(r)}var ee=await Eh(await UE(HE(import.meta.url).resolve("./yoga.wasm")));D();var tm=$(Rh(),1),rm=$(kh(),1);import o1 from"node:process";D();D();var Uh={},GE=e=>{if(e.length===0)return{width:0,height:0};let r=Uh[e];if(r)return r;let i=Vn(e),o=e.split(`
|
|
17
|
-
`).length;return Uh[e]={width:i,height:o},{width:i,height:o}},pl=GE;D();D();D();var Gh=$(x0(),1),jh=$(Mh(),1);function xt(e,r={}){if(typeof e!="string"||e.length===0||(r={ambiguousIsNarrow:!0,...r},e=ji(e),e.length===0))return 0;e=e.replace((0,jh.default)()," ");let i=r.ambiguousIsNarrow?1:2,o=0;for(let a of e){let f=a.codePointAt(0);if(f<=31||f>=127&&f<=159||f>=768&&f<=879)continue;switch(Gh.default.eastAsianWidth(a)){case"F":case"W":o+=2;break;case"A":o+=i;break;default:o+=1}}return o}var Lo=new Set(["\x1B","\x9B"]),jE=39,hl="\x07",Vh="[",WE="]",Xh="m",ml=`${WE}8;;`,Wh=e=>`${Lo.values().next().value}${Vh}${e}${Xh}`,zh=e=>`${Lo.values().next().value}${ml}${e}${hl}`,zE=e=>e.split(" ").map(r=>xt(r)),dl=(e,r,i)=>{let o=[...r],a=!1,f=!1,c=xt(ji(e[e.length-1]));for(let[d,h]of o.entries()){let m=xt(h);if(c+m<=i?e[e.length-1]+=h:(e.push(h),c=0),Lo.has(h)&&(a=!0,f=o.slice(d+1).join("").startsWith(ml)),a){f?h===hl&&(a=!1,f=!1):h===Xh&&(a=!1);continue}c+=m,c===i&&d<o.length-1&&(e.push(""),c=0)}!c&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},VE=e=>{let r=e.split(" "),i=r.length;for(;i>0&&!(xt(r[i-1])>0);)i--;return i===r.length?e:r.slice(0,i).join(" ")+r.slice(i).join("")},XE=(e,r,i={})=>{if(i.trim!==!1&&e.trim()==="")return"";let o="",a,f,c=zE(e),d=[""];for(let[m,v]of e.split(" ").entries()){i.trim!==!1&&(d[d.length-1]=d[d.length-1].trimStart());let C=xt(d[d.length-1]);if(m!==0&&(C>=r&&(i.wordWrap===!1||i.trim===!1)&&(d.push(""),C=0),(C>0||i.trim===!1)&&(d[d.length-1]+=" ",C++)),i.hard&&c[m]>r){let x=r-C,O=1+Math.floor((c[m]-x-1)/r);Math.floor((c[m]-1)/r)<O&&d.push(""),dl(d,v,r);continue}if(C+c[m]>r&&C>0&&c[m]>0){if(i.wordWrap===!1&&C<r){dl(d,v,r);continue}d.push("")}if(C+c[m]>r&&i.wordWrap===!1){dl(d,v,r);continue}d[d.length-1]+=v}i.trim!==!1&&(d=d.map(m=>VE(m)));let h=[...d.join(`
|
|
18
|
-
`)];for(let[m,v]of h.entries()){if(o+=v,Lo.has(v)){let{groups:x}=new RegExp(`(?:\\${Vh}(?<code>\\d+)m|\\${ml}(?<uri>.*)${hl})`).exec(h.slice(m).join(""))||{groups:{}};if(x.code!==void 0){let O=Number.parseFloat(x.code);a=O===jE?void 0:O}else x.uri!==void 0&&(f=x.uri.length===0?void 0:x.uri)}let C=Lt.codes.get(Number(a));h[m+1]===`
|
|
19
|
-
`?(f&&(o+=zh("")),a&&C&&(o+=Wh(C))):v===`
|
|
20
|
-
`&&(a&&C&&(o+=Wh(a)),f&&(o+=zh(f)))}return o};function Dl(e,r,i){return String(e).normalize().replace(/\r\n/g,`
|
|
21
|
-
`).split(`
|
|
22
|
-
`).map(o=>XE(o,r,i)).join(`
|
|
23
|
-
`)}D();D();D();function Zi(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var YE=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,$h=["\x1B","\x9B"],wo=e=>`${$h[0]}[${e}m`,Yh=(e,r,i)=>{let o=[];e=[...e];for(let a of e){let f=a;a.includes(";")&&(a=a.split(";")[0][0]+"0");let c=Lt.codes.get(Number.parseInt(a,10));if(c){let d=e.indexOf(c.toString());d===-1?o.push(wo(r?c:f)):e.splice(d,1)}else if(r){o.push(wo(0));break}else o.push(wo(f))}if(r&&(o=o.filter((a,f)=>o.indexOf(a)===f),i!==void 0)){let a=wo(Lt.codes.get(Number.parseInt(i,10)));o=o.reduce((f,c)=>c===a?[c,...f]:[...f,c],[])}return o.join("")};function Dr(e,r,i){let o=[...e],a=[],f=typeof i=="number"?i:o.length,c=!1,d,h=0,m="";for(let[v,C]of o.entries()){let x=!1;if($h.includes(C)){let O=/\d[^m]*/.exec(e.slice(v,v+18));d=O&&O.length>0?O[0]:void 0,h<f&&(c=!0,d!==void 0&&a.push(d))}else c&&C==="m"&&(c=!1,x=!0);if(!c&&!x&&h++,!YE.test(C)&&Zi(C.codePointAt())&&(h++,typeof i!="number"&&f++),h>r&&h<=f)m+=C;else if(h===r&&!c&&d!==void 0)m=Yh(a);else if(h>=f){m+=Yh(a,!0,d);break}}return m}function Oo(e,r,i){if(e.charAt(r)===" ")return r;for(let o=1;o<=3;o++)if(i){if(e.charAt(r+o)===" ")return r+o}else if(e.charAt(r-o)===" ")return r-o;return r}function gl(e,r,i){i={position:"end",preferTruncationOnSpace:!1,truncationCharacter:"\u2026",...i};let{position:o,space:a,preferTruncationOnSpace:f}=i,{truncationCharacter:c}=i;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof r!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof r}`);if(r<1)return"";if(r===1)return c;let d=xt(e);if(d<=r)return e;if(o==="start"){if(f){let h=Oo(e,d-r+1,!0);return c+Dr(e,h,d).trim()}return a===!0&&(c+=" "),c+Dr(e,d-r+xt(c),d)}if(o==="middle"){a===!0&&(c=` ${c} `);let h=Math.floor(r/2);if(f){let m=Oo(e,h),v=Oo(e,d-(r-h)+1,!0);return Dr(e,0,m)+c+Dr(e,v,d).trim()}return Dr(e,0,h)+c+Dr(e,d-(r-h)+xt(c),d)}if(o==="end"){if(f){let h=Oo(e,r-1);return Dr(e,0,h)+c}return a===!0&&(c=` ${c}`),Dr(e,0,r-xt(c))+c}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${o}`)}var Qh={},$E=(e,r,i)=>{let o=e+String(r)+String(i),a=Qh[o];if(a)return a;let f=e;if(i==="wrap"&&(f=Dl(e,r,{trim:!1,hard:!0})),i.startsWith("truncate")){let c="end";i==="truncate-middle"&&(c="middle"),i==="truncate-start"&&(c="start"),f=gl(e,r,{position:c})}return Qh[o]=f,f},Po=$E;D();var Jh=e=>{let r="";if(e.childNodes.length>0)for(let i of e.childNodes){let o="";i.nodeName==="#text"?o=i.nodeValue:((i.nodeName==="ink-text"||i.nodeName==="ink-virtual-text")&&(o=Jh(i)),o.length>0&&typeof i.internal_transform=="function"&&(o=i.internal_transform(o))),r+=o}return r},Ro=Jh;var Bo=e=>{let r={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e==="ink-virtual-text"?void 0:ee.Node.create()};return e==="ink-text"&&r.yogaNode?.setMeasureFunc(QE.bind(null,r)),r},bo=(e,r)=>{r.parentNode&&eu(r.parentNode,r),r.parentNode=e,e.childNodes.push(r),r.yogaNode&&e.yogaNode?.insertChild(r.yogaNode,e.yogaNode.getChildCount()),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&ko(e)},El=(e,r,i)=>{r.parentNode&&eu(r.parentNode,r),r.parentNode=e;let o=e.childNodes.indexOf(i);if(o>=0){e.childNodes.splice(o,0,r),r.yogaNode&&e.yogaNode?.insertChild(r.yogaNode,o);return}e.childNodes.push(r),r.yogaNode&&e.yogaNode?.insertChild(r.yogaNode,e.yogaNode.getChildCount()),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&ko(e)},eu=(e,r)=>{r.yogaNode&&r.parentNode?.yogaNode?.removeChild(r.yogaNode),r.parentNode=void 0;let i=e.childNodes.indexOf(r);i>=0&&e.childNodes.splice(i,1),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&ko(e)},yl=(e,r,i)=>{e.attributes[r]=i},vl=(e,r)=>{e.style=r},qh=e=>{let r={nodeName:"#text",nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return tu(r,e),r},QE=function(e,r){let i=e.nodeName==="#text"?e.nodeValue:Ro(e),o=pl(i);if(o.width<=r||o.width>=1&&r>0&&r<1)return o;let a=e.style?.textWrap??"wrap",f=Po(i,r,a);return pl(f)},Kh=e=>{if(e?.parentNode)return e.yogaNode??Kh(e.parentNode)},ko=e=>{Kh(e)?.markDirty()},tu=(e,r)=>{typeof r!="string"&&(r=String(r)),e.nodeValue=r,ko(e)};D();var qE=(e,r)=>{"position"in r&&e.setPositionType(r.position==="absolute"?ee.POSITION_TYPE_ABSOLUTE:ee.POSITION_TYPE_RELATIVE)},KE=(e,r)=>{"margin"in r&&e.setMargin(ee.EDGE_ALL,r.margin??0),"marginX"in r&&e.setMargin(ee.EDGE_HORIZONTAL,r.marginX??0),"marginY"in r&&e.setMargin(ee.EDGE_VERTICAL,r.marginY??0),"marginLeft"in r&&e.setMargin(ee.EDGE_START,r.marginLeft||0),"marginRight"in r&&e.setMargin(ee.EDGE_END,r.marginRight||0),"marginTop"in r&&e.setMargin(ee.EDGE_TOP,r.marginTop||0),"marginBottom"in r&&e.setMargin(ee.EDGE_BOTTOM,r.marginBottom||0)},ZE=(e,r)=>{"padding"in r&&e.setPadding(ee.EDGE_ALL,r.padding??0),"paddingX"in r&&e.setPadding(ee.EDGE_HORIZONTAL,r.paddingX??0),"paddingY"in r&&e.setPadding(ee.EDGE_VERTICAL,r.paddingY??0),"paddingLeft"in r&&e.setPadding(ee.EDGE_LEFT,r.paddingLeft||0),"paddingRight"in r&&e.setPadding(ee.EDGE_RIGHT,r.paddingRight||0),"paddingTop"in r&&e.setPadding(ee.EDGE_TOP,r.paddingTop||0),"paddingBottom"in r&&e.setPadding(ee.EDGE_BOTTOM,r.paddingBottom||0)},e1=(e,r)=>{"flexGrow"in r&&e.setFlexGrow(r.flexGrow??0),"flexShrink"in r&&e.setFlexShrink(typeof r.flexShrink=="number"?r.flexShrink:1),"flexWrap"in r&&(r.flexWrap==="nowrap"&&e.setFlexWrap(ee.WRAP_NO_WRAP),r.flexWrap==="wrap"&&e.setFlexWrap(ee.WRAP_WRAP),r.flexWrap==="wrap-reverse"&&e.setFlexWrap(ee.WRAP_WRAP_REVERSE)),"flexDirection"in r&&(r.flexDirection==="row"&&e.setFlexDirection(ee.FLEX_DIRECTION_ROW),r.flexDirection==="row-reverse"&&e.setFlexDirection(ee.FLEX_DIRECTION_ROW_REVERSE),r.flexDirection==="column"&&e.setFlexDirection(ee.FLEX_DIRECTION_COLUMN),r.flexDirection==="column-reverse"&&e.setFlexDirection(ee.FLEX_DIRECTION_COLUMN_REVERSE)),"flexBasis"in r&&(typeof r.flexBasis=="number"?e.setFlexBasis(r.flexBasis):typeof r.flexBasis=="string"?e.setFlexBasisPercent(Number.parseInt(r.flexBasis,10)):e.setFlexBasis(Number.NaN)),"alignItems"in r&&((r.alignItems==="stretch"||!r.alignItems)&&e.setAlignItems(ee.ALIGN_STRETCH),r.alignItems==="flex-start"&&e.setAlignItems(ee.ALIGN_FLEX_START),r.alignItems==="center"&&e.setAlignItems(ee.ALIGN_CENTER),r.alignItems==="flex-end"&&e.setAlignItems(ee.ALIGN_FLEX_END)),"alignSelf"in r&&((r.alignSelf==="auto"||!r.alignSelf)&&e.setAlignSelf(ee.ALIGN_AUTO),r.alignSelf==="flex-start"&&e.setAlignSelf(ee.ALIGN_FLEX_START),r.alignSelf==="center"&&e.setAlignSelf(ee.ALIGN_CENTER),r.alignSelf==="flex-end"&&e.setAlignSelf(ee.ALIGN_FLEX_END)),"justifyContent"in r&&((r.justifyContent==="flex-start"||!r.justifyContent)&&e.setJustifyContent(ee.JUSTIFY_FLEX_START),r.justifyContent==="center"&&e.setJustifyContent(ee.JUSTIFY_CENTER),r.justifyContent==="flex-end"&&e.setJustifyContent(ee.JUSTIFY_FLEX_END),r.justifyContent==="space-between"&&e.setJustifyContent(ee.JUSTIFY_SPACE_BETWEEN),r.justifyContent==="space-around"&&e.setJustifyContent(ee.JUSTIFY_SPACE_AROUND))},t1=(e,r)=>{"width"in r&&(typeof r.width=="number"?e.setWidth(r.width):typeof r.width=="string"?e.setWidthPercent(Number.parseInt(r.width,10)):e.setWidthAuto()),"height"in r&&(typeof r.height=="number"?e.setHeight(r.height):typeof r.height=="string"?e.setHeightPercent(Number.parseInt(r.height,10)):e.setHeightAuto()),"minWidth"in r&&(typeof r.minWidth=="string"?e.setMinWidthPercent(Number.parseInt(r.minWidth,10)):e.setMinWidth(r.minWidth??0)),"minHeight"in r&&(typeof r.minHeight=="string"?e.setMinHeightPercent(Number.parseInt(r.minHeight,10)):e.setMinHeight(r.minHeight??0))},r1=(e,r)=>{"display"in r&&e.setDisplay(r.display==="flex"?ee.DISPLAY_FLEX:ee.DISPLAY_NONE)},n1=(e,r)=>{if("borderStyle"in r){let i=r.borderStyle?1:0;r.borderTop!==!1&&e.setBorder(ee.EDGE_TOP,i),r.borderBottom!==!1&&e.setBorder(ee.EDGE_BOTTOM,i),r.borderLeft!==!1&&e.setBorder(ee.EDGE_LEFT,i),r.borderRight!==!1&&e.setBorder(ee.EDGE_RIGHT,i)}},i1=(e,r)=>{"gap"in r&&e.setGap(ee.GUTTER_ALL,r.gap??0),"columnGap"in r&&e.setGap(ee.GUTTER_COLUMN,r.columnGap??0),"rowGap"in r&&e.setGap(ee.GUTTER_ROW,r.rowGap??0)},u1=(e,r={})=>{qE(e,r),KE(e,r),ZE(e,r),e1(e,r),t1(e,r),r1(e,r),n1(e,r),i1(e,r)},xl=u1;if(o1.env.DEV==="true")try{await import("./devtools-QUFBWWMT.js")}catch(e){if(e.code==="MODULE_NOT_FOUND")console.warn(`
|
|
24
|
-
Debugging with React Devtools requires \`react-devtools-core\` dependency to be installed.
|
|
25
|
-
|
|
26
|
-
$ npm install --save-dev react-devtools-core
|
|
27
|
-
`.trim()+`
|
|
28
|
-
`);else throw e}var Zh=(e,r)=>{if(e===r)return;if(!e)return r;let i={},o=!1;for(let a of Object.keys(e))(r?!Object.hasOwnProperty.call(r,a):!0)&&(i[a]=void 0,o=!0);if(r)for(let a of Object.keys(r))r[a]!==e[a]&&(i[a]=r[a],o=!0);return o?i:void 0},em=e=>{e?.unsetMeasureFunc(),e?.freeRecursive()},ru=(0,tm.default)({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(e){if(typeof e.onComputeLayout=="function"&&e.onComputeLayout(),e.isStaticDirty){e.isStaticDirty=!1,typeof e.onImmediateRender=="function"&&e.onImmediateRender();return}typeof e.onRender=="function"&&e.onRender()},getChildHostContext(e,r){let i=e.isInsideText,o=r==="ink-text"||r==="ink-virtual-text";return i===o?e:{isInsideText:o}},shouldSetTextContent:()=>!1,createInstance(e,r,i,o){if(o.isInsideText&&e==="ink-box")throw new Error("<Box> can\u2019t be nested inside <Text> component");let a=e==="ink-text"&&o.isInsideText?"ink-virtual-text":e,f=Bo(a);for(let[c,d]of Object.entries(r))if(c!=="children"){if(c==="style"){vl(f,d),f.yogaNode&&xl(f.yogaNode,d);continue}if(c==="internal_transform"){f.internal_transform=d;continue}if(c==="internal_static"){f.internal_static=!0;continue}yl(f,c,d)}return f},createTextInstance(e,r,i){if(!i.isInsideText)throw new Error(`Text string "${e}" must be rendered inside <Text> component`);return qh(e)},resetTextContent(){},hideTextInstance(e){tu(e,"")},unhideTextInstance(e,r){tu(e,r)},getPublicInstance:e=>e,hideInstance(e){e.yogaNode?.setDisplay(ee.DISPLAY_NONE)},unhideInstance(e){e.yogaNode?.setDisplay(ee.DISPLAY_FLEX)},appendInitialChild:bo,appendChild:bo,insertBefore:El,finalizeInitialChildren(e,r,i,o){return e.internal_static&&(o.isStaticDirty=!0,o.staticNode=e),!1},isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,getCurrentEventPriority:()=>rm.DefaultEventPriority,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:bo,insertInContainerBefore:El,removeChildFromContainer(e,r){eu(e,r),em(r.yogaNode)},prepareUpdate(e,r,i,o,a){e.internal_static&&(a.isStaticDirty=!0);let f=Zh(i,o),c=Zh(i.style,o.style);return!f&&!c?null:{props:f,style:c}},commitUpdate(e,{props:r,style:i}){if(r)for(let[o,a]of Object.entries(r)){if(o==="style"){vl(e,a);continue}if(o==="internal_transform"){e.internal_transform=a;continue}if(o==="internal_static"){e.internal_static=!0;continue}yl(e,o,a)}i&&e.yogaNode&&xl(e.yogaNode,i)},commitTextUpdate(e,r,i){tu(e,i)},removeChild(e,r){eu(e,r),em(r.yogaNode)}});D();D();D();function Cl(e,r=1,i={}){let{indent:o=" ",includeEmptyLines:a=!1}=i;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof r!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof r}\``);if(r<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${r}\``);if(typeof o!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o}\``);if(r===0)return e;let f=a?/^/gm:/^(?!\s*$)/gm;return e.replace(f,o.repeat(r))}D();var s1=e=>e.getComputedWidth()-e.getComputedPadding(ee.EDGE_LEFT)-e.getComputedPadding(ee.EDGE_RIGHT)-e.getComputedBorder(ee.EDGE_LEFT)-e.getComputedBorder(ee.EDGE_RIGHT),nm=s1;D();var im=$(C0(),1);D();var a1=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,l1=/^ansi256\(\s?(\d+)\s?\)$/,f1=e=>e in Pe,c1=(e,r,i)=>{if(!r)return e;if(f1(r)){if(i==="foreground")return Pe[r](e);let o=`bg${r[0].toUpperCase()+r.slice(1)}`;return Pe[o](e)}if(r.startsWith("#"))return i==="foreground"?Pe.hex(r)(e):Pe.bgHex(r)(e);if(r.startsWith("ansi256")){let o=l1.exec(r);if(!o)return e;let a=Number(o[1]);return i==="foreground"?Pe.ansi256(a)(e):Pe.bgAnsi256(a)(e)}if(r.startsWith("rgb")){let o=a1.exec(r);if(!o)return e;let a=Number(o[1]),f=Number(o[2]),c=Number(o[3]);return i==="foreground"?Pe.rgb(a,f,c)(e):Pe.bgRgb(a,f,c)(e)}return e},Jr=c1;var p1=(e,r,i,o)=>{if(i.style.borderStyle){let a=i.yogaNode.getComputedWidth(),f=i.yogaNode.getComputedHeight(),c=typeof i.style.borderStyle=="string"?im.default[i.style.borderStyle]:i.style.borderStyle,d=i.style.borderTopColor??i.style.borderColor,h=i.style.borderBottomColor??i.style.borderColor,m=i.style.borderLeftColor??i.style.borderColor,v=i.style.borderRightColor??i.style.borderColor,C=i.style.borderTop!==!1,x=i.style.borderBottom!==!1,O=i.style.borderLeft!==!1,R=i.style.borderRight!==!1,k=a-(O?1:0)-(R?1:0),P=C?Jr((O?c.topLeft:"")+c.top.repeat(k)+(R?c.topRight:""),d,"foreground"):void 0,B=f;C&&(B-=1),x&&(B-=1);let j=(Jr(c.left,m,"foreground")+`
|
|
29
|
-
`).repeat(B),q=(Jr(c.right,v,"foreground")+`
|
|
30
|
-
`).repeat(B),z=x?Jr((O?c.bottomLeft:"")+c.bottom.repeat(k)+(R?c.bottomRight:""),h,"foreground"):void 0,Y=C?1:0;P&&o.write(e,r,P,{transformers:[]}),O&&o.write(e,r+Y,j,{transformers:[]}),R&&o.write(e+a-1,r+Y,q,{transformers:[]}),z&&o.write(e,r+f-1,z,{transformers:[]})}},um=p1;var d1=(e,r)=>{let i=e.childNodes[0]?.yogaNode;if(i){let o=i.getComputedLeft(),a=i.getComputedTop();r=`
|
|
31
|
-
`.repeat(a)+Cl(r,o)}return r},om=(e,r,i)=>{let{offsetX:o=0,offsetY:a=0,transformers:f=[],skipStaticElements:c}=i;if(c&&e.internal_static)return;let{yogaNode:d}=e;if(d){if(d.getDisplay()===ee.DISPLAY_NONE)return;let h=o+d.getComputedLeft(),m=a+d.getComputedTop(),v=f;if(typeof e.internal_transform=="function"&&(v=[e.internal_transform,...f]),e.nodeName==="ink-text"){let x=Ro(e);if(x.length>0){let O=Vn(x),R=nm(d);if(O>R){let k=e.style.textWrap??"wrap";x=Po(x,R,k)}x=d1(e,x),r.write(h,m,x,{transformers:v})}return}let C=!1;if(e.nodeName==="ink-box"){um(h,m,e,r);let x=e.style.overflowX==="hidden"||e.style.overflow==="hidden",O=e.style.overflowY==="hidden"||e.style.overflow==="hidden";if(x||O){let R=x?h+d.getComputedBorder(ee.EDGE_LEFT):void 0,k=x?h+d.getComputedWidth()-d.getComputedBorder(ee.EDGE_RIGHT):void 0,P=O?m+d.getComputedBorder(ee.EDGE_TOP):void 0,B=O?m+d.getComputedHeight()-d.getComputedBorder(ee.EDGE_BOTTOM):void 0;r.clip({x1:R,x2:k,y1:P,y2:B}),C=!0}}if(e.nodeName==="ink-root"||e.nodeName==="ink-box"){for(let x of e.childNodes)om(x,r,{offsetX:h,offsetY:m,transformers:v,skipStaticElements:c});C&&r.unclip()}}},Fl=om;D();D();var h1=new Set([27,155]),m1="0".codePointAt(0),D1="9".codePointAt(0),Tl=new Set,Sl=new Map;for(let[e,r]of Lt.codes)Tl.add(Lt.color.ansi(r)),Sl.set(Lt.color.ansi(e),Lt.color.ansi(r));function g1(e){if(Tl.has(e))return e;if(Sl.has(e))return Sl.get(e);e=e.slice(2),e.includes(";")&&(e=e[0]+"0");let r=Lt.codes.get(Number.parseInt(e,10));return r?Lt.color.ansi(r):Lt.reset.open}function E1(e){for(let r=0;r<e.length;r++){let i=e.codePointAt(r);if(i>=m1&&i<=D1)return r}return-1}function y1(e,r){e=e.slice(r,r+19);let i=E1(e);if(i!==-1){let o=e.indexOf("m",i);return o===-1&&(o=e.length),e.slice(0,o+1)}}function v1(e,r=Number.POSITIVE_INFINITY){let i=[],o=0,a=0;for(;o<e.length;){let f=e.codePointAt(o);if(h1.has(f)){let h=y1(e,o);if(h){i.push({type:"ansi",code:h,endCode:g1(h)}),o+=h.length;continue}}let c=Zi(f),d=String.fromCodePoint(f);if(i.push({type:"character",value:d,isFullWidth:c}),o+=d.length,a+=c?2:d.length,a>=r)break}return i}function sm(e){let r=[];for(let i of e)i.code===Lt.reset.open?r=[]:Tl.has(i.code)?r=r.filter(o=>o.endCode!==i.code):(r=r.filter(o=>o.endCode!==i.endCode),r.push(i));return r}function x1(e){return sm(e).map(({endCode:o})=>o).reverse().join("")}function nu(e,r,i){let o=v1(e,i),a=[],f=0,c="",d=!1;for(let h of o){if(i!==void 0&&f>=i)break;h.type==="ansi"?(a.push(h),d&&(c+=h.code)):(!d&&f>=r&&(d=!0,a=sm(a),c=a.map(({code:m})=>m).join("")),d&&(c+=h.value),f+=h.isFullWidth?2:h.value.length)}return c+=x1(a),c}var Qn=class{constructor(r){Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operations",{enumerable:!0,configurable:!0,writable:!0,value:[]});let{width:i,height:o}=r;this.width=i,this.height=o}write(r,i,o,a){let{transformers:f}=a;o&&this.operations.push({type:"write",x:r,y:i,text:o,transformers:f})}clip(r){this.operations.push({type:"clip",clip:r})}unclip(){this.operations.push({type:"unclip"})}get(){let r=[];for(let a=0;a<this.height;a++)r.push(" ".repeat(this.width));let i=[];for(let a of this.operations)if(a.type==="clip"&&i.push(a.clip),a.type==="unclip"&&i.pop(),a.type==="write"){let{text:f,transformers:c}=a,{x:d,y:h}=a,m=f.split(`
|
|
32
|
-
`),v=i[i.length-1];if(v){let x=typeof v?.x1=="number"&&typeof v?.x2=="number",O=typeof v?.y1=="number"&&typeof v?.y2=="number";if(x){let R=Vn(f);if(d+R<v.x1||d>v.x2)continue}if(O){let R=m.length;if(h+R<v.y1||h>v.y2)continue}if(x&&(m=m.map(R=>{let k=d<v.x1?v.x1-d:0,P=xt(R),B=d+P>v.x2?v.x2-d:P;return nu(R,k,B)}),d<v.x1&&(d=v.x1)),O){let R=h<v.y1?v.y1-h:0,k=m.length,P=h+k>v.y2?v.y2-h:k;m=m.slice(R,P),h<v.y1&&(h=v.y1)}}let C=0;for(let x of m){let O=r[h+C];if(!O)continue;let R=xt(x);for(let k of c)x=k(x);r[h+C]=nu(O,0,d)+x+nu(O,d+R),C++}}return{output:r.map(a=>a.trimEnd()).join(`
|
|
33
|
-
`),height:r.length}}};var C1=e=>{if(e.yogaNode){let r=new Qn({width:e.yogaNode.getComputedWidth(),height:e.yogaNode.getComputedHeight()});Fl(e,r,{skipStaticElements:!0});let i;e.staticNode?.yogaNode&&(i=new Qn({width:e.staticNode.yogaNode.getComputedWidth(),height:e.staticNode.yogaNode.getComputedHeight()}),Fl(e.staticNode,i,{skipStaticElements:!1}));let{output:o,height:a}=r.get();return{output:o,outputHeight:a,staticOutput:i?`${i.get().output}
|
|
34
|
-
`:""}}return{output:"",outputHeight:0,staticOutput:""}},am=C1;D();var F1=(e,{showCursor:r=!1}={})=>{let i=0,o="",a=!1,f=c=>{!r&&!a&&(Xn.hide(),a=!0);let d=c+`
|
|
35
|
-
`;d!==o&&(o=d,e.write(Qi.eraseLines(i)+d),i=d.split(`
|
|
36
|
-
`).length)};return f.clear=()=>{e.write(Qi.eraseLines(i)),o="",i=0},f.done=()=>{o="",i=0,r||(Xn.show(),a=!1)},f},S1={create:F1},lm=S1;D();var T1=new WeakMap,Jn=T1;D();var wr=$(ie(),1);import U1 from"node:process";D();var fm=$(ie(),1),cm=(0,fm.createContext)({exit(){}});cm.displayName="InternalAppContext";var Uo=cm;D();var pm=$(ie(),1);import N1 from"node:process";var dm=(0,pm.createContext)({stdin:N1.stdin,setRawMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0});dm.displayName="InternalStdinContext";var Ho=dm;D();var hm=$(ie(),1);import I1 from"node:process";var mm=(0,hm.createContext)({stdout:I1.stdout,write(){}});mm.displayName="InternalStdoutContext";var Nl=mm;D();var Dm=$(ie(),1);import A1 from"node:process";var gm=(0,Dm.createContext)({stderr:A1.stderr,write(){}});gm.displayName="InternalStderrContext";var Il=gm;D();var Em=$(ie(),1),ym=(0,Em.createContext)({activeId:void 0,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});ym.displayName="InternalFocusContext";var Mo=ym;D();var Ye=$(ie(),1),Ll=$(Tm(),1);import*as jo from"node:fs";import{cwd as wm}from"node:process";D();D();var B1=(e,r=2)=>e.replace(/^\t+/gm,i=>" ".repeat(i.length*r)),Nm=B1;var b1=(e,r)=>{let i=[],o=e-r,a=e+r;for(let f=o;f<=a;f++)i.push(f);return i},k1=(e,r,i={})=>{var o;if(typeof e!="string")throw new TypeError("Source code is missing.");if(!r||r<1)throw new TypeError("Line number must start from `1`.");let a=Nm(e).split(/\r?\n/);if(!(r>a.length))return b1(r,(o=i.around)!==null&&o!==void 0?o:3).filter(f=>a[f-1]!==void 0).map(f=>({line:f,value:a[f-1]}))},Im=k1;D();var Go=$(ie(),1),_l=(0,Go.forwardRef)(({children:e,...r},i)=>Go.default.createElement("ink-box",{ref:i,style:{...r,overflowX:r.overflowX??r.overflow??"visible",overflowY:r.overflowY??r.overflow??"visible"}},e));_l.displayName="Box";_l.defaultProps={flexWrap:"nowrap",flexDirection:"row",flexGrow:0,flexShrink:1};var ut=_l;D();var Am=$(ie(),1);function He({color:e,backgroundColor:r,dimColor:i=!1,bold:o=!1,italic:a=!1,underline:f=!1,strikethrough:c=!1,inverse:d=!1,wrap:h="wrap",children:m}){if(m==null)return null;let v=C=>(i&&(C=Pe.dim(C)),e&&(C=Jr(C,e,"foreground")),r&&(C=Jr(C,r,"background")),o&&(C=Pe.bold(C)),a&&(C=Pe.italic(C)),f&&(C=Pe.underline(C)),c&&(C=Pe.strikethrough(C)),d&&(C=Pe.inverse(C)),C);return Am.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:h},internal_transform:v},m)}var _m=e=>e?.replace(`file://${wm()}/`,""),Lm=new Ll.default({cwd:wm(),internals:Ll.default.nodeInternals()});function wl({error:e}){let r=e.stack?e.stack.split(`
|
|
37
|
-
`).slice(1):void 0,i=r?Lm.parseLine(r[0]):void 0,o=_m(i?.file),a,f=0;if(o&&i?.line&&jo.existsSync(o)){let c=jo.readFileSync(o,"utf8");if(a=Im(c,i.line),a)for(let{line:d}of a)f=Math.max(f,String(d).length)}return Ye.default.createElement(ut,{flexDirection:"column",padding:1},Ye.default.createElement(ut,null,Ye.default.createElement(He,{backgroundColor:"red",color:"white"}," ","ERROR"," "),Ye.default.createElement(He,null," ",e.message)),i&&o&&Ye.default.createElement(ut,{marginTop:1},Ye.default.createElement(He,{dimColor:!0},o,":",i.line,":",i.column)),i&&a&&Ye.default.createElement(ut,{marginTop:1,flexDirection:"column"},a.map(({line:c,value:d})=>Ye.default.createElement(ut,{key:c},Ye.default.createElement(ut,{width:f+1},Ye.default.createElement(He,{dimColor:c!==i.line,backgroundColor:c===i.line?"red":void 0,color:c===i.line?"white":void 0},String(c).padStart(f," "),":")),Ye.default.createElement(He,{key:c,backgroundColor:c===i.line?"red":void 0,color:c===i.line?"white":void 0}," "+d)))),e.stack&&Ye.default.createElement(ut,{marginTop:1,flexDirection:"column"},e.stack.split(`
|
|
38
|
-
`).slice(1).map(c=>{let d=Lm.parseLine(c);return d?Ye.default.createElement(ut,{key:c},Ye.default.createElement(He,{dimColor:!0},"- "),Ye.default.createElement(He,{dimColor:!0,bold:!0},d.function),Ye.default.createElement(He,{dimColor:!0,color:"gray"}," ","(",_m(d.file)??"",":",d.line,":",d.column,")")):Ye.default.createElement(ut,{key:c},Ye.default.createElement(He,{dimColor:!0},"- "),Ye.default.createElement(He,{dimColor:!0,bold:!0},c))})))}var H1=" ",M1="\x1B[Z",G1="\x1B",qn=class extends wr.PureComponent{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:{isFocusEnabled:!0,activeFocusId:void 0,focusables:[],error:void 0}}),Object.defineProperty(this,"rawModeEnabledCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"handleSetRawMode",{enumerable:!0,configurable:!0,writable:!0,value:r=>{let{stdin:i}=this.props;if(!this.isRawModeSupported())throw i===U1.stdin?new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
39
|
-
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`):new Error(`Raw mode is not supported on the stdin provided to Ink.
|
|
40
|
-
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(i.setEncoding("utf8"),r){this.rawModeEnabledCount===0&&(i.addListener("data",this.handleInput),i.resume(),i.setRawMode(!0)),this.rawModeEnabledCount++;return}--this.rawModeEnabledCount===0&&(i.setRawMode(!1),i.removeListener("data",this.handleInput),i.pause())}}),Object.defineProperty(this,"handleInput",{enumerable:!0,configurable:!0,writable:!0,value:r=>{r===""&&this.props.exitOnCtrlC&&this.handleExit(),r===G1&&this.state.activeFocusId&&this.setState({activeFocusId:void 0}),this.state.isFocusEnabled&&this.state.focusables.length>0&&(r===H1&&this.focusNext(),r===M1&&this.focusPrevious())}}),Object.defineProperty(this,"handleExit",{enumerable:!0,configurable:!0,writable:!0,value:r=>{this.isRawModeSupported()&&this.handleSetRawMode(!1),this.props.onExit(r)}}),Object.defineProperty(this,"enableFocus",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState({isFocusEnabled:!0})}}),Object.defineProperty(this,"disableFocus",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState({isFocusEnabled:!1})}}),Object.defineProperty(this,"focus",{enumerable:!0,configurable:!0,writable:!0,value:r=>{this.setState(i=>i.focusables.some(a=>a?.id===r)?{activeFocusId:r}:i)}}),Object.defineProperty(this,"focusNext",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState(r=>{let i=r.focusables[0]?.id;return{activeFocusId:this.findNextFocusable(r)??i}})}}),Object.defineProperty(this,"focusPrevious",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.setState(r=>{let i=r.focusables[r.focusables.length-1]?.id;return{activeFocusId:this.findPreviousFocusable(r)??i}})}}),Object.defineProperty(this,"addFocusable",{enumerable:!0,configurable:!0,writable:!0,value:(r,{autoFocus:i})=>{this.setState(o=>{let a=o.activeFocusId;return!a&&i&&(a=r),{activeFocusId:a,focusables:[...o.focusables,{id:r,isActive:!0}]}})}}),Object.defineProperty(this,"removeFocusable",{enumerable:!0,configurable:!0,writable:!0,value:r=>{this.setState(i=>({activeFocusId:i.activeFocusId===r?void 0:i.activeFocusId,focusables:i.focusables.filter(o=>o.id!==r)}))}}),Object.defineProperty(this,"activateFocusable",{enumerable:!0,configurable:!0,writable:!0,value:r=>{this.setState(i=>({focusables:i.focusables.map(o=>o.id!==r?o:{id:r,isActive:!0})}))}}),Object.defineProperty(this,"deactivateFocusable",{enumerable:!0,configurable:!0,writable:!0,value:r=>{this.setState(i=>({activeFocusId:i.activeFocusId===r?void 0:i.activeFocusId,focusables:i.focusables.map(o=>o.id!==r?o:{id:r,isActive:!1})}))}}),Object.defineProperty(this,"findNextFocusable",{enumerable:!0,configurable:!0,writable:!0,value:r=>{let i=r.focusables.findIndex(o=>o.id===r.activeFocusId);for(let o=i+1;o<r.focusables.length;o++){let a=r.focusables[o];if(a?.isActive)return a.id}}}),Object.defineProperty(this,"findPreviousFocusable",{enumerable:!0,configurable:!0,writable:!0,value:r=>{let i=r.focusables.findIndex(o=>o.id===r.activeFocusId);for(let o=i-1;o>=0;o--){let a=r.focusables[o];if(a?.isActive)return a.id}}})}static getDerivedStateFromError(r){return{error:r}}isRawModeSupported(){return this.props.stdin.isTTY}render(){return wr.default.createElement(Uo.Provider,{value:{exit:this.handleExit}},wr.default.createElement(Ho.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC}},wr.default.createElement(Nl.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},wr.default.createElement(Il.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},wr.default.createElement(Mo.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious,focus:this.focus}},this.state.error?wr.default.createElement(wl,{error:this.state.error}):this.props.children)))))}componentDidMount(){Xn.hide(this.props.stdout)}componentWillUnmount(){Xn.show(this.props.stdout),this.isRawModeSupported()&&this.handleSetRawMode(!1)}componentDidCatch(r){this.handleExit(r)}};Object.defineProperty(qn,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"InternalApp"});var Kn=Pm.env.CI==="false"?!1:Bm.default,Om=()=>{},iu=class{constructor(r){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"log",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"throttledLog",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isUnmounted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastOutput",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fullStaticOutput",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exitPromise",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"restoreConsole",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"unsubscribeResize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resized",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.calculateLayout(),this.onRender()}}),Object.defineProperty(this,"resolveExitPromise",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"rejectExitPromise",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"unsubscribeExit",{enumerable:!0,configurable:!0,writable:!0,value:()=>{}}),Object.defineProperty(this,"calculateLayout",{enumerable:!0,configurable:!0,writable:!0,value:()=>{let i=this.options.stdout.columns||80;this.rootNode.yogaNode.setWidth(i),this.rootNode.yogaNode.calculateLayout(void 0,void 0,ee.DIRECTION_LTR)}}),Object.defineProperty(this,"onRender",{enumerable:!0,configurable:!0,writable:!0,value:()=>{if(this.isUnmounted)return;let{output:i,outputHeight:o,staticOutput:a}=am(this.rootNode),f=a&&a!==`
|
|
41
|
-
`;if(this.options.debug){f&&(this.fullStaticOutput+=a),this.options.stdout.write(this.fullStaticOutput+i);return}if(Kn){f&&this.options.stdout.write(a),this.lastOutput=i;return}if(f&&(this.fullStaticOutput+=a),o>=this.options.stdout.rows){this.options.stdout.write(Qi.clearTerminal+this.fullStaticOutput+i),this.lastOutput=i;return}f&&(this.log.clear(),this.options.stdout.write(a),this.log(i)),!f&&i!==this.lastOutput&&this.throttledLog(i),this.lastOutput=i}}),tl(this),this.options=r,this.rootNode=Bo("ink-root"),this.rootNode.onComputeLayout=this.calculateLayout,this.rootNode.onRender=r.debug?this.onRender:(0,Ol.default)(this.onRender,32,{leading:!0,trailing:!0}),this.rootNode.onImmediateRender=this.onRender,this.log=lm.create(r.stdout),this.throttledLog=r.debug?this.log:(0,Ol.default)(this.log,void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.lastOutput="",this.fullStaticOutput="",this.container=ru.createContainer(this.rootNode,0,null,!1,null,"id",()=>{},null),this.unsubscribeExit=(0,bm.default)(this.unmount,{alwaysLast:!1}),Pm.env.DEV==="true"&&ru.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"}),r.patchConsole&&this.patchConsole(),Kn||(r.stdout.on("resize",this.resized),this.unsubscribeResize=()=>{r.stdout.off("resize",this.resized)})}render(r){let i=Rm.default.createElement(qn,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},r);ru.updateContainer(i,this.container,null,Om)}writeToStdout(r){if(!this.isUnmounted){if(this.options.debug){this.options.stdout.write(r+this.fullStaticOutput+this.lastOutput);return}if(Kn){this.options.stdout.write(r);return}this.log.clear(),this.options.stdout.write(r),this.log(this.lastOutput)}}writeToStderr(r){if(!this.isUnmounted){if(this.options.debug){this.options.stderr.write(r),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(Kn){this.options.stderr.write(r);return}this.log.clear(),this.options.stderr.write(r),this.log(this.lastOutput)}}unmount(r){this.isUnmounted||(this.calculateLayout(),this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole=="function"&&this.restoreConsole(),typeof this.unsubscribeResize=="function"&&this.unsubscribeResize(),Kn?this.options.stdout.write(this.lastOutput+`
|
|
42
|
-
`):this.options.debug||this.log.done(),this.isUnmounted=!0,ru.updateContainer(null,this.container,null,Om),Jn.delete(this.options.stdout),r instanceof Error?this.rejectExitPromise(r):this.resolveExitPromise())}async waitUntilExit(){return this.exitPromise||(this.exitPromise=new Promise((r,i)=>{this.resolveExitPromise=r,this.rejectExitPromise=i})),this.exitPromise}clear(){!Kn&&!this.options.debug&&this.log.clear()}patchConsole(){this.options.debug||(this.restoreConsole=nd((r,i)=>{r==="stdout"&&this.writeToStdout(i),r==="stderr"&&(i.startsWith("The above error occurred")||this.writeToStderr(i))}))}};var W1=(e,r)=>{let i={stdout:Wo.stdout,stdin:Wo.stdin,stderr:Wo.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0,...z1(r)},o=V1(i.stdout,()=>new iu(i));return o.render(e),{rerender:o.render,unmount(){o.unmount()},waitUntilExit:o.waitUntilExit,cleanup:()=>Jn.delete(i.stdout),clear:o.clear}},zo=W1,z1=(e={})=>e instanceof j1?{stdout:e,stdin:Wo.stdin}:e,V1=(e,r)=>{let i=Jn.get(e);return i||(i=r(),Jn.set(e,i)),i};D();var Vo=$(ie(),1);D();var km=$(ie(),1);function Xo({children:e,transform:r}){return e==null?null:km.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:r},e)}D();var Um=$(ie(),1);function Pl({count:e=1}){return Um.default.createElement("ink-text",null,`
|
|
43
|
-
`.repeat(e))}D();var X1=$(ie(),1);D();var Rl=$(ie(),1);D();function Hm(e){return e.toUpperCase()===e&&e.toLowerCase()!==e}D();import{Buffer as Y1}from"node:buffer";var $1=/^(?:\x1b)([a-zA-Z0-9])$/,Q1=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,Mm={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},Gm=[...Object.values(Mm),"backspace"],J1=e=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(e),q1=e=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(e),K1=(e="")=>{let r;Y1.isBuffer(e)?e[0]>127&&e[1]===void 0?(e[0]-=128,e="\x1B"+String(e)):e=String(e):e!==void 0&&typeof e!="string"?e=String(e):e||(e="");let i={name:"",ctrl:!1,meta:!1,shift:!1,option:!1,sequence:e,raw:e};if(i.sequence=i.sequence||e||i.name,e==="\r")i.raw=void 0,i.name="return";else if(e===`
|
|
44
|
-
`)i.name="enter";else if(e===" ")i.name="tab";else if(e==="\b"||e==="\x1B\b")i.name="backspace",i.meta=e.charAt(0)==="\x1B";else if(e==="\x7F"||e==="\x1B\x7F")i.name="delete",i.meta=e.charAt(0)==="\x1B";else if(e==="\x1B"||e==="\x1B\x1B")i.name="escape",i.meta=e.length===2;else if(e===" "||e==="\x1B ")i.name="space",i.meta=e.length===2;else if(e<="")i.name=String.fromCharCode(e.charCodeAt(0)+97-1),i.ctrl=!0;else if(e.length===1&&e>="0"&&e<="9")i.name="number";else if(e.length===1&&e>="a"&&e<="z")i.name=e;else if(e.length===1&&e>="A"&&e<="Z")i.name=e.toLowerCase(),i.shift=!0;else if(r=$1.exec(e))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=Q1.exec(e)){let o=[...e];o[0]==="\x1B"&&o[1]==="\x1B"&&(i.option=!0);let a=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),f=(r[3]||r[5]||1)-1;i.ctrl=!!(f&4),i.meta=!!(f&10),i.shift=!!(f&1),i.code=a,i.name=Mm[a],i.shift=J1(a)||i.shift,i.ctrl=q1(a)||i.ctrl}return i},jm=K1;D();var Wm=$(ie(),1);var Z1=()=>(0,Wm.useContext)(Ho),Yo=Z1;var ey=(e,r={})=>{let{stdin:i,setRawMode:o,internal_exitOnCtrlC:a}=Yo();(0,Rl.useEffect)(()=>{if(r.isActive!==!1)return o(!0),()=>{o(!1)}},[r.isActive,o]),(0,Rl.useEffect)(()=>{if(r.isActive===!1)return;let f=c=>{let d=jm(c),h={upArrow:d.name==="up",downArrow:d.name==="down",leftArrow:d.name==="left",rightArrow:d.name==="right",pageDown:d.name==="pagedown",pageUp:d.name==="pageup",return:d.name==="return",escape:d.name==="escape",ctrl:d.ctrl,shift:d.shift,tab:d.name==="tab",backspace:d.name==="backspace",delete:d.name==="delete",meta:d.meta||d.name==="escape"||d.option},m=d.ctrl?d.name:d.sequence;Gm.includes(d.name)&&(m=""),m.startsWith("\x1B")&&(m=m.slice(1)),m.length===1&&typeof m[0]=="string"&&Hm(m[0])&&(h.shift=!0),(!(m==="c"&&h.ctrl)||!a)&&e(m,h)};return i?.on("data",f),()=>{i?.off("data",f)}},[r.isActive,i,a,e])},$o=ey;D();var zm=$(ie(),1);var ty=()=>(0,zm.useContext)(Uo),Bl=ty;D();var ry=$(ie(),1);D();var ny=$(ie(),1);D();var bl=$(ie(),1);D();var iy=$(ie(),1);D();var uy={standard:{},secondary:{color:"gray"},success:{color:"green"},info:{color:"cyan"},error:{color:"red"},warning:{color:"yellow"},code:{color:"yellowBright"},legacyBlue:{color:"blueBright"}},se=({children:e,skin:r="standard",bold:i,underline:o,strikethrough:a})=>Vm.default.createElement(He,{...uy[r],bold:i,underline:o,strikethrough:a},e);D();var gr=$(ie(),1);D();var Xm=$(ie(),1);function Zn(){let{exit:e}=Bl();return(0,Xm.useCallback)(r=>{r instanceof Error?e(r):r!==void 0?e(new Error(JSON.stringify(r))):e()},[e])}var kl=class extends gr.Component{state={hasError:!1};static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r){let i=r instanceof Error?r:new Error(JSON.stringify(r));i.message.includes("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default")?this.props.onExit(new ip({code:up.NonInteractiveTerminal(),cause:i})):this.props.onExit(i)}render(){return this.state.hasError?null:this.props.children}},oy=({children:e})=>{let r=Zn();return gr.default.createElement(kl,{onExit:r},e)},Ym=({children:e,wrap:r})=>gr.default.createElement(gr.default.Fragment,null,r&&gr.default.createElement(He,null,"----RENDER FRAME START----"),e);async function sy(e){let r=!!za().inkDebug,{waitUntilExit:i,unmount:o}=zo(gr.default.createElement(Ym,{wrap:r},gr.default.createElement(oy,null,e)),{exitOnCtrlC:!0,debug:r});process.once("beforeExit",()=>{o()}),process.once("SIGINT",()=>{o()}),await i()}function $m(e,r){let i=!!za().inkDebug,{unmount:o}=zo(gr.default.createElement(Ym,{wrap:i},e),{debug:i,...r});o()}function ay(e){$m(e)}function ly(e){$m(e,{stdout:process.stderr})}D();D();D();var Er=$(ie(),1),zl=$(dn(),1);D();var Qo=$(dn(),1),qr=(0,Qo.variant)((0,Qo.onTerms)(({T:e})=>({NotSubmitted:r=>({value:r}),Submitted:r=>({value:r})})));D();var nr=$(ie(),1),su=$(dn(),1);D();D();var Qm=$(ie(),1);var Ul=()=>Qm.default.createElement(se,null,zt()?"\u2026":"...");D();var Jm=$(ie(),1);var Hl=()=>Jm.default.createElement(se,null,zt()?"\u2716":"\xD7");D();var qm=$(ie(),1);var uu=()=>qm.default.createElement(se,null,zt()?"\u203A":"\xBB");D();var Km=$(ie(),1);var Ml=()=>Km.default.createElement(se,null,"?");D();var Zm=$(ie(),1);var ou=()=>Zm.default.createElement(se,null,zt()?"\u2714":"\u221A");D();var eD=$(ie(),1);var Gl=()=>eD.default.createElement(se,null,zt()?"\u26A0":"\u203C");D();var tD=$(ie(),1);var jl=()=>tD.default.createElement(se,null,zt()?"\u{1F4A1}":"!");var Jo=({children:e,inputState:r})=>{let{icon:i,separator:o}=(0,su.match)(r,{NotSubmitted:(0,su.constant)({icon:nr.default.createElement(se,{skin:"info"},nr.default.createElement(Ml,null)),separator:nr.default.createElement(se,{skin:"secondary"},nr.default.createElement(uu,null))}),Submitted:(0,su.constant)({icon:nr.default.createElement(se,{skin:"success"},nr.default.createElement(ou,null)),separator:nr.default.createElement(se,{skin:"secondary"},nr.default.createElement(Ul,null))})});return nr.default.createElement(se,null,i," ",nr.default.createElement(se,{bold:!0},e)," ",o)};D();var Wl=$(ie(),1),rD=$(dn(),1);var nD=({inputState:e})=>(0,rD.match)(e,{NotSubmitted:({value:r})=>Wl.default.createElement(se,{skin:"secondary"},"(",r?"Y/n":"y/N",")"),Submitted:({value:r})=>Wl.default.createElement(se,null,r?"Yes":"No")});D();var Ko=$(ie(),1);D();var ei=$(ie(),1);function fy({value:e,placeholder:r="",focus:i=!0,mask:o,highlightPastedText:a=!1,showCursor:f=!0,onChange:c,onSubmit:d}){let[h,m]=(0,ei.useState)({cursorOffset:(e||"").length,cursorWidth:0}),{cursorOffset:v,cursorWidth:C}=h;(0,ei.useEffect)(()=>{m(P=>{if(!i||!f)return P;let B=e||"";return P.cursorOffset>B.length-1?{cursorOffset:B.length,cursorWidth:0}:P})},[e,i,f]);let x=a?C:0,O=o?o.repeat(e.length):e,R=O,k=r?Pe.grey(r):void 0;if(f&&i){k=r.length>0?Pe.inverse(r[0])+Pe.grey(r.slice(1)):Pe.inverse(" "),R=O.length>0?"":Pe.inverse(" ");let P=0;for(let B of O)R+=P>=v-x&&P<=v?Pe.inverse(B):B,P++;O.length>0&&v===O.length&&(R+=Pe.inverse(" "))}return $o((P,B)=>{if(B.upArrow||B.downArrow||B.ctrl&&P==="c"||B.tab||B.shift&&B.tab)return;if(B.return){d&&d(e);return}let j=v,q=e,z=0;B.leftArrow?f&&j--:B.rightArrow?f&&j++:B.backspace||B.delete?v>0&&(q=e.slice(0,v-1)+e.slice(v,e.length),j--):(q=e.slice(0,v)+P+e.slice(v,e.length),j+=P.length,P.length>1&&(z=P.length)),v<0&&(j=0),v>e.length&&(j=e.length),m({cursorOffset:j,cursorWidth:z}),q!==e&&c(q)},{isActive:i}),ei.default.createElement(He,null,r?O.length>0?R:k:R)}var qo=fy;var iD=({initialValue:e,onSubmit:r})=>{let i=(0,Ko.useCallback)(o=>{let a=o.toLowerCase();["y","n"].includes(a)&&r(a==="y")},[r]);return Ko.default.createElement(qo,{value:"",showCursor:!1,onChange:i,onSubmit:()=>r(e)})};var cy=({label:e,info:r,initialValue:i=!0,onSubmit:o})=>{let[a,f]=(0,Er.useState)(()=>qr.NotSubmitted(i)),c=(0,Er.useCallback)(d=>{f(qr.Submitted(d)),o(d)},[o]);return Er.default.createElement(se,null,Er.default.createElement(Jo,{inputState:a},e)," ",r&&(0,zl.isType)(a,qr.NotSubmitted)&&Er.default.createElement(se,{skin:"secondary"},r," "),Er.default.createElement(nD,{inputState:a}),(0,zl.isType)(a,qr.NotSubmitted)&&Er.default.createElement(iD,{initialValue:i,onSubmit:c}))};D();var Zo=$(ie(),1);var uD=({onSubmit:e,onChange:r,placeholder:i,showCursor:o})=>{let[a,f]=(0,Zo.useState)("");return Zo.default.createElement(qo,{showCursor:o,placeholder:i,value:a,onChange:c=>{f(c),r?.(c)},onSubmit:()=>{e?.(!a&&i?i:a)}})};D();D();var lt=$(ie(),1);var oD=$(dn(),1);var py=({label:e,placeholder:r,onSubmit:i,validate:o=()=>!0})=>{let[a,f]=(0,lt.useState)(()=>qr.NotSubmitted(r)),[c,d]=(0,lt.useState)(!1),[h,m]=(0,lt.useState)(),v=(0,lt.useCallback)(async x=>{d(!1);let O=await o(x);O!==!0?m(O):(m(void 0),f(qr.Submitted(x)),i(x))},[i,o]),C=!!(h&&!c);return lt.default.createElement(lt.default.Fragment,null,lt.default.createElement(ut,{columnGap:1},lt.default.createElement(Jo,{inputState:a},e),(0,oD.match)(a,{NotSubmitted:({value:x})=>lt.default.createElement(se,{skin:C?"error":"standard"},lt.default.createElement(uD,{placeholder:x,onSubmit:v,onChange:()=>d(!0),showCursor:C})),Submitted:({value:x})=>lt.default.createElement(se,null,x)})),h&<.default.createElement(ut,{columnGap:1},lt.default.createElement(uu,null),lt.default.createElement(se,{skin:"error"},h)))};D();var Or=$(ie(),1),Dn=$(dn(),1);var kN=({type:e,children:r})=>{let i=(0,Dn.match)(e,{error:(0,Dn.constant)(Or.default.createElement(se,{skin:"error"},Or.default.createElement(Hl,null))),warning:(0,Dn.constant)(Or.default.createElement(se,{skin:"warning"},Or.default.createElement(Gl,null))),success:(0,Dn.constant)(Or.default.createElement(se,{skin:"success"},Or.default.createElement(ou,null))),insight:(0,Dn.constant)(Or.default.createElement(jl,null))});return Or.default.createElement(se,null,i," ",r)};D();var sD=$(ie(),1);var GN=({value:e})=>sD.default.createElement(He,{inverse:!0}," ",e," ");D();var rs=$(ie(),1);D();D();var Te="\x1B[",au="\x1B]",ti="\x07",es=";",aD=process.env.TERM_PROGRAM==="Apple_Terminal",ge={};ge.cursorTo=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?Te+(e+1)+"G":Te+(r+1)+";"+(e+1)+"H"};ge.cursorMove=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let i="";return e<0?i+=Te+-e+"D":e>0&&(i+=Te+e+"C"),r<0?i+=Te+-r+"A":r>0&&(i+=Te+r+"B"),i};ge.cursorUp=(e=1)=>Te+e+"A";ge.cursorDown=(e=1)=>Te+e+"B";ge.cursorForward=(e=1)=>Te+e+"C";ge.cursorBackward=(e=1)=>Te+e+"D";ge.cursorLeft=Te+"G";ge.cursorSavePosition=aD?"\x1B7":Te+"s";ge.cursorRestorePosition=aD?"\x1B8":Te+"u";ge.cursorGetPosition=Te+"6n";ge.cursorNextLine=Te+"E";ge.cursorPrevLine=Te+"F";ge.cursorHide=Te+"?25l";ge.cursorShow=Te+"?25h";ge.eraseLines=e=>{let r="";for(let i=0;i<e;i++)r+=ge.eraseLine+(i<e-1?ge.cursorUp():"");return e&&(r+=ge.cursorLeft),r};ge.eraseEndLine=Te+"K";ge.eraseStartLine=Te+"1K";ge.eraseLine=Te+"2K";ge.eraseDown=Te+"J";ge.eraseUp=Te+"1J";ge.eraseScreen=Te+"2J";ge.scrollUp=Te+"S";ge.scrollDown=Te+"T";ge.clearScreen="\x1Bc";ge.clearTerminal=process.platform==="win32"?`${ge.eraseScreen}${Te}0f`:`${ge.eraseScreen}${Te}3J${Te}H`;ge.beep=ti;ge.link=(e,r)=>[au,"8",es,es,r,ti,e,au,"8",es,es,ti].join("");ge.image=(e,r={})=>{let i=`${au}1337;File=inline=1`;return r.width&&(i+=`;width=${r.width}`),r.height&&(i+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(i+=";preserveAspectRatio=0"),i+":"+e.toString("base64")+ti};ge.iTerm={setCwd:(e=process.cwd())=>`${au}50;CurrentDir=${e}${ti}`,annotation:(e,r={})=>{let i=`${au}1337;`,o=typeof r.x<"u",a=typeof r.y<"u";if((o||a)&&!(o&&a&&typeof r.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),i+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?i+=(o?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):i+=e,i+ti}};var lD=ge;var ts=$(pD(),1);function gn(e,r,{target:i="stdout",...o}={}){return ts.default[i]?lD.link(e,r):o.fallback===!1?e:typeof o.fallback=="function"?o.fallback(e,r):`${e} (\u200B${r}\u200B)`}gn.isSupported=ts.default.stdout;gn.stderr=(e,r,i={})=>gn(e,r,{target:"stderr",...i});gn.stderr.isSupported=ts.default.stderr;var e3=({children:e,url:r,transform:i=o=>o})=>e?rs.default.createElement(Xo,{transform:o=>i(gn(o,r,{fallback:!0}))},rs.default.createElement(se,null,e)):rs.default.createElement(se,{skin:"legacyBlue"},r);D();var lu=$(ie(),1);D();var ni=$(ie(),1);var dD=$(T0(),1);function hy({type:e="dots"}){let[r,i]=(0,ni.useState)(0),o=dD.default[e];return(0,ni.useEffect)(()=>{let a=setInterval(()=>{i(f=>f===o.frames.length-1?0:f+1)},o.interval);return()=>{clearInterval(a)}},[o]),ni.default.createElement(He,null,o.frames[r])}var hD=hy;var l3=({text:e})=>{let r=lu.default.createElement(se,{skin:"info"},lu.default.createElement(hD,{type:"dots"}));return e?lu.default.createElement(ut,{gap:1},r,typeof e=="string"?lu.default.createElement(se,null,e):e):r};D();var Pr=$(dn(),1);D();var We=$(ie());function ii(){return ii=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},ii.apply(this,arguments)}var p3=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",d3=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";var my=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?We.useLayoutEffect:We.useEffect,Dy=function(r){var i=(0,We.useRef)(r);return my(function(){i.current=r}),(0,We.useCallback)(function(){return i.current},[i])},gy={status:"not-requested",loading:!1,result:void 0,error:void 0},DD={status:"loading",loading:!0,result:void 0,error:void 0},Ey=function(r){return DD},yy=function(r,i){return{status:"success",loading:!1,result:r,error:void 0}},vy=function(r,i){return{status:"error",loading:!1,result:void 0,error:r}},mD=function(){},xy={initialState:function(r){return r&&r.executeOnMount?DD:gy},executeOnMount:!0,executeOnUpdate:!0,setLoading:Ey,setResult:yy,setError:vy,onSuccess:mD,onError:mD},Cy=function(r){return ii({},xy,{},r)},Fy=function(r){var i=(0,We.useState)(function(){return r.initialState(r)}),o=i[0],a=i[1],f=(0,We.useCallback)(function(){return a(r.initialState(r))},[a,r]),c=(0,We.useCallback)(function(){return a(r.setLoading(o))},[o,a]),d=(0,We.useCallback)(function(v){return a(r.setResult(v,o))},[o,a]),h=(0,We.useCallback)(function(v){return a(r.setError(v,o))},[o,a]),m=(0,We.useCallback)(function(v){return a(ii({},o,{},v))},[o,a]);return{value:o,set:a,merge:m,reset:f,setLoading:c,setResult:d,setError:h}},Sy=function(){var r=(0,We.useRef)(!1);return(0,We.useEffect)(function(){return r.current=!0,function(){r.current=!1}},[]),function(){return r.current}},Ty=function(){var r=(0,We.useRef)(null);return{set:function(o){return r.current=o},get:function(){return r.current},is:function(o){return r.current===o}}},gD=function(r,i,o){!i&&(i=[]);var a=Cy(o),f=(0,We.useState)(null),c=f[0],d=f[1],h=Fy(a),m=Sy(),v=Ty(),C=function(B){return m()&&v.is(B)},x=function(){for(var B=arguments.length,j=new Array(B),q=0;q<B;q++)j[q]=arguments[q];var z=function(){try{return Promise.resolve(r.apply(void 0,j))}catch(Y){return Promise.reject(Y)}}();return d(j),v.set(z),h.setLoading(),z.then(function(Y){C(z)&&h.setResult(Y),a.onSuccess(Y,{isCurrent:function(){return v.is(z)}})},function(Y){C(z)&&h.setError(Y),a.onError(Y,{isCurrent:function(){return v.is(z)}})}),z},O=Dy(x),R=(0,We.useCallback)(function(){return O().apply(void 0,arguments)},[O]),k=!m();return(0,We.useEffect)(function(){var P=function(){return O().apply(void 0,i)};k&&a.executeOnMount&&P(),!k&&a.executeOnUpdate&&P()},i),ii({},h.value,{set:h.set,merge:h.merge,reset:h.reset,execute:R,currentPromise:v.get(),currentParams:c})};function ED(e,r,i){return gD(e,r,i)}var yD=function(r,i){return gD(r,[],ii({},i,{executeOnMount:!1,executeOnUpdate:!1}))};var ui=$(ie(),1);var fu=(0,Pr.variant)((0,Pr.onTerms)(({T:e})=>({Error:r=>({error:r}),Success:r=>({result:r}),Loading:()=>({})}))),cu=(0,Pr.variant)((0,Pr.onTerms)(({T:e})=>({Error:r=>({error:r}),Success:r=>({result:r}),Loading:()=>({}),NotRequested:()=>({})}))),Ny=(e,r,i)=>{let o=Zn(),a=(0,ui.useMemo)(()=>new AbortController,[]),{result:f,error:c,status:d,merge:h}=ED(e.bind(null,{signal:a.signal}),r,{onError:m=>o(m),...i??{}});return(0,ui.useEffect)(()=>()=>{a.abort()},[a]),(0,Pr.match)(d,{error:()=>({status:fu.Error(c??new Error("Unexpected error state in useAsync")),merge:h}),"not-requested":()=>({status:fu.Loading(),merge:h}),loading:()=>({status:fu.Loading(),merge:h}),success:()=>({status:fu.Success(f),merge:h})})},Iy=(e,r)=>{let i=Zn(),o=(0,ui.useMemo)(()=>new AbortController,[]),{result:a,error:f,status:c,merge:d,execute:h}=yD(e.bind(null,{signal:o.signal}),{onError:m=>i(m),...r??{}});return(0,ui.useEffect)(()=>()=>{o.abort()},[o]),(0,Pr.match)(c,{error:()=>({status:cu.Error(f??new Error("Unexpected error state in useAsyncCallback")),merge:d,execute:h}),"not-requested":()=>({status:cu.NotRequested(),merge:d,execute:h}),loading:()=>({status:cu.Loading(),merge:d,execute:h}),success:()=>({status:cu.Success(a),merge:d,execute:h})})};D();var OD=$(ie(),1);D();var Ze=$(ie(),1);D();var FD=$(xD()),Ay=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function CD(e){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=e.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(FD.default[i[1]]||e.charAt(e.length-2)==="/")&&(r.voidElement=!0),r.name.startsWith("!--"))){var o=e.indexOf("-->");return{type:"comment",comment:o!==-1?e.slice(4,o):""}}for(var a=new RegExp(Ay),f=null;(f=a.exec(e))!==null;)if(f[0].trim())if(f[1]){var c=f[1].trim(),d=[c,""];c.indexOf("=")>-1&&(d=c.split("=")),r.attrs[d[0]]=d[1],a.lastIndex--}else f[2]&&(r.attrs[f[2]]=f[3].trim().substring(1,f[3].length-1));return r}var _y=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Ly=/^\s*$/,wy=Object.create(null);function SD(e,r){switch(r.type){case"text":return e+r.content;case"tag":return e+="<"+r.name+(r.attrs?function(i){var o=[];for(var a in i)o.push(a+'="'+i[a]+'"');return o.length?" "+o.join(" "):""}(r.attrs):"")+(r.voidElement?"/>":">"),r.voidElement?e:e+r.children.reduce(SD,"")+"</"+r.name+">";case"comment":return e+"<!--"+r.comment+"-->"}}var Oy={parse:function(e,r){r||(r={}),r.components||(r.components=wy);var i,o=[],a=[],f=-1,c=!1;if(e.indexOf("<")!==0){var d=e.indexOf("<");o.push({type:"text",content:d===-1?e:e.substring(0,d)})}return e.replace(_y,function(h,m){if(c){if(h!=="</"+i.name+">")return;c=!1}var v,C=h.charAt(1)!=="/",x=h.startsWith("<!--"),O=m+h.length,R=e.charAt(O);if(x){var k=CD(h);return f<0?(o.push(k),o):((v=a[f]).children.push(k),o)}if(C&&(f++,(i=CD(h)).type==="tag"&&r.components[i.name]&&(i.type="component",c=!0),i.voidElement||c||!R||R==="<"||i.children.push({type:"text",content:e.slice(O,e.indexOf("<",O))}),f===0&&o.push(i),(v=a[f-1])&&v.children.push(i),a[f]=i),(!C||i.voidElement)&&(f>-1&&(i.voidElement||i.name===h.slice(2,-1))&&(f--,i=f===-1?o:a[f]),!c&&R!=="<"&&R)){v=f===-1?o:a[f].children;var P=e.indexOf("<",O),B=e.slice(O,P===-1?void 0:P);Ly.test(B)&&(B=" "),(P>-1&&f+v.length>=0||B!==" ")&&v.push({type:"text",content:B})}}),o},stringify:function(e){return e.reduce(function(r,i){return r+SD("",i)},"")}},TD=Oy;D();function pu(){if(console&&console.warn){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];typeof r[0]=="string"&&(r[0]=`react-i18next:: ${r[0]}`),console.warn(...r)}}var ND={};function oi(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];typeof r[0]=="string"&&ND[r[0]]||(typeof r[0]=="string"&&(ND[r[0]]=new Date),pu(...r))}var ID=(e,r)=>()=>{if(e.isInitialized)r();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),r()};e.on("initialized",i)}};function Xl(e,r,i){e.loadNamespaces(r,ID(e,i))}function Yl(e,r,i,o){typeof i=="string"&&(i=[i]),i.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(r,ID(e,o))}function Py(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.languages[0],a=r.options?r.options.fallbackLng:!1,f=r.languages[r.languages.length-1];if(o.toLowerCase()==="cimode")return!0;let c=(d,h)=>{let m=r.services.backendConnector.state[`${d}|${h}`];return m===-1||m===2};return i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!c(r.isLanguageChangingTo,e)?!1:!!(r.hasResourceBundle(o,e)||!r.services.backendConnector.backend||r.options.resources&&!r.options.partialBundledLanguages||c(o,e)&&(!a||c(f,e)))}function AD(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!r.languages||!r.languages.length?(oi("i18n.languages were undefined or empty",r.languages),!0):r.options.ignoreJSONStructure!==void 0?r.hasLoadedNamespace(e,{lng:i.lng,precheck:(a,f)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!f(a.isLanguageChangingTo,e))return!1}}):Py(e,r,i)}D();D();var Ry=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,By={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},by=e=>By[e],_D=e=>e.replace(Ry,by);var $l={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:_D};function ns(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$l={...$l,...e}}function si(){return $l}D();var LD;function is(e){LD=e}function Rr(){return LD}function Ql(e,r){if(!e)return!1;let i=e.props?e.props.children:e.children;return r?i.length>0:!!i}function Jl(e){if(!e)return[];let r=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?ai(r):r}function ky(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(r=>(0,Ze.isValidElement)(r))}function ai(e){return Array.isArray(e)?e:[e]}function Uy(e,r){let i={...r};return i.props=Object.assign(e.props,r.props),i}function ql(e,r){if(!e)return"";let i="",o=ai(e),a=r.transSupportBasicHtmlNodes&&r.transKeepBasicHtmlNodesFor?r.transKeepBasicHtmlNodesFor:[];return o.forEach((f,c)=>{if(typeof f=="string")i+=`${f}`;else if((0,Ze.isValidElement)(f)){let d=Object.keys(f.props).length,h=a.indexOf(f.type)>-1,m=f.props.children;if(!m&&h&&d===0)i+=`<${f.type}/>`;else if(!m&&(!h||d!==0))i+=`<${c}></${c}>`;else if(f.props.i18nIsDynamicList)i+=`<${c}></${c}>`;else if(h&&d===1&&typeof m=="string")i+=`<${f.type}>${m}</${f.type}>`;else{let v=ql(m,r);i+=`<${c}>${v}</${c}>`}}else if(f===null)pu("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof f=="object"){let{format:d,...h}=f,m=Object.keys(h);if(m.length===1){let v=d?`${m[0]}, ${d}`:m[0];i+=`{{${v}}}`}else pu("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",f)}else pu("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",f)}),i}function Hy(e,r,i,o,a,f){if(r==="")return[];let c=o.transKeepBasicHtmlNodesFor||[],d=r&&new RegExp(c.map(P=>`<${P}`).join("|")).test(r);if(!e&&!d&&!f)return[r];let h={};function m(P){ai(P).forEach(j=>{typeof j!="string"&&(Ql(j)?m(Jl(j)):typeof j=="object"&&!(0,Ze.isValidElement)(j)&&Object.assign(h,j))})}m(e);let v=TD.parse(`<0>${r}</0>`),C={...h,...a};function x(P,B,j){let q=Jl(P),z=R(q,B.children,j);return ky(q)&&z.length===0||P.props&&P.props.i18nIsDynamicList?q:z}function O(P,B,j,q,z){P.dummy?(P.children=B,j.push((0,Ze.cloneElement)(P,{key:q},z?void 0:B))):j.push(...Ze.Children.map([P],Y=>{let H={...Y.props};return delete H.i18nIsDynamicList,(0,Ze.createElement)(Y.type,{...H,key:q,ref:Y.ref},z?null:B)}))}function R(P,B,j){let q=ai(P);return ai(B).reduce((Y,H,ne)=>{let Me=H.children&&H.children[0]&&H.children[0].content&&i.services.interpolator.interpolate(H.children[0].content,C,i.language);if(H.type==="tag"){let Le=q[parseInt(H.name,10)];j.length===1&&!Le&&(Le=j[0][H.name]),Le||(Le={});let Ae=Object.keys(H.attrs).length!==0?Uy({props:H.attrs},Le):Le,ze=(0,Ze.isValidElement)(Ae),et=ze&&Ql(H,!0)&&!H.voidElement,ot=d&&typeof Ae=="object"&&Ae.dummy&&!ze,Et=typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,H.name);if(typeof Ae=="string"){let Ne=i.services.interpolator.interpolate(Ae,C,i.language);Y.push(Ne)}else if(Ql(Ae)||et){let Ne=x(Ae,H,j);O(Ae,Ne,Y,ne)}else if(ot){let Ne=R(q,H.children,j);O(Ae,Ne,Y,ne)}else if(Number.isNaN(parseFloat(H.name)))if(Et){let Ne=x(Ae,H,j);O(Ae,Ne,Y,ne,H.voidElement)}else if(o.transSupportBasicHtmlNodes&&c.indexOf(H.name)>-1)if(H.voidElement)Y.push((0,Ze.createElement)(H.name,{key:`${H.name}-${ne}`}));else{let Ne=R(q,H.children,j);Y.push((0,Ze.createElement)(H.name,{key:`${H.name}-${ne}`},Ne))}else if(H.voidElement)Y.push(`<${H.name} />`);else{let Ne=R(q,H.children,j);Y.push(`<${H.name}>${Ne}</${H.name}>`)}else if(typeof Ae=="object"&&!ze){let Ne=H.children[0]?Me:null;Ne&&Y.push(Ne)}else O(Ae,Me,Y,ne,H.children.length!==1||!Me)}else if(H.type==="text"){let Le=o.transWrapTextNodes,Ae=f?o.unescape(i.services.interpolator.interpolate(H.content,C,i.language)):i.services.interpolator.interpolate(H.content,C,i.language);Le?Y.push((0,Ze.createElement)(Le,{key:`${H.name}-${ne}`},Ae)):Y.push(Ae)}return Y},[])}let k=R([{dummy:!0,children:e||[]}],v,ai(e||[]));return Jl(k[0])}function Kl(e){let{children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c={},values:d,defaults:h,components:m,ns:v,i18n:C,t:x,shouldUnescape:O,...R}=e,k=C||Rr();if(!k)return oi("You will need to pass in an i18next instance by using i18nextReactModule"),r;let P=x||k.t.bind(k)||(et=>et),B={...si(),...k.options&&k.options.react},j=v||P.ns||k.options&&k.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"];let q=ql(r,B),z=h||q||B.transEmptyNodeValue||a,{hashTransKey:Y}=B,H=a||(Y?Y(q||z):q||z);k.options&&k.options.interpolation&&k.options.interpolation.defaultVariables&&(d=d&&Object.keys(d).length>0?{...d,...k.options.interpolation.defaultVariables}:{...k.options.interpolation.defaultVariables});let ne=d||i!==void 0||!r?c.interpolation:{interpolation:{...c.interpolation,prefix:"#$?",suffix:"?$#"}},Me={...c,context:f||c.context,count:i,...d,...ne,defaultValue:z,ns:j},Le=H?P(H,Me):z;m&&Object.keys(m).forEach(et=>{let ot=m[et];if(typeof ot.type=="function"||!ot.props||!ot.props.children||Le.indexOf(`${et}/>`)<0&&Le.indexOf(`${et} />`)<0)return;function Et(){return(0,Ze.createElement)(Ze.Fragment,null,ot)}m[et]=(0,Ze.createElement)(Et)});let Ae=Hy(m||r,Le,k,B,Me,O),ze=o!==void 0?o:B.defaultTransParent;return ze?(0,Ze.createElement)(ze,R,Ae):Ae}D();var wD=$(ie(),1);D();var us={type:"3rdParty",init(e){ns(e.options.react),is(e)}};var Kr=(0,wD.createContext)(),os=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};function PD(e){let{children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c={},values:d,defaults:h,components:m,ns:v,i18n:C,t:x,shouldUnescape:O,...R}=e,{i18n:k,defaultNS:P}=(0,OD.useContext)(Kr)||{},B=C||k||Rr(),j=x||B&&B.t.bind(B);return Kl({children:r,count:i,parent:o,i18nKey:a,context:f,tOptions:c,values:d,defaults:h,components:m,ns:v||j&&j.ns||P||B&&B.options&&B.options.defaultNS,i18n:B,t:x,shouldUnescape:O,...R})}D();D();var Pt=$(ie(),1);var My=(e,r)=>{let i=(0,Pt.useRef)();return(0,Pt.useEffect)(()=>{i.current=r?i.current:e},[e,r]),i.current};function RD(e,r,i,o){return e.getFixedT(r,i,o)}function Gy(e,r,i,o){return(0,Pt.useCallback)(RD(e,r,i,o),[e,r,i,o])}function ss(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{i18n:i}=r,{i18n:o,defaultNS:a}=(0,Pt.useContext)(Kr)||{},f=i||o||Rr();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new os),!f){oi("You will need to pass in an i18next instance by using initReactI18next");let z=(H,ne)=>typeof ne=="string"?ne:ne&&typeof ne=="object"&&typeof ne.defaultValue=="string"?ne.defaultValue:Array.isArray(H)?H[H.length-1]:H,Y=[z,{},!1];return Y.t=z,Y.i18n={},Y.ready=!1,Y}f.options.react&&f.options.react.wait!==void 0&&oi("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let c={...si(),...f.options.react,...r},{useSuspense:d,keyPrefix:h}=c,m=e||a||f.options&&f.options.defaultNS;m=typeof m=="string"?[m]:m||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(m);let v=(f.isInitialized||f.initializedStoreOnce)&&m.every(z=>AD(z,f,c)),C=Gy(f,r.lng||null,c.nsMode==="fallback"?m:m[0],h),x=()=>C,O=()=>RD(f,r.lng||null,c.nsMode==="fallback"?m:m[0],h),[R,k]=(0,Pt.useState)(x),P=m.join();r.lng&&(P=`${r.lng}${P}`);let B=My(P),j=(0,Pt.useRef)(!0);(0,Pt.useEffect)(()=>{let{bindI18n:z,bindI18nStore:Y}=c;j.current=!0,!v&&!d&&(r.lng?Yl(f,r.lng,m,()=>{j.current&&k(O)}):Xl(f,m,()=>{j.current&&k(O)})),v&&B&&B!==P&&j.current&&k(O);function H(){j.current&&k(O)}return z&&f&&f.on(z,H),Y&&f&&f.store.on(Y,H),()=>{j.current=!1,z&&f&&z.split(" ").forEach(ne=>f.off(ne,H)),Y&&f&&Y.split(" ").forEach(ne=>f.store.off(ne,H))}},[f,P]),(0,Pt.useEffect)(()=>{j.current&&v&&k(x)},[f,h,v]);let q=[R,f,v];if(q.t=R,q.i18n=f,q.ready=v,v||!v&&!d)return q;throw new Promise(z=>{r.lng?Yl(f,r.lng,m,()=>z()):Xl(f,m,()=>z())})}D();var BD=$(ie(),1);D();D();var as=$(ie(),1);function Zl(e){let{i18n:r,defaultNS:i,children:o}=e,a=(0,as.useMemo)(()=>({i18n:r,defaultNS:i}),[r,i]);return(0,as.createElement)(Kr.Provider,{value:a},o)}D();var Xy=$(ie(),1);D();var Wy=$(ie(),1);D();var Ts=$(ie(),1);D();D();D();function bD(e,r,i){function o(d){return d&&d.indexOf("###")>-1?d.replace(/###/g,"."):d}function a(){return!e||typeof e=="string"}for(var f=typeof r!="string"?[].concat(r):r.split(".");f.length>1;){if(a())return{};var c=o(f.shift());!e[c]&&i&&(e[c]=new i),e=e[c]}return a()?{}:{obj:e,k:o(f.shift())}}function kD(e,r,i){var o=bD(e,r,Object),a=o.obj,f=o.k;a[f]=i}function UD(e,r){var i=bD(e,r),o=i.obj,a=i.k;if(o)return o[a]}var HD=[],Yy=HD.forEach,$y=HD.slice;function MD(e){return Yy.call($y.call(arguments,1),function(r){if(r)for(var i in r)e[i]===void 0&&(e[i]=r[i])}),e}D();D();zi();D();zi();D();var De;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(De||(De={}));D();zi();D();var Re;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Re||(Re={}));var En;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(En||(En={}));function ef(e){return e.type===Re.literal}function GD(e){return e.type===Re.argument}function ls(e){return e.type===Re.number}function fs(e){return e.type===Re.date}function cs(e){return e.type===Re.time}function ps(e){return e.type===Re.select}function ds(e){return e.type===Re.plural}function jD(e){return e.type===Re.pound}function hs(e){return e.type===Re.tag}function ms(e){return!!(e&&typeof e=="object"&&e.type===En.number)}function du(e){return!!(e&&typeof e=="object"&&e.type===En.dateTime)}D();var tf=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;D();D();var Jy=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function WD(e){var r={};return e.replace(Jy,function(i){var o=i.length;switch(i[0]){case"G":r.era=o===4?"long":o===5?"narrow":"short";break;case"y":r.year=o===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][o-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][o-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][o-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][o-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][o-1];break;case"s":r.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=o<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}D();zi();D();var zD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $D(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var r=e.split(zD).filter(function(x){return x.length>0}),i=[],o=0,a=r;o<a.length;o++){var f=a[o],c=f.split("/");if(c.length===0)throw new Error("Invalid number skeleton");for(var d=c[0],h=c.slice(1),m=0,v=h;m<v.length;m++){var C=v[m];if(C.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:h})}return i}function qy(e){return e.replace(/^(.*?)-/,"")}var VD=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,QD=/^(@+)?(\+|#+)?[rs]?$/g,Ky=/(\*)(0+)|(#+)(0+)|(0+)/g,JD=/^(0+)$/;function XD(e){var r={};return e[e.length-1]==="r"?r.roundingPriority="morePrecision":e[e.length-1]==="s"&&(r.roundingPriority="lessPrecision"),e.replace(QD,function(i,o,a){return typeof a!="string"?(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length):a==="+"?r.minimumSignificantDigits=o.length:o[0]==="#"?r.maximumSignificantDigits=o.length:(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length+(typeof a=="string"?a.length:0)),""}),r}function qD(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Zy(e){var r;if(e[0]==="E"&&e[1]==="E"?(r={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(r={notation:"scientific"},e=e.slice(1)),r){var i=e.slice(0,2);if(i==="+!"?(r.signDisplay="always",e=e.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",e=e.slice(2)),!JD.test(e))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=e.length}return r}function YD(e){var r={},i=qD(e);return i||r}function KD(e){for(var r={},i=0,o=e;i<o.length;i++){var a=o[i];switch(a.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=a.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=qy(a.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ye(ye(ye({},r),{notation:"scientific"}),a.options.reduce(function(h,m){return ye(ye({},h),YD(m))},{}));continue;case"engineering":r=ye(ye(ye({},r),{notation:"engineering"}),a.options.reduce(function(h,m){return ye(ye({},h),YD(m))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Ky,function(h,m,v,C,x,O){if(m)r.minimumIntegerDigits=v.length;else{if(C&&x)throw new Error("We currently do not support maximum integer digits");if(O)throw new Error("We currently do not support exact integer digits")}return""});continue}if(JD.test(a.stem)){r.minimumIntegerDigits=a.stem.length;continue}if(VD.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(VD,function(h,m,v,C,x,O){return v==="*"?r.minimumFractionDigits=m.length:C&&C[0]==="#"?r.maximumFractionDigits=C.length:x&&O?(r.minimumFractionDigits=x.length,r.maximumFractionDigits=x.length+O.length):(r.minimumFractionDigits=m.length,r.maximumFractionDigits=m.length),""});var f=a.options[0];f==="w"?r=ye(ye({},r),{trailingZeroDisplay:"stripIfInteger"}):f&&(r=ye(ye({},r),XD(f)));continue}if(QD.test(a.stem)){r=ye(ye({},r),XD(a.stem));continue}var c=qD(a.stem);c&&(r=ye(ye({},r),c));var d=Zy(a.stem);d&&(r=ye(ye({},r),d))}return r}D();D();var hu={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ZD(e,r){for(var i="",o=0;o<e.length;o++){var a=e.charAt(o);if(a==="j"){for(var f=0;o+1<e.length&&e.charAt(o+1)===a;)f++,o++;var c=1+(f&1),d=f<2?1:3+(f>>1),h="a",m=ev(r);for((m=="H"||m=="k")&&(d=0);d-- >0;)i+=h;for(;c-- >0;)i=m+i}else a==="J"?i+="H":i+=a}return i}function ev(e){var r=e.hourCycle;if(r===void 0&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,o;i!=="root"&&(o=e.maximize().region);var a=hu[o||""]||hu[i||""]||hu["".concat(i,"-001")]||hu["001"];return a[0]}var rf,tv=new RegExp("^".concat(tf.source,"*")),rv=new RegExp("".concat(tf.source,"*$"));function ve(e,r){return{start:e,end:r}}var nv=!!String.prototype.startsWith&&"_a".startsWith("a",1),iv=!!String.fromCodePoint,uv=!!Object.fromEntries,ov=!!String.prototype.codePointAt,sv=!!String.prototype.trimStart,av=!!String.prototype.trimEnd,lv=!!Number.isSafeInteger,fv=lv?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},uf=!0;try{eg=ig("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),uf=((rf=eg.exec("a"))===null||rf===void 0?void 0:rf[0])==="a"}catch{uf=!1}var eg,tg=nv?function(r,i,o){return r.startsWith(i,o)}:function(r,i,o){return r.slice(o,o+i.length)===i},of=iv?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var o="",a=r.length,f=0,c;a>f;){if(c=r[f++],c>1114111)throw RangeError(c+" is not a valid code point");o+=c<65536?String.fromCharCode(c):String.fromCharCode(((c-=65536)>>10)+55296,c%1024+56320)}return o},rg=uv?Object.fromEntries:function(r){for(var i={},o=0,a=r;o<a.length;o++){var f=a[o],c=f[0],d=f[1];i[c]=d}return i},ng=ov?function(r,i){return r.codePointAt(i)}:function(r,i){var o=r.length;if(!(i<0||i>=o)){var a=r.charCodeAt(i),f;return a<55296||a>56319||i+1===o||(f=r.charCodeAt(i+1))<56320||f>57343?a:(a-55296<<10)+(f-56320)+65536}},cv=sv?function(r){return r.trimStart()}:function(r){return r.replace(tv,"")},pv=av?function(r){return r.trimEnd()}:function(r){return r.replace(rv,"")};function ig(e,r){return new RegExp(e,r)}var sf;uf?(nf=ig("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),sf=function(r,i){var o;nf.lastIndex=i;var a=nf.exec(r);return(o=a[1])!==null&&o!==void 0?o:""}):sf=function(r,i){for(var o=[];;){var a=ng(r,i);if(a===void 0||og(a)||mv(a))break;o.push(a),i+=a>=65536?2:1}return of.apply(void 0,o)};var nf,ug=function(){function e(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(r,i,o){for(var a=[];!this.isEOF();){var f=this.char();if(f===123){var c=this.parseArgument(r,o);if(c.err)return c;a.push(c.val)}else{if(f===125&&r>0)break;if(f===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),a.push({type:Re.pound,location:ve(d,this.clonePosition())})}else if(f===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(De.UNMATCHED_CLOSING_TAG,ve(this.clonePosition(),this.clonePosition()))}else if(f===60&&!this.ignoreTag&&af(this.peek()||0)){var c=this.parseTag(r,i);if(c.err)return c;a.push(c.val)}else{var c=this.parseLiteral(r,i);if(c.err)return c;a.push(c.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(r,i){var o=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Re.literal,value:"<".concat(a,"/>"),location:ve(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var f=this.parseMessage(r+1,i,!0);if(f.err)return f;var c=f.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!af(this.char()))return this.error(De.INVALID_TAG,ve(d,this.clonePosition()));var h=this.clonePosition(),m=this.parseTagName();return a!==m?this.error(De.UNMATCHED_CLOSING_TAG,ve(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Re.tag,value:a,children:c,location:ve(o,this.clonePosition())},err:null}:this.error(De.INVALID_TAG,ve(d,this.clonePosition())))}else return this.error(De.UNCLOSED_TAG,ve(o,this.clonePosition()))}else return this.error(De.INVALID_TAG,ve(o,this.clonePosition()))},e.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&hv(this.char());)this.bump();return this.message.slice(r,this.offset())},e.prototype.parseLiteral=function(r,i){for(var o=this.clonePosition(),a="";;){var f=this.tryParseQuote(i);if(f){a+=f;continue}var c=this.tryParseUnquoted(r,i);if(c){a+=c;continue}var d=this.tryParseLeftAngleBracket();if(d){a+=d;continue}break}var h=ve(o,this.clonePosition());return{val:{type:Re.literal,value:a,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!dv(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(o);this.bump()}return of.apply(void 0,i)},e.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(i==="plural"||i==="selectordinal")||o===125&&r>0?null:(this.bump(),of(o))},e.prototype.parseArgument=function(r,i){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(De.EMPTY_ARGUMENT,ve(o,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(De.MALFORMED_ARGUMENT,ve(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Re.argument,value:a,location:ve(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(o,this.clonePosition())):this.parseArgumentOptions(r,i,a,o);default:return this.error(De.MALFORMED_ARGUMENT,ve(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),o=sf(this.message,i),a=i+o.length;this.bumpTo(a);var f=this.clonePosition(),c=ve(r,f);return{value:o,location:c}},e.prototype.parseArgumentOptions=function(r,i,o,a){var f,c=this.clonePosition(),d=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(d){case"":return this.error(De.EXPECT_ARGUMENT_TYPE,ve(c,h));case"number":case"date":case"time":{this.bumpSpace();var m=null;if(this.bumpIf(",")){this.bumpSpace();var v=this.clonePosition(),C=this.parseSimpleArgStyleIfPossible();if(C.err)return C;var x=pv(C.val);if(x.length===0)return this.error(De.EXPECT_ARGUMENT_STYLE,ve(this.clonePosition(),this.clonePosition()));var O=ve(v,this.clonePosition());m={style:x,styleLocation:O}}var R=this.tryParseArgumentClose(a);if(R.err)return R;var k=ve(a,this.clonePosition());if(m&&tg(m?.style,"::",0)){var P=cv(m.style.slice(2));if(d==="number"){var C=this.parseNumberSkeletonFromString(P,m.styleLocation);return C.err?C:{val:{type:Re.number,value:o,location:k,style:C.val},err:null}}else{if(P.length===0)return this.error(De.EXPECT_DATE_TIME_SKELETON,k);var B=P;this.locale&&(B=ZD(P,this.locale));var x={type:En.dateTime,pattern:B,location:m.styleLocation,parsedOptions:this.shouldParseSkeletons?WD(B):{}},j=d==="date"?Re.date:Re.time;return{val:{type:j,value:o,location:k,style:x},err:null}}}return{val:{type:d==="number"?Re.number:d==="date"?Re.date:Re.time,value:o,location:k,style:(f=m?.style)!==null&&f!==void 0?f:null},err:null}}case"plural":case"selectordinal":case"select":{var q=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(De.EXPECT_SELECT_ARGUMENT_OPTIONS,ve(q,ye({},q)));this.bumpSpace();var z=this.parseIdentifierIfPossible(),Y=0;if(d!=="select"&&z.value==="offset"){if(!this.bumpIf(":"))return this.error(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ve(this.clonePosition(),this.clonePosition()));this.bumpSpace();var C=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(C.err)return C;this.bumpSpace(),z=this.parseIdentifierIfPossible(),Y=C.val}var H=this.tryParsePluralOrSelectOptions(r,d,i,z);if(H.err)return H;var R=this.tryParseArgumentClose(a);if(R.err)return R;var ne=ve(a,this.clonePosition());return d==="select"?{val:{type:Re.select,value:o,options:rg(H.val),location:ne},err:null}:{val:{type:Re.plural,value:o,options:rg(H.val),offset:Y,pluralType:d==="plural"?"cardinal":"ordinal",location:ne},err:null}}default:return this.error(De.INVALID_ARGUMENT_TYPE,ve(c,h))}},e.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(De.EXPECT_ARGUMENT_CLOSING_BRACE,ve(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(De.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ve(a,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(r,i){var o=[];try{o=$D(r)}catch{return this.error(De.INVALID_NUMBER_SKELETON,i)}return{val:{type:En.number,tokens:o,location:i,parsedOptions:this.shouldParseSkeletons?KD(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(r,i,o,a){for(var f,c=!1,d=[],h=new Set,m=a.value,v=a.location;;){if(m.length===0){var C=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(De.EXPECT_PLURAL_ARGUMENT_SELECTOR,De.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;v=ve(C,this.clonePosition()),m=this.message.slice(C.offset,this.offset())}else break}if(h.has(m))return this.error(i==="select"?De.DUPLICATE_SELECT_ARGUMENT_SELECTOR:De.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,v);m==="other"&&(c=!0),this.bumpSpace();var O=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:De.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ve(this.clonePosition(),this.clonePosition()));var R=this.parseMessage(r+1,i,o);if(R.err)return R;var k=this.tryParseArgumentClose(O);if(k.err)return k;d.push([m,{value:R.val,location:ve(O,this.clonePosition())}]),h.add(m),this.bumpSpace(),f=this.parseIdentifierIfPossible(),m=f.value,v=f.location}return d.length===0?this.error(i==="select"?De.EXPECT_SELECT_ARGUMENT_SELECTOR:De.EXPECT_PLURAL_ARGUMENT_SELECTOR,ve(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!c?this.error(De.MISSING_OTHER_CLAUSE,ve(this.clonePosition(),this.clonePosition())):{val:d,err:null}},e.prototype.tryParseDecimalInteger=function(r,i){var o=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var f=!1,c=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)f=!0,c=c*10+(d-48),this.bump();else break}var h=ve(a,this.clonePosition());return f?(c*=o,fv(c)?{val:c,err:null}:this.error(i,h)):this.error(r,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=ng(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},e.prototype.bumpIf=function(r){if(tg(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(r){var i=this.offset(),o=this.message.indexOf(r,i);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&og(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),o=this.message.charCodeAt(i+(r>=65536?2:1));return o??null},e}();function af(e){return e>=97&&e<=122||e>=65&&e<=90}function dv(e){return af(e)||e===47}function hv(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function og(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function mv(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function lf(e){e.forEach(function(r){if(delete r.location,ps(r)||ds(r))for(var i in r.options)delete r.options[i].location,lf(r.options[i].value);else ls(r)&&ms(r.style)||(fs(r)||cs(r))&&du(r.style)?delete r.style.location:hs(r)&&lf(r.children)})}function sg(e,r){r===void 0&&(r={}),r=ye({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new ug(e,r).parse();if(i.err){var o=SyntaxError(De[i.err.kind]);throw o.location=i.err.location,o.originalMessage=i.err.message,o}return r?.captureLocation||lf(i.val),i.val}D();function Ds(e,r){var i=r&&r.cache?r.cache:xv,o=r&&r.serializer?r.serializer:vv,a=r&&r.strategy?r.strategy:gv;return a(e,{cache:i,serializer:o})}function Dv(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ag(e,r,i,o){var a=Dv(o)?o:i(o),f=r.get(a);return typeof f>"u"&&(f=e.call(this,o),r.set(a,f)),f}function lg(e,r,i){var o=Array.prototype.slice.call(arguments,3),a=i(o),f=r.get(a);return typeof f>"u"&&(f=e.apply(this,o),r.set(a,f)),f}function ff(e,r,i,o,a){return i.bind(r,e,o,a)}function gv(e,r){var i=e.length===1?ag:lg;return ff(e,this,i,r.cache.create(),r.serializer)}function Ev(e,r){return ff(e,this,lg,r.cache.create(),r.serializer)}function yv(e,r){return ff(e,this,ag,r.cache.create(),r.serializer)}var vv=function(){return JSON.stringify(arguments)};function cf(){this.cache=Object.create(null)}cf.prototype.get=function(e){return this.cache[e]};cf.prototype.set=function(e,r){this.cache[e]=r};var xv={create:function(){return new cf}},gs={variadic:Ev,monadic:yv};D();D();zi();var yn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(yn||(yn={}));var mu=function(e){Wi(r,e);function r(i,o,a){var f=e.call(this,i)||this;return f.code=o,f.originalMessage=a,f}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error);var pf=function(e){Wi(r,e);function r(i,o,a,f){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(o,'". Options are "').concat(Object.keys(a).join('", "'),'"'),yn.INVALID_VALUE,f)||this}return r}(mu);var fg=function(e){Wi(r,e);function r(i,o,a){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(o),yn.INVALID_VALUE,a)||this}return r}(mu);var cg=function(e){Wi(r,e);function r(i,o){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(o,'"'),yn.MISSING_VALUE,o)||this}return r}(mu);var gt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(gt||(gt={}));function Cv(e){return e.length<2?e:e.reduce(function(r,i){var o=r[r.length-1];return!o||o.type!==gt.literal||i.type!==gt.literal?r.push(i):o.value+=i.value,r},[])}function Fv(e){return typeof e=="function"}function Du(e,r,i,o,a,f,c){if(e.length===1&&ef(e[0]))return[{type:gt.literal,value:e[0].value}];for(var d=[],h=0,m=e;h<m.length;h++){var v=m[h];if(ef(v)){d.push({type:gt.literal,value:v.value});continue}if(jD(v)){typeof f=="number"&&d.push({type:gt.literal,value:i.getNumberFormat(r).format(f)});continue}var C=v.value;if(!(a&&C in a))throw new cg(C,c);var x=a[C];if(GD(v)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),d.push({type:typeof x=="string"?gt.literal:gt.object,value:x});continue}if(fs(v)){var O=typeof v.style=="string"?o.date[v.style]:du(v.style)?v.style.parsedOptions:void 0;d.push({type:gt.literal,value:i.getDateTimeFormat(r,O).format(x)});continue}if(cs(v)){var O=typeof v.style=="string"?o.time[v.style]:du(v.style)?v.style.parsedOptions:o.time.medium;d.push({type:gt.literal,value:i.getDateTimeFormat(r,O).format(x)});continue}if(ls(v)){var O=typeof v.style=="string"?o.number[v.style]:ms(v.style)?v.style.parsedOptions:void 0;O&&O.scale&&(x=x*(O.scale||1)),d.push({type:gt.literal,value:i.getNumberFormat(r,O).format(x)});continue}if(hs(v)){var R=v.children,k=v.value,P=a[k];if(!Fv(P))throw new fg(k,"function",c);var B=Du(R,r,i,o,a,f),j=P(B.map(function(Y){return Y.value}));Array.isArray(j)||(j=[j]),d.push.apply(d,j.map(function(Y){return{type:typeof Y=="string"?gt.literal:gt.object,value:Y}}))}if(ps(v)){var q=v.options[x]||v.options.other;if(!q)throw new pf(v.value,x,Object.keys(v.options),c);d.push.apply(d,Du(q.value,r,i,o,a));continue}if(ds(v)){var q=v.options["=".concat(x)];if(!q){if(!Intl.PluralRules)throw new mu(`Intl.PluralRules is not available in this environment.
|
|
45
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
46
|
-
`,yn.MISSING_INTL_API,c);var z=i.getPluralRules(r,{type:v.pluralType}).select(x-(v.offset||0));q=v.options[z]||v.options.other}if(!q)throw new pf(v.value,x,Object.keys(v.options),c);d.push.apply(d,Du(q.value,r,i,o,a,x-(v.offset||0)));continue}}return Cv(d)}function Sv(e,r){return r?ye(ye(ye({},e||{}),r||{}),Object.keys(e).reduce(function(i,o){return i[o]=ye(ye({},e[o]),r[o]||{}),i},{})):e}function Tv(e,r){return r?Object.keys(e).reduce(function(i,o){return i[o]=Sv(e[o],r[o]),i},ye({},e)):e}function df(e){return{create:function(){return{get:function(r){return e[r]},set:function(r,i){e[r]=i}}}}}function Nv(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ds(function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((r=Intl.NumberFormat).bind.apply(r,vo([void 0],i,!1)))},{cache:df(e.number),strategy:gs.variadic}),getDateTimeFormat:Ds(function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((r=Intl.DateTimeFormat).bind.apply(r,vo([void 0],i,!1)))},{cache:df(e.dateTime),strategy:gs.variadic}),getPluralRules:Ds(function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((r=Intl.PluralRules).bind.apply(r,vo([void 0],i,!1)))},{cache:df(e.pluralRules),strategy:gs.variadic})}}var pg=function(){function e(r,i,o,a){var f=this;if(i===void 0&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var v=f.formatToParts(m);if(v.length===1)return v[0].value;var C=v.reduce(function(x,O){return!x.length||O.type!==gt.literal||typeof x[x.length-1]!="string"?x.push(O.value):x[x.length-1]+=O.value,x},[]);return C.length<=1?C[0]||"":C},this.formatToParts=function(m){return Du(f.ast,f.locales,f.formatters,f.formats,m,void 0,f.message)},this.resolvedOptions=function(){var m;return{locale:((m=f.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof r=="string"){if(this.message=r,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=a||{},d=c.formatters,h=op(c,["formatters"]);this.ast=e.__parse(r,ye(ye({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Tv(e.formats,o),this.formatters=a&&a.formatters||Nv(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},e.__parse=sg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var hf=pg;function dg(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,o)}return i}function hg(e){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?dg(Object(i),!0).forEach(function(o){Iv(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):dg(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function Iv(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function Av(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function mg(e,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _v(e,r,i){return r&&mg(e.prototype,r),i&&mg(e,i),e}function Lv(){return{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(r,i,o,a){return o},parseLngForICU:function(r){return r}}}var Dg=function(){function e(r){Av(this,e),this.type="i18nFormat",this.mem={},this.init(null,r)}return _v(e,[{key:"init",value:function(i,o){var a=this,f=i&&i.options&&i.options.i18nFormat||{};if(this.options=MD(f,o,this.options||{},Lv()),this.formats=this.options.formats,i){var c=this.options,d=c.bindI18n,h=c.bindI18nStore,m=c.memoize;i.IntlMessageFormat=hf,i.ICU=this,m&&(d&&i.on(d,function(){return a.clearCache()}),h&&i.store.on(h,function(){return a.clearCache()}))}}},{key:"addUserDefinedFormats",value:function(i){this.formats=this.formats?hg(hg({},this.formats),i):i}},{key:"parse",value:function(i,o,a,f,c,d){var h=d&&d.resolved&&d.resolved.res,m=this.options.memoize&&"".concat(a,".").concat(f,".").concat(c.replace(/\./g,"###")),v;this.options.memoize&&(v=UD(this.mem,m));try{if(!v){var C=this.options.parseLngForICU(a);v=new hf(i,C,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!d||h)&&kD(this.mem,m,v)}return v.format(o)}catch(x){return this.options.parseErrorHandler(x,c,i,o)}}},{key:"addLookupKeys",value:function(i,o,a,f,c){return i}},{key:"clearCache",value:function(){this.mem={}}}]),e}();Dg.type="i18nFormat";var gg=Dg;D();var wv={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,r){console&&console[e]&&console[e].apply(console,r)}},Df=class e{constructor(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(r,i)}init(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=r||wv,this.options=i,this.debug=i.debug}log(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.forward(i,"log","",!0)}warn(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.forward(i,"warn","",!0)}error(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.forward(i,"error","")}deprecate(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(r,i,o,a){return a&&!this.debug?null:(typeof r[0]=="string"&&(r[0]=`${o}${this.prefix} ${r[0]}`),this.logger[i](r))}create(r){return new e(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}},yr=new Df,ci=class{constructor(){this.observers={}}on(r,i){return r.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);let a=this.observers[o].get(i)||0;this.observers[o].set(i,a+1)}),this}off(r,i){if(this.observers[r]){if(!i){delete this.observers[r];return}this.observers[r].delete(i)}}emit(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];this.observers[r]&&Array.from(this.observers[r].entries()).forEach(c=>{let[d,h]=c;for(let m=0;m<h;m++)d(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(c=>{let[d,h]=c;for(let m=0;m<h;m++)d.apply(d,[r,...o])})}};function gu(){let e,r,i=new Promise((o,a)=>{e=o,r=a});return i.resolve=e,i.reject=r,i}function Eg(e){return e==null?"":""+e}function Ov(e,r,i){e.forEach(o=>{r[o]&&(i[o]=r[o])})}var Pv=/###/g;function Eu(e,r,i){function o(d){return d&&d.indexOf("###")>-1?d.replace(Pv,"."):d}function a(){return!e||typeof e=="string"}let f=typeof r!="string"?r:r.split("."),c=0;for(;c<f.length-1;){if(a())return{};let d=o(f[c]);!e[d]&&i&&(e[d]=new i),Object.prototype.hasOwnProperty.call(e,d)?e=e[d]:e={},++c}return a()?{}:{obj:e,k:o(f[c])}}function yg(e,r,i){let{obj:o,k:a}=Eu(e,r,Object);if(o!==void 0||r.length===1){o[a]=i;return}let f=r[r.length-1],c=r.slice(0,r.length-1),d=Eu(e,c,Object);for(;d.obj===void 0&&c.length;)f=`${c[c.length-1]}.${f}`,c=c.slice(0,c.length-1),d=Eu(e,c,Object),d&&d.obj&&typeof d.obj[`${d.k}.${f}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${f}`]=i}function Rv(e,r,i,o){let{obj:a,k:f}=Eu(e,r,Object);a[f]=a[f]||[],o&&(a[f]=a[f].concat(i)),o||a[f].push(i)}function ys(e,r){let{obj:i,k:o}=Eu(e,r);if(i)return i[o]}function Bv(e,r,i){let o=ys(e,i);return o!==void 0?o:ys(r,i)}function Tg(e,r,i){for(let o in r)o!=="__proto__"&&o!=="constructor"&&(o in e?typeof e[o]=="string"||e[o]instanceof String||typeof r[o]=="string"||r[o]instanceof String?i&&(e[o]=r[o]):Tg(e[o],r[o],i):e[o]=r[o]);return e}function li(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var bv={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function kv(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,r=>bv[r]):e}var gf=class{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){let i=this.regExpMap.get(r);if(i!==void 0)return i;let o=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,o),this.regExpQueue.push(r),o}},Uv=[" ",",","?","!",";"],Hv=new gf(20);function Mv(e,r,i){r=r||"",i=i||"";let o=Uv.filter(c=>r.indexOf(c)<0&&i.indexOf(c)<0);if(o.length===0)return!0;let a=Hv.getRegExp(`(${o.map(c=>c==="?"?"\\?":c).join("|")})`),f=!a.test(e);if(!f){let c=e.indexOf(i);c>0&&!a.test(e.substring(0,c))&&(f=!0)}return f}function Ef(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[r])return e[r];let o=r.split(i),a=e;for(let f=0;f<o.length;){if(!a||typeof a!="object")return;let c,d="";for(let h=f;h<o.length;++h)if(h!==f&&(d+=i),d+=o[h],c=a[d],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&h<o.length-1)continue;f+=h-f+1;break}a=c}return a}function vs(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}var xs=class extends ci{constructor(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=r||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){let i=this.options.ns.indexOf(r);i>-1&&this.options.ns.splice(i,1)}getResource(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,d;r.indexOf(".")>-1?d=r.split("."):(d=[r,i],o&&(Array.isArray(o)?d.push(...o):typeof o=="string"&&f?d.push(...o.split(f)):d.push(o)));let h=ys(this.data,d);return!h&&!i&&!o&&r.indexOf(".")>-1&&(r=d[0],i=d[1],o=d.slice(2).join(".")),h||!c||typeof o!="string"?h:Ef(this.data&&this.data[r]&&this.data[r][i],o,f)}addResource(r,i,o,a){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,d=[r,i];o&&(d=d.concat(c?o.split(c):o)),r.indexOf(".")>-1&&(d=r.split("."),a=i,i=d[1]),this.addNamespaces(i),yg(this.data,d,a),f.silent||this.emit("added",r,i,o,a)}addResources(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let f in o)(typeof o[f]=="string"||Array.isArray(o[f]))&&this.addResource(r,i,f,o[f],{silent:!0});a.silent||this.emit("added",r,i,o)}addResourceBundle(r,i,o,a,f){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},d=[r,i];r.indexOf(".")>-1&&(d=r.split("."),a=o,o=i,i=d[1]),this.addNamespaces(i);let h=ys(this.data,d)||{};c.skipCopy||(o=JSON.parse(JSON.stringify(o))),a?Tg(h,o,f):h={...h,...o},yg(this.data,d,h),c.silent||this.emit("added",r,i,o)}removeResourceBundle(r,i){this.hasResourceBundle(r,i)&&delete this.data[r][i],this.removeNamespaces(i),this.emit("removed",r,i)}hasResourceBundle(r,i){return this.getResource(r,i)!==void 0}getResourceBundle(r,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(r,i)}:this.getResource(r,i)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){let i=this.getDataByLanguage(r);return!!(i&&Object.keys(i)||[]).find(a=>i[a]&&Object.keys(i[a]).length>0)}toJSON(){return this.data}},Ng={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,r,i,o,a){return e.forEach(f=>{this.processors[f]&&(r=this.processors[f].process(r,i,o,a))}),r}},vg={},Cs=class e extends ci{constructor(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ov(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yr.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;let o=this.resolve(r,i);return o&&o.res!==void 0}extractFromKey(r,i){let o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");let a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,f=i.ns||this.options.defaultNS||[],c=o&&r.indexOf(o)>-1,d=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Mv(r,o,a);if(c&&!d){let h=r.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:r,namespaces:f};let m=r.split(o);(o!==a||o===a&&this.options.ns.indexOf(m[0])>-1)&&(f=m.shift()),r=m.join(a)}return typeof f=="string"&&(f=[f]),{key:r,namespaces:f}}translate(r,i,o){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);let a=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:d}=this.extractFromKey(r[r.length-1],i),h=d[d.length-1],m=i.lng||this.language,v=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(v){let z=i.nsSeparator||this.options.nsSeparator;return a?{res:`${h}${z}${c}`,usedKey:c,exactUsedKey:c,usedLng:m,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:`${h}${z}${c}`}return a?{res:c,usedKey:c,exactUsedKey:c,usedLng:m,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:c}let C=this.resolve(r,i),x=C&&C.res,O=C&&C.usedKey||c,R=C&&C.exactUsedKey||c,k=Object.prototype.toString.apply(x),P=["[object Number]","[object Function]","[object RegExp]"],B=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject;if(j&&x&&(typeof x!="string"&&typeof x!="boolean"&&typeof x!="number")&&P.indexOf(k)<0&&!(typeof B=="string"&&Array.isArray(x))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,x,{...i,ns:d}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(C.res=z,C.usedParams=this.getUsedParamsDetails(i),C):z}if(f){let z=Array.isArray(x),Y=z?[]:{},H=z?R:O;for(let ne in x)if(Object.prototype.hasOwnProperty.call(x,ne)){let Me=`${H}${f}${ne}`;Y[ne]=this.translate(Me,{...i,joinArrays:!1,ns:d}),Y[ne]===Me&&(Y[ne]=x[ne])}x=Y}}else if(j&&typeof B=="string"&&Array.isArray(x))x=x.join(B),x&&(x=this.extendTranslation(x,r,i,o));else{let z=!1,Y=!1,H=i.count!==void 0&&typeof i.count!="string",ne=e.hasDefaultValue(i),Me=H?this.pluralResolver.getSuffix(m,i.count,i):"",Le=i.ordinal&&H?this.pluralResolver.getSuffix(m,i.count,{ordinal:!1}):"",Ae=H&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),ze=Ae&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${Me}`]||i[`defaultValue${Le}`]||i.defaultValue;!this.isValidLookup(x)&&ne&&(z=!0,x=ze),this.isValidLookup(x)||(Y=!0,x=c);let ot=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:x,Et=ne&&ze!==x&&this.options.updateMissing;if(Y||z||Et){if(this.logger.log(Et?"updateKey":"missingKey",m,h,c,Et?ze:x),f){let $e=this.resolve(c,{...i,keySeparator:!1});$e&&$e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ne=[],Rt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Rt&&Rt[0])for(let $e=0;$e<Rt.length;$e++)Ne.push(Rt[$e]);else this.options.saveMissingTo==="all"?Ne=this.languageUtils.toResolveHierarchy(i.lng||this.language):Ne.push(i.lng||this.language);let Zr=($e,Ge,Xt)=>{let vr=ne&&Xt!==x?Xt:ot;this.options.missingKeyHandler?this.options.missingKeyHandler($e,h,Ge,vr,Et,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($e,h,Ge,vr,Et,i),this.emit("missingKey",$e,h,Ge,x)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?Ne.forEach($e=>{let Ge=this.pluralResolver.getSuffixes($e,i);Ae&&i[`defaultValue${this.options.pluralSeparator}zero`]&&Ge.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ge.push(`${this.options.pluralSeparator}zero`),Ge.forEach(Xt=>{Zr([$e],c+Xt,i[`defaultValue${Xt}`]||ze)})}):Zr(Ne,c,ze))}x=this.extendTranslation(x,r,i,C,o),Y&&x===c&&this.options.appendNamespaceToMissingKey&&(x=`${h}:${c}`),(Y||z)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?x=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}:${c}`:c,z?x:void 0):x=this.options.parseMissingKeyHandler(x))}return a?(C.res=x,C.usedParams=this.getUsedParamsDetails(i),C):x}extendTranslation(r,i,o,a,f){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});let m=typeof r=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),v;if(m){let x=r.match(this.interpolator.nestingRegexp);v=x&&x.length}let C=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),r=this.interpolator.interpolate(r,C,o.lng||this.language,o),m){let x=r.match(this.interpolator.nestingRegexp),O=x&&x.length;v<O&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(o.lng=a.usedLng),o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var x=arguments.length,O=new Array(x),R=0;R<x;R++)O[R]=arguments[R];return f&&f[0]===O[0]&&!o.context?(c.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${i[0]}`),null):c.translate(...O,i)},o)),o.interpolation&&this.interpolator.reset()}let d=o.postProcess||this.options.postProcess,h=typeof d=="string"?[d]:d;return r!=null&&h&&h.length&&o.applyPostProcessor!==!1&&(r=Ng.handle(h,r,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),r}resolve(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,a,f,c,d;return typeof r=="string"&&(r=[r]),r.forEach(h=>{if(this.isValidLookup(o))return;let m=this.extractFromKey(h,i),v=m.key;a=v;let C=m.namespaces;this.options.fallbackNS&&(C=C.concat(this.options.fallbackNS));let x=i.count!==void 0&&typeof i.count!="string",O=x&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),R=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",k=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);C.forEach(P=>{this.isValidLookup(o)||(d=P,!vg[`${k[0]}-${P}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(d)&&(vg[`${k[0]}-${P}`]=!0,this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),k.forEach(B=>{if(this.isValidLookup(o))return;c=B;let j=[v];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(j,v,B,P,i);else{let z;x&&(z=this.pluralResolver.getSuffix(B,i.count,i));let Y=`${this.options.pluralSeparator}zero`,H=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(j.push(v+z),i.ordinal&&z.indexOf(H)===0&&j.push(v+z.replace(H,this.options.pluralSeparator)),O&&j.push(v+Y)),R){let ne=`${v}${this.options.contextSeparator}${i.context}`;j.push(ne),x&&(j.push(ne+z),i.ordinal&&z.indexOf(H)===0&&j.push(ne+z.replace(H,this.options.pluralSeparator)),O&&j.push(ne+Y))}}let q;for(;q=j.pop();)this.isValidLookup(o)||(f=q,o=this.getResource(B,P,q,i))}))})}),{res:o,usedKey:a,exactUsedKey:f,usedLng:c,usedNS:d}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,i,o,a):this.resourceStore.getResource(r,i,o,a)}getUsedParamsDetails(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=r.replace&&typeof r.replace!="string",a=o?r.replace:r;if(o&&typeof r.count<"u"&&(a.count=r.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!o){a={...a};for(let f of i)delete a[f]}return a}static hasDefaultValue(r){let i="defaultValue";for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&i===o.substring(0,i.length)&&r[o]!==void 0)return!0;return!1}};function mf(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Fs=class{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yr.create("languageUtils")}getScriptPartFromCode(r){if(r=vs(r),!r||r.indexOf("-")<0)return null;let i=r.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(r){if(r=vs(r),!r||r.indexOf("-")<0)return r;let i=r.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(r){if(typeof r=="string"&&r.indexOf("-")>-1){let i=["hans","hant","latn","cyrl","cans","mong","arab"],o=r.split("-");return this.options.lowerCaseLng?o=o.map(a=>a.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=mf(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=mf(o[1].toLowerCase())),i.indexOf(o[2].toLowerCase())>-1&&(o[2]=mf(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let i;return r.forEach(o=>{if(i)return;let a=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(a))&&(i=a)}),!i&&this.options.supportedLngs&&r.forEach(o=>{if(i)return;let a=this.getLanguagePartFromCode(o);if(this.isSupportedCode(a))return i=a;i=this.options.supportedLngs.find(f=>{if(f===a)return f;if(!(f.indexOf("-")<0&&a.indexOf("-")<0)&&(f.indexOf("-")>0&&a.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===a||f.indexOf(a)===0&&a.length>1))return f})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(r,i){if(!r)return[];if(typeof r=="function"&&(r=r(i)),typeof r=="string"&&(r=[r]),Array.isArray(r))return r;if(!i)return r.default||[];let o=r[i];return o||(o=r[this.getScriptPartFromCode(i)]),o||(o=r[this.formatLanguageCode(i)]),o||(o=r[this.getLanguagePartFromCode(i)]),o||(o=r.default),o||[]}toResolveHierarchy(r,i){let o=this.getFallbackCodes(i||this.options.fallbackLng||[],r),a=[],f=c=>{c&&(this.isSupportedCode(c)?a.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return typeof r=="string"&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(r))):typeof r=="string"&&f(this.formatLanguageCode(r)),o.forEach(c=>{a.indexOf(c)<0&&f(this.formatLanguageCode(c))}),a}},Gv=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],jv={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},Wv=["v1","v2","v3"],zv=["v4"],xg={zero:0,one:1,two:2,few:3,many:4,other:5};function Vv(){let e={};return Gv.forEach(r=>{r.lngs.forEach(i=>{e[i]={numbers:r.nr,plurals:jv[r.fc]}})}),e}var yf=class{constructor(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=r,this.options=i,this.logger=yr.create("pluralResolver"),(!this.options.compatibilityJSON||zv.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Vv()}addRule(r,i){this.rules[r]=i}getRule(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(vs(r==="dev"?"en":r),{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}needsPlural(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(r,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,o).map(a=>`${i}${a}`)}getSuffixes(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((a,f)=>xg[a]-xg[f]).map(a=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a}`):o.numbers.map(a=>this.getSuffix(r,a,i)):[]}getSuffix(r,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(r,o);return a?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${a.select(i)}`:this.getSuffixRetroCompatible(a,i):(this.logger.warn(`no plural rule found for: ${r}`),"")}getSuffixRetroCompatible(r,i){let o=r.noAbs?r.plurals(i):r.plurals(Math.abs(i)),a=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));let f=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:f():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?f():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!Wv.includes(this.options.compatibilityJSON)}};function Cg(e,r,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=Bv(e,r,i);return!f&&a&&typeof i=="string"&&(f=Ef(e,i,o),f===void 0&&(f=Ef(r,i,o))),f}var vf=class{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yr.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||(i=>i),this.init(r)}init(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});let{escape:i,escapeValue:o,useRawValueToEscape:a,prefix:f,prefixEscaped:c,suffix:d,suffixEscaped:h,formatSeparator:m,unescapeSuffix:v,unescapePrefix:C,nestingPrefix:x,nestingPrefixEscaped:O,nestingSuffix:R,nestingSuffixEscaped:k,nestingOptionsSeparator:P,maxReplaces:B,alwaysFormat:j}=r.interpolation;this.escape=i!==void 0?i:kv,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=f?li(f):c||"{{",this.suffix=d?li(d):h||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":C||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=x?li(x):O||li("$t("),this.nestingSuffix=R?li(R):k||li(")"),this.nestingOptionsSeparator=P||",",this.maxReplaces=B||1e3,this.alwaysFormat=j!==void 0?j:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let r=(i,o)=>i&&i.source===o?(i.lastIndex=0,i):new RegExp(o,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(r,i,o,a){let f,c,d,h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(R){return R.replace(/\$/g,"$$$$")}let v=R=>{if(R.indexOf(this.formatSeparator)<0){let j=Cg(i,h,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,o,{...a,...i,interpolationkey:R}):j}let k=R.split(this.formatSeparator),P=k.shift().trim(),B=k.join(this.formatSeparator).trim();return this.format(Cg(i,h,P,this.options.keySeparator,this.options.ignoreJSONStructure),B,o,{...a,...i,interpolationkey:P})};this.resetRegExp();let C=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,x=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>m(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?m(this.escape(R)):m(R)}].forEach(R=>{for(d=0;f=R.regex.exec(r);){let k=f[1].trim();if(c=v(k),c===void 0)if(typeof C=="function"){let B=C(r,f,a);c=typeof B=="string"?B:""}else if(a&&Object.prototype.hasOwnProperty.call(a,k))c="";else if(x){c=f[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${r}`),c="";else typeof c!="string"&&!this.useRawValueToEscape&&(c=Eg(c));let P=R.safeValue(c);if(r=r.replace(f[0],P),x?(R.regex.lastIndex+=c.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),r}nest(r,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,f,c;function d(h,m){let v=this.nestingOptionsSeparator;if(h.indexOf(v)<0)return h;let C=h.split(new RegExp(`${v}[ ]*{`)),x=`{${C[1]}`;h=C[0],x=this.interpolate(x,c);let O=x.match(/'/g),R=x.match(/"/g);(O&&O.length%2===0&&!R||R.length%2!==0)&&(x=x.replace(/'/g,'"'));try{c=JSON.parse(x),m&&(c={...m,...c})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,k),`${h}${v}${x}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,h}for(;a=this.nestingRegexp.exec(r);){let h=[];c={...o},c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let m=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){let v=a[1].split(this.formatSeparator).map(C=>C.trim());a[1]=v.shift(),h=v,m=!0}if(f=i(d.call(this,a[1].trim(),c),c),f&&a[0]===r&&typeof f!="string")return f;typeof f!="string"&&(f=Eg(f)),f||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${r}`),f=""),m&&(f=h.reduce((v,C)=>this.format(v,C,o.lng,{...o,interpolationkey:a[1].trim()}),f.trim())),r=r.replace(a[0],f),this.regexp.lastIndex=0}return r}};function Xv(e){let r=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let o=e.split("(");r=o[0].toLowerCase().trim();let a=o[1].substring(0,o[1].length-1);r==="currency"&&a.indexOf(":")<0?i.currency||(i.currency=a.trim()):r==="relativetime"&&a.indexOf(":")<0?i.range||(i.range=a.trim()):a.split(";").forEach(c=>{if(c){let[d,...h]=c.split(":"),m=h.join(":").trim().replace(/^'+|'+$/g,""),v=d.trim();i[v]||(i[v]=m),m==="false"&&(i[v]=!1),m==="true"&&(i[v]=!0),isNaN(m)||(i[v]=parseInt(m,10))}})}return{formatName:r,formatOptions:i}}function fi(e){let r={};return function(o,a,f){let c=a+JSON.stringify(f),d=r[c];return d||(d=e(vs(a),f),r[c]=d),d(o)}}var xf=class{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yr.create("formatter"),this.options=r,this.formats={number:fi((i,o)=>{let a=new Intl.NumberFormat(i,{...o});return f=>a.format(f)}),currency:fi((i,o)=>{let a=new Intl.NumberFormat(i,{...o,style:"currency"});return f=>a.format(f)}),datetime:fi((i,o)=>{let a=new Intl.DateTimeFormat(i,{...o});return f=>a.format(f)}),relativetime:fi((i,o)=>{let a=new Intl.RelativeTimeFormat(i,{...o});return f=>a.format(f,o.range||"day")}),list:fi((i,o)=>{let a=new Intl.ListFormat(i,{...o});return f=>a.format(f)})},this.init(r)}init(r){let o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}add(r,i){this.formats[r.toLowerCase().trim()]=i}addCached(r,i){this.formats[r.toLowerCase().trim()]=fi(i)}format(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return i.split(this.formatSeparator).reduce((d,h)=>{let{formatName:m,formatOptions:v}=Xv(h);if(this.formats[m]){let C=d;try{let x=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},O=x.locale||x.lng||a.locale||a.lng||o;C=this.formats[m](d,O,{...v,...a,...x})}catch(x){this.logger.warn(x)}return C}else this.logger.warn(`there was no format function for ${m}`);return d},r)}};function Yv(e,r){e.pending[r]!==void 0&&(delete e.pending[r],e.pendingCount--)}var Cf=class extends ci{constructor(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=r,this.store=i,this.services=o,this.languageUtils=o.languageUtils,this.options=a,this.logger=yr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,a.backend,a)}queueLoad(r,i,o,a){let f={},c={},d={},h={};return r.forEach(m=>{let v=!0;i.forEach(C=>{let x=`${m}|${C}`;!o.reload&&this.store.hasResourceBundle(m,C)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?c[x]===void 0&&(c[x]=!0):(this.state[x]=1,v=!1,c[x]===void 0&&(c[x]=!0),f[x]===void 0&&(f[x]=!0),h[C]===void 0&&(h[C]=!0)))}),v||(d[m]=!0)}),(Object.keys(f).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(f),pending:Object.keys(c),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(h)}}loaded(r,i,o){let a=r.split("|"),f=a[0],c=a[1];i&&this.emit("failedLoading",f,c,i),o&&this.store.addResourceBundle(f,c,o,void 0,void 0,{skipCopy:!0}),this.state[r]=i?-1:2;let d={};this.queue.forEach(h=>{Rv(h.loaded,[f],c),Yv(h,r),i&&h.errors.push(i),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(m=>{d[m]||(d[m]={});let v=h.loaded[m];v.length&&v.forEach(C=>{d[m][C]===void 0&&(d[m][C]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(h=>!h.done)}read(r,i,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!r.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:i,fcName:o,tried:a,wait:f,callback:c});return}this.readingCalls++;let d=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){let C=this.waitingReads.shift();this.read(C.lng,C.ns,C.fcName,C.tried,C.wait,C.callback)}if(m&&v&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,r,i,o,a+1,f*2,c)},f);return}c(m,v)},h=this.backend[o].bind(this.backend);if(h.length===2){try{let m=h(r,i);m&&typeof m.then=="function"?m.then(v=>d(null,v)).catch(d):d(null,m)}catch(m){d(m)}return}return h(r,i,d)}prepareLoading(r,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof i=="string"&&(i=[i]);let f=this.queueLoad(r,i,o,a);if(!f.toLoad.length)return f.pending.length||a(),null;f.toLoad.forEach(c=>{this.loadOne(c)})}load(r,i,o){this.prepareLoading(r,i,{},o)}reload(r,i,o){this.prepareLoading(r,i,{reload:!0},o)}loadOne(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=r.split("|"),a=o[0],f=o[1];this.read(a,f,"read",void 0,void 0,(c,d)=>{c&&this.logger.warn(`${i}loading namespace ${f} for language ${a} failed`,c),!c&&d&&this.logger.log(`${i}loaded namespace ${f} for language ${a}`,d),this.loaded(r,c,d)})}saveMissing(r,i,o,a,f){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${o}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){let h={...c,isUpdate:f},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(r,i,o,a,h):v=m(r,i,o,a),v&&typeof v.then=="function"?v.then(C=>d(null,C)).catch(d):d(null,v)}catch(v){d(v)}else m(r,i,o,a,d,h)}!r||!r[0]||this.store.addResource(r[0],i,o,a)}}};function Fg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){let i={};if(typeof r[1]=="object"&&(i=r[1]),typeof r[1]=="string"&&(i.defaultValue=r[1]),typeof r[2]=="string"&&(i.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){let o=r[3]||r[2];Object.keys(o).forEach(a=>{i[a]=o[a]})}return i},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Sg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Es(){}function $v(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})}var Ss=class e extends ci{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Sg(r),this.services={},this.logger=yr,this.modules={external:[]},$v(this),i&&!this.isInitialized&&!r.isClone){if(!this.options.initImmediate)return this.init(r,i),this;setTimeout(()=>{this.init(r,i)},0)}}init(){var r=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));let a=Fg();this.options={...a,...this.options,...Sg(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function f(v){return v?typeof v=="function"?new v:v:null}if(!this.options.isClone){this.modules.logger?yr.init(f(this.modules.logger),this.options):yr.init(null,this.options);let v;this.modules.formatter?v=this.modules.formatter:typeof Intl<"u"&&(v=xf);let C=new Fs(this.options);this.store=new xs(this.options.resources,this.options);let x=this.services;x.logger=yr,x.resourceStore=this.store,x.languageUtils=C,x.pluralResolver=new yf(C,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),v&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(x.formatter=f(v),x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new vf(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new Cf(f(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",function(O){for(var R=arguments.length,k=new Array(R>1?R-1:0),P=1;P<R;P++)k[P-1]=arguments[P];r.emit(O,...k)}),this.modules.languageDetector&&(x.languageDetector=f(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=f(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Cs(this.services,this.options),this.translator.on("*",function(O){for(var R=arguments.length,k=new Array(R>1?R-1:0),P=1;P<R;P++)k[P-1]=arguments[P];r.emit(O,...k)}),this.modules.external.forEach(O=>{O.init&&O.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Es),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>0&&v[0]!=="dev"&&(this.options.lng=v[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(v=>{this[v]=function(){return r.store[v](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(v=>{this[v]=function(){return r.store[v](...arguments),r}});let h=gu(),m=()=>{let v=(C,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(x),o(C,x)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return v(null,this.t.bind(this));this.changeLanguage(this.options.lng,v)};return this.options.resources||!this.options.initImmediate?m():setTimeout(m,0),h}loadResources(r){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Es,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(o=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();let f=[],c=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(m=>{m!=="cimode"&&f.indexOf(m)<0&&f.push(m)})};a?c(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>c(h)),this.options.preload&&this.options.preload.forEach(d=>c(d)),this.services.backendConnector.load(f,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(d)})}else o(null)}reloadResources(r,i,o){let a=gu();return r||(r=this.languages),i||(i=this.options.ns),o||(o=Es),this.services.backendConnector.reload(r,i,f=>{a.resolve(),o(f)}),a}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Ng.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(let i=0;i<this.languages.length;i++){let o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(r,i){var o=this;this.isLanguageChangingTo=r;let a=gu();this.emit("languageChanging",r);let f=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},c=(h,m)=>{m?(f(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,a.resolve(function(){return o.t(...arguments)}),i&&i(h,function(){return o.t(...arguments)})},d=h=>{!r&&!h&&this.services.languageDetector&&(h=[]);let m=typeof h=="string"?h:this.services.languageUtils.getBestMatchFromCodes(h);m&&(this.language||f(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(m)),this.loadResources(m,v=>{c(v,m)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(r),a}getFixedT(r,i,o){var a=this;let f=function(c,d){let h;if(typeof d!="object"){for(var m=arguments.length,v=new Array(m>2?m-2:0),C=2;C<m;C++)v[C-2]=arguments[C];h=a.options.overloadTranslationOptionHandler([c,d].concat(v))}else h={...d};h.lng=h.lng||f.lng,h.lngs=h.lngs||f.lngs,h.ns=h.ns||f.ns,h.keyPrefix=h.keyPrefix||o||f.keyPrefix;let x=a.options.keySeparator||".",O;return h.keyPrefix&&Array.isArray(c)?O=c.map(R=>`${h.keyPrefix}${x}${R}`):O=h.keyPrefix?`${h.keyPrefix}${x}${c}`:c,a.t(O,h)};return typeof r=="string"?f.lng=r:f.lngs=r,f.ns=i,f.keyPrefix=o,f}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let o=i.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;let c=(d,h)=>{let m=this.services.backendConnector.state[`${d}|${h}`];return m===-1||m===2};if(i.precheck){let d=i.precheck(this,c);if(d!==void 0)return d}return!!(this.hasResourceBundle(o,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(o,r)&&(!a||c(f,r)))}loadNamespaces(r,i){let o=gu();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{o.resolve(),i&&i(a)}),o):(i&&i(),Promise.resolve())}loadLanguages(r,i){let o=gu();typeof r=="string"&&(r=[r]);let a=this.options.preload||[],f=r.filter(c=>a.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return f.length?(this.options.preload=a.concat(f),this.loadResources(c=>{o.resolve(),i&&i(c)}),o):(i&&i(),Promise.resolve())}dir(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";let i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new Fs(Fg());return i.indexOf(o.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new e(r,i)}cloneInstance(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Es,o=r.forkResourceStore;o&&delete r.forkResourceStore;let a={...this.options,...r,isClone:!0},f=new e(a);return(r.debug!==void 0||r.prefix!==void 0)&&(f.logger=f.logger.clone(r)),["store","services","language"].forEach(d=>{f[d]=this[d]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},o&&(f.store=new xs(this.store.data,a),f.services.resourceStore=f.store),f.translator=new Cs(f.services,a),f.translator.on("*",function(d){for(var h=arguments.length,m=new Array(h>1?h-1:0),v=1;v<h;v++)m[v-1]=arguments[v];f.emit(d,...m)}),f.init(a,i),f.translator.options=a,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},ft=Ss.createInstance();ft.createInstance=Ss.createInstance;var d_=ft.createInstance,h_=ft.dir,m_=ft.init,D_=ft.loadResources,g_=ft.reloadResources,E_=ft.use,y_=ft.changeLanguage,v_=ft.getFixedT,x_=ft.t,C_=ft.exists,F_=ft.setDefaultNamespace,S_=ft.hasLoadedNamespace,T_=ft.loadNamespaces,N_=ft.loadLanguages;function Ff(e){let r={lng:"en",resources:{en:{translation:e}},keySeparator:!1,react:{defaultTransParent:se}},i=new gg,o=ft.createInstance(r);return o.use(i),o.use(us),o.init(),o}var Qv=({children:e,messages:r,i18n:i})=>{let[o]=(0,Ts.useState)(()=>i??Ff(r));return Ts.default.createElement(Zl,{i18n:o},e)};D();export{ie as a,ut as b,Pl as c,$o as d,se as e,jl as f,cy as g,py as h,kN as i,GN as j,gn as k,e3 as l,l3 as m,Zn as n,Ny as o,Iy as p,sy as q,ay as r,ly as s,PD as t,ss as u,Ff as v,Qv as w};
|
|
47
|
-
/*! Bundled license information:
|
|
48
|
-
|
|
49
|
-
react/cjs/react.production.min.js:
|
|
50
|
-
(**
|
|
51
|
-
* @license React
|
|
52
|
-
* react.production.min.js
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*)
|
|
59
|
-
|
|
60
|
-
scheduler/cjs/scheduler.production.min.js:
|
|
61
|
-
(**
|
|
62
|
-
* @license React
|
|
63
|
-
* scheduler.production.min.js
|
|
64
|
-
*
|
|
65
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the MIT license found in the
|
|
68
|
-
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*)
|
|
70
|
-
|
|
71
|
-
react-reconciler/cjs/react-reconciler.production.min.js:
|
|
72
|
-
(**
|
|
73
|
-
* @license React
|
|
74
|
-
* react-reconciler.production.min.js
|
|
75
|
-
*
|
|
76
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the MIT license found in the
|
|
79
|
-
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*)
|
|
81
|
-
|
|
82
|
-
react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
83
|
-
(**
|
|
84
|
-
* @license React
|
|
85
|
-
* react-reconciler-constants.production.min.js
|
|
86
|
-
*
|
|
87
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the MIT license found in the
|
|
90
|
-
* LICENSE file in the root directory of this source tree.
|
|
91
|
-
*)
|
|
92
|
-
*/
|
|
93
|
-
//# sourceMappingURL=chunk-OQEXAUDS.js.map
|