amotify 0.2.40 → 0.2.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.
@@ -1,4 +1,4 @@
1
- var cV=Object.create;var Pg=Object.defineProperty;var dV=Object.getOwnPropertyDescriptor;var fV=Object.getOwnPropertyNames;var pV=Object.getPrototypeOf,hV=Object.prototype.hasOwnProperty;var mV=(a,r)=>()=>(a&&(r=a(a=0)),r);var Ke=(a,r)=>()=>(r||a((r={exports:{}}).exports,r),r.exports),ad=(a,r)=>{for(var o in r)Pg(a,o,{get:r[o],enumerable:!0})},Ig=(a,r,o,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of fV(r))!hV.call(a,s)&&s!==o&&Pg(a,s,{get:()=>r[s],enumerable:!(l=dV(r,s))||l.enumerable});return a},lo=(a,r,o)=>(Ig(a,r,"default"),o&&Ig(o,r,"default")),Z=(a,r,o)=>(o=a!=null?cV(pV(a)):{},Ig(r||!a||!a.__esModule?Pg(o,"default",{value:a,enumerable:!0}):o,a)),vV=a=>Ig(Pg({},"__esModule",{value:!0}),a);var or=(a,r,o)=>new Promise((l,s)=>{var d=p=>{try{h(o.next(p))}catch(v){s(v)}},u=p=>{try{h(o.throw(p))}catch(v){s(v)}},h=p=>p.done?l(p.value):Promise.resolve(p.value).then(d,u);h((o=o.apply(a,r)).next())});var Q4=Ke((Sa,Mg)=>{"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a="18.3.1",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),T=Symbol.iterator,L="@@iterator";function A(k){if(k===null||typeof k!="object")return null;var W=T&&k[T]||k[L];return typeof W=="function"?W:null}var $={current:null},F={transition:null},j={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},K={},M=null;function oe(k){M=k}K.setExtraStackFrame=function(k){M=k},K.getCurrentStack=null,K.getStackAddendum=function(){var k="";M&&(k+=M);var W=K.getCurrentStack;return W&&(k+=W()||""),k};var ke=!1,J=!1,pe=!1,he=!1,ce=!1,P={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:F,ReactCurrentOwner:U};P.ReactDebugCurrentFrame=K,P.ReactCurrentActQueue=j;function ee(k){{for(var W=arguments.length,_e=new Array(W>1?W-1:0),Ee=1;Ee<W;Ee++)_e[Ee-1]=arguments[Ee];z("warn",k,_e)}}function me(k){{for(var W=arguments.length,_e=new Array(W>1?W-1:0),Ee=1;Ee<W;Ee++)_e[Ee-1]=arguments[Ee];z("error",k,_e)}}function z(k,W,_e){{var Ee=P.ReactDebugCurrentFrame,et=Ee.getStackAddendum();et!==""&&(W+="%s",_e=_e.concat([et]));var Ht=_e.map(function(Tt){return String(Tt)});Ht.unshift("Warning: "+W),Function.prototype.apply.call(console[k],console,Ht)}}var ne={};function ve(k,W){{var _e=k.constructor,Ee=_e&&(_e.displayName||_e.name)||"ReactClass",et=Ee+"."+W;if(ne[et])return;me("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",W,Ee),ne[et]=!0}}var be={isMounted:function(k){return!1},enqueueForceUpdate:function(k,W,_e){ve(k,"forceUpdate")},enqueueReplaceState:function(k,W,_e,Ee){ve(k,"replaceState")},enqueueSetState:function(k,W,_e,Ee){ve(k,"setState")}},de=Object.assign,Re={};Object.freeze(Re);function Pe(k,W,_e){this.props=k,this.context=W,this.refs=Re,this.updater=_e||be}Pe.prototype.isReactComponent={},Pe.prototype.setState=function(k,W){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,W,"setState")},Pe.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};{var Oe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},rt=function(k,W){Object.defineProperty(Pe.prototype,k,{get:function(){ee("%s(...) is deprecated in plain JavaScript React classes. %s",W[0],W[1])}})};for(var ze in Oe)Oe.hasOwnProperty(ze)&&rt(ze,Oe[ze])}function pt(){}pt.prototype=Pe.prototype;function Kt(k,W,_e){this.props=k,this.context=W,this.refs=Re,this.updater=_e||be}var Et=Kt.prototype=new pt;Et.constructor=Kt,de(Et,Pe.prototype),Et.isPureReactComponent=!0;function bt(){var k={current:null};return Object.seal(k),k}var It=Array.isArray;function nt(k){return It(k)}function Le(k){{var W=typeof Symbol=="function"&&Symbol.toStringTag,_e=W&&k[Symbol.toStringTag]||k.constructor.name||"Object";return _e}}function wt(k){try{return zt(k),!1}catch(W){return!0}}function zt(k){return""+k}function Yt(k){if(wt(k))return me("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Le(k)),zt(k)}function $t(k,W,_e){var Ee=k.displayName;if(Ee)return Ee;var et=W.displayName||W.name||"";return et!==""?_e+"("+et+")":_e}function oa(k){return k.displayName||"Context"}function sa(k){if(k==null)return null;if(typeof k.tag=="number"&&me("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case l:return"Fragment";case o:return"Portal";case d:return"Profiler";case s:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case h:var W=k;return oa(W)+".Consumer";case u:var _e=k;return oa(_e._context)+".Provider";case p:return $t(k,k.render,"ForwardRef");case b:var Ee=k.displayName||null;return Ee!==null?Ee:sa(k.type)||"Memo";case C:{var et=k,Ht=et._payload,Tt=et._init;try{return sa(Tt(Ht))}catch(ra){return null}}}return null}var xa=Object.prototype.hasOwnProperty,_r={key:!0,ref:!0,__self:!0,__source:!0},rr,lr,Na;Na={};function Oa(k){if(xa.call(k,"ref")){var W=Object.getOwnPropertyDescriptor(k,"ref").get;if(W&&W.isReactWarning)return!1}return k.ref!==void 0}function Ia(k){if(xa.call(k,"key")){var W=Object.getOwnPropertyDescriptor(k,"key").get;if(W&&W.isReactWarning)return!1}return k.key!==void 0}function mr(k,W){var _e=function(){rr||(rr=!0,me("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};_e.isReactWarning=!0,Object.defineProperty(k,"key",{get:_e,configurable:!0})}function da(k,W){var _e=function(){lr||(lr=!0,me("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};_e.isReactWarning=!0,Object.defineProperty(k,"ref",{get:_e,configurable:!0})}function Ra(k){if(typeof k.ref=="string"&&U.current&&k.__self&&U.current.stateNode!==k.__self){var W=sa(U.current.type);Na[W]||(me('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W,k.ref),Na[W]=!0)}}var Pa=function(k,W,_e,Ee,et,Ht,Tt){var ra={$$typeof:r,type:k,key:W,ref:_e,props:Tt,_owner:Ht};return ra._store={},Object.defineProperty(ra._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ra,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(ra,"_source",{configurable:!1,enumerable:!1,writable:!1,value:et}),Object.freeze&&(Object.freeze(ra.props),Object.freeze(ra)),ra};function br(k,W,_e){var Ee,et={},Ht=null,Tt=null,ra=null,Ta=null;if(W!=null){Oa(W)&&(Tt=W.ref,Ra(W)),Ia(W)&&(Yt(W.key),Ht=""+W.key),ra=W.__self===void 0?null:W.__self,Ta=W.__source===void 0?null:W.__source;for(Ee in W)xa.call(W,Ee)&&!_r.hasOwnProperty(Ee)&&(et[Ee]=W[Ee])}var Wa=arguments.length-2;if(Wa===1)et.children=_e;else if(Wa>1){for(var cr=Array(Wa),dr=0;dr<Wa;dr++)cr[dr]=arguments[dr+2];Object.freeze&&Object.freeze(cr),et.children=cr}if(k&&k.defaultProps){var vr=k.defaultProps;for(Ee in vr)et[Ee]===void 0&&(et[Ee]=vr[Ee])}if(Ht||Tt){var Er=typeof k=="function"?k.displayName||k.name||"Unknown":k;Ht&&mr(et,Er),Tt&&da(et,Er)}return Pa(k,Ht,Tt,ra,Ta,U.current,et)}function He(k,W){var _e=Pa(k.type,W,k.ref,k._self,k._source,k._owner,k.props);return _e}function ct(k,W,_e){if(k==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var Ee,et=de({},k.props),Ht=k.key,Tt=k.ref,ra=k._self,Ta=k._source,Wa=k._owner;if(W!=null){Oa(W)&&(Tt=W.ref,Wa=U.current),Ia(W)&&(Yt(W.key),Ht=""+W.key);var cr;k.type&&k.type.defaultProps&&(cr=k.type.defaultProps);for(Ee in W)xa.call(W,Ee)&&!_r.hasOwnProperty(Ee)&&(W[Ee]===void 0&&cr!==void 0?et[Ee]=cr[Ee]:et[Ee]=W[Ee])}var dr=arguments.length-2;if(dr===1)et.children=_e;else if(dr>1){for(var vr=Array(dr),Er=0;Er<dr;Er++)vr[Er]=arguments[Er+2];et.children=vr}return Pa(k.type,Ht,Tt,ra,Ta,Wa,et)}function yt(k){return typeof k=="object"&&k!==null&&k.$$typeof===r}var Xt=".",Gt=":";function Ea(k){var W=/[=:]/g,_e={"=":"=0",":":"=2"},Ee=k.replace(W,function(et){return _e[et]});return"$"+Ee}var ga=!1,Ka=/\/+/g;function I(k){return k.replace(Ka,"$&/")}function te(k,W){return typeof k=="object"&&k!==null&&k.key!=null?(Yt(k.key),Ea(""+k.key)):W.toString(36)}function B(k,W,_e,Ee,et){var Ht=typeof k;(Ht==="undefined"||Ht==="boolean")&&(k=null);var Tt=!1;if(k===null)Tt=!0;else switch(Ht){case"string":case"number":Tt=!0;break;case"object":switch(k.$$typeof){case r:case o:Tt=!0}}if(Tt){var ra=k,Ta=et(ra),Wa=Ee===""?Xt+te(ra,0):Ee;if(nt(Ta)){var cr="";Wa!=null&&(cr=I(Wa)+"/"),B(Ta,W,cr,"",function(hp){return hp})}else Ta!=null&&(yt(Ta)&&(Ta.key&&(!ra||ra.key!==Ta.key)&&Yt(Ta.key),Ta=He(Ta,_e+(Ta.key&&(!ra||ra.key!==Ta.key)?I(""+Ta.key)+"/":"")+Wa)),W.push(Ta));return 1}var dr,vr,Er=0,en=Ee===""?Xt:Ee+Gt;if(nt(k))for(var Id=0;Id<k.length;Id++)dr=k[Id],vr=en+te(dr,Id),Er+=B(dr,W,_e,vr,et);else{var tn=A(k);if(typeof tn=="function"){var Pd=k;tn===Pd.entries&&(ga||ee("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ga=!0);for(var Im=tn.call(Pd),pp,X_=0;!(pp=Im.next()).done;)dr=pp.value,vr=en+te(dr,X_++),Er+=B(dr,W,_e,vr,et)}else if(Ht==="object"){var zs=String(k);throw new Error("Objects are not valid as a React child (found: "+(zs==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":zs)+"). If you meant to render a collection of children, use an array instead.")}}return Er}function V(k,W,_e){if(k==null)return k;var Ee=[],et=0;return B(k,Ee,"","",function(Ht){return W.call(_e,Ht,et++)}),Ee}function q(k){var W=0;return V(k,function(){W++}),W}function fe(k,W,_e){V(k,function(){W.apply(this,arguments)},_e)}function ie(k){return V(k,function(W){return W})||[]}function Ie(k){if(!yt(k))throw new Error("React.Children.only expected to receive a single React element child.");return k}function Me(k){var W={$$typeof:h,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};W.Provider={$$typeof:u,_context:W};var _e=!1,Ee=!1,et=!1;{var Ht={$$typeof:h,_context:W};Object.defineProperties(Ht,{Provider:{get:function(){return Ee||(Ee=!0,me("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),W.Provider},set:function(Tt){W.Provider=Tt}},_currentValue:{get:function(){return W._currentValue},set:function(Tt){W._currentValue=Tt}},_currentValue2:{get:function(){return W._currentValue2},set:function(Tt){W._currentValue2=Tt}},_threadCount:{get:function(){return W._threadCount},set:function(Tt){W._threadCount=Tt}},Consumer:{get:function(){return _e||(_e=!0,me("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),W.Consumer}},displayName:{get:function(){return W.displayName},set:function(Tt){et||(ee("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Tt),et=!0)}}}),W.Consumer=Ht}return W._currentRenderer=null,W._currentRenderer2=null,W}var Fe=-1,Ge=0,Be=1,tt=2;function H(k){if(k._status===Fe){var W=k._result,_e=W();if(_e.then(function(Ht){if(k._status===Ge||k._status===Fe){var Tt=k;Tt._status=Be,Tt._result=Ht}},function(Ht){if(k._status===Ge||k._status===Fe){var Tt=k;Tt._status=tt,Tt._result=Ht}}),k._status===Fe){var Ee=k;Ee._status=Ge,Ee._result=_e}}if(k._status===Be){var et=k._result;return et===void 0&&me(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var cV=Object.create;var Pg=Object.defineProperty;var dV=Object.getOwnPropertyDescriptor;var fV=Object.getOwnPropertyNames;var pV=Object.getPrototypeOf,hV=Object.prototype.hasOwnProperty;var mV=(a,r)=>()=>(a&&(r=a(a=0)),r);var Ke=(a,r)=>()=>(r||a((r={exports:{}}).exports,r),r.exports),ad=(a,r)=>{for(var o in r)Pg(a,o,{get:r[o],enumerable:!0})},Ig=(a,r,o,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of fV(r))!hV.call(a,s)&&s!==o&&Pg(a,s,{get:()=>r[s],enumerable:!(l=dV(r,s))||l.enumerable});return a},lo=(a,r,o)=>(Ig(a,r,"default"),o&&Ig(o,r,"default")),Z=(a,r,o)=>(o=a!=null?cV(pV(a)):{},Ig(r||!a||!a.__esModule?Pg(o,"default",{value:a,enumerable:!0}):o,a)),vV=a=>Ig(Pg({},"__esModule",{value:!0}),a);var or=(a,r,o)=>new Promise((l,s)=>{var d=p=>{try{h(o.next(p))}catch(v){s(v)}},u=p=>{try{h(o.throw(p))}catch(v){s(v)}},h=p=>p.done?l(p.value):Promise.resolve(p.value).then(d,u);h((o=o.apply(a,r)).next())});var QT=Ke((Sa,Mg)=>{"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a="18.3.1",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),T=Symbol.iterator,L="@@iterator";function A(k){if(k===null||typeof k!="object")return null;var W=T&&k[T]||k[L];return typeof W=="function"?W:null}var $={current:null},F={transition:null},j={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},K={},M=null;function oe(k){M=k}K.setExtraStackFrame=function(k){M=k},K.getCurrentStack=null,K.getStackAddendum=function(){var k="";M&&(k+=M);var W=K.getCurrentStack;return W&&(k+=W()||""),k};var ke=!1,J=!1,pe=!1,he=!1,ce=!1,P={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:F,ReactCurrentOwner:U};P.ReactDebugCurrentFrame=K,P.ReactCurrentActQueue=j;function ee(k){{for(var W=arguments.length,_e=new Array(W>1?W-1:0),Ee=1;Ee<W;Ee++)_e[Ee-1]=arguments[Ee];z("warn",k,_e)}}function me(k){{for(var W=arguments.length,_e=new Array(W>1?W-1:0),Ee=1;Ee<W;Ee++)_e[Ee-1]=arguments[Ee];z("error",k,_e)}}function z(k,W,_e){{var Ee=P.ReactDebugCurrentFrame,et=Ee.getStackAddendum();et!==""&&(W+="%s",_e=_e.concat([et]));var Ht=_e.map(function(Tt){return String(Tt)});Ht.unshift("Warning: "+W),Function.prototype.apply.call(console[k],console,Ht)}}var ne={};function ve(k,W){{var _e=k.constructor,Ee=_e&&(_e.displayName||_e.name)||"ReactClass",et=Ee+"."+W;if(ne[et])return;me("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",W,Ee),ne[et]=!0}}var be={isMounted:function(k){return!1},enqueueForceUpdate:function(k,W,_e){ve(k,"forceUpdate")},enqueueReplaceState:function(k,W,_e,Ee){ve(k,"replaceState")},enqueueSetState:function(k,W,_e,Ee){ve(k,"setState")}},de=Object.assign,Re={};Object.freeze(Re);function Pe(k,W,_e){this.props=k,this.context=W,this.refs=Re,this.updater=_e||be}Pe.prototype.isReactComponent={},Pe.prototype.setState=function(k,W){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,W,"setState")},Pe.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};{var Oe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},rt=function(k,W){Object.defineProperty(Pe.prototype,k,{get:function(){ee("%s(...) is deprecated in plain JavaScript React classes. %s",W[0],W[1])}})};for(var ze in Oe)Oe.hasOwnProperty(ze)&&rt(ze,Oe[ze])}function pt(){}pt.prototype=Pe.prototype;function Kt(k,W,_e){this.props=k,this.context=W,this.refs=Re,this.updater=_e||be}var Et=Kt.prototype=new pt;Et.constructor=Kt,de(Et,Pe.prototype),Et.isPureReactComponent=!0;function bt(){var k={current:null};return Object.seal(k),k}var It=Array.isArray;function nt(k){return It(k)}function Le(k){{var W=typeof Symbol=="function"&&Symbol.toStringTag,_e=W&&k[Symbol.toStringTag]||k.constructor.name||"Object";return _e}}function wt(k){try{return zt(k),!1}catch(W){return!0}}function zt(k){return""+k}function Yt(k){if(wt(k))return me("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Le(k)),zt(k)}function $t(k,W,_e){var Ee=k.displayName;if(Ee)return Ee;var et=W.displayName||W.name||"";return et!==""?_e+"("+et+")":_e}function oa(k){return k.displayName||"Context"}function sa(k){if(k==null)return null;if(typeof k.tag=="number"&&me("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case l:return"Fragment";case o:return"Portal";case d:return"Profiler";case s:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case h:var W=k;return oa(W)+".Consumer";case u:var _e=k;return oa(_e._context)+".Provider";case p:return $t(k,k.render,"ForwardRef");case b:var Ee=k.displayName||null;return Ee!==null?Ee:sa(k.type)||"Memo";case C:{var et=k,Ht=et._payload,Tt=et._init;try{return sa(Tt(Ht))}catch(ra){return null}}}return null}var xa=Object.prototype.hasOwnProperty,_r={key:!0,ref:!0,__self:!0,__source:!0},rr,lr,Na;Na={};function Oa(k){if(xa.call(k,"ref")){var W=Object.getOwnPropertyDescriptor(k,"ref").get;if(W&&W.isReactWarning)return!1}return k.ref!==void 0}function Ia(k){if(xa.call(k,"key")){var W=Object.getOwnPropertyDescriptor(k,"key").get;if(W&&W.isReactWarning)return!1}return k.key!==void 0}function mr(k,W){var _e=function(){rr||(rr=!0,me("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};_e.isReactWarning=!0,Object.defineProperty(k,"key",{get:_e,configurable:!0})}function da(k,W){var _e=function(){lr||(lr=!0,me("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};_e.isReactWarning=!0,Object.defineProperty(k,"ref",{get:_e,configurable:!0})}function Ra(k){if(typeof k.ref=="string"&&U.current&&k.__self&&U.current.stateNode!==k.__self){var W=sa(U.current.type);Na[W]||(me('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W,k.ref),Na[W]=!0)}}var Pa=function(k,W,_e,Ee,et,Ht,Tt){var ra={$$typeof:r,type:k,key:W,ref:_e,props:Tt,_owner:Ht};return ra._store={},Object.defineProperty(ra._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ra,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(ra,"_source",{configurable:!1,enumerable:!1,writable:!1,value:et}),Object.freeze&&(Object.freeze(ra.props),Object.freeze(ra)),ra};function br(k,W,_e){var Ee,et={},Ht=null,Tt=null,ra=null,Ta=null;if(W!=null){Oa(W)&&(Tt=W.ref,Ra(W)),Ia(W)&&(Yt(W.key),Ht=""+W.key),ra=W.__self===void 0?null:W.__self,Ta=W.__source===void 0?null:W.__source;for(Ee in W)xa.call(W,Ee)&&!_r.hasOwnProperty(Ee)&&(et[Ee]=W[Ee])}var Wa=arguments.length-2;if(Wa===1)et.children=_e;else if(Wa>1){for(var cr=Array(Wa),dr=0;dr<Wa;dr++)cr[dr]=arguments[dr+2];Object.freeze&&Object.freeze(cr),et.children=cr}if(k&&k.defaultProps){var vr=k.defaultProps;for(Ee in vr)et[Ee]===void 0&&(et[Ee]=vr[Ee])}if(Ht||Tt){var Er=typeof k=="function"?k.displayName||k.name||"Unknown":k;Ht&&mr(et,Er),Tt&&da(et,Er)}return Pa(k,Ht,Tt,ra,Ta,U.current,et)}function He(k,W){var _e=Pa(k.type,W,k.ref,k._self,k._source,k._owner,k.props);return _e}function ct(k,W,_e){if(k==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var Ee,et=de({},k.props),Ht=k.key,Tt=k.ref,ra=k._self,Ta=k._source,Wa=k._owner;if(W!=null){Oa(W)&&(Tt=W.ref,Wa=U.current),Ia(W)&&(Yt(W.key),Ht=""+W.key);var cr;k.type&&k.type.defaultProps&&(cr=k.type.defaultProps);for(Ee in W)xa.call(W,Ee)&&!_r.hasOwnProperty(Ee)&&(W[Ee]===void 0&&cr!==void 0?et[Ee]=cr[Ee]:et[Ee]=W[Ee])}var dr=arguments.length-2;if(dr===1)et.children=_e;else if(dr>1){for(var vr=Array(dr),Er=0;Er<dr;Er++)vr[Er]=arguments[Er+2];et.children=vr}return Pa(k.type,Ht,Tt,ra,Ta,Wa,et)}function yt(k){return typeof k=="object"&&k!==null&&k.$$typeof===r}var Xt=".",Gt=":";function Ea(k){var W=/[=:]/g,_e={"=":"=0",":":"=2"},Ee=k.replace(W,function(et){return _e[et]});return"$"+Ee}var ga=!1,Ka=/\/+/g;function I(k){return k.replace(Ka,"$&/")}function te(k,W){return typeof k=="object"&&k!==null&&k.key!=null?(Yt(k.key),Ea(""+k.key)):W.toString(36)}function B(k,W,_e,Ee,et){var Ht=typeof k;(Ht==="undefined"||Ht==="boolean")&&(k=null);var Tt=!1;if(k===null)Tt=!0;else switch(Ht){case"string":case"number":Tt=!0;break;case"object":switch(k.$$typeof){case r:case o:Tt=!0}}if(Tt){var ra=k,Ta=et(ra),Wa=Ee===""?Xt+te(ra,0):Ee;if(nt(Ta)){var cr="";Wa!=null&&(cr=I(Wa)+"/"),B(Ta,W,cr,"",function(hp){return hp})}else Ta!=null&&(yt(Ta)&&(Ta.key&&(!ra||ra.key!==Ta.key)&&Yt(Ta.key),Ta=He(Ta,_e+(Ta.key&&(!ra||ra.key!==Ta.key)?I(""+Ta.key)+"/":"")+Wa)),W.push(Ta));return 1}var dr,vr,Er=0,en=Ee===""?Xt:Ee+Gt;if(nt(k))for(var Id=0;Id<k.length;Id++)dr=k[Id],vr=en+te(dr,Id),Er+=B(dr,W,_e,vr,et);else{var tn=A(k);if(typeof tn=="function"){var Pd=k;tn===Pd.entries&&(ga||ee("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ga=!0);for(var Im=tn.call(Pd),pp,X_=0;!(pp=Im.next()).done;)dr=pp.value,vr=en+te(dr,X_++),Er+=B(dr,W,_e,vr,et)}else if(Ht==="object"){var zs=String(k);throw new Error("Objects are not valid as a React child (found: "+(zs==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":zs)+"). If you meant to render a collection of children, use an array instead.")}}return Er}function V(k,W,_e){if(k==null)return k;var Ee=[],et=0;return B(k,Ee,"","",function(Ht){return W.call(_e,Ht,et++)}),Ee}function q(k){var W=0;return V(k,function(){W++}),W}function fe(k,W,_e){V(k,function(){W.apply(this,arguments)},_e)}function ie(k){return V(k,function(W){return W})||[]}function Ie(k){if(!yt(k))throw new Error("React.Children.only expected to receive a single React element child.");return k}function Me(k){var W={$$typeof:h,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};W.Provider={$$typeof:u,_context:W};var _e=!1,Ee=!1,et=!1;{var Ht={$$typeof:h,_context:W};Object.defineProperties(Ht,{Provider:{get:function(){return Ee||(Ee=!0,me("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),W.Provider},set:function(Tt){W.Provider=Tt}},_currentValue:{get:function(){return W._currentValue},set:function(Tt){W._currentValue=Tt}},_currentValue2:{get:function(){return W._currentValue2},set:function(Tt){W._currentValue2=Tt}},_threadCount:{get:function(){return W._threadCount},set:function(Tt){W._threadCount=Tt}},Consumer:{get:function(){return _e||(_e=!0,me("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),W.Consumer}},displayName:{get:function(){return W.displayName},set:function(Tt){et||(ee("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Tt),et=!0)}}}),W.Consumer=Ht}return W._currentRenderer=null,W._currentRenderer2=null,W}var Fe=-1,Ge=0,Be=1,tt=2;function H(k){if(k._status===Fe){var W=k._result,_e=W();if(_e.then(function(Ht){if(k._status===Ge||k._status===Fe){var Tt=k;Tt._status=Be,Tt._result=Ht}},function(Ht){if(k._status===Ge||k._status===Fe){var Tt=k;Tt._status=tt,Tt._result=Ht}}),k._status===Fe){var Ee=k;Ee._status=Ge,Ee._result=_e}}if(k._status===Be){var et=k._result;return et===void 0&&me(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -20,7 +20,7 @@ Check the render method of \``+k+"`."}return""}function G_(k){if(k!==void 0){var
20
20
 
21
21
  Check your code at `+W+":"+_e+"."}return""}function Dm(k){return k!=null?G_(k.__source):""}var na={};function Am(k){var W=Va();if(!W){var _e=typeof k=="string"?k:k.displayName||k.name;_e&&(W=`
22
22
 
23
- Check the top-level render call using <`+_e+">.")}return W}function Hn(k,W){if(!(!k._store||k._store.validated||k.key!=null)){k._store.validated=!0;var _e=Am(W);if(!na[_e]){na[_e]=!0;var Ee="";k&&k._owner&&k._owner!==U.current&&(Ee=" It was passed a child from "+sa(k._owner.type)+"."),Lu(k),me('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_e,Ee),Lu(null)}}}function Bu(k,W){if(typeof k=="object"){if(nt(k))for(var _e=0;_e<k.length;_e++){var Ee=k[_e];yt(Ee)&&Hn(Ee,W)}else if(yt(k))k._store&&(k._store.validated=!0);else if(k){var et=A(k);if(typeof et=="function"&&et!==k.entries)for(var Ht=et.call(k),Tt;!(Tt=Ht.next()).done;)yt(Tt.value)&&Hn(Tt.value,W)}}}function Nu(k){{var W=k.type;if(W==null||typeof W=="string")return;var _e;if(typeof W=="function")_e=W.propTypes;else if(typeof W=="object"&&(W.$$typeof===p||W.$$typeof===b))_e=W.propTypes;else return;if(_e){var Ee=sa(W);Rm(_e,k.props,"prop",Ee,k)}else if(W.PropTypes!==void 0&&!Ad){Ad=!0;var et=sa(W);me("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",et||"Unknown")}typeof W.getDefaultProps=="function"&&!W.getDefaultProps.isReactClassApproved&&me("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function q_(k){{for(var W=Object.keys(k.props),_e=0;_e<W.length;_e++){var Ee=W[_e];if(Ee!=="children"&&Ee!=="key"){Lu(k),me("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),Lu(null);break}}k.ref!==null&&(Lu(k),me("Invalid attribute `ref` supplied to `React.Fragment`."),Lu(null))}}function mn(k,W,_e){var Ee=$e(k);if(!Ee){var et="";(k===void 0||typeof k=="object"&&k!==null&&Object.keys(k).length===0)&&(et+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ht=Dm(W);Ht?et+=Ht:et+=Va();var Tt;k===null?Tt="null":nt(k)?Tt="array":k!==void 0&&k.$$typeof===r?(Tt="<"+(sa(k.type)||"Unknown")+" />",et=" Did you accidentally export a JSX literal instead of a component?"):Tt=typeof k,me("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Tt,et)}var ra=br.apply(this,arguments);if(ra==null)return ra;if(Ee)for(var Ta=2;Ta<arguments.length;Ta++)Bu(arguments[Ta],k);return k===l?q_(ra):Nu(ra),ra}var xr=!1;function K_(k){var W=mn.bind(null,k);return W.type=k,xr||(xr=!0,ee("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(W,"type",{enumerable:!1,get:function(){return ee("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:k}),k}}),W}function bl(k,W,_e){for(var Ee=ct.apply(this,arguments),et=2;et<arguments.length;et++)Bu(arguments[et],Ee.type);return Nu(Ee),Ee}function Co(k,W){var _e=F.transition;F.transition={};var Ee=F.transition;F.transition._updatedFibers=new Set;try{k()}finally{if(F.transition=_e,_e===null&&Ee._updatedFibers){var et=Ee._updatedFibers.size;et>10&&ee("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),Ee._updatedFibers.clear()}}}var Il=!1,Ld=null;function cp(k){if(Ld===null)try{var W=("require"+Math.random()).slice(0,7),_e=Mg&&Mg[W];Ld=_e.call(Mg,"timers").setImmediate}catch(Ee){Ld=function(et){Il===!1&&(Il=!0,typeof MessageChannel=="undefined"&&me("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ht=new MessageChannel;Ht.port1.onmessage=et,Ht.port2.postMessage(void 0)}}return Ld(k)}var Fs=0,dp=!1;function Lm(k){{var W=Fs;Fs++,j.current===null&&(j.current=[]);var _e=j.isBatchingLegacy,Ee;try{if(j.isBatchingLegacy=!0,Ee=k(),!_e&&j.didScheduleLegacyUpdate){var et=j.current;et!==null&&(j.didScheduleLegacyUpdate=!1,Nd(et))}}catch(vr){throw Bd(W),vr}finally{j.isBatchingLegacy=_e}if(Ee!==null&&typeof Ee=="object"&&typeof Ee.then=="function"){var Ht=Ee,Tt=!1,ra={then:function(vr,Er){Tt=!0,Ht.then(function(en){Bd(W),Fs===0?fp(en,vr,Er):vr(en)},function(en){Bd(W),Er(en)})}};return!dp&&typeof Promise!="undefined"&&Promise.resolve().then(function(){}).then(function(){Tt||(dp=!0,me("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),ra}else{var Ta=Ee;if(Bd(W),Fs===0){var Wa=j.current;Wa!==null&&(Nd(Wa),j.current=null);var cr={then:function(vr,Er){j.current===null?(j.current=[],fp(Ta,vr,Er)):vr(Ta)}};return cr}else{var dr={then:function(vr,Er){vr(Ta)}};return dr}}}}function Bd(k){k!==Fs-1&&me("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Fs=k}function fp(k,W,_e){{var Ee=j.current;if(Ee!==null)try{Nd(Ee),cp(function(){Ee.length===0?(j.current=null,W(k)):fp(k,W,_e)})}catch(et){_e(et)}else W(k)}}var Ou=!1;function Nd(k){if(!Ou){Ou=!0;var W=0;try{for(;W<k.length;W++){var _e=k[W];do _e=_e(!0);while(_e!==null)}k.length=0}catch(Ee){throw k=k.slice(W+1),Ee}finally{Ou=!1}}}var Od=mn,Bm=bl,Nm=K_,Om={map:V,forEach:fe,count:q,toArray:ie,only:Ie};Sa.Children=Om,Sa.Component=Pe,Sa.Fragment=l,Sa.Profiler=d,Sa.PureComponent=Kt,Sa.StrictMode=s,Sa.Suspense=v,Sa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,Sa.act=Lm,Sa.cloneElement=Bm,Sa.createContext=Me,Sa.createElement=Od,Sa.createFactory=Nm,Sa.createRef=bt,Sa.forwardRef=ae,Sa.isValidElement=yt,Sa.lazy=Y,Sa.memo=Ue,Sa.startTransition=Co,Sa.unstable_act=Lm,Sa.useCallback=Rt,Sa.useContext=G,Sa.useDebugValue=Xa,Sa.useDeferredValue=sr,Sa.useEffect=_t,Sa.useId=ur,Sa.useImperativeHandle=qt,Sa.useInsertionEffect=at,Sa.useLayoutEffect=Qe,Sa.useMemo=At,Sa.useReducer=Te,Sa.useRef=Ye,Sa.useState=ge,Sa.useSyncExternalStore=$r,Sa.useTransition=jr,Sa.version=a,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()});var ha=Ke((LG,Z4)=>{"use strict";Z4.exports=Q4()});var ek=Ke(pr=>{"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a=!1,r=!1,o=5;function l(He,ct){var yt=He.length;He.push(ct),u(He,ct,yt)}function s(He){return He.length===0?null:He[0]}function d(He){if(He.length===0)return null;var ct=He[0],yt=He.pop();return yt!==ct&&(He[0]=yt,h(He,yt,0)),ct}function u(He,ct,yt){for(var Xt=yt;Xt>0;){var Gt=Xt-1>>>1,Ea=He[Gt];if(p(Ea,ct)>0)He[Gt]=ct,He[Xt]=Ea,Xt=Gt;else return}}function h(He,ct,yt){for(var Xt=yt,Gt=He.length,Ea=Gt>>>1;Xt<Ea;){var ga=(Xt+1)*2-1,Ka=He[ga],I=ga+1,te=He[I];if(p(Ka,ct)<0)I<Gt&&p(te,Ka)<0?(He[Xt]=te,He[I]=ct,Xt=I):(He[Xt]=Ka,He[ga]=ct,Xt=ga);else if(I<Gt&&p(te,ct)<0)He[Xt]=te,He[I]=ct,Xt=I;else return}}function p(He,ct){var yt=He.sortIndex-ct.sortIndex;return yt!==0?yt:He.id-ct.id}var v=1,y=2,b=3,C=4,w=5;function T(He,ct){}var L=typeof performance=="object"&&typeof performance.now=="function";if(L){var A=performance;pr.unstable_now=function(){return A.now()}}else{var $=Date,F=$.now();pr.unstable_now=function(){return $.now()-F}}var j=1073741823,U=-1,K=250,M=5e3,oe=1e4,ke=j,J=[],pe=[],he=1,ce=null,P=b,ee=!1,me=!1,z=!1,ne=typeof setTimeout=="function"?setTimeout:null,ve=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate!="undefined"?setImmediate:null,de=typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function Re(He){for(var ct=s(pe);ct!==null;){if(ct.callback===null)d(pe);else if(ct.startTime<=He)d(pe),ct.sortIndex=ct.expirationTime,l(J,ct);else return;ct=s(pe)}}function Pe(He){if(z=!1,Re(He),!me)if(s(J)!==null)me=!0,mr(Oe);else{var ct=s(pe);ct!==null&&da(Pe,ct.startTime-He)}}function Oe(He,ct){me=!1,z&&(z=!1,Ra()),ee=!0;var yt=P;try{if(r)try{return rt(He,ct)}catch(Gt){if(ce!==null){var Xt=pr.unstable_now();ce.isQueued=!1}throw Gt}else return rt(He,ct)}finally{ce=null,P=yt,ee=!1}}function rt(He,ct){var yt=ct;for(Re(yt),ce=s(J);ce!==null&&!a&&!(ce.expirationTime>yt&&(!He||xa()));){var Xt=ce.callback;if(typeof Xt=="function"){ce.callback=null,P=ce.priorityLevel;var Gt=ce.expirationTime<=yt,Ea=Xt(Gt);yt=pr.unstable_now(),typeof Ea=="function"?ce.callback=Ea:ce===s(J)&&d(J),Re(yt)}else d(J);ce=s(J)}if(ce!==null)return!0;var ga=s(pe);return ga!==null&&da(Pe,ga.startTime-yt),!1}function ze(He,ct){switch(He){case v:case y:case b:case C:case w:break;default:He=b}var yt=P;P=He;try{return ct()}finally{P=yt}}function pt(He){var ct;switch(P){case v:case y:case b:ct=b;break;default:ct=P;break}var yt=P;P=ct;try{return He()}finally{P=yt}}function Kt(He){var ct=P;return function(){var yt=P;P=ct;try{return He.apply(this,arguments)}finally{P=yt}}}function Et(He,ct,yt){var Xt=pr.unstable_now(),Gt;if(typeof yt=="object"&&yt!==null){var Ea=yt.delay;typeof Ea=="number"&&Ea>0?Gt=Xt+Ea:Gt=Xt}else Gt=Xt;var ga;switch(He){case v:ga=U;break;case y:ga=K;break;case w:ga=ke;break;case C:ga=oe;break;case b:default:ga=M;break}var Ka=Gt+ga,I={id:he++,callback:ct,priorityLevel:He,startTime:Gt,expirationTime:Ka,sortIndex:-1};return Gt>Xt?(I.sortIndex=Gt,l(pe,I),s(J)===null&&I===s(pe)&&(z?Ra():z=!0,da(Pe,Gt-Xt))):(I.sortIndex=Ka,l(J,I),!me&&!ee&&(me=!0,mr(Oe))),I}function bt(){}function It(){!me&&!ee&&(me=!0,mr(Oe))}function nt(){return s(J)}function Le(He){He.callback=null}function wt(){return P}var zt=!1,Yt=null,$t=-1,oa=o,sa=-1;function xa(){var He=pr.unstable_now()-sa;return!(He<oa)}function _r(){}function rr(He){if(He<0||He>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}He>0?oa=Math.floor(1e3/He):oa=o}var lr=function(){if(Yt!==null){var He=pr.unstable_now();sa=He;var ct=!0,yt=!0;try{yt=Yt(ct,He)}finally{yt?Na():(zt=!1,Yt=null)}}else zt=!1},Na;if(typeof be=="function")Na=function(){be(lr)};else if(typeof MessageChannel!="undefined"){var Oa=new MessageChannel,Ia=Oa.port2;Oa.port1.onmessage=lr,Na=function(){Ia.postMessage(null)}}else Na=function(){ne(lr,0)};function mr(He){Yt=He,zt||(zt=!0,Na())}function da(He,ct){$t=ne(function(){He(pr.unstable_now())},ct)}function Ra(){ve($t),$t=-1}var Pa=_r,br=null;pr.unstable_IdlePriority=w,pr.unstable_ImmediatePriority=v,pr.unstable_LowPriority=C,pr.unstable_NormalPriority=b,pr.unstable_Profiling=br,pr.unstable_UserBlockingPriority=y,pr.unstable_cancelCallback=Le,pr.unstable_continueExecution=It,pr.unstable_forceFrameRate=rr,pr.unstable_getCurrentPriorityLevel=wt,pr.unstable_getFirstCallbackNode=nt,pr.unstable_next=pt,pr.unstable_pauseExecution=bt,pr.unstable_requestPaint=Pa,pr.unstable_runWithPriority=ze,pr.unstable_scheduleCallback=Et,pr.unstable_shouldYield=xa,pr.unstable_wrapCallback=Kt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()});var ak=Ke((NG,tk)=>{"use strict";tk.exports=ek()});var rk=Ke(Go=>{"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a=ha(),r=ak(),o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function s(e){l=e}function d(e){if(!l){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];h("warn",e,n)}}function u(e){if(!l){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];h("error",e,n)}}function h(e,t,n){{var i=o.ReactDebugCurrentFrame,c=i.getStackAddendum();c!==""&&(t+="%s",n=n.concat([c]));var f=n.map(function(g){return String(g)});f.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,f)}}var p=0,v=1,y=2,b=3,C=4,w=5,T=6,L=7,A=8,$=9,F=10,j=11,U=12,K=13,M=14,oe=15,ke=16,J=17,pe=18,he=19,ce=21,P=22,ee=23,me=24,z=25,ne=!0,ve=!1,be=!1,de=!1,Re=!1,Pe=!0,Oe=!1,rt=!0,ze=!0,pt=!0,Kt=!0,Et=new Set,bt={},It={};function nt(e,t){Le(e,t),Le(e+"Capture",t)}function Le(e,t){bt[e]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),bt[e]=t;{var n=e.toLowerCase();It[n]=e,e==="onDoubleClick"&&(It.ondblclick=e)}for(var i=0;i<t.length;i++)Et.add(t[i])}var wt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",zt=Object.prototype.hasOwnProperty;function Yt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function $t(e){try{return oa(e),!1}catch(t){return!0}}function oa(e){return""+e}function sa(e,t){if($t(e))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Yt(e)),oa(e)}function xa(e){if($t(e))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yt(e)),oa(e)}function _r(e,t){if($t(e))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Yt(e)),oa(e)}function rr(e,t){if($t(e))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Yt(e)),oa(e)}function lr(e){if($t(e))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Yt(e)),oa(e)}function Na(e){if($t(e))return u("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Yt(e)),oa(e)}var Oa=0,Ia=1,mr=2,da=3,Ra=4,Pa=5,br=6,He=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ct=He+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",yt=new RegExp("^["+He+"]["+ct+"]*$"),Xt={},Gt={};function Ea(e){return zt.call(Gt,e)?!0:zt.call(Xt,e)?!1:yt.test(e)?(Gt[e]=!0,!0):(Xt[e]=!0,u("Invalid attribute name: `%s`",e),!1)}function ga(e,t,n){return t!==null?t.type===Oa:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Ka(e,t,n,i){if(n!==null&&n.type===Oa)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(i)return!1;if(n!==null)return!n.acceptsBooleans;var c=e.toLowerCase().slice(0,5);return c!=="data-"&&c!=="aria-"}default:return!1}}function I(e,t,n,i){if(t===null||typeof t=="undefined"||Ka(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case da:return!t;case Ra:return t===!1;case Pa:return isNaN(t);case br:return isNaN(t)||t<1}return!1}function te(e){return V.hasOwnProperty(e)?V[e]:null}function B(e,t,n,i,c,f,g){this.acceptsBooleans=t===mr||t===da||t===Ra,this.attributeName=i,this.attributeNamespace=c,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=g}var V={},q=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];q.forEach(function(e){V[e]=new B(e,Oa,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];V[t]=new B(t,Ia,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){V[e]=new B(e,mr,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){V[e]=new B(e,mr,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){V[e]=new B(e,da,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){V[e]=new B(e,da,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){V[e]=new B(e,Ra,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){V[e]=new B(e,br,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){V[e]=new B(e,Pa,!1,e.toLowerCase(),null,!1,!1)});var fe=/[\-\:]([a-z])/g,ie=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(fe,ie);V[t]=new B(t,Ia,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(fe,ie);V[t]=new B(t,Ia,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fe,ie);V[t]=new B(t,Ia,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){V[e]=new B(e,Ia,!1,e.toLowerCase(),null,!1,!1)});var Ie="xlinkHref";V[Ie]=new B("xlinkHref",Ia,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){V[e]=new B(e,Ia,!1,e.toLowerCase(),null,!0,!0)});var Me=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Fe=!1;function Ge(e){!Fe&&Me.test(e)&&(Fe=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Be(e,t,n,i){if(i.mustUseProperty){var c=i.propertyName;return e[c]}else{sa(n,t),i.sanitizeURL&&Ge(""+n);var f=i.attributeName,g=null;if(i.type===Ra){if(e.hasAttribute(f)){var S=e.getAttribute(f);return S===""?!0:I(t,n,i,!1)?S:S===""+n?n:S}}else if(e.hasAttribute(f)){if(I(t,n,i,!1))return e.getAttribute(f);if(i.type===da)return n;g=e.getAttribute(f)}return I(t,n,i,!1)?g===null?n:g:g===""+n?n:g}}function tt(e,t,n,i){{if(!Ea(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var c=e.getAttribute(t);return sa(n,t),c===""+n?n:c}}function H(e,t,n,i){var c=te(t);if(!ga(t,c,i)){if(I(t,n,c,i)&&(n=null),i||c===null){if(Ea(t)){var f=t;n===null?e.removeAttribute(f):(sa(n,t),e.setAttribute(f,""+n))}return}var g=c.mustUseProperty;if(g){var S=c.propertyName;if(n===null){var x=c.type;e[S]=x===da?!1:""}else e[S]=n;return}var R=c.attributeName,O=c.attributeNamespace;if(n===null)e.removeAttribute(R);else{var Q=c.type,X;Q===da||Q===Ra&&n===!0?X="":(sa(n,R),X=""+n,c.sanitizeURL&&Ge(X.toString())),O?e.setAttributeNS(O,R,X):e.setAttribute(R,X)}}}var Y=Symbol.for("react.element"),ae=Symbol.for("react.portal"),le=Symbol.for("react.fragment"),$e=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),G=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),_t=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),Qe=Symbol.for("react.scope"),Rt=Symbol.for("react.debug_trace_mode"),At=Symbol.for("react.offscreen"),qt=Symbol.for("react.legacy_hidden"),Xa=Symbol.for("react.cache"),jr=Symbol.for("react.tracing_marker"),sr=Symbol.iterator,ur="@@iterator";function $r(e){if(e===null||typeof e!="object")return null;var t=sr&&e[sr]||e[ur];return typeof t=="function"?t:null}var Pt=Object.assign,Qn=0,ds,fs,aa,nr,Zr,Ja,Zn;function xc(){}xc.__reactDisabledLog=!0;function lp(){{if(Qn===0){ds=console.log,fs=console.info,aa=console.warn,nr=console.error,Zr=console.group,Ja=console.groupCollapsed,Zn=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xc,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Qn++}}function sp(){{if(Qn--,Qn===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Pt({},e,{value:ds}),info:Pt({},e,{value:fs}),warn:Pt({},e,{value:aa}),error:Pt({},e,{value:nr}),group:Pt({},e,{value:Zr}),groupCollapsed:Pt({},e,{value:Ja}),groupEnd:Pt({},e,{value:Zn})})}Qn<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Tc=o.ReactCurrentDispatcher,Ru;function _l(e,t,n){{if(Ru===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);Ru=i&&i[1]||""}return`
23
+ Check the top-level render call using <`+_e+">.")}return W}function Hn(k,W){if(!(!k._store||k._store.validated||k.key!=null)){k._store.validated=!0;var _e=Am(W);if(!na[_e]){na[_e]=!0;var Ee="";k&&k._owner&&k._owner!==U.current&&(Ee=" It was passed a child from "+sa(k._owner.type)+"."),Lu(k),me('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_e,Ee),Lu(null)}}}function Bu(k,W){if(typeof k=="object"){if(nt(k))for(var _e=0;_e<k.length;_e++){var Ee=k[_e];yt(Ee)&&Hn(Ee,W)}else if(yt(k))k._store&&(k._store.validated=!0);else if(k){var et=A(k);if(typeof et=="function"&&et!==k.entries)for(var Ht=et.call(k),Tt;!(Tt=Ht.next()).done;)yt(Tt.value)&&Hn(Tt.value,W)}}}function Nu(k){{var W=k.type;if(W==null||typeof W=="string")return;var _e;if(typeof W=="function")_e=W.propTypes;else if(typeof W=="object"&&(W.$$typeof===p||W.$$typeof===b))_e=W.propTypes;else return;if(_e){var Ee=sa(W);Rm(_e,k.props,"prop",Ee,k)}else if(W.PropTypes!==void 0&&!Ad){Ad=!0;var et=sa(W);me("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",et||"Unknown")}typeof W.getDefaultProps=="function"&&!W.getDefaultProps.isReactClassApproved&&me("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function q_(k){{for(var W=Object.keys(k.props),_e=0;_e<W.length;_e++){var Ee=W[_e];if(Ee!=="children"&&Ee!=="key"){Lu(k),me("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),Lu(null);break}}k.ref!==null&&(Lu(k),me("Invalid attribute `ref` supplied to `React.Fragment`."),Lu(null))}}function mn(k,W,_e){var Ee=$e(k);if(!Ee){var et="";(k===void 0||typeof k=="object"&&k!==null&&Object.keys(k).length===0)&&(et+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ht=Dm(W);Ht?et+=Ht:et+=Va();var Tt;k===null?Tt="null":nt(k)?Tt="array":k!==void 0&&k.$$typeof===r?(Tt="<"+(sa(k.type)||"Unknown")+" />",et=" Did you accidentally export a JSX literal instead of a component?"):Tt=typeof k,me("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Tt,et)}var ra=br.apply(this,arguments);if(ra==null)return ra;if(Ee)for(var Ta=2;Ta<arguments.length;Ta++)Bu(arguments[Ta],k);return k===l?q_(ra):Nu(ra),ra}var xr=!1;function K_(k){var W=mn.bind(null,k);return W.type=k,xr||(xr=!0,ee("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(W,"type",{enumerable:!1,get:function(){return ee("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:k}),k}}),W}function bl(k,W,_e){for(var Ee=ct.apply(this,arguments),et=2;et<arguments.length;et++)Bu(arguments[et],Ee.type);return Nu(Ee),Ee}function Co(k,W){var _e=F.transition;F.transition={};var Ee=F.transition;F.transition._updatedFibers=new Set;try{k()}finally{if(F.transition=_e,_e===null&&Ee._updatedFibers){var et=Ee._updatedFibers.size;et>10&&ee("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),Ee._updatedFibers.clear()}}}var Il=!1,Ld=null;function cp(k){if(Ld===null)try{var W=("require"+Math.random()).slice(0,7),_e=Mg&&Mg[W];Ld=_e.call(Mg,"timers").setImmediate}catch(Ee){Ld=function(et){Il===!1&&(Il=!0,typeof MessageChannel=="undefined"&&me("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ht=new MessageChannel;Ht.port1.onmessage=et,Ht.port2.postMessage(void 0)}}return Ld(k)}var Fs=0,dp=!1;function Lm(k){{var W=Fs;Fs++,j.current===null&&(j.current=[]);var _e=j.isBatchingLegacy,Ee;try{if(j.isBatchingLegacy=!0,Ee=k(),!_e&&j.didScheduleLegacyUpdate){var et=j.current;et!==null&&(j.didScheduleLegacyUpdate=!1,Nd(et))}}catch(vr){throw Bd(W),vr}finally{j.isBatchingLegacy=_e}if(Ee!==null&&typeof Ee=="object"&&typeof Ee.then=="function"){var Ht=Ee,Tt=!1,ra={then:function(vr,Er){Tt=!0,Ht.then(function(en){Bd(W),Fs===0?fp(en,vr,Er):vr(en)},function(en){Bd(W),Er(en)})}};return!dp&&typeof Promise!="undefined"&&Promise.resolve().then(function(){}).then(function(){Tt||(dp=!0,me("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),ra}else{var Ta=Ee;if(Bd(W),Fs===0){var Wa=j.current;Wa!==null&&(Nd(Wa),j.current=null);var cr={then:function(vr,Er){j.current===null?(j.current=[],fp(Ta,vr,Er)):vr(Ta)}};return cr}else{var dr={then:function(vr,Er){vr(Ta)}};return dr}}}}function Bd(k){k!==Fs-1&&me("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Fs=k}function fp(k,W,_e){{var Ee=j.current;if(Ee!==null)try{Nd(Ee),cp(function(){Ee.length===0?(j.current=null,W(k)):fp(k,W,_e)})}catch(et){_e(et)}else W(k)}}var Ou=!1;function Nd(k){if(!Ou){Ou=!0;var W=0;try{for(;W<k.length;W++){var _e=k[W];do _e=_e(!0);while(_e!==null)}k.length=0}catch(Ee){throw k=k.slice(W+1),Ee}finally{Ou=!1}}}var Od=mn,Bm=bl,Nm=K_,Om={map:V,forEach:fe,count:q,toArray:ie,only:Ie};Sa.Children=Om,Sa.Component=Pe,Sa.Fragment=l,Sa.Profiler=d,Sa.PureComponent=Kt,Sa.StrictMode=s,Sa.Suspense=v,Sa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,Sa.act=Lm,Sa.cloneElement=Bm,Sa.createContext=Me,Sa.createElement=Od,Sa.createFactory=Nm,Sa.createRef=bt,Sa.forwardRef=ae,Sa.isValidElement=yt,Sa.lazy=Y,Sa.memo=Ue,Sa.startTransition=Co,Sa.unstable_act=Lm,Sa.useCallback=Rt,Sa.useContext=G,Sa.useDebugValue=Xa,Sa.useDeferredValue=sr,Sa.useEffect=_t,Sa.useId=ur,Sa.useImperativeHandle=qt,Sa.useInsertionEffect=at,Sa.useLayoutEffect=Qe,Sa.useMemo=At,Sa.useReducer=Te,Sa.useRef=Ye,Sa.useState=ge,Sa.useSyncExternalStore=$r,Sa.useTransition=jr,Sa.version=a,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()});var ha=Ke((LG,ZT)=>{"use strict";ZT.exports=QT()});var ek=Ke(pr=>{"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a=!1,r=!1,o=5;function l(He,ct){var yt=He.length;He.push(ct),u(He,ct,yt)}function s(He){return He.length===0?null:He[0]}function d(He){if(He.length===0)return null;var ct=He[0],yt=He.pop();return yt!==ct&&(He[0]=yt,h(He,yt,0)),ct}function u(He,ct,yt){for(var Xt=yt;Xt>0;){var Gt=Xt-1>>>1,Ea=He[Gt];if(p(Ea,ct)>0)He[Gt]=ct,He[Xt]=Ea,Xt=Gt;else return}}function h(He,ct,yt){for(var Xt=yt,Gt=He.length,Ea=Gt>>>1;Xt<Ea;){var ga=(Xt+1)*2-1,Ka=He[ga],I=ga+1,te=He[I];if(p(Ka,ct)<0)I<Gt&&p(te,Ka)<0?(He[Xt]=te,He[I]=ct,Xt=I):(He[Xt]=Ka,He[ga]=ct,Xt=ga);else if(I<Gt&&p(te,ct)<0)He[Xt]=te,He[I]=ct,Xt=I;else return}}function p(He,ct){var yt=He.sortIndex-ct.sortIndex;return yt!==0?yt:He.id-ct.id}var v=1,y=2,b=3,C=4,w=5;function T(He,ct){}var L=typeof performance=="object"&&typeof performance.now=="function";if(L){var A=performance;pr.unstable_now=function(){return A.now()}}else{var $=Date,F=$.now();pr.unstable_now=function(){return $.now()-F}}var j=1073741823,U=-1,K=250,M=5e3,oe=1e4,ke=j,J=[],pe=[],he=1,ce=null,P=b,ee=!1,me=!1,z=!1,ne=typeof setTimeout=="function"?setTimeout:null,ve=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate!="undefined"?setImmediate:null,de=typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function Re(He){for(var ct=s(pe);ct!==null;){if(ct.callback===null)d(pe);else if(ct.startTime<=He)d(pe),ct.sortIndex=ct.expirationTime,l(J,ct);else return;ct=s(pe)}}function Pe(He){if(z=!1,Re(He),!me)if(s(J)!==null)me=!0,mr(Oe);else{var ct=s(pe);ct!==null&&da(Pe,ct.startTime-He)}}function Oe(He,ct){me=!1,z&&(z=!1,Ra()),ee=!0;var yt=P;try{if(r)try{return rt(He,ct)}catch(Gt){if(ce!==null){var Xt=pr.unstable_now();ce.isQueued=!1}throw Gt}else return rt(He,ct)}finally{ce=null,P=yt,ee=!1}}function rt(He,ct){var yt=ct;for(Re(yt),ce=s(J);ce!==null&&!a&&!(ce.expirationTime>yt&&(!He||xa()));){var Xt=ce.callback;if(typeof Xt=="function"){ce.callback=null,P=ce.priorityLevel;var Gt=ce.expirationTime<=yt,Ea=Xt(Gt);yt=pr.unstable_now(),typeof Ea=="function"?ce.callback=Ea:ce===s(J)&&d(J),Re(yt)}else d(J);ce=s(J)}if(ce!==null)return!0;var ga=s(pe);return ga!==null&&da(Pe,ga.startTime-yt),!1}function ze(He,ct){switch(He){case v:case y:case b:case C:case w:break;default:He=b}var yt=P;P=He;try{return ct()}finally{P=yt}}function pt(He){var ct;switch(P){case v:case y:case b:ct=b;break;default:ct=P;break}var yt=P;P=ct;try{return He()}finally{P=yt}}function Kt(He){var ct=P;return function(){var yt=P;P=ct;try{return He.apply(this,arguments)}finally{P=yt}}}function Et(He,ct,yt){var Xt=pr.unstable_now(),Gt;if(typeof yt=="object"&&yt!==null){var Ea=yt.delay;typeof Ea=="number"&&Ea>0?Gt=Xt+Ea:Gt=Xt}else Gt=Xt;var ga;switch(He){case v:ga=U;break;case y:ga=K;break;case w:ga=ke;break;case C:ga=oe;break;case b:default:ga=M;break}var Ka=Gt+ga,I={id:he++,callback:ct,priorityLevel:He,startTime:Gt,expirationTime:Ka,sortIndex:-1};return Gt>Xt?(I.sortIndex=Gt,l(pe,I),s(J)===null&&I===s(pe)&&(z?Ra():z=!0,da(Pe,Gt-Xt))):(I.sortIndex=Ka,l(J,I),!me&&!ee&&(me=!0,mr(Oe))),I}function bt(){}function It(){!me&&!ee&&(me=!0,mr(Oe))}function nt(){return s(J)}function Le(He){He.callback=null}function wt(){return P}var zt=!1,Yt=null,$t=-1,oa=o,sa=-1;function xa(){var He=pr.unstable_now()-sa;return!(He<oa)}function _r(){}function rr(He){if(He<0||He>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}He>0?oa=Math.floor(1e3/He):oa=o}var lr=function(){if(Yt!==null){var He=pr.unstable_now();sa=He;var ct=!0,yt=!0;try{yt=Yt(ct,He)}finally{yt?Na():(zt=!1,Yt=null)}}else zt=!1},Na;if(typeof be=="function")Na=function(){be(lr)};else if(typeof MessageChannel!="undefined"){var Oa=new MessageChannel,Ia=Oa.port2;Oa.port1.onmessage=lr,Na=function(){Ia.postMessage(null)}}else Na=function(){ne(lr,0)};function mr(He){Yt=He,zt||(zt=!0,Na())}function da(He,ct){$t=ne(function(){He(pr.unstable_now())},ct)}function Ra(){ve($t),$t=-1}var Pa=_r,br=null;pr.unstable_IdlePriority=w,pr.unstable_ImmediatePriority=v,pr.unstable_LowPriority=C,pr.unstable_NormalPriority=b,pr.unstable_Profiling=br,pr.unstable_UserBlockingPriority=y,pr.unstable_cancelCallback=Le,pr.unstable_continueExecution=It,pr.unstable_forceFrameRate=rr,pr.unstable_getCurrentPriorityLevel=wt,pr.unstable_getFirstCallbackNode=nt,pr.unstable_next=pt,pr.unstable_pauseExecution=bt,pr.unstable_requestPaint=Pa,pr.unstable_runWithPriority=ze,pr.unstable_scheduleCallback=Et,pr.unstable_shouldYield=xa,pr.unstable_wrapCallback=Kt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()});var ak=Ke((NG,tk)=>{"use strict";tk.exports=ek()});var rk=Ke(Go=>{"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a=ha(),r=ak(),o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function s(e){l=e}function d(e){if(!l){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];h("warn",e,n)}}function u(e){if(!l){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];h("error",e,n)}}function h(e,t,n){{var i=o.ReactDebugCurrentFrame,c=i.getStackAddendum();c!==""&&(t+="%s",n=n.concat([c]));var f=n.map(function(g){return String(g)});f.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,f)}}var p=0,v=1,y=2,b=3,C=4,w=5,T=6,L=7,A=8,$=9,F=10,j=11,U=12,K=13,M=14,oe=15,ke=16,J=17,pe=18,he=19,ce=21,P=22,ee=23,me=24,z=25,ne=!0,ve=!1,be=!1,de=!1,Re=!1,Pe=!0,Oe=!1,rt=!0,ze=!0,pt=!0,Kt=!0,Et=new Set,bt={},It={};function nt(e,t){Le(e,t),Le(e+"Capture",t)}function Le(e,t){bt[e]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),bt[e]=t;{var n=e.toLowerCase();It[n]=e,e==="onDoubleClick"&&(It.ondblclick=e)}for(var i=0;i<t.length;i++)Et.add(t[i])}var wt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",zt=Object.prototype.hasOwnProperty;function Yt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function $t(e){try{return oa(e),!1}catch(t){return!0}}function oa(e){return""+e}function sa(e,t){if($t(e))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Yt(e)),oa(e)}function xa(e){if($t(e))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yt(e)),oa(e)}function _r(e,t){if($t(e))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Yt(e)),oa(e)}function rr(e,t){if($t(e))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Yt(e)),oa(e)}function lr(e){if($t(e))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Yt(e)),oa(e)}function Na(e){if($t(e))return u("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Yt(e)),oa(e)}var Oa=0,Ia=1,mr=2,da=3,Ra=4,Pa=5,br=6,He=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ct=He+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",yt=new RegExp("^["+He+"]["+ct+"]*$"),Xt={},Gt={};function Ea(e){return zt.call(Gt,e)?!0:zt.call(Xt,e)?!1:yt.test(e)?(Gt[e]=!0,!0):(Xt[e]=!0,u("Invalid attribute name: `%s`",e),!1)}function ga(e,t,n){return t!==null?t.type===Oa:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Ka(e,t,n,i){if(n!==null&&n.type===Oa)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(i)return!1;if(n!==null)return!n.acceptsBooleans;var c=e.toLowerCase().slice(0,5);return c!=="data-"&&c!=="aria-"}default:return!1}}function I(e,t,n,i){if(t===null||typeof t=="undefined"||Ka(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case da:return!t;case Ra:return t===!1;case Pa:return isNaN(t);case br:return isNaN(t)||t<1}return!1}function te(e){return V.hasOwnProperty(e)?V[e]:null}function B(e,t,n,i,c,f,g){this.acceptsBooleans=t===mr||t===da||t===Ra,this.attributeName=i,this.attributeNamespace=c,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=g}var V={},q=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];q.forEach(function(e){V[e]=new B(e,Oa,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];V[t]=new B(t,Ia,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){V[e]=new B(e,mr,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){V[e]=new B(e,mr,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){V[e]=new B(e,da,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){V[e]=new B(e,da,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){V[e]=new B(e,Ra,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){V[e]=new B(e,br,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){V[e]=new B(e,Pa,!1,e.toLowerCase(),null,!1,!1)});var fe=/[\-\:]([a-z])/g,ie=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(fe,ie);V[t]=new B(t,Ia,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(fe,ie);V[t]=new B(t,Ia,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fe,ie);V[t]=new B(t,Ia,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){V[e]=new B(e,Ia,!1,e.toLowerCase(),null,!1,!1)});var Ie="xlinkHref";V[Ie]=new B("xlinkHref",Ia,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){V[e]=new B(e,Ia,!1,e.toLowerCase(),null,!0,!0)});var Me=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Fe=!1;function Ge(e){!Fe&&Me.test(e)&&(Fe=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Be(e,t,n,i){if(i.mustUseProperty){var c=i.propertyName;return e[c]}else{sa(n,t),i.sanitizeURL&&Ge(""+n);var f=i.attributeName,g=null;if(i.type===Ra){if(e.hasAttribute(f)){var S=e.getAttribute(f);return S===""?!0:I(t,n,i,!1)?S:S===""+n?n:S}}else if(e.hasAttribute(f)){if(I(t,n,i,!1))return e.getAttribute(f);if(i.type===da)return n;g=e.getAttribute(f)}return I(t,n,i,!1)?g===null?n:g:g===""+n?n:g}}function tt(e,t,n,i){{if(!Ea(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var c=e.getAttribute(t);return sa(n,t),c===""+n?n:c}}function H(e,t,n,i){var c=te(t);if(!ga(t,c,i)){if(I(t,n,c,i)&&(n=null),i||c===null){if(Ea(t)){var f=t;n===null?e.removeAttribute(f):(sa(n,t),e.setAttribute(f,""+n))}return}var g=c.mustUseProperty;if(g){var S=c.propertyName;if(n===null){var x=c.type;e[S]=x===da?!1:""}else e[S]=n;return}var R=c.attributeName,O=c.attributeNamespace;if(n===null)e.removeAttribute(R);else{var Q=c.type,X;Q===da||Q===Ra&&n===!0?X="":(sa(n,R),X=""+n,c.sanitizeURL&&Ge(X.toString())),O?e.setAttributeNS(O,R,X):e.setAttribute(R,X)}}}var Y=Symbol.for("react.element"),ae=Symbol.for("react.portal"),le=Symbol.for("react.fragment"),$e=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),G=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),_t=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),Qe=Symbol.for("react.scope"),Rt=Symbol.for("react.debug_trace_mode"),At=Symbol.for("react.offscreen"),qt=Symbol.for("react.legacy_hidden"),Xa=Symbol.for("react.cache"),jr=Symbol.for("react.tracing_marker"),sr=Symbol.iterator,ur="@@iterator";function $r(e){if(e===null||typeof e!="object")return null;var t=sr&&e[sr]||e[ur];return typeof t=="function"?t:null}var Pt=Object.assign,Qn=0,ds,fs,aa,nr,Zr,Ja,Zn;function xc(){}xc.__reactDisabledLog=!0;function lp(){{if(Qn===0){ds=console.log,fs=console.info,aa=console.warn,nr=console.error,Zr=console.group,Ja=console.groupCollapsed,Zn=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xc,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Qn++}}function sp(){{if(Qn--,Qn===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Pt({},e,{value:ds}),info:Pt({},e,{value:fs}),warn:Pt({},e,{value:aa}),error:Pt({},e,{value:nr}),group:Pt({},e,{value:Zr}),groupCollapsed:Pt({},e,{value:Ja}),groupEnd:Pt({},e,{value:Zn})})}Qn<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Tc=o.ReactCurrentDispatcher,Ru;function _l(e,t,n){{if(Ru===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);Ru=i&&i[1]||""}return`
24
24
  `+Ru+e}}var Du=!1,Ed;{var km=typeof WeakMap=="function"?WeakMap:Map;Ed=new km}function up(e,t){if(!e||Du)return"";{var n=Ed.get(e);if(n!==void 0)return n}var i;Du=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var f;f=Tc.current,Tc.current=null,lp();try{if(t){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(Se){i=Se}Reflect.construct(e,[],g)}else{try{g.call()}catch(Se){i=Se}e.call(g.prototype)}}else{try{throw Error()}catch(Se){i=Se}e()}}catch(Se){if(Se&&i&&typeof Se.stack=="string"){for(var S=Se.stack.split(`
25
25
  `),x=i.stack.split(`
26
26
  `),R=S.length-1,O=x.length-1;R>=1&&O>=0&&S[R]!==x[O];)O--;for(;R>=1&&O>=0;R--,O--)if(S[R]!==x[O]){if(R!==1||O!==1)do if(R--,O--,O<0||S[R]!==x[O]){var Q=`
@@ -29,7 +29,7 @@ Error generating stack: `+i.message+`
29
29
  `+i.stack}}function Lu(e,t,n){var i=e.displayName;if(i)return i;var c=t.displayName||t.name||"";return c!==""?n+"("+c+")":n}function Ad(e){return e.displayName||"Context"}function Va(e){if(e==null)return null;if(typeof e.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case le:return"Fragment";case ae:return"Portal";case Ue:return"Profiler";case $e:return"StrictMode";case Te:return"Suspense";case Ye:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G:var t=e;return Ad(t)+".Consumer";case N:var n=e;return Ad(n._context)+".Provider";case ge:return Lu(e,e.render,"ForwardRef");case _t:var i=e.displayName||null;return i!==null?i:Va(e.type)||"Memo";case at:{var c=e,f=c._payload,g=c._init;try{return Va(g(f))}catch(S){return null}}}return null}function G_(e,t,n){var i=t.displayName||t.name||"";return e.displayName||(i!==""?n+"("+i+")":n)}function Dm(e){return e.displayName||"Context"}function na(e){var t=e.tag,n=e.type;switch(t){case me:return"Cache";case $:var i=n;return Dm(i)+".Consumer";case F:var c=n;return Dm(c._context)+".Provider";case pe:return"DehydratedFragment";case j:return G_(n,n.render,"ForwardRef");case L:return"Fragment";case w:return n;case C:return"Portal";case b:return"Root";case T:return"Text";case ke:return Va(n);case A:return n===$e?"StrictMode":"Mode";case P:return"Offscreen";case U:return"Profiler";case ce:return"Scope";case K:return"Suspense";case he:return"SuspenseList";case z:return"TracingMarker";case v:case p:case J:case y:case M:case oe:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var Am=o.ReactDebugCurrentFrame,Hn=null,Bu=!1;function Nu(){{if(Hn===null)return null;var e=Hn._debugOwner;if(e!==null&&typeof e!="undefined")return na(e)}return null}function q_(){return Hn===null?"":Rm(Hn)}function mn(){Am.getCurrentStack=null,Hn=null,Bu=!1}function xr(e){Am.getCurrentStack=e===null?null:q_,Hn=e,Bu=!1}function K_(){return Hn}function bl(e){Bu=e}function Co(e){return""+e}function Il(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Na(e),e;default:return""}}var Ld={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function cp(e,t){Ld[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||u("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||u("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Fs(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dp(e){return e._valueTracker}function Lm(e){e._valueTracker=null}function Bd(e){var t="";return e&&(Fs(e)?t=e.checked?"true":"false":t=e.value),t}function fp(e){var t=Fs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Na(e[t]);var i=""+e[t];if(!(e.hasOwnProperty(t)||typeof n=="undefined"||typeof n.get!="function"||typeof n.set!="function")){var c=n.get,f=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(S){Na(S),i=""+S,f.call(this,S)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var g={getValue:function(){return i},setValue:function(S){Na(S),i=""+S},stopTracking:function(){Lm(e),delete e[t]}};return g}}function Ou(e){dp(e)||(e._valueTracker=fp(e))}function Nd(e){if(!e)return!1;var t=dp(e);if(!t)return!0;var n=t.getValue(),i=Bd(e);return i!==n?(t.setValue(i),!0):!1}function Od(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var Bm=!1,Nm=!1,Om=!1,k=!1;function W(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function _e(e,t){var n=e,i=t.checked,c=Pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i!=null?i:n._wrapperState.initialChecked});return c}function Ee(e,t){cp("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!Nm&&(u("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Nu()||"A component",t.type),Nm=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Bm&&(u("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Nu()||"A component",t.type),Bm=!0);var n=e,i=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Il(t.value!=null?t.value:i),controlled:W(t)}}function et(e,t){var n=e,i=t.checked;i!=null&&H(n,"checked",i,!1)}function Ht(e,t){var n=e;{var i=W(t);!n._wrapperState.controlled&&i&&!k&&(u("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),k=!0),n._wrapperState.controlled&&!i&&!Om&&(u("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Om=!0)}et(e,t);var c=Il(t.value),f=t.type;if(c!=null)f==="number"?(c===0&&n.value===""||n.value!=c)&&(n.value=Co(c)):n.value!==Co(c)&&(n.value=Co(c));else if(f==="submit"||f==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Wa(n,t.type,c):t.hasOwnProperty("defaultValue")&&Wa(n,t.type,Il(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function Tt(e,t,n){var i=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var c=t.type,f=c==="submit"||c==="reset";if(f&&(t.value===void 0||t.value===null))return;var g=Co(i._wrapperState.initialValue);n||g!==i.value&&(i.value=g),i.defaultValue=g}var S=i.name;S!==""&&(i.name=""),i.defaultChecked=!i.defaultChecked,i.defaultChecked=!!i._wrapperState.initialChecked,S!==""&&(i.name=S)}function ra(e,t){var n=e;Ht(n,t),Ta(n,t)}function Ta(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var i=e;i.parentNode;)i=i.parentNode;sa(n,"name");for(var c=i.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),f=0;f<c.length;f++){var g=c[f];if(!(g===e||g.form!==e.form)){var S=Sv(g);if(!S)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Nd(g),Ht(g,S)}}}}function Wa(e,t,n){(t!=="number"||Od(e.ownerDocument)!==e)&&(n==null?e.defaultValue=Co(e._wrapperState.initialValue):e.defaultValue!==Co(n)&&(e.defaultValue=Co(n)))}var cr=!1,dr=!1,vr=!1;function Er(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?a.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||dr||(dr=!0,u("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(vr||(vr=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!cr&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),cr=!0)}function en(e,t){t.value!=null&&e.setAttribute("value",Co(Il(t.value)))}var Id=Array.isArray;function tn(e){return Id(e)}var Pd;Pd=!1;function Im(){var e=Nu();return e?`
30
30
 
31
31
  Check the render method of \``+e+"`.":""}var pp=["value","defaultValue"];function X_(e){{cp("select",e);for(var t=0;t<pp.length;t++){var n=pp[t];if(e[n]!=null){var i=tn(e[n]);e.multiple&&!i?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Im()):!e.multiple&&i&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Im())}}}}function zs(e,t,n,i){var c=e.options;if(t){for(var f=n,g={},S=0;S<f.length;S++)g["$"+f[S]]=!0;for(var x=0;x<c.length;x++){var R=g.hasOwnProperty("$"+c[x].value);c[x].selected!==R&&(c[x].selected=R),R&&i&&(c[x].defaultSelected=!0)}}else{for(var O=Co(Il(n)),Q=null,X=0;X<c.length;X++){if(c[X].value===O){c[X].selected=!0,i&&(c[X].defaultSelected=!0);return}Q===null&&!c[X].disabled&&(Q=c[X])}Q!==null&&(Q.selected=!0)}}function hp(e,t){return Pt({},t,{value:void 0})}function Vw(e,t){var n=e;X_(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!Pd&&(u("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Pd=!0)}function U7(e,t){var n=e;n.multiple=!!t.multiple;var i=t.value;i!=null?zs(n,!!t.multiple,i,!1):t.defaultValue!=null&&zs(n,!!t.multiple,t.defaultValue,!0)}function V7(e,t){var n=e,i=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var c=t.value;c!=null?zs(n,!!t.multiple,c,!1):i!==!!t.multiple&&(t.defaultValue!=null?zs(n,!!t.multiple,t.defaultValue,!0):zs(n,!!t.multiple,t.multiple?[]:"",!1))}function W7(e,t){var n=e,i=t.value;i!=null&&zs(n,!!t.multiple,i,!1)}var Ww=!1;function J_(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var i=Pt({},t,{value:void 0,defaultValue:void 0,children:Co(n._wrapperState.initialValue)});return i}function Yw(e,t){var n=e;cp("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Ww&&(u("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Nu()||"A component"),Ww=!0);var i=t.value;if(i==null){var c=t.children,f=t.defaultValue;if(c!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(f!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(tn(c)){if(c.length>1)throw new Error("<textarea> can only have at most one child.");c=c[0]}f=c}}f==null&&(f=""),i=f}n._wrapperState={initialValue:Il(i)}}function $w(e,t){var n=e,i=Il(t.value),c=Il(t.defaultValue);if(i!=null){var f=Co(i);f!==n.value&&(n.value=f),t.defaultValue==null&&n.defaultValue!==f&&(n.defaultValue=f)}c!=null&&(n.defaultValue=Co(c))}function Gw(e,t){var n=e,i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function Y7(e,t){$w(e,t)}var Hs="http://www.w3.org/1999/xhtml",$7="http://www.w3.org/1998/Math/MathML",Q_="http://www.w3.org/2000/svg";function Z_(e){switch(e){case"svg":return Q_;case"math":return $7;default:return Hs}}function eb(e,t){return e==null||e===Hs?Z_(t):e===Q_&&t==="foreignObject"?Hs:e}var G7=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,i,c){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,c)})}:e},Pm,qw=G7(function(e,t){if(e.namespaceURI===Q_&&!("innerHTML"in e)){Pm=Pm||document.createElement("div"),Pm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Pm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),xo=1,js=3,Gr=8,Us=9,tb=11,Mm=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===js){n.nodeValue=t;return}}e.textContent=t},q7={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},mp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function K7(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var X7=["Webkit","ms","Moz","O"];Object.keys(mp).forEach(function(e){X7.forEach(function(t){mp[K7(t,e)]=mp[e]})});function ab(e,t,n){var i=t==null||typeof t=="boolean"||t==="";return i?"":!n&&typeof t=="number"&&t!==0&&!(mp.hasOwnProperty(e)&&mp[e])?t+"px":(rr(t,e),(""+t).trim())}var J7=/([A-Z])/g,Q7=/^ms-/;function Z7(e){return e.replace(J7,"-$1").toLowerCase().replace(Q7,"-ms-")}var Kw=function(){};{var eI=/^(?:webkit|moz|o)[A-Z]/,tI=/^-ms-/,aI=/-(.)/g,Xw=/;\s*$/,Md={},rb={},Jw=!1,Qw=!1,rI=function(e){return e.replace(aI,function(t,n){return n.toUpperCase()})},nI=function(e){Md.hasOwnProperty(e)&&Md[e]||(Md[e]=!0,u("Unsupported style property %s. Did you mean %s?",e,rI(e.replace(tI,"ms-"))))},oI=function(e){Md.hasOwnProperty(e)&&Md[e]||(Md[e]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},iI=function(e,t){rb.hasOwnProperty(t)&&rb[t]||(rb[t]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Xw,"")))},lI=function(e,t){Jw||(Jw=!0,u("`NaN` is an invalid value for the `%s` css style property.",e))},sI=function(e,t){Qw||(Qw=!0,u("`Infinity` is an invalid value for the `%s` css style property.",e))};Kw=function(e,t){e.indexOf("-")>-1?nI(e):eI.test(e)?oI(e):Xw.test(t)&&iI(e,t),typeof t=="number"&&(isNaN(t)?lI(e,t):isFinite(t)||sI(e,t))}}var uI=Kw;function cI(e){{var t="",n="";for(var i in e)if(e.hasOwnProperty(i)){var c=e[i];if(c!=null){var f=i.indexOf("--")===0;t+=n+(f?i:Z7(i))+":",t+=ab(i,c,f),n=";"}}return t||null}}function Zw(e,t){var n=e.style;for(var i in t)if(t.hasOwnProperty(i)){var c=i.indexOf("--")===0;c||uI(i,t[i]);var f=ab(i,t[i],c);i==="float"&&(i="cssFloat"),c?n.setProperty(i,f):n[i]=f}}function dI(e){return e==null||typeof e=="boolean"||e===""}function eC(e){var t={};for(var n in e)for(var i=q7[n]||[n],c=0;c<i.length;c++)t[i[c]]=n;return t}function fI(e,t){{if(!t)return;var n=eC(e),i=eC(t),c={};for(var f in n){var g=n[f],S=i[f];if(S&&g!==S){var x=g+","+S;if(c[x])continue;c[x]=!0,u("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",dI(e[g])?"Removing":"Updating",g,S)}}}}var pI={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},hI=Pt({menuitem:!0},pI),mI="__html";function nb(e,t){if(t){if(hI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(mI in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&u("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function kc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fm={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},tC={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Fd={},vI=new RegExp("^(aria)-["+ct+"]*$"),gI=new RegExp("^(aria)[A-Z]["+ct+"]*$");function _I(e,t){{if(zt.call(Fd,t)&&Fd[t])return!0;if(gI.test(t)){var n="aria-"+t.slice(4).toLowerCase(),i=tC.hasOwnProperty(n)?n:null;if(i==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Fd[t]=!0,!0;if(t!==i)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,i),Fd[t]=!0,!0}if(vI.test(t)){var c=t.toLowerCase(),f=tC.hasOwnProperty(c)?c:null;if(f==null)return Fd[t]=!0,!1;if(t!==f)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,f),Fd[t]=!0,!0}}return!0}function bI(e,t){{var n=[];for(var i in t){var c=_I(e,i);c||n.push(i)}var f=n.map(function(g){return"`"+g+"`"}).join(", ");n.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",f,e):n.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",f,e)}}function yI(e,t){kc(e,t)||bI(e,t)}var aC=!1;function SI(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!aC&&(aC=!0,e==="select"&&t.multiple?u("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var rC=function(){};{var eo={},nC=/^on./,wI=/^on[^A-Z]/,CI=new RegExp("^(aria)-["+ct+"]*$"),xI=new RegExp("^(aria)[A-Z]["+ct+"]*$");rC=function(e,t,n,i){if(zt.call(eo,t)&&eo[t])return!0;var c=t.toLowerCase();if(c==="onfocusin"||c==="onfocusout")return u("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),eo[t]=!0,!0;if(i!=null){var f=i.registrationNameDependencies,g=i.possibleRegistrationNames;if(f.hasOwnProperty(t))return!0;var S=g.hasOwnProperty(c)?g[c]:null;if(S!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",t,S),eo[t]=!0,!0;if(nC.test(t))return u("Unknown event handler property `%s`. It will be ignored.",t),eo[t]=!0,!0}else if(nC.test(t))return wI.test(t)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),eo[t]=!0,!0;if(CI.test(t)||xI.test(t))return!0;if(c==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),eo[t]=!0,!0;if(c==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),eo[t]=!0,!0;if(c==="is"&&n!==null&&n!==void 0&&typeof n!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),eo[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),eo[t]=!0,!0;var x=te(t),R=x!==null&&x.type===Oa;if(Fm.hasOwnProperty(c)){var O=Fm[c];if(O!==t)return u("Invalid DOM property `%s`. Did you mean `%s`?",t,O),eo[t]=!0,!0}else if(!R&&t!==c)return u("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,c),eo[t]=!0,!0;return typeof n=="boolean"&&Ka(t,n,x,!1)?(n?u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),eo[t]=!0,!0):R?!0:Ka(t,n,x,!1)?(eo[t]=!0,!1):((n==="false"||n==="true")&&x!==null&&x.type===da&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),eo[t]=!0),!0)}}var TI=function(e,t,n){{var i=[];for(var c in t){var f=rC(e,c,t[c],n);f||i.push(c)}var g=i.map(function(S){return"`"+S+"`"}).join(", ");i.length===1?u("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",g,e):i.length>1&&u("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",g,e)}};function kI(e,t,n){kc(e,t)||TI(e,t,n)}var oC=1,ob=2,vp=4,EI=oC|ob|vp,gp=null;function RI(e){gp!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),gp=e}function DI(){gp===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),gp=null}function AI(e){return e===gp}function ib(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===js?t.parentNode:t}var lb=null,zd=null,Hd=null;function iC(e){var t=Uu(e);if(t){if(typeof lb!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var i=Sv(n);lb(t.stateNode,t.type,i)}}}function LI(e){lb=e}function lC(e){zd?Hd?Hd.push(e):Hd=[e]:zd=e}function BI(){return zd!==null||Hd!==null}function sC(){if(zd){var e=zd,t=Hd;if(zd=null,Hd=null,iC(e),t)for(var n=0;n<t.length;n++)iC(t[n])}}var uC=function(e,t){return e(t)},cC=function(){},sb=!1;function NI(){var e=BI();e&&(cC(),sC())}function dC(e,t,n){if(sb)return e(t,n);sb=!0;try{return uC(e,t,n)}finally{sb=!1,NI()}}function OI(e,t,n){uC=e,cC=n}function II(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function PI(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(n.disabled&&II(t));default:return!1}}function _p(e,t){var n=e.stateNode;if(n===null)return null;var i=Sv(n);if(i===null)return null;var c=i[t];if(PI(t,e.type,i))return null;if(c&&typeof c!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof c+"` type.");return c}var ub=!1;if(wt)try{var bp={};Object.defineProperty(bp,"passive",{get:function(){ub=!0}}),window.addEventListener("test",bp,bp),window.removeEventListener("test",bp,bp)}catch(e){ub=!1}function fC(e,t,n,i,c,f,g,S,x){var R=Array.prototype.slice.call(arguments,3);try{t.apply(n,R)}catch(O){this.onError(O)}}var pC=fC;if(typeof window!="undefined"&&typeof window.dispatchEvent=="function"&&typeof document!="undefined"&&typeof document.createEvent=="function"){var cb=document.createElement("react");pC=function(t,n,i,c,f,g,S,x,R){if(typeof document=="undefined"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var O=document.createEvent("Event"),Q=!1,X=!0,ye=window.event,Se=Object.getOwnPropertyDescriptor(window,"event");function xe(){cb.removeEventListener(De,Nt,!1),typeof window.event!="undefined"&&window.hasOwnProperty("event")&&(window.event=ye)}var it=Array.prototype.slice.call(arguments,3);function Nt(){Q=!0,xe(),n.apply(i,it),X=!1}var kt,fa=!1,pa=!1;function se(ue){if(kt=ue.error,fa=!0,kt===null&&ue.colno===0&&ue.lineno===0&&(pa=!0),ue.defaultPrevented&&kt!=null&&typeof kt=="object")try{kt._suppressLogging=!0}catch(qe){}}var De="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",se),cb.addEventListener(De,Nt,!1),O.initEvent(De,!1,!1),cb.dispatchEvent(O),Se&&Object.defineProperty(window,"event",Se),Q&&X&&(fa?pa&&(kt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):kt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(kt)),window.removeEventListener("error",se),!Q)return xe(),fC.apply(this,arguments)}}var MI=pC,jd=!1,zm=null,Hm=!1,db=null,FI={onError:function(e){jd=!0,zm=e}};function fb(e,t,n,i,c,f,g,S,x){jd=!1,zm=null,MI.apply(FI,arguments)}function zI(e,t,n,i,c,f,g,S,x){if(fb.apply(this,arguments),jd){var R=pb();Hm||(Hm=!0,db=R)}}function HI(){if(Hm){var e=db;throw Hm=!1,db=null,e}}function jI(){return jd}function pb(){if(jd){var e=zm;return jd=!1,zm=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Ud(e){return e._reactInternals}function UI(e){return e._reactInternals!==void 0}function VI(e,t){e._reactInternals=t}var jt=0,Vd=1,qr=2,ka=4,Ec=16,yp=32,hb=64,Ma=128,Vs=256,Iu=512,Rc=1024,Pl=2048,Ws=4096,Dc=8192,jm=16384,WI=Pl|ka|hb|Iu|Rc|jm,YI=32767,Sp=32768,to=65536,mb=131072,hC=1048576,vb=2097152,Ac=4194304,gb=8388608,Ys=16777216,Um=33554432,_b=ka|Rc|0,bb=qr|ka|Ec|yp|Iu|Ws|Dc,wp=ka|hb|Iu|Dc,Wd=Pl|Ec,$s=Ac|gb|vb,$I=o.ReactCurrentOwner;function Lc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var i=t;do t=i,(t.flags&(qr|Ws))!==jt&&(n=t.return),i=t.return;while(i)}return t.tag===b?n:null}function mC(e){if(e.tag===K){var t=e.memoizedState;if(t===null){var n=e.alternate;n!==null&&(t=n.memoizedState)}if(t!==null)return t.dehydrated}return null}function vC(e){return e.tag===b?e.stateNode.containerInfo:null}function GI(e){return Lc(e)===e}function qI(e){{var t=$I.current;if(t!==null&&t.tag===v){var n=t,i=n.stateNode;i._warnedAboutRefsInRender||u("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",na(n)||"A component"),i._warnedAboutRefsInRender=!0}}var c=Ud(e);return c?Lc(c)===c:!1}function gC(e){if(Lc(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function _C(e){var t=e.alternate;if(!t){var n=Lc(e);if(n===null)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var i=e,c=t;;){var f=i.return;if(f===null)break;var g=f.alternate;if(g===null){var S=f.return;if(S!==null){i=c=S;continue}break}if(f.child===g.child){for(var x=f.child;x;){if(x===i)return gC(f),e;if(x===c)return gC(f),t;x=x.sibling}throw new Error("Unable to find node on an unmounted component.")}if(i.return!==c.return)i=f,c=g;else{for(var R=!1,O=f.child;O;){if(O===i){R=!0,i=f,c=g;break}if(O===c){R=!0,c=f,i=g;break}O=O.sibling}if(!R){for(O=g.child;O;){if(O===i){R=!0,i=g,c=f;break}if(O===c){R=!0,c=g,i=f;break}O=O.sibling}if(!R)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(i.alternate!==c)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(i.tag!==b)throw new Error("Unable to find node on an unmounted component.");return i.stateNode.current===i?e:t}function bC(e){var t=_C(e);return t!==null?yC(t):null}function yC(e){if(e.tag===w||e.tag===T)return e;for(var t=e.child;t!==null;){var n=yC(t);if(n!==null)return n;t=t.sibling}return null}function KI(e){var t=_C(e);return t!==null?SC(t):null}function SC(e){if(e.tag===w||e.tag===T)return e;for(var t=e.child;t!==null;){if(t.tag!==C){var n=SC(t);if(n!==null)return n}t=t.sibling}return null}var wC=r.unstable_scheduleCallback,XI=r.unstable_cancelCallback,JI=r.unstable_shouldYield,QI=r.unstable_requestPaint,vn=r.unstable_now,ZI=r.unstable_getCurrentPriorityLevel,Vm=r.unstable_ImmediatePriority,yb=r.unstable_UserBlockingPriority,Bc=r.unstable_NormalPriority,eP=r.unstable_LowPriority,Sb=r.unstable_IdlePriority,tP=r.unstable_yieldValue,aP=r.unstable_setDisableYieldValue,Nc=null,xn=null,dt=null,ps=!1,Ml=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined";function rP(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return u("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{ze&&(e=Pt({},e,{getLaneLabelMap:uP,injectProfilingHooks:sP})),Nc=t.inject(e),xn=t}catch(n){u("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function nP(e,t){if(xn&&typeof xn.onScheduleFiberRoot=="function")try{xn.onScheduleFiberRoot(Nc,e,t)}catch(n){ps||(ps=!0,u("React instrumentation encountered an error: %s",n))}}function oP(e,t){if(xn&&typeof xn.onCommitFiberRoot=="function")try{var n=(e.current.flags&Ma)===Ma;if(pt){var i;switch(t){case jo:i=Vm;break;case qs:i=yb;break;case Ks:i=Bc;break;case Xm:i=Sb;break;default:i=Bc;break}xn.onCommitFiberRoot(Nc,e,i,n)}else xn.onCommitFiberRoot(Nc,e,void 0,n)}catch(c){ps||(ps=!0,u("React instrumentation encountered an error: %s",c))}}function iP(e){if(xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(Nc,e)}catch(t){ps||(ps=!0,u("React instrumentation encountered an error: %s",t))}}function lP(e){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Nc,e)}catch(t){ps||(ps=!0,u("React instrumentation encountered an error: %s",t))}}function gn(e){if(typeof tP=="function"&&(aP(e),s(e)),xn&&typeof xn.setStrictMode=="function")try{xn.setStrictMode(Nc,e)}catch(t){ps||(ps=!0,u("React instrumentation encountered an error: %s",t))}}function sP(e){dt=e}function uP(){{for(var e=new Map,t=1,n=0;n<Cb;n++){var i=DP(t);e.set(t,i),t*=2}return e}}function cP(e){dt!==null&&typeof dt.markCommitStarted=="function"&&dt.markCommitStarted(e)}function CC(){dt!==null&&typeof dt.markCommitStopped=="function"&&dt.markCommitStopped()}function Cp(e){dt!==null&&typeof dt.markComponentRenderStarted=="function"&&dt.markComponentRenderStarted(e)}function Yd(){dt!==null&&typeof dt.markComponentRenderStopped=="function"&&dt.markComponentRenderStopped()}function dP(e){dt!==null&&typeof dt.markComponentPassiveEffectMountStarted=="function"&&dt.markComponentPassiveEffectMountStarted(e)}function fP(){dt!==null&&typeof dt.markComponentPassiveEffectMountStopped=="function"&&dt.markComponentPassiveEffectMountStopped()}function pP(e){dt!==null&&typeof dt.markComponentPassiveEffectUnmountStarted=="function"&&dt.markComponentPassiveEffectUnmountStarted(e)}function hP(){dt!==null&&typeof dt.markComponentPassiveEffectUnmountStopped=="function"&&dt.markComponentPassiveEffectUnmountStopped()}function mP(e){dt!==null&&typeof dt.markComponentLayoutEffectMountStarted=="function"&&dt.markComponentLayoutEffectMountStarted(e)}function vP(){dt!==null&&typeof dt.markComponentLayoutEffectMountStopped=="function"&&dt.markComponentLayoutEffectMountStopped()}function xC(e){dt!==null&&typeof dt.markComponentLayoutEffectUnmountStarted=="function"&&dt.markComponentLayoutEffectUnmountStarted(e)}function TC(){dt!==null&&typeof dt.markComponentLayoutEffectUnmountStopped=="function"&&dt.markComponentLayoutEffectUnmountStopped()}function gP(e,t,n){dt!==null&&typeof dt.markComponentErrored=="function"&&dt.markComponentErrored(e,t,n)}function _P(e,t,n){dt!==null&&typeof dt.markComponentSuspended=="function"&&dt.markComponentSuspended(e,t,n)}function bP(e){dt!==null&&typeof dt.markLayoutEffectsStarted=="function"&&dt.markLayoutEffectsStarted(e)}function yP(){dt!==null&&typeof dt.markLayoutEffectsStopped=="function"&&dt.markLayoutEffectsStopped()}function SP(e){dt!==null&&typeof dt.markPassiveEffectsStarted=="function"&&dt.markPassiveEffectsStarted(e)}function wP(){dt!==null&&typeof dt.markPassiveEffectsStopped=="function"&&dt.markPassiveEffectsStopped()}function kC(e){dt!==null&&typeof dt.markRenderStarted=="function"&&dt.markRenderStarted(e)}function CP(){dt!==null&&typeof dt.markRenderYielded=="function"&&dt.markRenderYielded()}function EC(){dt!==null&&typeof dt.markRenderStopped=="function"&&dt.markRenderStopped()}function xP(e){dt!==null&&typeof dt.markRenderScheduled=="function"&&dt.markRenderScheduled(e)}function TP(e,t){dt!==null&&typeof dt.markForceUpdateScheduled=="function"&&dt.markForceUpdateScheduled(e,t)}function wb(e,t){dt!==null&&typeof dt.markStateUpdateScheduled=="function"&&dt.markStateUpdateScheduled(e,t)}var Ft=0,ba=1,Qa=2,Nr=8,hs=16,RC=Math.clz32?Math.clz32:RP,kP=Math.log,EP=Math.LN2;function RP(e){var t=e>>>0;return t===0?32:31-(kP(t)/EP|0)|0}var Cb=31,je=0,_n=0,Jt=1,$d=2,Gs=4,Oc=8,ms=16,xp=32,Gd=4194240,Tp=64,xb=128,Tb=256,kb=512,Eb=1024,Rb=2048,Db=4096,Ab=8192,Lb=16384,Bb=32768,Nb=65536,Ob=131072,Ib=262144,Pb=524288,Mb=1048576,Fb=2097152,Wm=130023424,qd=4194304,zb=8388608,Hb=16777216,jb=33554432,Ub=67108864,DC=qd,kp=134217728,AC=268435455,Ep=268435456,Ic=536870912,zo=1073741824;function DP(e){{if(e&Jt)return"Sync";if(e&$d)return"InputContinuousHydration";if(e&Gs)return"InputContinuous";if(e&Oc)return"DefaultHydration";if(e&ms)return"Default";if(e&xp)return"TransitionHydration";if(e&Gd)return"Transition";if(e&Wm)return"Retry";if(e&kp)return"SelectiveHydration";if(e&Ep)return"IdleHydration";if(e&Ic)return"Idle";if(e&zo)return"Offscreen"}}var gr=-1,Ym=Tp,$m=qd;function Rp(e){switch(Pc(e)){case Jt:return Jt;case $d:return $d;case Gs:return Gs;case Oc:return Oc;case ms:return ms;case xp:return xp;case Tp:case xb:case Tb:case kb:case Eb:case Rb:case Db:case Ab:case Lb:case Bb:case Nb:case Ob:case Ib:case Pb:case Mb:case Fb:return e&Gd;case qd:case zb:case Hb:case jb:case Ub:return e&Wm;case kp:return kp;case Ep:return Ep;case Ic:return Ic;case zo:return zo;default:return u("Should have found matching lanes. This is a bug in React."),e}}function Gm(e,t){var n=e.pendingLanes;if(n===je)return je;var i=je,c=e.suspendedLanes,f=e.pingedLanes,g=n&AC;if(g!==je){var S=g&~c;if(S!==je)i=Rp(S);else{var x=g&f;x!==je&&(i=Rp(x))}}else{var R=n&~c;R!==je?i=Rp(R):f!==je&&(i=Rp(f))}if(i===je)return je;if(t!==je&&t!==i&&(t&c)===je){var O=Pc(i),Q=Pc(t);if(O>=Q||O===ms&&(Q&Gd)!==je)return t}(i&Gs)!==je&&(i|=n&ms);var X=e.entangledLanes;if(X!==je)for(var ye=e.entanglements,Se=i&X;Se>0;){var xe=Mc(Se),it=1<<xe;i|=ye[xe],Se&=~it}return i}function AP(e,t){for(var n=e.eventTimes,i=gr;t>0;){var c=Mc(t),f=1<<c,g=n[c];g>i&&(i=g),t&=~f}return i}function LP(e,t){switch(e){case Jt:case $d:case Gs:return t+250;case Oc:case ms:case xp:case Tp:case xb:case Tb:case kb:case Eb:case Rb:case Db:case Ab:case Lb:case Bb:case Nb:case Ob:case Ib:case Pb:case Mb:case Fb:return t+5e3;case qd:case zb:case Hb:case jb:case Ub:return gr;case kp:case Ep:case Ic:case zo:return gr;default:return u("Should have found matching lanes. This is a bug in React."),gr}}function BP(e,t){for(var n=e.pendingLanes,i=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,g=n;g>0;){var S=Mc(g),x=1<<S,R=f[S];R===gr?((x&i)===je||(x&c)!==je)&&(f[S]=LP(x,t)):R<=t&&(e.expiredLanes|=x),g&=~x}}function NP(e){return Rp(e.pendingLanes)}function Vb(e){var t=e.pendingLanes&~zo;return t!==je?t:t&zo?zo:je}function OP(e){return(e&Jt)!==je}function Wb(e){return(e&AC)!==je}function LC(e){return(e&Wm)===e}function IP(e){var t=Jt|Gs|ms;return(e&t)===je}function PP(e){return(e&Gd)===e}function qm(e,t){var n=$d|Gs|Oc|ms;return(t&n)!==je}function MP(e,t){return(t&e.expiredLanes)!==je}function BC(e){return(e&Gd)!==je}function NC(){var e=Ym;return Ym<<=1,(Ym&Gd)===je&&(Ym=Tp),e}function FP(){var e=$m;return $m<<=1,($m&Wm)===je&&($m=qd),e}function Pc(e){return e&-e}function Dp(e){return Pc(e)}function Mc(e){return 31-RC(e)}function Yb(e){return Mc(e)}function Ho(e,t){return(e&t)!==je}function Kd(e,t){return(e&t)===t}function ua(e,t){return e|t}function Km(e,t){return e&~t}function OC(e,t){return e&t}function kG(e){return e}function zP(e,t){return e!==_n&&e<t?e:t}function $b(e){for(var t=[],n=0;n<Cb;n++)t.push(e);return t}function Ap(e,t,n){e.pendingLanes|=t,t!==Ic&&(e.suspendedLanes=je,e.pingedLanes=je);var i=e.eventTimes,c=Yb(t);i[c]=n}function HP(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,i=t;i>0;){var c=Mc(i),f=1<<c;n[c]=gr,i&=~f}}function IC(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function jP(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=je,e.pingedLanes=je,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var i=e.entanglements,c=e.eventTimes,f=e.expirationTimes,g=n;g>0;){var S=Mc(g),x=1<<S;i[S]=je,c[S]=gr,f[S]=gr,g&=~x}}function Gb(e,t){for(var n=e.entangledLanes|=t,i=e.entanglements,c=n;c;){var f=Mc(c),g=1<<f;g&t|i[f]&t&&(i[f]|=t),c&=~g}}function UP(e,t){var n=Pc(t),i;switch(n){case Gs:i=$d;break;case ms:i=Oc;break;case Tp:case xb:case Tb:case kb:case Eb:case Rb:case Db:case Ab:case Lb:case Bb:case Nb:case Ob:case Ib:case Pb:case Mb:case Fb:case qd:case zb:case Hb:case jb:case Ub:i=xp;break;case Ic:i=Ep;break;default:i=_n;break}return(i&(e.suspendedLanes|t))!==_n?_n:i}function PC(e,t,n){if(Ml)for(var i=e.pendingUpdatersLaneMap;n>0;){var c=Yb(n),f=1<<c,g=i[c];g.add(t),n&=~f}}function MC(e,t){if(Ml)for(var n=e.pendingUpdatersLaneMap,i=e.memoizedUpdaters;t>0;){var c=Yb(t),f=1<<c,g=n[c];g.size>0&&(g.forEach(function(S){var x=S.alternate;(x===null||!i.has(x))&&i.add(S)}),g.clear()),t&=~f}}function FC(e,t){return null}var jo=Jt,qs=Gs,Ks=ms,Xm=Ic,Lp=_n;function Fl(){return Lp}function bn(e){Lp=e}function VP(e,t){var n=Lp;try{return Lp=e,t()}finally{Lp=n}}function WP(e,t){return e!==0&&e<t?e:t}function YP(e,t){return e===0||e>t?e:t}function qb(e,t){return e!==0&&e<t}function zC(e){var t=Pc(e);return qb(jo,t)?qb(qs,t)?Wb(t)?Ks:Xm:qs:jo}function Jm(e){var t=e.current.memoizedState;return t.isDehydrated}var HC;function $P(e){HC=e}function GP(e){HC(e)}var Kb;function qP(e){Kb=e}var jC;function KP(e){jC=e}var UC;function XP(e){UC=e}var VC;function JP(e){VC=e}var Xb=!1,Qm=[],Pu=null,Mu=null,Fu=null,Bp=new Map,Np=new Map,zu=[],QP=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function ZP(e){return QP.indexOf(e)>-1}function eM(e,t,n,i,c){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:c,targetContainers:[i]}}function WC(e,t){switch(e){case"focusin":case"focusout":Pu=null;break;case"dragenter":case"dragleave":Mu=null;break;case"mouseover":case"mouseout":Fu=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Bp.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var i=t.pointerId;Np.delete(i);break}}}function Op(e,t,n,i,c,f){if(e===null||e.nativeEvent!==f){var g=eM(t,n,i,c,f);if(t!==null){var S=Uu(t);S!==null&&Kb(S)}return g}e.eventSystemFlags|=i;var x=e.targetContainers;return c!==null&&x.indexOf(c)===-1&&x.push(c),e}function tM(e,t,n,i,c){switch(t){case"focusin":{var f=c;return Pu=Op(Pu,e,t,n,i,f),!0}case"dragenter":{var g=c;return Mu=Op(Mu,e,t,n,i,g),!0}case"mouseover":{var S=c;return Fu=Op(Fu,e,t,n,i,S),!0}case"pointerover":{var x=c,R=x.pointerId;return Bp.set(R,Op(Bp.get(R)||null,e,t,n,i,x)),!0}case"gotpointercapture":{var O=c,Q=O.pointerId;return Np.set(Q,Op(Np.get(Q)||null,e,t,n,i,O)),!0}}return!1}function YC(e){var t=Hc(e.target);if(t!==null){var n=Lc(t);if(n!==null){var i=n.tag;if(i===K){var c=mC(n);if(c!==null){e.blockedOn=c,VC(e.priority,function(){jC(n)});return}}else if(i===b){var f=n.stateNode;if(Jm(f)){e.blockedOn=vC(n);return}}}}e.blockedOn=null}function aM(e){for(var t=UC(),n={blockedOn:null,target:e,priority:t},i=0;i<zu.length&&qb(t,zu[i].priority);i++);zu.splice(i,0,n),i===0&&YC(n)}function Zm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],i=Zb(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(i===null){var c=e.nativeEvent,f=new c.constructor(c.type,c);RI(f),c.target.dispatchEvent(f),DI()}else{var g=Uu(i);return g!==null&&Kb(g),e.blockedOn=i,!1}t.shift()}return!0}function $C(e,t,n){Zm(e)&&n.delete(t)}function rM(){Xb=!1,Pu!==null&&Zm(Pu)&&(Pu=null),Mu!==null&&Zm(Mu)&&(Mu=null),Fu!==null&&Zm(Fu)&&(Fu=null),Bp.forEach($C),Np.forEach($C)}function Ip(e,t){e.blockedOn===t&&(e.blockedOn=null,Xb||(Xb=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,rM)))}function Pp(e){if(Qm.length>0){Ip(Qm[0],e);for(var t=1;t<Qm.length;t++){var n=Qm[t];n.blockedOn===e&&(n.blockedOn=null)}}Pu!==null&&Ip(Pu,e),Mu!==null&&Ip(Mu,e),Fu!==null&&Ip(Fu,e);var i=function(S){return Ip(S,e)};Bp.forEach(i),Np.forEach(i);for(var c=0;c<zu.length;c++){var f=zu[c];f.blockedOn===e&&(f.blockedOn=null)}for(;zu.length>0;){var g=zu[0];if(g.blockedOn!==null)break;YC(g),g.blockedOn===null&&zu.shift()}}var Xd=o.ReactCurrentBatchConfig,Jb=!0;function GC(e){Jb=!!e}function nM(){return Jb}function oM(e,t,n){var i=qC(t),c;switch(i){case jo:c=iM;break;case qs:c=lM;break;case Ks:default:c=Qb;break}return c.bind(null,t,n,e)}function iM(e,t,n,i){var c=Fl(),f=Xd.transition;Xd.transition=null;try{bn(jo),Qb(e,t,n,i)}finally{bn(c),Xd.transition=f}}function lM(e,t,n,i){var c=Fl(),f=Xd.transition;Xd.transition=null;try{bn(qs),Qb(e,t,n,i)}finally{bn(c),Xd.transition=f}}function Qb(e,t,n,i){Jb&&sM(e,t,n,i)}function sM(e,t,n,i){var c=Zb(e,t,n,i);if(c===null){p1(e,t,i,ev,n),WC(e,i);return}if(tM(c,e,t,n,i)){i.stopPropagation();return}if(WC(e,i),t&vp&&ZP(e)){for(;c!==null;){var f=Uu(c);f!==null&&GP(f);var g=Zb(e,t,n,i);if(g===null&&p1(e,t,i,ev,n),g===c)break;c=g}c!==null&&i.stopPropagation();return}p1(e,t,i,null,n)}var ev=null;function Zb(e,t,n,i){ev=null;var c=ib(i),f=Hc(c);if(f!==null){var g=Lc(f);if(g===null)f=null;else{var S=g.tag;if(S===K){var x=mC(g);if(x!==null)return x;f=null}else if(S===b){var R=g.stateNode;if(Jm(R))return vC(g);f=null}else g!==f&&(f=null)}}return ev=f,null}function qC(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return jo;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return qs;case"message":{var t=ZI();switch(t){case Vm:return jo;case yb:return qs;case Bc:case eP:return Ks;case Sb:return Xm;default:return Ks}}default:return Ks}}function uM(e,t,n){return e.addEventListener(t,n,!1),n}function cM(e,t,n){return e.addEventListener(t,n,!0),n}function dM(e,t,n,i){return e.addEventListener(t,n,{capture:!0,passive:i}),n}function fM(e,t,n,i){return e.addEventListener(t,n,{passive:i}),n}var Mp=null,e1=null,Fp=null;function pM(e){return Mp=e,e1=XC(),!0}function hM(){Mp=null,e1=null,Fp=null}function KC(){if(Fp)return Fp;var e,t=e1,n=t.length,i,c=XC(),f=c.length;for(e=0;e<n&&t[e]===c[e];e++);var g=n-e;for(i=1;i<=g&&t[n-i]===c[f-i];i++);var S=i>1?1-i:void 0;return Fp=c.slice(e,S),Fp}function XC(){return"value"in Mp?Mp.value:Mp.textContent}function tv(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),t>=32||t===13?t:0}function av(){return!0}function JC(){return!1}function Uo(e){function t(n,i,c,f,g){this._reactName=n,this._targetInst=c,this.type=i,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var S in e)if(e.hasOwnProperty(S)){var x=e[S];x?this[S]=x(f):this[S]=f[S]}var R=f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1;return R?this.isDefaultPrevented=av:this.isDefaultPrevented=JC,this.isPropagationStopped=JC,this}return Pt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=av)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=av)},persist:function(){},isPersistent:av}),t}var Jd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},t1=Uo(Jd),zp=Pt({},Jd,{view:0,detail:0}),mM=Uo(zp),a1,r1,Hp;function vM(e){e!==Hp&&(Hp&&e.type==="mousemove"?(a1=e.screenX-Hp.screenX,r1=e.screenY-Hp.screenY):(a1=0,r1=0),Hp=e)}var rv=Pt({},zp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:o1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(vM(e),a1)},movementY:function(e){return"movementY"in e?e.movementY:r1}}),QC=Uo(rv),gM=Pt({},rv,{dataTransfer:0}),_M=Uo(gM),bM=Pt({},zp,{relatedTarget:0}),n1=Uo(bM),yM=Pt({},Jd,{animationName:0,elapsedTime:0,pseudoElement:0}),SM=Uo(yM),wM=Pt({},Jd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CM=Uo(wM),xM=Pt({},Jd,{data:0}),ZC=Uo(xM),TM=ZC,kM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EM={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function RM(e){if(e.key){var t=kM[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=tv(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?EM[e.keyCode]||"Unidentified":""}var DM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function AM(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var i=DM[e];return i?!!n[i]:!1}function o1(e){return AM}var LM=Pt({},zp,{key:RM,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:o1,charCode:function(e){return e.type==="keypress"?tv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BM=Uo(LM),NM=Pt({},rv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),e3=Uo(NM),OM=Pt({},zp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:o1}),IM=Uo(OM),PM=Pt({},Jd,{propertyName:0,elapsedTime:0,pseudoElement:0}),MM=Uo(PM),FM=Pt({},rv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zM=Uo(FM),HM=[9,13,27,32],t3=229,i1=wt&&"CompositionEvent"in window,jp=null;wt&&"documentMode"in document&&(jp=document.documentMode);var jM=wt&&"TextEvent"in window&&!jp,a3=wt&&(!i1||jp&&jp>8&&jp<=11),r3=32,n3=String.fromCharCode(r3);function UM(){nt("onBeforeInput",["compositionend","keypress","textInput","paste"]),nt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),nt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),nt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var o3=!1;function VM(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function WM(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function YM(e,t){return e==="keydown"&&t.keyCode===t3}function i3(e,t){switch(e){case"keyup":return HM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==t3;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function l3(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function s3(e){return e.locale==="ko"}var Qd=!1;function $M(e,t,n,i,c){var f,g;if(i1?f=WM(t):Qd?i3(t,i)&&(f="onCompositionEnd"):YM(t,i)&&(f="onCompositionStart"),!f)return null;a3&&!s3(i)&&(!Qd&&f==="onCompositionStart"?Qd=pM(c):f==="onCompositionEnd"&&Qd&&(g=KC()));var S=sv(n,f);if(S.length>0){var x=new ZC(f,t,null,i,c);if(e.push({event:x,listeners:S}),g)x.data=g;else{var R=l3(i);R!==null&&(x.data=R)}}}function GM(e,t){switch(e){case"compositionend":return l3(t);case"keypress":var n=t.which;return n!==r3?null:(o3=!0,n3);case"textInput":var i=t.data;return i===n3&&o3?null:i;default:return null}}function qM(e,t){if(Qd){if(e==="compositionend"||!i1&&i3(e,t)){var n=KC();return hM(),Qd=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!VM(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return a3&&!s3(t)?null:t.data;default:return null}}function KM(e,t,n,i,c){var f;if(jM?f=GM(t,i):f=qM(t,i),!f)return null;var g=sv(n,"onBeforeInput");if(g.length>0){var S=new TM("onBeforeInput","beforeinput",null,i,c);e.push({event:S,listeners:g}),S.data=f}}function XM(e,t,n,i,c,f,g){$M(e,t,n,i,c),KM(e,t,n,i,c)}var JM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function u3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JM[e.type]:t==="textarea"}function QM(e){if(!wt)return!1;var t="on"+e,n=t in document;if(!n){var i=document.createElement("div");i.setAttribute(t,"return;"),n=typeof i[t]=="function"}return n}function ZM(){nt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function c3(e,t,n,i){lC(i);var c=sv(t,"onChange");if(c.length>0){var f=new t1("onChange","change",null,n,i);e.push({event:f,listeners:c})}}var Up=null,Vp=null;function eF(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function tF(e){var t=[];c3(t,Vp,e,ib(e)),dC(aF,t)}function aF(e){R3(e,0)}function nv(e){var t=nf(e);if(Nd(t))return e}function rF(e,t){if(e==="change")return t}var d3=!1;wt&&(d3=QM("input")&&(!document.documentMode||document.documentMode>9));function nF(e,t){Up=e,Vp=t,Up.attachEvent("onpropertychange",p3)}function f3(){Up&&(Up.detachEvent("onpropertychange",p3),Up=null,Vp=null)}function p3(e){e.propertyName==="value"&&nv(Vp)&&tF(e)}function oF(e,t,n){e==="focusin"?(f3(),nF(t,n)):e==="focusout"&&f3()}function iF(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nv(Vp)}function lF(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function sF(e,t){if(e==="click")return nv(t)}function uF(e,t){if(e==="input"||e==="change")return nv(t)}function cF(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Wa(e,"number",e.value)}function dF(e,t,n,i,c,f,g){var S=n?nf(n):window,x,R;if(eF(S)?x=rF:u3(S)?d3?x=uF:(x=iF,R=oF):lF(S)&&(x=sF),x){var O=x(t,n);if(O){c3(e,O,i,c);return}}R&&R(t,S,n),t==="focusout"&&cF(S)}function fF(){Le("onMouseEnter",["mouseout","mouseover"]),Le("onMouseLeave",["mouseout","mouseover"]),Le("onPointerEnter",["pointerout","pointerover"]),Le("onPointerLeave",["pointerout","pointerover"])}function pF(e,t,n,i,c,f,g){var S=t==="mouseover"||t==="pointerover",x=t==="mouseout"||t==="pointerout";if(S&&!AI(i)){var R=i.relatedTarget||i.fromElement;if(R&&(Hc(R)||nh(R)))return}if(!(!x&&!S)){var O;if(c.window===c)O=c;else{var Q=c.ownerDocument;Q?O=Q.defaultView||Q.parentWindow:O=window}var X,ye;if(x){var Se=i.relatedTarget||i.toElement;if(X=n,ye=Se?Hc(Se):null,ye!==null){var xe=Lc(ye);(ye!==xe||ye.tag!==w&&ye.tag!==T)&&(ye=null)}}else X=null,ye=n;if(X!==ye){var it=QC,Nt="onMouseLeave",kt="onMouseEnter",fa="mouse";(t==="pointerout"||t==="pointerover")&&(it=e3,Nt="onPointerLeave",kt="onPointerEnter",fa="pointer");var pa=X==null?O:nf(X),se=ye==null?O:nf(ye),De=new it(Nt,fa+"leave",X,i,c);De.target=pa,De.relatedTarget=se;var ue=null,qe=Hc(c);if(qe===n){var mt=new it(kt,fa+"enter",ye,i,c);mt.target=se,mt.relatedTarget=pa,ue=mt}MF(e,De,ue,X,ye)}}}function hF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vo=typeof Object.is=="function"?Object.is:hF;function Wp(e,t){if(Vo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var c=0;c<n.length;c++){var f=n[c];if(!zt.call(t,f)||!Vo(e[f],t[f]))return!1}return!0}function h3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mF(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function m3(e,t){for(var n=h3(e),i=0,c=0;n;){if(n.nodeType===js){if(c=i+n.textContent.length,i<=t&&c>=t)return{node:n,offset:t-i};i=c}n=h3(mF(n))}}function vF(e){var t=e.ownerDocument,n=t&&t.defaultView||window,i=n.getSelection&&n.getSelection();if(!i||i.rangeCount===0)return null;var c=i.anchorNode,f=i.anchorOffset,g=i.focusNode,S=i.focusOffset;try{c.nodeType,g.nodeType}catch(x){return null}return gF(e,c,f,g,S)}function gF(e,t,n,i,c){var f=0,g=-1,S=-1,x=0,R=0,O=e,Q=null;e:for(;;){for(var X=null;O===t&&(n===0||O.nodeType===js)&&(g=f+n),O===i&&(c===0||O.nodeType===js)&&(S=f+c),O.nodeType===js&&(f+=O.nodeValue.length),(X=O.firstChild)!==null;)Q=O,O=X;for(;;){if(O===e)break e;if(Q===t&&++x===n&&(g=f),Q===i&&++R===c&&(S=f),(X=O.nextSibling)!==null)break;O=Q,Q=O.parentNode}O=X}return g===-1||S===-1?null:{start:g,end:S}}function _F(e,t){var n=e.ownerDocument||document,i=n&&n.defaultView||window;if(i.getSelection){var c=i.getSelection(),f=e.textContent.length,g=Math.min(t.start,f),S=t.end===void 0?g:Math.min(t.end,f);if(!c.extend&&g>S){var x=S;S=g,g=x}var R=m3(e,g),O=m3(e,S);if(R&&O){if(c.rangeCount===1&&c.anchorNode===R.node&&c.anchorOffset===R.offset&&c.focusNode===O.node&&c.focusOffset===O.offset)return;var Q=n.createRange();Q.setStart(R.node,R.offset),c.removeAllRanges(),g>S?(c.addRange(Q),c.extend(O.node,O.offset)):(Q.setEnd(O.node,O.offset),c.addRange(Q))}}}function v3(e){return e&&e.nodeType===js}function g3(e,t){return!e||!t?!1:e===t?!0:v3(e)?!1:v3(t)?g3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function bF(e){return e&&e.ownerDocument&&g3(e.ownerDocument.documentElement,e)}function yF(e){try{return typeof e.contentWindow.location.href=="string"}catch(t){return!1}}function _3(){for(var e=window,t=Od();t instanceof e.HTMLIFrameElement;){if(yF(t))e=t.contentWindow;else return t;t=Od(e.document)}return t}function l1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function SF(){var e=_3();return{focusedElem:e,selectionRange:l1(e)?CF(e):null}}function wF(e){var t=_3(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&bF(n)){i!==null&&l1(n)&&xF(n,i);for(var c=[],f=n;f=f.parentNode;)f.nodeType===xo&&c.push({element:f,left:f.scrollLeft,top:f.scrollTop});typeof n.focus=="function"&&n.focus();for(var g=0;g<c.length;g++){var S=c[g];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}}function CF(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=vF(e),t||{start:0,end:0}}function xF(e,t){var n=t.start,i=t.end;i===void 0&&(i=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(i,e.value.length)):_F(e,t)}var TF=wt&&"documentMode"in document&&document.documentMode<=11;function kF(){nt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Zd=null,s1=null,Yp=null,u1=!1;function EF(e){if("selectionStart"in e&&l1(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,n=t.getSelection();return{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}function RF(e){return e.window===e?e.document:e.nodeType===Us?e:e.ownerDocument}function b3(e,t,n){var i=RF(n);if(!(u1||Zd==null||Zd!==Od(i))){var c=EF(Zd);if(!Yp||!Wp(Yp,c)){Yp=c;var f=sv(s1,"onSelect");if(f.length>0){var g=new t1("onSelect","select",null,t,n);e.push({event:g,listeners:f}),g.target=Zd}}}}function DF(e,t,n,i,c,f,g){var S=n?nf(n):window;switch(t){case"focusin":(u3(S)||S.contentEditable==="true")&&(Zd=S,s1=n,Yp=null);break;case"focusout":Zd=null,s1=null,Yp=null;break;case"mousedown":u1=!0;break;case"contextmenu":case"mouseup":case"dragend":u1=!1,b3(e,i,c);break;case"selectionchange":if(TF)break;case"keydown":case"keyup":b3(e,i,c)}}function ov(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ef={animationend:ov("Animation","AnimationEnd"),animationiteration:ov("Animation","AnimationIteration"),animationstart:ov("Animation","AnimationStart"),transitionend:ov("Transition","TransitionEnd")},c1={},y3={};wt&&(y3=document.createElement("div").style,"AnimationEvent"in window||(delete ef.animationend.animation,delete ef.animationiteration.animation,delete ef.animationstart.animation),"TransitionEvent"in window||delete ef.transitionend.transition);function iv(e){if(c1[e])return c1[e];if(!ef[e])return e;var t=ef[e];for(var n in t)if(t.hasOwnProperty(n)&&n in y3)return c1[e]=t[n];return e}var S3=iv("animationend"),w3=iv("animationiteration"),C3=iv("animationstart"),x3=iv("transitionend"),T3=new Map,k3=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Hu(e,t){T3.set(e,t),nt(t,[e])}function AF(){for(var e=0;e<k3.length;e++){var t=k3[e],n=t.toLowerCase(),i=t[0].toUpperCase()+t.slice(1);Hu(n,"on"+i)}Hu(S3,"onAnimationEnd"),Hu(w3,"onAnimationIteration"),Hu(C3,"onAnimationStart"),Hu("dblclick","onDoubleClick"),Hu("focusin","onFocus"),Hu("focusout","onBlur"),Hu(x3,"onTransitionEnd")}function LF(e,t,n,i,c,f,g){var S=T3.get(t);if(S!==void 0){var x=t1,R=t;switch(t){case"keypress":if(tv(i)===0)return;case"keydown":case"keyup":x=BM;break;case"focusin":R="focus",x=n1;break;case"focusout":R="blur",x=n1;break;case"beforeblur":case"afterblur":x=n1;break;case"click":if(i.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=QC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=_M;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=IM;break;case S3:case w3:case C3:x=SM;break;case x3:x=MM;break;case"scroll":x=mM;break;case"wheel":x=zM;break;case"copy":case"cut":case"paste":x=CM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=e3;break}var O=(f&vp)!==0;{var Q=!O&&t==="scroll",X=IF(n,S,i.type,O,Q);if(X.length>0){var ye=new x(S,R,null,i,c);e.push({event:ye,listeners:X})}}}}AF(),fF(),ZM(),kF(),UM();function BF(e,t,n,i,c,f,g){LF(e,t,n,i,c,f);var S=(f&EI)===0;S&&(pF(e,t,n,i,c),dF(e,t,n,i,c),DF(e,t,n,i,c),XM(e,t,n,i,c))}var $p=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],d1=new Set(["cancel","close","invalid","load","scroll","toggle"].concat($p));function E3(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,zI(i,t,void 0,e),e.currentTarget=null}function NF(e,t,n){var i;if(n)for(var c=t.length-1;c>=0;c--){var f=t[c],g=f.instance,S=f.currentTarget,x=f.listener;if(g!==i&&e.isPropagationStopped())return;E3(e,x,S),i=g}else for(var R=0;R<t.length;R++){var O=t[R],Q=O.instance,X=O.currentTarget,ye=O.listener;if(Q!==i&&e.isPropagationStopped())return;E3(e,ye,X),i=Q}}function R3(e,t){for(var n=(t&vp)!==0,i=0;i<e.length;i++){var c=e[i],f=c.event,g=c.listeners;NF(f,g,n)}HI()}function OF(e,t,n,i,c){var f=ib(n),g=[];BF(g,e,i,n,f,t),R3(g,t)}function yr(e,t){d1.has(e)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,i=cz(t),c=FF(e,n);i.has(c)||(D3(t,e,ob,n),i.add(c))}function f1(e,t,n){d1.has(e)&&!t&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var i=0;t&&(i|=vp),D3(n,e,i,t)}var lv="_reactListening"+Math.random().toString(36).slice(2);function Gp(e){if(!e[lv]){e[lv]=!0,Et.forEach(function(n){n!=="selectionchange"&&(d1.has(n)||f1(n,!1,e),f1(n,!0,e))});var t=e.nodeType===Us?e:e.ownerDocument;t!==null&&(t[lv]||(t[lv]=!0,f1("selectionchange",!1,t)))}}function D3(e,t,n,i,c){var f=oM(e,t,n),g=void 0;ub&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(g=!0),e=e;var S;i?g!==void 0?S=dM(e,t,f,g):S=cM(e,t,f):g!==void 0?S=fM(e,t,f,g):S=uM(e,t,f)}function A3(e,t){return e===t||e.nodeType===Gr&&e.parentNode===t}function p1(e,t,n,i,c){var f=i;if(!(t&oC)&&!(t&ob)){var g=c;if(i!==null){var S=i;e:for(;;){if(S===null)return;var x=S.tag;if(x===b||x===C){var R=S.stateNode.containerInfo;if(A3(R,g))break;if(x===C)for(var O=S.return;O!==null;){var Q=O.tag;if(Q===b||Q===C){var X=O.stateNode.containerInfo;if(A3(X,g))return}O=O.return}for(;R!==null;){var ye=Hc(R);if(ye===null)return;var Se=ye.tag;if(Se===w||Se===T){S=f=ye;continue e}R=R.parentNode}}S=S.return}}}dC(function(){return OF(e,t,n,f)})}function qp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function IF(e,t,n,i,c,f){for(var g=t!==null?t+"Capture":null,S=i?g:t,x=[],R=e,O=null;R!==null;){var Q=R,X=Q.stateNode,ye=Q.tag;if(ye===w&&X!==null&&(O=X,S!==null)){var Se=_p(R,S);Se!=null&&x.push(qp(R,Se,O))}if(c)break;R=R.return}return x}function sv(e,t){for(var n=t+"Capture",i=[],c=e;c!==null;){var f=c,g=f.stateNode,S=f.tag;if(S===w&&g!==null){var x=g,R=_p(c,n);R!=null&&i.unshift(qp(c,R,x));var O=_p(c,t);O!=null&&i.push(qp(c,O,x))}c=c.return}return i}function tf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==w);return e||null}function PF(e,t){for(var n=e,i=t,c=0,f=n;f;f=tf(f))c++;for(var g=0,S=i;S;S=tf(S))g++;for(;c-g>0;)n=tf(n),c--;for(;g-c>0;)i=tf(i),g--;for(var x=c;x--;){if(n===i||i!==null&&n===i.alternate)return n;n=tf(n),i=tf(i)}return null}function L3(e,t,n,i,c){for(var f=t._reactName,g=[],S=n;S!==null&&S!==i;){var x=S,R=x.alternate,O=x.stateNode,Q=x.tag;if(R!==null&&R===i)break;if(Q===w&&O!==null){var X=O;if(c){var ye=_p(S,f);ye!=null&&g.unshift(qp(S,ye,X))}else if(!c){var Se=_p(S,f);Se!=null&&g.push(qp(S,Se,X))}}S=S.return}g.length!==0&&e.push({event:t,listeners:g})}function MF(e,t,n,i,c){var f=i&&c?PF(i,c):null;i!==null&&L3(e,t,i,f,!1),c!==null&&n!==null&&L3(e,n,c,f,!0)}function FF(e,t){return e+"__"+(t?"capture":"bubble")}var To=!1,Kp="dangerouslySetInnerHTML",uv="suppressContentEditableWarning",ju="suppressHydrationWarning",B3="autoFocus",Fc="children",zc="style",cv="__html",h1,dv,Xp,N3,fv,O3,I3;h1={dialog:!0,webview:!0},dv=function(e,t){yI(e,t),SI(e,t),kI(e,t,{registrationNameDependencies:bt,possibleRegistrationNames:It})},O3=wt&&!document.documentMode,Xp=function(e,t,n){if(!To){var i=pv(n),c=pv(t);c!==i&&(To=!0,u("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(c),JSON.stringify(i)))}},N3=function(e){if(!To){To=!0;var t=[];e.forEach(function(n){t.push(n)}),u("Extra attributes from the server: %s",t)}},fv=function(e,t){t===!1?u("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},I3=function(e,t){var n=e.namespaceURI===Hs?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var zF=/\r\n?/g,HF=/\u0000|\uFFFD/g;function pv(e){lr(e);var t=typeof e=="string"?e:""+e;return t.replace(zF,`
32
- `).replace(HF,"")}function hv(e,t,n,i){var c=pv(t),f=pv(e);if(f!==c&&(i&&(To||(To=!0,u('Text content did not match. Server: "%s" Client: "%s"',f,c))),n&&ne))throw new Error("Text content does not match server-rendered HTML.")}function P3(e){return e.nodeType===Us?e:e.ownerDocument}function jF(){}function mv(e){e.onclick=jF}function UF(e,t,n,i,c){for(var f in i)if(i.hasOwnProperty(f)){var g=i[f];if(f===zc)g&&Object.freeze(g),Zw(t,g);else if(f===Kp){var S=g?g[cv]:void 0;S!=null&&qw(t,S)}else if(f===Fc)if(typeof g=="string"){var x=e!=="textarea"||g!=="";x&&Mm(t,g)}else typeof g=="number"&&Mm(t,""+g);else f===uv||f===ju||f===B3||(bt.hasOwnProperty(f)?g!=null&&(typeof g!="function"&&fv(f,g),f==="onScroll"&&yr("scroll",t)):g!=null&&H(t,f,g,c))}}function VF(e,t,n,i){for(var c=0;c<t.length;c+=2){var f=t[c],g=t[c+1];f===zc?Zw(e,g):f===Kp?qw(e,g):f===Fc?Mm(e,g):H(e,f,g,i)}}function WF(e,t,n,i){var c,f=P3(n),g,S=i;if(S===Hs&&(S=Z_(e)),S===Hs){if(c=kc(e,t),!c&&e!==e.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var x=f.createElement("div");x.innerHTML="<script></script>";var R=x.firstChild;g=x.removeChild(R)}else if(typeof t.is=="string")g=f.createElement(e,{is:t.is});else if(g=f.createElement(e),e==="select"){var O=g;t.multiple?O.multiple=!0:t.size&&(O.size=t.size)}}else g=f.createElementNS(S,e);return S===Hs&&!c&&Object.prototype.toString.call(g)==="[object HTMLUnknownElement]"&&!zt.call(h1,e)&&(h1[e]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),g}function YF(e,t){return P3(t).createTextNode(e)}function $F(e,t,n,i){var c=kc(t,n);dv(t,n);var f;switch(t){case"dialog":yr("cancel",e),yr("close",e),f=n;break;case"iframe":case"object":case"embed":yr("load",e),f=n;break;case"video":case"audio":for(var g=0;g<$p.length;g++)yr($p[g],e);f=n;break;case"source":yr("error",e),f=n;break;case"img":case"image":case"link":yr("error",e),yr("load",e),f=n;break;case"details":yr("toggle",e),f=n;break;case"input":Ee(e,n),f=_e(e,n),yr("invalid",e);break;case"option":Er(e,n),f=n;break;case"select":Vw(e,n),f=hp(e,n),yr("invalid",e);break;case"textarea":Yw(e,n),f=J_(e,n),yr("invalid",e);break;default:f=n}switch(nb(t,f),UF(t,e,i,f,c),t){case"input":Ou(e),Tt(e,n,!1);break;case"textarea":Ou(e),Gw(e);break;case"option":en(e,n);break;case"select":U7(e,n);break;default:typeof f.onClick=="function"&&mv(e);break}}function GF(e,t,n,i,c){dv(t,i);var f=null,g,S;switch(t){case"input":g=_e(e,n),S=_e(e,i),f=[];break;case"select":g=hp(e,n),S=hp(e,i),f=[];break;case"textarea":g=J_(e,n),S=J_(e,i),f=[];break;default:g=n,S=i,typeof g.onClick!="function"&&typeof S.onClick=="function"&&mv(e);break}nb(t,S);var x,R,O=null;for(x in g)if(!(S.hasOwnProperty(x)||!g.hasOwnProperty(x)||g[x]==null))if(x===zc){var Q=g[x];for(R in Q)Q.hasOwnProperty(R)&&(O||(O={}),O[R]="")}else x===Kp||x===Fc||x===uv||x===ju||x===B3||(bt.hasOwnProperty(x)?f||(f=[]):(f=f||[]).push(x,null));for(x in S){var X=S[x],ye=g!=null?g[x]:void 0;if(!(!S.hasOwnProperty(x)||X===ye||X==null&&ye==null))if(x===zc)if(X&&Object.freeze(X),ye){for(R in ye)ye.hasOwnProperty(R)&&(!X||!X.hasOwnProperty(R))&&(O||(O={}),O[R]="");for(R in X)X.hasOwnProperty(R)&&ye[R]!==X[R]&&(O||(O={}),O[R]=X[R])}else O||(f||(f=[]),f.push(x,O)),O=X;else if(x===Kp){var Se=X?X[cv]:void 0,xe=ye?ye[cv]:void 0;Se!=null&&xe!==Se&&(f=f||[]).push(x,Se)}else x===Fc?(typeof X=="string"||typeof X=="number")&&(f=f||[]).push(x,""+X):x===uv||x===ju||(bt.hasOwnProperty(x)?(X!=null&&(typeof X!="function"&&fv(x,X),x==="onScroll"&&yr("scroll",e)),!f&&ye!==X&&(f=[])):(f=f||[]).push(x,X))}return O&&(fI(O,S[zc]),(f=f||[]).push(zc,O)),f}function qF(e,t,n,i,c){n==="input"&&c.type==="radio"&&c.name!=null&&et(e,c);var f=kc(n,i),g=kc(n,c);switch(VF(e,t,f,g),n){case"input":Ht(e,c);break;case"textarea":$w(e,c);break;case"select":V7(e,c);break}}function KF(e){{var t=e.toLowerCase();return Fm.hasOwnProperty(t)&&Fm[t]||null}}function XF(e,t,n,i,c,f,g){var S,x;switch(S=kc(t,n),dv(t,n),t){case"dialog":yr("cancel",e),yr("close",e);break;case"iframe":case"object":case"embed":yr("load",e);break;case"video":case"audio":for(var R=0;R<$p.length;R++)yr($p[R],e);break;case"source":yr("error",e);break;case"img":case"image":case"link":yr("error",e),yr("load",e);break;case"details":yr("toggle",e);break;case"input":Ee(e,n),yr("invalid",e);break;case"option":Er(e,n);break;case"select":Vw(e,n),yr("invalid",e);break;case"textarea":Yw(e,n),yr("invalid",e);break}nb(t,n);{x=new Set;for(var O=e.attributes,Q=0;Q<O.length;Q++){var X=O[Q].name.toLowerCase();switch(X){case"value":break;case"checked":break;case"selected":break;default:x.add(O[Q].name)}}}var ye=null;for(var Se in n)if(n.hasOwnProperty(Se)){var xe=n[Se];if(Se===Fc)typeof xe=="string"?e.textContent!==xe&&(n[ju]!==!0&&hv(e.textContent,xe,f,g),ye=[Fc,xe]):typeof xe=="number"&&e.textContent!==""+xe&&(n[ju]!==!0&&hv(e.textContent,xe,f,g),ye=[Fc,""+xe]);else if(bt.hasOwnProperty(Se))xe!=null&&(typeof xe!="function"&&fv(Se,xe),Se==="onScroll"&&yr("scroll",e));else if(g&&typeof S=="boolean"){var it=void 0,Nt=S&&Oe?null:te(Se);if(n[ju]!==!0){if(!(Se===uv||Se===ju||Se==="value"||Se==="checked"||Se==="selected")){if(Se===Kp){var kt=e.innerHTML,fa=xe?xe[cv]:void 0;if(fa!=null){var pa=I3(e,fa);pa!==kt&&Xp(Se,kt,pa)}}else if(Se===zc){if(x.delete(Se),O3){var se=cI(xe);it=e.getAttribute("style"),se!==it&&Xp(Se,it,se)}}else if(S&&!Oe)x.delete(Se.toLowerCase()),it=tt(e,Se,xe),xe!==it&&Xp(Se,it,xe);else if(!ga(Se,Nt,S)&&!I(Se,xe,Nt,S)){var De=!1;if(Nt!==null)x.delete(Nt.attributeName),it=Be(e,Se,xe,Nt);else{var ue=i;if(ue===Hs&&(ue=Z_(t)),ue===Hs)x.delete(Se.toLowerCase());else{var qe=KF(Se);qe!==null&&qe!==Se&&(De=!0,x.delete(qe)),x.delete(Se)}it=tt(e,Se,xe)}var mt=Oe;!mt&&xe!==it&&!De&&Xp(Se,it,xe)}}}}}switch(g&&x.size>0&&n[ju]!==!0&&N3(x),t){case"input":Ou(e),Tt(e,n,!0);break;case"textarea":Ou(e),Gw(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&mv(e);break}return ye}function JF(e,t,n){var i=e.nodeValue!==t;return i}function m1(e,t){{if(To)return;To=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function v1(e,t){{if(To)return;To=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function g1(e,t,n){{if(To)return;To=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function _1(e,t){{if(t===""||To)return;To=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function QF(e,t,n){switch(t){case"input":ra(e,n);return;case"textarea":Y7(e,n);return;case"select":W7(e,n);return}}var Jp=function(){},Qp=function(){};{var ZF=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],M3=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],e9=M3.concat(["button"]),t9=["dd","dt","li","option","optgroup","p","rp","rt"],F3={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Qp=function(e,t){var n=Pt({},e||F3),i={tag:t};return M3.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),e9.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ZF.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=i,t==="form"&&(n.formTag=i),t==="a"&&(n.aTagInScope=i),t==="button"&&(n.buttonTagInScope=i),t==="nobr"&&(n.nobrTagInScope=i),t==="p"&&(n.pTagInButtonScope=i),t==="li"&&(n.listItemTagAutoclosing=i),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=i),n};var a9=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return t9.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},r9=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},z3={};Jp=function(e,t,n){n=n||F3;var i=n.current,c=i&&i.tag;t!=null&&(e!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var f=a9(e,c)?null:i,g=f?null:r9(e,n),S=f||g;if(S){var x=S.tag,R=!!f+"|"+e+"|"+x;if(!z3[R]){z3[R]=!0;var O=e,Q="";if(e==="#text"?/\S/.test(t)?O="Text nodes":(O="Whitespace text nodes",Q=" Make sure you don't have any extra whitespace between tags on each line of your source code."):O="<"+e+">",f){var X="";x==="table"&&e==="tr"&&(X+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",O,x,Q,X)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",O,x)}}}}var vv="suppressHydrationWarning",gv="$",_v="/$",Zp="$?",eh="$!",n9="style",b1=null,y1=null;function o9(e){var t,n,i=e.nodeType;switch(i){case Us:case tb:{t=i===Us?"#document":"#fragment";var c=e.documentElement;n=c?c.namespaceURI:eb(null,"");break}default:{var f=i===Gr?e.parentNode:e,g=f.namespaceURI||null;t=f.tagName,n=eb(g,t);break}}{var S=t.toLowerCase(),x=Qp(null,S);return{namespace:n,ancestorInfo:x}}}function i9(e,t,n){{var i=e,c=eb(i.namespace,t),f=Qp(i.ancestorInfo,t);return{namespace:c,ancestorInfo:f}}}function EG(e){return e}function l9(e){b1=nM(),y1=SF();var t=null;return GC(!1),t}function s9(e){wF(y1),GC(b1),b1=null,y1=null}function u9(e,t,n,i,c){var f;{var g=i;if(Jp(e,null,g.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var S=""+t.children,x=Qp(g.ancestorInfo,e);Jp(null,S,x)}f=g.namespace}var R=WF(e,t,n,f);return rh(c,R),R1(R,t),R}function c9(e,t){e.appendChild(t)}function d9(e,t,n,i,c){switch($F(e,t,n,i),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function f9(e,t,n,i,c,f){{var g=f;if(typeof i.children!=typeof n.children&&(typeof i.children=="string"||typeof i.children=="number")){var S=""+i.children,x=Qp(g.ancestorInfo,t);Jp(null,S,x)}}return GF(e,t,n,i)}function S1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function p9(e,t,n,i){{var c=n;Jp(null,e,c.ancestorInfo)}var f=YF(e,t);return rh(i,f),f}function h9(){var e=window.event;return e===void 0?Ks:qC(e.type)}var w1=typeof setTimeout=="function"?setTimeout:void 0,m9=typeof clearTimeout=="function"?clearTimeout:void 0,C1=-1,H3=typeof Promise=="function"?Promise:void 0,v9=typeof queueMicrotask=="function"?queueMicrotask:typeof H3!="undefined"?function(e){return H3.resolve(null).then(e).catch(g9)}:w1;function g9(e){setTimeout(function(){throw e})}function _9(e,t,n,i){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();return;case"img":{n.src&&(e.src=n.src);return}}}function b9(e,t,n,i,c,f){qF(e,t,n,i,c),R1(e,c)}function j3(e){Mm(e,"")}function y9(e,t,n){e.nodeValue=n}function S9(e,t){e.appendChild(t)}function w9(e,t){var n;e.nodeType===Gr?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var i=e._reactRootContainer;i==null&&n.onclick===null&&mv(n)}function C9(e,t,n){e.insertBefore(t,n)}function x9(e,t,n){e.nodeType===Gr?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function T9(e,t){e.removeChild(t)}function k9(e,t){e.nodeType===Gr?e.parentNode.removeChild(t):e.removeChild(t)}function x1(e,t){var n=t,i=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===Gr){var f=c.data;if(f===_v)if(i===0){e.removeChild(c),Pp(t);return}else i--;else(f===gv||f===Zp||f===eh)&&i++}n=c}while(n);Pp(t)}function E9(e,t){e.nodeType===Gr?x1(e.parentNode,t):e.nodeType===xo&&x1(e,t),Pp(e)}function R9(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function D9(e){e.nodeValue=""}function A9(e,t){e=e;var n=t[n9],i=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=ab("display",i)}function L9(e,t){e.nodeValue=t}function B9(e){e.nodeType===xo?e.textContent="":e.nodeType===Us&&e.documentElement&&e.removeChild(e.documentElement)}function N9(e,t,n){return e.nodeType!==xo||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function O9(e,t){return t===""||e.nodeType!==js?null:e}function I9(e){return e.nodeType!==Gr?null:e}function U3(e){return e.data===Zp}function T1(e){return e.data===eh}function P9(e){var t=e.nextSibling&&e.nextSibling.dataset,n,i,c;return t&&(n=t.dgst,i=t.msg,c=t.stck),{message:i,digest:n,stack:c}}function M9(e,t){e._reactRetry=t}function bv(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===xo||t===js)break;if(t===Gr){var n=e.data;if(n===gv||n===eh||n===Zp)break;if(n===_v)return null}}return e}function th(e){return bv(e.nextSibling)}function F9(e){return bv(e.firstChild)}function z9(e){return bv(e.firstChild)}function H9(e){return bv(e.nextSibling)}function j9(e,t,n,i,c,f,g){rh(f,e),R1(e,n);var S;{var x=c;S=x.namespace}var R=(f.mode&ba)!==Ft;return XF(e,t,n,S,i,R,g)}function U9(e,t,n,i){rh(n,e);var c=(n.mode&ba)!==Ft;return JF(e,t)}function V9(e,t){rh(t,e)}function W9(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===Gr){var i=t.data;if(i===_v){if(n===0)return th(t);n--}else(i===gv||i===eh||i===Zp)&&n++}t=t.nextSibling}return null}function V3(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===Gr){var i=t.data;if(i===gv||i===eh||i===Zp){if(n===0)return t;n--}else i===_v&&n++}t=t.previousSibling}return null}function Y9(e){Pp(e)}function $9(e){Pp(e)}function G9(e){return e!=="head"&&e!=="body"}function q9(e,t,n,i){var c=!0;hv(t.nodeValue,n,i,c)}function K9(e,t,n,i,c,f){if(t[vv]!==!0){var g=!0;hv(i.nodeValue,c,f,g)}}function X9(e,t){t.nodeType===xo?m1(e,t):t.nodeType===Gr||v1(e,t)}function J9(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===xo?m1(n,t):t.nodeType===Gr||v1(n,t))}}function Q9(e,t,n,i,c){(c||t[vv]!==!0)&&(i.nodeType===xo?m1(n,i):i.nodeType===Gr||v1(n,i))}function Z9(e,t,n){g1(e,t)}function ez(e,t){_1(e,t)}function tz(e,t,n){{var i=e.parentNode;i!==null&&g1(i,t)}}function az(e,t){{var n=e.parentNode;n!==null&&_1(n,t)}}function rz(e,t,n,i,c,f){(f||t[vv]!==!0)&&g1(n,i)}function nz(e,t,n,i,c){(c||t[vv]!==!0)&&_1(n,i)}function oz(e){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function iz(e){Gp(e)}var af=Math.random().toString(36).slice(2),rf="__reactFiber$"+af,k1="__reactProps$"+af,ah="__reactContainer$"+af,E1="__reactEvents$"+af,lz="__reactListeners$"+af,sz="__reactHandles$"+af;function uz(e){delete e[rf],delete e[k1],delete e[E1],delete e[lz],delete e[sz]}function rh(e,t){t[rf]=e}function yv(e,t){t[ah]=e}function W3(e){e[ah]=null}function nh(e){return!!e[ah]}function Hc(e){var t=e[rf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ah]||n[rf],t){var i=t.alternate;if(t.child!==null||i!==null&&i.child!==null)for(var c=V3(e);c!==null;){var f=c[rf];if(f)return f;c=V3(c)}return t}e=n,n=e.parentNode}return null}function Uu(e){var t=e[rf]||e[ah];return t&&(t.tag===w||t.tag===T||t.tag===K||t.tag===b)?t:null}function nf(e){if(e.tag===w||e.tag===T)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Sv(e){return e[k1]||null}function R1(e,t){e[k1]=t}function cz(e){var t=e[E1];return t===void 0&&(t=e[E1]=new Set),t}var Y3={},$3=o.ReactDebugCurrentFrame;function wv(e){if(e){var t=e._owner,n=Rd(e.type,e._source,t?t.type:null);$3.setExtraStackFrame(n)}else $3.setExtraStackFrame(null)}function zl(e,t,n,i,c){{var f=Function.call.bind(zt);for(var g in e)if(f(e,g)){var S=void 0;try{if(typeof e[g]!="function"){var x=Error((i||"React class")+": "+n+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}S=e[g](t,g,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){S=R}S&&!(S instanceof Error)&&(wv(c),u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,g,typeof S),wv(null)),S instanceof Error&&!(S.message in Y3)&&(Y3[S.message]=!0,wv(c),u("Failed %s type: %s",n,S.message),wv(null))}}}var D1=[],Cv;Cv=[];var Xs=-1;function Vu(e){return{current:e}}function jn(e,t){if(Xs<0){u("Unexpected pop.");return}t!==Cv[Xs]&&u("Unexpected Fiber popped."),e.current=D1[Xs],D1[Xs]=null,Cv[Xs]=null,Xs--}function Un(e,t,n){Xs++,D1[Xs]=e.current,Cv[Xs]=n,e.current=t}var A1;A1={};var Wo={};Object.freeze(Wo);var Js=Vu(Wo),vs=Vu(!1),L1=Wo;function of(e,t,n){return n&&gs(t)?L1:Js.current}function G3(e,t,n){{var i=e.stateNode;i.__reactInternalMemoizedUnmaskedChildContext=t,i.__reactInternalMemoizedMaskedChildContext=n}}function lf(e,t){{var n=e.type,i=n.contextTypes;if(!i)return Wo;var c=e.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===t)return c.__reactInternalMemoizedMaskedChildContext;var f={};for(var g in i)f[g]=t[g];{var S=na(e)||"Unknown";zl(i,f,"context",S)}return c&&G3(e,t,f),f}}function xv(){return vs.current}function gs(e){{var t=e.childContextTypes;return t!=null}}function Tv(e){jn(vs,e),jn(Js,e)}function B1(e){jn(vs,e),jn(Js,e)}function q3(e,t,n){{if(Js.current!==Wo)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Un(Js,t,e),Un(vs,n,e)}}function K3(e,t,n){{var i=e.stateNode,c=t.childContextTypes;if(typeof i.getChildContext!="function"){{var f=na(e)||"Unknown";A1[f]||(A1[f]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",f,f))}return n}var g=i.getChildContext();for(var S in g)if(!(S in c))throw new Error((na(e)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var x=na(e)||"Unknown";zl(c,g,"child context",x)}return Pt({},n,g)}}function kv(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Wo;return L1=Js.current,Un(Js,n,e),Un(vs,vs.current,e),!0}}function X3(e,t,n){{var i=e.stateNode;if(!i)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var c=K3(e,t,L1);i.__reactInternalMemoizedMergedChildContext=c,jn(vs,e),jn(Js,e),Un(Js,c,e),Un(vs,n,e)}else jn(vs,e),Un(vs,n,e)}}function dz(e){{if(!GI(e)||e.tag!==v)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case b:return t.stateNode.context;case v:{var n=t.type;if(gs(n))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Wu=0,Ev=1,Qs=null,N1=!1,O1=!1;function J3(e){Qs===null?Qs=[e]:Qs.push(e)}function fz(e){N1=!0,J3(e)}function Q3(){N1&&Yu()}function Yu(){if(!O1&&Qs!==null){O1=!0;var e=0,t=Fl();try{var n=!0,i=Qs;for(bn(jo);e<i.length;e++){var c=i[e];do c=c(n);while(c!==null)}Qs=null,N1=!1}catch(f){throw Qs!==null&&(Qs=Qs.slice(e+1)),wC(Vm,Yu),f}finally{bn(t),O1=!1}}return null}var sf=[],uf=0,Rv=null,Dv=0,yl=[],Sl=0,jc=null,Zs=1,eu="";function pz(e){return Vc(),(e.flags&hC)!==jt}function hz(e){return Vc(),Dv}function mz(){var e=eu,t=Zs,n=t&~vz(t);return n.toString(32)+e}function Uc(e,t){Vc(),sf[uf++]=Dv,sf[uf++]=Rv,Rv=e,Dv=t}function Z3(e,t,n){Vc(),yl[Sl++]=Zs,yl[Sl++]=eu,yl[Sl++]=jc,jc=e;var i=Zs,c=eu,f=Av(i)-1,g=i&~(1<<f),S=n+1,x=Av(t)+f;if(x>30){var R=f-f%5,O=(1<<R)-1,Q=(g&O).toString(32),X=g>>R,ye=f-R,Se=Av(t)+ye,xe=S<<ye,it=xe|X,Nt=Q+c;Zs=1<<Se|it,eu=Nt}else{var kt=S<<f,fa=kt|g,pa=c;Zs=1<<x|fa,eu=pa}}function I1(e){Vc();var t=e.return;if(t!==null){var n=1,i=0;Uc(e,n),Z3(e,n,i)}}function Av(e){return 32-RC(e)}function vz(e){return 1<<Av(e)-1}function P1(e){for(;e===Rv;)Rv=sf[--uf],sf[uf]=null,Dv=sf[--uf],sf[uf]=null;for(;e===jc;)jc=yl[--Sl],yl[Sl]=null,eu=yl[--Sl],yl[Sl]=null,Zs=yl[--Sl],yl[Sl]=null}function gz(){return Vc(),jc!==null?{id:Zs,overflow:eu}:null}function _z(e,t){Vc(),yl[Sl++]=Zs,yl[Sl++]=eu,yl[Sl++]=jc,Zs=t.id,eu=t.overflow,jc=e}function Vc(){kn()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Tn=null,wl=null,Hl=!1,Wc=!1,$u=null;function bz(){Hl&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ex(){Wc=!0}function yz(){return Wc}function Sz(e){var t=e.stateNode.containerInfo;return wl=z9(t),Tn=e,Hl=!0,$u=null,Wc=!1,!0}function wz(e,t,n){return wl=H9(t),Tn=e,Hl=!0,$u=null,Wc=!1,n!==null&&_z(e,n),!0}function tx(e,t){switch(e.tag){case b:{X9(e.stateNode.containerInfo,t);break}case w:{var n=(e.mode&ba)!==Ft;Q9(e.type,e.memoizedProps,e.stateNode,t,n);break}case K:{var i=e.memoizedState;i.dehydrated!==null&&J9(i.dehydrated,t);break}}}function ax(e,t){tx(e,t);var n=LU();n.stateNode=t,n.return=e;var i=e.deletions;i===null?(e.deletions=[n],e.flags|=Ec):i.push(n)}function M1(e,t){{if(Wc)return;switch(e.tag){case b:{var n=e.stateNode.containerInfo;switch(t.tag){case w:var i=t.type,c=t.pendingProps;Z9(n,i);break;case T:var f=t.pendingProps;ez(n,f);break}break}case w:{var g=e.type,S=e.memoizedProps,x=e.stateNode;switch(t.tag){case w:{var R=t.type,O=t.pendingProps,Q=(e.mode&ba)!==Ft;rz(g,S,x,R,O,Q);break}case T:{var X=t.pendingProps,ye=(e.mode&ba)!==Ft;nz(g,S,x,X,ye);break}}break}case K:{var Se=e.memoizedState,xe=Se.dehydrated;if(xe!==null)switch(t.tag){case w:var it=t.type,Nt=t.pendingProps;tz(xe,it);break;case T:var kt=t.pendingProps;az(xe,kt);break}break}default:return}}}function rx(e,t){t.flags=t.flags&~Ws|qr,M1(e,t)}function nx(e,t){switch(e.tag){case w:{var n=e.type,i=e.pendingProps,c=N9(t,n);return c!==null?(e.stateNode=c,Tn=e,wl=F9(c),!0):!1}case T:{var f=e.pendingProps,g=O9(t,f);return g!==null?(e.stateNode=g,Tn=e,wl=null,!0):!1}case K:{var S=I9(t);if(S!==null){var x={dehydrated:S,treeContext:gz(),retryLane:zo};e.memoizedState=x;var R=BU(S);return R.return=e,e.child=R,Tn=e,wl=null,!0}return!1}default:return!1}}function F1(e){return(e.mode&ba)!==Ft&&(e.flags&Ma)===jt}function z1(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function H1(e){if(Hl){var t=wl;if(!t){F1(e)&&(M1(Tn,e),z1()),rx(Tn,e),Hl=!1,Tn=e;return}var n=t;if(!nx(e,t)){F1(e)&&(M1(Tn,e),z1()),t=th(n);var i=Tn;if(!t||!nx(e,t)){rx(Tn,e),Hl=!1,Tn=e;return}ax(i,n)}}}function Cz(e,t,n){var i=e.stateNode,c=!Wc,f=j9(i,e.type,e.memoizedProps,t,n,e,c);return e.updateQueue=f,f!==null}function xz(e){var t=e.stateNode,n=e.memoizedProps,i=U9(t,n,e);if(i){var c=Tn;if(c!==null)switch(c.tag){case b:{var f=c.stateNode.containerInfo,g=(c.mode&ba)!==Ft;q9(f,t,n,g);break}case w:{var S=c.type,x=c.memoizedProps,R=c.stateNode,O=(c.mode&ba)!==Ft;K9(S,x,R,t,n,O);break}}}return i}function Tz(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V9(n,e)}function kz(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return W9(n)}function ox(e){for(var t=e.return;t!==null&&t.tag!==w&&t.tag!==b&&t.tag!==K;)t=t.return;Tn=t}function Lv(e){if(e!==Tn)return!1;if(!Hl)return ox(e),Hl=!0,!1;if(e.tag!==b&&(e.tag!==w||G9(e.type)&&!S1(e.type,e.memoizedProps))){var t=wl;if(t)if(F1(e))ix(e),z1();else for(;t;)ax(e,t),t=th(t)}return ox(e),e.tag===K?wl=kz(e):wl=Tn?th(e.stateNode):null,!0}function Ez(){return Hl&&wl!==null}function ix(e){for(var t=wl;t;)tx(e,t),t=th(t)}function cf(){Tn=null,wl=null,Hl=!1,Wc=!1}function lx(){$u!==null&&(t4($u),$u=null)}function kn(){return Hl}function j1(e){$u===null?$u=[e]:$u.push(e)}var Rz=o.ReactCurrentBatchConfig,Dz=null;function Az(){return Rz.transition}var jl={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Lz=function(e){for(var t=null,n=e;n!==null;)n.mode&Nr&&(t=n),n=n.return;return t},Yc=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},oh=[],ih=[],lh=[],sh=[],uh=[],ch=[],$c=new Set;jl.recordUnsafeLifecycleWarnings=function(e,t){$c.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&oh.push(e),e.mode&Nr&&typeof t.UNSAFE_componentWillMount=="function"&&ih.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&lh.push(e),e.mode&Nr&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&sh.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&uh.push(e),e.mode&Nr&&typeof t.UNSAFE_componentWillUpdate=="function"&&ch.push(e))},jl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;oh.length>0&&(oh.forEach(function(X){e.add(na(X)||"Component"),$c.add(X.type)}),oh=[]);var t=new Set;ih.length>0&&(ih.forEach(function(X){t.add(na(X)||"Component"),$c.add(X.type)}),ih=[]);var n=new Set;lh.length>0&&(lh.forEach(function(X){n.add(na(X)||"Component"),$c.add(X.type)}),lh=[]);var i=new Set;sh.length>0&&(sh.forEach(function(X){i.add(na(X)||"Component"),$c.add(X.type)}),sh=[]);var c=new Set;uh.length>0&&(uh.forEach(function(X){c.add(na(X)||"Component"),$c.add(X.type)}),uh=[]);var f=new Set;if(ch.length>0&&(ch.forEach(function(X){f.add(na(X)||"Component"),$c.add(X.type)}),ch=[]),t.size>0){var g=Yc(t);u(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
32
+ `).replace(HF,"")}function hv(e,t,n,i){var c=pv(t),f=pv(e);if(f!==c&&(i&&(To||(To=!0,u('Text content did not match. Server: "%s" Client: "%s"',f,c))),n&&ne))throw new Error("Text content does not match server-rendered HTML.")}function P3(e){return e.nodeType===Us?e:e.ownerDocument}function jF(){}function mv(e){e.onclick=jF}function UF(e,t,n,i,c){for(var f in i)if(i.hasOwnProperty(f)){var g=i[f];if(f===zc)g&&Object.freeze(g),Zw(t,g);else if(f===Kp){var S=g?g[cv]:void 0;S!=null&&qw(t,S)}else if(f===Fc)if(typeof g=="string"){var x=e!=="textarea"||g!=="";x&&Mm(t,g)}else typeof g=="number"&&Mm(t,""+g);else f===uv||f===ju||f===B3||(bt.hasOwnProperty(f)?g!=null&&(typeof g!="function"&&fv(f,g),f==="onScroll"&&yr("scroll",t)):g!=null&&H(t,f,g,c))}}function VF(e,t,n,i){for(var c=0;c<t.length;c+=2){var f=t[c],g=t[c+1];f===zc?Zw(e,g):f===Kp?qw(e,g):f===Fc?Mm(e,g):H(e,f,g,i)}}function WF(e,t,n,i){var c,f=P3(n),g,S=i;if(S===Hs&&(S=Z_(e)),S===Hs){if(c=kc(e,t),!c&&e!==e.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var x=f.createElement("div");x.innerHTML="<script></script>";var R=x.firstChild;g=x.removeChild(R)}else if(typeof t.is=="string")g=f.createElement(e,{is:t.is});else if(g=f.createElement(e),e==="select"){var O=g;t.multiple?O.multiple=!0:t.size&&(O.size=t.size)}}else g=f.createElementNS(S,e);return S===Hs&&!c&&Object.prototype.toString.call(g)==="[object HTMLUnknownElement]"&&!zt.call(h1,e)&&(h1[e]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),g}function YF(e,t){return P3(t).createTextNode(e)}function $F(e,t,n,i){var c=kc(t,n);dv(t,n);var f;switch(t){case"dialog":yr("cancel",e),yr("close",e),f=n;break;case"iframe":case"object":case"embed":yr("load",e),f=n;break;case"video":case"audio":for(var g=0;g<$p.length;g++)yr($p[g],e);f=n;break;case"source":yr("error",e),f=n;break;case"img":case"image":case"link":yr("error",e),yr("load",e),f=n;break;case"details":yr("toggle",e),f=n;break;case"input":Ee(e,n),f=_e(e,n),yr("invalid",e);break;case"option":Er(e,n),f=n;break;case"select":Vw(e,n),f=hp(e,n),yr("invalid",e);break;case"textarea":Yw(e,n),f=J_(e,n),yr("invalid",e);break;default:f=n}switch(nb(t,f),UF(t,e,i,f,c),t){case"input":Ou(e),Tt(e,n,!1);break;case"textarea":Ou(e),Gw(e);break;case"option":en(e,n);break;case"select":U7(e,n);break;default:typeof f.onClick=="function"&&mv(e);break}}function GF(e,t,n,i,c){dv(t,i);var f=null,g,S;switch(t){case"input":g=_e(e,n),S=_e(e,i),f=[];break;case"select":g=hp(e,n),S=hp(e,i),f=[];break;case"textarea":g=J_(e,n),S=J_(e,i),f=[];break;default:g=n,S=i,typeof g.onClick!="function"&&typeof S.onClick=="function"&&mv(e);break}nb(t,S);var x,R,O=null;for(x in g)if(!(S.hasOwnProperty(x)||!g.hasOwnProperty(x)||g[x]==null))if(x===zc){var Q=g[x];for(R in Q)Q.hasOwnProperty(R)&&(O||(O={}),O[R]="")}else x===Kp||x===Fc||x===uv||x===ju||x===B3||(bt.hasOwnProperty(x)?f||(f=[]):(f=f||[]).push(x,null));for(x in S){var X=S[x],ye=g!=null?g[x]:void 0;if(!(!S.hasOwnProperty(x)||X===ye||X==null&&ye==null))if(x===zc)if(X&&Object.freeze(X),ye){for(R in ye)ye.hasOwnProperty(R)&&(!X||!X.hasOwnProperty(R))&&(O||(O={}),O[R]="");for(R in X)X.hasOwnProperty(R)&&ye[R]!==X[R]&&(O||(O={}),O[R]=X[R])}else O||(f||(f=[]),f.push(x,O)),O=X;else if(x===Kp){var Se=X?X[cv]:void 0,xe=ye?ye[cv]:void 0;Se!=null&&xe!==Se&&(f=f||[]).push(x,Se)}else x===Fc?(typeof X=="string"||typeof X=="number")&&(f=f||[]).push(x,""+X):x===uv||x===ju||(bt.hasOwnProperty(x)?(X!=null&&(typeof X!="function"&&fv(x,X),x==="onScroll"&&yr("scroll",e)),!f&&ye!==X&&(f=[])):(f=f||[]).push(x,X))}return O&&(fI(O,S[zc]),(f=f||[]).push(zc,O)),f}function qF(e,t,n,i,c){n==="input"&&c.type==="radio"&&c.name!=null&&et(e,c);var f=kc(n,i),g=kc(n,c);switch(VF(e,t,f,g),n){case"input":Ht(e,c);break;case"textarea":$w(e,c);break;case"select":V7(e,c);break}}function KF(e){{var t=e.toLowerCase();return Fm.hasOwnProperty(t)&&Fm[t]||null}}function XF(e,t,n,i,c,f,g){var S,x;switch(S=kc(t,n),dv(t,n),t){case"dialog":yr("cancel",e),yr("close",e);break;case"iframe":case"object":case"embed":yr("load",e);break;case"video":case"audio":for(var R=0;R<$p.length;R++)yr($p[R],e);break;case"source":yr("error",e);break;case"img":case"image":case"link":yr("error",e),yr("load",e);break;case"details":yr("toggle",e);break;case"input":Ee(e,n),yr("invalid",e);break;case"option":Er(e,n);break;case"select":Vw(e,n),yr("invalid",e);break;case"textarea":Yw(e,n),yr("invalid",e);break}nb(t,n);{x=new Set;for(var O=e.attributes,Q=0;Q<O.length;Q++){var X=O[Q].name.toLowerCase();switch(X){case"value":break;case"checked":break;case"selected":break;default:x.add(O[Q].name)}}}var ye=null;for(var Se in n)if(n.hasOwnProperty(Se)){var xe=n[Se];if(Se===Fc)typeof xe=="string"?e.textContent!==xe&&(n[ju]!==!0&&hv(e.textContent,xe,f,g),ye=[Fc,xe]):typeof xe=="number"&&e.textContent!==""+xe&&(n[ju]!==!0&&hv(e.textContent,xe,f,g),ye=[Fc,""+xe]);else if(bt.hasOwnProperty(Se))xe!=null&&(typeof xe!="function"&&fv(Se,xe),Se==="onScroll"&&yr("scroll",e));else if(g&&typeof S=="boolean"){var it=void 0,Nt=S&&Oe?null:te(Se);if(n[ju]!==!0){if(!(Se===uv||Se===ju||Se==="value"||Se==="checked"||Se==="selected")){if(Se===Kp){var kt=e.innerHTML,fa=xe?xe[cv]:void 0;if(fa!=null){var pa=I3(e,fa);pa!==kt&&Xp(Se,kt,pa)}}else if(Se===zc){if(x.delete(Se),O3){var se=cI(xe);it=e.getAttribute("style"),se!==it&&Xp(Se,it,se)}}else if(S&&!Oe)x.delete(Se.toLowerCase()),it=tt(e,Se,xe),xe!==it&&Xp(Se,it,xe);else if(!ga(Se,Nt,S)&&!I(Se,xe,Nt,S)){var De=!1;if(Nt!==null)x.delete(Nt.attributeName),it=Be(e,Se,xe,Nt);else{var ue=i;if(ue===Hs&&(ue=Z_(t)),ue===Hs)x.delete(Se.toLowerCase());else{var qe=KF(Se);qe!==null&&qe!==Se&&(De=!0,x.delete(qe)),x.delete(Se)}it=tt(e,Se,xe)}var mt=Oe;!mt&&xe!==it&&!De&&Xp(Se,it,xe)}}}}}switch(g&&x.size>0&&n[ju]!==!0&&N3(x),t){case"input":Ou(e),Tt(e,n,!0);break;case"textarea":Ou(e),Gw(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&mv(e);break}return ye}function JF(e,t,n){var i=e.nodeValue!==t;return i}function m1(e,t){{if(To)return;To=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function v1(e,t){{if(To)return;To=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function g1(e,t,n){{if(To)return;To=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function _1(e,t){{if(t===""||To)return;To=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function QF(e,t,n){switch(t){case"input":ra(e,n);return;case"textarea":Y7(e,n);return;case"select":W7(e,n);return}}var Jp=function(){},Qp=function(){};{var ZF=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],M3=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],e9=M3.concat(["button"]),t9=["dd","dt","li","option","optgroup","p","rp","rt"],F3={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Qp=function(e,t){var n=Pt({},e||F3),i={tag:t};return M3.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),e9.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ZF.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=i,t==="form"&&(n.formTag=i),t==="a"&&(n.aTagInScope=i),t==="button"&&(n.buttonTagInScope=i),t==="nobr"&&(n.nobrTagInScope=i),t==="p"&&(n.pTagInButtonScope=i),t==="li"&&(n.listItemTagAutoclosing=i),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=i),n};var a9=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return t9.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},r9=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},z3={};Jp=function(e,t,n){n=n||F3;var i=n.current,c=i&&i.tag;t!=null&&(e!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var f=a9(e,c)?null:i,g=f?null:r9(e,n),S=f||g;if(S){var x=S.tag,R=!!f+"|"+e+"|"+x;if(!z3[R]){z3[R]=!0;var O=e,Q="";if(e==="#text"?/\S/.test(t)?O="Text nodes":(O="Whitespace text nodes",Q=" Make sure you don't have any extra whitespace between tags on each line of your source code."):O="<"+e+">",f){var X="";x==="table"&&e==="tr"&&(X+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",O,x,Q,X)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",O,x)}}}}var vv="suppressHydrationWarning",gv="$",_v="/$",Zp="$?",eh="$!",n9="style",b1=null,y1=null;function o9(e){var t,n,i=e.nodeType;switch(i){case Us:case tb:{t=i===Us?"#document":"#fragment";var c=e.documentElement;n=c?c.namespaceURI:eb(null,"");break}default:{var f=i===Gr?e.parentNode:e,g=f.namespaceURI||null;t=f.tagName,n=eb(g,t);break}}{var S=t.toLowerCase(),x=Qp(null,S);return{namespace:n,ancestorInfo:x}}}function i9(e,t,n){{var i=e,c=eb(i.namespace,t),f=Qp(i.ancestorInfo,t);return{namespace:c,ancestorInfo:f}}}function EG(e){return e}function l9(e){b1=nM(),y1=SF();var t=null;return GC(!1),t}function s9(e){wF(y1),GC(b1),b1=null,y1=null}function u9(e,t,n,i,c){var f;{var g=i;if(Jp(e,null,g.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var S=""+t.children,x=Qp(g.ancestorInfo,e);Jp(null,S,x)}f=g.namespace}var R=WF(e,t,n,f);return rh(c,R),R1(R,t),R}function c9(e,t){e.appendChild(t)}function d9(e,t,n,i,c){switch($F(e,t,n,i),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function f9(e,t,n,i,c,f){{var g=f;if(typeof i.children!=typeof n.children&&(typeof i.children=="string"||typeof i.children=="number")){var S=""+i.children,x=Qp(g.ancestorInfo,t);Jp(null,S,x)}}return GF(e,t,n,i)}function S1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function p9(e,t,n,i){{var c=n;Jp(null,e,c.ancestorInfo)}var f=YF(e,t);return rh(i,f),f}function h9(){var e=window.event;return e===void 0?Ks:qC(e.type)}var w1=typeof setTimeout=="function"?setTimeout:void 0,m9=typeof clearTimeout=="function"?clearTimeout:void 0,C1=-1,H3=typeof Promise=="function"?Promise:void 0,v9=typeof queueMicrotask=="function"?queueMicrotask:typeof H3!="undefined"?function(e){return H3.resolve(null).then(e).catch(g9)}:w1;function g9(e){setTimeout(function(){throw e})}function _9(e,t,n,i){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();return;case"img":{n.src&&(e.src=n.src);return}}}function b9(e,t,n,i,c,f){qF(e,t,n,i,c),R1(e,c)}function j3(e){Mm(e,"")}function y9(e,t,n){e.nodeValue=n}function S9(e,t){e.appendChild(t)}function w9(e,t){var n;e.nodeType===Gr?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var i=e._reactRootContainer;i==null&&n.onclick===null&&mv(n)}function C9(e,t,n){e.insertBefore(t,n)}function x9(e,t,n){e.nodeType===Gr?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function T9(e,t){e.removeChild(t)}function k9(e,t){e.nodeType===Gr?e.parentNode.removeChild(t):e.removeChild(t)}function x1(e,t){var n=t,i=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===Gr){var f=c.data;if(f===_v)if(i===0){e.removeChild(c),Pp(t);return}else i--;else(f===gv||f===Zp||f===eh)&&i++}n=c}while(n);Pp(t)}function E9(e,t){e.nodeType===Gr?x1(e.parentNode,t):e.nodeType===xo&&x1(e,t),Pp(e)}function R9(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function D9(e){e.nodeValue=""}function A9(e,t){e=e;var n=t[n9],i=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=ab("display",i)}function L9(e,t){e.nodeValue=t}function B9(e){e.nodeType===xo?e.textContent="":e.nodeType===Us&&e.documentElement&&e.removeChild(e.documentElement)}function N9(e,t,n){return e.nodeType!==xo||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function O9(e,t){return t===""||e.nodeType!==js?null:e}function I9(e){return e.nodeType!==Gr?null:e}function U3(e){return e.data===Zp}function T1(e){return e.data===eh}function P9(e){var t=e.nextSibling&&e.nextSibling.dataset,n,i,c;return t&&(n=t.dgst,i=t.msg,c=t.stck),{message:i,digest:n,stack:c}}function M9(e,t){e._reactRetry=t}function bv(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===xo||t===js)break;if(t===Gr){var n=e.data;if(n===gv||n===eh||n===Zp)break;if(n===_v)return null}}return e}function th(e){return bv(e.nextSibling)}function F9(e){return bv(e.firstChild)}function z9(e){return bv(e.firstChild)}function H9(e){return bv(e.nextSibling)}function j9(e,t,n,i,c,f,g){rh(f,e),R1(e,n);var S;{var x=c;S=x.namespace}var R=(f.mode&ba)!==Ft;return XF(e,t,n,S,i,R,g)}function U9(e,t,n,i){rh(n,e);var c=(n.mode&ba)!==Ft;return JF(e,t)}function V9(e,t){rh(t,e)}function W9(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===Gr){var i=t.data;if(i===_v){if(n===0)return th(t);n--}else(i===gv||i===eh||i===Zp)&&n++}t=t.nextSibling}return null}function V3(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===Gr){var i=t.data;if(i===gv||i===eh||i===Zp){if(n===0)return t;n--}else i===_v&&n++}t=t.previousSibling}return null}function Y9(e){Pp(e)}function $9(e){Pp(e)}function G9(e){return e!=="head"&&e!=="body"}function q9(e,t,n,i){var c=!0;hv(t.nodeValue,n,i,c)}function K9(e,t,n,i,c,f){if(t[vv]!==!0){var g=!0;hv(i.nodeValue,c,f,g)}}function X9(e,t){t.nodeType===xo?m1(e,t):t.nodeType===Gr||v1(e,t)}function J9(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===xo?m1(n,t):t.nodeType===Gr||v1(n,t))}}function Q9(e,t,n,i,c){(c||t[vv]!==!0)&&(i.nodeType===xo?m1(n,i):i.nodeType===Gr||v1(n,i))}function Z9(e,t,n){g1(e,t)}function ez(e,t){_1(e,t)}function tz(e,t,n){{var i=e.parentNode;i!==null&&g1(i,t)}}function az(e,t){{var n=e.parentNode;n!==null&&_1(n,t)}}function rz(e,t,n,i,c,f){(f||t[vv]!==!0)&&g1(n,i)}function nz(e,t,n,i,c){(c||t[vv]!==!0)&&_1(n,i)}function oz(e){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function iz(e){Gp(e)}var af=Math.random().toString(36).slice(2),rf="__reactFiber$"+af,k1="__reactProps$"+af,ah="__reactContainer$"+af,E1="__reactEvents$"+af,lz="__reactListeners$"+af,sz="__reactHandles$"+af;function uz(e){delete e[rf],delete e[k1],delete e[E1],delete e[lz],delete e[sz]}function rh(e,t){t[rf]=e}function yv(e,t){t[ah]=e}function W3(e){e[ah]=null}function nh(e){return!!e[ah]}function Hc(e){var t=e[rf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ah]||n[rf],t){var i=t.alternate;if(t.child!==null||i!==null&&i.child!==null)for(var c=V3(e);c!==null;){var f=c[rf];if(f)return f;c=V3(c)}return t}e=n,n=e.parentNode}return null}function Uu(e){var t=e[rf]||e[ah];return t&&(t.tag===w||t.tag===T||t.tag===K||t.tag===b)?t:null}function nf(e){if(e.tag===w||e.tag===T)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Sv(e){return e[k1]||null}function R1(e,t){e[k1]=t}function cz(e){var t=e[E1];return t===void 0&&(t=e[E1]=new Set),t}var Y3={},$3=o.ReactDebugCurrentFrame;function wv(e){if(e){var t=e._owner,n=Rd(e.type,e._source,t?t.type:null);$3.setExtraStackFrame(n)}else $3.setExtraStackFrame(null)}function zl(e,t,n,i,c){{var f=Function.call.bind(zt);for(var g in e)if(f(e,g)){var S=void 0;try{if(typeof e[g]!="function"){var x=Error((i||"React class")+": "+n+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}S=e[g](t,g,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){S=R}S&&!(S instanceof Error)&&(wv(c),u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,g,typeof S),wv(null)),S instanceof Error&&!(S.message in Y3)&&(Y3[S.message]=!0,wv(c),u("Failed %s type: %s",n,S.message),wv(null))}}}var D1=[],Cv;Cv=[];var Xs=-1;function Vu(e){return{current:e}}function jn(e,t){if(Xs<0){u("Unexpected pop.");return}t!==Cv[Xs]&&u("Unexpected Fiber popped."),e.current=D1[Xs],D1[Xs]=null,Cv[Xs]=null,Xs--}function Un(e,t,n){Xs++,D1[Xs]=e.current,Cv[Xs]=n,e.current=t}var A1;A1={};var Wo={};Object.freeze(Wo);var Js=Vu(Wo),vs=Vu(!1),L1=Wo;function of(e,t,n){return n&&gs(t)?L1:Js.current}function G3(e,t,n){{var i=e.stateNode;i.__reactInternalMemoizedUnmaskedChildContext=t,i.__reactInternalMemoizedMaskedChildContext=n}}function lf(e,t){{var n=e.type,i=n.contextTypes;if(!i)return Wo;var c=e.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===t)return c.__reactInternalMemoizedMaskedChildContext;var f={};for(var g in i)f[g]=t[g];{var S=na(e)||"Unknown";zl(i,f,"context",S)}return c&&G3(e,t,f),f}}function xv(){return vs.current}function gs(e){{var t=e.childContextTypes;return t!=null}}function Tv(e){jn(vs,e),jn(Js,e)}function B1(e){jn(vs,e),jn(Js,e)}function q3(e,t,n){{if(Js.current!==Wo)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Un(Js,t,e),Un(vs,n,e)}}function K3(e,t,n){{var i=e.stateNode,c=t.childContextTypes;if(typeof i.getChildContext!="function"){{var f=na(e)||"Unknown";A1[f]||(A1[f]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",f,f))}return n}var g=i.getChildContext();for(var S in g)if(!(S in c))throw new Error((na(e)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var x=na(e)||"Unknown";zl(c,g,"child context",x)}return Pt({},n,g)}}function kv(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Wo;return L1=Js.current,Un(Js,n,e),Un(vs,vs.current,e),!0}}function X3(e,t,n){{var i=e.stateNode;if(!i)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var c=K3(e,t,L1);i.__reactInternalMemoizedMergedChildContext=c,jn(vs,e),jn(Js,e),Un(Js,c,e),Un(vs,n,e)}else jn(vs,e),Un(vs,n,e)}}function dz(e){{if(!GI(e)||e.tag!==v)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case b:return t.stateNode.context;case v:{var n=t.type;if(gs(n))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Wu=0,Ev=1,Qs=null,N1=!1,O1=!1;function J3(e){Qs===null?Qs=[e]:Qs.push(e)}function fz(e){N1=!0,J3(e)}function Q3(){N1&&Yu()}function Yu(){if(!O1&&Qs!==null){O1=!0;var e=0,t=Fl();try{var n=!0,i=Qs;for(bn(jo);e<i.length;e++){var c=i[e];do c=c(n);while(c!==null)}Qs=null,N1=!1}catch(f){throw Qs!==null&&(Qs=Qs.slice(e+1)),wC(Vm,Yu),f}finally{bn(t),O1=!1}}return null}var sf=[],uf=0,Rv=null,Dv=0,yl=[],Sl=0,jc=null,Zs=1,eu="";function pz(e){return Vc(),(e.flags&hC)!==jt}function hz(e){return Vc(),Dv}function mz(){var e=eu,t=Zs,n=t&~vz(t);return n.toString(32)+e}function Uc(e,t){Vc(),sf[uf++]=Dv,sf[uf++]=Rv,Rv=e,Dv=t}function Z3(e,t,n){Vc(),yl[Sl++]=Zs,yl[Sl++]=eu,yl[Sl++]=jc,jc=e;var i=Zs,c=eu,f=Av(i)-1,g=i&~(1<<f),S=n+1,x=Av(t)+f;if(x>30){var R=f-f%5,O=(1<<R)-1,Q=(g&O).toString(32),X=g>>R,ye=f-R,Se=Av(t)+ye,xe=S<<ye,it=xe|X,Nt=Q+c;Zs=1<<Se|it,eu=Nt}else{var kt=S<<f,fa=kt|g,pa=c;Zs=1<<x|fa,eu=pa}}function I1(e){Vc();var t=e.return;if(t!==null){var n=1,i=0;Uc(e,n),Z3(e,n,i)}}function Av(e){return 32-RC(e)}function vz(e){return 1<<Av(e)-1}function P1(e){for(;e===Rv;)Rv=sf[--uf],sf[uf]=null,Dv=sf[--uf],sf[uf]=null;for(;e===jc;)jc=yl[--Sl],yl[Sl]=null,eu=yl[--Sl],yl[Sl]=null,Zs=yl[--Sl],yl[Sl]=null}function gz(){return Vc(),jc!==null?{id:Zs,overflow:eu}:null}function _z(e,t){Vc(),yl[Sl++]=Zs,yl[Sl++]=eu,yl[Sl++]=jc,Zs=t.id,eu=t.overflow,jc=e}function Vc(){kn()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Tn=null,wl=null,Hl=!1,Wc=!1,$u=null;function bz(){Hl&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ex(){Wc=!0}function yz(){return Wc}function Sz(e){var t=e.stateNode.containerInfo;return wl=z9(t),Tn=e,Hl=!0,$u=null,Wc=!1,!0}function wz(e,t,n){return wl=H9(t),Tn=e,Hl=!0,$u=null,Wc=!1,n!==null&&_z(e,n),!0}function tx(e,t){switch(e.tag){case b:{X9(e.stateNode.containerInfo,t);break}case w:{var n=(e.mode&ba)!==Ft;Q9(e.type,e.memoizedProps,e.stateNode,t,n);break}case K:{var i=e.memoizedState;i.dehydrated!==null&&J9(i.dehydrated,t);break}}}function ax(e,t){tx(e,t);var n=LU();n.stateNode=t,n.return=e;var i=e.deletions;i===null?(e.deletions=[n],e.flags|=Ec):i.push(n)}function M1(e,t){{if(Wc)return;switch(e.tag){case b:{var n=e.stateNode.containerInfo;switch(t.tag){case w:var i=t.type,c=t.pendingProps;Z9(n,i);break;case T:var f=t.pendingProps;ez(n,f);break}break}case w:{var g=e.type,S=e.memoizedProps,x=e.stateNode;switch(t.tag){case w:{var R=t.type,O=t.pendingProps,Q=(e.mode&ba)!==Ft;rz(g,S,x,R,O,Q);break}case T:{var X=t.pendingProps,ye=(e.mode&ba)!==Ft;nz(g,S,x,X,ye);break}}break}case K:{var Se=e.memoizedState,xe=Se.dehydrated;if(xe!==null)switch(t.tag){case w:var it=t.type,Nt=t.pendingProps;tz(xe,it);break;case T:var kt=t.pendingProps;az(xe,kt);break}break}default:return}}}function rx(e,t){t.flags=t.flags&~Ws|qr,M1(e,t)}function nx(e,t){switch(e.tag){case w:{var n=e.type,i=e.pendingProps,c=N9(t,n);return c!==null?(e.stateNode=c,Tn=e,wl=F9(c),!0):!1}case T:{var f=e.pendingProps,g=O9(t,f);return g!==null?(e.stateNode=g,Tn=e,wl=null,!0):!1}case K:{var S=I9(t);if(S!==null){var x={dehydrated:S,treeContext:gz(),retryLane:zo};e.memoizedState=x;var R=BU(S);return R.return=e,e.child=R,Tn=e,wl=null,!0}return!1}default:return!1}}function F1(e){return(e.mode&ba)!==Ft&&(e.flags&Ma)===jt}function z1(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function H1(e){if(Hl){var t=wl;if(!t){F1(e)&&(M1(Tn,e),z1()),rx(Tn,e),Hl=!1,Tn=e;return}var n=t;if(!nx(e,t)){F1(e)&&(M1(Tn,e),z1()),t=th(n);var i=Tn;if(!t||!nx(e,t)){rx(Tn,e),Hl=!1,Tn=e;return}ax(i,n)}}}function Cz(e,t,n){var i=e.stateNode,c=!Wc,f=j9(i,e.type,e.memoizedProps,t,n,e,c);return e.updateQueue=f,f!==null}function xz(e){var t=e.stateNode,n=e.memoizedProps,i=U9(t,n,e);if(i){var c=Tn;if(c!==null)switch(c.tag){case b:{var f=c.stateNode.containerInfo,g=(c.mode&ba)!==Ft;q9(f,t,n,g);break}case w:{var S=c.type,x=c.memoizedProps,R=c.stateNode,O=(c.mode&ba)!==Ft;K9(S,x,R,t,n,O);break}}}return i}function Tz(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V9(n,e)}function kz(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return W9(n)}function ox(e){for(var t=e.return;t!==null&&t.tag!==w&&t.tag!==b&&t.tag!==K;)t=t.return;Tn=t}function Lv(e){if(e!==Tn)return!1;if(!Hl)return ox(e),Hl=!0,!1;if(e.tag!==b&&(e.tag!==w||G9(e.type)&&!S1(e.type,e.memoizedProps))){var t=wl;if(t)if(F1(e))ix(e),z1();else for(;t;)ax(e,t),t=th(t)}return ox(e),e.tag===K?wl=kz(e):wl=Tn?th(e.stateNode):null,!0}function Ez(){return Hl&&wl!==null}function ix(e){for(var t=wl;t;)tx(e,t),t=th(t)}function cf(){Tn=null,wl=null,Hl=!1,Wc=!1}function lx(){$u!==null&&(tT($u),$u=null)}function kn(){return Hl}function j1(e){$u===null?$u=[e]:$u.push(e)}var Rz=o.ReactCurrentBatchConfig,Dz=null;function Az(){return Rz.transition}var jl={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Lz=function(e){for(var t=null,n=e;n!==null;)n.mode&Nr&&(t=n),n=n.return;return t},Yc=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},oh=[],ih=[],lh=[],sh=[],uh=[],ch=[],$c=new Set;jl.recordUnsafeLifecycleWarnings=function(e,t){$c.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&oh.push(e),e.mode&Nr&&typeof t.UNSAFE_componentWillMount=="function"&&ih.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&lh.push(e),e.mode&Nr&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&sh.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&uh.push(e),e.mode&Nr&&typeof t.UNSAFE_componentWillUpdate=="function"&&ch.push(e))},jl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;oh.length>0&&(oh.forEach(function(X){e.add(na(X)||"Component"),$c.add(X.type)}),oh=[]);var t=new Set;ih.length>0&&(ih.forEach(function(X){t.add(na(X)||"Component"),$c.add(X.type)}),ih=[]);var n=new Set;lh.length>0&&(lh.forEach(function(X){n.add(na(X)||"Component"),$c.add(X.type)}),lh=[]);var i=new Set;sh.length>0&&(sh.forEach(function(X){i.add(na(X)||"Component"),$c.add(X.type)}),sh=[]);var c=new Set;uh.length>0&&(uh.forEach(function(X){c.add(na(X)||"Component"),$c.add(X.type)}),uh=[]);var f=new Set;if(ch.length>0&&(ch.forEach(function(X){f.add(na(X)||"Component"),$c.add(X.type)}),ch=[]),t.size>0){var g=Yc(t);u(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
33
33
 
34
34
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
35
35
 
@@ -68,7 +68,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`,c)}
68
68
  1. You may be adding a ref to a function component
69
69
  2. You may be adding a ref to a component that was not created inside a component's render method
70
70
  3. You have multiple copies of React loaded
71
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return i}function Nv(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Ov(e){{var t=na(e)||"Component";if($1[t])return;$1[t]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function cx(e){var t=e._payload,n=e._init;return n(t)}function dx(e){function t(se,De){if(e){var ue=se.deletions;ue===null?(se.deletions=[De],se.flags|=Ec):ue.push(De)}}function n(se,De){if(!e)return null;for(var ue=De;ue!==null;)t(se,ue),ue=ue.sibling;return null}function i(se,De){for(var ue=new Map,qe=De;qe!==null;)qe.key!==null?ue.set(qe.key,qe):ue.set(qe.index,qe),qe=qe.sibling;return ue}function c(se,De){var ue=td(se,De);return ue.index=0,ue.sibling=null,ue}function f(se,De,ue){if(se.index=ue,!e)return se.flags|=hC,De;var qe=se.alternate;if(qe!==null){var mt=qe.index;return mt<De?(se.flags|=qr,De):mt}else return se.flags|=qr,De}function g(se){return e&&se.alternate===null&&(se.flags|=qr),se}function S(se,De,ue,qe){if(De===null||De.tag!==T){var mt=Uy(ue,se.mode,qe);return mt.return=se,mt}else{var st=c(De,ue);return st.return=se,st}}function x(se,De,ue,qe){var mt=ue.type;if(mt===le)return O(se,De,ue.props.children,qe,ue.key);if(De!==null&&(De.elementType===mt||g4(De,ue)||typeof mt=="object"&&mt!==null&&mt.$$typeof===at&&cx(mt)===De.type)){var st=c(De,ue.props);return st.ref=dh(se,De,ue),st.return=se,st._debugSource=ue._source,st._debugOwner=ue._owner,st}var Vt=jy(ue,se.mode,qe);return Vt.ref=dh(se,De,ue),Vt.return=se,Vt}function R(se,De,ue,qe){if(De===null||De.tag!==C||De.stateNode.containerInfo!==ue.containerInfo||De.stateNode.implementation!==ue.implementation){var mt=Vy(ue,se.mode,qe);return mt.return=se,mt}else{var st=c(De,ue.children||[]);return st.return=se,st}}function O(se,De,ue,qe,mt){if(De===null||De.tag!==L){var st=rc(ue,se.mode,qe,mt);return st.return=se,st}else{var Vt=c(De,ue);return Vt.return=se,Vt}}function Q(se,De,ue){if(typeof De=="string"&&De!==""||typeof De=="number"){var qe=Uy(""+De,se.mode,ue);return qe.return=se,qe}if(typeof De=="object"&&De!==null){switch(De.$$typeof){case Y:{var mt=jy(De,se.mode,ue);return mt.ref=dh(se,null,De),mt.return=se,mt}case ae:{var st=Vy(De,se.mode,ue);return st.return=se,st}case at:{var Vt=De._payload,Zt=De._init;return Q(se,Zt(Vt),ue)}}if(tn(De)||$r(De)){var er=rc(De,se.mode,ue,null);return er.return=se,er}Nv(se,De)}return typeof De=="function"&&Ov(se),null}function X(se,De,ue,qe){var mt=De!==null?De.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return mt!==null?null:S(se,De,""+ue,qe);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case Y:return ue.key===mt?x(se,De,ue,qe):null;case ae:return ue.key===mt?R(se,De,ue,qe):null;case at:{var st=ue._payload,Vt=ue._init;return X(se,De,Vt(st),qe)}}if(tn(ue)||$r(ue))return mt!==null?null:O(se,De,ue,qe,null);Nv(se,ue)}return typeof ue=="function"&&Ov(se),null}function ye(se,De,ue,qe,mt){if(typeof qe=="string"&&qe!==""||typeof qe=="number"){var st=se.get(ue)||null;return S(De,st,""+qe,mt)}if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case Y:{var Vt=se.get(qe.key===null?ue:qe.key)||null;return x(De,Vt,qe,mt)}case ae:{var Zt=se.get(qe.key===null?ue:qe.key)||null;return R(De,Zt,qe,mt)}case at:var er=qe._payload,Da=qe._init;return ye(se,De,ue,Da(er),mt)}if(tn(qe)||$r(qe)){var Ur=se.get(ue)||null;return O(De,Ur,qe,mt,null)}Nv(De,qe)}return typeof qe=="function"&&Ov(De),null}function Se(se,De,ue){{if(typeof se!="object"||se===null)return De;switch(se.$$typeof){case Y:case ae:ux(se,ue);var qe=se.key;if(typeof qe!="string")break;if(De===null){De=new Set,De.add(qe);break}if(!De.has(qe)){De.add(qe);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",qe);break;case at:var mt=se._payload,st=se._init;Se(st(mt),De,ue);break}}return De}function xe(se,De,ue,qe){for(var mt=null,st=0;st<ue.length;st++){var Vt=ue[st];mt=Se(Vt,mt,se)}for(var Zt=null,er=null,Da=De,Ur=0,Aa=0,Or=null;Da!==null&&Aa<ue.length;Aa++){Da.index>Aa?(Or=Da,Da=null):Or=Da.sibling;var Wn=X(se,Da,ue[Aa],qe);if(Wn===null){Da===null&&(Da=Or);break}e&&Da&&Wn.alternate===null&&t(se,Da),Ur=f(Wn,Ur,Aa),er===null?Zt=Wn:er.sibling=Wn,er=Wn,Da=Or}if(Aa===ue.length){if(n(se,Da),kn()){var Nn=Aa;Uc(se,Nn)}return Zt}if(Da===null){for(;Aa<ue.length;Aa++){var $o=Q(se,ue[Aa],qe);$o!==null&&(Ur=f($o,Ur,Aa),er===null?Zt=$o:er.sibling=$o,er=$o)}if(kn()){var oo=Aa;Uc(se,oo)}return Zt}for(var io=i(se,Da);Aa<ue.length;Aa++){var Yn=ye(io,se,Aa,ue[Aa],qe);Yn!==null&&(e&&Yn.alternate!==null&&io.delete(Yn.key===null?Aa:Yn.key),Ur=f(Yn,Ur,Aa),er===null?Zt=Yn:er.sibling=Yn,er=Yn)}if(e&&io.forEach(function(Df){return t(se,Df)}),kn()){var lu=Aa;Uc(se,lu)}return Zt}function it(se,De,ue,qe){var mt=$r(ue);if(typeof mt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ue[Symbol.toStringTag]==="Generator"&&(V1||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),V1=!0),ue.entries===mt&&(U1||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),U1=!0);var st=mt.call(ue);if(st)for(var Vt=null,Zt=st.next();!Zt.done;Zt=st.next()){var er=Zt.value;Vt=Se(er,Vt,se)}}var Da=mt.call(ue);if(Da==null)throw new Error("An iterable object provided no iterator.");for(var Ur=null,Aa=null,Or=De,Wn=0,Nn=0,$o=null,oo=Da.next();Or!==null&&!oo.done;Nn++,oo=Da.next()){Or.index>Nn?($o=Or,Or=null):$o=Or.sibling;var io=X(se,Or,oo.value,qe);if(io===null){Or===null&&(Or=$o);break}e&&Or&&io.alternate===null&&t(se,Or),Wn=f(io,Wn,Nn),Aa===null?Ur=io:Aa.sibling=io,Aa=io,Or=$o}if(oo.done){if(n(se,Or),kn()){var Yn=Nn;Uc(se,Yn)}return Ur}if(Or===null){for(;!oo.done;Nn++,oo=Da.next()){var lu=Q(se,oo.value,qe);lu!==null&&(Wn=f(lu,Wn,Nn),Aa===null?Ur=lu:Aa.sibling=lu,Aa=lu)}if(kn()){var Df=Nn;Uc(se,Df)}return Ur}for(var Vh=i(se,Or);!oo.done;Nn++,oo=Da.next()){var Ts=ye(Vh,se,Nn,oo.value,qe);Ts!==null&&(e&&Ts.alternate!==null&&Vh.delete(Ts.key===null?Nn:Ts.key),Wn=f(Ts,Wn,Nn),Aa===null?Ur=Ts:Aa.sibling=Ts,Aa=Ts)}if(e&&Vh.forEach(function(uV){return t(se,uV)}),kn()){var sV=Nn;Uc(se,sV)}return Ur}function Nt(se,De,ue,qe){if(De!==null&&De.tag===T){n(se,De.sibling);var mt=c(De,ue);return mt.return=se,mt}n(se,De);var st=Uy(ue,se.mode,qe);return st.return=se,st}function kt(se,De,ue,qe){for(var mt=ue.key,st=De;st!==null;){if(st.key===mt){var Vt=ue.type;if(Vt===le){if(st.tag===L){n(se,st.sibling);var Zt=c(st,ue.props.children);return Zt.return=se,Zt._debugSource=ue._source,Zt._debugOwner=ue._owner,Zt}}else if(st.elementType===Vt||g4(st,ue)||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===at&&cx(Vt)===st.type){n(se,st.sibling);var er=c(st,ue.props);return er.ref=dh(se,st,ue),er.return=se,er._debugSource=ue._source,er._debugOwner=ue._owner,er}n(se,st);break}else t(se,st);st=st.sibling}if(ue.type===le){var Da=rc(ue.props.children,se.mode,qe,ue.key);return Da.return=se,Da}else{var Ur=jy(ue,se.mode,qe);return Ur.ref=dh(se,De,ue),Ur.return=se,Ur}}function fa(se,De,ue,qe){for(var mt=ue.key,st=De;st!==null;){if(st.key===mt)if(st.tag===C&&st.stateNode.containerInfo===ue.containerInfo&&st.stateNode.implementation===ue.implementation){n(se,st.sibling);var Vt=c(st,ue.children||[]);return Vt.return=se,Vt}else{n(se,st);break}else t(se,st);st=st.sibling}var Zt=Vy(ue,se.mode,qe);return Zt.return=se,Zt}function pa(se,De,ue,qe){var mt=typeof ue=="object"&&ue!==null&&ue.type===le&&ue.key===null;if(mt&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case Y:return g(kt(se,De,ue,qe));case ae:return g(fa(se,De,ue,qe));case at:var st=ue._payload,Vt=ue._init;return pa(se,De,Vt(st),qe)}if(tn(ue))return xe(se,De,ue,qe);if($r(ue))return it(se,De,ue,qe);Nv(se,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?g(Nt(se,De,""+ue,qe)):(typeof ue=="function"&&Ov(se),n(se,De))}return pa}var df=dx(!0),fx=dx(!1);function Nz(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var n=t.child,i=td(n,n.pendingProps);for(t.child=i,i.return=t;n.sibling!==null;)n=n.sibling,i=i.sibling=td(n,n.pendingProps),i.return=t;i.sibling=null}}function Oz(e,t){for(var n=e.child;n!==null;)kU(n,t),n=n.sibling}var G1=Vu(null),q1;q1={};var Iv=null,ff=null,K1=null,Pv=!1;function Mv(){Iv=null,ff=null,K1=null,Pv=!1}function px(){Pv=!0}function hx(){Pv=!1}function mx(e,t,n){Un(G1,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==q1&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=q1}function X1(e,t){var n=G1.current;jn(G1,t),e._currentValue=n}function J1(e,t,n){for(var i=e;i!==null;){var c=i.alternate;if(Kd(i.childLanes,t)?c!==null&&!Kd(c.childLanes,t)&&(c.childLanes=ua(c.childLanes,t)):(i.childLanes=ua(i.childLanes,t),c!==null&&(c.childLanes=ua(c.childLanes,t))),i===n)break;i=i.return}i!==n&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Iz(e,t,n){Pz(e,t,n)}function Pz(e,t,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var c=void 0,f=i.dependencies;if(f!==null){c=i.child;for(var g=f.firstContext;g!==null;){if(g.context===t){if(i.tag===v){var S=Dp(n),x=tu(gr,S);x.tag=zv;var R=i.updateQueue;if(R!==null){var O=R.shared,Q=O.pending;Q===null?x.next=x:(x.next=Q.next,Q.next=x),O.pending=x}}i.lanes=ua(i.lanes,n);var X=i.alternate;X!==null&&(X.lanes=ua(X.lanes,n)),J1(i.return,n,e),f.lanes=ua(f.lanes,n);break}g=g.next}}else if(i.tag===F)c=i.type===e.type?null:i.child;else if(i.tag===pe){var ye=i.return;if(ye===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ye.lanes=ua(ye.lanes,n);var Se=ye.alternate;Se!==null&&(Se.lanes=ua(Se.lanes,n)),J1(ye,n,e),c=i.sibling}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===e){c=null;break}var xe=c.sibling;if(xe!==null){xe.return=c.return,c=xe;break}c=c.return}i=c}}function pf(e,t){Iv=e,ff=null,K1=null;var n=e.dependencies;if(n!==null){var i=n.firstContext;i!==null&&(Ho(n.lanes,t)&&kh(),n.firstContext=null)}}function Kr(e){Pv&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(K1!==e){var n={context:e,memoizedValue:t,next:null};if(ff===null){if(Iv===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");ff=n,Iv.dependencies={lanes:je,firstContext:n}}else ff=ff.next=n}return t}var Gc=null;function Q1(e){Gc===null?Gc=[e]:Gc.push(e)}function Mz(){if(Gc!==null){for(var e=0;e<Gc.length;e++){var t=Gc[e],n=t.interleaved;if(n!==null){t.interleaved=null;var i=n.next,c=t.pending;if(c!==null){var f=c.next;c.next=i,n.next=f}t.pending=n}}Gc=null}}function vx(e,t,n,i){var c=t.interleaved;return c===null?(n.next=n,Q1(t)):(n.next=c.next,c.next=n),t.interleaved=n,Fv(e,i)}function Fz(e,t,n,i){var c=t.interleaved;c===null?(n.next=n,Q1(t)):(n.next=c.next,c.next=n),t.interleaved=n}function zz(e,t,n,i){var c=t.interleaved;return c===null?(n.next=n,Q1(t)):(n.next=c.next,c.next=n),t.interleaved=n,Fv(e,i)}function ko(e,t){return Fv(e,t)}var Hz=Fv;function Fv(e,t){e.lanes=ua(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=ua(n.lanes,t)),n===null&&(e.flags&(qr|Ws))!==jt&&p4(e);for(var i=e,c=e.return;c!==null;)c.childLanes=ua(c.childLanes,t),n=c.alternate,n!==null?n.childLanes=ua(n.childLanes,t):(c.flags&(qr|Ws))!==jt&&p4(e),i=c,c=c.return;if(i.tag===b){var f=i.stateNode;return f}else return null}var gx=0,_x=1,zv=2,Z1=3,Hv=!1,e0,jv;e0=!1,jv=null;function t0(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:je},effects:null};e.updateQueue=t}function bx(e,t){var n=t.updateQueue,i=e.updateQueue;if(n===i){var c={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects};t.updateQueue=c}}function tu(e,t){var n={eventTime:e,lane:t,tag:gx,payload:null,callback:null,next:null};return n}function Gu(e,t,n){var i=e.updateQueue;if(i===null)return null;var c=i.shared;if(jv===c&&!e0&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),e0=!0),Vj()){var f=c.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),c.pending=t,Hz(e,n)}else return zz(e,c,t,n)}function Uv(e,t,n){var i=t.updateQueue;if(i!==null){var c=i.shared;if(BC(n)){var f=c.lanes;f=OC(f,e.pendingLanes);var g=ua(f,n);c.lanes=g,Gb(e,g)}}}function a0(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null){var c=i.updateQueue;if(n===c){var f=null,g=null,S=n.firstBaseUpdate;if(S!==null){var x=S;do{var R={eventTime:x.eventTime,lane:x.lane,tag:x.tag,payload:x.payload,callback:x.callback,next:null};g===null?f=g=R:(g.next=R,g=R),x=x.next}while(x!==null);g===null?f=g=t:(g.next=t,g=t)}else f=g=t;n={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:c.shared,effects:c.effects},e.updateQueue=n;return}}var O=n.lastBaseUpdate;O===null?n.firstBaseUpdate=t:O.next=t,n.lastBaseUpdate=t}function jz(e,t,n,i,c,f){switch(n.tag){case _x:{var g=n.payload;if(typeof g=="function"){px();var S=g.call(f,i,c);{if(e.mode&Nr){gn(!0);try{g.call(f,i,c)}finally{gn(!1)}}hx()}return S}return g}case Z1:e.flags=e.flags&~to|Ma;case gx:{var x=n.payload,R;if(typeof x=="function"){px(),R=x.call(f,i,c);{if(e.mode&Nr){gn(!0);try{x.call(f,i,c)}finally{gn(!1)}}hx()}}else R=x;return R==null?i:Pt({},i,R)}case zv:return Hv=!0,i}return i}function Vv(e,t,n,i){var c=e.updateQueue;Hv=!1,jv=c.shared;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var x=S,R=x.next;x.next=null,g===null?f=R:g.next=R,g=x;var O=e.alternate;if(O!==null){var Q=O.updateQueue,X=Q.lastBaseUpdate;X!==g&&(X===null?Q.firstBaseUpdate=R:X.next=R,Q.lastBaseUpdate=x)}}if(f!==null){var ye=c.baseState,Se=je,xe=null,it=null,Nt=null,kt=f;do{var fa=kt.lane,pa=kt.eventTime;if(Kd(i,fa)){if(Nt!==null){var De={eventTime:pa,lane:_n,tag:kt.tag,payload:kt.payload,callback:kt.callback,next:null};Nt=Nt.next=De}ye=jz(e,c,kt,ye,t,n);var ue=kt.callback;if(ue!==null&&kt.lane!==_n){e.flags|=hb;var qe=c.effects;qe===null?c.effects=[kt]:qe.push(kt)}}else{var se={eventTime:pa,lane:fa,tag:kt.tag,payload:kt.payload,callback:kt.callback,next:null};Nt===null?(it=Nt=se,xe=ye):Nt=Nt.next=se,Se=ua(Se,fa)}if(kt=kt.next,kt===null){if(S=c.shared.pending,S===null)break;var mt=S,st=mt.next;mt.next=null,kt=st,c.lastBaseUpdate=mt,c.shared.pending=null}}while(!0);Nt===null&&(xe=ye),c.baseState=xe,c.firstBaseUpdate=it,c.lastBaseUpdate=Nt;var Vt=c.shared.interleaved;if(Vt!==null){var Zt=Vt;do Se=ua(Se,Zt.lane),Zt=Zt.next;while(Zt!==Vt)}else f===null&&(c.shared.lanes=je);Fh(Se),e.lanes=Se,e.memoizedState=ye}jv=null}function Uz(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function yx(){Hv=!1}function Wv(){return Hv}function Sx(e,t,n){var i=t.effects;if(t.effects=null,i!==null)for(var c=0;c<i.length;c++){var f=i[c],g=f.callback;g!==null&&(f.callback=null,Uz(g,n))}}var fh={},qu=Vu(fh),ph=Vu(fh),Yv=Vu(fh);function $v(e){if(e===fh)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function wx(){var e=$v(Yv.current);return e}function r0(e,t){Un(Yv,t,e),Un(ph,e,e),Un(qu,fh,e);var n=o9(t);jn(qu,e),Un(qu,n,e)}function hf(e){jn(qu,e),jn(ph,e),jn(Yv,e)}function n0(){var e=$v(qu.current);return e}function Cx(e){var t=$v(Yv.current),n=$v(qu.current),i=i9(n,e.type);n!==i&&(Un(ph,e,e),Un(qu,i,e))}function o0(e){ph.current===e&&(jn(qu,e),jn(ph,e))}var Vz=0,xx=1,Tx=1,hh=2,Ul=Vu(Vz);function i0(e,t){return(e&t)!==0}function mf(e){return e&xx}function l0(e,t){return e&xx|t}function Wz(e,t){return e|t}function Ku(e,t){Un(Ul,t,e)}function vf(e){jn(Ul,e)}function Yz(e,t){var n=e.memoizedState;if(n!==null)return n.dehydrated!==null;var i=e.memoizedProps;return!0}function Gv(e){for(var t=e;t!==null;){if(t.tag===K){var n=t.memoizedState;if(n!==null){var i=n.dehydrated;if(i===null||U3(i)||T1(i))return t}}else if(t.tag===he&&t.memoizedProps.revealOrder!==void 0){var c=(t.flags&Ma)!==jt;if(c)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Eo=0,an=1,_s=2,rn=4,En=8,s0=[];function u0(){for(var e=0;e<s0.length;e++){var t=s0[e];t._workInProgressVersionPrimary=null}s0.length=0}function $z(e,t){var n=t._getVersion,i=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,i]:e.mutableSourceEagerHydrationData.push(t,i)}var ht=o.ReactCurrentDispatcher,mh=o.ReactCurrentBatchConfig,c0,gf;c0=new Set;var qc=je,Za=null,nn=null,on=null,qv=!1,vh=!1,gh=0,Gz=0,qz=25,Ne=null,Cl=null,Xu=-1,d0=!1;function Ha(){{var e=Ne;Cl===null?Cl=[e]:Cl.push(e)}}function ot(){{var e=Ne;Cl!==null&&(Xu++,Cl[Xu]!==e&&Kz(e))}}function _f(e){e!=null&&!tn(e)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ne,typeof e)}function Kz(e){{var t=na(Za);if(!c0.has(t)&&(c0.add(t),Cl!==null)){for(var n="",i=30,c=0;c<=Xu;c++){for(var f=Cl[c],g=c===Xu?e:f,S=c+1+". "+f;S.length<i;)S+=" ";S+=g+`
71
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return i}function Nv(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Ov(e){{var t=na(e)||"Component";if($1[t])return;$1[t]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function cx(e){var t=e._payload,n=e._init;return n(t)}function dx(e){function t(se,De){if(e){var ue=se.deletions;ue===null?(se.deletions=[De],se.flags|=Ec):ue.push(De)}}function n(se,De){if(!e)return null;for(var ue=De;ue!==null;)t(se,ue),ue=ue.sibling;return null}function i(se,De){for(var ue=new Map,qe=De;qe!==null;)qe.key!==null?ue.set(qe.key,qe):ue.set(qe.index,qe),qe=qe.sibling;return ue}function c(se,De){var ue=td(se,De);return ue.index=0,ue.sibling=null,ue}function f(se,De,ue){if(se.index=ue,!e)return se.flags|=hC,De;var qe=se.alternate;if(qe!==null){var mt=qe.index;return mt<De?(se.flags|=qr,De):mt}else return se.flags|=qr,De}function g(se){return e&&se.alternate===null&&(se.flags|=qr),se}function S(se,De,ue,qe){if(De===null||De.tag!==T){var mt=Uy(ue,se.mode,qe);return mt.return=se,mt}else{var st=c(De,ue);return st.return=se,st}}function x(se,De,ue,qe){var mt=ue.type;if(mt===le)return O(se,De,ue.props.children,qe,ue.key);if(De!==null&&(De.elementType===mt||gT(De,ue)||typeof mt=="object"&&mt!==null&&mt.$$typeof===at&&cx(mt)===De.type)){var st=c(De,ue.props);return st.ref=dh(se,De,ue),st.return=se,st._debugSource=ue._source,st._debugOwner=ue._owner,st}var Vt=jy(ue,se.mode,qe);return Vt.ref=dh(se,De,ue),Vt.return=se,Vt}function R(se,De,ue,qe){if(De===null||De.tag!==C||De.stateNode.containerInfo!==ue.containerInfo||De.stateNode.implementation!==ue.implementation){var mt=Vy(ue,se.mode,qe);return mt.return=se,mt}else{var st=c(De,ue.children||[]);return st.return=se,st}}function O(se,De,ue,qe,mt){if(De===null||De.tag!==L){var st=rc(ue,se.mode,qe,mt);return st.return=se,st}else{var Vt=c(De,ue);return Vt.return=se,Vt}}function Q(se,De,ue){if(typeof De=="string"&&De!==""||typeof De=="number"){var qe=Uy(""+De,se.mode,ue);return qe.return=se,qe}if(typeof De=="object"&&De!==null){switch(De.$$typeof){case Y:{var mt=jy(De,se.mode,ue);return mt.ref=dh(se,null,De),mt.return=se,mt}case ae:{var st=Vy(De,se.mode,ue);return st.return=se,st}case at:{var Vt=De._payload,Zt=De._init;return Q(se,Zt(Vt),ue)}}if(tn(De)||$r(De)){var er=rc(De,se.mode,ue,null);return er.return=se,er}Nv(se,De)}return typeof De=="function"&&Ov(se),null}function X(se,De,ue,qe){var mt=De!==null?De.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return mt!==null?null:S(se,De,""+ue,qe);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case Y:return ue.key===mt?x(se,De,ue,qe):null;case ae:return ue.key===mt?R(se,De,ue,qe):null;case at:{var st=ue._payload,Vt=ue._init;return X(se,De,Vt(st),qe)}}if(tn(ue)||$r(ue))return mt!==null?null:O(se,De,ue,qe,null);Nv(se,ue)}return typeof ue=="function"&&Ov(se),null}function ye(se,De,ue,qe,mt){if(typeof qe=="string"&&qe!==""||typeof qe=="number"){var st=se.get(ue)||null;return S(De,st,""+qe,mt)}if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case Y:{var Vt=se.get(qe.key===null?ue:qe.key)||null;return x(De,Vt,qe,mt)}case ae:{var Zt=se.get(qe.key===null?ue:qe.key)||null;return R(De,Zt,qe,mt)}case at:var er=qe._payload,Da=qe._init;return ye(se,De,ue,Da(er),mt)}if(tn(qe)||$r(qe)){var Ur=se.get(ue)||null;return O(De,Ur,qe,mt,null)}Nv(De,qe)}return typeof qe=="function"&&Ov(De),null}function Se(se,De,ue){{if(typeof se!="object"||se===null)return De;switch(se.$$typeof){case Y:case ae:ux(se,ue);var qe=se.key;if(typeof qe!="string")break;if(De===null){De=new Set,De.add(qe);break}if(!De.has(qe)){De.add(qe);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",qe);break;case at:var mt=se._payload,st=se._init;Se(st(mt),De,ue);break}}return De}function xe(se,De,ue,qe){for(var mt=null,st=0;st<ue.length;st++){var Vt=ue[st];mt=Se(Vt,mt,se)}for(var Zt=null,er=null,Da=De,Ur=0,Aa=0,Or=null;Da!==null&&Aa<ue.length;Aa++){Da.index>Aa?(Or=Da,Da=null):Or=Da.sibling;var Wn=X(se,Da,ue[Aa],qe);if(Wn===null){Da===null&&(Da=Or);break}e&&Da&&Wn.alternate===null&&t(se,Da),Ur=f(Wn,Ur,Aa),er===null?Zt=Wn:er.sibling=Wn,er=Wn,Da=Or}if(Aa===ue.length){if(n(se,Da),kn()){var Nn=Aa;Uc(se,Nn)}return Zt}if(Da===null){for(;Aa<ue.length;Aa++){var $o=Q(se,ue[Aa],qe);$o!==null&&(Ur=f($o,Ur,Aa),er===null?Zt=$o:er.sibling=$o,er=$o)}if(kn()){var oo=Aa;Uc(se,oo)}return Zt}for(var io=i(se,Da);Aa<ue.length;Aa++){var Yn=ye(io,se,Aa,ue[Aa],qe);Yn!==null&&(e&&Yn.alternate!==null&&io.delete(Yn.key===null?Aa:Yn.key),Ur=f(Yn,Ur,Aa),er===null?Zt=Yn:er.sibling=Yn,er=Yn)}if(e&&io.forEach(function(Df){return t(se,Df)}),kn()){var lu=Aa;Uc(se,lu)}return Zt}function it(se,De,ue,qe){var mt=$r(ue);if(typeof mt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ue[Symbol.toStringTag]==="Generator"&&(V1||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),V1=!0),ue.entries===mt&&(U1||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),U1=!0);var st=mt.call(ue);if(st)for(var Vt=null,Zt=st.next();!Zt.done;Zt=st.next()){var er=Zt.value;Vt=Se(er,Vt,se)}}var Da=mt.call(ue);if(Da==null)throw new Error("An iterable object provided no iterator.");for(var Ur=null,Aa=null,Or=De,Wn=0,Nn=0,$o=null,oo=Da.next();Or!==null&&!oo.done;Nn++,oo=Da.next()){Or.index>Nn?($o=Or,Or=null):$o=Or.sibling;var io=X(se,Or,oo.value,qe);if(io===null){Or===null&&(Or=$o);break}e&&Or&&io.alternate===null&&t(se,Or),Wn=f(io,Wn,Nn),Aa===null?Ur=io:Aa.sibling=io,Aa=io,Or=$o}if(oo.done){if(n(se,Or),kn()){var Yn=Nn;Uc(se,Yn)}return Ur}if(Or===null){for(;!oo.done;Nn++,oo=Da.next()){var lu=Q(se,oo.value,qe);lu!==null&&(Wn=f(lu,Wn,Nn),Aa===null?Ur=lu:Aa.sibling=lu,Aa=lu)}if(kn()){var Df=Nn;Uc(se,Df)}return Ur}for(var Vh=i(se,Or);!oo.done;Nn++,oo=Da.next()){var Ts=ye(Vh,se,Nn,oo.value,qe);Ts!==null&&(e&&Ts.alternate!==null&&Vh.delete(Ts.key===null?Nn:Ts.key),Wn=f(Ts,Wn,Nn),Aa===null?Ur=Ts:Aa.sibling=Ts,Aa=Ts)}if(e&&Vh.forEach(function(uV){return t(se,uV)}),kn()){var sV=Nn;Uc(se,sV)}return Ur}function Nt(se,De,ue,qe){if(De!==null&&De.tag===T){n(se,De.sibling);var mt=c(De,ue);return mt.return=se,mt}n(se,De);var st=Uy(ue,se.mode,qe);return st.return=se,st}function kt(se,De,ue,qe){for(var mt=ue.key,st=De;st!==null;){if(st.key===mt){var Vt=ue.type;if(Vt===le){if(st.tag===L){n(se,st.sibling);var Zt=c(st,ue.props.children);return Zt.return=se,Zt._debugSource=ue._source,Zt._debugOwner=ue._owner,Zt}}else if(st.elementType===Vt||gT(st,ue)||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===at&&cx(Vt)===st.type){n(se,st.sibling);var er=c(st,ue.props);return er.ref=dh(se,st,ue),er.return=se,er._debugSource=ue._source,er._debugOwner=ue._owner,er}n(se,st);break}else t(se,st);st=st.sibling}if(ue.type===le){var Da=rc(ue.props.children,se.mode,qe,ue.key);return Da.return=se,Da}else{var Ur=jy(ue,se.mode,qe);return Ur.ref=dh(se,De,ue),Ur.return=se,Ur}}function fa(se,De,ue,qe){for(var mt=ue.key,st=De;st!==null;){if(st.key===mt)if(st.tag===C&&st.stateNode.containerInfo===ue.containerInfo&&st.stateNode.implementation===ue.implementation){n(se,st.sibling);var Vt=c(st,ue.children||[]);return Vt.return=se,Vt}else{n(se,st);break}else t(se,st);st=st.sibling}var Zt=Vy(ue,se.mode,qe);return Zt.return=se,Zt}function pa(se,De,ue,qe){var mt=typeof ue=="object"&&ue!==null&&ue.type===le&&ue.key===null;if(mt&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case Y:return g(kt(se,De,ue,qe));case ae:return g(fa(se,De,ue,qe));case at:var st=ue._payload,Vt=ue._init;return pa(se,De,Vt(st),qe)}if(tn(ue))return xe(se,De,ue,qe);if($r(ue))return it(se,De,ue,qe);Nv(se,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?g(Nt(se,De,""+ue,qe)):(typeof ue=="function"&&Ov(se),n(se,De))}return pa}var df=dx(!0),fx=dx(!1);function Nz(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var n=t.child,i=td(n,n.pendingProps);for(t.child=i,i.return=t;n.sibling!==null;)n=n.sibling,i=i.sibling=td(n,n.pendingProps),i.return=t;i.sibling=null}}function Oz(e,t){for(var n=e.child;n!==null;)kU(n,t),n=n.sibling}var G1=Vu(null),q1;q1={};var Iv=null,ff=null,K1=null,Pv=!1;function Mv(){Iv=null,ff=null,K1=null,Pv=!1}function px(){Pv=!0}function hx(){Pv=!1}function mx(e,t,n){Un(G1,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==q1&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=q1}function X1(e,t){var n=G1.current;jn(G1,t),e._currentValue=n}function J1(e,t,n){for(var i=e;i!==null;){var c=i.alternate;if(Kd(i.childLanes,t)?c!==null&&!Kd(c.childLanes,t)&&(c.childLanes=ua(c.childLanes,t)):(i.childLanes=ua(i.childLanes,t),c!==null&&(c.childLanes=ua(c.childLanes,t))),i===n)break;i=i.return}i!==n&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Iz(e,t,n){Pz(e,t,n)}function Pz(e,t,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var c=void 0,f=i.dependencies;if(f!==null){c=i.child;for(var g=f.firstContext;g!==null;){if(g.context===t){if(i.tag===v){var S=Dp(n),x=tu(gr,S);x.tag=zv;var R=i.updateQueue;if(R!==null){var O=R.shared,Q=O.pending;Q===null?x.next=x:(x.next=Q.next,Q.next=x),O.pending=x}}i.lanes=ua(i.lanes,n);var X=i.alternate;X!==null&&(X.lanes=ua(X.lanes,n)),J1(i.return,n,e),f.lanes=ua(f.lanes,n);break}g=g.next}}else if(i.tag===F)c=i.type===e.type?null:i.child;else if(i.tag===pe){var ye=i.return;if(ye===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ye.lanes=ua(ye.lanes,n);var Se=ye.alternate;Se!==null&&(Se.lanes=ua(Se.lanes,n)),J1(ye,n,e),c=i.sibling}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===e){c=null;break}var xe=c.sibling;if(xe!==null){xe.return=c.return,c=xe;break}c=c.return}i=c}}function pf(e,t){Iv=e,ff=null,K1=null;var n=e.dependencies;if(n!==null){var i=n.firstContext;i!==null&&(Ho(n.lanes,t)&&kh(),n.firstContext=null)}}function Kr(e){Pv&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(K1!==e){var n={context:e,memoizedValue:t,next:null};if(ff===null){if(Iv===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");ff=n,Iv.dependencies={lanes:je,firstContext:n}}else ff=ff.next=n}return t}var Gc=null;function Q1(e){Gc===null?Gc=[e]:Gc.push(e)}function Mz(){if(Gc!==null){for(var e=0;e<Gc.length;e++){var t=Gc[e],n=t.interleaved;if(n!==null){t.interleaved=null;var i=n.next,c=t.pending;if(c!==null){var f=c.next;c.next=i,n.next=f}t.pending=n}}Gc=null}}function vx(e,t,n,i){var c=t.interleaved;return c===null?(n.next=n,Q1(t)):(n.next=c.next,c.next=n),t.interleaved=n,Fv(e,i)}function Fz(e,t,n,i){var c=t.interleaved;c===null?(n.next=n,Q1(t)):(n.next=c.next,c.next=n),t.interleaved=n}function zz(e,t,n,i){var c=t.interleaved;return c===null?(n.next=n,Q1(t)):(n.next=c.next,c.next=n),t.interleaved=n,Fv(e,i)}function ko(e,t){return Fv(e,t)}var Hz=Fv;function Fv(e,t){e.lanes=ua(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=ua(n.lanes,t)),n===null&&(e.flags&(qr|Ws))!==jt&&pT(e);for(var i=e,c=e.return;c!==null;)c.childLanes=ua(c.childLanes,t),n=c.alternate,n!==null?n.childLanes=ua(n.childLanes,t):(c.flags&(qr|Ws))!==jt&&pT(e),i=c,c=c.return;if(i.tag===b){var f=i.stateNode;return f}else return null}var gx=0,_x=1,zv=2,Z1=3,Hv=!1,e0,jv;e0=!1,jv=null;function t0(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:je},effects:null};e.updateQueue=t}function bx(e,t){var n=t.updateQueue,i=e.updateQueue;if(n===i){var c={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects};t.updateQueue=c}}function tu(e,t){var n={eventTime:e,lane:t,tag:gx,payload:null,callback:null,next:null};return n}function Gu(e,t,n){var i=e.updateQueue;if(i===null)return null;var c=i.shared;if(jv===c&&!e0&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),e0=!0),Vj()){var f=c.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),c.pending=t,Hz(e,n)}else return zz(e,c,t,n)}function Uv(e,t,n){var i=t.updateQueue;if(i!==null){var c=i.shared;if(BC(n)){var f=c.lanes;f=OC(f,e.pendingLanes);var g=ua(f,n);c.lanes=g,Gb(e,g)}}}function a0(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null){var c=i.updateQueue;if(n===c){var f=null,g=null,S=n.firstBaseUpdate;if(S!==null){var x=S;do{var R={eventTime:x.eventTime,lane:x.lane,tag:x.tag,payload:x.payload,callback:x.callback,next:null};g===null?f=g=R:(g.next=R,g=R),x=x.next}while(x!==null);g===null?f=g=t:(g.next=t,g=t)}else f=g=t;n={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:c.shared,effects:c.effects},e.updateQueue=n;return}}var O=n.lastBaseUpdate;O===null?n.firstBaseUpdate=t:O.next=t,n.lastBaseUpdate=t}function jz(e,t,n,i,c,f){switch(n.tag){case _x:{var g=n.payload;if(typeof g=="function"){px();var S=g.call(f,i,c);{if(e.mode&Nr){gn(!0);try{g.call(f,i,c)}finally{gn(!1)}}hx()}return S}return g}case Z1:e.flags=e.flags&~to|Ma;case gx:{var x=n.payload,R;if(typeof x=="function"){px(),R=x.call(f,i,c);{if(e.mode&Nr){gn(!0);try{x.call(f,i,c)}finally{gn(!1)}}hx()}}else R=x;return R==null?i:Pt({},i,R)}case zv:return Hv=!0,i}return i}function Vv(e,t,n,i){var c=e.updateQueue;Hv=!1,jv=c.shared;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var x=S,R=x.next;x.next=null,g===null?f=R:g.next=R,g=x;var O=e.alternate;if(O!==null){var Q=O.updateQueue,X=Q.lastBaseUpdate;X!==g&&(X===null?Q.firstBaseUpdate=R:X.next=R,Q.lastBaseUpdate=x)}}if(f!==null){var ye=c.baseState,Se=je,xe=null,it=null,Nt=null,kt=f;do{var fa=kt.lane,pa=kt.eventTime;if(Kd(i,fa)){if(Nt!==null){var De={eventTime:pa,lane:_n,tag:kt.tag,payload:kt.payload,callback:kt.callback,next:null};Nt=Nt.next=De}ye=jz(e,c,kt,ye,t,n);var ue=kt.callback;if(ue!==null&&kt.lane!==_n){e.flags|=hb;var qe=c.effects;qe===null?c.effects=[kt]:qe.push(kt)}}else{var se={eventTime:pa,lane:fa,tag:kt.tag,payload:kt.payload,callback:kt.callback,next:null};Nt===null?(it=Nt=se,xe=ye):Nt=Nt.next=se,Se=ua(Se,fa)}if(kt=kt.next,kt===null){if(S=c.shared.pending,S===null)break;var mt=S,st=mt.next;mt.next=null,kt=st,c.lastBaseUpdate=mt,c.shared.pending=null}}while(!0);Nt===null&&(xe=ye),c.baseState=xe,c.firstBaseUpdate=it,c.lastBaseUpdate=Nt;var Vt=c.shared.interleaved;if(Vt!==null){var Zt=Vt;do Se=ua(Se,Zt.lane),Zt=Zt.next;while(Zt!==Vt)}else f===null&&(c.shared.lanes=je);Fh(Se),e.lanes=Se,e.memoizedState=ye}jv=null}function Uz(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function yx(){Hv=!1}function Wv(){return Hv}function Sx(e,t,n){var i=t.effects;if(t.effects=null,i!==null)for(var c=0;c<i.length;c++){var f=i[c],g=f.callback;g!==null&&(f.callback=null,Uz(g,n))}}var fh={},qu=Vu(fh),ph=Vu(fh),Yv=Vu(fh);function $v(e){if(e===fh)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function wx(){var e=$v(Yv.current);return e}function r0(e,t){Un(Yv,t,e),Un(ph,e,e),Un(qu,fh,e);var n=o9(t);jn(qu,e),Un(qu,n,e)}function hf(e){jn(qu,e),jn(ph,e),jn(Yv,e)}function n0(){var e=$v(qu.current);return e}function Cx(e){var t=$v(Yv.current),n=$v(qu.current),i=i9(n,e.type);n!==i&&(Un(ph,e,e),Un(qu,i,e))}function o0(e){ph.current===e&&(jn(qu,e),jn(ph,e))}var Vz=0,xx=1,Tx=1,hh=2,Ul=Vu(Vz);function i0(e,t){return(e&t)!==0}function mf(e){return e&xx}function l0(e,t){return e&xx|t}function Wz(e,t){return e|t}function Ku(e,t){Un(Ul,t,e)}function vf(e){jn(Ul,e)}function Yz(e,t){var n=e.memoizedState;if(n!==null)return n.dehydrated!==null;var i=e.memoizedProps;return!0}function Gv(e){for(var t=e;t!==null;){if(t.tag===K){var n=t.memoizedState;if(n!==null){var i=n.dehydrated;if(i===null||U3(i)||T1(i))return t}}else if(t.tag===he&&t.memoizedProps.revealOrder!==void 0){var c=(t.flags&Ma)!==jt;if(c)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Eo=0,an=1,_s=2,rn=4,En=8,s0=[];function u0(){for(var e=0;e<s0.length;e++){var t=s0[e];t._workInProgressVersionPrimary=null}s0.length=0}function $z(e,t){var n=t._getVersion,i=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,i]:e.mutableSourceEagerHydrationData.push(t,i)}var ht=o.ReactCurrentDispatcher,mh=o.ReactCurrentBatchConfig,c0,gf;c0=new Set;var qc=je,Za=null,nn=null,on=null,qv=!1,vh=!1,gh=0,Gz=0,qz=25,Ne=null,Cl=null,Xu=-1,d0=!1;function Ha(){{var e=Ne;Cl===null?Cl=[e]:Cl.push(e)}}function ot(){{var e=Ne;Cl!==null&&(Xu++,Cl[Xu]!==e&&Kz(e))}}function _f(e){e!=null&&!tn(e)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ne,typeof e)}function Kz(e){{var t=na(Za);if(!c0.has(t)&&(c0.add(t),Cl!==null)){for(var n="",i=30,c=0;c<=Xu;c++){for(var f=Cl[c],g=c===Xu?e:f,S=c+1+". "+f;S.length<i;)S+=" ";S+=g+`
72
72
  `,n+=S}u(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
73
73
 
74
74
  Previous render Next render
@@ -81,11 +81,11 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
81
81
  See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function f0(e,t){if(d0)return!1;if(t===null)return u("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ne),!1;e.length!==t.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
82
82
 
83
83
  Previous: %s
84
- Incoming: %s`,Ne,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Vo(e[n],t[n]))return!1;return!0}function bf(e,t,n,i,c,f){qc=f,Za=t,Cl=e!==null?e._debugHookTypes:null,Xu=-1,d0=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=je,e!==null&&e.memoizedState!==null?ht.current=Gx:Cl!==null?ht.current=$x:ht.current=Yx;var g=n(i,c);if(vh){var S=0;do{if(vh=!1,gh=0,S>=qz)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");S+=1,d0=!1,nn=null,on=null,t.updateQueue=null,Xu=-1,ht.current=qx,g=n(i,c)}while(vh)}ht.current=lg,t._debugHookTypes=Cl;var x=nn!==null&&nn.next!==null;if(qc=je,Za=null,nn=null,on=null,Ne=null,Cl=null,Xu=-1,e!==null&&(e.flags&$s)!==(t.flags&$s)&&(e.mode&ba)!==Ft&&u("Internal React error: Expected static flag was missing. Please notify the React team."),qv=!1,x)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return g}function yf(){var e=gh!==0;return gh=0,e}function kx(e,t,n){t.updateQueue=e.updateQueue,(t.mode&hs)!==Ft?t.flags&=~(Um|Ys|Pl|ka):t.flags&=~(Pl|ka),e.lanes=Km(e.lanes,n)}function Ex(){if(ht.current=lg,qv){for(var e=Za.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qv=!1}qc=je,Za=null,nn=null,on=null,Cl=null,Xu=-1,Ne=null,Hx=!1,vh=!1,gh=0}function bs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return on===null?Za.memoizedState=on=e:on=on.next=e,on}function xl(){var e;if(nn===null){var t=Za.alternate;t!==null?e=t.memoizedState:e=null}else e=nn.next;var n;if(on===null?n=Za.memoizedState:n=on.next,n!==null)on=n,n=on.next,nn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");nn=e;var i={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null};on===null?Za.memoizedState=on=i:on=on.next=i}return on}function Rx(){return{lastEffect:null,stores:null}}function p0(e,t){return typeof t=="function"?t(e):t}function h0(e,t,n){var i=bs(),c;n!==void 0?c=n(t):c=t,i.memoizedState=i.baseState=c;var f={pending:null,interleaved:null,lanes:je,dispatch:null,lastRenderedReducer:e,lastRenderedState:c};i.queue=f;var g=f.dispatch=Zz.bind(null,Za,f);return[i.memoizedState,g]}function m0(e,t,n){var i=xl(),c=i.queue;if(c===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");c.lastRenderedReducer=e;var f=nn,g=f.baseQueue,S=c.pending;if(S!==null){if(g!==null){var x=g.next,R=S.next;g.next=R,S.next=x}f.baseQueue!==g&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),f.baseQueue=g=S,c.pending=null}if(g!==null){var O=g.next,Q=f.baseState,X=null,ye=null,Se=null,xe=O;do{var it=xe.lane;if(Kd(qc,it)){if(Se!==null){var kt={lane:_n,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null};Se=Se.next=kt}if(xe.hasEagerState)Q=xe.eagerState;else{var fa=xe.action;Q=e(Q,fa)}}else{var Nt={lane:it,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null};Se===null?(ye=Se=Nt,X=Q):Se=Se.next=Nt,Za.lanes=ua(Za.lanes,it),Fh(it)}xe=xe.next}while(xe!==null&&xe!==O);Se===null?X=Q:Se.next=ye,Vo(Q,i.memoizedState)||kh(),i.memoizedState=Q,i.baseState=X,i.baseQueue=Se,c.lastRenderedState=Q}var pa=c.interleaved;if(pa!==null){var se=pa;do{var De=se.lane;Za.lanes=ua(Za.lanes,De),Fh(De),se=se.next}while(se!==pa)}else g===null&&(c.lanes=je);var ue=c.dispatch;return[i.memoizedState,ue]}function v0(e,t,n){var i=xl(),c=i.queue;if(c===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");c.lastRenderedReducer=e;var f=c.dispatch,g=c.pending,S=i.memoizedState;if(g!==null){c.pending=null;var x=g.next,R=x;do{var O=R.action;S=e(S,O),R=R.next}while(R!==x);Vo(S,i.memoizedState)||kh(),i.memoizedState=S,i.baseQueue===null&&(i.baseState=S),c.lastRenderedState=S}return[S,f]}function RG(e,t,n){}function DG(e,t,n){}function g0(e,t,n){var i=Za,c=bs(),f,g=kn();if(g){if(n===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");f=n(),gf||f!==n()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),gf=!0)}else{if(f=t(),!gf){var S=t();Vo(f,S)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),gf=!0)}var x=kg();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");qm(x,qc)||Dx(i,t,f)}c.memoizedState=f;var R={value:f,getSnapshot:t};return c.queue=R,Zv(Lx.bind(null,i,R,e),[e]),i.flags|=Pl,_h(an|En,Ax.bind(null,i,R,f,t),void 0,null),f}function Kv(e,t,n){var i=Za,c=xl(),f=t();if(!gf){var g=t();Vo(f,g)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),gf=!0)}var S=c.memoizedState,x=!Vo(S,f);x&&(c.memoizedState=f,kh());var R=c.queue;if(yh(Lx.bind(null,i,R,e),[e]),R.getSnapshot!==t||x||on!==null&&on.memoizedState.tag&an){i.flags|=Pl,_h(an|En,Ax.bind(null,i,R,f,t),void 0,null);var O=kg();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");qm(O,qc)||Dx(i,t,f)}return f}function Dx(e,t,n){e.flags|=jm;var i={getSnapshot:t,value:n},c=Za.updateQueue;if(c===null)c=Rx(),Za.updateQueue=c,c.stores=[i];else{var f=c.stores;f===null?c.stores=[i]:f.push(i)}}function Ax(e,t,n,i){t.value=n,t.getSnapshot=i,Bx(t)&&Nx(e)}function Lx(e,t,n){var i=function(){Bx(t)&&Nx(e)};return n(i)}function Bx(e){var t=e.getSnapshot,n=e.value;try{var i=t();return!Vo(n,i)}catch(c){return!0}}function Nx(e){var t=ko(e,Jt);t!==null&&cn(t,e,Jt,gr)}function Xv(e){var t=bs();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:je,dispatch:null,lastRenderedReducer:p0,lastRenderedState:e};t.queue=n;var i=n.dispatch=eH.bind(null,Za,n);return[t.memoizedState,i]}function _0(e){return m0(p0)}function b0(e){return v0(p0)}function _h(e,t,n,i){var c={tag:e,create:t,destroy:n,deps:i,next:null},f=Za.updateQueue;if(f===null)f=Rx(),Za.updateQueue=f,f.lastEffect=c.next=c;else{var g=f.lastEffect;if(g===null)f.lastEffect=c.next=c;else{var S=g.next;g.next=c,c.next=S,f.lastEffect=c}}return c}function y0(e){var t=bs();{var n={current:e};return t.memoizedState=n,n}}function Jv(e){var t=xl();return t.memoizedState}function bh(e,t,n,i){var c=bs(),f=i===void 0?null:i;Za.flags|=e,c.memoizedState=_h(an|t,n,void 0,f)}function Qv(e,t,n,i){var c=xl(),f=i===void 0?null:i,g=void 0;if(nn!==null){var S=nn.memoizedState;if(g=S.destroy,f!==null){var x=S.deps;if(f0(f,x)){c.memoizedState=_h(t,n,g,f);return}}}Za.flags|=e,c.memoizedState=_h(an|t,n,g,f)}function Zv(e,t){return(Za.mode&hs)!==Ft?bh(Um|Pl|gb,En,e,t):bh(Pl|gb,En,e,t)}function yh(e,t){return Qv(Pl,En,e,t)}function S0(e,t){return bh(ka,_s,e,t)}function eg(e,t){return Qv(ka,_s,e,t)}function w0(e,t){var n=ka;return n|=Ac,(Za.mode&hs)!==Ft&&(n|=Ys),bh(n,rn,e,t)}function tg(e,t){return Qv(ka,rn,e,t)}function Ox(e,t){if(typeof t=="function"){var n=t,i=e();return n(i),function(){n(null)}}else if(t!=null){var c=t;c.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(c).join(", ")+"}");var f=e();return c.current=f,function(){c.current=null}}}function C0(e,t,n){typeof t!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var i=n!=null?n.concat([e]):null,c=ka;return c|=Ac,(Za.mode&hs)!==Ft&&(c|=Ys),bh(c,rn,Ox.bind(null,t,e),i)}function ag(e,t,n){typeof t!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var i=n!=null?n.concat([e]):null;return Qv(ka,rn,Ox.bind(null,t,e),i)}function Xz(e,t){}var rg=Xz;function x0(e,t){var n=bs(),i=t===void 0?null:t;return n.memoizedState=[e,i],e}function ng(e,t){var n=xl(),i=t===void 0?null:t,c=n.memoizedState;if(c!==null&&i!==null){var f=c[1];if(f0(i,f))return c[0]}return n.memoizedState=[e,i],e}function T0(e,t){var n=bs(),i=t===void 0?null:t,c=e();return n.memoizedState=[c,i],c}function og(e,t){var n=xl(),i=t===void 0?null:t,c=n.memoizedState;if(c!==null&&i!==null){var f=c[1];if(f0(i,f))return c[0]}var g=e();return n.memoizedState=[g,i],g}function k0(e){var t=bs();return t.memoizedState=e,e}function Ix(e){var t=xl(),n=nn,i=n.memoizedState;return Mx(t,i,e)}function Px(e){var t=xl();if(nn===null)return t.memoizedState=e,e;var n=nn.memoizedState;return Mx(t,n,e)}function Mx(e,t,n){var i=!IP(qc);if(i){if(!Vo(n,t)){var c=NC();Za.lanes=ua(Za.lanes,c),Fh(c),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,kh()),e.memoizedState=n,n}function Jz(e,t,n){var i=Fl();bn(WP(i,qs)),e(!0);var c=mh.transition;mh.transition={};var f=mh.transition;mh.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(bn(i),mh.transition=c,c===null&&f._updatedFibers){var g=f._updatedFibers.size;g>10&&d("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),f._updatedFibers.clear()}}}function E0(){var e=Xv(!1),t=e[0],n=e[1],i=Jz.bind(null,n),c=bs();return c.memoizedState=i,[t,i]}function Fx(){var e=_0(),t=e[0],n=xl(),i=n.memoizedState;return[t,i]}function zx(){var e=b0(),t=e[0],n=xl(),i=n.memoizedState;return[t,i]}var Hx=!1;function Qz(){return Hx}function R0(){var e=bs(),t=kg(),n=t.identifierPrefix,i;if(kn()){var c=mz();i=":"+n+"R"+c;var f=gh++;f>0&&(i+="H"+f.toString(32)),i+=":"}else{var g=Gz++;i=":"+n+"r"+g.toString(32)+":"}return e.memoizedState=i,i}function ig(){var e=xl(),t=e.memoizedState;return t}function Zz(e,t,n){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var i=tc(e),c={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(jx(e))Ux(t,c);else{var f=vx(e,t,c,i);if(f!==null){var g=no();cn(f,e,i,g),Vx(f,t,i)}}Wx(e,i)}function eH(e,t,n){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var i=tc(e),c={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(jx(e))Ux(t,c);else{var f=e.alternate;if(e.lanes===je&&(f===null||f.lanes===je)){var g=t.lastRenderedReducer;if(g!==null){var S;S=ht.current,ht.current=Vl;try{var x=t.lastRenderedState,R=g(x,n);if(c.hasEagerState=!0,c.eagerState=R,Vo(R,x)){Fz(e,t,c,i);return}}catch(X){}finally{ht.current=S}}}var O=vx(e,t,c,i);if(O!==null){var Q=no();cn(O,e,i,Q),Vx(O,t,i)}}Wx(e,i)}function jx(e){var t=e.alternate;return e===Za||t!==null&&t===Za}function Ux(e,t){vh=qv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vx(e,t,n){if(BC(n)){var i=t.lanes;i=OC(i,e.pendingLanes);var c=ua(i,n);t.lanes=c,Gb(e,c)}}function Wx(e,t,n){wb(e,t)}var lg={readContext:Kr,useCallback:Vn,useContext:Vn,useEffect:Vn,useImperativeHandle:Vn,useInsertionEffect:Vn,useLayoutEffect:Vn,useMemo:Vn,useReducer:Vn,useRef:Vn,useState:Vn,useDebugValue:Vn,useDeferredValue:Vn,useTransition:Vn,useMutableSource:Vn,useSyncExternalStore:Vn,useId:Vn,unstable_isNewReconciler:ve},Yx=null,$x=null,Gx=null,qx=null,ys=null,Vl=null,sg=null;{var D0=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Qt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Yx={readContext:function(e){return Kr(e)},useCallback:function(e,t){return Ne="useCallback",Ha(),_f(t),x0(e,t)},useContext:function(e){return Ne="useContext",Ha(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",Ha(),_f(t),Zv(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",Ha(),_f(n),C0(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",Ha(),_f(t),S0(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",Ha(),_f(t),w0(e,t)},useMemo:function(e,t){Ne="useMemo",Ha(),_f(t);var n=ht.current;ht.current=ys;try{return T0(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",Ha();var i=ht.current;ht.current=ys;try{return h0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",Ha(),y0(e)},useState:function(e){Ne="useState",Ha();var t=ht.current;ht.current=ys;try{return Xv(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",Ha(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",Ha(),k0(e)},useTransition:function(){return Ne="useTransition",Ha(),E0()},useMutableSource:function(e,t,n){return Ne="useMutableSource",Ha(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",Ha(),g0(e,t,n)},useId:function(){return Ne="useId",Ha(),R0()},unstable_isNewReconciler:ve},$x={readContext:function(e){return Kr(e)},useCallback:function(e,t){return Ne="useCallback",ot(),x0(e,t)},useContext:function(e){return Ne="useContext",ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",ot(),Zv(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",ot(),C0(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",ot(),S0(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",ot(),w0(e,t)},useMemo:function(e,t){Ne="useMemo",ot();var n=ht.current;ht.current=ys;try{return T0(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",ot();var i=ht.current;ht.current=ys;try{return h0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",ot(),y0(e)},useState:function(e){Ne="useState",ot();var t=ht.current;ht.current=ys;try{return Xv(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",ot(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",ot(),k0(e)},useTransition:function(){return Ne="useTransition",ot(),E0()},useMutableSource:function(e,t,n){return Ne="useMutableSource",ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",ot(),g0(e,t,n)},useId:function(){return Ne="useId",ot(),R0()},unstable_isNewReconciler:ve},Gx={readContext:function(e){return Kr(e)},useCallback:function(e,t){return Ne="useCallback",ot(),ng(e,t)},useContext:function(e){return Ne="useContext",ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",ot(),yh(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",ot(),ag(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",ot(),eg(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",ot(),tg(e,t)},useMemo:function(e,t){Ne="useMemo",ot();var n=ht.current;ht.current=Vl;try{return og(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",ot();var i=ht.current;ht.current=Vl;try{return m0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",ot(),Jv()},useState:function(e){Ne="useState",ot();var t=ht.current;ht.current=Vl;try{return _0(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",ot(),rg()},useDeferredValue:function(e){return Ne="useDeferredValue",ot(),Ix(e)},useTransition:function(){return Ne="useTransition",ot(),Fx()},useMutableSource:function(e,t,n){return Ne="useMutableSource",ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",ot(),Kv(e,t)},useId:function(){return Ne="useId",ot(),ig()},unstable_isNewReconciler:ve},qx={readContext:function(e){return Kr(e)},useCallback:function(e,t){return Ne="useCallback",ot(),ng(e,t)},useContext:function(e){return Ne="useContext",ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",ot(),yh(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",ot(),ag(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",ot(),eg(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",ot(),tg(e,t)},useMemo:function(e,t){Ne="useMemo",ot();var n=ht.current;ht.current=sg;try{return og(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",ot();var i=ht.current;ht.current=sg;try{return v0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",ot(),Jv()},useState:function(e){Ne="useState",ot();var t=ht.current;ht.current=sg;try{return b0(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",ot(),rg()},useDeferredValue:function(e){return Ne="useDeferredValue",ot(),Px(e)},useTransition:function(){return Ne="useTransition",ot(),zx()},useMutableSource:function(e,t,n){return Ne="useMutableSource",ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",ot(),Kv(e,t)},useId:function(){return Ne="useId",ot(),ig()},unstable_isNewReconciler:ve},ys={readContext:function(e){return D0(),Kr(e)},useCallback:function(e,t){return Ne="useCallback",Qt(),Ha(),x0(e,t)},useContext:function(e){return Ne="useContext",Qt(),Ha(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",Qt(),Ha(),Zv(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",Qt(),Ha(),C0(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",Qt(),Ha(),S0(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",Qt(),Ha(),w0(e,t)},useMemo:function(e,t){Ne="useMemo",Qt(),Ha();var n=ht.current;ht.current=ys;try{return T0(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",Qt(),Ha();var i=ht.current;ht.current=ys;try{return h0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",Qt(),Ha(),y0(e)},useState:function(e){Ne="useState",Qt(),Ha();var t=ht.current;ht.current=ys;try{return Xv(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",Qt(),Ha(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",Qt(),Ha(),k0(e)},useTransition:function(){return Ne="useTransition",Qt(),Ha(),E0()},useMutableSource:function(e,t,n){return Ne="useMutableSource",Qt(),Ha(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",Qt(),Ha(),g0(e,t,n)},useId:function(){return Ne="useId",Qt(),Ha(),R0()},unstable_isNewReconciler:ve},Vl={readContext:function(e){return D0(),Kr(e)},useCallback:function(e,t){return Ne="useCallback",Qt(),ot(),ng(e,t)},useContext:function(e){return Ne="useContext",Qt(),ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",Qt(),ot(),yh(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",Qt(),ot(),ag(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",Qt(),ot(),eg(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",Qt(),ot(),tg(e,t)},useMemo:function(e,t){Ne="useMemo",Qt(),ot();var n=ht.current;ht.current=Vl;try{return og(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",Qt(),ot();var i=ht.current;ht.current=Vl;try{return m0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",Qt(),ot(),Jv()},useState:function(e){Ne="useState",Qt(),ot();var t=ht.current;ht.current=Vl;try{return _0(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",Qt(),ot(),rg()},useDeferredValue:function(e){return Ne="useDeferredValue",Qt(),ot(),Ix(e)},useTransition:function(){return Ne="useTransition",Qt(),ot(),Fx()},useMutableSource:function(e,t,n){return Ne="useMutableSource",Qt(),ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",Qt(),ot(),Kv(e,t)},useId:function(){return Ne="useId",Qt(),ot(),ig()},unstable_isNewReconciler:ve},sg={readContext:function(e){return D0(),Kr(e)},useCallback:function(e,t){return Ne="useCallback",Qt(),ot(),ng(e,t)},useContext:function(e){return Ne="useContext",Qt(),ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",Qt(),ot(),yh(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",Qt(),ot(),ag(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",Qt(),ot(),eg(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",Qt(),ot(),tg(e,t)},useMemo:function(e,t){Ne="useMemo",Qt(),ot();var n=ht.current;ht.current=Vl;try{return og(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",Qt(),ot();var i=ht.current;ht.current=Vl;try{return v0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",Qt(),ot(),Jv()},useState:function(e){Ne="useState",Qt(),ot();var t=ht.current;ht.current=Vl;try{return b0(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",Qt(),ot(),rg()},useDeferredValue:function(e){return Ne="useDeferredValue",Qt(),ot(),Px(e)},useTransition:function(){return Ne="useTransition",Qt(),ot(),zx()},useMutableSource:function(e,t,n){return Ne="useMutableSource",Qt(),ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",Qt(),ot(),Kv(e,t)},useId:function(){return Ne="useId",Qt(),ot(),ig()},unstable_isNewReconciler:ve}}var Ju=r.unstable_now,Kx=0,ug=-1,Sh=-1,cg=-1,A0=!1,dg=!1;function Xx(){return A0}function tH(){dg=!0}function aH(){A0=!1,dg=!1}function rH(){A0=dg,dg=!1}function Jx(){return Kx}function Qx(){Kx=Ju()}function L0(e){Sh=Ju(),e.actualStartTime<0&&(e.actualStartTime=Ju())}function Zx(e){Sh=-1}function fg(e,t){if(Sh>=0){var n=Ju()-Sh;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Sh=-1}}function Ss(e){if(ug>=0){var t=Ju()-ug;ug=-1;for(var n=e.return;n!==null;){switch(n.tag){case b:var i=n.stateNode;i.effectDuration+=t;return;case U:var c=n.stateNode;c.effectDuration+=t;return}n=n.return}}}function B0(e){if(cg>=0){var t=Ju()-cg;cg=-1;for(var n=e.return;n!==null;){switch(n.tag){case b:var i=n.stateNode;i!==null&&(i.passiveEffectDuration+=t);return;case U:var c=n.stateNode;c!==null&&(c.passiveEffectDuration+=t);return}n=n.return}}}function ws(){ug=Ju()}function N0(){cg=Ju()}function O0(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Wl(e,t){if(e&&e.defaultProps){var n=Pt({},t),i=e.defaultProps;for(var c in i)n[c]===void 0&&(n[c]=i[c]);return n}return t}var I0={},P0,M0,F0,z0,H0,eT,pg,j0,U0,V0,wh;{P0=new Set,M0=new Set,F0=new Set,z0=new Set,j0=new Set,H0=new Set,U0=new Set,V0=new Set,wh=new Set;var tT=new Set;pg=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;tT.has(n)||(tT.add(n),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},eT=function(e,t){if(t===void 0){var n=Va(e)||"Component";H0.has(n)||(H0.add(n),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(I0,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(I0)}function W0(e,t,n,i){var c=e.memoizedState,f=n(i,c);{if(e.mode&Nr){gn(!0);try{f=n(i,c)}finally{gn(!1)}}eT(t,f)}var g=f==null?c:Pt({},c,f);if(e.memoizedState=g,e.lanes===je){var S=e.updateQueue;S.baseState=g}}var Y0={isMounted:qI,enqueueSetState:function(e,t,n){var i=Ud(e),c=no(),f=tc(i),g=tu(c,f);g.payload=t,n!=null&&(pg(n,"setState"),g.callback=n);var S=Gu(i,g,f);S!==null&&(cn(S,i,f,c),Uv(S,i,f)),wb(i,f)},enqueueReplaceState:function(e,t,n){var i=Ud(e),c=no(),f=tc(i),g=tu(c,f);g.tag=_x,g.payload=t,n!=null&&(pg(n,"replaceState"),g.callback=n);var S=Gu(i,g,f);S!==null&&(cn(S,i,f,c),Uv(S,i,f)),wb(i,f)},enqueueForceUpdate:function(e,t){var n=Ud(e),i=no(),c=tc(n),f=tu(i,c);f.tag=zv,t!=null&&(pg(t,"forceUpdate"),f.callback=t);var g=Gu(n,f,c);g!==null&&(cn(g,n,c,i),Uv(g,n,c)),TP(n,c)}};function aT(e,t,n,i,c,f,g){var S=e.stateNode;if(typeof S.shouldComponentUpdate=="function"){var x=S.shouldComponentUpdate(i,f,g);{if(e.mode&Nr){gn(!0);try{x=S.shouldComponentUpdate(i,f,g)}finally{gn(!1)}}x===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Va(t)||"Component")}return x}return t.prototype&&t.prototype.isPureReactComponent?!Wp(n,i)||!Wp(c,f):!0}function nH(e,t,n){var i=e.stateNode;{var c=Va(t)||"Component",f=i.render;f||(t.prototype&&typeof t.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",c):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",c)),i.getInitialState&&!i.getInitialState.isReactClassApproved&&!i.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",c),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",c),i.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",c),i.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",c),t.childContextTypes&&!wh.has(t)&&(e.mode&Nr)===Ft&&(wh.add(t),u(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
84
+ Incoming: %s`,Ne,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Vo(e[n],t[n]))return!1;return!0}function bf(e,t,n,i,c,f){qc=f,Za=t,Cl=e!==null?e._debugHookTypes:null,Xu=-1,d0=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=je,e!==null&&e.memoizedState!==null?ht.current=Gx:Cl!==null?ht.current=$x:ht.current=Yx;var g=n(i,c);if(vh){var S=0;do{if(vh=!1,gh=0,S>=qz)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");S+=1,d0=!1,nn=null,on=null,t.updateQueue=null,Xu=-1,ht.current=qx,g=n(i,c)}while(vh)}ht.current=lg,t._debugHookTypes=Cl;var x=nn!==null&&nn.next!==null;if(qc=je,Za=null,nn=null,on=null,Ne=null,Cl=null,Xu=-1,e!==null&&(e.flags&$s)!==(t.flags&$s)&&(e.mode&ba)!==Ft&&u("Internal React error: Expected static flag was missing. Please notify the React team."),qv=!1,x)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return g}function yf(){var e=gh!==0;return gh=0,e}function kx(e,t,n){t.updateQueue=e.updateQueue,(t.mode&hs)!==Ft?t.flags&=~(Um|Ys|Pl|ka):t.flags&=~(Pl|ka),e.lanes=Km(e.lanes,n)}function Ex(){if(ht.current=lg,qv){for(var e=Za.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qv=!1}qc=je,Za=null,nn=null,on=null,Cl=null,Xu=-1,Ne=null,Hx=!1,vh=!1,gh=0}function bs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return on===null?Za.memoizedState=on=e:on=on.next=e,on}function xl(){var e;if(nn===null){var t=Za.alternate;t!==null?e=t.memoizedState:e=null}else e=nn.next;var n;if(on===null?n=Za.memoizedState:n=on.next,n!==null)on=n,n=on.next,nn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");nn=e;var i={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null};on===null?Za.memoizedState=on=i:on=on.next=i}return on}function Rx(){return{lastEffect:null,stores:null}}function p0(e,t){return typeof t=="function"?t(e):t}function h0(e,t,n){var i=bs(),c;n!==void 0?c=n(t):c=t,i.memoizedState=i.baseState=c;var f={pending:null,interleaved:null,lanes:je,dispatch:null,lastRenderedReducer:e,lastRenderedState:c};i.queue=f;var g=f.dispatch=Zz.bind(null,Za,f);return[i.memoizedState,g]}function m0(e,t,n){var i=xl(),c=i.queue;if(c===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");c.lastRenderedReducer=e;var f=nn,g=f.baseQueue,S=c.pending;if(S!==null){if(g!==null){var x=g.next,R=S.next;g.next=R,S.next=x}f.baseQueue!==g&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),f.baseQueue=g=S,c.pending=null}if(g!==null){var O=g.next,Q=f.baseState,X=null,ye=null,Se=null,xe=O;do{var it=xe.lane;if(Kd(qc,it)){if(Se!==null){var kt={lane:_n,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null};Se=Se.next=kt}if(xe.hasEagerState)Q=xe.eagerState;else{var fa=xe.action;Q=e(Q,fa)}}else{var Nt={lane:it,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null};Se===null?(ye=Se=Nt,X=Q):Se=Se.next=Nt,Za.lanes=ua(Za.lanes,it),Fh(it)}xe=xe.next}while(xe!==null&&xe!==O);Se===null?X=Q:Se.next=ye,Vo(Q,i.memoizedState)||kh(),i.memoizedState=Q,i.baseState=X,i.baseQueue=Se,c.lastRenderedState=Q}var pa=c.interleaved;if(pa!==null){var se=pa;do{var De=se.lane;Za.lanes=ua(Za.lanes,De),Fh(De),se=se.next}while(se!==pa)}else g===null&&(c.lanes=je);var ue=c.dispatch;return[i.memoizedState,ue]}function v0(e,t,n){var i=xl(),c=i.queue;if(c===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");c.lastRenderedReducer=e;var f=c.dispatch,g=c.pending,S=i.memoizedState;if(g!==null){c.pending=null;var x=g.next,R=x;do{var O=R.action;S=e(S,O),R=R.next}while(R!==x);Vo(S,i.memoizedState)||kh(),i.memoizedState=S,i.baseQueue===null&&(i.baseState=S),c.lastRenderedState=S}return[S,f]}function RG(e,t,n){}function DG(e,t,n){}function g0(e,t,n){var i=Za,c=bs(),f,g=kn();if(g){if(n===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");f=n(),gf||f!==n()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),gf=!0)}else{if(f=t(),!gf){var S=t();Vo(f,S)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),gf=!0)}var x=kg();if(x===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");qm(x,qc)||Dx(i,t,f)}c.memoizedState=f;var R={value:f,getSnapshot:t};return c.queue=R,Zv(Lx.bind(null,i,R,e),[e]),i.flags|=Pl,_h(an|En,Ax.bind(null,i,R,f,t),void 0,null),f}function Kv(e,t,n){var i=Za,c=xl(),f=t();if(!gf){var g=t();Vo(f,g)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),gf=!0)}var S=c.memoizedState,x=!Vo(S,f);x&&(c.memoizedState=f,kh());var R=c.queue;if(yh(Lx.bind(null,i,R,e),[e]),R.getSnapshot!==t||x||on!==null&&on.memoizedState.tag&an){i.flags|=Pl,_h(an|En,Ax.bind(null,i,R,f,t),void 0,null);var O=kg();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");qm(O,qc)||Dx(i,t,f)}return f}function Dx(e,t,n){e.flags|=jm;var i={getSnapshot:t,value:n},c=Za.updateQueue;if(c===null)c=Rx(),Za.updateQueue=c,c.stores=[i];else{var f=c.stores;f===null?c.stores=[i]:f.push(i)}}function Ax(e,t,n,i){t.value=n,t.getSnapshot=i,Bx(t)&&Nx(e)}function Lx(e,t,n){var i=function(){Bx(t)&&Nx(e)};return n(i)}function Bx(e){var t=e.getSnapshot,n=e.value;try{var i=t();return!Vo(n,i)}catch(c){return!0}}function Nx(e){var t=ko(e,Jt);t!==null&&cn(t,e,Jt,gr)}function Xv(e){var t=bs();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:je,dispatch:null,lastRenderedReducer:p0,lastRenderedState:e};t.queue=n;var i=n.dispatch=eH.bind(null,Za,n);return[t.memoizedState,i]}function _0(e){return m0(p0)}function b0(e){return v0(p0)}function _h(e,t,n,i){var c={tag:e,create:t,destroy:n,deps:i,next:null},f=Za.updateQueue;if(f===null)f=Rx(),Za.updateQueue=f,f.lastEffect=c.next=c;else{var g=f.lastEffect;if(g===null)f.lastEffect=c.next=c;else{var S=g.next;g.next=c,c.next=S,f.lastEffect=c}}return c}function y0(e){var t=bs();{var n={current:e};return t.memoizedState=n,n}}function Jv(e){var t=xl();return t.memoizedState}function bh(e,t,n,i){var c=bs(),f=i===void 0?null:i;Za.flags|=e,c.memoizedState=_h(an|t,n,void 0,f)}function Qv(e,t,n,i){var c=xl(),f=i===void 0?null:i,g=void 0;if(nn!==null){var S=nn.memoizedState;if(g=S.destroy,f!==null){var x=S.deps;if(f0(f,x)){c.memoizedState=_h(t,n,g,f);return}}}Za.flags|=e,c.memoizedState=_h(an|t,n,g,f)}function Zv(e,t){return(Za.mode&hs)!==Ft?bh(Um|Pl|gb,En,e,t):bh(Pl|gb,En,e,t)}function yh(e,t){return Qv(Pl,En,e,t)}function S0(e,t){return bh(ka,_s,e,t)}function eg(e,t){return Qv(ka,_s,e,t)}function w0(e,t){var n=ka;return n|=Ac,(Za.mode&hs)!==Ft&&(n|=Ys),bh(n,rn,e,t)}function tg(e,t){return Qv(ka,rn,e,t)}function Ox(e,t){if(typeof t=="function"){var n=t,i=e();return n(i),function(){n(null)}}else if(t!=null){var c=t;c.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(c).join(", ")+"}");var f=e();return c.current=f,function(){c.current=null}}}function C0(e,t,n){typeof t!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var i=n!=null?n.concat([e]):null,c=ka;return c|=Ac,(Za.mode&hs)!==Ft&&(c|=Ys),bh(c,rn,Ox.bind(null,t,e),i)}function ag(e,t,n){typeof t!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var i=n!=null?n.concat([e]):null;return Qv(ka,rn,Ox.bind(null,t,e),i)}function Xz(e,t){}var rg=Xz;function x0(e,t){var n=bs(),i=t===void 0?null:t;return n.memoizedState=[e,i],e}function ng(e,t){var n=xl(),i=t===void 0?null:t,c=n.memoizedState;if(c!==null&&i!==null){var f=c[1];if(f0(i,f))return c[0]}return n.memoizedState=[e,i],e}function T0(e,t){var n=bs(),i=t===void 0?null:t,c=e();return n.memoizedState=[c,i],c}function og(e,t){var n=xl(),i=t===void 0?null:t,c=n.memoizedState;if(c!==null&&i!==null){var f=c[1];if(f0(i,f))return c[0]}var g=e();return n.memoizedState=[g,i],g}function k0(e){var t=bs();return t.memoizedState=e,e}function Ix(e){var t=xl(),n=nn,i=n.memoizedState;return Mx(t,i,e)}function Px(e){var t=xl();if(nn===null)return t.memoizedState=e,e;var n=nn.memoizedState;return Mx(t,n,e)}function Mx(e,t,n){var i=!IP(qc);if(i){if(!Vo(n,t)){var c=NC();Za.lanes=ua(Za.lanes,c),Fh(c),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,kh()),e.memoizedState=n,n}function Jz(e,t,n){var i=Fl();bn(WP(i,qs)),e(!0);var c=mh.transition;mh.transition={};var f=mh.transition;mh.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(bn(i),mh.transition=c,c===null&&f._updatedFibers){var g=f._updatedFibers.size;g>10&&d("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),f._updatedFibers.clear()}}}function E0(){var e=Xv(!1),t=e[0],n=e[1],i=Jz.bind(null,n),c=bs();return c.memoizedState=i,[t,i]}function Fx(){var e=_0(),t=e[0],n=xl(),i=n.memoizedState;return[t,i]}function zx(){var e=b0(),t=e[0],n=xl(),i=n.memoizedState;return[t,i]}var Hx=!1;function Qz(){return Hx}function R0(){var e=bs(),t=kg(),n=t.identifierPrefix,i;if(kn()){var c=mz();i=":"+n+"R"+c;var f=gh++;f>0&&(i+="H"+f.toString(32)),i+=":"}else{var g=Gz++;i=":"+n+"r"+g.toString(32)+":"}return e.memoizedState=i,i}function ig(){var e=xl(),t=e.memoizedState;return t}function Zz(e,t,n){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var i=tc(e),c={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(jx(e))Ux(t,c);else{var f=vx(e,t,c,i);if(f!==null){var g=no();cn(f,e,i,g),Vx(f,t,i)}}Wx(e,i)}function eH(e,t,n){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var i=tc(e),c={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(jx(e))Ux(t,c);else{var f=e.alternate;if(e.lanes===je&&(f===null||f.lanes===je)){var g=t.lastRenderedReducer;if(g!==null){var S;S=ht.current,ht.current=Vl;try{var x=t.lastRenderedState,R=g(x,n);if(c.hasEagerState=!0,c.eagerState=R,Vo(R,x)){Fz(e,t,c,i);return}}catch(X){}finally{ht.current=S}}}var O=vx(e,t,c,i);if(O!==null){var Q=no();cn(O,e,i,Q),Vx(O,t,i)}}Wx(e,i)}function jx(e){var t=e.alternate;return e===Za||t!==null&&t===Za}function Ux(e,t){vh=qv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vx(e,t,n){if(BC(n)){var i=t.lanes;i=OC(i,e.pendingLanes);var c=ua(i,n);t.lanes=c,Gb(e,c)}}function Wx(e,t,n){wb(e,t)}var lg={readContext:Kr,useCallback:Vn,useContext:Vn,useEffect:Vn,useImperativeHandle:Vn,useInsertionEffect:Vn,useLayoutEffect:Vn,useMemo:Vn,useReducer:Vn,useRef:Vn,useState:Vn,useDebugValue:Vn,useDeferredValue:Vn,useTransition:Vn,useMutableSource:Vn,useSyncExternalStore:Vn,useId:Vn,unstable_isNewReconciler:ve},Yx=null,$x=null,Gx=null,qx=null,ys=null,Vl=null,sg=null;{var D0=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Qt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Yx={readContext:function(e){return Kr(e)},useCallback:function(e,t){return Ne="useCallback",Ha(),_f(t),x0(e,t)},useContext:function(e){return Ne="useContext",Ha(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",Ha(),_f(t),Zv(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",Ha(),_f(n),C0(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",Ha(),_f(t),S0(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",Ha(),_f(t),w0(e,t)},useMemo:function(e,t){Ne="useMemo",Ha(),_f(t);var n=ht.current;ht.current=ys;try{return T0(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",Ha();var i=ht.current;ht.current=ys;try{return h0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",Ha(),y0(e)},useState:function(e){Ne="useState",Ha();var t=ht.current;ht.current=ys;try{return Xv(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",Ha(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",Ha(),k0(e)},useTransition:function(){return Ne="useTransition",Ha(),E0()},useMutableSource:function(e,t,n){return Ne="useMutableSource",Ha(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",Ha(),g0(e,t,n)},useId:function(){return Ne="useId",Ha(),R0()},unstable_isNewReconciler:ve},$x={readContext:function(e){return Kr(e)},useCallback:function(e,t){return Ne="useCallback",ot(),x0(e,t)},useContext:function(e){return Ne="useContext",ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",ot(),Zv(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",ot(),C0(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",ot(),S0(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",ot(),w0(e,t)},useMemo:function(e,t){Ne="useMemo",ot();var n=ht.current;ht.current=ys;try{return T0(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",ot();var i=ht.current;ht.current=ys;try{return h0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",ot(),y0(e)},useState:function(e){Ne="useState",ot();var t=ht.current;ht.current=ys;try{return Xv(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",ot(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",ot(),k0(e)},useTransition:function(){return Ne="useTransition",ot(),E0()},useMutableSource:function(e,t,n){return Ne="useMutableSource",ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",ot(),g0(e,t,n)},useId:function(){return Ne="useId",ot(),R0()},unstable_isNewReconciler:ve},Gx={readContext:function(e){return Kr(e)},useCallback:function(e,t){return Ne="useCallback",ot(),ng(e,t)},useContext:function(e){return Ne="useContext",ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",ot(),yh(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",ot(),ag(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",ot(),eg(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",ot(),tg(e,t)},useMemo:function(e,t){Ne="useMemo",ot();var n=ht.current;ht.current=Vl;try{return og(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",ot();var i=ht.current;ht.current=Vl;try{return m0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",ot(),Jv()},useState:function(e){Ne="useState",ot();var t=ht.current;ht.current=Vl;try{return _0(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",ot(),rg()},useDeferredValue:function(e){return Ne="useDeferredValue",ot(),Ix(e)},useTransition:function(){return Ne="useTransition",ot(),Fx()},useMutableSource:function(e,t,n){return Ne="useMutableSource",ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",ot(),Kv(e,t)},useId:function(){return Ne="useId",ot(),ig()},unstable_isNewReconciler:ve},qx={readContext:function(e){return Kr(e)},useCallback:function(e,t){return Ne="useCallback",ot(),ng(e,t)},useContext:function(e){return Ne="useContext",ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",ot(),yh(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",ot(),ag(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",ot(),eg(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",ot(),tg(e,t)},useMemo:function(e,t){Ne="useMemo",ot();var n=ht.current;ht.current=sg;try{return og(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",ot();var i=ht.current;ht.current=sg;try{return v0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",ot(),Jv()},useState:function(e){Ne="useState",ot();var t=ht.current;ht.current=sg;try{return b0(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",ot(),rg()},useDeferredValue:function(e){return Ne="useDeferredValue",ot(),Px(e)},useTransition:function(){return Ne="useTransition",ot(),zx()},useMutableSource:function(e,t,n){return Ne="useMutableSource",ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",ot(),Kv(e,t)},useId:function(){return Ne="useId",ot(),ig()},unstable_isNewReconciler:ve},ys={readContext:function(e){return D0(),Kr(e)},useCallback:function(e,t){return Ne="useCallback",Qt(),Ha(),x0(e,t)},useContext:function(e){return Ne="useContext",Qt(),Ha(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",Qt(),Ha(),Zv(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",Qt(),Ha(),C0(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",Qt(),Ha(),S0(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",Qt(),Ha(),w0(e,t)},useMemo:function(e,t){Ne="useMemo",Qt(),Ha();var n=ht.current;ht.current=ys;try{return T0(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",Qt(),Ha();var i=ht.current;ht.current=ys;try{return h0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",Qt(),Ha(),y0(e)},useState:function(e){Ne="useState",Qt(),Ha();var t=ht.current;ht.current=ys;try{return Xv(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",Qt(),Ha(),void 0},useDeferredValue:function(e){return Ne="useDeferredValue",Qt(),Ha(),k0(e)},useTransition:function(){return Ne="useTransition",Qt(),Ha(),E0()},useMutableSource:function(e,t,n){return Ne="useMutableSource",Qt(),Ha(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",Qt(),Ha(),g0(e,t,n)},useId:function(){return Ne="useId",Qt(),Ha(),R0()},unstable_isNewReconciler:ve},Vl={readContext:function(e){return D0(),Kr(e)},useCallback:function(e,t){return Ne="useCallback",Qt(),ot(),ng(e,t)},useContext:function(e){return Ne="useContext",Qt(),ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",Qt(),ot(),yh(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",Qt(),ot(),ag(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",Qt(),ot(),eg(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",Qt(),ot(),tg(e,t)},useMemo:function(e,t){Ne="useMemo",Qt(),ot();var n=ht.current;ht.current=Vl;try{return og(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",Qt(),ot();var i=ht.current;ht.current=Vl;try{return m0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",Qt(),ot(),Jv()},useState:function(e){Ne="useState",Qt(),ot();var t=ht.current;ht.current=Vl;try{return _0(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",Qt(),ot(),rg()},useDeferredValue:function(e){return Ne="useDeferredValue",Qt(),ot(),Ix(e)},useTransition:function(){return Ne="useTransition",Qt(),ot(),Fx()},useMutableSource:function(e,t,n){return Ne="useMutableSource",Qt(),ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",Qt(),ot(),Kv(e,t)},useId:function(){return Ne="useId",Qt(),ot(),ig()},unstable_isNewReconciler:ve},sg={readContext:function(e){return D0(),Kr(e)},useCallback:function(e,t){return Ne="useCallback",Qt(),ot(),ng(e,t)},useContext:function(e){return Ne="useContext",Qt(),ot(),Kr(e)},useEffect:function(e,t){return Ne="useEffect",Qt(),ot(),yh(e,t)},useImperativeHandle:function(e,t,n){return Ne="useImperativeHandle",Qt(),ot(),ag(e,t,n)},useInsertionEffect:function(e,t){return Ne="useInsertionEffect",Qt(),ot(),eg(e,t)},useLayoutEffect:function(e,t){return Ne="useLayoutEffect",Qt(),ot(),tg(e,t)},useMemo:function(e,t){Ne="useMemo",Qt(),ot();var n=ht.current;ht.current=Vl;try{return og(e,t)}finally{ht.current=n}},useReducer:function(e,t,n){Ne="useReducer",Qt(),ot();var i=ht.current;ht.current=Vl;try{return v0(e,t,n)}finally{ht.current=i}},useRef:function(e){return Ne="useRef",Qt(),ot(),Jv()},useState:function(e){Ne="useState",Qt(),ot();var t=ht.current;ht.current=Vl;try{return b0(e)}finally{ht.current=t}},useDebugValue:function(e,t){return Ne="useDebugValue",Qt(),ot(),rg()},useDeferredValue:function(e){return Ne="useDeferredValue",Qt(),ot(),Px(e)},useTransition:function(){return Ne="useTransition",Qt(),ot(),zx()},useMutableSource:function(e,t,n){return Ne="useMutableSource",Qt(),ot(),void 0},useSyncExternalStore:function(e,t,n){return Ne="useSyncExternalStore",Qt(),ot(),Kv(e,t)},useId:function(){return Ne="useId",Qt(),ot(),ig()},unstable_isNewReconciler:ve}}var Ju=r.unstable_now,Kx=0,ug=-1,Sh=-1,cg=-1,A0=!1,dg=!1;function Xx(){return A0}function tH(){dg=!0}function aH(){A0=!1,dg=!1}function rH(){A0=dg,dg=!1}function Jx(){return Kx}function Qx(){Kx=Ju()}function L0(e){Sh=Ju(),e.actualStartTime<0&&(e.actualStartTime=Ju())}function Zx(e){Sh=-1}function fg(e,t){if(Sh>=0){var n=Ju()-Sh;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Sh=-1}}function Ss(e){if(ug>=0){var t=Ju()-ug;ug=-1;for(var n=e.return;n!==null;){switch(n.tag){case b:var i=n.stateNode;i.effectDuration+=t;return;case U:var c=n.stateNode;c.effectDuration+=t;return}n=n.return}}}function B0(e){if(cg>=0){var t=Ju()-cg;cg=-1;for(var n=e.return;n!==null;){switch(n.tag){case b:var i=n.stateNode;i!==null&&(i.passiveEffectDuration+=t);return;case U:var c=n.stateNode;c!==null&&(c.passiveEffectDuration+=t);return}n=n.return}}}function ws(){ug=Ju()}function N0(){cg=Ju()}function O0(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Wl(e,t){if(e&&e.defaultProps){var n=Pt({},t),i=e.defaultProps;for(var c in i)n[c]===void 0&&(n[c]=i[c]);return n}return t}var I0={},P0,M0,F0,z0,H0,e4,pg,j0,U0,V0,wh;{P0=new Set,M0=new Set,F0=new Set,z0=new Set,j0=new Set,H0=new Set,U0=new Set,V0=new Set,wh=new Set;var t4=new Set;pg=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;t4.has(n)||(t4.add(n),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},e4=function(e,t){if(t===void 0){var n=Va(e)||"Component";H0.has(n)||(H0.add(n),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(I0,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(I0)}function W0(e,t,n,i){var c=e.memoizedState,f=n(i,c);{if(e.mode&Nr){gn(!0);try{f=n(i,c)}finally{gn(!1)}}e4(t,f)}var g=f==null?c:Pt({},c,f);if(e.memoizedState=g,e.lanes===je){var S=e.updateQueue;S.baseState=g}}var Y0={isMounted:qI,enqueueSetState:function(e,t,n){var i=Ud(e),c=no(),f=tc(i),g=tu(c,f);g.payload=t,n!=null&&(pg(n,"setState"),g.callback=n);var S=Gu(i,g,f);S!==null&&(cn(S,i,f,c),Uv(S,i,f)),wb(i,f)},enqueueReplaceState:function(e,t,n){var i=Ud(e),c=no(),f=tc(i),g=tu(c,f);g.tag=_x,g.payload=t,n!=null&&(pg(n,"replaceState"),g.callback=n);var S=Gu(i,g,f);S!==null&&(cn(S,i,f,c),Uv(S,i,f)),wb(i,f)},enqueueForceUpdate:function(e,t){var n=Ud(e),i=no(),c=tc(n),f=tu(i,c);f.tag=zv,t!=null&&(pg(t,"forceUpdate"),f.callback=t);var g=Gu(n,f,c);g!==null&&(cn(g,n,c,i),Uv(g,n,c)),TP(n,c)}};function a4(e,t,n,i,c,f,g){var S=e.stateNode;if(typeof S.shouldComponentUpdate=="function"){var x=S.shouldComponentUpdate(i,f,g);{if(e.mode&Nr){gn(!0);try{x=S.shouldComponentUpdate(i,f,g)}finally{gn(!1)}}x===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Va(t)||"Component")}return x}return t.prototype&&t.prototype.isPureReactComponent?!Wp(n,i)||!Wp(c,f):!0}function nH(e,t,n){var i=e.stateNode;{var c=Va(t)||"Component",f=i.render;f||(t.prototype&&typeof t.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",c):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",c)),i.getInitialState&&!i.getInitialState.isReactClassApproved&&!i.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",c),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",c),i.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",c),i.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",c),t.childContextTypes&&!wh.has(t)&&(e.mode&Nr)===Ft&&(wh.add(t),u(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
85
85
 
86
86
  .Learn more about this warning here: https://reactjs.org/link/legacy-context`,c)),t.contextTypes&&!wh.has(t)&&(e.mode&Nr)===Ft&&(wh.add(t),u(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
87
87
 
88
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,c)),i.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",c),t.contextType&&t.contextTypes&&!U0.has(t)&&(U0.add(t),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",c)),typeof i.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",c),t.prototype&&t.prototype.isPureReactComponent&&typeof i.shouldComponentUpdate!="undefined"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Va(t)||"A pure component"),typeof i.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",c),typeof i.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",c),typeof i.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",c),typeof i.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",c);var g=i.props!==n;i.props!==void 0&&g&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",c,c),i.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",c,c),typeof i.getSnapshotBeforeUpdate=="function"&&typeof i.componentDidUpdate!="function"&&!F0.has(t)&&(F0.add(t),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Va(t))),typeof i.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof i.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof t.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",c);var S=i.state;S&&(typeof S!="object"||tn(S))&&u("%s.state: must be set to an object or null",c),typeof i.getChildContext=="function"&&typeof t.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",c)}}function rT(e,t){t.updater=Y0,e.stateNode=t,VI(t,e),t._reactInternalInstance=I0}function nT(e,t,n){var i=!1,c=Wo,f=Wo,g=t.contextType;if("contextType"in t){var S=g===null||g!==void 0&&g.$$typeof===G&&g._context===void 0;if(!S&&!V0.has(t)){V0.add(t);var x="";g===void 0?x=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof g!="object"?x=" However, it is set to a "+typeof g+".":g.$$typeof===N?x=" Did you accidentally pass the Context.Provider instead?":g._context!==void 0?x=" Did you accidentally pass the Context.Consumer instead?":x=" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Va(t)||"Component",x)}}if(typeof g=="object"&&g!==null)f=Kr(g);else{c=of(e,t,!0);var R=t.contextTypes;i=R!=null,f=i?lf(e,c):Wo}var O=new t(n,f);if(e.mode&Nr){gn(!0);try{O=new t(n,f)}finally{gn(!1)}}var Q=e.memoizedState=O.state!==null&&O.state!==void 0?O.state:null;rT(e,O);{if(typeof t.getDerivedStateFromProps=="function"&&Q===null){var X=Va(t)||"Component";M0.has(X)||(M0.add(X),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",X,O.state===null?"null":"undefined",X))}if(typeof t.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"){var ye=null,Se=null,xe=null;if(typeof O.componentWillMount=="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0?ye="componentWillMount":typeof O.UNSAFE_componentWillMount=="function"&&(ye="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps=="function"&&O.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Se="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps=="function"&&(Se="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate=="function"&&O.componentWillUpdate.__suppressDeprecationWarning!==!0?xe="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate=="function"&&(xe="UNSAFE_componentWillUpdate"),ye!==null||Se!==null||xe!==null){var it=Va(t)||"Component",Nt=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";z0.has(it)||(z0.add(it),u(`Unsafe legacy lifecycles will not be called for components using new component APIs.
88
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,c)),i.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",c),t.contextType&&t.contextTypes&&!U0.has(t)&&(U0.add(t),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",c)),typeof i.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",c),t.prototype&&t.prototype.isPureReactComponent&&typeof i.shouldComponentUpdate!="undefined"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Va(t)||"A pure component"),typeof i.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",c),typeof i.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",c),typeof i.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",c),typeof i.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",c);var g=i.props!==n;i.props!==void 0&&g&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",c,c),i.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",c,c),typeof i.getSnapshotBeforeUpdate=="function"&&typeof i.componentDidUpdate!="function"&&!F0.has(t)&&(F0.add(t),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Va(t))),typeof i.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof i.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof t.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",c);var S=i.state;S&&(typeof S!="object"||tn(S))&&u("%s.state: must be set to an object or null",c),typeof i.getChildContext=="function"&&typeof t.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",c)}}function r4(e,t){t.updater=Y0,e.stateNode=t,VI(t,e),t._reactInternalInstance=I0}function n4(e,t,n){var i=!1,c=Wo,f=Wo,g=t.contextType;if("contextType"in t){var S=g===null||g!==void 0&&g.$$typeof===G&&g._context===void 0;if(!S&&!V0.has(t)){V0.add(t);var x="";g===void 0?x=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof g!="object"?x=" However, it is set to a "+typeof g+".":g.$$typeof===N?x=" Did you accidentally pass the Context.Provider instead?":g._context!==void 0?x=" Did you accidentally pass the Context.Consumer instead?":x=" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Va(t)||"Component",x)}}if(typeof g=="object"&&g!==null)f=Kr(g);else{c=of(e,t,!0);var R=t.contextTypes;i=R!=null,f=i?lf(e,c):Wo}var O=new t(n,f);if(e.mode&Nr){gn(!0);try{O=new t(n,f)}finally{gn(!1)}}var Q=e.memoizedState=O.state!==null&&O.state!==void 0?O.state:null;r4(e,O);{if(typeof t.getDerivedStateFromProps=="function"&&Q===null){var X=Va(t)||"Component";M0.has(X)||(M0.add(X),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",X,O.state===null?"null":"undefined",X))}if(typeof t.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"){var ye=null,Se=null,xe=null;if(typeof O.componentWillMount=="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0?ye="componentWillMount":typeof O.UNSAFE_componentWillMount=="function"&&(ye="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps=="function"&&O.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Se="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps=="function"&&(Se="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate=="function"&&O.componentWillUpdate.__suppressDeprecationWarning!==!0?xe="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate=="function"&&(xe="UNSAFE_componentWillUpdate"),ye!==null||Se!==null||xe!==null){var it=Va(t)||"Component",Nt=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";z0.has(it)||(z0.add(it),u(`Unsafe legacy lifecycles will not be called for components using new component APIs.
89
89
 
90
90
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
91
91
 
@@ -93,13 +93,13 @@ The above lifecycles should be removed. Learn more about this warning here:
93
93
  https://reactjs.org/link/unsafe-component-lifecycles`,it,Nt,ye!==null?`
94
94
  `+ye:"",Se!==null?`
95
95
  `+Se:"",xe!==null?`
96
- `+xe:""))}}}return i&&G3(e,c,f),O}function oH(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",na(e)||"Component"),Y0.enqueueReplaceState(t,t.state,null))}function oT(e,t,n,i){var c=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==c){{var f=na(e)||"Component";P0.has(f)||(P0.add(f),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",f))}Y0.enqueueReplaceState(t,t.state,null)}}function $0(e,t,n,i){nH(e,t,n);var c=e.stateNode;c.props=n,c.state=e.memoizedState,c.refs={},t0(e);var f=t.contextType;if(typeof f=="object"&&f!==null)c.context=Kr(f);else{var g=of(e,t,!0);c.context=lf(e,g)}{if(c.state===n){var S=Va(t)||"Component";j0.has(S)||(j0.add(S),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",S))}e.mode&Nr&&jl.recordLegacyContextWarning(e,c),jl.recordUnsafeLifecycleWarnings(e,c)}c.state=e.memoizedState;var x=t.getDerivedStateFromProps;if(typeof x=="function"&&(W0(e,t,x,n),c.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof c.getSnapshotBeforeUpdate!="function"&&(typeof c.UNSAFE_componentWillMount=="function"||typeof c.componentWillMount=="function")&&(oH(e,c),Vv(e,n,c,i),c.state=e.memoizedState),typeof c.componentDidMount=="function"){var R=ka;R|=Ac,(e.mode&hs)!==Ft&&(R|=Ys),e.flags|=R}}function iH(e,t,n,i){var c=e.stateNode,f=e.memoizedProps;c.props=f;var g=c.context,S=t.contextType,x=Wo;if(typeof S=="object"&&S!==null)x=Kr(S);else{var R=of(e,t,!0);x=lf(e,R)}var O=t.getDerivedStateFromProps,Q=typeof O=="function"||typeof c.getSnapshotBeforeUpdate=="function";!Q&&(typeof c.UNSAFE_componentWillReceiveProps=="function"||typeof c.componentWillReceiveProps=="function")&&(f!==n||g!==x)&&oT(e,c,n,x),yx();var X=e.memoizedState,ye=c.state=X;if(Vv(e,n,c,i),ye=e.memoizedState,f===n&&X===ye&&!xv()&&!Wv()){if(typeof c.componentDidMount=="function"){var Se=ka;Se|=Ac,(e.mode&hs)!==Ft&&(Se|=Ys),e.flags|=Se}return!1}typeof O=="function"&&(W0(e,t,O,n),ye=e.memoizedState);var xe=Wv()||aT(e,t,f,n,X,ye,x);if(xe){if(!Q&&(typeof c.UNSAFE_componentWillMount=="function"||typeof c.componentWillMount=="function")&&(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"){var it=ka;it|=Ac,(e.mode&hs)!==Ft&&(it|=Ys),e.flags|=it}}else{if(typeof c.componentDidMount=="function"){var Nt=ka;Nt|=Ac,(e.mode&hs)!==Ft&&(Nt|=Ys),e.flags|=Nt}e.memoizedProps=n,e.memoizedState=ye}return c.props=n,c.state=ye,c.context=x,xe}function lH(e,t,n,i,c){var f=t.stateNode;bx(e,t);var g=t.memoizedProps,S=t.type===t.elementType?g:Wl(t.type,g);f.props=S;var x=t.pendingProps,R=f.context,O=n.contextType,Q=Wo;if(typeof O=="object"&&O!==null)Q=Kr(O);else{var X=of(t,n,!0);Q=lf(t,X)}var ye=n.getDerivedStateFromProps,Se=typeof ye=="function"||typeof f.getSnapshotBeforeUpdate=="function";!Se&&(typeof f.UNSAFE_componentWillReceiveProps=="function"||typeof f.componentWillReceiveProps=="function")&&(g!==x||R!==Q)&&oT(t,f,i,Q),yx();var xe=t.memoizedState,it=f.state=xe;if(Vv(t,i,f,c),it=t.memoizedState,g===x&&xe===it&&!xv()&&!Wv()&&!be)return typeof f.componentDidUpdate=="function"&&(g!==e.memoizedProps||xe!==e.memoizedState)&&(t.flags|=ka),typeof f.getSnapshotBeforeUpdate=="function"&&(g!==e.memoizedProps||xe!==e.memoizedState)&&(t.flags|=Rc),!1;typeof ye=="function"&&(W0(t,n,ye,i),it=t.memoizedState);var Nt=Wv()||aT(t,n,S,i,xe,it,Q)||be;return Nt?(!Se&&(typeof f.UNSAFE_componentWillUpdate=="function"||typeof f.componentWillUpdate=="function")&&(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,it,Q),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,it,Q)),typeof f.componentDidUpdate=="function"&&(t.flags|=ka),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=Rc)):(typeof f.componentDidUpdate=="function"&&(g!==e.memoizedProps||xe!==e.memoizedState)&&(t.flags|=ka),typeof f.getSnapshotBeforeUpdate=="function"&&(g!==e.memoizedProps||xe!==e.memoizedState)&&(t.flags|=Rc),t.memoizedProps=i,t.memoizedState=it),f.props=i,f.state=it,f.context=Q,Nt}function Kc(e,t){return{value:e,source:t,stack:Rm(t),digest:null}}function G0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function sH(e,t){return!0}function q0(e,t){try{var n=sH(e,t);if(n===!1)return;var i=t.value,c=t.source,f=t.stack,g=f!==null?f:"";if(i!=null&&i._suppressLogging){if(e.tag===v)return;console.error(i)}var S=c?na(c):null,x=S?"The above error occurred in the <"+S+"> component:":"The above error occurred in one of your React components:",R;if(e.tag===b)R=`Consider adding an error boundary to your tree to customize error handling behavior.
96
+ `+xe:""))}}}return i&&G3(e,c,f),O}function oH(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",na(e)||"Component"),Y0.enqueueReplaceState(t,t.state,null))}function o4(e,t,n,i){var c=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==c){{var f=na(e)||"Component";P0.has(f)||(P0.add(f),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",f))}Y0.enqueueReplaceState(t,t.state,null)}}function $0(e,t,n,i){nH(e,t,n);var c=e.stateNode;c.props=n,c.state=e.memoizedState,c.refs={},t0(e);var f=t.contextType;if(typeof f=="object"&&f!==null)c.context=Kr(f);else{var g=of(e,t,!0);c.context=lf(e,g)}{if(c.state===n){var S=Va(t)||"Component";j0.has(S)||(j0.add(S),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",S))}e.mode&Nr&&jl.recordLegacyContextWarning(e,c),jl.recordUnsafeLifecycleWarnings(e,c)}c.state=e.memoizedState;var x=t.getDerivedStateFromProps;if(typeof x=="function"&&(W0(e,t,x,n),c.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof c.getSnapshotBeforeUpdate!="function"&&(typeof c.UNSAFE_componentWillMount=="function"||typeof c.componentWillMount=="function")&&(oH(e,c),Vv(e,n,c,i),c.state=e.memoizedState),typeof c.componentDidMount=="function"){var R=ka;R|=Ac,(e.mode&hs)!==Ft&&(R|=Ys),e.flags|=R}}function iH(e,t,n,i){var c=e.stateNode,f=e.memoizedProps;c.props=f;var g=c.context,S=t.contextType,x=Wo;if(typeof S=="object"&&S!==null)x=Kr(S);else{var R=of(e,t,!0);x=lf(e,R)}var O=t.getDerivedStateFromProps,Q=typeof O=="function"||typeof c.getSnapshotBeforeUpdate=="function";!Q&&(typeof c.UNSAFE_componentWillReceiveProps=="function"||typeof c.componentWillReceiveProps=="function")&&(f!==n||g!==x)&&o4(e,c,n,x),yx();var X=e.memoizedState,ye=c.state=X;if(Vv(e,n,c,i),ye=e.memoizedState,f===n&&X===ye&&!xv()&&!Wv()){if(typeof c.componentDidMount=="function"){var Se=ka;Se|=Ac,(e.mode&hs)!==Ft&&(Se|=Ys),e.flags|=Se}return!1}typeof O=="function"&&(W0(e,t,O,n),ye=e.memoizedState);var xe=Wv()||a4(e,t,f,n,X,ye,x);if(xe){if(!Q&&(typeof c.UNSAFE_componentWillMount=="function"||typeof c.componentWillMount=="function")&&(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"){var it=ka;it|=Ac,(e.mode&hs)!==Ft&&(it|=Ys),e.flags|=it}}else{if(typeof c.componentDidMount=="function"){var Nt=ka;Nt|=Ac,(e.mode&hs)!==Ft&&(Nt|=Ys),e.flags|=Nt}e.memoizedProps=n,e.memoizedState=ye}return c.props=n,c.state=ye,c.context=x,xe}function lH(e,t,n,i,c){var f=t.stateNode;bx(e,t);var g=t.memoizedProps,S=t.type===t.elementType?g:Wl(t.type,g);f.props=S;var x=t.pendingProps,R=f.context,O=n.contextType,Q=Wo;if(typeof O=="object"&&O!==null)Q=Kr(O);else{var X=of(t,n,!0);Q=lf(t,X)}var ye=n.getDerivedStateFromProps,Se=typeof ye=="function"||typeof f.getSnapshotBeforeUpdate=="function";!Se&&(typeof f.UNSAFE_componentWillReceiveProps=="function"||typeof f.componentWillReceiveProps=="function")&&(g!==x||R!==Q)&&o4(t,f,i,Q),yx();var xe=t.memoizedState,it=f.state=xe;if(Vv(t,i,f,c),it=t.memoizedState,g===x&&xe===it&&!xv()&&!Wv()&&!be)return typeof f.componentDidUpdate=="function"&&(g!==e.memoizedProps||xe!==e.memoizedState)&&(t.flags|=ka),typeof f.getSnapshotBeforeUpdate=="function"&&(g!==e.memoizedProps||xe!==e.memoizedState)&&(t.flags|=Rc),!1;typeof ye=="function"&&(W0(t,n,ye,i),it=t.memoizedState);var Nt=Wv()||a4(t,n,S,i,xe,it,Q)||be;return Nt?(!Se&&(typeof f.UNSAFE_componentWillUpdate=="function"||typeof f.componentWillUpdate=="function")&&(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,it,Q),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,it,Q)),typeof f.componentDidUpdate=="function"&&(t.flags|=ka),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=Rc)):(typeof f.componentDidUpdate=="function"&&(g!==e.memoizedProps||xe!==e.memoizedState)&&(t.flags|=ka),typeof f.getSnapshotBeforeUpdate=="function"&&(g!==e.memoizedProps||xe!==e.memoizedState)&&(t.flags|=Rc),t.memoizedProps=i,t.memoizedState=it),f.props=i,f.state=it,f.context=Q,Nt}function Kc(e,t){return{value:e,source:t,stack:Rm(t),digest:null}}function G0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function sH(e,t){return!0}function q0(e,t){try{var n=sH(e,t);if(n===!1)return;var i=t.value,c=t.source,f=t.stack,g=f!==null?f:"";if(i!=null&&i._suppressLogging){if(e.tag===v)return;console.error(i)}var S=c?na(c):null,x=S?"The above error occurred in the <"+S+"> component:":"The above error occurred in one of your React components:",R;if(e.tag===b)R=`Consider adding an error boundary to your tree to customize error handling behavior.
97
97
  Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var O=na(e)||"Anonymous";R="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+O+".")}var Q=x+`
98
98
  `+g+`
99
99
 
100
- `+(""+R);console.error(Q)}catch(X){setTimeout(function(){throw X})}}var uH=typeof WeakMap=="function"?WeakMap:Map;function iT(e,t,n){var i=tu(gr,n);i.tag=Z1,i.payload={element:null};var c=t.value;return i.callback=function(){iU(c),q0(e,t)},i}function K0(e,t,n){var i=tu(gr,n);i.tag=Z1;var c=e.type.getDerivedStateFromError;if(typeof c=="function"){var f=t.value;i.payload=function(){return c(f)},i.callback=function(){_4(e),q0(e,t)}}var g=e.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(i.callback=function(){_4(e),q0(e,t),typeof c!="function"&&nU(this);var x=t.value,R=t.stack;this.componentDidCatch(x,{componentStack:R!==null?R:""}),typeof c!="function"&&(Ho(e.lanes,Jt)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",na(e)||"Unknown"))}),i}function lT(e,t,n){var i=e.pingCache,c;if(i===null?(i=e.pingCache=new uH,c=new Set,i.set(t,c)):(c=i.get(t),c===void 0&&(c=new Set,i.set(t,c))),!c.has(n)){c.add(n);var f=lU.bind(null,e,t,n);Ml&&zh(e,n),t.then(f,f)}}function cH(e,t,n,i){var c=e.updateQueue;if(c===null){var f=new Set;f.add(n),e.updateQueue=f}else c.add(n)}function dH(e,t){var n=e.tag;if((e.mode&ba)===Ft&&(n===p||n===j||n===oe)){var i=e.alternate;i?(e.updateQueue=i.updateQueue,e.memoizedState=i.memoizedState,e.lanes=i.lanes):(e.updateQueue=null,e.memoizedState=null)}}function sT(e){var t=e;do{if(t.tag===K&&Yz(t))return t;t=t.return}while(t!==null);return null}function uT(e,t,n,i,c){if((e.mode&ba)===Ft){if(e===t)e.flags|=to;else{if(e.flags|=Ma,n.flags|=mb,n.flags&=~(WI|Sp),n.tag===v){var f=n.alternate;if(f===null)n.tag=J;else{var g=tu(gr,Jt);g.tag=zv,Gu(n,g,Jt)}}n.lanes=ua(n.lanes,Jt)}return e}return e.flags|=to,e.lanes=c,e}function fH(e,t,n,i,c){if(n.flags|=Sp,Ml&&zh(e,c),i!==null&&typeof i=="object"&&typeof i.then=="function"){var f=i;dH(n),kn()&&n.mode&ba&&ex();var g=sT(t);if(g!==null){g.flags&=~Vs,uT(g,t,n,e,c),g.mode&ba&&lT(e,f,c),cH(g,e,f);return}else{if(!OP(c)){lT(e,f,c),Dy();return}var S=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");i=S}}else if(kn()&&n.mode&ba){ex();var x=sT(t);if(x!==null){(x.flags&to)===jt&&(x.flags|=Vs),uT(x,t,n,e,c),j1(Kc(i,n));return}}i=Kc(i,n),Xj(i);var R=t;do{switch(R.tag){case b:{var O=i;R.flags|=to;var Q=Dp(c);R.lanes=ua(R.lanes,Q);var X=iT(R,O,Q);a0(R,X);return}case v:var ye=i,Se=R.type,xe=R.stateNode;if((R.flags&Ma)===jt&&(typeof Se.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&!u4(xe))){R.flags|=to;var it=Dp(c);R.lanes=ua(R.lanes,it);var Nt=K0(R,ye,it);a0(R,Nt);return}break}R=R.return}while(R!==null)}function pH(){return null}var Ch=o.ReactCurrentOwner,Yl=!1,X0,xh,J0,Q0,Z0,Xc,ey,hg,Th;X0={},xh={},J0={},Q0={},Z0={},Xc=!1,ey={},hg={},Th={};function ao(e,t,n,i){e===null?t.child=fx(t,null,n,i):t.child=df(t,e.child,n,i)}function hH(e,t,n,i){t.child=df(t,e.child,null,i),t.child=df(t,null,n,i)}function cT(e,t,n,i,c){if(t.type!==t.elementType){var f=n.propTypes;f&&zl(f,i,"prop",Va(n))}var g=n.render,S=t.ref,x,R;pf(t,c),Cp(t);{if(Ch.current=t,bl(!0),x=bf(e,t,g,i,S,c),R=yf(),t.mode&Nr){gn(!0);try{x=bf(e,t,g,i,S,c),R=yf()}finally{gn(!1)}}bl(!1)}return Yd(),e!==null&&!Yl?(kx(e,t,c),au(e,t,c)):(kn()&&R&&I1(t),t.flags|=Vd,ao(e,t,x,c),t.child)}function dT(e,t,n,i,c){if(e===null){var f=n.type;if(xU(f)&&n.compare===null&&n.defaultProps===void 0){var g=f;return g=Rf(f),t.tag=oe,t.type=g,ry(t,f),fT(e,t,g,i,c)}{var S=f.propTypes;if(S&&zl(S,i,"prop",Va(f)),n.defaultProps!==void 0){var x=Va(f)||"Unknown";Th[x]||(u("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",x),Th[x]=!0)}}var R=Hy(n.type,null,i,t,t.mode,c);return R.ref=t.ref,R.return=t,t.child=R,R}{var O=n.type,Q=O.propTypes;Q&&zl(Q,i,"prop",Va(O))}var X=e.child,ye=uy(e,c);if(!ye){var Se=X.memoizedProps,xe=n.compare;if(xe=xe!==null?xe:Wp,xe(Se,i)&&e.ref===t.ref)return au(e,t,c)}t.flags|=Vd;var it=td(X,i);return it.ref=t.ref,it.return=t,t.child=it,it}function fT(e,t,n,i,c){if(t.type!==t.elementType){var f=t.elementType;if(f.$$typeof===at){var g=f,S=g._payload,x=g._init;try{f=x(S)}catch(Q){f=null}var R=f&&f.propTypes;R&&zl(R,i,"prop",Va(f))}}if(e!==null){var O=e.memoizedProps;if(Wp(O,i)&&e.ref===t.ref&&t.type===e.type)if(Yl=!1,t.pendingProps=i=O,uy(e,c))(e.flags&mb)!==jt&&(Yl=!0);else return t.lanes=e.lanes,au(e,t,c)}return ty(e,t,n,i,c)}function pT(e,t,n){var i=t.pendingProps,c=i.children,f=e!==null?e.memoizedState:null;if(i.mode==="hidden"||de)if((t.mode&ba)===Ft){var g={baseLanes:je,cachePool:null,transitions:null};t.memoizedState=g,Eg(t,n)}else if(Ho(n,zo)){var Q={baseLanes:je,cachePool:null,transitions:null};t.memoizedState=Q;var X=f!==null?f.baseLanes:n;Eg(t,X)}else{var S=null,x;if(f!==null){var R=f.baseLanes;x=ua(R,n)}else x=n;t.lanes=t.childLanes=zo;var O={baseLanes:x,cachePool:S,transitions:null};return t.memoizedState=O,t.updateQueue=null,Eg(t,x),null}else{var ye;f!==null?(ye=ua(f.baseLanes,n),t.memoizedState=null):ye=n,Eg(t,ye)}return ao(e,t,c,n),t.child}function mH(e,t,n){var i=t.pendingProps;return ao(e,t,i,n),t.child}function vH(e,t,n){var i=t.pendingProps.children;return ao(e,t,i,n),t.child}function gH(e,t,n){{t.flags|=ka;{var i=t.stateNode;i.effectDuration=0,i.passiveEffectDuration=0}}var c=t.pendingProps,f=c.children;return ao(e,t,f,n),t.child}function hT(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=Iu,t.flags|=vb)}function ty(e,t,n,i,c){if(t.type!==t.elementType){var f=n.propTypes;f&&zl(f,i,"prop",Va(n))}var g;{var S=of(t,n,!0);g=lf(t,S)}var x,R;pf(t,c),Cp(t);{if(Ch.current=t,bl(!0),x=bf(e,t,n,i,g,c),R=yf(),t.mode&Nr){gn(!0);try{x=bf(e,t,n,i,g,c),R=yf()}finally{gn(!1)}}bl(!1)}return Yd(),e!==null&&!Yl?(kx(e,t,c),au(e,t,c)):(kn()&&R&&I1(t),t.flags|=Vd,ao(e,t,x,c),t.child)}function mT(e,t,n,i,c){{switch(zU(t)){case!1:{var f=t.stateNode,g=t.type,S=new g(t.memoizedProps,f.context),x=S.state;f.updater.enqueueSetState(f,x,null);break}case!0:{t.flags|=Ma,t.flags|=to;var R=new Error("Simulated error coming from DevTools"),O=Dp(c);t.lanes=ua(t.lanes,O);var Q=K0(t,Kc(R,t),O);a0(t,Q);break}}if(t.type!==t.elementType){var X=n.propTypes;X&&zl(X,i,"prop",Va(n))}}var ye;gs(n)?(ye=!0,kv(t)):ye=!1,pf(t,c);var Se=t.stateNode,xe;Se===null?(vg(e,t),nT(t,n,i),$0(t,n,i,c),xe=!0):e===null?xe=iH(t,n,i,c):xe=lH(e,t,n,i,c);var it=ay(e,t,n,xe,ye,c);{var Nt=t.stateNode;xe&&Nt.props!==i&&(Xc||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",na(t)||"a component"),Xc=!0)}return it}function ay(e,t,n,i,c,f){hT(e,t);var g=(t.flags&Ma)!==jt;if(!i&&!g)return c&&X3(t,n,!1),au(e,t,f);var S=t.stateNode;Ch.current=t;var x;if(g&&typeof n.getDerivedStateFromError!="function")x=null,Zx();else{Cp(t);{if(bl(!0),x=S.render(),t.mode&Nr){gn(!0);try{S.render()}finally{gn(!1)}}bl(!1)}Yd()}return t.flags|=Vd,e!==null&&g?hH(e,t,x,f):ao(e,t,x,f),t.memoizedState=S.state,c&&X3(t,n,!0),t.child}function vT(e){var t=e.stateNode;t.pendingContext?q3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&q3(e,t.context,!1),r0(e,t.containerInfo)}function _H(e,t,n){if(vT(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var i=t.pendingProps,c=t.memoizedState,f=c.element;bx(e,t),Vv(t,i,null,n);var g=t.memoizedState,S=t.stateNode,x=g.element;if(c.isDehydrated){var R={element:x,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},O=t.updateQueue;if(O.baseState=R,t.memoizedState=R,t.flags&Vs){var Q=Kc(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return gT(e,t,x,n,Q)}else if(x!==f){var X=Kc(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return gT(e,t,x,n,X)}else{Sz(t);var ye=fx(t,null,x,n);t.child=ye;for(var Se=ye;Se;)Se.flags=Se.flags&~qr|Ws,Se=Se.sibling}}else{if(cf(),x===f)return au(e,t,n);ao(e,t,x,n)}return t.child}function gT(e,t,n,i,c){return cf(),j1(c),t.flags|=Vs,ao(e,t,n,i),t.child}function bH(e,t,n){Cx(t),e===null&&H1(t);var i=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,g=c.children,S=S1(i,c);return S?g=null:f!==null&&S1(i,f)&&(t.flags|=yp),hT(e,t),ao(e,t,g,n),t.child}function yH(e,t){return e===null&&H1(t),null}function SH(e,t,n,i){vg(e,t);var c=t.pendingProps,f=n,g=f._payload,S=f._init,x=S(g);t.type=x;var R=t.tag=TU(x),O=Wl(x,c),Q;switch(R){case p:return ry(t,x),t.type=x=Rf(x),Q=ty(null,t,x,O,i),Q;case v:return t.type=x=Oy(x),Q=mT(null,t,x,O,i),Q;case j:return t.type=x=Iy(x),Q=cT(null,t,x,O,i),Q;case M:{if(t.type!==t.elementType){var X=x.propTypes;X&&zl(X,O,"prop",Va(x))}return Q=dT(null,t,x,Wl(x.type,O),i),Q}}var ye="";throw x!==null&&typeof x=="object"&&x.$$typeof===at&&(ye=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+x+". "+("Lazy element type must resolve to a class or function."+ye))}function wH(e,t,n,i,c){vg(e,t),t.tag=v;var f;return gs(n)?(f=!0,kv(t)):f=!1,pf(t,c),nT(t,n,i),$0(t,n,i,c),ay(null,t,n,!0,f,c)}function CH(e,t,n,i){vg(e,t);var c=t.pendingProps,f;{var g=of(t,n,!1);f=lf(t,g)}pf(t,i);var S,x;Cp(t);{if(n.prototype&&typeof n.prototype.render=="function"){var R=Va(n)||"Unknown";X0[R]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",R,R),X0[R]=!0)}t.mode&Nr&&jl.recordLegacyContextWarning(t,null),bl(!0),Ch.current=t,S=bf(null,t,n,c,f,i),x=yf(),bl(!1)}if(Yd(),t.flags|=Vd,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var O=Va(n)||"Unknown";xh[O]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",O,O,O),xh[O]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var Q=Va(n)||"Unknown";xh[Q]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Q,Q,Q),xh[Q]=!0)}t.tag=v,t.memoizedState=null,t.updateQueue=null;var X=!1;return gs(n)?(X=!0,kv(t)):X=!1,t.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,t0(t),rT(t,S),$0(t,n,c,i),ay(null,t,n,!0,X,i)}else{if(t.tag=p,t.mode&Nr){gn(!0);try{S=bf(null,t,n,c,f,i),x=yf()}finally{gn(!1)}}return kn()&&x&&I1(t),ao(null,t,S,i),ry(t,n),t.child}}function ry(e,t){{if(t&&t.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",i=Nu();i&&(n+=`
100
+ `+(""+R);console.error(Q)}catch(X){setTimeout(function(){throw X})}}var uH=typeof WeakMap=="function"?WeakMap:Map;function i4(e,t,n){var i=tu(gr,n);i.tag=Z1,i.payload={element:null};var c=t.value;return i.callback=function(){iU(c),q0(e,t)},i}function K0(e,t,n){var i=tu(gr,n);i.tag=Z1;var c=e.type.getDerivedStateFromError;if(typeof c=="function"){var f=t.value;i.payload=function(){return c(f)},i.callback=function(){_T(e),q0(e,t)}}var g=e.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(i.callback=function(){_T(e),q0(e,t),typeof c!="function"&&nU(this);var x=t.value,R=t.stack;this.componentDidCatch(x,{componentStack:R!==null?R:""}),typeof c!="function"&&(Ho(e.lanes,Jt)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",na(e)||"Unknown"))}),i}function l4(e,t,n){var i=e.pingCache,c;if(i===null?(i=e.pingCache=new uH,c=new Set,i.set(t,c)):(c=i.get(t),c===void 0&&(c=new Set,i.set(t,c))),!c.has(n)){c.add(n);var f=lU.bind(null,e,t,n);Ml&&zh(e,n),t.then(f,f)}}function cH(e,t,n,i){var c=e.updateQueue;if(c===null){var f=new Set;f.add(n),e.updateQueue=f}else c.add(n)}function dH(e,t){var n=e.tag;if((e.mode&ba)===Ft&&(n===p||n===j||n===oe)){var i=e.alternate;i?(e.updateQueue=i.updateQueue,e.memoizedState=i.memoizedState,e.lanes=i.lanes):(e.updateQueue=null,e.memoizedState=null)}}function s4(e){var t=e;do{if(t.tag===K&&Yz(t))return t;t=t.return}while(t!==null);return null}function u4(e,t,n,i,c){if((e.mode&ba)===Ft){if(e===t)e.flags|=to;else{if(e.flags|=Ma,n.flags|=mb,n.flags&=~(WI|Sp),n.tag===v){var f=n.alternate;if(f===null)n.tag=J;else{var g=tu(gr,Jt);g.tag=zv,Gu(n,g,Jt)}}n.lanes=ua(n.lanes,Jt)}return e}return e.flags|=to,e.lanes=c,e}function fH(e,t,n,i,c){if(n.flags|=Sp,Ml&&zh(e,c),i!==null&&typeof i=="object"&&typeof i.then=="function"){var f=i;dH(n),kn()&&n.mode&ba&&ex();var g=s4(t);if(g!==null){g.flags&=~Vs,u4(g,t,n,e,c),g.mode&ba&&l4(e,f,c),cH(g,e,f);return}else{if(!OP(c)){l4(e,f,c),Dy();return}var S=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");i=S}}else if(kn()&&n.mode&ba){ex();var x=s4(t);if(x!==null){(x.flags&to)===jt&&(x.flags|=Vs),u4(x,t,n,e,c),j1(Kc(i,n));return}}i=Kc(i,n),Xj(i);var R=t;do{switch(R.tag){case b:{var O=i;R.flags|=to;var Q=Dp(c);R.lanes=ua(R.lanes,Q);var X=i4(R,O,Q);a0(R,X);return}case v:var ye=i,Se=R.type,xe=R.stateNode;if((R.flags&Ma)===jt&&(typeof Se.getDerivedStateFromError=="function"||xe!==null&&typeof xe.componentDidCatch=="function"&&!uT(xe))){R.flags|=to;var it=Dp(c);R.lanes=ua(R.lanes,it);var Nt=K0(R,ye,it);a0(R,Nt);return}break}R=R.return}while(R!==null)}function pH(){return null}var Ch=o.ReactCurrentOwner,Yl=!1,X0,xh,J0,Q0,Z0,Xc,ey,hg,Th;X0={},xh={},J0={},Q0={},Z0={},Xc=!1,ey={},hg={},Th={};function ao(e,t,n,i){e===null?t.child=fx(t,null,n,i):t.child=df(t,e.child,n,i)}function hH(e,t,n,i){t.child=df(t,e.child,null,i),t.child=df(t,null,n,i)}function c4(e,t,n,i,c){if(t.type!==t.elementType){var f=n.propTypes;f&&zl(f,i,"prop",Va(n))}var g=n.render,S=t.ref,x,R;pf(t,c),Cp(t);{if(Ch.current=t,bl(!0),x=bf(e,t,g,i,S,c),R=yf(),t.mode&Nr){gn(!0);try{x=bf(e,t,g,i,S,c),R=yf()}finally{gn(!1)}}bl(!1)}return Yd(),e!==null&&!Yl?(kx(e,t,c),au(e,t,c)):(kn()&&R&&I1(t),t.flags|=Vd,ao(e,t,x,c),t.child)}function d4(e,t,n,i,c){if(e===null){var f=n.type;if(xU(f)&&n.compare===null&&n.defaultProps===void 0){var g=f;return g=Rf(f),t.tag=oe,t.type=g,ry(t,f),f4(e,t,g,i,c)}{var S=f.propTypes;if(S&&zl(S,i,"prop",Va(f)),n.defaultProps!==void 0){var x=Va(f)||"Unknown";Th[x]||(u("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",x),Th[x]=!0)}}var R=Hy(n.type,null,i,t,t.mode,c);return R.ref=t.ref,R.return=t,t.child=R,R}{var O=n.type,Q=O.propTypes;Q&&zl(Q,i,"prop",Va(O))}var X=e.child,ye=uy(e,c);if(!ye){var Se=X.memoizedProps,xe=n.compare;if(xe=xe!==null?xe:Wp,xe(Se,i)&&e.ref===t.ref)return au(e,t,c)}t.flags|=Vd;var it=td(X,i);return it.ref=t.ref,it.return=t,t.child=it,it}function f4(e,t,n,i,c){if(t.type!==t.elementType){var f=t.elementType;if(f.$$typeof===at){var g=f,S=g._payload,x=g._init;try{f=x(S)}catch(Q){f=null}var R=f&&f.propTypes;R&&zl(R,i,"prop",Va(f))}}if(e!==null){var O=e.memoizedProps;if(Wp(O,i)&&e.ref===t.ref&&t.type===e.type)if(Yl=!1,t.pendingProps=i=O,uy(e,c))(e.flags&mb)!==jt&&(Yl=!0);else return t.lanes=e.lanes,au(e,t,c)}return ty(e,t,n,i,c)}function p4(e,t,n){var i=t.pendingProps,c=i.children,f=e!==null?e.memoizedState:null;if(i.mode==="hidden"||de)if((t.mode&ba)===Ft){var g={baseLanes:je,cachePool:null,transitions:null};t.memoizedState=g,Eg(t,n)}else if(Ho(n,zo)){var Q={baseLanes:je,cachePool:null,transitions:null};t.memoizedState=Q;var X=f!==null?f.baseLanes:n;Eg(t,X)}else{var S=null,x;if(f!==null){var R=f.baseLanes;x=ua(R,n)}else x=n;t.lanes=t.childLanes=zo;var O={baseLanes:x,cachePool:S,transitions:null};return t.memoizedState=O,t.updateQueue=null,Eg(t,x),null}else{var ye;f!==null?(ye=ua(f.baseLanes,n),t.memoizedState=null):ye=n,Eg(t,ye)}return ao(e,t,c,n),t.child}function mH(e,t,n){var i=t.pendingProps;return ao(e,t,i,n),t.child}function vH(e,t,n){var i=t.pendingProps.children;return ao(e,t,i,n),t.child}function gH(e,t,n){{t.flags|=ka;{var i=t.stateNode;i.effectDuration=0,i.passiveEffectDuration=0}}var c=t.pendingProps,f=c.children;return ao(e,t,f,n),t.child}function h4(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=Iu,t.flags|=vb)}function ty(e,t,n,i,c){if(t.type!==t.elementType){var f=n.propTypes;f&&zl(f,i,"prop",Va(n))}var g;{var S=of(t,n,!0);g=lf(t,S)}var x,R;pf(t,c),Cp(t);{if(Ch.current=t,bl(!0),x=bf(e,t,n,i,g,c),R=yf(),t.mode&Nr){gn(!0);try{x=bf(e,t,n,i,g,c),R=yf()}finally{gn(!1)}}bl(!1)}return Yd(),e!==null&&!Yl?(kx(e,t,c),au(e,t,c)):(kn()&&R&&I1(t),t.flags|=Vd,ao(e,t,x,c),t.child)}function m4(e,t,n,i,c){{switch(zU(t)){case!1:{var f=t.stateNode,g=t.type,S=new g(t.memoizedProps,f.context),x=S.state;f.updater.enqueueSetState(f,x,null);break}case!0:{t.flags|=Ma,t.flags|=to;var R=new Error("Simulated error coming from DevTools"),O=Dp(c);t.lanes=ua(t.lanes,O);var Q=K0(t,Kc(R,t),O);a0(t,Q);break}}if(t.type!==t.elementType){var X=n.propTypes;X&&zl(X,i,"prop",Va(n))}}var ye;gs(n)?(ye=!0,kv(t)):ye=!1,pf(t,c);var Se=t.stateNode,xe;Se===null?(vg(e,t),n4(t,n,i),$0(t,n,i,c),xe=!0):e===null?xe=iH(t,n,i,c):xe=lH(e,t,n,i,c);var it=ay(e,t,n,xe,ye,c);{var Nt=t.stateNode;xe&&Nt.props!==i&&(Xc||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",na(t)||"a component"),Xc=!0)}return it}function ay(e,t,n,i,c,f){h4(e,t);var g=(t.flags&Ma)!==jt;if(!i&&!g)return c&&X3(t,n,!1),au(e,t,f);var S=t.stateNode;Ch.current=t;var x;if(g&&typeof n.getDerivedStateFromError!="function")x=null,Zx();else{Cp(t);{if(bl(!0),x=S.render(),t.mode&Nr){gn(!0);try{S.render()}finally{gn(!1)}}bl(!1)}Yd()}return t.flags|=Vd,e!==null&&g?hH(e,t,x,f):ao(e,t,x,f),t.memoizedState=S.state,c&&X3(t,n,!0),t.child}function v4(e){var t=e.stateNode;t.pendingContext?q3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&q3(e,t.context,!1),r0(e,t.containerInfo)}function _H(e,t,n){if(v4(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var i=t.pendingProps,c=t.memoizedState,f=c.element;bx(e,t),Vv(t,i,null,n);var g=t.memoizedState,S=t.stateNode,x=g.element;if(c.isDehydrated){var R={element:x,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},O=t.updateQueue;if(O.baseState=R,t.memoizedState=R,t.flags&Vs){var Q=Kc(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return g4(e,t,x,n,Q)}else if(x!==f){var X=Kc(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return g4(e,t,x,n,X)}else{Sz(t);var ye=fx(t,null,x,n);t.child=ye;for(var Se=ye;Se;)Se.flags=Se.flags&~qr|Ws,Se=Se.sibling}}else{if(cf(),x===f)return au(e,t,n);ao(e,t,x,n)}return t.child}function g4(e,t,n,i,c){return cf(),j1(c),t.flags|=Vs,ao(e,t,n,i),t.child}function bH(e,t,n){Cx(t),e===null&&H1(t);var i=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,g=c.children,S=S1(i,c);return S?g=null:f!==null&&S1(i,f)&&(t.flags|=yp),h4(e,t),ao(e,t,g,n),t.child}function yH(e,t){return e===null&&H1(t),null}function SH(e,t,n,i){vg(e,t);var c=t.pendingProps,f=n,g=f._payload,S=f._init,x=S(g);t.type=x;var R=t.tag=TU(x),O=Wl(x,c),Q;switch(R){case p:return ry(t,x),t.type=x=Rf(x),Q=ty(null,t,x,O,i),Q;case v:return t.type=x=Oy(x),Q=m4(null,t,x,O,i),Q;case j:return t.type=x=Iy(x),Q=c4(null,t,x,O,i),Q;case M:{if(t.type!==t.elementType){var X=x.propTypes;X&&zl(X,O,"prop",Va(x))}return Q=d4(null,t,x,Wl(x.type,O),i),Q}}var ye="";throw x!==null&&typeof x=="object"&&x.$$typeof===at&&(ye=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+x+". "+("Lazy element type must resolve to a class or function."+ye))}function wH(e,t,n,i,c){vg(e,t),t.tag=v;var f;return gs(n)?(f=!0,kv(t)):f=!1,pf(t,c),n4(t,n,i),$0(t,n,i,c),ay(null,t,n,!0,f,c)}function CH(e,t,n,i){vg(e,t);var c=t.pendingProps,f;{var g=of(t,n,!1);f=lf(t,g)}pf(t,i);var S,x;Cp(t);{if(n.prototype&&typeof n.prototype.render=="function"){var R=Va(n)||"Unknown";X0[R]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",R,R),X0[R]=!0)}t.mode&Nr&&jl.recordLegacyContextWarning(t,null),bl(!0),Ch.current=t,S=bf(null,t,n,c,f,i),x=yf(),bl(!1)}if(Yd(),t.flags|=Vd,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var O=Va(n)||"Unknown";xh[O]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",O,O,O),xh[O]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var Q=Va(n)||"Unknown";xh[Q]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Q,Q,Q),xh[Q]=!0)}t.tag=v,t.memoizedState=null,t.updateQueue=null;var X=!1;return gs(n)?(X=!0,kv(t)):X=!1,t.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,t0(t),r4(t,S),$0(t,n,c,i),ay(null,t,n,!0,X,i)}else{if(t.tag=p,t.mode&Nr){gn(!0);try{S=bf(null,t,n,c,f,i),x=yf()}finally{gn(!1)}}return kn()&&x&&I1(t),ao(null,t,S,i),ry(t,n),t.child}}function ry(e,t){{if(t&&t.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",i=Nu();i&&(n+=`
101
101
 
102
- Check the render method of \``+i+"`.");var c=i||"",f=e._debugSource;f&&(c=f.fileName+":"+f.lineNumber),Z0[c]||(Z0[c]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var g=Va(t)||"Unknown";Th[g]||(u("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",g),Th[g]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var S=Va(t)||"Unknown";Q0[S]||(u("%s: Function components do not support getDerivedStateFromProps.",S),Q0[S]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var x=Va(t)||"Unknown";J0[x]||(u("%s: Function components do not support contextType.",x),J0[x]=!0)}}}var ny={dehydrated:null,treeContext:null,retryLane:_n};function oy(e){return{baseLanes:e,cachePool:pH(),transitions:null}}function xH(e,t){var n=null;return{baseLanes:ua(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function TH(e,t,n,i){if(t!==null){var c=t.memoizedState;if(c===null)return!1}return i0(e,hh)}function kH(e,t){return Km(e.childLanes,t)}function _T(e,t,n){var i=t.pendingProps;HU(t)&&(t.flags|=Ma);var c=Ul.current,f=!1,g=(t.flags&Ma)!==jt;if(g||TH(c,e)?(f=!0,t.flags&=~Ma):(e===null||e.memoizedState!==null)&&(c=Wz(c,Tx)),c=mf(c),Ku(t,c),e===null){H1(t);var S=t.memoizedState;if(S!==null){var x=S.dehydrated;if(x!==null)return LH(t,x)}var R=i.children,O=i.fallback;if(f){var Q=EH(t,R,O,n),X=t.child;return X.memoizedState=oy(n),t.memoizedState=ny,Q}else return iy(t,R)}else{var ye=e.memoizedState;if(ye!==null){var Se=ye.dehydrated;if(Se!==null)return BH(e,t,g,i,Se,ye,n)}if(f){var xe=i.fallback,it=i.children,Nt=DH(e,t,it,xe,n),kt=t.child,fa=e.child.memoizedState;return kt.memoizedState=fa===null?oy(n):xH(fa,n),kt.childLanes=kH(e,n),t.memoizedState=ny,Nt}else{var pa=i.children,se=RH(e,t,pa,n);return t.memoizedState=null,se}}}function iy(e,t,n){var i=e.mode,c={mode:"visible",children:t},f=ly(c,i);return f.return=e,e.child=f,f}function EH(e,t,n,i){var c=e.mode,f=e.child,g={mode:"hidden",children:t},S,x;return(c&ba)===Ft&&f!==null?(S=f,S.childLanes=je,S.pendingProps=g,e.mode&Qa&&(S.actualDuration=0,S.actualStartTime=-1,S.selfBaseDuration=0,S.treeBaseDuration=0),x=rc(n,c,i,null)):(S=ly(g,c),x=rc(n,c,i,null)),S.return=e,x.return=e,S.sibling=x,e.child=S,x}function ly(e,t,n){return y4(e,t,je,null)}function bT(e,t){return td(e,t)}function RH(e,t,n,i){var c=e.child,f=c.sibling,g=bT(c,{mode:"visible",children:n});if((t.mode&ba)===Ft&&(g.lanes=i),g.return=t,g.sibling=null,f!==null){var S=t.deletions;S===null?(t.deletions=[f],t.flags|=Ec):S.push(f)}return t.child=g,g}function DH(e,t,n,i,c){var f=t.mode,g=e.child,S=g.sibling,x={mode:"hidden",children:n},R;if((f&ba)===Ft&&t.child!==g){var O=t.child;R=O,R.childLanes=je,R.pendingProps=x,t.mode&Qa&&(R.actualDuration=0,R.actualStartTime=-1,R.selfBaseDuration=g.selfBaseDuration,R.treeBaseDuration=g.treeBaseDuration),t.deletions=null}else R=bT(g,x),R.subtreeFlags=g.subtreeFlags&$s;var Q;return S!==null?Q=td(S,i):(Q=rc(i,f,c,null),Q.flags|=qr),Q.return=t,R.return=t,R.sibling=Q,t.child=R,Q}function mg(e,t,n,i){i!==null&&j1(i),df(t,e.child,null,n);var c=t.pendingProps,f=c.children,g=iy(t,f);return g.flags|=qr,t.memoizedState=null,g}function AH(e,t,n,i,c){var f=t.mode,g={mode:"visible",children:n},S=ly(g,f),x=rc(i,f,c,null);return x.flags|=qr,S.return=t,x.return=t,S.sibling=x,t.child=S,(t.mode&ba)!==Ft&&df(t,e.child,null,c),x}function LH(e,t,n){return(e.mode&ba)===Ft?(u("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Jt):T1(t)?e.lanes=Oc:e.lanes=zo,null}function BH(e,t,n,i,c,f,g){if(n)if(t.flags&Vs){t.flags&=~Vs;var se=G0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return mg(e,t,g,se)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ma,null;var De=i.children,ue=i.fallback,qe=AH(e,t,De,ue,g),mt=t.child;return mt.memoizedState=oy(g),t.memoizedState=ny,qe}else{if(bz(),(t.mode&ba)===Ft)return mg(e,t,g,null);if(T1(c)){var S,x,R;{var O=P9(c);S=O.digest,x=O.message,R=O.stack}var Q;x?Q=new Error(x):Q=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var X=G0(Q,S,R);return mg(e,t,g,X)}var ye=Ho(g,e.childLanes);if(Yl||ye){var Se=kg();if(Se!==null){var xe=UP(Se,g);if(xe!==_n&&xe!==f.retryLane){f.retryLane=xe;var it=gr;ko(e,xe),cn(Se,e,xe,it)}}Dy();var Nt=G0(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return mg(e,t,g,Nt)}else if(U3(c)){t.flags|=Ma,t.child=e.child;var kt=sU.bind(null,e);return M9(c,kt),null}else{wz(t,c,f.treeContext);var fa=i.children,pa=iy(t,fa);return pa.flags|=Ws,pa}}}function yT(e,t,n){e.lanes=ua(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=ua(i.lanes,t)),J1(e.return,t,n)}function NH(e,t,n){for(var i=t;i!==null;){if(i.tag===K){var c=i.memoizedState;c!==null&&yT(i,n,e)}else if(i.tag===he)yT(i,n,e);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)return;for(;i.sibling===null;){if(i.return===null||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function OH(e){for(var t=e,n=null;t!==null;){var i=t.alternate;i!==null&&Gv(i)===null&&(n=t),t=t.sibling}return n}function IH(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!ey[e])if(ey[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function PH(e,t){e!==void 0&&!hg[e]&&(e!=="collapsed"&&e!=="hidden"?(hg[e]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(hg[e]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ST(e,t){{var n=tn(e),i=!n&&typeof $r(e)=="function";if(n||i){var c=n?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",c,t,c),!1}}return!0}function MH(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(tn(e)){for(var n=0;n<e.length;n++)if(!ST(e[n],n))return}else{var i=$r(e);if(typeof i=="function"){var c=i.call(e);if(c)for(var f=c.next(),g=0;!f.done;f=c.next()){if(!ST(f.value,g))return;g++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function sy(e,t,n,i,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=c)}function wT(e,t,n){var i=t.pendingProps,c=i.revealOrder,f=i.tail,g=i.children;IH(c),PH(f,c),MH(g,c),ao(e,t,g,n);var S=Ul.current,x=i0(S,hh);if(x)S=l0(S,hh),t.flags|=Ma;else{var R=e!==null&&(e.flags&Ma)!==jt;R&&NH(t,t.child,n),S=mf(S)}if(Ku(t,S),(t.mode&ba)===Ft)t.memoizedState=null;else switch(c){case"forwards":{var O=OH(t.child),Q;O===null?(Q=t.child,t.child=null):(Q=O.sibling,O.sibling=null),sy(t,!1,Q,O,f);break}case"backwards":{var X=null,ye=t.child;for(t.child=null;ye!==null;){var Se=ye.alternate;if(Se!==null&&Gv(Se)===null){t.child=ye;break}var xe=ye.sibling;ye.sibling=X,X=ye,ye=xe}sy(t,!0,X,null,f);break}case"together":{sy(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function FH(e,t,n){r0(t,t.stateNode.containerInfo);var i=t.pendingProps;return e===null?t.child=df(t,null,i,n):ao(e,t,i,n),t.child}var CT=!1;function zH(e,t,n){var i=t.type,c=i._context,f=t.pendingProps,g=t.memoizedProps,S=f.value;{"value"in f||CT||(CT=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var x=t.type.propTypes;x&&zl(x,f,"prop","Context.Provider")}if(mx(t,c,S),g!==null){var R=g.value;if(Vo(R,S)){if(g.children===f.children&&!xv())return au(e,t,n)}else Iz(t,c,n)}var O=f.children;return ao(e,t,O,n),t.child}var xT=!1;function HH(e,t,n){var i=t.type;i._context===void 0?i!==i.Consumer&&(xT||(xT=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):i=i._context;var c=t.pendingProps,f=c.children;typeof f!="function"&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),pf(t,n);var g=Kr(i);Cp(t);var S;return Ch.current=t,bl(!0),S=f(g),bl(!1),Yd(),t.flags|=Vd,ao(e,t,S,n),t.child}function kh(){Yl=!0}function vg(e,t){(t.mode&ba)===Ft&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=qr)}function au(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Zx(),Fh(t.lanes),Ho(n,t.childLanes)?(Nz(e,t),t.child):null}function jH(e,t,n){{var i=t.return;if(i===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===i.child)i.child=n;else{var c=i.child;if(c===null)throw new Error("Expected parent to have a child.");for(;c.sibling!==t;)if(c=c.sibling,c===null)throw new Error("Expected to find the previous sibling.");c.sibling=n}var f=i.deletions;return f===null?(i.deletions=[e],i.flags|=Ec):f.push(e),n.flags|=qr,n}}function uy(e,t){var n=e.lanes;return!!Ho(n,t)}function UH(e,t,n){switch(t.tag){case b:vT(t);var i=t.stateNode;cf();break;case w:Cx(t);break;case v:{var c=t.type;gs(c)&&kv(t);break}case C:r0(t,t.stateNode.containerInfo);break;case F:{var f=t.memoizedProps.value,g=t.type._context;mx(t,g,f);break}case U:{var S=Ho(n,t.childLanes);S&&(t.flags|=ka);{var x=t.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}}break;case K:{var R=t.memoizedState;if(R!==null){if(R.dehydrated!==null)return Ku(t,mf(Ul.current)),t.flags|=Ma,null;var O=t.child,Q=O.childLanes;if(Ho(n,Q))return _T(e,t,n);Ku(t,mf(Ul.current));var X=au(e,t,n);return X!==null?X.sibling:null}else Ku(t,mf(Ul.current));break}case he:{var ye=(e.flags&Ma)!==jt,Se=Ho(n,t.childLanes);if(ye){if(Se)return wT(e,t,n);t.flags|=Ma}var xe=t.memoizedState;if(xe!==null&&(xe.rendering=null,xe.tail=null,xe.lastEffect=null),Ku(t,Ul.current),Se)break;return null}case P:case ee:return t.lanes=je,pT(e,t,n)}return au(e,t,n)}function TT(e,t,n){if(t._debugNeedsRemount&&e!==null)return jH(e,t,Hy(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var i=e.memoizedProps,c=t.pendingProps;if(i!==c||xv()||t.type!==e.type)Yl=!0;else{var f=uy(e,n);if(!f&&(t.flags&Ma)===jt)return Yl=!1,UH(e,t,n);(e.flags&mb)!==jt?Yl=!0:Yl=!1}}else if(Yl=!1,kn()&&pz(t)){var g=t.index,S=hz();Z3(t,S,g)}switch(t.lanes=je,t.tag){case y:return CH(e,t,t.type,n);case ke:{var x=t.elementType;return SH(e,t,x,n)}case p:{var R=t.type,O=t.pendingProps,Q=t.elementType===R?O:Wl(R,O);return ty(e,t,R,Q,n)}case v:{var X=t.type,ye=t.pendingProps,Se=t.elementType===X?ye:Wl(X,ye);return mT(e,t,X,Se,n)}case b:return _H(e,t,n);case w:return bH(e,t,n);case T:return yH(e,t);case K:return _T(e,t,n);case C:return FH(e,t,n);case j:{var xe=t.type,it=t.pendingProps,Nt=t.elementType===xe?it:Wl(xe,it);return cT(e,t,xe,Nt,n)}case L:return mH(e,t,n);case A:return vH(e,t,n);case U:return gH(e,t,n);case F:return zH(e,t,n);case $:return HH(e,t,n);case M:{var kt=t.type,fa=t.pendingProps,pa=Wl(kt,fa);if(t.type!==t.elementType){var se=kt.propTypes;se&&zl(se,pa,"prop",Va(kt))}return pa=Wl(kt.type,pa),dT(e,t,kt,pa,n)}case oe:return fT(e,t,t.type,t.pendingProps,n);case J:{var De=t.type,ue=t.pendingProps,qe=t.elementType===De?ue:Wl(De,ue);return wH(e,t,De,qe,n)}case he:return wT(e,t,n);case ce:break;case P:return pT(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Sf(e){e.flags|=ka}function kT(e){e.flags|=Iu,e.flags|=vb}var ET,cy,RT,DT;ET=function(e,t,n,i){for(var c=t.child;c!==null;){if(c.tag===w||c.tag===T)c9(e,c.stateNode);else if(c.tag!==C){if(c.child!==null){c.child.return=c,c=c.child;continue}}if(c===t)return;for(;c.sibling===null;){if(c.return===null||c.return===t)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},cy=function(e,t){},RT=function(e,t,n,i,c){var f=e.memoizedProps;if(f!==i){var g=t.stateNode,S=n0(),x=f9(g,n,f,i,c,S);t.updateQueue=x,x&&Sf(t)}},DT=function(e,t,n,i){n!==i&&Sf(t)};function Eh(e,t){if(!kn())switch(e.tailMode){case"hidden":{for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break}case"collapsed":{for(var c=e.tail,f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:f.sibling=null;break}}}function Rn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=je,i=jt;if(t){if((e.mode&Qa)!==Ft){for(var x=e.selfBaseDuration,R=e.child;R!==null;)n=ua(n,ua(R.lanes,R.childLanes)),i|=R.subtreeFlags&$s,i|=R.flags&$s,x+=R.treeBaseDuration,R=R.sibling;e.treeBaseDuration=x}else for(var O=e.child;O!==null;)n=ua(n,ua(O.lanes,O.childLanes)),i|=O.subtreeFlags&$s,i|=O.flags&$s,O.return=e,O=O.sibling;e.subtreeFlags|=i}else{if((e.mode&Qa)!==Ft){for(var c=e.actualDuration,f=e.selfBaseDuration,g=e.child;g!==null;)n=ua(n,ua(g.lanes,g.childLanes)),i|=g.subtreeFlags,i|=g.flags,c+=g.actualDuration,f+=g.treeBaseDuration,g=g.sibling;e.actualDuration=c,e.treeBaseDuration=f}else for(var S=e.child;S!==null;)n=ua(n,ua(S.lanes,S.childLanes)),i|=S.subtreeFlags,i|=S.flags,S.return=e,S=S.sibling;e.subtreeFlags|=i}return e.childLanes=n,t}function VH(e,t,n){if(Ez()&&(t.mode&ba)!==Ft&&(t.flags&Ma)===jt)return ix(t),cf(),t.flags|=Vs|Sp|to,!1;var i=Lv(t);if(n!==null&&n.dehydrated!==null)if(e===null){if(!i)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Tz(t),Rn(t),(t.mode&Qa)!==Ft){var c=n!==null;if(c){var f=t.child;f!==null&&(t.treeBaseDuration-=f.treeBaseDuration)}}return!1}else{if(cf(),(t.flags&Ma)===jt&&(t.memoizedState=null),t.flags|=ka,Rn(t),(t.mode&Qa)!==Ft){var g=n!==null;if(g){var S=t.child;S!==null&&(t.treeBaseDuration-=S.treeBaseDuration)}}return!1}else return lx(),!0}function AT(e,t,n){var i=t.pendingProps;switch(P1(t),t.tag){case y:case ke:case oe:case p:case j:case L:case A:case U:case $:case M:return Rn(t),null;case v:{var c=t.type;return gs(c)&&Tv(t),Rn(t),null}case b:{var f=t.stateNode;if(hf(t),B1(t),u0(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),e===null||e.child===null){var g=Lv(t);if(g)Sf(t);else if(e!==null){var S=e.memoizedState;(!S.isDehydrated||(t.flags&Vs)!==jt)&&(t.flags|=Rc,lx())}}return cy(e,t),Rn(t),null}case w:{o0(t);var x=wx(),R=t.type;if(e!==null&&t.stateNode!=null)RT(e,t,R,i,x),e.ref!==t.ref&&kT(t);else{if(!i){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Rn(t),null}var O=n0(),Q=Lv(t);if(Q)Cz(t,x,O)&&Sf(t);else{var X=u9(R,i,x,O,t);ET(X,t,!1,!1),t.stateNode=X,d9(X,R,i,x)&&Sf(t)}t.ref!==null&&kT(t)}return Rn(t),null}case T:{var ye=i;if(e&&t.stateNode!=null){var Se=e.memoizedProps;DT(e,t,Se,ye)}else{if(typeof ye!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var xe=wx(),it=n0(),Nt=Lv(t);Nt?xz(t)&&Sf(t):t.stateNode=p9(ye,xe,it,t)}return Rn(t),null}case K:{vf(t);var kt=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var fa=VH(e,t,kt);if(!fa)return t.flags&to?t:null}if((t.flags&Ma)!==jt)return t.lanes=n,(t.mode&Qa)!==Ft&&O0(t),t;var pa=kt!==null,se=e!==null&&e.memoizedState!==null;if(pa!==se&&pa){var De=t.child;if(De.flags|=Dc,(t.mode&ba)!==Ft){var ue=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!Re);ue||i0(Ul.current,Tx)?Kj():Dy()}}var qe=t.updateQueue;if(qe!==null&&(t.flags|=ka),Rn(t),(t.mode&Qa)!==Ft&&pa){var mt=t.child;mt!==null&&(t.treeBaseDuration-=mt.treeBaseDuration)}return null}case C:return hf(t),cy(e,t),e===null&&iz(t.stateNode.containerInfo),Rn(t),null;case F:var st=t.type._context;return X1(st,t),Rn(t),null;case J:{var Vt=t.type;return gs(Vt)&&Tv(t),Rn(t),null}case he:{vf(t);var Zt=t.memoizedState;if(Zt===null)return Rn(t),null;var er=(t.flags&Ma)!==jt,Da=Zt.rendering;if(Da===null)if(er)Eh(Zt,!1);else{var Ur=Jj()&&(e===null||(e.flags&Ma)===jt);if(!Ur)for(var Aa=t.child;Aa!==null;){var Or=Gv(Aa);if(Or!==null){er=!0,t.flags|=Ma,Eh(Zt,!1);var Wn=Or.updateQueue;return Wn!==null&&(t.updateQueue=Wn,t.flags|=ka),t.subtreeFlags=jt,Oz(t,n),Ku(t,l0(Ul.current,hh)),t.child}Aa=Aa.sibling}Zt.tail!==null&&vn()>QT()&&(t.flags|=Ma,er=!0,Eh(Zt,!1),t.lanes=DC)}else{if(!er){var Nn=Gv(Da);if(Nn!==null){t.flags|=Ma,er=!0;var $o=Nn.updateQueue;if($o!==null&&(t.updateQueue=$o,t.flags|=ka),Eh(Zt,!0),Zt.tail===null&&Zt.tailMode==="hidden"&&!Da.alternate&&!kn())return Rn(t),null}else vn()*2-Zt.renderingStartTime>QT()&&n!==zo&&(t.flags|=Ma,er=!0,Eh(Zt,!1),t.lanes=DC)}if(Zt.isBackwards)Da.sibling=t.child,t.child=Da;else{var oo=Zt.last;oo!==null?oo.sibling=Da:t.child=Da,Zt.last=Da}}if(Zt.tail!==null){var io=Zt.tail;Zt.rendering=io,Zt.tail=io.sibling,Zt.renderingStartTime=vn(),io.sibling=null;var Yn=Ul.current;return er?Yn=l0(Yn,hh):Yn=mf(Yn),Ku(t,Yn),io}return Rn(t),null}case ce:break;case P:case ee:{Ry(t);var lu=t.memoizedState,Df=lu!==null;if(e!==null){var Vh=e.memoizedState,Ts=Vh!==null;Ts!==Df&&!de&&(t.flags|=Dc)}return!Df||(t.mode&ba)===Ft?Rn(t):Ho(xs,zo)&&(Rn(t),t.subtreeFlags&(qr|ka)&&(t.flags|=Dc)),null}case me:return null;case z:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function WH(e,t,n){switch(P1(t),t.tag){case v:{var i=t.type;gs(i)&&Tv(t);var c=t.flags;return c&to?(t.flags=c&~to|Ma,(t.mode&Qa)!==Ft&&O0(t),t):null}case b:{var f=t.stateNode;hf(t),B1(t),u0();var g=t.flags;return(g&to)!==jt&&(g&Ma)===jt?(t.flags=g&~to|Ma,t):null}case w:return o0(t),null;case K:{vf(t);var S=t.memoizedState;if(S!==null&&S.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cf()}var x=t.flags;return x&to?(t.flags=x&~to|Ma,(t.mode&Qa)!==Ft&&O0(t),t):null}case he:return vf(t),null;case C:return hf(t),null;case F:var R=t.type._context;return X1(R,t),null;case P:case ee:return Ry(t),null;case me:return null;default:return null}}function LT(e,t,n){switch(P1(t),t.tag){case v:{var i=t.type.childContextTypes;i!=null&&Tv(t);break}case b:{var c=t.stateNode;hf(t),B1(t),u0();break}case w:{o0(t);break}case C:hf(t);break;case K:vf(t);break;case he:vf(t);break;case F:var f=t.type._context;X1(f,t);break;case P:case ee:Ry(t);break}}var BT=null;BT=new Set;var gg=!1,Dn=!1,YH=typeof WeakSet=="function"?WeakSet:Set,Ct=null,wf=null,Cf=null;function $H(e){fb(null,function(){throw e}),pb()}var GH=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Qa)try{ws(),t.componentWillUnmount()}finally{Ss(e)}else t.componentWillUnmount()};function NT(e,t){try{Qu(rn,e)}catch(n){fr(e,t,n)}}function dy(e,t,n){try{GH(e,n)}catch(i){fr(e,t,i)}}function qH(e,t,n){try{n.componentDidMount()}catch(i){fr(e,t,i)}}function OT(e,t){try{MT(e)}catch(n){fr(e,t,n)}}function xf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var i;try{if(pt&&Kt&&e.mode&Qa)try{ws(),i=n(null)}finally{Ss(e)}else i=n(null)}catch(c){fr(e,t,c)}typeof i=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",na(e))}else n.current=null}function _g(e,t,n){try{n()}catch(i){fr(e,t,i)}}var IT=null,PT=!1;function KH(e,t){IT=l9(e.containerInfo),Ct=t,XH();var n=PT;return PT=!1,IT=null,n}function XH(){for(;Ct!==null;){var e=Ct,t=e.child;(e.subtreeFlags&_b)!==jt&&t!==null?(t.return=e,Ct=t):JH()}}function JH(){for(;Ct!==null;){var e=Ct;xr(e);try{QH(e)}catch(n){fr(e,e.return,n)}mn();var t=e.sibling;if(t!==null){t.return=e.return,Ct=t;return}Ct=e.return}}function QH(e){var t=e.alternate,n=e.flags;if((n&Rc)!==jt){switch(xr(e),e.tag){case p:case j:case oe:break;case v:{if(t!==null){var i=t.memoizedProps,c=t.memoizedState,f=e.stateNode;e.type===e.elementType&&!Xc&&(f.props!==e.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",na(e)||"instance"),f.state!==e.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",na(e)||"instance"));var g=f.getSnapshotBeforeUpdate(e.elementType===e.type?i:Wl(e.type,i),c);{var S=BT;g===void 0&&!S.has(e.type)&&(S.add(e.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",na(e)))}f.__reactInternalSnapshotBeforeUpdate=g}break}case b:{{var x=e.stateNode;B9(x.containerInfo)}break}case w:case T:case C:case J:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}mn()}}function $l(e,t,n){var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next,g=f;do{if((g.tag&e)===e){var S=g.destroy;g.destroy=void 0,S!==void 0&&((e&En)!==Eo?pP(t):(e&rn)!==Eo&&xC(t),(e&_s)!==Eo&&Hh(!0),_g(t,n,S),(e&_s)!==Eo&&Hh(!1),(e&En)!==Eo?hP():(e&rn)!==Eo&&TC())}g=g.next}while(g!==f)}}function Qu(e,t){var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next,f=c;do{if((f.tag&e)===e){(e&En)!==Eo?dP(t):(e&rn)!==Eo&&mP(t);var g=f.create;(e&_s)!==Eo&&Hh(!0),f.destroy=g(),(e&_s)!==Eo&&Hh(!1),(e&En)!==Eo?fP():(e&rn)!==Eo&&vP();{var S=f.destroy;if(S!==void 0&&typeof S!="function"){var x=void 0;(f.tag&rn)!==jt?x="useLayoutEffect":(f.tag&_s)!==jt?x="useInsertionEffect":x="useEffect";var R=void 0;S===null?R=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof S.then=="function"?R=`
102
+ Check the render method of \``+i+"`.");var c=i||"",f=e._debugSource;f&&(c=f.fileName+":"+f.lineNumber),Z0[c]||(Z0[c]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var g=Va(t)||"Unknown";Th[g]||(u("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",g),Th[g]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var S=Va(t)||"Unknown";Q0[S]||(u("%s: Function components do not support getDerivedStateFromProps.",S),Q0[S]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var x=Va(t)||"Unknown";J0[x]||(u("%s: Function components do not support contextType.",x),J0[x]=!0)}}}var ny={dehydrated:null,treeContext:null,retryLane:_n};function oy(e){return{baseLanes:e,cachePool:pH(),transitions:null}}function xH(e,t){var n=null;return{baseLanes:ua(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function TH(e,t,n,i){if(t!==null){var c=t.memoizedState;if(c===null)return!1}return i0(e,hh)}function kH(e,t){return Km(e.childLanes,t)}function _4(e,t,n){var i=t.pendingProps;HU(t)&&(t.flags|=Ma);var c=Ul.current,f=!1,g=(t.flags&Ma)!==jt;if(g||TH(c,e)?(f=!0,t.flags&=~Ma):(e===null||e.memoizedState!==null)&&(c=Wz(c,Tx)),c=mf(c),Ku(t,c),e===null){H1(t);var S=t.memoizedState;if(S!==null){var x=S.dehydrated;if(x!==null)return LH(t,x)}var R=i.children,O=i.fallback;if(f){var Q=EH(t,R,O,n),X=t.child;return X.memoizedState=oy(n),t.memoizedState=ny,Q}else return iy(t,R)}else{var ye=e.memoizedState;if(ye!==null){var Se=ye.dehydrated;if(Se!==null)return BH(e,t,g,i,Se,ye,n)}if(f){var xe=i.fallback,it=i.children,Nt=DH(e,t,it,xe,n),kt=t.child,fa=e.child.memoizedState;return kt.memoizedState=fa===null?oy(n):xH(fa,n),kt.childLanes=kH(e,n),t.memoizedState=ny,Nt}else{var pa=i.children,se=RH(e,t,pa,n);return t.memoizedState=null,se}}}function iy(e,t,n){var i=e.mode,c={mode:"visible",children:t},f=ly(c,i);return f.return=e,e.child=f,f}function EH(e,t,n,i){var c=e.mode,f=e.child,g={mode:"hidden",children:t},S,x;return(c&ba)===Ft&&f!==null?(S=f,S.childLanes=je,S.pendingProps=g,e.mode&Qa&&(S.actualDuration=0,S.actualStartTime=-1,S.selfBaseDuration=0,S.treeBaseDuration=0),x=rc(n,c,i,null)):(S=ly(g,c),x=rc(n,c,i,null)),S.return=e,x.return=e,S.sibling=x,e.child=S,x}function ly(e,t,n){return yT(e,t,je,null)}function b4(e,t){return td(e,t)}function RH(e,t,n,i){var c=e.child,f=c.sibling,g=b4(c,{mode:"visible",children:n});if((t.mode&ba)===Ft&&(g.lanes=i),g.return=t,g.sibling=null,f!==null){var S=t.deletions;S===null?(t.deletions=[f],t.flags|=Ec):S.push(f)}return t.child=g,g}function DH(e,t,n,i,c){var f=t.mode,g=e.child,S=g.sibling,x={mode:"hidden",children:n},R;if((f&ba)===Ft&&t.child!==g){var O=t.child;R=O,R.childLanes=je,R.pendingProps=x,t.mode&Qa&&(R.actualDuration=0,R.actualStartTime=-1,R.selfBaseDuration=g.selfBaseDuration,R.treeBaseDuration=g.treeBaseDuration),t.deletions=null}else R=b4(g,x),R.subtreeFlags=g.subtreeFlags&$s;var Q;return S!==null?Q=td(S,i):(Q=rc(i,f,c,null),Q.flags|=qr),Q.return=t,R.return=t,R.sibling=Q,t.child=R,Q}function mg(e,t,n,i){i!==null&&j1(i),df(t,e.child,null,n);var c=t.pendingProps,f=c.children,g=iy(t,f);return g.flags|=qr,t.memoizedState=null,g}function AH(e,t,n,i,c){var f=t.mode,g={mode:"visible",children:n},S=ly(g,f),x=rc(i,f,c,null);return x.flags|=qr,S.return=t,x.return=t,S.sibling=x,t.child=S,(t.mode&ba)!==Ft&&df(t,e.child,null,c),x}function LH(e,t,n){return(e.mode&ba)===Ft?(u("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Jt):T1(t)?e.lanes=Oc:e.lanes=zo,null}function BH(e,t,n,i,c,f,g){if(n)if(t.flags&Vs){t.flags&=~Vs;var se=G0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return mg(e,t,g,se)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ma,null;var De=i.children,ue=i.fallback,qe=AH(e,t,De,ue,g),mt=t.child;return mt.memoizedState=oy(g),t.memoizedState=ny,qe}else{if(bz(),(t.mode&ba)===Ft)return mg(e,t,g,null);if(T1(c)){var S,x,R;{var O=P9(c);S=O.digest,x=O.message,R=O.stack}var Q;x?Q=new Error(x):Q=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var X=G0(Q,S,R);return mg(e,t,g,X)}var ye=Ho(g,e.childLanes);if(Yl||ye){var Se=kg();if(Se!==null){var xe=UP(Se,g);if(xe!==_n&&xe!==f.retryLane){f.retryLane=xe;var it=gr;ko(e,xe),cn(Se,e,xe,it)}}Dy();var Nt=G0(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return mg(e,t,g,Nt)}else if(U3(c)){t.flags|=Ma,t.child=e.child;var kt=sU.bind(null,e);return M9(c,kt),null}else{wz(t,c,f.treeContext);var fa=i.children,pa=iy(t,fa);return pa.flags|=Ws,pa}}}function y4(e,t,n){e.lanes=ua(e.lanes,t);var i=e.alternate;i!==null&&(i.lanes=ua(i.lanes,t)),J1(e.return,t,n)}function NH(e,t,n){for(var i=t;i!==null;){if(i.tag===K){var c=i.memoizedState;c!==null&&y4(i,n,e)}else if(i.tag===he)y4(i,n,e);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)return;for(;i.sibling===null;){if(i.return===null||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function OH(e){for(var t=e,n=null;t!==null;){var i=t.alternate;i!==null&&Gv(i)===null&&(n=t),t=t.sibling}return n}function IH(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!ey[e])if(ey[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function PH(e,t){e!==void 0&&!hg[e]&&(e!=="collapsed"&&e!=="hidden"?(hg[e]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(hg[e]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function S4(e,t){{var n=tn(e),i=!n&&typeof $r(e)=="function";if(n||i){var c=n?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",c,t,c),!1}}return!0}function MH(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(tn(e)){for(var n=0;n<e.length;n++)if(!S4(e[n],n))return}else{var i=$r(e);if(typeof i=="function"){var c=i.call(e);if(c)for(var f=c.next(),g=0;!f.done;f=c.next()){if(!S4(f.value,g))return;g++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function sy(e,t,n,i,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=c)}function w4(e,t,n){var i=t.pendingProps,c=i.revealOrder,f=i.tail,g=i.children;IH(c),PH(f,c),MH(g,c),ao(e,t,g,n);var S=Ul.current,x=i0(S,hh);if(x)S=l0(S,hh),t.flags|=Ma;else{var R=e!==null&&(e.flags&Ma)!==jt;R&&NH(t,t.child,n),S=mf(S)}if(Ku(t,S),(t.mode&ba)===Ft)t.memoizedState=null;else switch(c){case"forwards":{var O=OH(t.child),Q;O===null?(Q=t.child,t.child=null):(Q=O.sibling,O.sibling=null),sy(t,!1,Q,O,f);break}case"backwards":{var X=null,ye=t.child;for(t.child=null;ye!==null;){var Se=ye.alternate;if(Se!==null&&Gv(Se)===null){t.child=ye;break}var xe=ye.sibling;ye.sibling=X,X=ye,ye=xe}sy(t,!0,X,null,f);break}case"together":{sy(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function FH(e,t,n){r0(t,t.stateNode.containerInfo);var i=t.pendingProps;return e===null?t.child=df(t,null,i,n):ao(e,t,i,n),t.child}var C4=!1;function zH(e,t,n){var i=t.type,c=i._context,f=t.pendingProps,g=t.memoizedProps,S=f.value;{"value"in f||C4||(C4=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var x=t.type.propTypes;x&&zl(x,f,"prop","Context.Provider")}if(mx(t,c,S),g!==null){var R=g.value;if(Vo(R,S)){if(g.children===f.children&&!xv())return au(e,t,n)}else Iz(t,c,n)}var O=f.children;return ao(e,t,O,n),t.child}var x4=!1;function HH(e,t,n){var i=t.type;i._context===void 0?i!==i.Consumer&&(x4||(x4=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):i=i._context;var c=t.pendingProps,f=c.children;typeof f!="function"&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),pf(t,n);var g=Kr(i);Cp(t);var S;return Ch.current=t,bl(!0),S=f(g),bl(!1),Yd(),t.flags|=Vd,ao(e,t,S,n),t.child}function kh(){Yl=!0}function vg(e,t){(t.mode&ba)===Ft&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=qr)}function au(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Zx(),Fh(t.lanes),Ho(n,t.childLanes)?(Nz(e,t),t.child):null}function jH(e,t,n){{var i=t.return;if(i===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===i.child)i.child=n;else{var c=i.child;if(c===null)throw new Error("Expected parent to have a child.");for(;c.sibling!==t;)if(c=c.sibling,c===null)throw new Error("Expected to find the previous sibling.");c.sibling=n}var f=i.deletions;return f===null?(i.deletions=[e],i.flags|=Ec):f.push(e),n.flags|=qr,n}}function uy(e,t){var n=e.lanes;return!!Ho(n,t)}function UH(e,t,n){switch(t.tag){case b:v4(t);var i=t.stateNode;cf();break;case w:Cx(t);break;case v:{var c=t.type;gs(c)&&kv(t);break}case C:r0(t,t.stateNode.containerInfo);break;case F:{var f=t.memoizedProps.value,g=t.type._context;mx(t,g,f);break}case U:{var S=Ho(n,t.childLanes);S&&(t.flags|=ka);{var x=t.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}}break;case K:{var R=t.memoizedState;if(R!==null){if(R.dehydrated!==null)return Ku(t,mf(Ul.current)),t.flags|=Ma,null;var O=t.child,Q=O.childLanes;if(Ho(n,Q))return _4(e,t,n);Ku(t,mf(Ul.current));var X=au(e,t,n);return X!==null?X.sibling:null}else Ku(t,mf(Ul.current));break}case he:{var ye=(e.flags&Ma)!==jt,Se=Ho(n,t.childLanes);if(ye){if(Se)return w4(e,t,n);t.flags|=Ma}var xe=t.memoizedState;if(xe!==null&&(xe.rendering=null,xe.tail=null,xe.lastEffect=null),Ku(t,Ul.current),Se)break;return null}case P:case ee:return t.lanes=je,p4(e,t,n)}return au(e,t,n)}function T4(e,t,n){if(t._debugNeedsRemount&&e!==null)return jH(e,t,Hy(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var i=e.memoizedProps,c=t.pendingProps;if(i!==c||xv()||t.type!==e.type)Yl=!0;else{var f=uy(e,n);if(!f&&(t.flags&Ma)===jt)return Yl=!1,UH(e,t,n);(e.flags&mb)!==jt?Yl=!0:Yl=!1}}else if(Yl=!1,kn()&&pz(t)){var g=t.index,S=hz();Z3(t,S,g)}switch(t.lanes=je,t.tag){case y:return CH(e,t,t.type,n);case ke:{var x=t.elementType;return SH(e,t,x,n)}case p:{var R=t.type,O=t.pendingProps,Q=t.elementType===R?O:Wl(R,O);return ty(e,t,R,Q,n)}case v:{var X=t.type,ye=t.pendingProps,Se=t.elementType===X?ye:Wl(X,ye);return m4(e,t,X,Se,n)}case b:return _H(e,t,n);case w:return bH(e,t,n);case T:return yH(e,t);case K:return _4(e,t,n);case C:return FH(e,t,n);case j:{var xe=t.type,it=t.pendingProps,Nt=t.elementType===xe?it:Wl(xe,it);return c4(e,t,xe,Nt,n)}case L:return mH(e,t,n);case A:return vH(e,t,n);case U:return gH(e,t,n);case F:return zH(e,t,n);case $:return HH(e,t,n);case M:{var kt=t.type,fa=t.pendingProps,pa=Wl(kt,fa);if(t.type!==t.elementType){var se=kt.propTypes;se&&zl(se,pa,"prop",Va(kt))}return pa=Wl(kt.type,pa),d4(e,t,kt,pa,n)}case oe:return f4(e,t,t.type,t.pendingProps,n);case J:{var De=t.type,ue=t.pendingProps,qe=t.elementType===De?ue:Wl(De,ue);return wH(e,t,De,qe,n)}case he:return w4(e,t,n);case ce:break;case P:return p4(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Sf(e){e.flags|=ka}function k4(e){e.flags|=Iu,e.flags|=vb}var E4,cy,R4,D4;E4=function(e,t,n,i){for(var c=t.child;c!==null;){if(c.tag===w||c.tag===T)c9(e,c.stateNode);else if(c.tag!==C){if(c.child!==null){c.child.return=c,c=c.child;continue}}if(c===t)return;for(;c.sibling===null;){if(c.return===null||c.return===t)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},cy=function(e,t){},R4=function(e,t,n,i,c){var f=e.memoizedProps;if(f!==i){var g=t.stateNode,S=n0(),x=f9(g,n,f,i,c,S);t.updateQueue=x,x&&Sf(t)}},D4=function(e,t,n,i){n!==i&&Sf(t)};function Eh(e,t){if(!kn())switch(e.tailMode){case"hidden":{for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break}case"collapsed":{for(var c=e.tail,f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:f.sibling=null;break}}}function Rn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=je,i=jt;if(t){if((e.mode&Qa)!==Ft){for(var x=e.selfBaseDuration,R=e.child;R!==null;)n=ua(n,ua(R.lanes,R.childLanes)),i|=R.subtreeFlags&$s,i|=R.flags&$s,x+=R.treeBaseDuration,R=R.sibling;e.treeBaseDuration=x}else for(var O=e.child;O!==null;)n=ua(n,ua(O.lanes,O.childLanes)),i|=O.subtreeFlags&$s,i|=O.flags&$s,O.return=e,O=O.sibling;e.subtreeFlags|=i}else{if((e.mode&Qa)!==Ft){for(var c=e.actualDuration,f=e.selfBaseDuration,g=e.child;g!==null;)n=ua(n,ua(g.lanes,g.childLanes)),i|=g.subtreeFlags,i|=g.flags,c+=g.actualDuration,f+=g.treeBaseDuration,g=g.sibling;e.actualDuration=c,e.treeBaseDuration=f}else for(var S=e.child;S!==null;)n=ua(n,ua(S.lanes,S.childLanes)),i|=S.subtreeFlags,i|=S.flags,S.return=e,S=S.sibling;e.subtreeFlags|=i}return e.childLanes=n,t}function VH(e,t,n){if(Ez()&&(t.mode&ba)!==Ft&&(t.flags&Ma)===jt)return ix(t),cf(),t.flags|=Vs|Sp|to,!1;var i=Lv(t);if(n!==null&&n.dehydrated!==null)if(e===null){if(!i)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Tz(t),Rn(t),(t.mode&Qa)!==Ft){var c=n!==null;if(c){var f=t.child;f!==null&&(t.treeBaseDuration-=f.treeBaseDuration)}}return!1}else{if(cf(),(t.flags&Ma)===jt&&(t.memoizedState=null),t.flags|=ka,Rn(t),(t.mode&Qa)!==Ft){var g=n!==null;if(g){var S=t.child;S!==null&&(t.treeBaseDuration-=S.treeBaseDuration)}}return!1}else return lx(),!0}function A4(e,t,n){var i=t.pendingProps;switch(P1(t),t.tag){case y:case ke:case oe:case p:case j:case L:case A:case U:case $:case M:return Rn(t),null;case v:{var c=t.type;return gs(c)&&Tv(t),Rn(t),null}case b:{var f=t.stateNode;if(hf(t),B1(t),u0(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),e===null||e.child===null){var g=Lv(t);if(g)Sf(t);else if(e!==null){var S=e.memoizedState;(!S.isDehydrated||(t.flags&Vs)!==jt)&&(t.flags|=Rc,lx())}}return cy(e,t),Rn(t),null}case w:{o0(t);var x=wx(),R=t.type;if(e!==null&&t.stateNode!=null)R4(e,t,R,i,x),e.ref!==t.ref&&k4(t);else{if(!i){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Rn(t),null}var O=n0(),Q=Lv(t);if(Q)Cz(t,x,O)&&Sf(t);else{var X=u9(R,i,x,O,t);E4(X,t,!1,!1),t.stateNode=X,d9(X,R,i,x)&&Sf(t)}t.ref!==null&&k4(t)}return Rn(t),null}case T:{var ye=i;if(e&&t.stateNode!=null){var Se=e.memoizedProps;D4(e,t,Se,ye)}else{if(typeof ye!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var xe=wx(),it=n0(),Nt=Lv(t);Nt?xz(t)&&Sf(t):t.stateNode=p9(ye,xe,it,t)}return Rn(t),null}case K:{vf(t);var kt=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var fa=VH(e,t,kt);if(!fa)return t.flags&to?t:null}if((t.flags&Ma)!==jt)return t.lanes=n,(t.mode&Qa)!==Ft&&O0(t),t;var pa=kt!==null,se=e!==null&&e.memoizedState!==null;if(pa!==se&&pa){var De=t.child;if(De.flags|=Dc,(t.mode&ba)!==Ft){var ue=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!Re);ue||i0(Ul.current,Tx)?Kj():Dy()}}var qe=t.updateQueue;if(qe!==null&&(t.flags|=ka),Rn(t),(t.mode&Qa)!==Ft&&pa){var mt=t.child;mt!==null&&(t.treeBaseDuration-=mt.treeBaseDuration)}return null}case C:return hf(t),cy(e,t),e===null&&iz(t.stateNode.containerInfo),Rn(t),null;case F:var st=t.type._context;return X1(st,t),Rn(t),null;case J:{var Vt=t.type;return gs(Vt)&&Tv(t),Rn(t),null}case he:{vf(t);var Zt=t.memoizedState;if(Zt===null)return Rn(t),null;var er=(t.flags&Ma)!==jt,Da=Zt.rendering;if(Da===null)if(er)Eh(Zt,!1);else{var Ur=Jj()&&(e===null||(e.flags&Ma)===jt);if(!Ur)for(var Aa=t.child;Aa!==null;){var Or=Gv(Aa);if(Or!==null){er=!0,t.flags|=Ma,Eh(Zt,!1);var Wn=Or.updateQueue;return Wn!==null&&(t.updateQueue=Wn,t.flags|=ka),t.subtreeFlags=jt,Oz(t,n),Ku(t,l0(Ul.current,hh)),t.child}Aa=Aa.sibling}Zt.tail!==null&&vn()>Q4()&&(t.flags|=Ma,er=!0,Eh(Zt,!1),t.lanes=DC)}else{if(!er){var Nn=Gv(Da);if(Nn!==null){t.flags|=Ma,er=!0;var $o=Nn.updateQueue;if($o!==null&&(t.updateQueue=$o,t.flags|=ka),Eh(Zt,!0),Zt.tail===null&&Zt.tailMode==="hidden"&&!Da.alternate&&!kn())return Rn(t),null}else vn()*2-Zt.renderingStartTime>Q4()&&n!==zo&&(t.flags|=Ma,er=!0,Eh(Zt,!1),t.lanes=DC)}if(Zt.isBackwards)Da.sibling=t.child,t.child=Da;else{var oo=Zt.last;oo!==null?oo.sibling=Da:t.child=Da,Zt.last=Da}}if(Zt.tail!==null){var io=Zt.tail;Zt.rendering=io,Zt.tail=io.sibling,Zt.renderingStartTime=vn(),io.sibling=null;var Yn=Ul.current;return er?Yn=l0(Yn,hh):Yn=mf(Yn),Ku(t,Yn),io}return Rn(t),null}case ce:break;case P:case ee:{Ry(t);var lu=t.memoizedState,Df=lu!==null;if(e!==null){var Vh=e.memoizedState,Ts=Vh!==null;Ts!==Df&&!de&&(t.flags|=Dc)}return!Df||(t.mode&ba)===Ft?Rn(t):Ho(xs,zo)&&(Rn(t),t.subtreeFlags&(qr|ka)&&(t.flags|=Dc)),null}case me:return null;case z:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function WH(e,t,n){switch(P1(t),t.tag){case v:{var i=t.type;gs(i)&&Tv(t);var c=t.flags;return c&to?(t.flags=c&~to|Ma,(t.mode&Qa)!==Ft&&O0(t),t):null}case b:{var f=t.stateNode;hf(t),B1(t),u0();var g=t.flags;return(g&to)!==jt&&(g&Ma)===jt?(t.flags=g&~to|Ma,t):null}case w:return o0(t),null;case K:{vf(t);var S=t.memoizedState;if(S!==null&&S.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cf()}var x=t.flags;return x&to?(t.flags=x&~to|Ma,(t.mode&Qa)!==Ft&&O0(t),t):null}case he:return vf(t),null;case C:return hf(t),null;case F:var R=t.type._context;return X1(R,t),null;case P:case ee:return Ry(t),null;case me:return null;default:return null}}function L4(e,t,n){switch(P1(t),t.tag){case v:{var i=t.type.childContextTypes;i!=null&&Tv(t);break}case b:{var c=t.stateNode;hf(t),B1(t),u0();break}case w:{o0(t);break}case C:hf(t);break;case K:vf(t);break;case he:vf(t);break;case F:var f=t.type._context;X1(f,t);break;case P:case ee:Ry(t);break}}var B4=null;B4=new Set;var gg=!1,Dn=!1,YH=typeof WeakSet=="function"?WeakSet:Set,Ct=null,wf=null,Cf=null;function $H(e){fb(null,function(){throw e}),pb()}var GH=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Qa)try{ws(),t.componentWillUnmount()}finally{Ss(e)}else t.componentWillUnmount()};function N4(e,t){try{Qu(rn,e)}catch(n){fr(e,t,n)}}function dy(e,t,n){try{GH(e,n)}catch(i){fr(e,t,i)}}function qH(e,t,n){try{n.componentDidMount()}catch(i){fr(e,t,i)}}function O4(e,t){try{M4(e)}catch(n){fr(e,t,n)}}function xf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var i;try{if(pt&&Kt&&e.mode&Qa)try{ws(),i=n(null)}finally{Ss(e)}else i=n(null)}catch(c){fr(e,t,c)}typeof i=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",na(e))}else n.current=null}function _g(e,t,n){try{n()}catch(i){fr(e,t,i)}}var I4=null,P4=!1;function KH(e,t){I4=l9(e.containerInfo),Ct=t,XH();var n=P4;return P4=!1,I4=null,n}function XH(){for(;Ct!==null;){var e=Ct,t=e.child;(e.subtreeFlags&_b)!==jt&&t!==null?(t.return=e,Ct=t):JH()}}function JH(){for(;Ct!==null;){var e=Ct;xr(e);try{QH(e)}catch(n){fr(e,e.return,n)}mn();var t=e.sibling;if(t!==null){t.return=e.return,Ct=t;return}Ct=e.return}}function QH(e){var t=e.alternate,n=e.flags;if((n&Rc)!==jt){switch(xr(e),e.tag){case p:case j:case oe:break;case v:{if(t!==null){var i=t.memoizedProps,c=t.memoizedState,f=e.stateNode;e.type===e.elementType&&!Xc&&(f.props!==e.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",na(e)||"instance"),f.state!==e.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",na(e)||"instance"));var g=f.getSnapshotBeforeUpdate(e.elementType===e.type?i:Wl(e.type,i),c);{var S=B4;g===void 0&&!S.has(e.type)&&(S.add(e.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",na(e)))}f.__reactInternalSnapshotBeforeUpdate=g}break}case b:{{var x=e.stateNode;B9(x.containerInfo)}break}case w:case T:case C:case J:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}mn()}}function $l(e,t,n){var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next,g=f;do{if((g.tag&e)===e){var S=g.destroy;g.destroy=void 0,S!==void 0&&((e&En)!==Eo?pP(t):(e&rn)!==Eo&&xC(t),(e&_s)!==Eo&&Hh(!0),_g(t,n,S),(e&_s)!==Eo&&Hh(!1),(e&En)!==Eo?hP():(e&rn)!==Eo&&TC())}g=g.next}while(g!==f)}}function Qu(e,t){var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next,f=c;do{if((f.tag&e)===e){(e&En)!==Eo?dP(t):(e&rn)!==Eo&&mP(t);var g=f.create;(e&_s)!==Eo&&Hh(!0),f.destroy=g(),(e&_s)!==Eo&&Hh(!1),(e&En)!==Eo?fP():(e&rn)!==Eo&&vP();{var S=f.destroy;if(S!==void 0&&typeof S!="function"){var x=void 0;(f.tag&rn)!==jt?x="useLayoutEffect":(f.tag&_s)!==jt?x="useInsertionEffect":x="useEffect";var R=void 0;S===null?R=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof S.then=="function"?R=`
103
103
 
104
104
  It looks like you wrote `+x+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
105
105
 
@@ -112,11 +112,11 @@ It looks like you wrote `+x+`(async () => ...) or returned a Promise. Instead, w
112
112
  fetchData();
113
113
  }, [someId]); // Or [] if effect doesn't need props or state
114
114
 
115
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:R=" You returned: "+S,u("%s must not return anything besides a function, which is used for clean-up.%s",x,R)}}}f=f.next}while(f!==c)}}function ZH(e,t){if((t.flags&ka)!==jt)switch(t.tag){case U:{var n=t.stateNode.passiveEffectDuration,i=t.memoizedProps,c=i.id,f=i.onPostCommit,g=Jx(),S=t.alternate===null?"mount":"update";Xx()&&(S="nested-update"),typeof f=="function"&&f(c,S,n,g);var x=t.return;e:for(;x!==null;){switch(x.tag){case b:var R=x.stateNode;R.passiveEffectDuration+=n;break e;case U:var O=x.stateNode;O.passiveEffectDuration+=n;break e}x=x.return}break}}}function ej(e,t,n,i){if((n.flags&wp)!==jt)switch(n.tag){case p:case j:case oe:{if(!Dn)if(n.mode&Qa)try{ws(),Qu(rn|an,n)}finally{Ss(n)}else Qu(rn|an,n);break}case v:{var c=n.stateNode;if(n.flags&ka&&!Dn)if(t===null)if(n.type===n.elementType&&!Xc&&(c.props!==n.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",na(n)||"instance"),c.state!==n.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",na(n)||"instance")),n.mode&Qa)try{ws(),c.componentDidMount()}finally{Ss(n)}else c.componentDidMount();else{var f=n.elementType===n.type?t.memoizedProps:Wl(n.type,t.memoizedProps),g=t.memoizedState;if(n.type===n.elementType&&!Xc&&(c.props!==n.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",na(n)||"instance"),c.state!==n.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",na(n)||"instance")),n.mode&Qa)try{ws(),c.componentDidUpdate(f,g,c.__reactInternalSnapshotBeforeUpdate)}finally{Ss(n)}else c.componentDidUpdate(f,g,c.__reactInternalSnapshotBeforeUpdate)}var S=n.updateQueue;S!==null&&(n.type===n.elementType&&!Xc&&(c.props!==n.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",na(n)||"instance"),c.state!==n.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",na(n)||"instance")),Sx(n,S,c));break}case b:{var x=n.updateQueue;if(x!==null){var R=null;if(n.child!==null)switch(n.child.tag){case w:R=n.child.stateNode;break;case v:R=n.child.stateNode;break}Sx(n,x,R)}break}case w:{var O=n.stateNode;if(t===null&&n.flags&ka){var Q=n.type,X=n.memoizedProps;_9(O,Q,X)}break}case T:break;case C:break;case U:{{var ye=n.memoizedProps,Se=ye.onCommit,xe=ye.onRender,it=n.stateNode.effectDuration,Nt=Jx(),kt=t===null?"mount":"update";Xx()&&(kt="nested-update"),typeof xe=="function"&&xe(n.memoizedProps.id,kt,n.actualDuration,n.treeBaseDuration,n.actualStartTime,Nt);{typeof Se=="function"&&Se(n.memoizedProps.id,kt,it,Nt),aU(n);var fa=n.return;e:for(;fa!==null;){switch(fa.tag){case b:var pa=fa.stateNode;pa.effectDuration+=it;break e;case U:var se=fa.stateNode;se.effectDuration+=it;break e}fa=fa.return}}}break}case K:{sj(e,n);break}case he:case J:case ce:case P:case ee:case z:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Dn||n.flags&Iu&&MT(n)}function tj(e){switch(e.tag){case p:case j:case oe:{if(e.mode&Qa)try{ws(),NT(e,e.return)}finally{Ss(e)}else NT(e,e.return);break}case v:{var t=e.stateNode;typeof t.componentDidMount=="function"&&qH(e,e.return,t),OT(e,e.return);break}case w:{OT(e,e.return);break}}}function aj(e,t){for(var n=null,i=e;;){if(i.tag===w){if(n===null){n=i;try{var c=i.stateNode;t?R9(c):A9(i.stateNode,i.memoizedProps)}catch(g){fr(e,e.return,g)}}}else if(i.tag===T){if(n===null)try{var f=i.stateNode;t?D9(f):L9(f,i.memoizedProps)}catch(g){fr(e,e.return,g)}}else if(!((i.tag===P||i.tag===ee)&&i.memoizedState!==null&&i!==e)){if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===e)return;for(;i.sibling===null;){if(i.return===null||i.return===e)return;n===i&&(n=null),i=i.return}n===i&&(n=null),i.sibling.return=i.return,i=i.sibling}}function MT(e){var t=e.ref;if(t!==null){var n=e.stateNode,i;switch(e.tag){case w:i=n;break;default:i=n}if(typeof t=="function"){var c;if(e.mode&Qa)try{ws(),c=t(i)}finally{Ss(e)}else c=t(i);typeof c=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",na(e))}else t.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",na(e)),t.current=i}}function rj(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function FT(e){var t=e.alternate;t!==null&&(e.alternate=null,FT(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===w){var n=e.stateNode;n!==null&&uz(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function nj(e){for(var t=e.return;t!==null;){if(zT(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function zT(e){return e.tag===w||e.tag===b||e.tag===C}function HT(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||zT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==w&&t.tag!==T&&t.tag!==pe;){if(t.flags&qr||t.child===null||t.tag===C)continue e;t.child.return=t,t=t.child}if(!(t.flags&qr))return t.stateNode}}function oj(e){var t=nj(e);switch(t.tag){case w:{var n=t.stateNode;t.flags&yp&&(j3(n),t.flags&=~yp);var i=HT(e);py(e,i,n);break}case b:case C:{var c=t.stateNode.containerInfo,f=HT(e);fy(e,f,c);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function fy(e,t,n){var i=e.tag,c=i===w||i===T;if(c){var f=e.stateNode;t?x9(n,f,t):w9(n,f)}else if(i!==C){var g=e.child;if(g!==null){fy(g,t,n);for(var S=g.sibling;S!==null;)fy(S,t,n),S=S.sibling}}}function py(e,t,n){var i=e.tag,c=i===w||i===T;if(c){var f=e.stateNode;t?C9(n,f,t):S9(n,f)}else if(i!==C){var g=e.child;if(g!==null){py(g,t,n);for(var S=g.sibling;S!==null;)py(S,t,n),S=S.sibling}}}var An=null,Gl=!1;function ij(e,t,n){{var i=t;e:for(;i!==null;){switch(i.tag){case w:{An=i.stateNode,Gl=!1;break e}case b:{An=i.stateNode.containerInfo,Gl=!0;break e}case C:{An=i.stateNode.containerInfo,Gl=!0;break e}}i=i.return}if(An===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");jT(e,t,n),An=null,Gl=!1}rj(n)}function Zu(e,t,n){for(var i=n.child;i!==null;)jT(e,t,i),i=i.sibling}function jT(e,t,n){switch(lP(n),n.tag){case w:Dn||xf(n,t);case T:{{var i=An,c=Gl;An=null,Zu(e,t,n),An=i,Gl=c,An!==null&&(Gl?k9(An,n.stateNode):T9(An,n.stateNode))}return}case pe:{An!==null&&(Gl?E9(An,n.stateNode):x1(An,n.stateNode));return}case C:{{var f=An,g=Gl;An=n.stateNode.containerInfo,Gl=!0,Zu(e,t,n),An=f,Gl=g}return}case p:case j:case M:case oe:{if(!Dn){var S=n.updateQueue;if(S!==null){var x=S.lastEffect;if(x!==null){var R=x.next,O=R;do{var Q=O,X=Q.destroy,ye=Q.tag;X!==void 0&&((ye&_s)!==Eo?_g(n,t,X):(ye&rn)!==Eo&&(xC(n),n.mode&Qa?(ws(),_g(n,t,X),Ss(n)):_g(n,t,X),TC())),O=O.next}while(O!==R)}}}Zu(e,t,n);return}case v:{if(!Dn){xf(n,t);var Se=n.stateNode;typeof Se.componentWillUnmount=="function"&&dy(n,t,Se)}Zu(e,t,n);return}case ce:{Zu(e,t,n);return}case P:{if(n.mode&ba){var xe=Dn;Dn=xe||n.memoizedState!==null,Zu(e,t,n),Dn=xe}else Zu(e,t,n);break}default:{Zu(e,t,n);return}}}function lj(e){var t=e.memoizedState}function sj(e,t){var n=t.memoizedState;if(n===null){var i=t.alternate;if(i!==null){var c=i.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&$9(f)}}}}function UT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YH),t.forEach(function(i){var c=uU.bind(null,e,i);if(!n.has(i)){if(n.add(i),Ml)if(wf!==null&&Cf!==null)zh(Cf,wf);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");i.then(c,c)}})}}function uj(e,t,n){wf=n,Cf=e,xr(t),VT(t,e),xr(t),wf=null,Cf=null}function ql(e,t,n){var i=t.deletions;if(i!==null)for(var c=0;c<i.length;c++){var f=i[c];try{ij(e,t,f)}catch(x){fr(f,t,x)}}var g=K_();if(t.subtreeFlags&bb)for(var S=t.child;S!==null;)xr(S),VT(S,e),S=S.sibling;xr(g)}function VT(e,t,n){var i=e.alternate,c=e.flags;switch(e.tag){case p:case j:case M:case oe:{if(ql(t,e),Cs(e),c&ka){try{$l(_s|an,e,e.return),Qu(_s|an,e)}catch(Vt){fr(e,e.return,Vt)}if(e.mode&Qa){try{ws(),$l(rn|an,e,e.return)}catch(Vt){fr(e,e.return,Vt)}Ss(e)}else try{$l(rn|an,e,e.return)}catch(Vt){fr(e,e.return,Vt)}}return}case v:{ql(t,e),Cs(e),c&Iu&&i!==null&&xf(i,i.return);return}case w:{ql(t,e),Cs(e),c&Iu&&i!==null&&xf(i,i.return);{if(e.flags&yp){var f=e.stateNode;try{j3(f)}catch(Vt){fr(e,e.return,Vt)}}if(c&ka){var g=e.stateNode;if(g!=null){var S=e.memoizedProps,x=i!==null?i.memoizedProps:S,R=e.type,O=e.updateQueue;if(e.updateQueue=null,O!==null)try{b9(g,O,R,x,S,e)}catch(Vt){fr(e,e.return,Vt)}}}}return}case T:{if(ql(t,e),Cs(e),c&ka){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var Q=e.stateNode,X=e.memoizedProps,ye=i!==null?i.memoizedProps:X;try{y9(Q,ye,X)}catch(Vt){fr(e,e.return,Vt)}}return}case b:{if(ql(t,e),Cs(e),c&ka&&i!==null){var Se=i.memoizedState;if(Se.isDehydrated)try{Y9(t.containerInfo)}catch(Vt){fr(e,e.return,Vt)}}return}case C:{ql(t,e),Cs(e);return}case K:{ql(t,e),Cs(e);var xe=e.child;if(xe.flags&Dc){var it=xe.stateNode,Nt=xe.memoizedState,kt=Nt!==null;if(it.isHidden=kt,kt){var fa=xe.alternate!==null&&xe.alternate.memoizedState!==null;fa||qj()}}if(c&ka){try{lj(e)}catch(Vt){fr(e,e.return,Vt)}UT(e)}return}case P:{var pa=i!==null&&i.memoizedState!==null;if(e.mode&ba){var se=Dn;Dn=se||pa,ql(t,e),Dn=se}else ql(t,e);if(Cs(e),c&Dc){var De=e.stateNode,ue=e.memoizedState,qe=ue!==null,mt=e;if(De.isHidden=qe,qe&&!pa&&(mt.mode&ba)!==Ft){Ct=mt;for(var st=mt.child;st!==null;)Ct=st,dj(st),st=st.sibling}aj(mt,qe)}return}case he:{ql(t,e),Cs(e),c&ka&&UT(e);return}case ce:return;default:{ql(t,e),Cs(e);return}}}function Cs(e){var t=e.flags;if(t&qr){try{oj(e)}catch(n){fr(e,e.return,n)}e.flags&=~qr}t&Ws&&(e.flags&=~Ws)}function cj(e,t,n){wf=n,Cf=t,Ct=e,WT(e,t,n),wf=null,Cf=null}function WT(e,t,n){for(var i=(e.mode&ba)!==Ft;Ct!==null;){var c=Ct,f=c.child;if(c.tag===P&&i){var g=c.memoizedState!==null,S=g||gg;if(S){hy(e,t,n);continue}else{var x=c.alternate,R=x!==null&&x.memoizedState!==null,O=R||Dn,Q=gg,X=Dn;gg=S,Dn=O,Dn&&!X&&(Ct=c,fj(c));for(var ye=f;ye!==null;)Ct=ye,WT(ye,t,n),ye=ye.sibling;Ct=c,gg=Q,Dn=X,hy(e,t,n);continue}}(c.subtreeFlags&wp)!==jt&&f!==null?(f.return=c,Ct=f):hy(e,t,n)}}function hy(e,t,n){for(;Ct!==null;){var i=Ct;if((i.flags&wp)!==jt){var c=i.alternate;xr(i);try{ej(t,c,i,n)}catch(g){fr(i,i.return,g)}mn()}if(i===e){Ct=null;return}var f=i.sibling;if(f!==null){f.return=i.return,Ct=f;return}Ct=i.return}}function dj(e){for(;Ct!==null;){var t=Ct,n=t.child;switch(t.tag){case p:case j:case M:case oe:{if(t.mode&Qa)try{ws(),$l(rn,t,t.return)}finally{Ss(t)}else $l(rn,t,t.return);break}case v:{xf(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&dy(t,t.return,i);break}case w:{xf(t,t.return);break}case P:{var c=t.memoizedState!==null;if(c){YT(e);continue}break}}n!==null?(n.return=t,Ct=n):YT(e)}}function YT(e){for(;Ct!==null;){var t=Ct;if(t===e){Ct=null;return}var n=t.sibling;if(n!==null){n.return=t.return,Ct=n;return}Ct=t.return}}function fj(e){for(;Ct!==null;){var t=Ct,n=t.child;if(t.tag===P){var i=t.memoizedState!==null;if(i){$T(e);continue}}n!==null?(n.return=t,Ct=n):$T(e)}}function $T(e){for(;Ct!==null;){var t=Ct;xr(t);try{tj(t)}catch(i){fr(t,t.return,i)}if(mn(),t===e){Ct=null;return}var n=t.sibling;if(n!==null){n.return=t.return,Ct=n;return}Ct=t.return}}function pj(e,t,n,i){Ct=t,hj(t,e,n,i)}function hj(e,t,n,i){for(;Ct!==null;){var c=Ct,f=c.child;(c.subtreeFlags&Wd)!==jt&&f!==null?(f.return=c,Ct=f):mj(e,t,n,i)}}function mj(e,t,n,i){for(;Ct!==null;){var c=Ct;if((c.flags&Pl)!==jt){xr(c);try{vj(t,c,n,i)}catch(g){fr(c,c.return,g)}mn()}if(c===e){Ct=null;return}var f=c.sibling;if(f!==null){f.return=c.return,Ct=f;return}Ct=c.return}}function vj(e,t,n,i){switch(t.tag){case p:case j:case oe:{if(t.mode&Qa){N0();try{Qu(En|an,t)}finally{B0(t)}}else Qu(En|an,t);break}}}function gj(e){Ct=e,_j()}function _j(){for(;Ct!==null;){var e=Ct,t=e.child;if((Ct.flags&Ec)!==jt){var n=e.deletions;if(n!==null){for(var i=0;i<n.length;i++){var c=n[i];Ct=c,Sj(c,e)}{var f=e.alternate;if(f!==null){var g=f.child;if(g!==null){f.child=null;do{var S=g.sibling;g.sibling=null,g=S}while(g!==null)}}}Ct=e}}(e.subtreeFlags&Wd)!==jt&&t!==null?(t.return=e,Ct=t):bj()}}function bj(){for(;Ct!==null;){var e=Ct;(e.flags&Pl)!==jt&&(xr(e),yj(e),mn());var t=e.sibling;if(t!==null){t.return=e.return,Ct=t;return}Ct=e.return}}function yj(e){switch(e.tag){case p:case j:case oe:{e.mode&Qa?(N0(),$l(En|an,e,e.return),B0(e)):$l(En|an,e,e.return);break}}}function Sj(e,t){for(;Ct!==null;){var n=Ct;xr(n),Cj(n,t),mn();var i=n.child;i!==null?(i.return=n,Ct=i):wj(e)}}function wj(e){for(;Ct!==null;){var t=Ct,n=t.sibling,i=t.return;if(FT(t),t===e){Ct=null;return}if(n!==null){n.return=i,Ct=n;return}Ct=i}}function Cj(e,t){switch(e.tag){case p:case j:case oe:{e.mode&Qa?(N0(),$l(En,e,t),B0(e)):$l(En,e,t);break}}}function xj(e){switch(e.tag){case p:case j:case oe:{try{Qu(rn|an,e)}catch(n){fr(e,e.return,n)}break}case v:{var t=e.stateNode;try{t.componentDidMount()}catch(n){fr(e,e.return,n)}break}}}function Tj(e){switch(e.tag){case p:case j:case oe:{try{Qu(En|an,e)}catch(t){fr(e,e.return,t)}break}}}function kj(e){switch(e.tag){case p:case j:case oe:{try{$l(rn|an,e,e.return)}catch(n){fr(e,e.return,n)}break}case v:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&dy(e,e.return,t);break}}}function Ej(e){switch(e.tag){case p:case j:case oe:try{$l(En|an,e,e.return)}catch(t){fr(e,e.return,t)}}}var Rj=0,Dj=1,Aj=2,Lj=3,Bj=4;if(typeof Symbol=="function"&&Symbol.for){var Rh=Symbol.for;Rj=Rh("selector.component"),Dj=Rh("selector.has_pseudo_class"),Aj=Rh("selector.role"),Lj=Rh("selector.test_id"),Bj=Rh("selector.text")}var Nj=[];function Oj(){Nj.forEach(function(e){return e()})}var Ij=o.ReactCurrentActQueue;function Pj(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest!="undefined";return n&&t!==!1}}function GT(){{var e=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Ij.current!==null&&u("The current testing environment is not configured to support act(...)"),e}}var Mj=Math.ceil,my=o.ReactCurrentDispatcher,vy=o.ReactCurrentOwner,Ln=o.ReactCurrentBatchConfig,Kl=o.ReactCurrentActQueue,ln=0,qT=1,Bn=2,Tl=4,ru=0,Dh=1,Jc=2,bg=3,Ah=4,KT=5,gy=6,ya=ln,ro=null,Rr=null,sn=je,xs=je,_y=Vu(je),un=ru,Lh=null,by=je,yg=je,Bh=je,Sg=je,Nh=null,Ro=null,yy=0,XT=500,JT=1/0,Fj=500,nu=null;function Oh(){JT=vn()+Fj}function QT(){return JT}var wg=!1,Sy=null,Tf=null,Qc=!1,ec=null,Ih=je,wy=[],Cy=null,zj=50,Ph=0,xy=null,Ty=!1,Cg=!1,Hj=50,kf=0,xg=null,Mh=gr,Tg=je,ZT=!1;function kg(){return ro}function no(){return(ya&(Bn|Tl))!==ln?vn():(Mh!==gr||(Mh=vn()),Mh)}function tc(e){var t=e.mode;if((t&ba)===Ft)return Jt;if((ya&Bn)!==ln&&sn!==je)return Dp(sn);var n=Az()!==Dz;if(n){if(Ln.transition!==null){var i=Ln.transition;i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(e)}return Tg===_n&&(Tg=NC()),Tg}var c=Fl();if(c!==_n)return c;var f=h9();return f}function jj(e){var t=e.mode;return(t&ba)===Ft?Jt:FP()}function cn(e,t,n,i){dU(),ZT&&u("useInsertionEffect must not schedule updates."),Ty&&(Cg=!0),Ap(e,n,i),(ya&Bn)!==je&&e===ro?hU(t):(Ml&&PC(e,t,n),mU(t),e===ro&&((ya&Bn)===ln&&(Bh=ua(Bh,n)),un===Ah&&ac(e,sn)),Do(e,i),n===Jt&&ya===ln&&(t.mode&ba)===Ft&&!Kl.isBatchingLegacy&&(Oh(),Q3()))}function Uj(e,t,n){var i=e.current;i.lanes=t,Ap(e,t,n),Do(e,n)}function Vj(e){return(ya&Bn)!==ln}function Do(e,t){var n=e.callbackNode;BP(e,t);var i=Gm(e,e===ro?sn:je);if(i===je){n!==null&&m4(n),e.callbackNode=null,e.callbackPriority=_n;return}var c=Pc(i),f=e.callbackPriority;if(f===c&&!(Kl.current!==null&&n!==By)){n==null&&f!==Jt&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&m4(n);var g;if(c===Jt)e.tag===Wu?(Kl.isBatchingLegacy!==null&&(Kl.didScheduleLegacyUpdate=!0),fz(a4.bind(null,e))):J3(a4.bind(null,e)),Kl.current!==null?Kl.current.push(Yu):v9(function(){(ya&(Bn|Tl))===ln&&Yu()}),g=null;else{var S;switch(zC(i)){case jo:S=Vm;break;case qs:S=yb;break;case Ks:S=Bc;break;case Xm:S=Sb;break;default:S=Bc;break}g=Ny(S,e4.bind(null,e))}e.callbackPriority=c,e.callbackNode=g}function e4(e,t){if(aH(),Mh=gr,Tg=je,(ya&(Bn|Tl))!==ln)throw new Error("Should not already be working.");var n=e.callbackNode,i=iu();if(i&&e.callbackNode!==n)return null;var c=Gm(e,e===ro?sn:je);if(c===je)return null;var f=!qm(e,c)&&!MP(e,c)&&!t,g=f?Zj(e,c):Rg(e,c);if(g!==ru){if(g===Jc){var S=Vb(e);S!==je&&(c=S,g=ky(e,S))}if(g===Dh){var x=Lh;throw Zc(e,je),ac(e,c),Do(e,vn()),x}if(g===gy)ac(e,c);else{var R=!qm(e,c),O=e.current.alternate;if(R&&!Yj(O)){if(g=Rg(e,c),g===Jc){var Q=Vb(e);Q!==je&&(c=Q,g=ky(e,Q))}if(g===Dh){var X=Lh;throw Zc(e,je),ac(e,c),Do(e,vn()),X}}e.finishedWork=O,e.finishedLanes=c,Wj(e,g,c)}}return Do(e,vn()),e.callbackNode===n?e4.bind(null,e):null}function ky(e,t){var n=Nh;if(Jm(e)){var i=Zc(e,t);i.flags|=Vs,oz(e.containerInfo)}var c=Rg(e,t);if(c!==Jc){var f=Ro;Ro=n,f!==null&&t4(f)}return c}function t4(e){Ro===null?Ro=e:Ro.push.apply(Ro,e)}function Wj(e,t,n){switch(t){case ru:case Dh:throw new Error("Root did not complete. This is a bug in React.");case Jc:{ed(e,Ro,nu);break}case bg:{if(ac(e,n),LC(n)&&!v4()){var i=yy+XT-vn();if(i>10){var c=Gm(e,je);if(c!==je)break;var f=e.suspendedLanes;if(!Kd(f,n)){var g=no();IC(e,f);break}e.timeoutHandle=w1(ed.bind(null,e,Ro,nu),i);break}}ed(e,Ro,nu);break}case Ah:{if(ac(e,n),PP(n))break;if(!v4()){var S=AP(e,n),x=S,R=vn()-x,O=cU(R)-R;if(O>10){e.timeoutHandle=w1(ed.bind(null,e,Ro,nu),O);break}}ed(e,Ro,nu);break}case KT:{ed(e,Ro,nu);break}default:throw new Error("Unknown root exit status.")}}function Yj(e){for(var t=e;;){if(t.flags&jm){var n=t.updateQueue;if(n!==null){var i=n.stores;if(i!==null)for(var c=0;c<i.length;c++){var f=i[c],g=f.getSnapshot,S=f.value;try{if(!Vo(g(),S))return!1}catch(R){return!1}}}}var x=t.child;if(t.subtreeFlags&jm&&x!==null){x.return=t,t=x;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function ac(e,t){t=Km(t,Sg),t=Km(t,Bh),HP(e,t)}function a4(e){if(rH(),(ya&(Bn|Tl))!==ln)throw new Error("Should not already be working.");iu();var t=Gm(e,je);if(!Ho(t,Jt))return Do(e,vn()),null;var n=Rg(e,t);if(e.tag!==Wu&&n===Jc){var i=Vb(e);i!==je&&(t=i,n=ky(e,i))}if(n===Dh){var c=Lh;throw Zc(e,je),ac(e,t),Do(e,vn()),c}if(n===gy)throw new Error("Root did not complete. This is a bug in React.");var f=e.current.alternate;return e.finishedWork=f,e.finishedLanes=t,ed(e,Ro,nu),Do(e,vn()),null}function $j(e,t){t!==je&&(Gb(e,ua(t,Jt)),Do(e,vn()),(ya&(Bn|Tl))===ln&&(Oh(),Yu()))}function Ey(e,t){var n=ya;ya|=qT;try{return e(t)}finally{ya=n,ya===ln&&!Kl.isBatchingLegacy&&(Oh(),Q3())}}function Gj(e,t,n,i,c){var f=Fl(),g=Ln.transition;try{return Ln.transition=null,bn(jo),e(t,n,i,c)}finally{bn(f),Ln.transition=g,ya===ln&&Oh()}}function ou(e){ec!==null&&ec.tag===Wu&&(ya&(Bn|Tl))===ln&&iu();var t=ya;ya|=qT;var n=Ln.transition,i=Fl();try{return Ln.transition=null,bn(jo),e?e():void 0}finally{bn(i),Ln.transition=n,ya=t,(ya&(Bn|Tl))===ln&&Yu()}}function r4(){return(ya&(Bn|Tl))!==ln}function Eg(e,t){Un(_y,xs,e),xs=ua(xs,t),by=ua(by,t)}function Ry(e){xs=_y.current,jn(_y,e)}function Zc(e,t){e.finishedWork=null,e.finishedLanes=je;var n=e.timeoutHandle;if(n!==C1&&(e.timeoutHandle=C1,m9(n)),Rr!==null)for(var i=Rr.return;i!==null;){var c=i.alternate;LT(c,i),i=i.return}ro=e;var f=td(e.current,null);return Rr=f,sn=xs=by=t,un=ru,Lh=null,yg=je,Bh=je,Sg=je,Nh=null,Ro=null,Mz(),jl.discardPendingWarnings(),f}function n4(e,t){do{var n=Rr;try{if(Mv(),Ex(),mn(),vy.current=null,n===null||n.return===null){un=Dh,Lh=t,Rr=null;return}if(pt&&n.mode&Qa&&fg(n,!0),ze)if(Yd(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var i=t;_P(n,i,sn)}else gP(n,t,sn);fH(e,n.return,n,t,sn),s4(n)}catch(c){t=c,Rr===n&&n!==null?(n=n.return,Rr=n):n=Rr;continue}return}while(!0)}function o4(){var e=my.current;return my.current=lg,e===null?lg:e}function i4(e){my.current=e}function qj(){yy=vn()}function Fh(e){yg=ua(e,yg)}function Kj(){un===ru&&(un=bg)}function Dy(){(un===ru||un===bg||un===Jc)&&(un=Ah),ro!==null&&(Wb(yg)||Wb(Bh))&&ac(ro,sn)}function Xj(e){un!==Ah&&(un=Jc),Nh===null?Nh=[e]:Nh.push(e)}function Jj(){return un===ru}function Rg(e,t){var n=ya;ya|=Bn;var i=o4();if(ro!==e||sn!==t){if(Ml){var c=e.memoizedUpdaters;c.size>0&&(zh(e,sn),c.clear()),MC(e,t)}nu=FC(),Zc(e,t)}kC(t);do try{Qj();break}catch(f){n4(e,f)}while(!0);if(Mv(),ya=n,i4(i),Rr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return EC(),ro=null,sn=je,un}function Qj(){for(;Rr!==null;)l4(Rr)}function Zj(e,t){var n=ya;ya|=Bn;var i=o4();if(ro!==e||sn!==t){if(Ml){var c=e.memoizedUpdaters;c.size>0&&(zh(e,sn),c.clear()),MC(e,t)}nu=FC(),Oh(),Zc(e,t)}kC(t);do try{eU();break}catch(f){n4(e,f)}while(!0);return Mv(),i4(i),ya=n,Rr!==null?(CP(),ru):(EC(),ro=null,sn=je,un)}function eU(){for(;Rr!==null&&!JI();)l4(Rr)}function l4(e){var t=e.alternate;xr(e);var n;(e.mode&Qa)!==Ft?(L0(e),n=Ay(t,e,xs),fg(e,!0)):n=Ay(t,e,xs),mn(),e.memoizedProps=e.pendingProps,n===null?s4(e):Rr=n,vy.current=null}function s4(e){var t=e;do{var n=t.alternate,i=t.return;if((t.flags&Sp)===jt){xr(t);var c=void 0;if((t.mode&Qa)===Ft?c=AT(n,t,xs):(L0(t),c=AT(n,t,xs),fg(t,!1)),mn(),c!==null){Rr=c;return}}else{var f=WH(n,t);if(f!==null){f.flags&=YI,Rr=f;return}if((t.mode&Qa)!==Ft){fg(t,!1);for(var g=t.actualDuration,S=t.child;S!==null;)g+=S.actualDuration,S=S.sibling;t.actualDuration=g}if(i!==null)i.flags|=Sp,i.subtreeFlags=jt,i.deletions=null;else{un=gy,Rr=null;return}}var x=t.sibling;if(x!==null){Rr=x;return}t=i,Rr=t}while(t!==null);un===ru&&(un=KT)}function ed(e,t,n){var i=Fl(),c=Ln.transition;try{Ln.transition=null,bn(jo),tU(e,t,n,i)}finally{Ln.transition=c,bn(i)}return null}function tU(e,t,n,i){do iu();while(ec!==null);if(fU(),(ya&(Bn|Tl))!==ln)throw new Error("Should not already be working.");var c=e.finishedWork,f=e.finishedLanes;if(cP(f),c===null)return CC(),null;if(f===je&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=je,c===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=_n;var g=ua(c.lanes,c.childLanes);jP(e,g),e===ro&&(ro=null,Rr=null,sn=je),((c.subtreeFlags&Wd)!==jt||(c.flags&Wd)!==jt)&&(Qc||(Qc=!0,Cy=n,Ny(Bc,function(){return iu(),null})));var S=(c.subtreeFlags&(_b|bb|wp|Wd))!==jt,x=(c.flags&(_b|bb|wp|Wd))!==jt;if(S||x){var R=Ln.transition;Ln.transition=null;var O=Fl();bn(jo);var Q=ya;ya|=Tl,vy.current=null;var X=KH(e,c);Qx(),uj(e,c,f),s9(e.containerInfo),e.current=c,bP(f),cj(c,e,f),yP(),QI(),ya=Q,bn(O),Ln.transition=R}else e.current=c,Qx();var ye=Qc;if(Qc?(Qc=!1,ec=e,Ih=f):(kf=0,xg=null),g=e.pendingLanes,g===je&&(Tf=null),ye||f4(e.current,!1),oP(c.stateNode,i),Ml&&e.memoizedUpdaters.clear(),Oj(),Do(e,vn()),t!==null)for(var Se=e.onRecoverableError,xe=0;xe<t.length;xe++){var it=t[xe],Nt=it.stack,kt=it.digest;Se(it.value,{componentStack:Nt,digest:kt})}if(wg){wg=!1;var fa=Sy;throw Sy=null,fa}return Ho(Ih,Jt)&&e.tag!==Wu&&iu(),g=e.pendingLanes,Ho(g,Jt)?(tH(),e===xy?Ph++:(Ph=0,xy=e)):Ph=0,Yu(),CC(),null}function iu(){if(ec!==null){var e=zC(Ih),t=YP(Ks,e),n=Ln.transition,i=Fl();try{return Ln.transition=null,bn(t),rU()}finally{bn(i),Ln.transition=n}}return!1}function aU(e){wy.push(e),Qc||(Qc=!0,Ny(Bc,function(){return iu(),null}))}function rU(){if(ec===null)return!1;var e=Cy;Cy=null;var t=ec,n=Ih;if(ec=null,Ih=je,(ya&(Bn|Tl))!==ln)throw new Error("Cannot flush passive effects while already rendering.");Ty=!0,Cg=!1,SP(n);var i=ya;ya|=Tl,gj(t.current),pj(t,t.current,n,e);{var c=wy;wy=[];for(var f=0;f<c.length;f++){var g=c[f];ZH(t,g)}}wP(),f4(t.current,!0),ya=i,Yu(),Cg?t===xg?kf++:(kf=0,xg=t):kf=0,Ty=!1,Cg=!1,iP(t);{var S=t.current.stateNode;S.effectDuration=0,S.passiveEffectDuration=0}return!0}function u4(e){return Tf!==null&&Tf.has(e)}function nU(e){Tf===null?Tf=new Set([e]):Tf.add(e)}function oU(e){wg||(wg=!0,Sy=e)}var iU=oU;function c4(e,t,n){var i=Kc(n,t),c=iT(e,i,Jt),f=Gu(e,c,Jt),g=no();f!==null&&(Ap(f,Jt,g),Do(f,g))}function fr(e,t,n){if($H(n),Hh(!1),e.tag===b){c4(e,e,n);return}var i=null;for(i=t;i!==null;){if(i.tag===b){c4(i,e,n);return}else if(i.tag===v){var c=i.type,f=i.stateNode;if(typeof c.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&!u4(f)){var g=Kc(n,e),S=K0(i,g,Jt),x=Gu(i,S,Jt),R=no();x!==null&&(Ap(x,Jt,R),Do(x,R));return}}i=i.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
115
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:R=" You returned: "+S,u("%s must not return anything besides a function, which is used for clean-up.%s",x,R)}}}f=f.next}while(f!==c)}}function ZH(e,t){if((t.flags&ka)!==jt)switch(t.tag){case U:{var n=t.stateNode.passiveEffectDuration,i=t.memoizedProps,c=i.id,f=i.onPostCommit,g=Jx(),S=t.alternate===null?"mount":"update";Xx()&&(S="nested-update"),typeof f=="function"&&f(c,S,n,g);var x=t.return;e:for(;x!==null;){switch(x.tag){case b:var R=x.stateNode;R.passiveEffectDuration+=n;break e;case U:var O=x.stateNode;O.passiveEffectDuration+=n;break e}x=x.return}break}}}function ej(e,t,n,i){if((n.flags&wp)!==jt)switch(n.tag){case p:case j:case oe:{if(!Dn)if(n.mode&Qa)try{ws(),Qu(rn|an,n)}finally{Ss(n)}else Qu(rn|an,n);break}case v:{var c=n.stateNode;if(n.flags&ka&&!Dn)if(t===null)if(n.type===n.elementType&&!Xc&&(c.props!==n.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",na(n)||"instance"),c.state!==n.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",na(n)||"instance")),n.mode&Qa)try{ws(),c.componentDidMount()}finally{Ss(n)}else c.componentDidMount();else{var f=n.elementType===n.type?t.memoizedProps:Wl(n.type,t.memoizedProps),g=t.memoizedState;if(n.type===n.elementType&&!Xc&&(c.props!==n.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",na(n)||"instance"),c.state!==n.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",na(n)||"instance")),n.mode&Qa)try{ws(),c.componentDidUpdate(f,g,c.__reactInternalSnapshotBeforeUpdate)}finally{Ss(n)}else c.componentDidUpdate(f,g,c.__reactInternalSnapshotBeforeUpdate)}var S=n.updateQueue;S!==null&&(n.type===n.elementType&&!Xc&&(c.props!==n.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",na(n)||"instance"),c.state!==n.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",na(n)||"instance")),Sx(n,S,c));break}case b:{var x=n.updateQueue;if(x!==null){var R=null;if(n.child!==null)switch(n.child.tag){case w:R=n.child.stateNode;break;case v:R=n.child.stateNode;break}Sx(n,x,R)}break}case w:{var O=n.stateNode;if(t===null&&n.flags&ka){var Q=n.type,X=n.memoizedProps;_9(O,Q,X)}break}case T:break;case C:break;case U:{{var ye=n.memoizedProps,Se=ye.onCommit,xe=ye.onRender,it=n.stateNode.effectDuration,Nt=Jx(),kt=t===null?"mount":"update";Xx()&&(kt="nested-update"),typeof xe=="function"&&xe(n.memoizedProps.id,kt,n.actualDuration,n.treeBaseDuration,n.actualStartTime,Nt);{typeof Se=="function"&&Se(n.memoizedProps.id,kt,it,Nt),aU(n);var fa=n.return;e:for(;fa!==null;){switch(fa.tag){case b:var pa=fa.stateNode;pa.effectDuration+=it;break e;case U:var se=fa.stateNode;se.effectDuration+=it;break e}fa=fa.return}}}break}case K:{sj(e,n);break}case he:case J:case ce:case P:case ee:case z:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Dn||n.flags&Iu&&M4(n)}function tj(e){switch(e.tag){case p:case j:case oe:{if(e.mode&Qa)try{ws(),N4(e,e.return)}finally{Ss(e)}else N4(e,e.return);break}case v:{var t=e.stateNode;typeof t.componentDidMount=="function"&&qH(e,e.return,t),O4(e,e.return);break}case w:{O4(e,e.return);break}}}function aj(e,t){for(var n=null,i=e;;){if(i.tag===w){if(n===null){n=i;try{var c=i.stateNode;t?R9(c):A9(i.stateNode,i.memoizedProps)}catch(g){fr(e,e.return,g)}}}else if(i.tag===T){if(n===null)try{var f=i.stateNode;t?D9(f):L9(f,i.memoizedProps)}catch(g){fr(e,e.return,g)}}else if(!((i.tag===P||i.tag===ee)&&i.memoizedState!==null&&i!==e)){if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===e)return;for(;i.sibling===null;){if(i.return===null||i.return===e)return;n===i&&(n=null),i=i.return}n===i&&(n=null),i.sibling.return=i.return,i=i.sibling}}function M4(e){var t=e.ref;if(t!==null){var n=e.stateNode,i;switch(e.tag){case w:i=n;break;default:i=n}if(typeof t=="function"){var c;if(e.mode&Qa)try{ws(),c=t(i)}finally{Ss(e)}else c=t(i);typeof c=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",na(e))}else t.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",na(e)),t.current=i}}function rj(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function F4(e){var t=e.alternate;t!==null&&(e.alternate=null,F4(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===w){var n=e.stateNode;n!==null&&uz(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function nj(e){for(var t=e.return;t!==null;){if(z4(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function z4(e){return e.tag===w||e.tag===b||e.tag===C}function H4(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||z4(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==w&&t.tag!==T&&t.tag!==pe;){if(t.flags&qr||t.child===null||t.tag===C)continue e;t.child.return=t,t=t.child}if(!(t.flags&qr))return t.stateNode}}function oj(e){var t=nj(e);switch(t.tag){case w:{var n=t.stateNode;t.flags&yp&&(j3(n),t.flags&=~yp);var i=H4(e);py(e,i,n);break}case b:case C:{var c=t.stateNode.containerInfo,f=H4(e);fy(e,f,c);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function fy(e,t,n){var i=e.tag,c=i===w||i===T;if(c){var f=e.stateNode;t?x9(n,f,t):w9(n,f)}else if(i!==C){var g=e.child;if(g!==null){fy(g,t,n);for(var S=g.sibling;S!==null;)fy(S,t,n),S=S.sibling}}}function py(e,t,n){var i=e.tag,c=i===w||i===T;if(c){var f=e.stateNode;t?C9(n,f,t):S9(n,f)}else if(i!==C){var g=e.child;if(g!==null){py(g,t,n);for(var S=g.sibling;S!==null;)py(S,t,n),S=S.sibling}}}var An=null,Gl=!1;function ij(e,t,n){{var i=t;e:for(;i!==null;){switch(i.tag){case w:{An=i.stateNode,Gl=!1;break e}case b:{An=i.stateNode.containerInfo,Gl=!0;break e}case C:{An=i.stateNode.containerInfo,Gl=!0;break e}}i=i.return}if(An===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");j4(e,t,n),An=null,Gl=!1}rj(n)}function Zu(e,t,n){for(var i=n.child;i!==null;)j4(e,t,i),i=i.sibling}function j4(e,t,n){switch(lP(n),n.tag){case w:Dn||xf(n,t);case T:{{var i=An,c=Gl;An=null,Zu(e,t,n),An=i,Gl=c,An!==null&&(Gl?k9(An,n.stateNode):T9(An,n.stateNode))}return}case pe:{An!==null&&(Gl?E9(An,n.stateNode):x1(An,n.stateNode));return}case C:{{var f=An,g=Gl;An=n.stateNode.containerInfo,Gl=!0,Zu(e,t,n),An=f,Gl=g}return}case p:case j:case M:case oe:{if(!Dn){var S=n.updateQueue;if(S!==null){var x=S.lastEffect;if(x!==null){var R=x.next,O=R;do{var Q=O,X=Q.destroy,ye=Q.tag;X!==void 0&&((ye&_s)!==Eo?_g(n,t,X):(ye&rn)!==Eo&&(xC(n),n.mode&Qa?(ws(),_g(n,t,X),Ss(n)):_g(n,t,X),TC())),O=O.next}while(O!==R)}}}Zu(e,t,n);return}case v:{if(!Dn){xf(n,t);var Se=n.stateNode;typeof Se.componentWillUnmount=="function"&&dy(n,t,Se)}Zu(e,t,n);return}case ce:{Zu(e,t,n);return}case P:{if(n.mode&ba){var xe=Dn;Dn=xe||n.memoizedState!==null,Zu(e,t,n),Dn=xe}else Zu(e,t,n);break}default:{Zu(e,t,n);return}}}function lj(e){var t=e.memoizedState}function sj(e,t){var n=t.memoizedState;if(n===null){var i=t.alternate;if(i!==null){var c=i.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&$9(f)}}}}function U4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YH),t.forEach(function(i){var c=uU.bind(null,e,i);if(!n.has(i)){if(n.add(i),Ml)if(wf!==null&&Cf!==null)zh(Cf,wf);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");i.then(c,c)}})}}function uj(e,t,n){wf=n,Cf=e,xr(t),V4(t,e),xr(t),wf=null,Cf=null}function ql(e,t,n){var i=t.deletions;if(i!==null)for(var c=0;c<i.length;c++){var f=i[c];try{ij(e,t,f)}catch(x){fr(f,t,x)}}var g=K_();if(t.subtreeFlags&bb)for(var S=t.child;S!==null;)xr(S),V4(S,e),S=S.sibling;xr(g)}function V4(e,t,n){var i=e.alternate,c=e.flags;switch(e.tag){case p:case j:case M:case oe:{if(ql(t,e),Cs(e),c&ka){try{$l(_s|an,e,e.return),Qu(_s|an,e)}catch(Vt){fr(e,e.return,Vt)}if(e.mode&Qa){try{ws(),$l(rn|an,e,e.return)}catch(Vt){fr(e,e.return,Vt)}Ss(e)}else try{$l(rn|an,e,e.return)}catch(Vt){fr(e,e.return,Vt)}}return}case v:{ql(t,e),Cs(e),c&Iu&&i!==null&&xf(i,i.return);return}case w:{ql(t,e),Cs(e),c&Iu&&i!==null&&xf(i,i.return);{if(e.flags&yp){var f=e.stateNode;try{j3(f)}catch(Vt){fr(e,e.return,Vt)}}if(c&ka){var g=e.stateNode;if(g!=null){var S=e.memoizedProps,x=i!==null?i.memoizedProps:S,R=e.type,O=e.updateQueue;if(e.updateQueue=null,O!==null)try{b9(g,O,R,x,S,e)}catch(Vt){fr(e,e.return,Vt)}}}}return}case T:{if(ql(t,e),Cs(e),c&ka){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var Q=e.stateNode,X=e.memoizedProps,ye=i!==null?i.memoizedProps:X;try{y9(Q,ye,X)}catch(Vt){fr(e,e.return,Vt)}}return}case b:{if(ql(t,e),Cs(e),c&ka&&i!==null){var Se=i.memoizedState;if(Se.isDehydrated)try{Y9(t.containerInfo)}catch(Vt){fr(e,e.return,Vt)}}return}case C:{ql(t,e),Cs(e);return}case K:{ql(t,e),Cs(e);var xe=e.child;if(xe.flags&Dc){var it=xe.stateNode,Nt=xe.memoizedState,kt=Nt!==null;if(it.isHidden=kt,kt){var fa=xe.alternate!==null&&xe.alternate.memoizedState!==null;fa||qj()}}if(c&ka){try{lj(e)}catch(Vt){fr(e,e.return,Vt)}U4(e)}return}case P:{var pa=i!==null&&i.memoizedState!==null;if(e.mode&ba){var se=Dn;Dn=se||pa,ql(t,e),Dn=se}else ql(t,e);if(Cs(e),c&Dc){var De=e.stateNode,ue=e.memoizedState,qe=ue!==null,mt=e;if(De.isHidden=qe,qe&&!pa&&(mt.mode&ba)!==Ft){Ct=mt;for(var st=mt.child;st!==null;)Ct=st,dj(st),st=st.sibling}aj(mt,qe)}return}case he:{ql(t,e),Cs(e),c&ka&&U4(e);return}case ce:return;default:{ql(t,e),Cs(e);return}}}function Cs(e){var t=e.flags;if(t&qr){try{oj(e)}catch(n){fr(e,e.return,n)}e.flags&=~qr}t&Ws&&(e.flags&=~Ws)}function cj(e,t,n){wf=n,Cf=t,Ct=e,W4(e,t,n),wf=null,Cf=null}function W4(e,t,n){for(var i=(e.mode&ba)!==Ft;Ct!==null;){var c=Ct,f=c.child;if(c.tag===P&&i){var g=c.memoizedState!==null,S=g||gg;if(S){hy(e,t,n);continue}else{var x=c.alternate,R=x!==null&&x.memoizedState!==null,O=R||Dn,Q=gg,X=Dn;gg=S,Dn=O,Dn&&!X&&(Ct=c,fj(c));for(var ye=f;ye!==null;)Ct=ye,W4(ye,t,n),ye=ye.sibling;Ct=c,gg=Q,Dn=X,hy(e,t,n);continue}}(c.subtreeFlags&wp)!==jt&&f!==null?(f.return=c,Ct=f):hy(e,t,n)}}function hy(e,t,n){for(;Ct!==null;){var i=Ct;if((i.flags&wp)!==jt){var c=i.alternate;xr(i);try{ej(t,c,i,n)}catch(g){fr(i,i.return,g)}mn()}if(i===e){Ct=null;return}var f=i.sibling;if(f!==null){f.return=i.return,Ct=f;return}Ct=i.return}}function dj(e){for(;Ct!==null;){var t=Ct,n=t.child;switch(t.tag){case p:case j:case M:case oe:{if(t.mode&Qa)try{ws(),$l(rn,t,t.return)}finally{Ss(t)}else $l(rn,t,t.return);break}case v:{xf(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&dy(t,t.return,i);break}case w:{xf(t,t.return);break}case P:{var c=t.memoizedState!==null;if(c){Y4(e);continue}break}}n!==null?(n.return=t,Ct=n):Y4(e)}}function Y4(e){for(;Ct!==null;){var t=Ct;if(t===e){Ct=null;return}var n=t.sibling;if(n!==null){n.return=t.return,Ct=n;return}Ct=t.return}}function fj(e){for(;Ct!==null;){var t=Ct,n=t.child;if(t.tag===P){var i=t.memoizedState!==null;if(i){$4(e);continue}}n!==null?(n.return=t,Ct=n):$4(e)}}function $4(e){for(;Ct!==null;){var t=Ct;xr(t);try{tj(t)}catch(i){fr(t,t.return,i)}if(mn(),t===e){Ct=null;return}var n=t.sibling;if(n!==null){n.return=t.return,Ct=n;return}Ct=t.return}}function pj(e,t,n,i){Ct=t,hj(t,e,n,i)}function hj(e,t,n,i){for(;Ct!==null;){var c=Ct,f=c.child;(c.subtreeFlags&Wd)!==jt&&f!==null?(f.return=c,Ct=f):mj(e,t,n,i)}}function mj(e,t,n,i){for(;Ct!==null;){var c=Ct;if((c.flags&Pl)!==jt){xr(c);try{vj(t,c,n,i)}catch(g){fr(c,c.return,g)}mn()}if(c===e){Ct=null;return}var f=c.sibling;if(f!==null){f.return=c.return,Ct=f;return}Ct=c.return}}function vj(e,t,n,i){switch(t.tag){case p:case j:case oe:{if(t.mode&Qa){N0();try{Qu(En|an,t)}finally{B0(t)}}else Qu(En|an,t);break}}}function gj(e){Ct=e,_j()}function _j(){for(;Ct!==null;){var e=Ct,t=e.child;if((Ct.flags&Ec)!==jt){var n=e.deletions;if(n!==null){for(var i=0;i<n.length;i++){var c=n[i];Ct=c,Sj(c,e)}{var f=e.alternate;if(f!==null){var g=f.child;if(g!==null){f.child=null;do{var S=g.sibling;g.sibling=null,g=S}while(g!==null)}}}Ct=e}}(e.subtreeFlags&Wd)!==jt&&t!==null?(t.return=e,Ct=t):bj()}}function bj(){for(;Ct!==null;){var e=Ct;(e.flags&Pl)!==jt&&(xr(e),yj(e),mn());var t=e.sibling;if(t!==null){t.return=e.return,Ct=t;return}Ct=e.return}}function yj(e){switch(e.tag){case p:case j:case oe:{e.mode&Qa?(N0(),$l(En|an,e,e.return),B0(e)):$l(En|an,e,e.return);break}}}function Sj(e,t){for(;Ct!==null;){var n=Ct;xr(n),Cj(n,t),mn();var i=n.child;i!==null?(i.return=n,Ct=i):wj(e)}}function wj(e){for(;Ct!==null;){var t=Ct,n=t.sibling,i=t.return;if(F4(t),t===e){Ct=null;return}if(n!==null){n.return=i,Ct=n;return}Ct=i}}function Cj(e,t){switch(e.tag){case p:case j:case oe:{e.mode&Qa?(N0(),$l(En,e,t),B0(e)):$l(En,e,t);break}}}function xj(e){switch(e.tag){case p:case j:case oe:{try{Qu(rn|an,e)}catch(n){fr(e,e.return,n)}break}case v:{var t=e.stateNode;try{t.componentDidMount()}catch(n){fr(e,e.return,n)}break}}}function Tj(e){switch(e.tag){case p:case j:case oe:{try{Qu(En|an,e)}catch(t){fr(e,e.return,t)}break}}}function kj(e){switch(e.tag){case p:case j:case oe:{try{$l(rn|an,e,e.return)}catch(n){fr(e,e.return,n)}break}case v:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&dy(e,e.return,t);break}}}function Ej(e){switch(e.tag){case p:case j:case oe:try{$l(En|an,e,e.return)}catch(t){fr(e,e.return,t)}}}var Rj=0,Dj=1,Aj=2,Lj=3,Bj=4;if(typeof Symbol=="function"&&Symbol.for){var Rh=Symbol.for;Rj=Rh("selector.component"),Dj=Rh("selector.has_pseudo_class"),Aj=Rh("selector.role"),Lj=Rh("selector.test_id"),Bj=Rh("selector.text")}var Nj=[];function Oj(){Nj.forEach(function(e){return e()})}var Ij=o.ReactCurrentActQueue;function Pj(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest!="undefined";return n&&t!==!1}}function G4(){{var e=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Ij.current!==null&&u("The current testing environment is not configured to support act(...)"),e}}var Mj=Math.ceil,my=o.ReactCurrentDispatcher,vy=o.ReactCurrentOwner,Ln=o.ReactCurrentBatchConfig,Kl=o.ReactCurrentActQueue,ln=0,q4=1,Bn=2,Tl=4,ru=0,Dh=1,Jc=2,bg=3,Ah=4,K4=5,gy=6,ya=ln,ro=null,Rr=null,sn=je,xs=je,_y=Vu(je),un=ru,Lh=null,by=je,yg=je,Bh=je,Sg=je,Nh=null,Ro=null,yy=0,X4=500,J4=1/0,Fj=500,nu=null;function Oh(){J4=vn()+Fj}function Q4(){return J4}var wg=!1,Sy=null,Tf=null,Qc=!1,ec=null,Ih=je,wy=[],Cy=null,zj=50,Ph=0,xy=null,Ty=!1,Cg=!1,Hj=50,kf=0,xg=null,Mh=gr,Tg=je,Z4=!1;function kg(){return ro}function no(){return(ya&(Bn|Tl))!==ln?vn():(Mh!==gr||(Mh=vn()),Mh)}function tc(e){var t=e.mode;if((t&ba)===Ft)return Jt;if((ya&Bn)!==ln&&sn!==je)return Dp(sn);var n=Az()!==Dz;if(n){if(Ln.transition!==null){var i=Ln.transition;i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(e)}return Tg===_n&&(Tg=NC()),Tg}var c=Fl();if(c!==_n)return c;var f=h9();return f}function jj(e){var t=e.mode;return(t&ba)===Ft?Jt:FP()}function cn(e,t,n,i){dU(),Z4&&u("useInsertionEffect must not schedule updates."),Ty&&(Cg=!0),Ap(e,n,i),(ya&Bn)!==je&&e===ro?hU(t):(Ml&&PC(e,t,n),mU(t),e===ro&&((ya&Bn)===ln&&(Bh=ua(Bh,n)),un===Ah&&ac(e,sn)),Do(e,i),n===Jt&&ya===ln&&(t.mode&ba)===Ft&&!Kl.isBatchingLegacy&&(Oh(),Q3()))}function Uj(e,t,n){var i=e.current;i.lanes=t,Ap(e,t,n),Do(e,n)}function Vj(e){return(ya&Bn)!==ln}function Do(e,t){var n=e.callbackNode;BP(e,t);var i=Gm(e,e===ro?sn:je);if(i===je){n!==null&&mT(n),e.callbackNode=null,e.callbackPriority=_n;return}var c=Pc(i),f=e.callbackPriority;if(f===c&&!(Kl.current!==null&&n!==By)){n==null&&f!==Jt&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&mT(n);var g;if(c===Jt)e.tag===Wu?(Kl.isBatchingLegacy!==null&&(Kl.didScheduleLegacyUpdate=!0),fz(aT.bind(null,e))):J3(aT.bind(null,e)),Kl.current!==null?Kl.current.push(Yu):v9(function(){(ya&(Bn|Tl))===ln&&Yu()}),g=null;else{var S;switch(zC(i)){case jo:S=Vm;break;case qs:S=yb;break;case Ks:S=Bc;break;case Xm:S=Sb;break;default:S=Bc;break}g=Ny(S,eT.bind(null,e))}e.callbackPriority=c,e.callbackNode=g}function eT(e,t){if(aH(),Mh=gr,Tg=je,(ya&(Bn|Tl))!==ln)throw new Error("Should not already be working.");var n=e.callbackNode,i=iu();if(i&&e.callbackNode!==n)return null;var c=Gm(e,e===ro?sn:je);if(c===je)return null;var f=!qm(e,c)&&!MP(e,c)&&!t,g=f?Zj(e,c):Rg(e,c);if(g!==ru){if(g===Jc){var S=Vb(e);S!==je&&(c=S,g=ky(e,S))}if(g===Dh){var x=Lh;throw Zc(e,je),ac(e,c),Do(e,vn()),x}if(g===gy)ac(e,c);else{var R=!qm(e,c),O=e.current.alternate;if(R&&!Yj(O)){if(g=Rg(e,c),g===Jc){var Q=Vb(e);Q!==je&&(c=Q,g=ky(e,Q))}if(g===Dh){var X=Lh;throw Zc(e,je),ac(e,c),Do(e,vn()),X}}e.finishedWork=O,e.finishedLanes=c,Wj(e,g,c)}}return Do(e,vn()),e.callbackNode===n?eT.bind(null,e):null}function ky(e,t){var n=Nh;if(Jm(e)){var i=Zc(e,t);i.flags|=Vs,oz(e.containerInfo)}var c=Rg(e,t);if(c!==Jc){var f=Ro;Ro=n,f!==null&&tT(f)}return c}function tT(e){Ro===null?Ro=e:Ro.push.apply(Ro,e)}function Wj(e,t,n){switch(t){case ru:case Dh:throw new Error("Root did not complete. This is a bug in React.");case Jc:{ed(e,Ro,nu);break}case bg:{if(ac(e,n),LC(n)&&!vT()){var i=yy+X4-vn();if(i>10){var c=Gm(e,je);if(c!==je)break;var f=e.suspendedLanes;if(!Kd(f,n)){var g=no();IC(e,f);break}e.timeoutHandle=w1(ed.bind(null,e,Ro,nu),i);break}}ed(e,Ro,nu);break}case Ah:{if(ac(e,n),PP(n))break;if(!vT()){var S=AP(e,n),x=S,R=vn()-x,O=cU(R)-R;if(O>10){e.timeoutHandle=w1(ed.bind(null,e,Ro,nu),O);break}}ed(e,Ro,nu);break}case K4:{ed(e,Ro,nu);break}default:throw new Error("Unknown root exit status.")}}function Yj(e){for(var t=e;;){if(t.flags&jm){var n=t.updateQueue;if(n!==null){var i=n.stores;if(i!==null)for(var c=0;c<i.length;c++){var f=i[c],g=f.getSnapshot,S=f.value;try{if(!Vo(g(),S))return!1}catch(R){return!1}}}}var x=t.child;if(t.subtreeFlags&jm&&x!==null){x.return=t,t=x;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function ac(e,t){t=Km(t,Sg),t=Km(t,Bh),HP(e,t)}function aT(e){if(rH(),(ya&(Bn|Tl))!==ln)throw new Error("Should not already be working.");iu();var t=Gm(e,je);if(!Ho(t,Jt))return Do(e,vn()),null;var n=Rg(e,t);if(e.tag!==Wu&&n===Jc){var i=Vb(e);i!==je&&(t=i,n=ky(e,i))}if(n===Dh){var c=Lh;throw Zc(e,je),ac(e,t),Do(e,vn()),c}if(n===gy)throw new Error("Root did not complete. This is a bug in React.");var f=e.current.alternate;return e.finishedWork=f,e.finishedLanes=t,ed(e,Ro,nu),Do(e,vn()),null}function $j(e,t){t!==je&&(Gb(e,ua(t,Jt)),Do(e,vn()),(ya&(Bn|Tl))===ln&&(Oh(),Yu()))}function Ey(e,t){var n=ya;ya|=q4;try{return e(t)}finally{ya=n,ya===ln&&!Kl.isBatchingLegacy&&(Oh(),Q3())}}function Gj(e,t,n,i,c){var f=Fl(),g=Ln.transition;try{return Ln.transition=null,bn(jo),e(t,n,i,c)}finally{bn(f),Ln.transition=g,ya===ln&&Oh()}}function ou(e){ec!==null&&ec.tag===Wu&&(ya&(Bn|Tl))===ln&&iu();var t=ya;ya|=q4;var n=Ln.transition,i=Fl();try{return Ln.transition=null,bn(jo),e?e():void 0}finally{bn(i),Ln.transition=n,ya=t,(ya&(Bn|Tl))===ln&&Yu()}}function rT(){return(ya&(Bn|Tl))!==ln}function Eg(e,t){Un(_y,xs,e),xs=ua(xs,t),by=ua(by,t)}function Ry(e){xs=_y.current,jn(_y,e)}function Zc(e,t){e.finishedWork=null,e.finishedLanes=je;var n=e.timeoutHandle;if(n!==C1&&(e.timeoutHandle=C1,m9(n)),Rr!==null)for(var i=Rr.return;i!==null;){var c=i.alternate;L4(c,i),i=i.return}ro=e;var f=td(e.current,null);return Rr=f,sn=xs=by=t,un=ru,Lh=null,yg=je,Bh=je,Sg=je,Nh=null,Ro=null,Mz(),jl.discardPendingWarnings(),f}function nT(e,t){do{var n=Rr;try{if(Mv(),Ex(),mn(),vy.current=null,n===null||n.return===null){un=Dh,Lh=t,Rr=null;return}if(pt&&n.mode&Qa&&fg(n,!0),ze)if(Yd(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var i=t;_P(n,i,sn)}else gP(n,t,sn);fH(e,n.return,n,t,sn),sT(n)}catch(c){t=c,Rr===n&&n!==null?(n=n.return,Rr=n):n=Rr;continue}return}while(!0)}function oT(){var e=my.current;return my.current=lg,e===null?lg:e}function iT(e){my.current=e}function qj(){yy=vn()}function Fh(e){yg=ua(e,yg)}function Kj(){un===ru&&(un=bg)}function Dy(){(un===ru||un===bg||un===Jc)&&(un=Ah),ro!==null&&(Wb(yg)||Wb(Bh))&&ac(ro,sn)}function Xj(e){un!==Ah&&(un=Jc),Nh===null?Nh=[e]:Nh.push(e)}function Jj(){return un===ru}function Rg(e,t){var n=ya;ya|=Bn;var i=oT();if(ro!==e||sn!==t){if(Ml){var c=e.memoizedUpdaters;c.size>0&&(zh(e,sn),c.clear()),MC(e,t)}nu=FC(),Zc(e,t)}kC(t);do try{Qj();break}catch(f){nT(e,f)}while(!0);if(Mv(),ya=n,iT(i),Rr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return EC(),ro=null,sn=je,un}function Qj(){for(;Rr!==null;)lT(Rr)}function Zj(e,t){var n=ya;ya|=Bn;var i=oT();if(ro!==e||sn!==t){if(Ml){var c=e.memoizedUpdaters;c.size>0&&(zh(e,sn),c.clear()),MC(e,t)}nu=FC(),Oh(),Zc(e,t)}kC(t);do try{eU();break}catch(f){nT(e,f)}while(!0);return Mv(),iT(i),ya=n,Rr!==null?(CP(),ru):(EC(),ro=null,sn=je,un)}function eU(){for(;Rr!==null&&!JI();)lT(Rr)}function lT(e){var t=e.alternate;xr(e);var n;(e.mode&Qa)!==Ft?(L0(e),n=Ay(t,e,xs),fg(e,!0)):n=Ay(t,e,xs),mn(),e.memoizedProps=e.pendingProps,n===null?sT(e):Rr=n,vy.current=null}function sT(e){var t=e;do{var n=t.alternate,i=t.return;if((t.flags&Sp)===jt){xr(t);var c=void 0;if((t.mode&Qa)===Ft?c=A4(n,t,xs):(L0(t),c=A4(n,t,xs),fg(t,!1)),mn(),c!==null){Rr=c;return}}else{var f=WH(n,t);if(f!==null){f.flags&=YI,Rr=f;return}if((t.mode&Qa)!==Ft){fg(t,!1);for(var g=t.actualDuration,S=t.child;S!==null;)g+=S.actualDuration,S=S.sibling;t.actualDuration=g}if(i!==null)i.flags|=Sp,i.subtreeFlags=jt,i.deletions=null;else{un=gy,Rr=null;return}}var x=t.sibling;if(x!==null){Rr=x;return}t=i,Rr=t}while(t!==null);un===ru&&(un=K4)}function ed(e,t,n){var i=Fl(),c=Ln.transition;try{Ln.transition=null,bn(jo),tU(e,t,n,i)}finally{Ln.transition=c,bn(i)}return null}function tU(e,t,n,i){do iu();while(ec!==null);if(fU(),(ya&(Bn|Tl))!==ln)throw new Error("Should not already be working.");var c=e.finishedWork,f=e.finishedLanes;if(cP(f),c===null)return CC(),null;if(f===je&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=je,c===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=_n;var g=ua(c.lanes,c.childLanes);jP(e,g),e===ro&&(ro=null,Rr=null,sn=je),((c.subtreeFlags&Wd)!==jt||(c.flags&Wd)!==jt)&&(Qc||(Qc=!0,Cy=n,Ny(Bc,function(){return iu(),null})));var S=(c.subtreeFlags&(_b|bb|wp|Wd))!==jt,x=(c.flags&(_b|bb|wp|Wd))!==jt;if(S||x){var R=Ln.transition;Ln.transition=null;var O=Fl();bn(jo);var Q=ya;ya|=Tl,vy.current=null;var X=KH(e,c);Qx(),uj(e,c,f),s9(e.containerInfo),e.current=c,bP(f),cj(c,e,f),yP(),QI(),ya=Q,bn(O),Ln.transition=R}else e.current=c,Qx();var ye=Qc;if(Qc?(Qc=!1,ec=e,Ih=f):(kf=0,xg=null),g=e.pendingLanes,g===je&&(Tf=null),ye||fT(e.current,!1),oP(c.stateNode,i),Ml&&e.memoizedUpdaters.clear(),Oj(),Do(e,vn()),t!==null)for(var Se=e.onRecoverableError,xe=0;xe<t.length;xe++){var it=t[xe],Nt=it.stack,kt=it.digest;Se(it.value,{componentStack:Nt,digest:kt})}if(wg){wg=!1;var fa=Sy;throw Sy=null,fa}return Ho(Ih,Jt)&&e.tag!==Wu&&iu(),g=e.pendingLanes,Ho(g,Jt)?(tH(),e===xy?Ph++:(Ph=0,xy=e)):Ph=0,Yu(),CC(),null}function iu(){if(ec!==null){var e=zC(Ih),t=YP(Ks,e),n=Ln.transition,i=Fl();try{return Ln.transition=null,bn(t),rU()}finally{bn(i),Ln.transition=n}}return!1}function aU(e){wy.push(e),Qc||(Qc=!0,Ny(Bc,function(){return iu(),null}))}function rU(){if(ec===null)return!1;var e=Cy;Cy=null;var t=ec,n=Ih;if(ec=null,Ih=je,(ya&(Bn|Tl))!==ln)throw new Error("Cannot flush passive effects while already rendering.");Ty=!0,Cg=!1,SP(n);var i=ya;ya|=Tl,gj(t.current),pj(t,t.current,n,e);{var c=wy;wy=[];for(var f=0;f<c.length;f++){var g=c[f];ZH(t,g)}}wP(),fT(t.current,!0),ya=i,Yu(),Cg?t===xg?kf++:(kf=0,xg=t):kf=0,Ty=!1,Cg=!1,iP(t);{var S=t.current.stateNode;S.effectDuration=0,S.passiveEffectDuration=0}return!0}function uT(e){return Tf!==null&&Tf.has(e)}function nU(e){Tf===null?Tf=new Set([e]):Tf.add(e)}function oU(e){wg||(wg=!0,Sy=e)}var iU=oU;function cT(e,t,n){var i=Kc(n,t),c=i4(e,i,Jt),f=Gu(e,c,Jt),g=no();f!==null&&(Ap(f,Jt,g),Do(f,g))}function fr(e,t,n){if($H(n),Hh(!1),e.tag===b){cT(e,e,n);return}var i=null;for(i=t;i!==null;){if(i.tag===b){cT(i,e,n);return}else if(i.tag===v){var c=i.type,f=i.stateNode;if(typeof c.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&!uT(f)){var g=Kc(n,e),S=K0(i,g,Jt),x=Gu(i,S,Jt),R=no();x!==null&&(Ap(x,Jt,R),Do(x,R));return}}i=i.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
116
116
 
117
117
  Error message:
118
118
 
119
- %s`,n)}function lU(e,t,n){var i=e.pingCache;i!==null&&i.delete(t);var c=no();IC(e,n),vU(e),ro===e&&Kd(sn,n)&&(un===Ah||un===bg&&LC(sn)&&vn()-yy<XT?Zc(e,je):Sg=ua(Sg,n)),Do(e,c)}function d4(e,t){t===_n&&(t=jj(e));var n=no(),i=ko(e,t);i!==null&&(Ap(i,t,n),Do(i,n))}function sU(e){var t=e.memoizedState,n=_n;t!==null&&(n=t.retryLane),d4(e,n)}function uU(e,t){var n=_n,i;switch(e.tag){case K:i=e.stateNode;var c=e.memoizedState;c!==null&&(n=c.retryLane);break;case he:i=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}i!==null&&i.delete(t),d4(e,n)}function cU(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Mj(e/1960)*1960}function dU(){if(Ph>zj)throw Ph=0,xy=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");kf>Hj&&(kf=0,xg=null,u("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function fU(){jl.flushLegacyContextWarning(),jl.flushPendingUnsafeLifecycleWarnings()}function f4(e,t){xr(e),Dg(e,Ys,kj),t&&Dg(e,Um,Ej),Dg(e,Ys,xj),t&&Dg(e,Um,Tj),mn()}function Dg(e,t,n){for(var i=e,c=null;i!==null;){var f=i.subtreeFlags&t;i!==c&&i.child!==null&&f!==jt?i=i.child:((i.flags&t)!==jt&&n(i),i.sibling!==null?i=i.sibling:i=c=i.return)}}var Ag=null;function p4(e){{if((ya&Bn)!==ln||!(e.mode&ba))return;var t=e.tag;if(t!==y&&t!==b&&t!==v&&t!==p&&t!==j&&t!==M&&t!==oe)return;var n=na(e)||"ReactComponent";if(Ag!==null){if(Ag.has(n))return;Ag.add(n)}else Ag=new Set([n]);var i=Hn;try{xr(e),u("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{i?xr(e):mn()}}}var Ay;{var pU=null;Ay=function(e,t,n){var i=S4(pU,t);try{return TT(e,t,n)}catch(f){if(yz()||f!==null&&typeof f=="object"&&typeof f.then=="function")throw f;if(Mv(),Ex(),LT(e,t),S4(t,i),t.mode&Qa&&L0(t),fb(null,TT,null,e,t,n),jI()){var c=pb();typeof c=="object"&&c!==null&&c._suppressLogging&&typeof f=="object"&&f!==null&&!f._suppressLogging&&(f._suppressLogging=!0)}throw f}}}var h4=!1,Ly;Ly=new Set;function hU(e){if(Bu&&!Qz())switch(e.tag){case p:case j:case oe:{var t=Rr&&na(Rr)||"Unknown",n=t;if(!Ly.has(n)){Ly.add(n);var i=na(e)||"Unknown";u("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",i,t,t)}break}case v:{h4||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),h4=!0);break}}}function zh(e,t){if(Ml){var n=e.memoizedUpdaters;n.forEach(function(i){PC(e,i,t)})}}var By={};function Ny(e,t){{var n=Kl.current;return n!==null?(n.push(t),By):wC(e,t)}}function m4(e){if(e!==By)return XI(e)}function v4(){return Kl.current!==null}function mU(e){{if(e.mode&ba){if(!GT())return}else if(!Pj()||ya!==ln||e.tag!==p&&e.tag!==j&&e.tag!==oe)return;if(Kl.current===null){var t=Hn;try{xr(e),u(`An update to %s inside a test was not wrapped in act(...).
119
+ %s`,n)}function lU(e,t,n){var i=e.pingCache;i!==null&&i.delete(t);var c=no();IC(e,n),vU(e),ro===e&&Kd(sn,n)&&(un===Ah||un===bg&&LC(sn)&&vn()-yy<X4?Zc(e,je):Sg=ua(Sg,n)),Do(e,c)}function dT(e,t){t===_n&&(t=jj(e));var n=no(),i=ko(e,t);i!==null&&(Ap(i,t,n),Do(i,n))}function sU(e){var t=e.memoizedState,n=_n;t!==null&&(n=t.retryLane),dT(e,n)}function uU(e,t){var n=_n,i;switch(e.tag){case K:i=e.stateNode;var c=e.memoizedState;c!==null&&(n=c.retryLane);break;case he:i=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}i!==null&&i.delete(t),dT(e,n)}function cU(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Mj(e/1960)*1960}function dU(){if(Ph>zj)throw Ph=0,xy=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");kf>Hj&&(kf=0,xg=null,u("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function fU(){jl.flushLegacyContextWarning(),jl.flushPendingUnsafeLifecycleWarnings()}function fT(e,t){xr(e),Dg(e,Ys,kj),t&&Dg(e,Um,Ej),Dg(e,Ys,xj),t&&Dg(e,Um,Tj),mn()}function Dg(e,t,n){for(var i=e,c=null;i!==null;){var f=i.subtreeFlags&t;i!==c&&i.child!==null&&f!==jt?i=i.child:((i.flags&t)!==jt&&n(i),i.sibling!==null?i=i.sibling:i=c=i.return)}}var Ag=null;function pT(e){{if((ya&Bn)!==ln||!(e.mode&ba))return;var t=e.tag;if(t!==y&&t!==b&&t!==v&&t!==p&&t!==j&&t!==M&&t!==oe)return;var n=na(e)||"ReactComponent";if(Ag!==null){if(Ag.has(n))return;Ag.add(n)}else Ag=new Set([n]);var i=Hn;try{xr(e),u("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{i?xr(e):mn()}}}var Ay;{var pU=null;Ay=function(e,t,n){var i=ST(pU,t);try{return T4(e,t,n)}catch(f){if(yz()||f!==null&&typeof f=="object"&&typeof f.then=="function")throw f;if(Mv(),Ex(),L4(e,t),ST(t,i),t.mode&Qa&&L0(t),fb(null,T4,null,e,t,n),jI()){var c=pb();typeof c=="object"&&c!==null&&c._suppressLogging&&typeof f=="object"&&f!==null&&!f._suppressLogging&&(f._suppressLogging=!0)}throw f}}}var hT=!1,Ly;Ly=new Set;function hU(e){if(Bu&&!Qz())switch(e.tag){case p:case j:case oe:{var t=Rr&&na(Rr)||"Unknown",n=t;if(!Ly.has(n)){Ly.add(n);var i=na(e)||"Unknown";u("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",i,t,t)}break}case v:{hT||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),hT=!0);break}}}function zh(e,t){if(Ml){var n=e.memoizedUpdaters;n.forEach(function(i){PC(e,i,t)})}}var By={};function Ny(e,t){{var n=Kl.current;return n!==null?(n.push(t),By):wC(e,t)}}function mT(e){if(e!==By)return XI(e)}function vT(){return Kl.current!==null}function mU(e){{if(e.mode&ba){if(!G4())return}else if(!Pj()||ya!==ln||e.tag!==p&&e.tag!==j&&e.tag!==oe)return;if(Kl.current===null){var t=Hn;try{xr(e),u(`An update to %s inside a test was not wrapped in act(...).
120
120
 
121
121
  When testing, code that causes React state updates should be wrapped into act(...):
122
122
 
@@ -125,7 +125,7 @@ act(() => {
125
125
  });
126
126
  /* assert on the output */
127
127
 
128
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,na(e))}finally{t?xr(e):mn()}}}}function vU(e){e.tag!==Wu&&GT()&&Kl.current===null&&u(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
128
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,na(e))}finally{t?xr(e):mn()}}}}function vU(e){e.tag!==Wu&&G4()&&Kl.current===null&&u(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
129
129
 
130
130
  When testing, code that resolves suspended data should be wrapped into act(...):
131
131
 
@@ -134,14 +134,14 @@ act(() => {
134
134
  });
135
135
  /* assert on the output */
136
136
 
137
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Hh(e){ZT=e}var kl=null,Ef=null,gU=function(e){kl=e};function Rf(e){{if(kl===null)return e;var t=kl(e);return t===void 0?e:t.current}}function Oy(e){return Rf(e)}function Iy(e){{if(kl===null)return e;var t=kl(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=Rf(e.render);if(e.render!==n){var i={$$typeof:ge,render:n};return e.displayName!==void 0&&(i.displayName=e.displayName),i}}return e}return t.current}}function g4(e,t){{if(kl===null)return!1;var n=e.elementType,i=t.type,c=!1,f=typeof i=="object"&&i!==null?i.$$typeof:null;switch(e.tag){case v:{typeof i=="function"&&(c=!0);break}case p:{(typeof i=="function"||f===at)&&(c=!0);break}case j:{(f===ge||f===at)&&(c=!0);break}case M:case oe:{(f===_t||f===at)&&(c=!0);break}default:return!1}if(c){var g=kl(n);if(g!==void 0&&g===kl(i))return!0}return!1}}function _4(e){{if(kl===null||typeof WeakSet!="function")return;Ef===null&&(Ef=new WeakSet),Ef.add(e)}}var _U=function(e,t){{if(kl===null)return;var n=t.staleFamilies,i=t.updatedFamilies;iu(),ou(function(){Py(e.current,i,n)})}},bU=function(e,t){{if(e.context!==Wo)return;iu(),ou(function(){jh(t,e,null,null)})}};function Py(e,t,n){{var i=e.alternate,c=e.child,f=e.sibling,g=e.tag,S=e.type,x=null;switch(g){case p:case oe:case v:x=S;break;case j:x=S.render;break}if(kl===null)throw new Error("Expected resolveFamily to be set during hot reload.");var R=!1,O=!1;if(x!==null){var Q=kl(x);Q!==void 0&&(n.has(Q)?O=!0:t.has(Q)&&(g===v?O=!0:R=!0))}if(Ef!==null&&(Ef.has(e)||i!==null&&Ef.has(i))&&(O=!0),O&&(e._debugNeedsRemount=!0),O||R){var X=ko(e,Jt);X!==null&&cn(X,e,Jt,gr)}c!==null&&!O&&Py(c,t,n),f!==null&&Py(f,t,n)}}var yU=function(e,t){{var n=new Set,i=new Set(t.map(function(c){return c.current}));return My(e.current,i,n),n}};function My(e,t,n){{var i=e.child,c=e.sibling,f=e.tag,g=e.type,S=null;switch(f){case p:case oe:case v:S=g;break;case j:S=g.render;break}var x=!1;S!==null&&t.has(S)&&(x=!0),x?SU(e,n):i!==null&&My(i,t,n),c!==null&&My(c,t,n)}}function SU(e,t){{var n=wU(e,t);if(n)return;for(var i=e;;){switch(i.tag){case w:t.add(i.stateNode);return;case C:t.add(i.stateNode.containerInfo);return;case b:t.add(i.stateNode.containerInfo);return}if(i.return===null)throw new Error("Expected to reach root first.");i=i.return}}}function wU(e,t){for(var n=e,i=!1;;){if(n.tag===w)i=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return i;for(;n.sibling===null;){if(n.return===null||n.return===e)return i;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Fy;{Fy=!1;try{var b4=Object.preventExtensions({})}catch(e){Fy=!0}}function CU(e,t,n,i){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=i,this.flags=jt,this.subtreeFlags=jt,this.deletions=null,this.lanes=je,this.childLanes=je,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Fy&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Yo=function(e,t,n,i){return new CU(e,t,n,i)};function zy(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function xU(e){return typeof e=="function"&&!zy(e)&&e.defaultProps===void 0}function TU(e){if(typeof e=="function")return zy(e)?v:p;if(e!=null){var t=e.$$typeof;if(t===ge)return j;if(t===_t)return M}return y}function td(e,t){var n=e.alternate;n===null?(n=Yo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=jt,n.subtreeFlags=jt,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&$s,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var i=e.dependencies;switch(n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case y:case p:case oe:n.type=Rf(e.type);break;case v:n.type=Oy(e.type);break;case j:n.type=Iy(e.type);break}return n}function kU(e,t){e.flags&=$s|qr;var n=e.alternate;if(n===null)e.childLanes=je,e.lanes=t,e.child=null,e.subtreeFlags=jt,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=jt,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var i=n.dependencies;e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function EU(e,t,n){var i;return e===Ev?(i=ba,t===!0&&(i|=Nr,i|=hs)):i=Ft,Ml&&(i|=Qa),Yo(b,null,null,i)}function Hy(e,t,n,i,c,f){var g=y,S=e;if(typeof e=="function")zy(e)?(g=v,S=Oy(S)):S=Rf(S);else if(typeof e=="string")g=w;else e:switch(e){case le:return rc(n.children,c,f,t);case $e:g=A,c|=Nr,(c&ba)!==Ft&&(c|=hs);break;case Ue:return RU(n,c,f,t);case Te:return DU(n,c,f,t);case Ye:return AU(n,c,f,t);case At:return y4(n,c,f,t);case qt:case Qe:case Xa:case jr:case Rt:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:g=F;break e;case G:g=$;break e;case ge:g=j,S=Iy(S);break e;case _t:g=M;break e;case at:g=ke,S=null;break e}var x="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=i?na(i):null;R&&(x+=`
137
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Hh(e){Z4=e}var kl=null,Ef=null,gU=function(e){kl=e};function Rf(e){{if(kl===null)return e;var t=kl(e);return t===void 0?e:t.current}}function Oy(e){return Rf(e)}function Iy(e){{if(kl===null)return e;var t=kl(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=Rf(e.render);if(e.render!==n){var i={$$typeof:ge,render:n};return e.displayName!==void 0&&(i.displayName=e.displayName),i}}return e}return t.current}}function gT(e,t){{if(kl===null)return!1;var n=e.elementType,i=t.type,c=!1,f=typeof i=="object"&&i!==null?i.$$typeof:null;switch(e.tag){case v:{typeof i=="function"&&(c=!0);break}case p:{(typeof i=="function"||f===at)&&(c=!0);break}case j:{(f===ge||f===at)&&(c=!0);break}case M:case oe:{(f===_t||f===at)&&(c=!0);break}default:return!1}if(c){var g=kl(n);if(g!==void 0&&g===kl(i))return!0}return!1}}function _T(e){{if(kl===null||typeof WeakSet!="function")return;Ef===null&&(Ef=new WeakSet),Ef.add(e)}}var _U=function(e,t){{if(kl===null)return;var n=t.staleFamilies,i=t.updatedFamilies;iu(),ou(function(){Py(e.current,i,n)})}},bU=function(e,t){{if(e.context!==Wo)return;iu(),ou(function(){jh(t,e,null,null)})}};function Py(e,t,n){{var i=e.alternate,c=e.child,f=e.sibling,g=e.tag,S=e.type,x=null;switch(g){case p:case oe:case v:x=S;break;case j:x=S.render;break}if(kl===null)throw new Error("Expected resolveFamily to be set during hot reload.");var R=!1,O=!1;if(x!==null){var Q=kl(x);Q!==void 0&&(n.has(Q)?O=!0:t.has(Q)&&(g===v?O=!0:R=!0))}if(Ef!==null&&(Ef.has(e)||i!==null&&Ef.has(i))&&(O=!0),O&&(e._debugNeedsRemount=!0),O||R){var X=ko(e,Jt);X!==null&&cn(X,e,Jt,gr)}c!==null&&!O&&Py(c,t,n),f!==null&&Py(f,t,n)}}var yU=function(e,t){{var n=new Set,i=new Set(t.map(function(c){return c.current}));return My(e.current,i,n),n}};function My(e,t,n){{var i=e.child,c=e.sibling,f=e.tag,g=e.type,S=null;switch(f){case p:case oe:case v:S=g;break;case j:S=g.render;break}var x=!1;S!==null&&t.has(S)&&(x=!0),x?SU(e,n):i!==null&&My(i,t,n),c!==null&&My(c,t,n)}}function SU(e,t){{var n=wU(e,t);if(n)return;for(var i=e;;){switch(i.tag){case w:t.add(i.stateNode);return;case C:t.add(i.stateNode.containerInfo);return;case b:t.add(i.stateNode.containerInfo);return}if(i.return===null)throw new Error("Expected to reach root first.");i=i.return}}}function wU(e,t){for(var n=e,i=!1;;){if(n.tag===w)i=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return i;for(;n.sibling===null;){if(n.return===null||n.return===e)return i;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Fy;{Fy=!1;try{var bT=Object.preventExtensions({})}catch(e){Fy=!0}}function CU(e,t,n,i){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=i,this.flags=jt,this.subtreeFlags=jt,this.deletions=null,this.lanes=je,this.childLanes=je,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Fy&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Yo=function(e,t,n,i){return new CU(e,t,n,i)};function zy(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function xU(e){return typeof e=="function"&&!zy(e)&&e.defaultProps===void 0}function TU(e){if(typeof e=="function")return zy(e)?v:p;if(e!=null){var t=e.$$typeof;if(t===ge)return j;if(t===_t)return M}return y}function td(e,t){var n=e.alternate;n===null?(n=Yo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=jt,n.subtreeFlags=jt,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&$s,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var i=e.dependencies;switch(n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case y:case p:case oe:n.type=Rf(e.type);break;case v:n.type=Oy(e.type);break;case j:n.type=Iy(e.type);break}return n}function kU(e,t){e.flags&=$s|qr;var n=e.alternate;if(n===null)e.childLanes=je,e.lanes=t,e.child=null,e.subtreeFlags=jt,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=jt,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var i=n.dependencies;e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function EU(e,t,n){var i;return e===Ev?(i=ba,t===!0&&(i|=Nr,i|=hs)):i=Ft,Ml&&(i|=Qa),Yo(b,null,null,i)}function Hy(e,t,n,i,c,f){var g=y,S=e;if(typeof e=="function")zy(e)?(g=v,S=Oy(S)):S=Rf(S);else if(typeof e=="string")g=w;else e:switch(e){case le:return rc(n.children,c,f,t);case $e:g=A,c|=Nr,(c&ba)!==Ft&&(c|=hs);break;case Ue:return RU(n,c,f,t);case Te:return DU(n,c,f,t);case Ye:return AU(n,c,f,t);case At:return yT(n,c,f,t);case qt:case Qe:case Xa:case jr:case Rt:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:g=F;break e;case G:g=$;break e;case ge:g=j,S=Iy(S);break e;case _t:g=M;break e;case at:g=ke,S=null;break e}var x="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=i?na(i):null;R&&(x+=`
138
138
 
139
- Check the render method of \``+R+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+x))}}var O=Yo(g,n,t,c);return O.elementType=e,O.type=S,O.lanes=f,O._debugOwner=i,O}function jy(e,t,n){var i=null;i=e._owner;var c=e.type,f=e.key,g=e.props,S=Hy(c,f,g,i,t,n);return S._debugSource=e._source,S._debugOwner=e._owner,S}function rc(e,t,n,i){var c=Yo(L,e,i,t);return c.lanes=n,c}function RU(e,t,n,i){typeof e.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var c=Yo(U,e,i,t|Qa);return c.elementType=Ue,c.lanes=n,c.stateNode={effectDuration:0,passiveEffectDuration:0},c}function DU(e,t,n,i){var c=Yo(K,e,i,t);return c.elementType=Te,c.lanes=n,c}function AU(e,t,n,i){var c=Yo(he,e,i,t);return c.elementType=Ye,c.lanes=n,c}function y4(e,t,n,i){var c=Yo(P,e,i,t);c.elementType=At,c.lanes=n;var f={isHidden:!1};return c.stateNode=f,c}function Uy(e,t,n){var i=Yo(T,e,null,t);return i.lanes=n,i}function LU(){var e=Yo(w,null,null,Ft);return e.elementType="DELETED",e}function BU(e){var t=Yo(pe,null,null,Ft);return t.stateNode=e,t}function Vy(e,t,n){var i=e.children!==null?e.children:[],c=Yo(C,i,e.key,t);return c.lanes=n,c.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},c}function S4(e,t){return e===null&&(e=Yo(y,null,null,Ft)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function NU(e,t,n,i,c){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=C1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=_n,this.eventTimes=$b(je),this.expirationTimes=$b(gr),this.pendingLanes=je,this.suspendedLanes=je,this.pingedLanes=je,this.expiredLanes=je,this.mutableReadLanes=je,this.finishedLanes=je,this.entangledLanes=je,this.entanglements=$b(je),this.identifierPrefix=i,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var f=this.pendingUpdatersLaneMap=[],g=0;g<Cb;g++)f.push(new Set)}switch(t){case Ev:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case Wu:this._debugRootType=n?"hydrate()":"render()";break}}function w4(e,t,n,i,c,f,g,S,x,R){var O=new NU(e,t,n,S,x),Q=EU(t,f);O.current=Q,Q.stateNode=O;{var X={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};Q.memoizedState=X}return t0(Q),O}var Wy="18.3.1";function OU(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return xa(i),{$$typeof:ae,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var Yy,$y;Yy=!1,$y={};function C4(e){if(!e)return Wo;var t=Ud(e),n=dz(t);if(t.tag===v){var i=t.type;if(gs(i))return K3(t,i,n)}return n}function IU(e,t){{var n=Ud(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var i=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+i)}var c=bC(n);if(c===null)return null;if(c.mode&Nr){var f=na(n)||"Component";if(!$y[f]){$y[f]=!0;var g=Hn;try{xr(c),n.mode&Nr?u("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,f):u("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,f)}finally{g?xr(g):mn()}}}return c.stateNode}}function x4(e,t,n,i,c,f,g,S){var x=!1,R=null;return w4(e,t,x,R,n,i,c,f,g)}function T4(e,t,n,i,c,f,g,S,x,R){var O=!0,Q=w4(n,i,O,e,c,f,g,S,x);Q.context=C4(null);var X=Q.current,ye=no(),Se=tc(X),xe=tu(ye,Se);return xe.callback=t!=null?t:null,Gu(X,xe,Se),Uj(Q,Se,ye),Q}function jh(e,t,n,i){nP(t,e);var c=t.current,f=no(),g=tc(c);xP(g);var S=C4(n);t.context===null?t.context=S:t.pendingContext=S,Bu&&Hn!==null&&!Yy&&(Yy=!0,u(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
139
+ Check the render method of \``+R+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+x))}}var O=Yo(g,n,t,c);return O.elementType=e,O.type=S,O.lanes=f,O._debugOwner=i,O}function jy(e,t,n){var i=null;i=e._owner;var c=e.type,f=e.key,g=e.props,S=Hy(c,f,g,i,t,n);return S._debugSource=e._source,S._debugOwner=e._owner,S}function rc(e,t,n,i){var c=Yo(L,e,i,t);return c.lanes=n,c}function RU(e,t,n,i){typeof e.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var c=Yo(U,e,i,t|Qa);return c.elementType=Ue,c.lanes=n,c.stateNode={effectDuration:0,passiveEffectDuration:0},c}function DU(e,t,n,i){var c=Yo(K,e,i,t);return c.elementType=Te,c.lanes=n,c}function AU(e,t,n,i){var c=Yo(he,e,i,t);return c.elementType=Ye,c.lanes=n,c}function yT(e,t,n,i){var c=Yo(P,e,i,t);c.elementType=At,c.lanes=n;var f={isHidden:!1};return c.stateNode=f,c}function Uy(e,t,n){var i=Yo(T,e,null,t);return i.lanes=n,i}function LU(){var e=Yo(w,null,null,Ft);return e.elementType="DELETED",e}function BU(e){var t=Yo(pe,null,null,Ft);return t.stateNode=e,t}function Vy(e,t,n){var i=e.children!==null?e.children:[],c=Yo(C,i,e.key,t);return c.lanes=n,c.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},c}function ST(e,t){return e===null&&(e=Yo(y,null,null,Ft)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function NU(e,t,n,i,c){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=C1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=_n,this.eventTimes=$b(je),this.expirationTimes=$b(gr),this.pendingLanes=je,this.suspendedLanes=je,this.pingedLanes=je,this.expiredLanes=je,this.mutableReadLanes=je,this.finishedLanes=je,this.entangledLanes=je,this.entanglements=$b(je),this.identifierPrefix=i,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var f=this.pendingUpdatersLaneMap=[],g=0;g<Cb;g++)f.push(new Set)}switch(t){case Ev:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case Wu:this._debugRootType=n?"hydrate()":"render()";break}}function wT(e,t,n,i,c,f,g,S,x,R){var O=new NU(e,t,n,S,x),Q=EU(t,f);O.current=Q,Q.stateNode=O;{var X={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};Q.memoizedState=X}return t0(Q),O}var Wy="18.3.1";function OU(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return xa(i),{$$typeof:ae,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var Yy,$y;Yy=!1,$y={};function CT(e){if(!e)return Wo;var t=Ud(e),n=dz(t);if(t.tag===v){var i=t.type;if(gs(i))return K3(t,i,n)}return n}function IU(e,t){{var n=Ud(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var i=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+i)}var c=bC(n);if(c===null)return null;if(c.mode&Nr){var f=na(n)||"Component";if(!$y[f]){$y[f]=!0;var g=Hn;try{xr(c),n.mode&Nr?u("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,f):u("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,f)}finally{g?xr(g):mn()}}}return c.stateNode}}function xT(e,t,n,i,c,f,g,S){var x=!1,R=null;return wT(e,t,x,R,n,i,c,f,g)}function TT(e,t,n,i,c,f,g,S,x,R){var O=!0,Q=wT(n,i,O,e,c,f,g,S,x);Q.context=CT(null);var X=Q.current,ye=no(),Se=tc(X),xe=tu(ye,Se);return xe.callback=t!=null?t:null,Gu(X,xe,Se),Uj(Q,Se,ye),Q}function jh(e,t,n,i){nP(t,e);var c=t.current,f=no(),g=tc(c);xP(g);var S=CT(n);t.context===null?t.context=S:t.pendingContext=S,Bu&&Hn!==null&&!Yy&&(Yy=!0,u(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
140
140
 
141
- Check the render method of %s.`,na(Hn)||"Unknown"));var x=tu(f,g);x.payload={element:e},i=i===void 0?null:i,i!==null&&(typeof i!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i),x.callback=i);var R=Gu(c,x,g);return R!==null&&(cn(R,c,g,f),Uv(R,c,g)),g}function Lg(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case w:return t.child.stateNode;default:return t.child.stateNode}}function PU(e){switch(e.tag){case b:{var t=e.stateNode;if(Jm(t)){var n=NP(t);$j(t,n)}break}case K:{ou(function(){var c=ko(e,Jt);if(c!==null){var f=no();cn(c,e,Jt,f)}});var i=Jt;Gy(e,i);break}}}function k4(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=zP(n.retryLane,t))}function Gy(e,t){k4(e,t);var n=e.alternate;n&&k4(n,t)}function MU(e){if(e.tag===K){var t=kp,n=ko(e,t);if(n!==null){var i=no();cn(n,e,t,i)}Gy(e,t)}}function FU(e){if(e.tag===K){var t=tc(e),n=ko(e,t);if(n!==null){var i=no();cn(n,e,t,i)}Gy(e,t)}}function E4(e){var t=KI(e);return t===null?null:t.stateNode}var R4=function(e){return null};function zU(e){return R4(e)}var D4=function(e){return!1};function HU(e){return D4(e)}var A4=null,L4=null,B4=null,N4=null,O4=null,I4=null,P4=null,M4=null,F4=null;{var z4=function(e,t,n){var i=t[n],c=tn(e)?e.slice():Pt({},e);return n+1===t.length?(tn(c)?c.splice(i,1):delete c[i],c):(c[i]=z4(e[i],t,n+1),c)},H4=function(e,t){return z4(e,t,0)},j4=function(e,t,n,i){var c=t[i],f=tn(e)?e.slice():Pt({},e);if(i+1===t.length){var g=n[i];f[g]=f[c],tn(f)?f.splice(c,1):delete f[c]}else f[c]=j4(e[c],t,n,i+1);return f},U4=function(e,t,n){if(t.length!==n.length){d("copyWithRename() expects paths of the same length");return}else for(var i=0;i<n.length-1;i++)if(t[i]!==n[i]){d("copyWithRename() expects paths to be the same except for the deepest key");return}return j4(e,t,n,0)},V4=function(e,t,n,i){if(n>=t.length)return i;var c=t[n],f=tn(e)?e.slice():Pt({},e);return f[c]=V4(e[c],t,n+1,i),f},W4=function(e,t,n){return V4(e,t,0,n)},qy=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};A4=function(e,t,n,i){var c=qy(e,t);if(c!==null){var f=W4(c.memoizedState,n,i);c.memoizedState=f,c.baseState=f,e.memoizedProps=Pt({},e.memoizedProps);var g=ko(e,Jt);g!==null&&cn(g,e,Jt,gr)}},L4=function(e,t,n){var i=qy(e,t);if(i!==null){var c=H4(i.memoizedState,n);i.memoizedState=c,i.baseState=c,e.memoizedProps=Pt({},e.memoizedProps);var f=ko(e,Jt);f!==null&&cn(f,e,Jt,gr)}},B4=function(e,t,n,i){var c=qy(e,t);if(c!==null){var f=U4(c.memoizedState,n,i);c.memoizedState=f,c.baseState=f,e.memoizedProps=Pt({},e.memoizedProps);var g=ko(e,Jt);g!==null&&cn(g,e,Jt,gr)}},N4=function(e,t,n){e.pendingProps=W4(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=ko(e,Jt);i!==null&&cn(i,e,Jt,gr)},O4=function(e,t){e.pendingProps=H4(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=ko(e,Jt);n!==null&&cn(n,e,Jt,gr)},I4=function(e,t,n){e.pendingProps=U4(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=ko(e,Jt);i!==null&&cn(i,e,Jt,gr)},P4=function(e){var t=ko(e,Jt);t!==null&&cn(t,e,Jt,gr)},M4=function(e){R4=e},F4=function(e){D4=e}}function jU(e){var t=bC(e);return t===null?null:t.stateNode}function UU(e){return null}function VU(){return Hn}function WU(e){var t=e.findFiberByHostInstance,n=o.ReactCurrentDispatcher;return rP({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:A4,overrideHookStateDeletePath:L4,overrideHookStateRenamePath:B4,overrideProps:N4,overridePropsDeletePath:O4,overridePropsRenamePath:I4,setErrorHandler:M4,setSuspenseHandler:F4,scheduleUpdate:P4,currentDispatcherRef:n,findHostInstanceByFiber:jU,findFiberByHostInstance:t||UU,findHostInstancesForRefresh:yU,scheduleRefresh:_U,scheduleRoot:bU,setRefreshHandler:gU,getCurrentFiber:VU,reconcilerVersion:Wy})}var Y4=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ky(e){this._internalRoot=e}Bg.prototype.render=Ky.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Ng(arguments[1])?u("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]!="undefined"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==Gr){var i=E4(t.current);i&&i.parentNode!==n&&u("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}jh(e,t,null,null)},Bg.prototype.unmount=Ky.prototype.unmount=function(){typeof arguments[0]=="function"&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;r4()&&u("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),ou(function(){jh(null,e,null,null)}),W3(t)}};function YU(e,t){if(!Ng(e))throw new Error("createRoot(...): Target container is not a DOM element.");$4(e);var n=!1,i=!1,c="",f=Y4,g=null;t!=null&&(t.hydrate?d("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Y&&u(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
141
+ Check the render method of %s.`,na(Hn)||"Unknown"));var x=tu(f,g);x.payload={element:e},i=i===void 0?null:i,i!==null&&(typeof i!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",i),x.callback=i);var R=Gu(c,x,g);return R!==null&&(cn(R,c,g,f),Uv(R,c,g)),g}function Lg(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case w:return t.child.stateNode;default:return t.child.stateNode}}function PU(e){switch(e.tag){case b:{var t=e.stateNode;if(Jm(t)){var n=NP(t);$j(t,n)}break}case K:{ou(function(){var c=ko(e,Jt);if(c!==null){var f=no();cn(c,e,Jt,f)}});var i=Jt;Gy(e,i);break}}}function kT(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=zP(n.retryLane,t))}function Gy(e,t){kT(e,t);var n=e.alternate;n&&kT(n,t)}function MU(e){if(e.tag===K){var t=kp,n=ko(e,t);if(n!==null){var i=no();cn(n,e,t,i)}Gy(e,t)}}function FU(e){if(e.tag===K){var t=tc(e),n=ko(e,t);if(n!==null){var i=no();cn(n,e,t,i)}Gy(e,t)}}function ET(e){var t=KI(e);return t===null?null:t.stateNode}var RT=function(e){return null};function zU(e){return RT(e)}var DT=function(e){return!1};function HU(e){return DT(e)}var AT=null,LT=null,BT=null,NT=null,OT=null,IT=null,PT=null,MT=null,FT=null;{var zT=function(e,t,n){var i=t[n],c=tn(e)?e.slice():Pt({},e);return n+1===t.length?(tn(c)?c.splice(i,1):delete c[i],c):(c[i]=zT(e[i],t,n+1),c)},HT=function(e,t){return zT(e,t,0)},jT=function(e,t,n,i){var c=t[i],f=tn(e)?e.slice():Pt({},e);if(i+1===t.length){var g=n[i];f[g]=f[c],tn(f)?f.splice(c,1):delete f[c]}else f[c]=jT(e[c],t,n,i+1);return f},UT=function(e,t,n){if(t.length!==n.length){d("copyWithRename() expects paths of the same length");return}else for(var i=0;i<n.length-1;i++)if(t[i]!==n[i]){d("copyWithRename() expects paths to be the same except for the deepest key");return}return jT(e,t,n,0)},VT=function(e,t,n,i){if(n>=t.length)return i;var c=t[n],f=tn(e)?e.slice():Pt({},e);return f[c]=VT(e[c],t,n+1,i),f},WT=function(e,t,n){return VT(e,t,0,n)},qy=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};AT=function(e,t,n,i){var c=qy(e,t);if(c!==null){var f=WT(c.memoizedState,n,i);c.memoizedState=f,c.baseState=f,e.memoizedProps=Pt({},e.memoizedProps);var g=ko(e,Jt);g!==null&&cn(g,e,Jt,gr)}},LT=function(e,t,n){var i=qy(e,t);if(i!==null){var c=HT(i.memoizedState,n);i.memoizedState=c,i.baseState=c,e.memoizedProps=Pt({},e.memoizedProps);var f=ko(e,Jt);f!==null&&cn(f,e,Jt,gr)}},BT=function(e,t,n,i){var c=qy(e,t);if(c!==null){var f=UT(c.memoizedState,n,i);c.memoizedState=f,c.baseState=f,e.memoizedProps=Pt({},e.memoizedProps);var g=ko(e,Jt);g!==null&&cn(g,e,Jt,gr)}},NT=function(e,t,n){e.pendingProps=WT(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=ko(e,Jt);i!==null&&cn(i,e,Jt,gr)},OT=function(e,t){e.pendingProps=HT(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=ko(e,Jt);n!==null&&cn(n,e,Jt,gr)},IT=function(e,t,n){e.pendingProps=UT(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var i=ko(e,Jt);i!==null&&cn(i,e,Jt,gr)},PT=function(e){var t=ko(e,Jt);t!==null&&cn(t,e,Jt,gr)},MT=function(e){RT=e},FT=function(e){DT=e}}function jU(e){var t=bC(e);return t===null?null:t.stateNode}function UU(e){return null}function VU(){return Hn}function WU(e){var t=e.findFiberByHostInstance,n=o.ReactCurrentDispatcher;return rP({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:AT,overrideHookStateDeletePath:LT,overrideHookStateRenamePath:BT,overrideProps:NT,overridePropsDeletePath:OT,overridePropsRenamePath:IT,setErrorHandler:MT,setSuspenseHandler:FT,scheduleUpdate:PT,currentDispatcherRef:n,findHostInstanceByFiber:jU,findFiberByHostInstance:t||UU,findHostInstancesForRefresh:yU,scheduleRefresh:_U,scheduleRoot:bU,setRefreshHandler:gU,getCurrentFiber:VU,reconcilerVersion:Wy})}var YT=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ky(e){this._internalRoot=e}Bg.prototype.render=Ky.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Ng(arguments[1])?u("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]!="undefined"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==Gr){var i=ET(t.current);i&&i.parentNode!==n&&u("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}jh(e,t,null,null)},Bg.prototype.unmount=Ky.prototype.unmount=function(){typeof arguments[0]=="function"&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rT()&&u("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),ou(function(){jh(null,e,null,null)}),W3(t)}};function YU(e,t){if(!Ng(e))throw new Error("createRoot(...): Target container is not a DOM element.");$T(e);var n=!1,i=!1,c="",f=YT,g=null;t!=null&&(t.hydrate?d("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Y&&u(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
142
142
 
143
143
  let root = createRoot(domContainer);
144
- root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(c=t.identifierPrefix),t.onRecoverableError!==void 0&&(f=t.onRecoverableError),t.transitionCallbacks!==void 0&&(g=t.transitionCallbacks));var S=x4(e,Ev,null,n,i,c,f);yv(S.current,e);var x=e.nodeType===Gr?e.parentNode:e;return Gp(x),new Ky(S)}function Bg(e){this._internalRoot=e}function $U(e){e&&aM(e)}Bg.prototype.unstable_scheduleHydration=$U;function GU(e,t,n){if(!Ng(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");$4(e),t===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=n!=null?n:null,c=n!=null&&n.hydratedSources||null,f=!1,g=!1,S="",x=Y4;n!=null&&(n.unstable_strictMode===!0&&(f=!0),n.identifierPrefix!==void 0&&(S=n.identifierPrefix),n.onRecoverableError!==void 0&&(x=n.onRecoverableError));var R=T4(t,null,e,Ev,i,f,g,S,x);if(yv(R.current,e),Gp(e),c)for(var O=0;O<c.length;O++){var Q=c[O];$z(R,Q)}return new Bg(R)}function Ng(e){return!!(e&&(e.nodeType===xo||e.nodeType===Us||e.nodeType===tb||!Pe))}function Uh(e){return!!(e&&(e.nodeType===xo||e.nodeType===Us||e.nodeType===tb||e.nodeType===Gr&&e.nodeValue===" react-mount-point-unstable "))}function $4(e){e.nodeType===xo&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&u("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),nh(e)&&(e._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var qU=o.ReactCurrentOwner,G4;G4=function(e){if(e._reactRootContainer&&e.nodeType!==Gr){var t=E4(e._reactRootContainer.current);t&&t.parentNode!==e&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,i=Xy(e),c=!!(i&&Uu(i));c&&!n&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===xo&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function Xy(e){return e?e.nodeType===Us?e.documentElement:e.firstChild:null}function q4(){}function KU(e,t,n,i,c){if(c){if(typeof i=="function"){var f=i;i=function(){var X=Lg(g);f.call(X)}}var g=T4(t,i,e,Wu,null,!1,!1,"",q4);e._reactRootContainer=g,yv(g.current,e);var S=e.nodeType===Gr?e.parentNode:e;return Gp(S),ou(),g}else{for(var x;x=e.lastChild;)e.removeChild(x);if(typeof i=="function"){var R=i;i=function(){var X=Lg(O);R.call(X)}}var O=x4(e,Wu,null,!1,!1,"",q4);e._reactRootContainer=O,yv(O.current,e);var Q=e.nodeType===Gr?e.parentNode:e;return Gp(Q),ou(function(){jh(t,O,n,i)}),O}}function XU(e,t){e!==null&&typeof e!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Og(e,t,n,i,c){G4(n),XU(c===void 0?null:c,"render");var f=n._reactRootContainer,g;if(!f)g=KU(n,t,e,c,i);else{if(g=f,typeof c=="function"){var S=c;c=function(){var x=Lg(g);S.call(x)}}jh(t,g,e,c)}return Lg(g)}var K4=!1;function JU(e){{K4||(K4=!0,u("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=qU.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Va(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===xo?e:IU(e,"findDOMNode")}function QU(e,t,n){if(u("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Uh(t))throw new Error("Target container is not a DOM element.");{var i=nh(t)&&t._reactRootContainer===void 0;i&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Og(null,e,t,!0,n)}function ZU(e,t,n){if(u("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Uh(t))throw new Error("Target container is not a DOM element.");{var i=nh(t)&&t._reactRootContainer===void 0;i&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Og(null,e,t,!1,n)}function eV(e,t,n,i){if(u("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Uh(n))throw new Error("Target container is not a DOM element.");if(e==null||!UI(e))throw new Error("parentComponent must be a valid React Component");return Og(e,t,n,!1,i)}var X4=!1;function tV(e){if(X4||(X4=!0,u("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Uh(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=nh(e)&&e._reactRootContainer===void 0;t&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var n=Xy(e),i=n&&!Uu(n);i&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return ou(function(){Og(null,null,e,!1,function(){e._reactRootContainer=null,W3(e)})}),!0}else{{var c=Xy(e),f=!!(c&&Uu(c)),g=e.nodeType===xo&&Uh(e.parentNode)&&!!e.parentNode._reactRootContainer;f&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",g?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}$P(PU),qP(MU),KP(FU),XP(Fl),JP(VP),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),LI(QF),OI(Ey,Gj,ou);function aV(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ng(t))throw new Error("Target container is not a DOM element.");return OU(e,t,null,n)}function rV(e,t,n,i){return eV(e,t,n,i)}var Jy={usingClientEntryPoint:!1,Events:[Uu,nf,Sv,lC,sC,Ey]};function nV(e,t){return Jy.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),YU(e,t)}function oV(e,t,n){return Jy.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),GU(e,t,n)}function iV(e){return r4()&&u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),ou(e)}var lV=WU({findFiberByHostInstance:Hc,bundleType:1,version:Wy,rendererPackageName:"react-dom"});if(!lV&&wt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var J4=window.location.protocol;/^(https?|file):$/.test(J4)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(J4==="file:"?`
144
+ root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(c=t.identifierPrefix),t.onRecoverableError!==void 0&&(f=t.onRecoverableError),t.transitionCallbacks!==void 0&&(g=t.transitionCallbacks));var S=xT(e,Ev,null,n,i,c,f);yv(S.current,e);var x=e.nodeType===Gr?e.parentNode:e;return Gp(x),new Ky(S)}function Bg(e){this._internalRoot=e}function $U(e){e&&aM(e)}Bg.prototype.unstable_scheduleHydration=$U;function GU(e,t,n){if(!Ng(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");$T(e),t===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=n!=null?n:null,c=n!=null&&n.hydratedSources||null,f=!1,g=!1,S="",x=YT;n!=null&&(n.unstable_strictMode===!0&&(f=!0),n.identifierPrefix!==void 0&&(S=n.identifierPrefix),n.onRecoverableError!==void 0&&(x=n.onRecoverableError));var R=TT(t,null,e,Ev,i,f,g,S,x);if(yv(R.current,e),Gp(e),c)for(var O=0;O<c.length;O++){var Q=c[O];$z(R,Q)}return new Bg(R)}function Ng(e){return!!(e&&(e.nodeType===xo||e.nodeType===Us||e.nodeType===tb||!Pe))}function Uh(e){return!!(e&&(e.nodeType===xo||e.nodeType===Us||e.nodeType===tb||e.nodeType===Gr&&e.nodeValue===" react-mount-point-unstable "))}function $T(e){e.nodeType===xo&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&u("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),nh(e)&&(e._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var qU=o.ReactCurrentOwner,GT;GT=function(e){if(e._reactRootContainer&&e.nodeType!==Gr){var t=ET(e._reactRootContainer.current);t&&t.parentNode!==e&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,i=Xy(e),c=!!(i&&Uu(i));c&&!n&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===xo&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function Xy(e){return e?e.nodeType===Us?e.documentElement:e.firstChild:null}function qT(){}function KU(e,t,n,i,c){if(c){if(typeof i=="function"){var f=i;i=function(){var X=Lg(g);f.call(X)}}var g=TT(t,i,e,Wu,null,!1,!1,"",qT);e._reactRootContainer=g,yv(g.current,e);var S=e.nodeType===Gr?e.parentNode:e;return Gp(S),ou(),g}else{for(var x;x=e.lastChild;)e.removeChild(x);if(typeof i=="function"){var R=i;i=function(){var X=Lg(O);R.call(X)}}var O=xT(e,Wu,null,!1,!1,"",qT);e._reactRootContainer=O,yv(O.current,e);var Q=e.nodeType===Gr?e.parentNode:e;return Gp(Q),ou(function(){jh(t,O,n,i)}),O}}function XU(e,t){e!==null&&typeof e!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Og(e,t,n,i,c){GT(n),XU(c===void 0?null:c,"render");var f=n._reactRootContainer,g;if(!f)g=KU(n,t,e,c,i);else{if(g=f,typeof c=="function"){var S=c;c=function(){var x=Lg(g);S.call(x)}}jh(t,g,e,c)}return Lg(g)}var KT=!1;function JU(e){{KT||(KT=!0,u("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=qU.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Va(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===xo?e:IU(e,"findDOMNode")}function QU(e,t,n){if(u("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Uh(t))throw new Error("Target container is not a DOM element.");{var i=nh(t)&&t._reactRootContainer===void 0;i&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Og(null,e,t,!0,n)}function ZU(e,t,n){if(u("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Uh(t))throw new Error("Target container is not a DOM element.");{var i=nh(t)&&t._reactRootContainer===void 0;i&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Og(null,e,t,!1,n)}function eV(e,t,n,i){if(u("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Uh(n))throw new Error("Target container is not a DOM element.");if(e==null||!UI(e))throw new Error("parentComponent must be a valid React Component");return Og(e,t,n,!1,i)}var XT=!1;function tV(e){if(XT||(XT=!0,u("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Uh(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=nh(e)&&e._reactRootContainer===void 0;t&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var n=Xy(e),i=n&&!Uu(n);i&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return ou(function(){Og(null,null,e,!1,function(){e._reactRootContainer=null,W3(e)})}),!0}else{{var c=Xy(e),f=!!(c&&Uu(c)),g=e.nodeType===xo&&Uh(e.parentNode)&&!!e.parentNode._reactRootContainer;f&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",g?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}$P(PU),qP(MU),KP(FU),XP(Fl),JP(VP),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),LI(QF),OI(Ey,Gj,ou);function aV(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ng(t))throw new Error("Target container is not a DOM element.");return OU(e,t,null,n)}function rV(e,t,n,i){return eV(e,t,n,i)}var Jy={usingClientEntryPoint:!1,Events:[Uu,nf,Sv,lC,sC,Ey]};function nV(e,t){return Jy.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),YU(e,t)}function oV(e,t,n){return Jy.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),GU(e,t,n)}function iV(e){return rT()&&u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),ou(e)}var lV=WU({findFiberByHostInstance:Hc,bundleType:1,version:Wy,rendererPackageName:"react-dom"});if(!lV&&wt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var JT=window.location.protocol;/^(https?|file):$/.test(JT)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(JT==="file:"?`
145
145
  You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Go.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jy,Go.createPortal=aV,Go.createRoot=nV,Go.findDOMNode=JU,Go.flushSync=iV,Go.hydrate=QU,Go.hydrateRoot=oV,Go.render=ZU,Go.unmountComponentAtNode=tV,Go.unstable_batchedUpdates=Ey,Go.unstable_renderSubtreeIntoContainer=rV,Go.version=Wy,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()});var Qy=Ke((IG,nk)=>{"use strict";nk.exports=rk()});var ok=Ke(e2=>{"use strict";var Zy=Qy();Wh=Zy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,e2.createRoot=function(a,r){Wh.usingClientEntryPoint=!0;try{return Zy.createRoot(a,r)}finally{Wh.usingClientEntryPoint=!1}},e2.hydrateRoot=function(a,r,o){Wh.usingClientEntryPoint=!0;try{return Zy.hydrateRoot(a,r,o)}finally{Wh.usingClientEntryPoint=!1}};var Wh});var f2=Ke(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});function Fa(){return Fa=Object.assign?Object.assign.bind():function(a){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(a[l]=o[l])}return a},Fa.apply(this,arguments)}var Ir=function(a){return a.Pop="POP",a.Push="PUSH",a.Replace="REPLACE",a}({}),ik="popstate";function gV(a){a===void 0&&(a={});let{initialEntries:r=["/"],initialIndex:o,v5Compat:l=!1}=a,s;s=r.map((w,T)=>y(w,typeof w=="string"?null:w.state,T===0?"default":void 0));let d=p(o==null?s.length-1:o),u=Ir.Pop,h=null;function p(w){return Math.min(Math.max(w,0),s.length-1)}function v(){return s[d]}function y(w,T,L){T===void 0&&(T=null);let A=uu(s?v().pathname:"/",w,T,L);return ks(A.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(w)),A}function b(w){return typeof w=="string"?w:Es(w)}return{get index(){return d},get action(){return u},get location(){return v()},createHref:b,createURL(w){return new URL(b(w),"http://localhost")},encodeLocation(w){let T=typeof w=="string"?Xl(w):w;return{pathname:T.pathname||"",search:T.search||"",hash:T.hash||""}},push(w,T){u=Ir.Push;let L=y(w,T);d+=1,s.splice(d,s.length,L),l&&h&&h({action:u,location:L,delta:1})},replace(w,T){u=Ir.Replace;let L=y(w,T);s[d]=L,l&&h&&h({action:u,location:L,delta:0})},go(w){u=Ir.Pop;let T=p(d+w),L=s[T];d=T,h&&h({action:u,location:L,delta:w})},listen(w){return h=w,()=>{h=null}}}}function _V(a){a===void 0&&(a={});function r(l,s){let{pathname:d,search:u,hash:h}=l.location;return uu("",{pathname:d,search:u,hash:h},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function o(l,s){return typeof s=="string"?s:Es(s)}return wk(r,o,null,a)}function bV(a){a===void 0&&(a={});function r(s,d){let{pathname:u="/",search:h="",hash:p=""}=Xl(s.location.hash.substr(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),uu("",{pathname:u,search:h,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function o(s,d){let u=s.document.querySelector("base"),h="";if(u&&u.getAttribute("href")){let p=s.location.href,v=p.indexOf("#");h=v===-1?p:p.slice(0,v)}return h+"#"+(typeof d=="string"?d:Es(d))}function l(s,d){ks(s.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(d)+")")}return wk(r,o,l,a)}function La(a,r){if(a===!1||a===null||typeof a=="undefined")throw new Error(r)}function ks(a,r){if(!a){typeof console!="undefined"&&console.warn(r);try{throw new Error(r)}catch(o){}}}function yV(){return Math.random().toString(36).substr(2,8)}function lk(a,r){return{usr:a.state,key:a.key,idx:r}}function uu(a,r,o,l){return o===void 0&&(o=null),Fa({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof r=="string"?Xl(r):r,{state:o,key:r&&r.key||l||yV()})}function Es(a){let{pathname:r="/",search:o="",hash:l=""}=a;return o&&o!=="?"&&(r+=o.charAt(0)==="?"?o:"?"+o),l&&l!=="#"&&(r+=l.charAt(0)==="#"?l:"#"+l),r}function Xl(a){let r={};if(a){let o=a.indexOf("#");o>=0&&(r.hash=a.substr(o),a=a.substr(0,o));let l=a.indexOf("?");l>=0&&(r.search=a.substr(l),a=a.substr(0,l)),a&&(r.pathname=a)}return r}function wk(a,r,o,l){l===void 0&&(l={});let{window:s=document.defaultView,v5Compat:d=!1}=l,u=s.history,h=Ir.Pop,p=null,v=y();v==null&&(v=0,u.replaceState(Fa({},u.state,{idx:v}),""));function y(){return(u.state||{idx:null}).idx}function b(){h=Ir.Pop;let A=y(),$=A==null?null:A-v;v=A,p&&p({action:h,location:L.location,delta:$})}function C(A,$){h=Ir.Push;let F=uu(L.location,A,$);o&&o(F,A),v=y()+1;let j=lk(F,v),U=L.createHref(F);try{u.pushState(j,"",U)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;s.location.assign(U)}d&&p&&p({action:h,location:L.location,delta:1})}function w(A,$){h=Ir.Replace;let F=uu(L.location,A,$);o&&o(F,A),v=y();let j=lk(F,v),U=L.createHref(F);u.replaceState(j,"",U),d&&p&&p({action:h,location:L.location,delta:0})}function T(A){let $=s.location.origin!=="null"?s.location.origin:s.location.href,F=typeof A=="string"?A:Es(A);return F=F.replace(/ $/,"%20"),La($,"No window.location.(origin|href) available to create URL for href: "+F),new URL(F,$)}let L={get action(){return h},get location(){return a(s,u)},listen(A){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(ik,b),p=A,()=>{s.removeEventListener(ik,b),p=null}},createHref(A){return r(s,A)},createURL:T,encodeLocation(A){let $=T(A);return{pathname:$.pathname,search:$.search,hash:$.hash}},push:C,replace:w,go(A){return u.go(A)}};return L}var Ya=function(a){return a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error",a}({}),SV=new Set(["lazy","caseSensitive","path","id","index","children"]);function wV(a){return a.index===!0}function od(a,r,o,l){return o===void 0&&(o=[]),l===void 0&&(l={}),a.map((s,d)=>{let u=[...o,String(d)],h=typeof s.id=="string"?s.id:u.join("-");if(La(s.index!==!0||!s.children,"Cannot specify children on an index route"),La(!l[h],'Found a route id collision on id "'+h+`". Route id's must be globally unique within Data Router usages`),wV(s)){let p=Fa({},s,r(s),{id:h});return l[h]=p,p}else{let p=Fa({},s,r(s),{id:h,children:void 0});return l[h]=p,s.children&&(p.children=od(s.children,r,u,l)),p}})}function su(a,r,o){return o===void 0&&(o="/"),Fg(a,r,o,!1)}function Fg(a,r,o,l){let s=typeof r=="string"?Xl(r):r,d=Gh(s.pathname||"/",o);if(d==null)return null;let u=xk(a);CV(u);let h=null;for(let p=0;h==null&&p<u.length;++p){let v=kk(d);h=BV(u[p],v,l)}return h}function Ck(a,r){let{route:o,pathname:l,params:s}=a;return{id:o.id,pathname:l,params:s,data:r[o.id],handle:o.handle}}function xk(a,r,o,l){r===void 0&&(r=[]),o===void 0&&(o=[]),l===void 0&&(l="");let s=(d,u,h)=>{let p={relativePath:h===void 0?d.path||"":h,caseSensitive:d.caseSensitive===!0,childrenIndex:u,route:d};p.relativePath.startsWith("/")&&(La(p.relativePath.startsWith(l),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+l+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(l.length));let v=Bf([l,p.relativePath]),y=o.concat(p);d.children&&d.children.length>0&&(La(d.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),xk(d.children,r,y,v)),!(d.path==null&&!d.index)&&r.push({path:v,score:AV(v,d.index),routesMeta:y})};return a.forEach((d,u)=>{var h;if(d.path===""||!((h=d.path)!=null&&h.includes("?")))s(d,u);else for(let p of Tk(d.path))s(d,u,p)}),r}function Tk(a){let r=a.split("/");if(r.length===0)return[];let[o,...l]=r,s=o.endsWith("?"),d=o.replace(/\?$/,"");if(l.length===0)return s?[d,""]:[d];let u=Tk(l.join("/")),h=[];return h.push(...u.map(p=>p===""?d:[d,p].join("/"))),s&&h.push(...u),h.map(p=>a.startsWith("/")&&p===""?"/":p)}function CV(a){a.sort((r,o)=>r.score!==o.score?o.score-r.score:LV(r.routesMeta.map(l=>l.childrenIndex),o.routesMeta.map(l=>l.childrenIndex)))}var xV=/^:[\w-]+$/,TV=3,kV=2,EV=1,RV=10,DV=-2,sk=a=>a==="*";function AV(a,r){let o=a.split("/"),l=o.length;return o.some(sk)&&(l+=DV),r&&(l+=kV),o.filter(s=>!sk(s)).reduce((s,d)=>s+(xV.test(d)?TV:d===""?EV:RV),l)}function LV(a,r){return a.length===r.length&&a.slice(0,-1).every((l,s)=>l===r[s])?a[a.length-1]-r[r.length-1]:0}function BV(a,r,o){o===void 0&&(o=!1);let{routesMeta:l}=a,s={},d="/",u=[];for(let h=0;h<l.length;++h){let p=l[h],v=h===l.length-1,y=d==="/"?r:r.slice(d.length)||"/",b=r2({path:p.relativePath,caseSensitive:p.caseSensitive,end:v},y),C=p.route;if(!b&&v&&o&&!l[l.length-1].route.index&&(b=r2({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(s,b.params),u.push({params:s,pathname:Bf([d,b.pathname]),pathnameBase:Lk(Bf([d,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(d=Bf([d,b.pathnameBase]))}return u}function NV(a,r){r===void 0&&(r={});let o=a;o.endsWith("*")&&o!=="*"&&!o.endsWith("/*")&&(ks(!1,'Route path "'+o+'" will be treated as if it were '+('"'+o.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+o.replace(/\*$/,"/*")+'".')),o=o.replace(/\*$/,"/*"));let l=o.startsWith("/")?"/":"",s=u=>u==null?"":typeof u=="string"?u:String(u),d=o.split(/\/+/).map((u,h,p)=>{if(h===p.length-1&&u==="*")return s(r["*"]);let y=u.match(/^:([\w-]+)(\??)$/);if(y){let[,b,C]=y,w=r[b];return La(C==="?"||w!=null,'Missing ":'+b+'" param'),s(w)}return u.replace(/\?$/g,"")}).filter(u=>!!u);return l+d.join("/")}function r2(a,r){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[o,l]=OV(a.path,a.caseSensitive,a.end),s=r.match(o);if(!s)return null;let d=s[0],u=d.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:l.reduce((v,y,b)=>{let{paramName:C,isOptional:w}=y;if(C==="*"){let L=h[b]||"";u=d.slice(0,d.length-L.length).replace(/(.)\/+$/,"$1")}let T=h[b];return w&&!T?v[C]=void 0:v[C]=(T||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:u,pattern:a}}function OV(a,r,o){r===void 0&&(r=!1),o===void 0&&(o=!0),ks(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let l=[],s="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,h,p)=>(l.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(l.push({paramName:"*"}),s+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?s+="\\/*$":a!==""&&a!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,r?void 0:"i"),l]}function kk(a){try{return a.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return ks(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+r+").")),a}}function Gh(a,r){if(r==="/")return a;if(!a.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,l=a.charAt(o);return l&&l!=="/"?null:a.slice(o)||"/"}function Ek(a,r){r===void 0&&(r="/");let{pathname:o,search:l="",hash:s=""}=typeof a=="string"?Xl(a):a;return{pathname:o?o.startsWith("/")?o:IV(o,r):r,search:MV(l),hash:FV(s)}}function IV(a,r){let o=r.replace(/\/+$/,"").split("/");return a.split("/").forEach(s=>{s===".."?o.length>1&&o.pop():s!=="."&&o.push(s)}),o.length>1?o.join("/"):"/"}function t2(a,r,o,l){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(l)+"]. Please separate it out to the ")+("`to."+o+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Rk(a){return a.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function Dk(a,r){let o=Rk(a);return r?o.map((l,s)=>s===o.length-1?l.pathname:l.pathnameBase):o.map(l=>l.pathnameBase)}function Ak(a,r,o,l){l===void 0&&(l=!1);let s;typeof a=="string"?s=Xl(a):(s=Fa({},a),La(!s.pathname||!s.pathname.includes("?"),t2("?","pathname","search",s)),La(!s.pathname||!s.pathname.includes("#"),t2("#","pathname","hash",s)),La(!s.search||!s.search.includes("#"),t2("#","search","hash",s)));let d=a===""||s.pathname==="",u=d?"/":s.pathname,h;if(u==null)h=o;else{let b=r.length-1;if(!l&&u.startsWith("..")){let C=u.split("/");for(;C[0]==="..";)C.shift(),b-=1;s.pathname=C.join("/")}h=b>=0?r[b]:"/"}let p=Ek(s,h),v=u&&u!=="/"&&u.endsWith("/"),y=(d||u===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(v||y)&&(p.pathname+="/"),p}function PV(a){return a===""||a.pathname===""?"/":typeof a=="string"?Xl(a).pathname:a.pathname}var Bf=a=>a.join("/").replace(/\/\/+/g,"/"),Lk=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),MV=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,FV=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,zV=function(r,o){o===void 0&&(o={});let l=typeof o=="number"?{status:o}:o,s=new Headers(l.headers);return s.has("Content-Type")||s.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(r),Fa({},l,{headers:s}))},n2=class{constructor(r,o){this.type="DataWithResponseInit",this.data=r,this.init=o||null}};function HV(a,r){return new n2(a,typeof r=="number"?{status:r}:r)}var $h=class extends Error{},Hg=class{constructor(r,o){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],La(r&&typeof r=="object"&&!Array.isArray(r),"defer() only accepts plain objects");let l;this.abortPromise=new Promise((d,u)=>l=u),this.controller=new AbortController;let s=()=>l(new $h("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",s),this.controller.signal.addEventListener("abort",s),this.data=Object.entries(r).reduce((d,u)=>{let[h,p]=u;return Object.assign(d,{[h]:this.trackPromise(h,p)})},{}),this.done&&this.unlistenAbortSignal(),this.init=o}trackPromise(r,o){if(!(o instanceof Promise))return o;this.deferredKeys.push(r),this.pendingKeysSet.add(r);let l=Promise.race([o,this.abortPromise]).then(s=>this.onSettle(l,r,void 0,s),s=>this.onSettle(l,r,s));return l.catch(()=>{}),Object.defineProperty(l,"_tracked",{get:()=>!0}),l}onSettle(r,o,l,s){if(this.controller.signal.aborted&&l instanceof $h)return this.unlistenAbortSignal(),Object.defineProperty(r,"_error",{get:()=>l}),Promise.reject(l);if(this.pendingKeysSet.delete(o),this.done&&this.unlistenAbortSignal(),l===void 0&&s===void 0){let d=new Error('Deferred data for key "'+o+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(r,"_error",{get:()=>d}),this.emit(!1,o),Promise.reject(d)}return s===void 0?(Object.defineProperty(r,"_error",{get:()=>l}),this.emit(!1,o),Promise.reject(l)):(Object.defineProperty(r,"_data",{get:()=>s}),this.emit(!1,o),s)}emit(r,o){this.subscribers.forEach(l=>l(r,o))}subscribe(r){return this.subscribers.add(r),()=>this.subscribers.delete(r)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((r,o)=>this.pendingKeysSet.delete(o)),this.emit(!0)}resolveData(r){return or(this,null,function*(){let o=!1;if(!this.done){let l=()=>this.cancel();r.addEventListener("abort",l),o=yield new Promise(s=>{this.subscribe(d=>{r.removeEventListener("abort",l),(d||this.done)&&s(d)})})}return o})}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return La(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((r,o)=>{let[l,s]=o;return Object.assign(r,{[l]:UV(s)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}};function jV(a){return a instanceof Promise&&a._tracked===!0}function UV(a){if(!jV(a))return a;if(a._error)throw a._error;return a._data}var VV=function(r,o){o===void 0&&(o={});let l=typeof o=="number"?{status:o}:o;return new Hg(r,l)},u2=function(r,o){o===void 0&&(o=302);let l=o;typeof l=="number"?l={status:l}:typeof l.status=="undefined"&&(l.status=302);let s=new Headers(l.headers);return s.set("Location",r),new Response(null,Fa({},l,{headers:s}))},WV=(a,r)=>{let o=u2(a,r);return o.headers.set("X-Remix-Reload-Document","true"),o},YV=(a,r)=>{let o=u2(a,r);return o.headers.set("X-Remix-Replace","true"),o},Nf=class{constructor(r,o,l,s){s===void 0&&(s=!1),this.status=r,this.statusText=o||"",this.internal=s,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Of(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}var Bk=["post","put","patch","delete"],$V=new Set(Bk),GV=["get",...Bk],qV=new Set(GV),KV=new Set([301,302,303,307,308]),XV=new Set([307,308]),zg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Nk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Lf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},c2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ok=a=>({hasErrorBoundary:!!a.hasErrorBoundary}),Ik="remix-router-transitions";function JV(a){let r=a.window?a.window:typeof window!="undefined"?window:void 0,o=typeof r!="undefined"&&typeof r.document!="undefined"&&typeof r.document.createElement!="undefined",l=!o;La(a.routes.length>0,"You must provide a non-empty routes array to createRouter");let s;if(a.mapRouteProperties)s=a.mapRouteProperties;else if(a.detectErrorBoundary){let H=a.detectErrorBoundary;s=Y=>({hasErrorBoundary:H(Y)})}else s=Ok;let d={},u=od(a.routes,s,void 0,d),h,p=a.basename||"/",v=a.unstable_dataStrategy||Hk,y=a.unstable_patchRoutesOnMiss,b=Fa({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},a.future),C=null,w=new Set,T=null,L=null,A=null,$=a.hydrationData!=null,F=su(u,a.history.location,p),j=null;if(F==null&&!y){let H=Tr(404,{pathname:a.history.location.pathname}),{matches:Y,route:ae}=jg(u);F=Y,j={[ae.id]:H}}F&&!a.hydrationData&&Fe(F,u,a.history.location.pathname).active&&(F=null);let U;if(F)if(F.some(H=>H.route.lazy))U=!1;else if(!F.some(H=>H.route.loader))U=!0;else if(b.v7_partialHydration){let H=a.hydrationData?a.hydrationData.loaderData:null,Y=a.hydrationData?a.hydrationData.errors:null,ae=le=>le.route.loader?typeof le.route.loader=="function"&&le.route.loader.hydrate===!0?!1:H&&H[le.route.id]!==void 0||Y&&Y[le.route.id]!==void 0:!0;if(Y){let le=F.findIndex($e=>Y[$e.route.id]!==void 0);U=F.slice(0,le+1).every(ae)}else U=F.every(ae)}else U=a.hydrationData!=null;else if(U=!1,F=[],b.v7_partialHydration){let H=Fe(null,u,a.history.location.pathname);H.active&&H.matches&&(F=H.matches)}let K,M={historyAction:a.history.action,location:a.history.location,matches:F,initialized:U,navigation:zg,restoreScrollPosition:a.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:a.hydrationData&&a.hydrationData.loaderData||{},actionData:a.hydrationData&&a.hydrationData.actionData||null,errors:a.hydrationData&&a.hydrationData.errors||j,fetchers:new Map,blockers:new Map},oe=Ir.Pop,ke=!1,J,pe=!1,he=new Map,ce=null,P=!1,ee=!1,me=[],z=new Set,ne=new Map,ve=0,be=-1,de=new Map,Re=new Set,Pe=new Map,Oe=new Map,rt=new Set,ze=new Map,pt=new Map,Kt=new Map,Et=!1;function bt(){if(C=a.history.listen(H=>{let{action:Y,location:ae,delta:le}=H;if(Et){Et=!1;return}ks(pt.size===0||le!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let $e=te({currentLocation:M.location,nextLocation:ae,historyAction:Y});if($e&&le!=null){Et=!0,a.history.go(le*-1),I($e,{state:"blocked",location:ae,proceed(){I($e,{state:"proceeding",proceed:void 0,reset:void 0,location:ae}),a.history.go(le)},reset(){let Ue=new Map(M.blockers);Ue.set($e,Lf),Le({blockers:Ue})}});return}return $t(Y,ae)}),o){cW(r,he);let H=()=>dW(r,he);r.addEventListener("pagehide",H),ce=()=>r.removeEventListener("pagehide",H)}return M.initialized||$t(Ir.Pop,M.location,{initialHydration:!0}),K}function It(){C&&C(),ce&&ce(),w.clear(),J&&J.abort(),M.fetchers.forEach((H,Y)=>He(Y)),M.blockers.forEach((H,Y)=>Ka(Y))}function nt(H){return w.add(H),()=>w.delete(H)}function Le(H,Y){Y===void 0&&(Y={}),M=Fa({},M,H);let ae=[],le=[];b.v7_fetcherPersist&&M.fetchers.forEach(($e,Ue)=>{$e.state==="idle"&&(rt.has(Ue)?le.push(Ue):ae.push(Ue))}),[...w].forEach($e=>$e(M,{deletedFetchers:le,unstable_viewTransitionOpts:Y.viewTransitionOpts,unstable_flushSync:Y.flushSync===!0})),b.v7_fetcherPersist&&(ae.forEach($e=>M.fetchers.delete($e)),le.forEach($e=>He($e)))}function wt(H,Y,ae){var le,$e;let{flushSync:Ue}=ae===void 0?{}:ae,N=M.actionData!=null&&M.navigation.formMethod!=null&&El(M.navigation.formMethod)&&M.navigation.state==="loading"&&((le=H.state)==null?void 0:le._isRedirect)!==!0,G;Y.actionData?Object.keys(Y.actionData).length>0?G=Y.actionData:G=null:N?G=M.actionData:G=null;let ge=Y.loaderData?gk(M.loaderData,Y.loaderData,Y.matches||[],Y.errors):M.loaderData,Te=M.blockers;Te.size>0&&(Te=new Map(Te),Te.forEach((at,Qe)=>Te.set(Qe,Lf)));let Ye=ke===!0||M.navigation.formMethod!=null&&El(M.navigation.formMethod)&&(($e=H.state)==null?void 0:$e._isRedirect)!==!0;h&&(u=h,h=void 0),P||oe===Ir.Pop||(oe===Ir.Push?a.history.push(H,H.state):oe===Ir.Replace&&a.history.replace(H,H.state));let _t;if(oe===Ir.Pop){let at=he.get(M.location.pathname);at&&at.has(H.pathname)?_t={currentLocation:M.location,nextLocation:H}:he.has(H.pathname)&&(_t={currentLocation:H,nextLocation:M.location})}else if(pe){let at=he.get(M.location.pathname);at?at.add(H.pathname):(at=new Set([H.pathname]),he.set(M.location.pathname,at)),_t={currentLocation:M.location,nextLocation:H}}Le(Fa({},Y,{actionData:G,loaderData:ge,historyAction:oe,location:H,initialized:!0,navigation:zg,revalidation:"idle",restoreScrollPosition:Me(H,Y.matches||M.matches),preventScrollReset:Ye,blockers:Te}),{viewTransitionOpts:_t,flushSync:Ue===!0}),oe=Ir.Pop,ke=!1,pe=!1,P=!1,ee=!1,me=[]}function zt(H,Y){return or(this,null,function*(){if(typeof H=="number"){a.history.go(H);return}let ae=o2(M.location,M.matches,p,b.v7_prependBasename,H,b.v7_relativeSplatPath,Y==null?void 0:Y.fromRouteId,Y==null?void 0:Y.relative),{path:le,submission:$e,error:Ue}=ck(b.v7_normalizeFormMethod,!1,ae,Y),N=M.location,G=uu(M.location,le,Y&&Y.state);G=Fa({},G,a.history.encodeLocation(G));let ge=Y&&Y.replace!=null?Y.replace:void 0,Te=Ir.Push;ge===!0?Te=Ir.Replace:ge===!1||$e!=null&&El($e.formMethod)&&$e.formAction===M.location.pathname+M.location.search&&(Te=Ir.Replace);let Ye=Y&&"preventScrollReset"in Y?Y.preventScrollReset===!0:void 0,_t=(Y&&Y.unstable_flushSync)===!0,at=te({currentLocation:N,nextLocation:G,historyAction:Te});if(at){I(at,{state:"blocked",location:G,proceed(){I(at,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),zt(H,Y)},reset(){let Qe=new Map(M.blockers);Qe.set(at,Lf),Le({blockers:Qe})}});return}return yield $t(Te,G,{submission:$e,pendingError:Ue,preventScrollReset:Ye,replace:Y&&Y.replace,enableViewTransition:Y&&Y.unstable_viewTransition,flushSync:_t})})}function Yt(){if(da(),Le({revalidation:"loading"}),M.navigation.state!=="submitting"){if(M.navigation.state==="idle"){$t(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}$t(oe||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}}function $t(H,Y,ae){return or(this,null,function*(){J&&J.abort(),J=null,oe=H,P=(ae&&ae.startUninterruptedRevalidation)===!0,Ie(M.location,M.matches),ke=(ae&&ae.preventScrollReset)===!0,pe=(ae&&ae.enableViewTransition)===!0;let le=h||u,$e=ae&&ae.overrideNavigation,Ue=su(le,Y,p),N=(ae&&ae.flushSync)===!0,G=Fe(Ue,le,Y.pathname);if(G.active&&G.matches&&(Ue=G.matches),!Ue){let{error:Rt,notFoundMatches:At,route:qt}=B(Y.pathname);wt(Y,{matches:At,loaderData:{},errors:{[qt.id]:Rt}},{flushSync:N});return}if(M.initialized&&!ee&&nW(M.location,Y)&&!(ae&&ae.submission&&El(ae.submission.formMethod))){wt(Y,{matches:Ue},{flushSync:N});return}J=new AbortController;let ge=Af(a.history,Y,J.signal,ae&&ae.submission),Te;if(ae&&ae.pendingError)Te=[rd(Ue).route.id,{type:Ya.error,error:ae.pendingError}];else if(ae&&ae.submission&&El(ae.submission.formMethod)){let Rt=yield oa(ge,Y,ae.submission,Ue,G.active,{replace:ae.replace,flushSync:N});if(Rt.shortCircuited)return;if(Rt.pendingActionResult){let[At,qt]=Rt.pendingActionResult;if(On(qt)&&Of(qt.error)&&qt.error.status===404){J=null,wt(Y,{matches:Rt.matches,loaderData:{},errors:{[At]:qt.error}});return}}Ue=Rt.matches||Ue,Te=Rt.pendingActionResult,$e=a2(Y,ae.submission),N=!1,G.active=!1,ge=Af(a.history,ge.url,ge.signal)}let{shortCircuited:Ye,matches:_t,loaderData:at,errors:Qe}=yield sa(ge,Y,Ue,G.active,$e,ae&&ae.submission,ae&&ae.fetcherSubmission,ae&&ae.replace,ae&&ae.initialHydration===!0,N,Te);Ye||(J=null,wt(Y,Fa({matches:_t||Ue},_k(Te),{loaderData:at,errors:Qe})))})}function oa(H,Y,ae,le,$e,Ue){return or(this,null,function*(){Ue===void 0&&(Ue={}),da();let N=sW(Y,ae);if(Le({navigation:N},{flushSync:Ue.flushSync===!0}),$e){let Te=yield Ge(le,Y.pathname,H.signal);if(Te.type==="aborted")return{shortCircuited:!0};if(Te.type==="error"){let{boundaryId:Ye,error:_t}=V(Y.pathname,Te);return{matches:Te.partialMatches,pendingActionResult:[Ye,{type:Ya.error,error:_t}]}}else if(Te.matches)le=Te.matches;else{let{notFoundMatches:Ye,error:_t,route:at}=B(Y.pathname);return{matches:Ye,pendingActionResult:[at.id,{type:Ya.error,error:_t}]}}}let G,ge=nd(le,Y);if(!ge.route.action&&!ge.route.lazy)G={type:Ya.error,error:Tr(405,{method:H.method,pathname:Y.pathname,routeId:ge.route.id})};else if(G=(yield Ia("action",H,[ge],le))[0],H.signal.aborted)return{shortCircuited:!0};if(lc(G)){let Te;return Ue&&Ue.replace!=null?Te=Ue.replace:Te=hk(G.response.headers.get("Location"),new URL(H.url),p)===M.location.pathname+M.location.search,yield Oa(H,G,{submission:ae,replace:Te}),{shortCircuited:!0}}if(ic(G))throw Tr(400,{type:"defer-action"});if(On(G)){let Te=rd(le,ge.route.id);return(Ue&&Ue.replace)!==!0&&(oe=Ir.Push),{matches:le,pendingActionResult:[Te.route.id,G]}}return{matches:le,pendingActionResult:[ge.route.id,G]}})}function sa(H,Y,ae,le,$e,Ue,N,G,ge,Te,Ye){return or(this,null,function*(){let _t=$e||a2(Y,Ue),at=Ue||N||Sk(_t),Qe=!P&&(!b.v7_partialHydration||!ge);if(le){if(Qe){let nr=xa(Ye);Le(Fa({navigation:_t},nr!==void 0?{actionData:nr}:{}),{flushSync:Te})}let aa=yield Ge(ae,Y.pathname,H.signal);if(aa.type==="aborted")return{shortCircuited:!0};if(aa.type==="error"){let{boundaryId:nr,error:Zr}=V(Y.pathname,aa);return{matches:aa.partialMatches,loaderData:{},errors:{[nr]:Zr}}}else if(aa.matches)ae=aa.matches;else{let{error:nr,notFoundMatches:Zr,route:Ja}=B(Y.pathname);return{matches:Zr,loaderData:{},errors:{[Ja.id]:nr}}}}let Rt=h||u,[At,qt]=dk(a.history,M,ae,at,Y,b.v7_partialHydration&&ge===!0,b.v7_skipActionErrorRevalidation,ee,me,z,rt,Pe,Re,Rt,p,Ye);if(q(aa=>!(ae&&ae.some(nr=>nr.route.id===aa))||At&&At.some(nr=>nr.route.id===aa)),be=++ve,At.length===0&&qt.length===0){let aa=Gt();return wt(Y,Fa({matches:ae,loaderData:{},errors:Ye&&On(Ye[1])?{[Ye[0]]:Ye[1].error}:null},_k(Ye),aa?{fetchers:new Map(M.fetchers)}:{}),{flushSync:Te}),{shortCircuited:!0}}if(Qe){let aa={};if(!le){aa.navigation=_t;let nr=xa(Ye);nr!==void 0&&(aa.actionData=nr)}qt.length>0&&(aa.fetchers=_r(qt)),Le(aa,{flushSync:Te})}qt.forEach(aa=>{ne.has(aa.key)&&yt(aa.key),aa.controller&&ne.set(aa.key,aa.controller)});let Xa=()=>qt.forEach(aa=>yt(aa.key));J&&J.signal.addEventListener("abort",Xa);let{loaderResults:jr,fetcherResults:sr}=yield mr(M.matches,ae,At,qt,H);if(H.signal.aborted)return{shortCircuited:!0};J&&J.signal.removeEventListener("abort",Xa),qt.forEach(aa=>ne.delete(aa.key));let ur=bk([...jr,...sr]);if(ur){if(ur.idx>=At.length){let aa=qt[ur.idx-At.length].key;Re.add(aa)}return yield Oa(H,ur.result,{replace:G}),{shortCircuited:!0}}let{loaderData:$r,errors:Pt}=vk(M,ae,At,jr,Ye,qt,sr,ze);ze.forEach((aa,nr)=>{aa.subscribe(Zr=>{(Zr||aa.done)&&ze.delete(nr)})}),b.v7_partialHydration&&ge&&M.errors&&Object.entries(M.errors).filter(aa=>{let[nr]=aa;return!At.some(Zr=>Zr.route.id===nr)}).forEach(aa=>{let[nr,Zr]=aa;Pt=Object.assign(Pt||{},{[nr]:Zr})});let Qn=Gt(),ds=Ea(be),fs=Qn||ds||qt.length>0;return Fa({matches:ae,loaderData:$r,errors:Pt},fs?{fetchers:new Map(M.fetchers)}:{})})}function xa(H){if(H&&!On(H[1]))return{[H[0]]:H[1].data};if(M.actionData)return Object.keys(M.actionData).length===0?null:M.actionData}function _r(H){return H.forEach(Y=>{let ae=M.fetchers.get(Y.key),le=Yh(void 0,ae?ae.data:void 0);M.fetchers.set(Y.key,le)}),new Map(M.fetchers)}function rr(H,Y,ae,le){if(l)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ne.has(H)&&yt(H);let $e=(le&&le.unstable_flushSync)===!0,Ue=h||u,N=o2(M.location,M.matches,p,b.v7_prependBasename,ae,b.v7_relativeSplatPath,Y,le==null?void 0:le.relative),G=su(Ue,N,p),ge=Fe(G,Ue,N);if(ge.active&&ge.matches&&(G=ge.matches),!G){Pa(H,Y,Tr(404,{pathname:N}),{flushSync:$e});return}let{path:Te,submission:Ye,error:_t}=ck(b.v7_normalizeFormMethod,!0,N,le);if(_t){Pa(H,Y,_t,{flushSync:$e});return}let at=nd(G,Te);if(ke=(le&&le.preventScrollReset)===!0,Ye&&El(Ye.formMethod)){lr(H,Y,Te,at,G,ge.active,$e,Ye);return}Pe.set(H,{routeId:Y,path:Te}),Na(H,Y,Te,at,G,ge.active,$e,Ye)}function lr(H,Y,ae,le,$e,Ue,N,G){return or(this,null,function*(){da(),Pe.delete(H);function ge(Ja){if(!Ja.route.action&&!Ja.route.lazy){let Zn=Tr(405,{method:G.formMethod,pathname:ae,routeId:Y});return Pa(H,Y,Zn,{flushSync:N}),!0}return!1}if(!Ue&&ge(le))return;let Te=M.fetchers.get(H);Ra(H,uW(G,Te),{flushSync:N});let Ye=new AbortController,_t=Af(a.history,ae,Ye.signal,G);if(Ue){let Ja=yield Ge($e,ae,_t.signal);if(Ja.type==="aborted")return;if(Ja.type==="error"){let{error:Zn}=V(ae,Ja);Pa(H,Y,Zn,{flushSync:N});return}else if(Ja.matches){if($e=Ja.matches,le=nd($e,ae),ge(le))return}else{Pa(H,Y,Tr(404,{pathname:ae}),{flushSync:N});return}}ne.set(H,Ye);let at=ve,Rt=(yield Ia("action",_t,[le],$e))[0];if(_t.signal.aborted){ne.get(H)===Ye&&ne.delete(H);return}if(b.v7_fetcherPersist&&rt.has(H)){if(lc(Rt)||On(Rt)){Ra(H,nc(void 0));return}}else{if(lc(Rt))if(ne.delete(H),be>at){Ra(H,nc(void 0));return}else return Re.add(H),Ra(H,Yh(G)),Oa(_t,Rt,{fetcherSubmission:G});if(On(Rt)){Pa(H,Y,Rt.error);return}}if(ic(Rt))throw Tr(400,{type:"defer-action"});let At=M.navigation.location||M.location,qt=Af(a.history,At,Ye.signal),Xa=h||u,jr=M.navigation.state!=="idle"?su(Xa,M.navigation.location,p):M.matches;La(jr,"Didn't find any matches after fetcher action");let sr=++ve;de.set(H,sr);let ur=Yh(G,Rt.data);M.fetchers.set(H,ur);let[$r,Pt]=dk(a.history,M,jr,G,At,!1,b.v7_skipActionErrorRevalidation,ee,me,z,rt,Pe,Re,Xa,p,[le.route.id,Rt]);Pt.filter(Ja=>Ja.key!==H).forEach(Ja=>{let Zn=Ja.key,xc=M.fetchers.get(Zn),lp=Yh(void 0,xc?xc.data:void 0);M.fetchers.set(Zn,lp),ne.has(Zn)&&yt(Zn),Ja.controller&&ne.set(Zn,Ja.controller)}),Le({fetchers:new Map(M.fetchers)});let Qn=()=>Pt.forEach(Ja=>yt(Ja.key));Ye.signal.addEventListener("abort",Qn);let{loaderResults:ds,fetcherResults:fs}=yield mr(M.matches,jr,$r,Pt,qt);if(Ye.signal.aborted)return;Ye.signal.removeEventListener("abort",Qn),de.delete(H),ne.delete(H),Pt.forEach(Ja=>ne.delete(Ja.key));let aa=bk([...ds,...fs]);if(aa){if(aa.idx>=$r.length){let Ja=Pt[aa.idx-$r.length].key;Re.add(Ja)}return Oa(qt,aa.result)}let{loaderData:nr,errors:Zr}=vk(M,M.matches,$r,ds,void 0,Pt,fs,ze);if(M.fetchers.has(H)){let Ja=nc(Rt.data);M.fetchers.set(H,Ja)}Ea(sr),M.navigation.state==="loading"&&sr>be?(La(oe,"Expected pending action"),J&&J.abort(),wt(M.navigation.location,{matches:jr,loaderData:nr,errors:Zr,fetchers:new Map(M.fetchers)})):(Le({errors:Zr,loaderData:gk(M.loaderData,nr,jr,Zr),fetchers:new Map(M.fetchers)}),ee=!1)})}function Na(H,Y,ae,le,$e,Ue,N,G){return or(this,null,function*(){let ge=M.fetchers.get(H);Ra(H,Yh(G,ge?ge.data:void 0),{flushSync:N});let Te=new AbortController,Ye=Af(a.history,ae,Te.signal);if(Ue){let Rt=yield Ge($e,ae,Ye.signal);if(Rt.type==="aborted")return;if(Rt.type==="error"){let{error:At}=V(ae,Rt);Pa(H,Y,At,{flushSync:N});return}else if(Rt.matches)$e=Rt.matches,le=nd($e,ae);else{Pa(H,Y,Tr(404,{pathname:ae}),{flushSync:N});return}}ne.set(H,Te);let _t=ve,Qe=(yield Ia("loader",Ye,[le],$e))[0];if(ic(Qe)&&(Qe=(yield qk(Qe,Ye.signal,!0))||Qe),ne.get(H)===Te&&ne.delete(H),!Ye.signal.aborted){if(rt.has(H)){Ra(H,nc(void 0));return}if(lc(Qe))if(be>_t){Ra(H,nc(void 0));return}else{Re.add(H),yield Oa(Ye,Qe);return}if(On(Qe)){Pa(H,Y,Qe.error);return}La(!ic(Qe),"Unhandled fetcher deferred data"),Ra(H,nc(Qe.data))}})}function Oa(H,Y,ae){return or(this,null,function*(){let{submission:le,fetcherSubmission:$e,replace:Ue}=ae===void 0?{}:ae;Y.response.headers.has("X-Remix-Revalidate")&&(ee=!0);let N=Y.response.headers.get("Location");La(N,"Expected a Location header on the redirect Response"),N=hk(N,new URL(H.url),p);let G=uu(M.location,N,{_isRedirect:!0});if(o){let Qe=!1;if(Y.response.headers.has("X-Remix-Reload-Document"))Qe=!0;else if(c2.test(N)){let Rt=a.history.createURL(N);Qe=Rt.origin!==r.location.origin||Gh(Rt.pathname,p)==null}if(Qe){Ue?r.location.replace(N):r.location.assign(N);return}}J=null;let ge=Ue===!0||Y.response.headers.has("X-Remix-Replace")?Ir.Replace:Ir.Push,{formMethod:Te,formAction:Ye,formEncType:_t}=M.navigation;!le&&!$e&&Te&&Ye&&_t&&(le=Sk(M.navigation));let at=le||$e;if(XV.has(Y.response.status)&&at&&El(at.formMethod))yield $t(ge,G,{submission:Fa({},at,{formAction:N}),preventScrollReset:ke});else{let Qe=a2(G,le);yield $t(ge,G,{overrideNavigation:Qe,fetcherSubmission:$e,preventScrollReset:ke})}})}function Ia(H,Y,ae,le){return or(this,null,function*(){try{let $e=yield jk(v,H,Y,ae,le,d,s);return yield Promise.all($e.map((Ue,N)=>{if($k(Ue)){let G=Ue.result;return{type:Ya.redirect,response:Vk(G,Y,ae[N].route.id,le,p,b.v7_relativeSplatPath)}}return Uk(Ue)}))}catch($e){return ae.map(()=>({type:Ya.error,error:$e}))}})}function mr(H,Y,ae,le,$e){return or(this,null,function*(){let[Ue,...N]=yield Promise.all([ae.length?Ia("loader",$e,ae,Y):[],...le.map(G=>{if(G.matches&&G.match&&G.controller){let ge=Af(a.history,G.path,G.controller.signal);return Ia("loader",ge,[G.match],G.matches).then(Te=>Te[0])}else return Promise.resolve({type:Ya.error,error:Tr(404,{pathname:G.path})})})]);return yield Promise.all([yk(H,ae,Ue,Ue.map(()=>$e.signal),!1,M.loaderData),yk(H,le.map(G=>G.match),N,le.map(G=>G.controller?G.controller.signal:null),!0)]),{loaderResults:Ue,fetcherResults:N}})}function da(){ee=!0,me.push(...q()),Pe.forEach((H,Y)=>{ne.has(Y)&&(z.add(Y),yt(Y))})}function Ra(H,Y,ae){ae===void 0&&(ae={}),M.fetchers.set(H,Y),Le({fetchers:new Map(M.fetchers)},{flushSync:(ae&&ae.flushSync)===!0})}function Pa(H,Y,ae,le){le===void 0&&(le={});let $e=rd(M.matches,Y);He(H),Le({errors:{[$e.route.id]:ae},fetchers:new Map(M.fetchers)},{flushSync:(le&&le.flushSync)===!0})}function br(H){return b.v7_fetcherPersist&&(Oe.set(H,(Oe.get(H)||0)+1),rt.has(H)&&rt.delete(H)),M.fetchers.get(H)||Nk}function He(H){let Y=M.fetchers.get(H);ne.has(H)&&!(Y&&Y.state==="loading"&&de.has(H))&&yt(H),Pe.delete(H),de.delete(H),Re.delete(H),rt.delete(H),z.delete(H),M.fetchers.delete(H)}function ct(H){if(b.v7_fetcherPersist){let Y=(Oe.get(H)||0)-1;Y<=0?(Oe.delete(H),rt.add(H)):Oe.set(H,Y)}else He(H);Le({fetchers:new Map(M.fetchers)})}function yt(H){let Y=ne.get(H);La(Y,"Expected fetch controller: "+H),Y.abort(),ne.delete(H)}function Xt(H){for(let Y of H){let ae=br(Y),le=nc(ae.data);M.fetchers.set(Y,le)}}function Gt(){let H=[],Y=!1;for(let ae of Re){let le=M.fetchers.get(ae);La(le,"Expected fetcher: "+ae),le.state==="loading"&&(Re.delete(ae),H.push(ae),Y=!0)}return Xt(H),Y}function Ea(H){let Y=[];for(let[ae,le]of de)if(le<H){let $e=M.fetchers.get(ae);La($e,"Expected fetcher: "+ae),$e.state==="loading"&&(yt(ae),de.delete(ae),Y.push(ae))}return Xt(Y),Y.length>0}function ga(H,Y){let ae=M.blockers.get(H)||Lf;return pt.get(H)!==Y&&pt.set(H,Y),ae}function Ka(H){M.blockers.delete(H),pt.delete(H)}function I(H,Y){let ae=M.blockers.get(H)||Lf;La(ae.state==="unblocked"&&Y.state==="blocked"||ae.state==="blocked"&&Y.state==="blocked"||ae.state==="blocked"&&Y.state==="proceeding"||ae.state==="blocked"&&Y.state==="unblocked"||ae.state==="proceeding"&&Y.state==="unblocked","Invalid blocker state transition: "+ae.state+" -> "+Y.state);let le=new Map(M.blockers);le.set(H,Y),Le({blockers:le})}function te(H){let{currentLocation:Y,nextLocation:ae,historyAction:le}=H;if(pt.size===0)return;pt.size>1&&ks(!1,"A router only supports one blocker at a time");let $e=Array.from(pt.entries()),[Ue,N]=$e[$e.length-1],G=M.blockers.get(Ue);if(!(G&&G.state==="proceeding")&&N({currentLocation:Y,nextLocation:ae,historyAction:le}))return Ue}function B(H){let Y=Tr(404,{pathname:H}),ae=h||u,{matches:le,route:$e}=jg(ae);return q(),{notFoundMatches:le,route:$e,error:Y}}function V(H,Y){return{boundaryId:rd(Y.partialMatches).route.id,error:Tr(400,{type:"route-discovery",pathname:H,message:Y.error!=null&&"message"in Y.error?Y.error:String(Y.error)})}}function q(H){let Y=[];return ze.forEach((ae,le)=>{(!H||H(le))&&(ae.cancel(),Y.push(le),ze.delete(le))}),Y}function fe(H,Y,ae){if(T=H,A=Y,L=ae||null,!$&&M.navigation===zg){$=!0;let le=Me(M.location,M.matches);le!=null&&Le({restoreScrollPosition:le})}return()=>{T=null,A=null,L=null}}function ie(H,Y){return L&&L(H,Y.map(le=>Ck(le,M.loaderData)))||H.key}function Ie(H,Y){if(T&&A){let ae=ie(H,Y);T[ae]=A()}}function Me(H,Y){if(T){let ae=ie(H,Y),le=T[ae];if(typeof le=="number")return le}return null}function Fe(H,Y,ae){if(y)if(H){let le=H[H.length-1].route;if(le.path&&(le.path==="*"||le.path.endsWith("/*")))return{active:!0,matches:Fg(Y,ae,p,!0)}}else return{active:!0,matches:Fg(Y,ae,p,!0)||[]};return{active:!1,matches:null}}function Ge(H,Y,ae){return or(this,null,function*(){let le=H,$e=le.length>0?le[le.length-1].route:null;for(;;){let Ue=h==null,N=h||u;try{yield aW(y,Y,le,N,d,s,Kt,ae)}catch(Ye){return{type:"error",error:Ye,partialMatches:le}}finally{Ue&&(u=[...u])}if(ae.aborted)return{type:"aborted"};let G=su(N,Y,p),ge=!1;if(G){let Ye=G[G.length-1].route;if(Ye.index)return{type:"success",matches:G};if(Ye.path&&Ye.path.length>0)if(Ye.path==="*")ge=!0;else return{type:"success",matches:G}}let Te=Fg(N,Y,p,!0);if(!Te||le.map(Ye=>Ye.route.id).join("-")===Te.map(Ye=>Ye.route.id).join("-"))return{type:"success",matches:ge?G:null};if(le=Te,$e=le[le.length-1].route,$e.path==="*")return{type:"success",matches:le}}})}function Be(H){d={},h=od(H,s,void 0,d)}function tt(H,Y){let ae=h==null;zk(H,Y,h||u,d,s),ae&&(u=[...u],Le({}))}return K={get basename(){return p},get future(){return b},get state(){return M},get routes(){return u},get window(){return r},initialize:bt,subscribe:nt,enableScrollRestoration:fe,navigate:zt,fetch:rr,revalidate:Yt,createHref:H=>a.history.createHref(H),encodeLocation:H=>a.history.encodeLocation(H),getFetcher:br,deleteFetcher:ct,dispose:It,getBlocker:ga,deleteBlocker:Ka,patchRoutes:tt,_internalFetchControllers:ne,_internalActiveDeferreds:ze,_internalSetRoutes:Be},K}var Pk=Symbol("deferred");function QV(a,r){La(a.length>0,"You must provide a non-empty routes array to createStaticHandler");let o={},l=(r?r.basename:null)||"/",s;if(r!=null&&r.mapRouteProperties)s=r.mapRouteProperties;else if(r!=null&&r.detectErrorBoundary){let w=r.detectErrorBoundary;s=T=>({hasErrorBoundary:w(T)})}else s=Ok;let d=Fa({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},r?r.future:null),u=od(a,s,void 0,o);function h(w,T){return or(this,null,function*(){let{requestContext:L,skipLoaderErrorBubbling:A,unstable_dataStrategy:$}=T===void 0?{}:T,F=new URL(w.url),j=w.method,U=uu("",Es(F),null,"default"),K=su(u,U,l);if(!s2(j)&&j!=="HEAD"){let oe=Tr(405,{method:j}),{matches:ke,route:J}=jg(u);return{basename:l,location:U,matches:ke,loaderData:{},actionData:null,errors:{[J.id]:oe},statusCode:oe.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!K){let oe=Tr(404,{pathname:U.pathname}),{matches:ke,route:J}=jg(u);return{basename:l,location:U,matches:ke,loaderData:{},actionData:null,errors:{[J.id]:oe},statusCode:oe.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let M=yield v(w,U,K,L,$||null,A===!0,null);return oc(M)?M:Fa({location:U,basename:l},M)})}function p(w,T){return or(this,null,function*(){let{routeId:L,requestContext:A,unstable_dataStrategy:$}=T===void 0?{}:T,F=new URL(w.url),j=w.method,U=uu("",Es(F),null,"default"),K=su(u,U,l);if(!s2(j)&&j!=="HEAD"&&j!=="OPTIONS")throw Tr(405,{method:j});if(!K)throw Tr(404,{pathname:U.pathname});let M=L?K.find(pe=>pe.route.id===L):nd(K,U);if(L&&!M)throw Tr(403,{pathname:U.pathname,routeId:L});if(!M)throw Tr(404,{pathname:U.pathname});let oe=yield v(w,U,K,A,$||null,!1,M);if(oc(oe))return oe;let ke=oe.errors?Object.values(oe.errors)[0]:void 0;if(ke!==void 0)throw ke;if(oe.actionData)return Object.values(oe.actionData)[0];if(oe.loaderData){var J;let pe=Object.values(oe.loaderData)[0];return(J=oe.activeDeferreds)!=null&&J[M.route.id]&&(pe[Pk]=oe.activeDeferreds[M.route.id]),pe}})}function v(w,T,L,A,$,F,j){return or(this,null,function*(){La(w.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(El(w.method.toLowerCase()))return yield y(w,L,j||nd(L,T),A,$,F,j!=null);let U=yield b(w,L,A,$,F,j);return oc(U)?U:Fa({},U,{actionData:null,actionHeaders:{}})}catch(U){if(iW(U)&&oc(U.result)){if(U.type===Ya.error)throw U.result;return U.result}if(lW(U))return U;throw U}})}function y(w,T,L,A,$,F,j){return or(this,null,function*(){let U;if(!L.route.action&&!L.route.lazy){let oe=Tr(405,{method:w.method,pathname:new URL(w.url).pathname,routeId:L.route.id});if(j)throw oe;U={type:Ya.error,error:oe}}else U=(yield C("action",w,[L],T,j,A,$))[0],w.signal.aborted&&uk(w,j,d);if(lc(U))throw new Response(null,{status:U.response.status,headers:{Location:U.response.headers.get("Location")}});if(ic(U)){let oe=Tr(400,{type:"defer-action"});if(j)throw oe;U={type:Ya.error,error:oe}}if(j){if(On(U))throw U.error;return{matches:[L],loaderData:{},actionData:{[L.route.id]:U.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let K=new Request(w.url,{headers:w.headers,redirect:w.redirect,signal:w.signal});if(On(U)){let oe=F?L:rd(T,L.route.id),ke=yield b(K,T,A,$,F,null,[oe.route.id,U]);return Fa({},ke,{statusCode:Of(U.error)?U.error.status:U.statusCode!=null?U.statusCode:500,actionData:null,actionHeaders:Fa({},U.headers?{[L.route.id]:U.headers}:{})})}let M=yield b(K,T,A,$,F,null);return Fa({},M,{actionData:{[L.route.id]:U.data}},U.statusCode?{statusCode:U.statusCode}:{},{actionHeaders:U.headers?{[L.route.id]:U.headers}:{}})})}function b(w,T,L,A,$,F,j){return or(this,null,function*(){let U=F!=null;if(U&&!(F!=null&&F.route.loader)&&!(F!=null&&F.route.lazy))throw Tr(400,{method:w.method,pathname:new URL(w.url).pathname,routeId:F==null?void 0:F.route.id});let M=(F?[F]:j&&On(j[1])?Mk(T,j[0]):T).filter(he=>he.route.loader||he.route.lazy);if(M.length===0)return{matches:T,loaderData:T.reduce((he,ce)=>Object.assign(he,{[ce.route.id]:null}),{}),errors:j&&On(j[1])?{[j[0]]:j[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let oe=yield C("loader",w,M,T,U,L,A);w.signal.aborted&&uk(w,U,d);let ke=new Map,J=Wk(T,M,oe,j,ke,$),pe=new Set(M.map(he=>he.route.id));return T.forEach(he=>{pe.has(he.route.id)||(J.loaderData[he.route.id]=null)}),Fa({},J,{matches:T,activeDeferreds:ke.size>0?Object.fromEntries(ke.entries()):null})})}function C(w,T,L,A,$,F,j){return or(this,null,function*(){let U=yield jk(j||Hk,w,T,L,A,o,s,F);return yield Promise.all(U.map((K,M)=>{if($k(K)){let oe=K.result;throw Vk(oe,T,L[M].route.id,A,l,d.v7_relativeSplatPath)}if(oc(K.result)&&$)throw K;return Uk(K)}))})}return{dataRoutes:u,query:h,queryRoute:p}}function ZV(a,r,o){return Fa({},r,{statusCode:Of(o)?o.status:500,errors:{[r._deepestRenderedBoundaryId||a[0].id]:o}})}function uk(a,r,o){if(o.v7_throwAbortReason&&a.signal.reason!==void 0)throw a.signal.reason;let l=r?"queryRoute":"query";throw new Error(l+"() call aborted: "+a.method+" "+a.url)}function eW(a){return a!=null&&("formData"in a&&a.formData!=null||"body"in a&&a.body!==void 0)}function o2(a,r,o,l,s,d,u,h){let p,v;if(u){p=[];for(let b of r)if(p.push(b),b.route.id===u){v=b;break}}else p=r,v=r[r.length-1];let y=Ak(s||".",Dk(p,d),Gh(a.pathname,o)||a.pathname,h==="path");return s==null&&(y.search=a.search,y.hash=a.hash),(s==null||s===""||s===".")&&v&&v.route.index&&!d2(y.search)&&(y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index"),l&&o!=="/"&&(y.pathname=y.pathname==="/"?o:Bf([o,y.pathname])),Es(y)}function ck(a,r,o,l){if(!l||!eW(l))return{path:o};if(l.formMethod&&!s2(l.formMethod))return{path:o,error:Tr(405,{method:l.formMethod})};let s=()=>({path:o,error:Tr(400,{type:"invalid-body"})}),d=l.formMethod||"get",u=a?d.toUpperCase():d.toLowerCase(),h=Yk(o);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!El(u))return s();let C=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((w,T)=>{let[L,A]=T;return""+w+L+"="+A+`
146
146
  `},""):String(l.body);return{path:o,submission:{formMethod:u,formAction:h,formEncType:l.formEncType,formData:void 0,json:void 0,text:C}}}else if(l.formEncType==="application/json"){if(!El(u))return s();try{let C=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:o,submission:{formMethod:u,formAction:h,formEncType:l.formEncType,formData:void 0,json:C,text:void 0}}}catch(C){return s()}}}La(typeof FormData=="function","FormData is not available in this environment");let p,v;if(l.formData)p=i2(l.formData),v=l.formData;else if(l.body instanceof FormData)p=i2(l.body),v=l.body;else if(l.body instanceof URLSearchParams)p=l.body,v=mk(p);else if(l.body==null)p=new URLSearchParams,v=new FormData;else try{p=new URLSearchParams(l.body),v=mk(p)}catch(C){return s()}let y={formMethod:u,formAction:h,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(El(y.formMethod))return{path:o,submission:y};let b=Xl(o);return r&&b.search&&d2(b.search)&&p.append("index",""),b.search="?"+p,{path:Es(b),submission:y}}function Mk(a,r){let o=a;if(r){let l=a.findIndex(s=>s.route.id===r);l>=0&&(o=a.slice(0,l))}return o}function dk(a,r,o,l,s,d,u,h,p,v,y,b,C,w,T,L){let A=L?On(L[1])?L[1].error:L[1].data:void 0,$=a.createURL(r.location),F=a.createURL(s),j=L&&On(L[1])?L[0]:void 0,U=j?Mk(o,j):o,K=L?L[1].statusCode:void 0,M=u&&K&&K>=400,oe=U.filter((J,pe)=>{let{route:he}=J;if(he.lazy)return!0;if(he.loader==null)return!1;if(d)return typeof he.loader!="function"||he.loader.hydrate?!0:r.loaderData[he.id]===void 0&&(!r.errors||r.errors[he.id]===void 0);if(tW(r.loaderData,r.matches[pe],J)||p.some(ee=>ee===J.route.id))return!0;let ce=r.matches[pe],P=J;return fk(J,Fa({currentUrl:$,currentParams:ce.params,nextUrl:F,nextParams:P.params},l,{actionResult:A,actionStatus:K,defaultShouldRevalidate:M?!1:h||$.pathname+$.search===F.pathname+F.search||$.search!==F.search||Fk(ce,P)}))}),ke=[];return b.forEach((J,pe)=>{if(d||!o.some(me=>me.route.id===J.routeId)||y.has(pe))return;let he=su(w,J.path,T);if(!he){ke.push({key:pe,routeId:J.routeId,path:J.path,matches:null,match:null,controller:null});return}let ce=r.fetchers.get(pe),P=nd(he,J.path),ee=!1;C.has(pe)?ee=!1:v.has(pe)?(v.delete(pe),ee=!0):ce&&ce.state!=="idle"&&ce.data===void 0?ee=h:ee=fk(P,Fa({currentUrl:$,currentParams:r.matches[r.matches.length-1].params,nextUrl:F,nextParams:o[o.length-1].params},l,{actionResult:A,actionStatus:K,defaultShouldRevalidate:M?!1:h})),ee&&ke.push({key:pe,routeId:J.routeId,path:J.path,matches:he,match:P,controller:new AbortController})}),[oe,ke]}function tW(a,r,o){let l=!r||o.route.id!==r.route.id,s=a[o.route.id]===void 0;return l||s}function Fk(a,r){let o=a.route.path;return a.pathname!==r.pathname||o!=null&&o.endsWith("*")&&a.params["*"]!==r.params["*"]}function fk(a,r){if(a.route.shouldRevalidate){let o=a.route.shouldRevalidate(r);if(typeof o=="boolean")return o}return r.defaultShouldRevalidate}function aW(a,r,o,l,s,d,u,h){return or(this,null,function*(){let p=[r,...o.map(v=>v.route.id)].join("-");try{let v=u.get(p);v||(v=a({path:r,matches:o,patch:(y,b)=>{h.aborted||zk(y,b,l,s,d)}}),u.set(p,v)),v&&oW(v)&&(yield v)}finally{u.delete(p)}})}function zk(a,r,o,l,s){if(a){var d;let u=l[a];La(u,"No route found to patch children into: routeId = "+a);let h=od(r,s,[a,"patch",String(((d=u.children)==null?void 0:d.length)||"0")],l);u.children?u.children.push(...h):u.children=h}else{let u=od(r,s,["patch",String(o.length||"0")],l);o.push(...u)}}function pk(a,r,o){return or(this,null,function*(){if(!a.lazy)return;let l=yield a.lazy();if(!a.lazy)return;let s=o[a.id];La(s,"No route found in manifest");let d={};for(let u in l){let p=s[u]!==void 0&&u!=="hasErrorBoundary";ks(!p,'Route "'+s.id+'" has a static property "'+u+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+u+'" will be ignored.')),!p&&!SV.has(u)&&(d[u]=l[u])}Object.assign(s,d),Object.assign(s,Fa({},r(s),{lazy:void 0}))})}function Hk(a){return Promise.all(a.matches.map(r=>r.resolve()))}function jk(a,r,o,l,s,d,u,h){return or(this,null,function*(){let p=l.reduce((b,C)=>b.add(C.route.id),new Set),v=new Set,y=yield a({matches:s.map(b=>{let C=p.has(b.route.id);return Fa({},b,{shouldLoad:C,resolve:T=>(v.add(b.route.id),C?rW(r,o,b,d,u,T,h):Promise.resolve({type:Ya.data,result:void 0}))})}),request:o,params:s[0].params,context:h});return s.forEach(b=>La(v.has(b.route.id),'`match.resolve()` was not called for route id "'+b.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),y.filter((b,C)=>p.has(s[C].route.id))})}function rW(a,r,o,l,s,d,u){return or(this,null,function*(){let h,p,v=y=>{let b,C=new Promise((L,A)=>b=A);p=()=>b(),r.signal.addEventListener("abort",p);let w=L=>typeof y!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+a+'" [routeId: '+o.route.id+"]"))):y({request:r,params:o.params,context:u},...L!==void 0?[L]:[]),T;return d?T=d(L=>w(L)):T=or(this,null,function*(){try{return{type:"data",result:yield w()}}catch(L){return{type:"error",result:L}}}),Promise.race([T,C])};try{let y=o.route[a];if(o.route.lazy)if(y){let b,[C]=yield Promise.all([v(y).catch(w=>{b=w}),pk(o.route,s,l)]);if(b!==void 0)throw b;h=C}else if(yield pk(o.route,s,l),y=o.route[a],y)h=yield v(y);else if(a==="action"){let b=new URL(r.url),C=b.pathname+b.search;throw Tr(405,{method:r.method,pathname:C,routeId:o.route.id})}else return{type:Ya.data,result:void 0};else if(y)h=yield v(y);else{let b=new URL(r.url),C=b.pathname+b.search;throw Tr(404,{pathname:C})}La(h.result!==void 0,"You defined "+(a==="action"?"an action":"a loader")+" for route "+('"'+o.route.id+"\" but didn't return anything from your `"+a+"` ")+"function. Please return a value or `null`.")}catch(y){return{type:Ya.error,result:y}}finally{p&&r.signal.removeEventListener("abort",p)}return h})}function Uk(a){return or(this,null,function*(){let{result:r,type:o}=a;if(oc(r)){let v;try{let y=r.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?r.body==null?v=null:v=yield r.json():v=yield r.text()}catch(y){return{type:Ya.error,error:y}}return o===Ya.error?{type:Ya.error,error:new Nf(r.status,r.statusText,v),statusCode:r.status,headers:r.headers}:{type:Ya.data,data:v,statusCode:r.status,headers:r.headers}}if(o===Ya.error){if(l2(r)){var l;if(r.data instanceof Error){var s;return{type:Ya.error,error:r.data,statusCode:(s=r.init)==null?void 0:s.status}}r=new Nf(((l=r.init)==null?void 0:l.status)||500,void 0,r.data)}return{type:Ya.error,error:r,statusCode:Of(r)?r.status:void 0}}if(Gk(r)){var d,u;return{type:Ya.deferred,deferredData:r,statusCode:(d=r.init)==null?void 0:d.status,headers:((u=r.init)==null?void 0:u.headers)&&new Headers(r.init.headers)}}if(l2(r)){var h,p;return{type:Ya.data,data:r.data,statusCode:(h=r.init)==null?void 0:h.status,headers:(p=r.init)!=null&&p.headers?new Headers(r.init.headers):void 0}}return{type:Ya.data,data:r}})}function Vk(a,r,o,l,s,d){let u=a.headers.get("Location");if(La(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!c2.test(u)){let h=l.slice(0,l.findIndex(p=>p.route.id===o)+1);u=o2(new URL(r.url),h,s,!0,u,d),a.headers.set("Location",u)}return a}function hk(a,r,o){if(c2.test(a)){let l=a,s=l.startsWith("//")?new URL(r.protocol+l):new URL(l),d=Gh(s.pathname,o)!=null;if(s.origin===r.origin&&d)return s.pathname+s.search+s.hash}return a}function Af(a,r,o,l){let s=a.createURL(Yk(r)).toString(),d={signal:o};if(l&&El(l.formMethod)){let{formMethod:u,formEncType:h}=l;d.method=u.toUpperCase(),h==="application/json"?(d.headers=new Headers({"Content-Type":h}),d.body=JSON.stringify(l.json)):h==="text/plain"?d.body=l.text:h==="application/x-www-form-urlencoded"&&l.formData?d.body=i2(l.formData):d.body=l.formData}return new Request(s,d)}function i2(a){let r=new URLSearchParams;for(let[o,l]of a.entries())r.append(o,typeof l=="string"?l:l.name);return r}function mk(a){let r=new FormData;for(let[o,l]of a.entries())r.append(o,l);return r}function Wk(a,r,o,l,s,d){let u={},h=null,p,v=!1,y={},b=l&&On(l[1])?l[1].error:void 0;return o.forEach((C,w)=>{let T=r[w].route.id;if(La(!lc(C),"Cannot handle redirect results in processLoaderData"),On(C)){let L=C.error;if(b!==void 0&&(L=b,b=void 0),h=h||{},d)h[T]=L;else{let A=rd(a,T);h[A.route.id]==null&&(h[A.route.id]=L)}u[T]=void 0,v||(v=!0,p=Of(C.error)?C.error.status:500),C.headers&&(y[T]=C.headers)}else ic(C)?(s.set(T,C.deferredData),u[T]=C.deferredData.data,C.statusCode!=null&&C.statusCode!==200&&!v&&(p=C.statusCode),C.headers&&(y[T]=C.headers)):(u[T]=C.data,C.statusCode&&C.statusCode!==200&&!v&&(p=C.statusCode),C.headers&&(y[T]=C.headers))}),b!==void 0&&l&&(h={[l[0]]:b},u[l[0]]=void 0),{loaderData:u,errors:h,statusCode:p||200,loaderHeaders:y}}function vk(a,r,o,l,s,d,u,h){let{loaderData:p,errors:v}=Wk(r,o,l,s,h,!1);for(let y=0;y<d.length;y++){let{key:b,match:C,controller:w}=d[y];La(u!==void 0&&u[y]!==void 0,"Did not find corresponding fetcher result");let T=u[y];if(!(w&&w.signal.aborted))if(On(T)){let L=rd(a.matches,C==null?void 0:C.route.id);v&&v[L.route.id]||(v=Fa({},v,{[L.route.id]:T.error})),a.fetchers.delete(b)}else if(lc(T))La(!1,"Unhandled fetcher revalidation redirect");else if(ic(T))La(!1,"Unhandled fetcher deferred data");else{let L=nc(T.data);a.fetchers.set(b,L)}}return{loaderData:p,errors:v}}function gk(a,r,o,l){let s=Fa({},r);for(let d of o){let u=d.route.id;if(r.hasOwnProperty(u)?r[u]!==void 0&&(s[u]=r[u]):a[u]!==void 0&&d.route.loader&&(s[u]=a[u]),l&&l.hasOwnProperty(u))break}return s}function _k(a){return a?On(a[1])?{actionData:{}}:{actionData:{[a[0]]:a[1].data}}:{}}function rd(a,r){return(r?a.slice(0,a.findIndex(l=>l.route.id===r)+1):[...a]).reverse().find(l=>l.route.hasErrorBoundary===!0)||a[0]}function jg(a){let r=a.length===1?a[0]:a.find(o=>o.index||!o.path||o.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:r}],route:r}}function Tr(a,r){let{pathname:o,routeId:l,method:s,type:d,message:u}=r===void 0?{}:r,h="Unknown Server Error",p="Unknown @remix-run/router error";return a===400?(h="Bad Request",d==="route-discovery"?p='Unable to match URL "'+o+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error:
147
147
  `+u):s&&o&&l?p="You made a "+s+' request to "'+o+'" but '+('did not provide a `loader` for route "'+l+'", ')+"so there is no way to handle the request.":d==="defer-action"?p="defer() is not supported in actions":d==="invalid-body"&&(p="Unable to encode submission body")):a===403?(h="Forbidden",p='Route "'+l+'" does not match URL "'+o+'"'):a===404?(h="Not Found",p='No route matches URL "'+o+'"'):a===405&&(h="Method Not Allowed",s&&o&&l?p="You made a "+s.toUpperCase()+' request to "'+o+'" but '+('did not provide an `action` for route "'+l+'", ')+"so there is no way to handle the request.":s&&(p='Invalid request method "'+s.toUpperCase()+'"')),new Nf(a||500,h,new Error(p),!0)}function bk(a){for(let r=a.length-1;r>=0;r--){let o=a[r];if(lc(o))return{result:o,idx:r}}}function Yk(a){let r=typeof a=="string"?Xl(a):a;return Es(Fa({},r,{hash:""}))}function nW(a,r){return a.pathname!==r.pathname||a.search!==r.search?!1:a.hash===""?r.hash!=="":a.hash===r.hash?!0:r.hash!==""}function oW(a){return typeof a=="object"&&a!=null&&"then"in a}function iW(a){return a!=null&&typeof a=="object"&&"type"in a&&"result"in a&&(a.type===Ya.data||a.type===Ya.error)}function $k(a){return oc(a.result)&&KV.has(a.result.status)}function ic(a){return a.type===Ya.deferred}function On(a){return a.type===Ya.error}function lc(a){return(a&&a.type)===Ya.redirect}function l2(a){return typeof a=="object"&&a!=null&&"type"in a&&"data"in a&&"init"in a&&a.type==="DataWithResponseInit"}function Gk(a){let r=a;return r&&typeof r=="object"&&typeof r.data=="object"&&typeof r.subscribe=="function"&&typeof r.cancel=="function"&&typeof r.resolveData=="function"}function oc(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.headers=="object"&&typeof a.body!="undefined"}function lW(a){if(!oc(a))return!1;let r=a.status,o=a.headers.get("Location");return r>=300&&r<=399&&o!=null}function s2(a){return qV.has(a.toLowerCase())}function El(a){return $V.has(a.toLowerCase())}function yk(a,r,o,l,s,d){return or(this,null,function*(){for(let u=0;u<o.length;u++){let h=o[u],p=r[u];if(!p)continue;let v=a.find(b=>b.route.id===p.route.id),y=v!=null&&!Fk(v,p)&&(d&&d[p.route.id])!==void 0;if(ic(h)&&(s||y)){let b=l[u];La(b,"Expected an AbortSignal for revalidating fetcher deferred result"),yield qk(h,b,s).then(C=>{C&&(o[u]=C||o[u])})}}})}function qk(a,r,o){return or(this,null,function*(){if(o===void 0&&(o=!1),!(yield a.deferredData.resolveData(r))){if(o)try{return{type:Ya.data,data:a.deferredData.unwrappedData}}catch(s){return{type:Ya.error,error:s}}return{type:Ya.data,data:a.deferredData.data}}})}function d2(a){return new URLSearchParams(a).getAll("index").some(r=>r==="")}function nd(a,r){let o=typeof r=="string"?Xl(r).search:r.search;if(a[a.length-1].route.index&&d2(o||""))return a[a.length-1];let l=Rk(a);return l[l.length-1]}function Sk(a){let{formMethod:r,formAction:o,formEncType:l,text:s,formData:d,json:u}=a;if(!(!r||!o||!l)){if(s!=null)return{formMethod:r,formAction:o,formEncType:l,formData:void 0,json:void 0,text:s};if(d!=null)return{formMethod:r,formAction:o,formEncType:l,formData:d,json:void 0,text:void 0};if(u!==void 0)return{formMethod:r,formAction:o,formEncType:l,formData:void 0,json:u,text:void 0}}}function a2(a,r){return r?{state:"loading",location:a,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:a,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function sW(a,r){return{state:"submitting",location:a,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function Yh(a,r){return a?{state:"loading",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:r}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function uW(a,r){return{state:"submitting",formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text,data:r?r.data:void 0}}function nc(a){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function cW(a,r){try{let o=a.sessionStorage.getItem(Ik);if(o){let l=JSON.parse(o);for(let[s,d]of Object.entries(l||{}))d&&Array.isArray(d)&&r.set(s,new Set(d||[]))}}catch(o){}}function dW(a,r){if(r.size>0){let o={};for(let[l,s]of r)o[l]=[...s];try{a.sessionStorage.setItem(Ik,JSON.stringify(o))}catch(l){ks(!1,"Failed to save applied view transitions in sessionStorage ("+l+").")}}}ca.AbortedDeferredError=$h;ca.Action=Ir;ca.IDLE_BLOCKER=Lf;ca.IDLE_FETCHER=Nk;ca.IDLE_NAVIGATION=zg;ca.UNSAFE_DEFERRED_SYMBOL=Pk;ca.UNSAFE_DeferredData=Hg;ca.UNSAFE_ErrorResponseImpl=Nf;ca.UNSAFE_convertRouteMatchToUiMatch=Ck;ca.UNSAFE_convertRoutesToDataRoutes=od;ca.UNSAFE_decodePath=kk;ca.UNSAFE_getResolveToMatches=Dk;ca.UNSAFE_invariant=La;ca.UNSAFE_warning=ks;ca.createBrowserHistory=_V;ca.createHashHistory=bV;ca.createMemoryHistory=gV;ca.createPath=Es;ca.createRouter=JV;ca.createStaticHandler=QV;ca.defer=VV;ca.generatePath=NV;ca.getStaticContextFromError=ZV;ca.getToPathname=PV;ca.isDataWithResponseInit=l2;ca.isDeferredData=Gk;ca.isRouteErrorResponse=Of;ca.joinPaths=Bf;ca.json=zV;ca.matchPath=r2;ca.matchRoutes=su;ca.normalizePathname=Lk;ca.parsePath=Xl;ca.redirect=u2;ca.redirectDocument=WV;ca.replace=YV;ca.resolvePath=Ek;ca.resolveTo=Ak;ca.stripBasename=Gh;ca.unstable_data=HV});var Xk=Ke((Ug,Kk)=>{(function(a,r){typeof Ug=="object"&&typeof Kk!="undefined"?r(Ug,ha(),f2()):typeof define=="function"&&define.amd?define(["exports","react","@remix-run/router"],r):(a=typeof globalThis!="undefined"?globalThis:a||self,r(a.ReactRouter={},a.React,a.RemixRouter))})(Ug,function(a,r,o){"use strict";function l(I){if(I&&I.__esModule)return I;var te=Object.create(null);return I&&Object.keys(I).forEach(function(B){if(B!=="default"){var V=Object.getOwnPropertyDescriptor(I,B);Object.defineProperty(te,B,V.get?V:{enumerable:!0,get:function(){return I[B]}})}}),te.default=I,Object.freeze(te)}var s=l(r);function d(){return d=Object.assign?Object.assign.bind():function(I){for(var te=1;te<arguments.length;te++){var B=arguments[te];for(var V in B)Object.prototype.hasOwnProperty.call(B,V)&&(I[V]=B[V])}return I},d.apply(this,arguments)}let u=s.createContext(null);u.displayName="DataRouter";let h=s.createContext(null);h.displayName="DataRouterState";let p=s.createContext(null);p.displayName="Await";let v=s.createContext(null);v.displayName="Navigation";let y=s.createContext(null);y.displayName="Location";let b=s.createContext({outlet:null,matches:[],isDataRoute:!1});b.displayName="Route";let C=s.createContext(null);C.displayName="RouteError";function w(I,te){let{relative:B}=te===void 0?{}:te;T()||o.UNSAFE_invariant(!1,"useHref() may be used only in the context of a <Router> component.");let{basename:V,navigator:q}=s.useContext(v),{hash:fe,pathname:ie,search:Ie}=pe(I,{relative:B}),Me=ie;return V!=="/"&&(Me=ie==="/"?V:o.joinPaths([V,ie])),q.createHref({pathname:Me,search:Ie,hash:fe})}function T(){return s.useContext(y)!=null}function L(){return T()||o.UNSAFE_invariant(!1,"useLocation() may be used only in the context of a <Router> component."),s.useContext(y).location}function A(){return s.useContext(y).navigationType}function $(I){T()||o.UNSAFE_invariant(!1,"useMatch() may be used only in the context of a <Router> component.");let{pathname:te}=L();return s.useMemo(()=>o.matchPath(I,o.UNSAFE_decodePath(te)),[te,I])}let F="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function j(I){s.useContext(v).static||s.useLayoutEffect(I)}function U(){let{isDataRoute:I}=s.useContext(b);return I?oa():K()}function K(){T()||o.UNSAFE_invariant(!1,"useNavigate() may be used only in the context of a <Router> component.");let I=s.useContext(u),{basename:te,future:B,navigator:V}=s.useContext(v),{matches:q}=s.useContext(b),{pathname:fe}=L(),ie=JSON.stringify(o.UNSAFE_getResolveToMatches(q,B.v7_relativeSplatPath)),Ie=s.useRef(!1);return j(()=>{Ie.current=!0}),s.useCallback(function(Fe,Ge){if(Ge===void 0&&(Ge={}),o.UNSAFE_warning(Ie.current,F),!Ie.current)return;if(typeof Fe=="number"){V.go(Fe);return}let Be=o.resolveTo(Fe,JSON.parse(ie),fe,Ge.relative==="path");I==null&&te!=="/"&&(Be.pathname=Be.pathname==="/"?te:o.joinPaths([te,Be.pathname])),(Ge.replace?V.replace:V.push)(Be,Ge.state,Ge)},[te,V,ie,fe,I])}let M=s.createContext(null);function oe(){return s.useContext(M)}function ke(I){let te=s.useContext(b).outlet;return te&&s.createElement(M.Provider,{value:I},te)}function J(){let{matches:I}=s.useContext(b),te=I[I.length-1];return te?te.params:{}}function pe(I,te){let{relative:B}=te===void 0?{}:te,{future:V}=s.useContext(v),{matches:q}=s.useContext(b),{pathname:fe}=L(),ie=JSON.stringify(o.UNSAFE_getResolveToMatches(q,V.v7_relativeSplatPath));return s.useMemo(()=>o.resolveTo(I,JSON.parse(ie),fe,B==="path"),[I,ie,fe,B])}function he(I,te){return ce(I,te)}function ce(I,te,B,V){T()||o.UNSAFE_invariant(!1,"useRoutes() may be used only in the context of a <Router> component.");let{navigator:q}=s.useContext(v),{matches:fe}=s.useContext(b),ie=fe[fe.length-1],Ie=ie?ie.params:{},Me=ie?ie.pathname:"/",Fe=ie?ie.pathnameBase:"/",Ge=ie&&ie.route;{let Ue=Ge&&Ge.path||"";xa(Me,!Ge||Ue.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+Me+'" (under <Route path="'+Ue+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
@@ -977,7 +977,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
977
977
  <div class="${Zl("Wave")}" />
978
978
  </div>`).addEvent({eventID:"RippleMouseOut",eventType:"mouseout",callback:F=>{hd.End($)}}).find("#"+d).find("."+Zl("Wave")).css({left:L,top:A}).await(10).css({height:T,width:T,opacity:".3",transition:".25s"})},End:a=>{let{RippleElement:r,startedAt:o,size:l}=a,s=rs.default.Time().ms-o<=400?".75s":".55s",d=l*2.5;(0,rs.default)(document).removeEvent(["RippleMouseUp","RippleTouchMove","RippleTouchEnd","RippleMouseOut"]),r.removeEvent(["RippleMouseOut"]).find("."+Zl("Wave")).css({height:d,width:d,opacity:"0",transition:s}).await(750).parent().callback(u=>{u.remove()})}},AN={Wrapper:()=>(typeof window=="undefined"||(0,rs.default)(lt.get().appRoot).addEvent({eventType:"touchstart",target:hd.RippleElementTag,callback:a=>{hd.Start(a)}}).addEvent({eventType:"mousedown",eventID:"RippleMouseDown",target:hd.RippleElementTag,callback:a=>{lt.get().isTouchDevice||hd.Start(a)}}),null)};var rw=Z(ma());var LN={Wrapper:()=>(typeof window=="undefined"||(0,rw.default)(lt.get().appRoot).addEvent({eventType:"click",eventID:"PuddingClick",target:'[data-effect-pudding="1"]',callback:function(a){(0,rw.default)(a.target).removeClass(Zl("PuddingEffect")).await(1).addClass(Zl("PuddingEffect")).await(510).removeClass(Zl("PuddingEffect"))}}),null)};var _u={Ripple:AN,Pudding:LN,FadeIn:RN,FadeUp:DN};var C_=a=>{let{viewIndex:r=0,views:o,wrapper:l=u=>(0,hm.jsx)(_u.FadeIn,{animationTime:400,children:u},r)}=a;r=Math.min(Math.max(r,0),o.length);let[s,d]=(0,BN.useState)(r);return s!=r&&d(r),(0,hm.jsx)(hm.Fragment,{children:l(o[r])})};var mm=Z(Mt()),bu=Z(ha()),Dl=Z(ma());var G$=a=>{let r=a,{options:{onSlideCallback:o,visibilitySurroundSlide:l=!0,autoSwipems:s=0,loop:d=!1,disableMousedrag:u=!1,disableTouch:h=!1}={},wrapper:p=j=>j,slides:v=[],slideIndex:y}=r,b=Ze(r,["options","wrapper","slides","slideIndex"]),[C]=(0,bu.useState)(Dl.default.uuid.gen()),[w,T]=(0,bu.useState)({eventType:"init",index:a.slideIndex});(0,bu.useEffect)(()=>{Ve.set({["SwipeTimer-"+C]:null})},[]);let L=(0,bu.useRef)(!1);(0,bu.useEffect)(()=>{T({eventType:"usr",index:a.slideIndex}),L.current||(L.current=!0)},[a.slideIndex]),(0,bu.useEffect)(()=>{let j=w.index+(d?1:0),U=[-1,v.length].includes(w.index);U||o&&setTimeout(()=>{o(w.index)},300);let K=xt("#Swiper-"+C);if(w.eventType=="adjustLoop")K.await(250).css({transition:"0s",transform:Bo.TrasformString(j)}).children().removeClass(Dr("Display")).parent().children(j).addClass([Dr("Display"),Dr("LoopAdjusting")]).await(100).removeClass(Dr("LoopAdjusting"));else if(w.eventType=="sys")K.await(250).css({transform:Bo.TrasformString(j)}).children().removeClass(Dr("Display")).parent().children(j).addClass(Dr("Display"));else if(K.children().removeClass(Dr("Display")).parent().children(j).addClass(Dr("Display")).parent().css({transition:"0.3s",transform:Bo.TrasformString(j)}).await(250).css({transition:"0s"}),U){let M=w.index==-1?v.length-1:0;T({eventType:"adjustLoop",index:M})}s&&!U&&(Dl.default.interval.clear("SwipeTimer-"+C),Dl.default.interval.standBy("SwipeTimer-"+C,s-(w.eventType=="sys"?310:0),()=>{let M=w.index+1;!d&&M>v.length-1&&(M=0),T({eventType:"usr",index:M})}))},[w]);let A=v.map((j,U)=>(0,mm.jsx)(E,{flexSizing:"none",width:1,height:0,className:Dr("Child"),children:p(j)},U));d&&(A.push(A[0]),A.unshift(A[A.length-2]));let $={x:0,y:0,process:!1,effectStartAt:0,id:C,loop:d,index:w.index,minIndex:d?-1:0,maxIndex:v.length+(d?1:-1),width:0,set_event:T},F=w.index+(d?1:0);return(0,mm.jsx)(E,D(_({overflow:"hidden",position:"relative"},b),{className:[b.className,Dr("SwipeView")].join(" "),freeCSS:_({zIndex:1},b.freeCSS),"data-swipe-id":C,onMouseDown:j=>{u||j.buttons==1&&Bo.EffectStart(j,$)},onTouchStart:j=>{var U;h||((U=j.touches)==null?void 0:U.length)==1&&Bo.EffectStart(j,$)},children:(0,mm.jsx)(vt,{flexWrap:!1,gap:1,transition:"long",className:[Dr("Rail"),Dr("ShowOther_"+l)].join(" "),id:"Swiper-"+C,freeCSS:_({},L.current?{}:{transform:Bo.TrasformString(F)}),children:A})}))},Bo={TrasformString:a=>`translateX( calc( ${-100*a}% - ${12*a}px ) )`,EffectStart:(a,r)=>{let{x:o,y:l}=Dl.default.getCursor(a),s=a.currentTarget,d=a.target;if(["SELECT","BUTTON","LABEL","INPUT"].includes(d.tagName))return;r=D(_({},r),{x:o-r.x+window.scrollX,y:l-r.y+window.scrollY,effectStartAt:new Date().getTime(),width:xt("#Swiper-"+r.id).position().width});let{swipeId:u}=s.dataset;u==r.id&&(0,Dl.default)(document).addEvent({eventID:"SwipeMouseMove",eventType:"mousemove",callback:h=>{Bo.EffectCheck(h,r)},options:{passive:!1}}).addEvent({eventID:"SwipeTouchMove",eventType:"touchmove",callback:h=>{Bo.EffectCheck(h,r)},options:{passive:!1}}).addEvent({eventID:"SwipeMouseUp",eventType:"mouseup",callback:h=>{Bo.EffectEnd(h,r)},options:{passive:!1}}).addEvent({eventID:"SwipeTouchEnd",eventType:"touchend",callback:h=>{Bo.EffectEnd(h,r)},options:{passive:!1}})},EffectCheck:(a,r)=>{if(r.process)return;let{x:o,y:l}=Dl.default.getCursor(a),s=Math.abs(o-r.x+window.scrollX),d=Math.abs(l-r.y+window.scrollY);if(!(a.touches&&a.touches.length>1)&&!(d+s<15))if(d>s/2)(0,Dl.default)(document).removeEvent(["SwipeMouseMove","SwipeTouchMove"]);else{r.process=!0;let u=r.index+(r.loop?1:0);xt("#Swiper-"+r.id).children(u-1).addClass(Dr("Display")),(0,Dl.default)(document).addEvent({eventID:"SwipeCheckMouseMove",eventType:"mousemove",callback:h=>{Bo.EffectMove(h,r)},options:{passive:!1}}).addEvent({eventID:"SwipeCheckTouchMove",eventType:"touchmove",callback:h=>{Bo.EffectMove(h,r)},options:{passive:!1}}),a.preventDefault();return}},EffectMove:(a,r)=>{if(a.touches&&a.touches.length>1)return;let{x:o}=Dl.default.getCursor(a),l=o-r.x+window.scrollX,s=r.index+(r.loop?1:0)-l/r.width;if(s<0)s/=2;else if(s>r.maxIndex){let d=s-r.maxIndex;s=r.maxIndex+d/2}xt("#Swiper-"+r.id).css({transition:"0s",transform:Bo.TrasformString(s)}),a.preventDefault()},EffectEnd:(a,r)=>{if(r.process){let o=Dl.default.getCursor(a).x-r.x+window.scrollX,l=new Date().getTime(),s=l-r.effectStartAt,d=r.index+(r.loop?1:0),u=0;s<400?u=d-(+(o>0)*2-1):u=Math.round(d-o/r.width),u=Math.max(Math.min(u,r.maxIndex),r.minIndex),r.process=!1,d===u?(r.effectStartAt=l,xt("#Swiper-"+r.id).css({transition:".2s",transform:Bo.TrasformString(u)}).await(310).css({transition:"0s"}).children().removeClass(Dr("Display")).parent().children(d).addClass(Dr("Display"))):r.set_event({eventType:"usr",index:u+r.minIndex})}(0,Dl.default)(document).removeEvent(["SwipeMouseMove","SwipeTouchMove","SwipeCheckMouseMove","SwipeCheckTouchMove","SwipeMouseUp","SwipeTouchEnd"])}},Gf=a=>(0,mm.jsx)(G$,D(_({},a),{slideIndex:Math.max(Math.min(a.slideIndex,a.slides.length-1),0)}));var z_=Z(Mt()),PO=Z(ha());var vc=Z(Mt());var NN=a=>{if(a||(a="border"),a=="plain")return{};let r={flexSizing:"none",flexCenter:!0,padding:[0,1],borderRadius:"2.tone.secondary",backgroundColor:"cloud"};return a=="border"?r=D(_({},r),{border:!0}):a=="cloud"?r=D(_({},r),{border:"1.thin"}):a=="bottomBorder"&&(r=D(_({},r),{borderRadius:0,borderBottom:!0})),r},x_={position:"absolute",ssSquare:2,flexCenter:!0,fontColor:"theme",fontSize:"1.mini",backgroundColor:"inherit",top:"50%",freeCSS:{pointerEvents:"none",transform:"translateY(-50%)"}},T_=a=>(0,vc.jsx)(yn,_({children:"\u5FC5\u9808",fontColor:"white",fontSize:"0.xs",padding:["1/4","1/3"],backgroundColor:"nega",borderRadius:"3.tone.tertiary"},a)),k_=a=>(0,vc.jsx)(yn,_({children:"*",fontColor:"nega",padding:["1/4","1/3"],borderRadius:"3.tone.tertiary"},a)),E_=a=>(0,vc.jsx)(yn,_({children:"\u7701\u7565\u53EF",fontColor:"white",fontSize:"0.xs",padding:["1/4","1/3"],borderRadius:"3.tone.tertiary",backgroundColor:"layer.6"},a)),qf=a=>{let r=a,{tone:o}=r,l=Ze(r,["tone"]);return(0,vc.jsx)(E,_(D(_({},NN(o)),{borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3"}),l))},gc=a=>{let r=a,{tone:o}=r,l=Ze(r,["tone"]);return(0,vc.jsx)(E,_(D(_({},NN(o)),{borderTopLeftRadius:"2/3",borderBottomLeftRadius:"2/3"}),l))},pn=a=>{let r=a,{tone:o="border"}=r,l=Ze(r,["tone"]);return(0,vc.jsx)(E,D(_(D(_({},x_),{right:"3/4"}),l),{freeCSS:_(_({},x_.freeCSS),l.freeCSS)}))},R_=a=>{let r=a,{tone:o="border"}=r,l=Ze(r,["tone"]);return(0,vc.jsx)(E,D(_(D(_({},x_),{left:"3/4"}),l),{freeCSS:_(_({},x_.freeCSS),l.freeCSS)}))};var ON=Z(Mt());var IN=a=>(0,ON.jsx)(E,_({htmlTag:"input"},a));var sw=Z(Mt());var $n=Z(Mt()),vd=Z(ha()),Xr=Z(ma());var ow={};ad(ow,{Accordion:()=>Kf,LinkifyText:()=>D_,List:()=>_c,ListItem:()=>ns,Row:()=>Xe,Text:()=>Je});var nw=Z(Mt()),yu=Z(ha()),vm=Z(ma());var K$=a=>{a=_({},a);let r=a,{accordionID:o="",slideAnimation:l="fast",defaultOpen:s=!1,override:d=!1}=r,u=Ze(r,["accordionID","slideAnimation","defaultOpen","override"]),[h]=(0,yu.useState)(vm.default.uuid.gen()),[p]=(0,yu.useState)(vm.default.uuid.gen()),[v,y]=(0,yu.useState)(s);v!=s&&d&&y(s);let b=(0,yu.useRef)(!1);return(0,yu.useEffect)(()=>{let C=xt('[data-accordion-content-id="'+p+'"]')[0];if(C){let w=C.offsetHeight,T=0;l=="fast"?(T=w/1e3,T=Math.max(T,.2)):l=="slow"&&(T=w/300),xt("#"+h).css({transition:T+"s"})}},[]),(0,yu.useEffect)(()=>{let C=xt("#"+h),w=xt('[data-accordion-content-id="'+p+'"]')[0];if(b.current){if(w){let T=w.offsetHeight;vm.default.is.exist(T)&&(v?C.css({maxHeight:T+1+"px"}).await(200).css({maxHeight:"unset",overflow:(a==null?void 0:a.overflow)||"unset"}):C.css({maxHeight:T+1+"px"}).await(100).css({maxHeight:"0px",overflow:"hidden"}))}}else if(b.current=!0,w){let T=w.offsetHeight;vm.default.is.exist(T)&&(v?C.css({maxHeight:T+1+"px"}).await(200).css({maxHeight:"unset",overflow:(a==null?void 0:a.overflow)||"unset"}):C.css({maxHeight:"0px",overflow:"hidden"}))}},[v]),o&&Ve.set({["Accordion-"+o]:{open:()=>{y(!0)},close:()=>{y(!1)},toggle:()=>{y(!v)}}}),(0,nw.jsx)(E,{className:[KS("Wrap"),KS("Open_"+v)].join(" "),id:h,children:(0,nw.jsx)(E,_({"data-accordion-content-id":p},u))})},Kf=K$;Kf.fn={open:a=>{let r=Ve.get("Accordion-"+a);!r||r.open()},close:a=>{let r=Ve.get("Accordion-"+a);!r||r.close()},toggle:a=>{let r=Ve.get("Accordion-"+a);!r||r.toggle()}};var gm=Z(Mt());var D_=a=>{let{text:r,placeholder:o}=a,l=[];if(r){let s=[];r=r.replace(/https?:\/\/[^\s|\n|\r]*/ig,(...u)=>{let h=u[0];return s.push(h),"[$_url]"});let d=r.split("[$_url]");for(let u=0;u<=d.length-1;u++){let h=d[u],p=s[u];l.push(h),u<d.length-1&&l.push((0,gm.jsx)(re.Anchor.Link,{href:p,newTab:!0,children:p},"Link-"+u))}}else o&&(l=[o]);return(0,gm.jsx)(gm.Fragment,{children:l})};var Al=Z(Mt());var _c=a=>{let r=a,{items:o=[],ListChildCallback:l}=r,s=Ze(r,["items","ListChildCallback"]);l=l||PN;let d=o.map((u,h)=>(0,Al.jsx)(l,{children:u,index:h},h));return(0,Al.jsx)(E,D(_({htmlTag:"ul",children:d},s),{freeCSS:_({listStyle:"none"},s.freeCSS)}))},PN=a=>(0,Al.jsx)(E,_({htmlTag:"li",padding:"3/4",gap:"1/2",borderBottom:!0,flexWrap:!0},a)),ns=PN;ns.Center=a=>(0,Al.jsx)(E,{htmlTag:"li",children:(0,Al.jsx)(Xe.Center,_({width:1,padding:"3/4",borderBottom:!0,flexWrap:!0},a))}),ns.Left=a=>(0,Al.jsx)(E,{htmlTag:"li",children:(0,Al.jsx)(Xe.Left,_({width:1,padding:"3/4",borderBottom:!0,flexWrap:!0},a))}),ns.Right=a=>(0,Al.jsx)(E,{htmlTag:"li",children:(0,Al.jsx)(Xe.Right,_({width:1,padding:"3/4",borderBottom:!0,flexWrap:!0},a))}),ns.Separate=a=>(0,Al.jsx)(E,{htmlTag:"li",children:(0,Al.jsx)(Xe.Separate,_({width:1,padding:"3/4",borderBottom:!0,flexWrap:!0},a))});var _m=Z(Mt());var Xe={Center:a=>(0,_m.jsx)(vt,_({horizontalAlign:"center",verticalAlign:"center",flexWrap:!1,gap:1},a)),Left:a=>(0,_m.jsx)(vt,_({horizontalAlign:"left",verticalAlign:"center",flexWrap:!1,gap:1},a)),Right:a=>(0,_m.jsx)(vt,_({horizontalAlign:"right",verticalAlign:"center",flexWrap:!1,gap:1},a)),Separate:a=>(0,_m.jsx)(vt,_({horizontalAlign:"between",verticalAlign:"center",flexWrap:!1,gap:1},a))};var Su=Z(Mt());var md=a=>(0,Su.jsx)(E,_({},a)),Je=md;Je.Title=a=>(0,Su.jsx)(md,_({fontSize:"6.title",fontWeight:"3.semiBold"},a)),Je.SubTitle=a=>(0,Su.jsx)(md,_({fontSize:"5.subTitle",fontWeight:"3.semiBold"},a)),Je.ThirdTitle=a=>(0,Su.jsx)(md,_({fontSize:"4.thirdTitle",fontWeight:"3.semiBold"},a)),Je.Paragraph=a=>(0,Su.jsx)(md,_({fontSize:"3.paragraph",fontWeight:"3.semiBold"},a)),Je.Description=a=>(0,Su.jsx)(md,D(_({},a),{freeCSS:_({whiteSpace:"pre-wrap"},a.freeCSS)})),Je.Supplement=a=>(0,Su.jsx)(md,_({fontSize:"1.mini"},a)),Je.NowrapSpan=a=>(0,Su.jsx)(yn,D(_({},a),{freeCSS:_({whiteSpace:"nowrap"},a.freeCSS)}));var MN=Z(Mt()),iw=Z(ma());var wa=Z(Mt()),_a=Z(ma()),Vr=Z(ha());var rl={currentIndex:0,mainSheetsCounter:0,getSessionStates:()=>Ve.get("sessionStates-"+lt.get().sessionUID)||null,getNewSheetStates:a=>{var r;let o=D(_({sheetGroups:a.sheetGroups||[],backgroundEffect:!0,overwrap:a.type=="custom",hold_state:!1},a),{sheetID:a.sheetID||_a.default.uuid.gen(24),close_option:_({pageTransit:!0,escapeKeyDown:!0,aroundClick:a.type=="custom"},a.close_option),isOpen:!0,created_at:_a.default.Time()});if(o.type=="custom"){let l=o;l.parent=l.parent||((r=l==null?void 0:l.event)==null?void 0:r.currentTarget),o=l}return o}},A_={Wrapper:()=>{let[a,r]=(0,Vr.useState)(_a.default.uuid.gen()),[o,l]=(0,Vr.useState)([]),s={val_sheets:o,set_sheets:l};Ve.set({["sessionStates-"+lt.get().sessionUID]:s}),(0,Vr.useEffect)(()=>{Ve.set({["Sheet-"+lt.get().sessionUID]:{refresh:()=>{r(_a.default.uuid.gen())},add:u=>{let h=Ve.get("Sheet-"+lt.get().sessionUID);if(!h)return;let p=rl.getNewSheetStates(u);if(h.find(p.sheetID)){let v=Ve.get(p.sheetID);v&&v.refresh&&v.refresh(p,!0);return}l(v=>[p,...v])},find:u=>{let h=rl.getSessionStates();if(!h)return null;let{val_sheets:p}=h;return p.find(v=>v.sheetID==u)}}}),(0,_a.default)(lt.get().appRoot).addEvent({eventType:"keyup",eventID:"SheetEvent.keyUp",callback:function(u){let{key:h,metaKey:p}=u;if(h=="Escape"||h==","&&p){let v=rl.getSessionStates();if(!v)return;let{val_sheets:y}=v,b=y.filter(w=>w.isOpen);if(!b.length)return;let C=b.reduce((w,T)=>w.created_at.value>T.created_at.value?w:T);Ot.close(C.sheetID,h)}}}).addEvent({eventType:"click",eventID:"SheetEvent.Click",callback:function(u){let h=rl.getSessionStates();if(!h)return;let{val_sheets:p}=h,v=p.filter(b=>b.type=="custom");if(!v.length||v.find(b=>{let{parent:C}=b,w=u.target,T=xt(C)[0];return!!(C==w||T===w||(0,_a.default)(T).find(w).length)}))return;let y=u.target;y!=null&&y.closest("."+ja("CustomSheet"))||v.forEach(b=>{var C;(C=b.close_option)!=null&&C.aroundClick&&Ot.close(b.sheetID)})}})},[]);let d=o.map(u=>(0,wa.jsx)(A_.Core,_({sheet:u},s),u.sheetID));return(0,wa.jsx)(E,{className:["AMOTIFY_be",ja("Wrapper")].join(" "),children:d})},Core:a=>{var r;let{val_sheets:o,set_sheets:l}=a,[s]=(0,Vr.useState)(rl.currentIndex+1),[d]=(0,Vr.useState)(_a.default.uuid.gen()),[u,h]=(0,Vr.useState)(a.sheet),p=u.type!="custom"&&!u.overwrap,v=A_.Types[{"normal.topLeft":"Normal","normal.topCenter":"Normal","normal.topRight":"Normal","normal.middleLeft":"Normal","normal.middleCenter":"Normal","normal.middleRight":"Normal","normal.bottomLeft":"Normal","normal.bottomCenter":"Normal","normal.bottomRight":"Normal",image:"Normal","drawer.left":"Edge","drawer.right":"Edge","drawer.bottom":"Bottom",custom:"Custom"}[u.type]];(0,Vr.useEffect)(()=>{},[u]),(0,Vr.useEffect)(()=>{rl.currentIndex++;let{close_option:C}=u;_a.default.scope(()=>{if(!(C!=null&&C.parentBlur))return;let w=(0,_a.default)(u.parent);w[0]&&w.addEvent({eventID:"SheetClosation-"+u.sheetID,eventType:"mouseout",callback:()=>{w.removeEvent("SheetClosation-"+u.sheetID),h(T=>D(_({},T),{isOpen:!1}))}})})},[]),(0,Vr.useEffect)(()=>{Ve.set({[u.sheetID]:{refresh:(C,w)=>{let T=rl.getNewSheetStates(C);h(L=>D(_(_({},L),T),{created_at:L.created_at,isOpen:w!=null?w:!1}))},resize:C=>{if(u.type=="drawer.bottom"){let w=Ve.get(d);w&&w.resize&&w.resize(C)}else(u.type.includes("normal")||u.type.includes("drawer"))&&h(w=>D(_({},w),{size:C}))},close:C=>{h(w=>D(_({},w),{isOpen:!1}))},open:()=>{h(C=>D(_({},C),{isOpen:!0}))}}})},[u]),(0,Vr.useEffect)(()=>{_a.default.scope(()=>{if(!p||!u.backgroundEffect)return;rl.mainSheetsCounter+=u.isOpen?1:-1;let C=xt(".AMOTIFY_be_root");if(u.isOpen){if(C.hasClass(ja("FixScroll")))return;let w=(0,_a.default)("html"),T=0;rl.mainSheetsCounter==1&&(T=w[0].scrollTop|0,h(L=>D(_({},L),{bodyScrolls:T}))),lt.get().isPhone||(w[0].scrollTop=0,C.addClass(ja("FixScroll")).callback(L=>{L[0].scrollTop=T}).await(40).addClass(ja("Float")));return}lt.get().isPhone||rl.mainSheetsCounter>0||C.hasClass(ja("FixScroll"))&&C.removeClass(ja("Float")).await(251).removeClass(ja("FixScroll")).callback(()=>{(0,_a.default)("html")[0].scrollTop=u.bodyScrolls||0,C[0].scrollTop=0})}),_a.default.scope(()=>{let C=xt("#"+d);if(u.isOpen){C.await(10).removeClass(ja("Hide")).await(10).addClass(ja("Open")).callback(()=>{u.openAfter&&u.openAfter()});return}else C.await(10).removeClass(ja("Open")).await(251).addClass(ja("Hide")).callback(()=>{u.closeAfter&&u.closeAfter(),!a.sheet.hold_state&&(l(w=>{let T=[...w],L=T.findIndex(A=>A.sheetID==u.sheetID);return L==-1||T.splice(L,1),T}),p&&(0,_a.default)(lt.get().appRoot).focus())})})},[u.isOpen]);let[y,b]=u.type.split(".");return(0,wa.jsx)(E,{className:[ja("Wrap"),ja("Tcate_"+y),ja("Tpos_"+b),ja("isMainSheet_"+p)].join(" "),width:1,height:0,ssAbsoluteCovered:!0,freeCSS:{zIndex:s},id:d,children:(0,wa.jsxs)(ft,{className:ja("Content"),gap:0,height:"viewHeight",overflow:"auto",transition:"middle",children:[!!p&&(0,wa.jsx)(A_.TapSensor,{sheetID:u.sheetID,delegateAroundClick:(r=u.close_option)==null?void 0:r.aroundClick}),(0,wa.jsx)(v,_({componentID:d},u))]})},d)},Types:{Normal:a=>{let r=a,{sheetID:o,sheetGroups:l,bodyScrolls:s,content:d,className:u="",type:h,size:p="R",freeCSS:v,openAfter:y,closeAfter:b,close_option:C,hold_state:w,overwrap:T,isOpen:L,backgroundEffect:A}=r,$=Ze(r,["sheetID","sheetGroups","bodyScrolls","content","className","type","size","freeCSS","openAfter","closeAfter","close_option","hold_state","overwrap","isOpen","backgroundEffect"]),[F,j]=h.split("."),U={},K=[];return j.match(/top/)?(K.push("top"),U.marginBottom="auto"):j.match(/middle/)?(K.push("center"),U.marginTop="auto",U.marginBottom="auto"):j.match(/bottom/)&&(K.push("bottom"),U.marginTop="auto"),j.match(/left/i)?(K.push("left"),U.marginRight="auto"):j.match(/center/i)?(K.push("center"),U.marginLeft="auto",U.marginRight="auto"):j.match(/right/i)&&(K.push("right"),U.marginLeft="auto"),(0,wa.jsx)(E,D(_(_({className:[ja("BB"),u].join(" "),padding:1,transition:"long",opacity:"trans"},$),U),{freeCSS:_({width:{S:"26rem",R:"36rem",L:"44rem","2L":"60rem","3L":"72rem",MAX:"100vw"}[p],maxWidth:"96vw",transformOrigin:K.join(" ")},v),children:_a.default.is.function(d)?(0,wa.jsx)(d,{}):d}))},Edge:a=>{let r=a,{sheetID:o,sheetGroups:l,bodyScrolls:s,type:d,content:u,className:h="",size:p="R",openAfter:v,closeAfter:y,close_option:b,hold_state:C,overwrap:w,isOpen:T,backgroundEffect:L}=r,A=Ze(r,["sheetID","sheetGroups","bodyScrolls","type","content","className","size","openAfter","closeAfter","close_option","hold_state","overwrap","isOpen","backgroundEffect"]);return(0,wa.jsx)(E,D(_(D(_({className:[ja("BB"),h].join(" ")},d=="drawer.right"?{marginLeft:"auto"}:d=="drawer.left"?{marginRight:"auto"}:{}),{opacity:"trans",transition:"long",position:"relative",backgroundColor:"layer.1",flexSizing:"none",minHeight:"viewHeight",boxShadow:"3.remark"}),A),{freeCSS:_({width:{S:"20rem",R:"27rem",L:"32rem","2L":"40rem","3L":"58rem",MAX:"100vw"}[p],maxWidth:"96vw"},A.freeCSS),children:_a.default.is.function(u)?(0,wa.jsx)(u,{}):u}))},Bottom:a=>{let r=a,{componentID:o,sheetID:l,sheetGroups:s,bodyScrolls:d,content:u,size:h="R",sizeChanged:p,baseStyles:v,openAfter:y,closeAfter:b,close_option:{swipeDown:C=!0}={},hold_state:w,overwrap:T,isOpen:L,backgroundEffect:A}=r,$=Ze(r,["componentID","sheetID","sheetGroups","bodyScrolls","content","size","sizeChanged","baseStyles","openAfter","closeAfter","close_option","hold_state","overwrap","isOpen","backgroundEffect"]),F=_a.default.getScreenSize(),j=[0,.2,.6,.95],U={ZERO:0,S:1,R:2,L:3},[K,M]=(0,Vr.useState)(h),[oe,ke]=(0,Vr.useState)({process:!1,processStart:0,originY:0,originValue:0,viewHeight:0,value:j[U[h]]});Ve.update({[o]:{val_edit:oe,resize:he=>{let ce=j[U[he]];ke(P=>D(_({},P),{value:ce})),M(he)}}});let J={Start:he=>{(0,_a.default)(document).addEvent({eventID:"BottomSheetMouseMove",eventType:"mousemove",callback:J.Move}).addEvent({eventID:"BottomSheetTouchMove",eventType:"touchmove",callback:J.Move}).addEvent({eventID:"BottomSheetMouseUp",eventType:"mouseup",callback:J.End}).addEvent({eventID:"BottomSheetTouchEnd",eventType:"touchend",callback:J.End});let ce=_a.default.getCursor(he),P=D(_({},oe),{process:!0,processStart:new Date().getTime(),originY:ce.y,originValue:oe.value,viewHeight:_a.default.getScreenSize().height});Ve.update({[o]:{val_edit:P}}),ke(P)},Move:he=>{var ce;let P=(ce=Ve.get(o))==null?void 0:ce.val_edit;if(!P.process)return;let ee=(_a.default.getCursor(he).y-P.originY)/P.viewHeight,me=P.originValue-ee;if(me>.95)me=.95+(me-.95)*.5;else if(me<.2){let z=.2-me;z-=.1,me=.1+(.1-z)*.5}ke(D(_({},P),{value:me}))},End:he=>{var ce;let P=(ce=Ve.get(o))==null?void 0:ce.val_edit;if(!P.process)return;(0,_a.default)(document).removeEvent(["BottomSheetMouseMove","BottomSheetTouchMove","BottomSheetMouseUp","BottomSheetTouchEnd"]);let ee=0;if(P.value<.1||(P.value<.5?ee=1:P.value>.75?ee=3:ee=2),new Date().getTime()-P.processStart<300){let me=_a.default.getCursor(he).y-P.originY;if(Math.abs(me)>=20){let z=+(me<0)*2-1;ee+=z,ee=Math.min(Math.max(ee,0),j.length-1)}}ee==0&&(C||(ee=1)),M(["ZERO","S","R","L"][ee]),ke(D(_({},P),{value:j[ee],process:!1}))}},pe=(0,Vr.useRef)(!1);return(0,Vr.useEffect)(()=>{pe.current?K=="ZERO"?C&&Ot.close(l):setTimeout(()=>{a.sizeChanged&&a.sizeChanged(K)},250):pe.current=!0},[K]),(0,wa.jsx)(E,{className:ja("BB"),margin:[0,"auto"],marginTop:"auto",opacity:"trans",width:1,transition:"long",freeCSS:_({maxWidth:12*60,height:F.height*oe.value},oe.process?{transition:"0s"}:{}),children:(0,wa.jsxs)(ft,D(_({gap:0,flexSizing:"none",borderTopLeftRadius:"1.tone.primary",borderTopRightRadius:"1.tone.primary",border:!0,borderBottom:"unset",boxShadow:"3.remark",position:"relative",overflow:"hidden",height:1},v),{children:[(0,wa.jsx)(Xe.Separate,{padding:"1/2",backgroundColor:"layer.1",position:"relative",freeCSS:{userSelect:"none"},children:(0,wa.jsx)(Xe.Center,{onMouseDown:J.Start,onTouchStart:J.Start,flexSizing:0,padding:"2/3",ssPushable:!0,isRounded:!0,freeCSS:{cursor:"grab",userSelect:"none"},children:(0,wa.jsx)(E,{unitWidth:6,unitHeight:"1/2",backgroundColor:"layer.4",isRounded:!0,className:ja("DragBar")})})}),(0,wa.jsx)(E,D(_({backgroundColor:"layer.1",flexSizing:0,overflow:"auto"},$),{children:_a.default.is.function(u)?(0,wa.jsx)(u,{}):u}))]}))})},Custom:a=>{let r=a,{sheetID:o,sheetGroups:l,bodyScrolls:s,event:d,parent:u,nextToCursor:h,gravityPoint:p=22,content:v,close_option:y,hold_state:b,openAfter:C,closeAfter:w,overwrap:T,isOpen:L,backgroundEffect:A}=r,$=Ze(r,["sheetID","sheetGroups","bodyScrolls","event","parent","nextToCursor","gravityPoint","content","close_option","hold_state","openAfter","closeAfter","overwrap","isOpen","backgroundEffect"]),[F]=(0,Vr.useState)(_a.default.uuid.gen()),j=_a.default.is.element(u)||_a.default.is.jsmin(u)?(0,_a.default)(u):xt(u),U='[data-sheet-id="'+F+'"]',K='[data-sheet-content="'+F+'"]';p=p;let M=p%5||5,oe=Math.ceil(p/5),ke={Init:()=>{if(h&&d){let z=_a.default.getScreenSize(),ne=_a.default.getCursor(d);return{top:ne.y-z.pageYOffset,left:ne.x-z.pageXOffset}}let J={},{top:pe,right:he,bottom:ce,left:P,height:ee,width:me}=j.position();return[1,2].includes(M)?J.left=P:M==3?J.left=P+me/2:[4,5].includes(M)&&(J.left=he),p<=10?J.top=pe:p<=15?J.top=pe+ee/2:p<=25&&(J.top=ce),J},Adjust:()=>{let J=xt(U).position(),pe=xt(K).position(),he=j.position(),ce=_a.default.getScreenSize(),P={};for(let z in pe)P[z]=pe[z];{let z=0;oe==1?z=he.top-P.bottom:oe==2?z=he.top-P.top:oe==3?z=he.top-P.top+(he.height-P.height)/2:oe==4?z=he.bottom-P.bottom:oe==5&&(z=he.bottom-P.top),P.top+=z,P.bottom+=z}{let z=0;M==1?z=he.left-P.right:M==2?z=he.left-P.left:M==3?z=he.left-P.left+(he.width-P.width)/2:M==4?z=he.right-P.right:M==5&&(z=he.right-P.left),P.left+=z,P.right+=z}if(P.top<0){let z=-P.top;P.top+=z,P.bottom+=z}if(P.bottom>ce.height){let z=P.bottom-ce.height;P.top-=z,P.bottom-=z}if(P.left<0){let z=-P.left;P.left+=z,P.right+=z}if(P.right>ce.width){let z=P.right-ce.width;P.left-=z,P.right-=z}let ee=P.top-pe.top,me=P.left-pe.left;(0,_a.default)(U).css({top:J.top+ee+"px",left:J.left+me+"px"})}};return(0,Vr.useEffect)(()=>{xt(U).await(10).addClass(ja("Open")).await(200).callback(()=>{ke.Adjust()}),Ve.update({["customSheet-"+a.sheetID]:{reposition:()=>{ke.Adjust()}}})},[]),j[0]?(0,wa.jsx)(E,{className:[ja("BB"),ja("CustomSheet")].join(" "),"data-sheet-id":F,transition:"long",position:"absolute",width:0,height:0,opacity:"trans",flexCenter:!0,freeCSS:ke.Init(),children:(0,wa.jsx)(vt,{position:"absolute",className:[ja("GPT"),ja("GPT_"+p),ja("Col_"+M),ja("Row_"+oe)].join(" "),children:(0,wa.jsx)(E,D(_({"data-sheet-content":F,flexSizing:"none",maxHeight:"viewHeight"},$),{freeCSS:_({maxWidth:"98vw"},$.freeCSS),children:_a.default.is.function(v)?(0,wa.jsx)(v,{}):v}))})}):null}},TapSensor:a=>(0,wa.jsx)(E,{className:ja("TapSensor"),children:(0,wa.jsx)(re.Button.Plain,{className:ja("TapContent"),onClick:()=>{var r;(r=a.delegateAroundClick)!=null&&r&&Ot.close(a.sheetID)},freeCSS:{cursor:"default",pointerEvents:"all"}})})},Ot={Wrapper:()=>(0,wa.jsx)(A_.Wrapper,{}),open:a=>{if(a.sheetID=(a.sheetID||"").replace(/\./g,"-"),a.type=="image"){let o=a.sheetID||_a.default.uuid.gen(),l=a,{type:s,src:d}=l,u=Ze(l,["type","src"]);Ot.open(D(_({type:"normal.topCenter",backgroundColor:"trans"},u),{sheetID:o,freeCSS:{maxWidth:"96vw",transformOrigin:"top"},content:()=>{let[h]=(0,Vr.useState)(_a.default.flatArray(d)),[p,v]=(0,Vr.useState)(0),y=[],b=[];return h.forEach((C,w)=>{y.push({value:w,label:(0,wa.jsx)(Pn,{src:_a.default.flatArray(C)[0],width:"auto",height:1,freeCSS:{maxWidth:12*6,maxHeight:12*3}})}),b.push((0,wa.jsx)(Pn,{width:1,height:"auto",src:_a.default.flatArray(C)[0]}))}),(0,wa.jsxs)(ft,{gap:0,children:[(0,wa.jsxs)(Xe.Separate,{gap:2,padding:1,backgroundColor:"layer.1",borderTopLeftRadius:"1.tone.primary",borderTopRightRadius:"1.tone.primary",children:[(0,wa.jsx)(ut.Radio.Border,{icon:!1,value:p,override:"force",horizontalAlign:"center",onUpdateValidValue:({value:C})=>{v(C)},cellStyles:{borderWidth:2,padding:"1/3"},options:y}),(0,wa.jsx)(re.Button.Border.S,{color:"cloud",isRounded:!0,onClick:()=>{Ot.close(o)},children:(0,wa.jsxs)(Xe.Center,{gap:"1/3",children:["\u9589\u3058\u308B",(0,wa.jsx)(Ce.Times,{})]})})]}),(0,wa.jsx)(Gf,{slideIndex:p,options:{loop:h.length>1,onSlideCallback:C=>{v(C)}},slides:b,wrapper:C=>(0,wa.jsx)(E,{borderBottomLeftRadius:"1.tone.primary",borderBottomRightRadius:"1.tone.primary",children:C})})]})}}));return}let r=Ve.get("Sheet-"+lt.get().sessionUID);r&&r.add(a)},refresh:(a,r)=>{a.sheetID=(a.sheetID||"").replace(/\./g,"-");let o=Ve.get(a.sheetID);o&&o.refresh&&o.refresh(a,r)},resize:a=>{a.sheetID=(a.sheetID||"").replace(/\./g,"-");let r=Ve.get(a.sheetID);r&&r.resize&&r.resize(a.size)},customSheet:{reposition:a=>{let r=Ve.get("customSheet-"+a);r&&r.reposition&&r.reposition()}},close:function(a,r,o){var l;let s=rl.getSessionStates();if(!s)return;let{val_sheets:d}=s;a=a==null?void 0:a.replace(/\./g,"-");let u=d.find(p=>p.sheetID==a);if(!u||r=="Escape"&&!((l=u.close_option)!=null&&l.escapeKeyDown))return;let h=Ve.get(u.sheetID);h&&h.close&&h.close(o)},closeGroup:a=>{let r=rl.getSessionStates();if(!r)return;let{val_sheets:o}=r;a=(a||"").replace(/\./g,"-");for(let l of o)l.sheetGroups&&l.sheetGroups==a&&Ot.close(l.sheetID)},closeAll:a=>{var r;let o=rl.getSessionStates();if(!o)return;let{val_sheets:l}=o;for(let s of l)a&&!((r=s.close_option)!=null&&r.pageTransit)||Ot.close(s.sheetID,"pageTransit",!0)},Body:a=>(0,wa.jsx)(E,_({className:ja("BaseBody"),backgroundColor:"layer.1",borderRadius:"1.tone.primary",position:"relative",boxShadow:"3.remark",transition:"long"},a))};var Ba={__memoryID:iw.default.uuid.gen(),open:a=>{let r=a,{tipsID:o=iw.default.uuid.gen(24),tipsGroups:l=[]}=r,s=Ze(r,["tipsID","tipsGroups"]);Ot.open(D(_({sheetID:o,sheetGroups:["tooltips",...l]},s),{type:"custom",close_option:_({aroundClick:!0,parentBlur:!0,escapeKeyDown:!0,pageTransit:!0},s.close_option)}))},close:a=>{a&&Ot.close(a)},closeALL:()=>{Ot.closeGroup("tooltips")},Body:a=>(0,MN.jsx)(E,_({padding:"1/2",backgroundColor:"dark",borderRadius:"2.tone.secondary",fontColor:"white",boxShadow:"0.normal"},a))};var Hr=a=>{let[r]=(0,vd.useState)(a.componentID||Xr.default.uuid.gen(24));a=_({},a),a.states=D(_({enableFormSubmit:!0,status_id:Xr.default.uuid.gen(),override:"never",name:Xr.default.uuid.gen(),id:Xr.default.uuid.gen(),"aria-label":"Input-"+r},a.states),{componentID:r});let{children:o}=a;return(0,$n.jsx)(o,_({},a.states))},Jr=a=>{let{children:r,val_status:o,set_status:l,val_validate:s,states:d}=a,{leftIcon:u,wrapStyles:h}=d;return o.eventType=="init"&&!d.checkValidationAtFirst&&(s.notice=[]),(0,$n.jsxs)(Xe.Center,D(_({position:"relative",verticalAlign:"unset",gap:0},h),{className:Wf("Wrapper"),"data-notice-uid":o.componentID,children:[(0,$n.jsx)(lw.Notice,{notice:s.notice,val_status:o}),d.leftIndicator,(0,$n.jsxs)(vt,{position:"relative",flexSizing:"auto",children:[r,u,(0,$n.jsx)(lw.RightIcon,_({},a)),(0,$n.jsx)(lw.ClearButton,_({},a))]}),d.rightIndicator]}))},lw={ClearButton:a=>!a.states.clearButton||!a.val_status.dataValue?null:(0,$n.jsx)(re.Button.Normal.R,{ssSphere:2,flexCenter:!0,fontColor:"5.translucent",ssEffectsOnActive:["ripple.theme"],position:"absolute",right:1,top:"50%",freeCSS:{zIndex:3,transform:"translateY(-50%)"},onClick:()=>{a.set_status(r=>D(_({},r),{dataValue:"",formatValue:"",eventType:"update",eventID:Xr.default.uuid.gen()}))},children:(0,$n.jsx)(Ce.Times,{})}),RightIcon:a=>a.states.clearButton&&a.val_status.dataValue?null:a.states.rightIcon,Notice:a=>{let{notice:r,val_status:o}=a,{componentID:l}=o,s="NoticeTimer-"+l,d="NoticeTimerClose-"+l,u="notice-tips-"+l;return(0,vd.useEffect)(()=>{Xr.default.interval.clear(s),Xr.default.interval.clear(d),Xr.default.interval.standBy(s,350,()=>{if(!r.length){Ba.close(u);return}Ba.open({tipsID:u,parent:`[data-notice-uid="${l}"]`,gravityPoint:22,padding:[1,0],close_option:{parentBlur:!1},content:(0,$n.jsxs)(Ba.Body,{padding:["1/2","2/3"],fontSize:"1.mini",position:"relative",children:[(0,$n.jsx)(E,{position:"absolute",unitHeight:1,unitWidth:1,left:1,backgroundColor:"dark",freeCSS:{zIndex:1,transform:"rotate(45deg)",top:-6}}),(0,$n.jsx)(ft,{backgroundColor:"inherit",gap:"1/3",position:"relative",freeCSS:{zIndex:2},children:r.map((h,p)=>{let{type:v,label:y}=h,b=v=="invalid"?Ce.Times:v=="warn"?Ce.Exclamation:Ce.Check;return(0,$n.jsxs)(Xe.Left,{gap:0,borderRadius:"2.tone.secondary",children:[(0,$n.jsx)(b,{flexCenter:!0,fontSize:"2.normal",fontColor:{invalid:"nega",warn:"warn",valid:"posi"}[v]}),(0,$n.jsx)(Je.Supplement,{fontSize:"0.xs",fontColor:"white",children:y})]},p+"-"+JSON.stringify(h))})})]})})}),Xr.default.interval.standBy(d,6e3,()=>{Ba.close(u)})},[r]),null}},va={CommonEffects:a=>{let{type:r,states:o,val_status:l,set_status:s,ExtraOverrideStates:d,ExtraStoreStates:u,val_validate:h,set_validate:p,DefaultValidation:v,onUpdateValue:y,onUpdateValidValue:b}=a;o=_({},o);let{componentID:C}=l;(0,vd.useEffect)(()=>(Ve.update({[C]:_({ResolveRefresh:null,Refresh:()=>new Promise((w,T)=>{Ve.get(C).ResolveRefresh=w,s(L=>D(_({},L),{eventType:"refresh",eventID:Xr.default.uuid.gen()}))}),GenNotice:w=>{let{ok:T,notice:L}=w;p({ok:T,notice:L})}},u)}),()=>{Ve.delete(C)}),[]),(0,vd.useEffect)(()=>{o.value=l.dataValue,Xr.default.interval.clear("ValidationTimer-"+C),va.ValidationCheck({val_status:l,set_validate:p,DefaultValidation:v,states:o})},[l.eventID]),(()=>{let{override:w}=o;if(w=="never"||w=="beforeModified"&&!["init","override"].includes(l.eventType))return;let T=Ve.get(l.componentID);T&&(o.value!=l.dataValue&&o.status_id!=T.status_id&&s(L=>D(_(D(_({},L),{dataValue:o.value}),d),{eventType:"override",eventID:Xr.default.uuid.gen()})),T.status_id=o.status_id)})(),(0,vd.useEffect)(()=>{let{componentID:w,eventType:T,dataValue:L}=l,A=L;if(r=="list"?(A=L.map($=>Xr.default.toJson($).body),o.type=="radio"&&(A=A[0])):r=="autocomplete"?(A=L.map($=>Xr.default.toJson($).body),o.multiSelect||(A=A[0])):r=="select"?A=Xr.default.toJson(A).body:r=="file"&&Ve.update({[w]:{Files:l.dataValue}}),T=="refresh"){let $=Ve.get(w);$&&$.ResolveRefresh&&$.ResolveRefresh(null)}T=="update"&&(y&&y({componentID:w,value:A,storeData:Ve.get(w),eventType:T}),Xr.default.scope(()=>{h.ok&&b&&b({componentID:w,value:A,storeData:Ve.get(w),eventType:T})}))},[h])},ValidationCheck:a=>{let{val_status:r,states:o,set_validate:l,DefaultValidation:s}=a,d=s({value:r.dataValue,states:o});if(!d.ok){l(d);return}let u=d.notice,h=()=>ir(void 0,null,function*(){if(!o.onValidate)return;let p=yield o.onValidate({value:r.dataValue,eventType:r.eventType,props:a});if(!p.ok){l({ok:!1,notice:[...u,...p.notice]});return}l({ok:!0,notice:[...u,...p.notice]})});o.onValidate?r.eventType=="refresh"?h():Xr.default.interval.standBy("ValidationTimer-"+r.componentID,450,h):l({ok:!0,notice:u})},SubmitForm:a=>{let r=a.target,{form:o,formName:l}=r.dataset;o=l||o;let s=!1,d=xt(`[data-form-submit-button="${o}"]`)[0];if(!d)return s;let u=d.dataset.sdfike||"",h=a.key,p=a.ctrlKey||a.metaKey;return Xr.default.scope(()=>{u.includes("enter")&&(h!="Enter"||a.nativeEvent.isComposing||lt.get().browserIs=="safari"&&a.keyCode==229)||((h=="Enter"&&(u.includes("enter")||u.includes("auxEnter")&&p)||h==" "&&u.includes("space"))&&(d.click(),a.preventDefault()),s=!0)}),s},isShowValidation:(a,r,o)=>{let l=a.ok;return!o&&r.eventType=="init"&&(l=!0),l}},No=function(a){a=_({tone:"border"},a);let r=Xr.default.scope(()=>{if(a.tone=="plain")return{};let o={padding:"3/4",transition:"middle",flexSizing:"auto",boxShadow:"0.min"};return a.tone=="border"?o=D(_({},o),{border:!0,borderRadius:"2.tone.secondary",backgroundColor:"layer.1"}):a.tone=="cloud"?o=D(_({},o),{border:"1.thin",borderRadius:"2.tone.secondary",backgroundColor:"cloud"}):a.tone=="bottomBorder"&&(o=D(_({},o),{borderRadius:0,border:"unset",borderBottom:!0,backgroundColor:"cloud"})),o});return D(_(_(_(_({fontColor:"2.normal"},r),!!a.leftIndicator&&{borderTopLeftRadius:"2/3",borderBottomLeftRadius:"2/3",marginLeft:"1/4"}),!!a.rightIndicator&&{borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3",marginRight:"1/4"}),a),{freeCSS:_({letterSpacing:"1px",resize:"none"},a.freeCSS),className:[Wf("Input"),a.className].join(" ")})};var X$=a=>{let r=a,{componentID:o="",enableFormSubmit:l,form:s,value:d=""}=r,u=Ze(r,["componentID","enableFormSubmit","form","value"]);return(0,sw.jsx)("input",D(_({value:JSON.stringify(d),"data-input-type":"hidden","data-form":s,"data-component-id":o,"data-value":JSON.stringify(d)},u),{type:"hidden"}))},Bs=a=>(0,sw.jsx)(Hr,{componentID:a.componentID,children:X$,states:a});var ta=Z(Mt()),Ns=Z(ha()),wn=Z(ma());var dw=Z(WN());var bm=Z(Mt()),B_=Z(ha()),L_=Z(ma());var bc=a=>{if(!a.label)return null;let[r,o]=(0,B_.useState)({});return(0,B_.useEffect)(()=>{let l=(0,L_.default)('[data-input-origin="'+a.componentID+'"]'),s=(0,L_.default)('[data-input-label="'+a.componentID+'"]'),d=(0,L_.default)('[data-input-value-shallow="'+a.componentID+'"]');if(!l[0]||!s[0]||!d[0])return;let u=l.position(),h=d.position();if(a.isActive){let p=h.left-u.left;o({opacity:"max",freeCSS:{backgroundColor:"hsla(var(--color-layer1-hsl), .4)",backdropFilter:"blur(2px)",lineHeight:1,fontSize:"12px",transform:`translate(${p}px,-6px)`}})}else{let p=h.left-u.left,v=h.top-u.top;o({fontSize:a.fontSize||"inherit",opacity:"middle",freeCSS:{lineHeight:"inherit",transform:`translate(${p}px,${v}px)`,backgroundColor:"transparent"}})}s.getAttribute("data-label-init")=="true"&&s.setAttribute("data-label-init","false").await(10).css({transition:"var(--animation-time2)"})},[a.isActive]),(0,bm.jsx)(E,D(_({htmlTag:"label","data-input-label":a.componentID,"data-label-init":"true",position:"absolute",left:0,top:0,fontColor:"3.blur",backgroundColor:"trans",borderRadius:"1/3",padding:[0,"1/4"],opacity:"min"},r),{freeCSS:_({zIndex:2,pointerEvents:"none",lineHeight:"inherit"},r.freeCSS),children:(0,bm.jsxs)(Xe.Left,{gap:"1/3",children:[a.label,a.required&&(0,bm.jsx)(yn,{fontColor:"nega",children:" * "})]})}))};var J$={number:{reg:/^-?[0-9\.]+$/g,exist:!0,reason:"\u534A\u89D2\u6570\u5B57\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},katakana:{reg:/^[ァ-ヶー  ヲ-゚  ]*$/g,exist:!0,reason:"\u30AB\u30BF\u30AB\u30CA\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},"hankaku.katakana":{reg:/^[ヲ-゚  ]*$/g,exist:!0,reason:"\u534A\u89D2\u30AB\u30BF\u30AB\u30CA\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},digitNumber:{reg:/^-?[0-9\.]+$/g,exist:!0,reason:"\u534A\u89D2\u6570\u5B57\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},fileName:{reg:/[¥\/:*\?\"\'\|\.\s\n\r\<\>]/g,exist:!1,reason:"\u7A7A\u767D\u307E\u305F\u306F\u4E00\u90E8\u306E\u7279\u6B8A\u6587\u5B57\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093"},creditCard:{reg:/^\d{14,16}$/g,exist:!0,reason:"14~16\u6841\u306E\u6570\u5B57\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},email:{reg:/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]+\.[A-Za-z0-9]+$/,exist:!0,reason:(0,ta.jsxs)(ta.Fragment,{children:[(0,ta.jsx)(E,{children:"\u25CB\u25CB\u25CB\u25CB@\u25CB\u25CB\u25CB\u25CB.\u25CB\u25CB\u25CB\u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),(0,ta.jsx)(E,{children:"\u6700\u5F8C\u306E\u6587\u5B57\u306B.(\u30C9\u30C3\u30C8)\u3092\u5165\u308C\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093"})]})},password:{reg:/^(?=[^A-Z]*[A-Z])(?=[^a-z]*[a-z])(?=[^0-9]*[0-9]).{8,}$/,exist:!0,reason:"8\u6587\u5B57\u4EE5\u4E0A\u3001\u534A\u89D2\u82F1\u6570\u5927\u5C0F\u6587\u5B57\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},tel:{reg:/.*$/g,exist:!0,reason:(0,ta.jsxs)(ta.Fragment,{children:[(0,ta.jsx)(E,{children:"0\u304B\u3089\u59CB\u307E\u308B\u756A\u53F7\u306E\u307F\u5165\u529B\u53EF\u80FD\u3067\u3059"}),(0,ta.jsx)(E,{children:"9~12\u6841\u306E\u6570\u5B57\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),(0,ta.jsx)(E,{children:"\u6570\u5B57\u306E\u307F\u5165\u529B\u53EF\u80FD\u3067\u3059"})]})},url:{reg:/^https?:\/\/[^\n\s]+(\.|\:)[^\n\s\.\:]+$/,exist:!0,reason:"URL\u5F62\u5F0F : http(s)://\u25EF\u25EF\u25EF\u25EF"},postal:{reg:/^\d{7}$/g,exist:!0,reason:"7\u6841\u306E\u6570\u5B57\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}},wu={setSelection:a=>{let{id:r,restrict:o,val_status:l}=a,s=xt("#"+r)[0];if(s&&l.prevValue&&l.formatValue){let{formatValue:d,prevValue:u,caretFrom:h,caretTo:p}=l;if(o=="creditCard")d.length>=u.length&&h%5==0&&(h++,p++),s.setSelectionRange(h,p);else if(o=="postal")d.length==5&&u.length==3&&(h++,p++),s.setSelectionRange(h,p);else if(o=="digitNumber"){let v=d.length-u.length;v==2&&(h++,p++),v==-2&&(h--,p--),s.setSelectionRange(h,p)}}},Validation:{Default:a=>{let{value:r,states:o}=a,{restrict:l="text",maxLength:s,multiline:d,required:u}=o,h=[];if(d||(s=s||255),wn.default.is.exist(s)&&r.length>=Number(s)&&h.push({type:"invalid",label:s+"\u5B57\u4EE5\u5185\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),r){let p=wu.Validation.Text(r,l);p.ok||h.push({type:"invalid",label:p.body})}else u&&h.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"});return{ok:!h.filter(({type:p})=>p=="invalid").length,notice:h}},Text:(a,r)=>{let o={ok:!0,body:""};return(()=>{let l=J$[r];if(!l)return;let s=l.reason;if(l){let d=!!(+!!a.match(l.reg)^+!l.exist);o={ok:d,body:d?"":s}}})(),o},DataLeveling:a=>{let{restrict:r,value:o=""}=a,l=String(o),s=!1;if(["tel","number","digitNumber","test","postal","creditCard"].includes(r)&&(l=l.zen2hanNumber()),r=="katakana"&&(l=l.replace(/[^ァ-ヶー  ヲ-゚  ]/ig,"")),r=="hankaku.katakana"&&(l=l.replace(/[^ヲ-゚  ]/ig,"")),["postal","creditCard"].includes(r)&&(l=l.removeLetters()),["number","number.zeroStart","digitNumber"].includes(r)){let u=l[0]=="0";if(l){if(l!="-")if(l=="0-")l="-";else{l[0]=="-"&&(s=!0),l=l.replace(/[^0-9\.]/ig,"");let h=Number(l);h===0&&(s=!1),s&&(h=-1*h),wn.default.is.exist(a.min)&&(h=Math.max(h,Number(a.min))),wn.default.is.exist(a.max)&&(h=Math.min(h,Number(a.max))),l=String(Math.abs(h))}u&&l!="0"&&r=="number.zeroStart"&&(l="0"+l)}}let d=l;if(r=="digitNumber"){if(l&&l!="-"){let u=[];for(let h=l.length-1;h>=0;h--){u.unshift(l[h]);let p=l.length-1-h+1;h!=0&&p%3==0&&u.unshift(",")}d=u.join("")}}else r=="postal"?l.length>=4&&(d=l.clip(0,3)+"-"+l.clip(3)):r=="creditCard"&&(d=l.replace(/.{4}(?=.)/g,"$& "));return["number","digitNumber"].includes(r)&&s&&(l="-"+l,d="-"+d),{formatValue:d,dataValue:l}}}},cw={Shallow:a=>{let{rootStates:r,val_status:o}=a,l=o.dataValue||"";(0,Ns.useEffect)(()=>{wn.default.scope(()=>ir(void 0,null,function*(){if(!r.multiline)return;let p=(0,wn.default)('[data-input-origin="'+o.componentID+'"]'),v=(0,wn.default)('[data-input-shallow="'+o.componentID+'"]'),y=(0,wn.default)('[data-input-min-height-value-shallow="'+o.componentID+'"]'),b=(0,wn.default)('[data-input-max-height-value-shallow="'+o.componentID+'"]');if(!p[0]||!v[0]||!y[0]||!b[0])return;let C=v.position(),w=y.position(),T=b.position(),L=0;r.autoHeight&&(L=C.height),L=Math.max(L,w.height),L=Math.min(L,T.height),p[0].style.height=L+"px"}))},[l]);let s=l||"";(l.match(/\n$/)||!l)&&(s+="T");let d="",u="";if(r.multiline){let p=r.minRows||1,v=r.maxRows||100;d=`
979
979
  T`.repeat(p-1),u=`
980
- T`.repeat(v-1)}let h=Os(r);return(0,ta.jsxs)(E,{position:"absolute",top:0,left:0,right:0,height:0,overflow:"hidden",opacity:"trans",freeCSS:{zIndex:3,pointerEvents:"none"},children:[(0,ta.jsx)(Je.Description,D(_({className:r.className},h),{position:"absolute",width:1,freeCSS:D(_({},h.freeCSS),{color:"orange"}),"data-input-shallow":o.componentID,children:(0,ta.jsx)(E,{"data-input-value-shallow":o.componentID,children:s})})),(0,ta.jsx)(Je.Description,D(_({className:r.className},h),{position:"absolute",left:0,freeCSS:D(_({},h.freeCSS),{backgroundColor:"transparent",color:"blue"}),"data-input-min-height-value-shallow":o.componentID,children:d})),(0,ta.jsx)(Je.Description,D(_({className:r.className},h),{position:"absolute",right:0,freeCSS:D(_({},h.freeCSS),{backgroundColor:"transparent",color:"red"}),"data-input-max-height-value-shallow":o.componentID,children:u}))]})},InputBox:a=>{let{rootStates:r,val_validate:o,set_validate:l,val_status:s,set_status:d,val_focus:u,set_focus:h,val_isComposing:p,set_isComposing:v}=a;if(r.multiline)return null;let y=r,{componentID:b,tone:C,required:w,restrict:T="text",form:L,autoComplete:A="off",autoCapitalize:$="off",minRows:F,maxRows:j,multiline:U,autoHeight:K,enableFormSubmit:M,clearButton:oe=!1,checkValidationAtFirst:ke,onChange:J,onKeyDown:pe,onValidate:he,onUpdateValue:ce,onUpdateValidValue:P,value:ee="",leftIndicator:me,rightIndicator:z,leftIcon:ne,rightIcon:ve,maxLength:be,min:de,max:Re,label:Pe,isLabelActive:Oe,wrapStyles:rt}=y,ze=Ze(y,["componentID","tone","required","restrict","form","autoComplete","autoCapitalize","minRows","maxRows","multiline","autoHeight","enableFormSubmit","clearButton","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","leftIndicator","rightIndicator","leftIcon","rightIcon","maxLength","min","max","label","isLabelActive","wrapStyles"]),pt=T=="password"||T=="concealed"?"password":"text",Kt=["number","digitNumber","creditCard"].includes(T)?"numeric":T=="email"?"email":"text";return(0,ta.jsx)(E,D(_({htmlTag:"input",type:pt,inputMode:Kt,"data-disabled":r.disabled,"data-form":L,"data-input-type":"text","data-show-validation":va.isShowValidation(o,s,!!ke),"data-validation":o.ok,"data-value":s.dataValue,"data-component-id":s.componentID,"data-input-origin":s.componentID,value:s.formatValue,autoComplete:A,autoCapitalize:$,onKeyDown:Et=>{let{key:bt,target:It}=Et;{let nt=It,{selectionStart:Le,selectionEnd:wt}=nt,zt=Number(Le),Yt=Number(wt),$t=s.formatValue[Number(zt)],oa=s.formatValue[Number(zt)-1];bt=="Delete"&&(T=="creditCard"&&$t==" "||T=="postal"&&$t=="-"||T=="digitNumber"&&$t==",")&&(nt.setSelectionRange(zt+1,Yt+1),Et.preventDefault()),bt=="Backspace"&&(T=="creditCard"&&oa==" "||T=="postal"&&oa=="-"||T=="digitNumber"&&oa==",")&&(nt.setSelectionRange(zt-1,Yt-1),Et.preventDefault()),bt=="Enter"||bt=="Tab"}if(["number","digitNumber","creditCard"].includes(T)&&bt=="Clear"&&d(nt=>D(_({},nt),{dataValue:"",formatValue:"",eventType:"update",eventID:wn.default.uuid.gen()})),["number","digitNumber"].includes(T)&&["ArrowUp","ArrowDown"].includes(bt)){let nt=+(bt=="ArrowUp")*2-1,Le=String(Number(s.dataValue)+nt);o.ok&&l({ok:!1,notice:[]}),d(wt=>D(_(_({},wt),wu.Validation.DataLeveling({min:de,max:Re,restrict:T,value:Le})),{eventType:"update",eventID:wn.default.uuid.gen()})),Et.preventDefault()}pe&&pe(Et),M&&va.SubmitForm(Et)},onChange:Et=>{let{value:bt,selectionStart:It,selectionEnd:nt}=Et.target,Le=wu.Validation.DataLeveling({min:de,max:Re,restrict:T,value:bt});p&&(Le.formatValue=bt),Le.formatValue!=s.formatValue&&(o.ok&&l({ok:!1,notice:[]}),d(wt=>D(_(_({},wt),Le),{prevValue:s.formatValue,eventType:"update",eventID:wn.default.uuid.gen(),caretFrom:Number(It),caretTo:Number(nt)})),J&&J(Et))},width:1},ze),{onFocus:Et=>{ze!=null&&ze.onFocus&&(ze==null||ze.onFocus(Et)),h(!0)},onBlur:Et=>{ze!=null&&ze.onBlur&&(ze==null||ze.onBlur(Et)),h(!1)},onCompositionStart:Et=>{ze!=null&&ze.onCompositionStart&&(ze==null||ze.onCompositionStart(Et)),v(!0)},onCompositionEnd:Et=>{if(ze!=null&&ze.onCompositionEnd&&(ze==null||ze.onCompositionEnd(Et)),T=="text")return;let bt=wu.Validation.DataLeveling({min:de,max:Re,restrict:T,value:s.formatValue});d(It=>D(_(_({},It),bt),{prevValue:It.formatValue,eventType:"update",eventID:wn.default.uuid.gen(),caretFrom:Number(It.formatValue.length+1),caretTo:Number(It.formatValue.length+1)})),v(!1)}}))},TextAreaBox:a=>{let{rootStates:r,val_focus:o,set_focus:l,val_validate:s,set_validate:d,val_status:u,set_status:h,isShallow:p}=a,v=r,{componentID:y,tone:b,required:C,form:w,label:T,isLabelActive:L,minRows:A,maxRows:$,multiline:F,autoHeight:j,enableFormSubmit:U,maxLength:K,checkValidationAtFirst:M,onChange:oe,onKeyDown:ke,onValidate:J,onUpdateValue:pe,onUpdateValidValue:he,value:ce="",leftIndicator:P,rightIndicator:ee,leftIcon:me,rightIcon:z,wrapStyles:ne}=v,ve=Ze(v,["componentID","tone","required","form","label","isLabelActive","minRows","maxRows","multiline","autoHeight","enableFormSubmit","maxLength","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","leftIndicator","rightIndicator","leftIcon","rightIcon","wrapStyles"]);return r.multiline?(0,ta.jsx)(E,D(_({htmlTag:"textarea","data-form":w,"data-input-type":"textarea","data-show-validation":va.isShowValidation(s,u,!!M),"data-validation":s.ok,"data-value":u.dataValue,"data-input-origin":u.componentID,"data-component-id":u.componentID,value:u.dataValue,width:1},ve),{onFocus:be=>{ve!=null&&ve.onFocus&&(ve==null||ve.onFocus(be)),l(!0)},onBlur:be=>{ve!=null&&ve.onBlur&&(ve==null||ve.onBlur(be)),l(!1)},onKeyDown:be=>{ke&&ke(be),U&&va.SubmitForm(be)},onChange:be=>{let{value:de}=be.target;s.ok&&d({ok:!1,notice:[]}),h(Re=>D(_({},Re),{dataValue:de,eventType:"update",eventID:wn.default.uuid.gen()})),oe&&oe(be)}})):null}},Q$=a=>{let{componentID:r,restrict:o="text",onUpdateValue:l,onUpdateValidValue:s,value:d="",min:u,max:h}=a,p=D(_({componentID:r},wu.Validation.DataLeveling({min:u,max:h,restrict:o,value:d})),{prevValue:"",eventType:"init",eventID:wn.default.uuid.gen(),caretFrom:null,caretTo:null}),[v,y]=(0,Ns.useState)(!1),[b,C]=(0,Ns.useState)(!1),[w,T]=(0,Ns.useState)(p),[L,A]=(0,Ns.useState)({ok:!1,notice:[]}),$={rootStates:a,val_focus:v,set_focus:y,val_isComposing:b,set_isComposing:C,val_status:w,set_status:T,val_validate:L,set_validate:A};return va.CommonEffects({type:"textfield",states:a,val_status:w,set_status:T,val_validate:L,set_validate:A,onUpdateValue:l,onUpdateValidValue:s,DefaultValidation:wu.Validation.Default,ExtraOverrideStates:_({},wu.Validation.DataLeveling({min:u,max:h,restrict:o,value:d}))}),(0,Ns.useEffect)(()=>{wu.setSelection({id:a.id,restrict:o,val_status:w})},[w]),(0,ta.jsxs)(Jr,{val_status:w,set_status:T,val_validate:L,states:$.rootStates,children:[(0,ta.jsx)(bc,{componentID:a.componentID,fontSize:a.fontSize,required:a.required,label:a.label,isActive:a.isLabelActive||v||!!w.dataValue}),(0,ta.jsx)(cw.Shallow,_({},$)),(0,ta.jsx)(cw.InputBox,_({},$)),(0,ta.jsx)(cw.TextAreaBox,_({},$))]})},Ll=a=>(a=_({autoHeight:!0,restrict:"text",fontSize:"2.normal"},a),a.rightIcon&&(a=_({paddingRight:3},a)),a.leftIcon&&(a=_({paddingLeft:3},a)),a.multiline?(a.minRows=a.minRows||5,a.maxRows=a.maxRows||20):(a.minRows=1,a.maxRows=1),(0,ta.jsx)(Hr,{componentID:a.componentID,children:Q$,states:No(a)})),Sn=Ll;Sn.Validate=wu.Validation.Text,Sn.Katakana=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"katakana",multiline:!1,autoHeight:!1})),Sn.HankakuKatakana=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"hankaku.katakana",multiline:!1,autoHeight:!1})),Sn.CreditCard=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"creditCard",multiline:!1,autoHeight:!1})),Sn.Tel=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"tel",multiline:!1,autoHeight:!1})),Sn.Number=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"number",multiline:!1,autoHeight:!1})),Sn.DigitNumber=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"digitNumber",multiline:!1,autoHeight:!1})),Sn.Email=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"email",multiline:!1,autoHeight:!1})),Sn.Url=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"url",multiline:!1,autoHeight:!1})),Sn.Postal=a=>{let[r]=(0,Ns.useState)(wn.default.uuid.gen());return(0,Ns.useEffect)(()=>()=>{Ve.delete(r)},[]),(0,ta.jsx)(Ll,D(_({label:"\u90F5\u4FBF\u756A\u53F7"},a),{restrict:"postal",multiline:!1,autoHeight:!1,leftIndicator:(0,ta.jsx)(qf,{children:"\u3012"})}))},Sn.Password=a=>(0,ta.jsx)(Ll,D(_({label:"\u30D1\u30B9\u30EF\u30FC\u30C9",rightIndicator:(0,ta.jsx)(gc,{padding:0,children:(0,ta.jsx)(re.Button.Normal.R,{padding:[0,1],fontColor:"theme",borderRadius:"inherit",backgroundColor:"inherit",flexCenter:!0,height:1,ssEffectsOnActive:["expand"],onMouseOver:r=>{Ba.open({parent:r.currentTarget,gravityPoint:24,padding:[1,0],content:(0,ta.jsx)(Ba.Body,{children:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A"})})},tabIndex:-1,onClick:r=>{(0,wn.default)(r.target).parent().parent().find("input").callback(o=>{let l=o[0];l.type=l.type==="password"?"text":"password"})},children:(0,ta.jsx)(Ce,{icon:dw.faEye})})})},a),{restrict:"password",multiline:!1,autoHeight:!1})),Sn.Concealed=a=>(0,ta.jsx)(Ll,D(_({label:"\u79D8\u5BC6\u9375",rightIndicator:(0,ta.jsx)(gc,{padding:0,children:(0,ta.jsx)(re.Button.Normal.R,{padding:[0,1],fontColor:"theme",borderRadius:"inherit",backgroundColor:"inherit",flexCenter:!0,height:1,ssEffectsOnActive:["expand"],onMouseOver:r=>{Ba.open({parent:r.currentTarget,gravityPoint:24,padding:[1,0],content:(0,ta.jsx)(Ba.Body,{children:"\u5024\u3092\u8868\u793A"})})},tabIndex:-1,onClick:r=>{(0,wn.default)(r.target).parent().parent().parent().find("input").callback(o=>{let l=o[0];l.type=l.type==="password"?"text":"password"})},children:(0,ta.jsx)(Ce,{icon:dw.faEye})})})},a),{restrict:"concealed",multiline:!1,autoHeight:!1})),Sn.Money={JPY:a=>(0,ta.jsx)(Sn.DigitNumber,D(_({rightIndicator:(0,ta.jsx)(gc,{children:"\u5186"})},a),{multiline:!1,autoHeight:!1}))};var N_=Z(Mt()),fw=Z(ha()),pw=Z(ma());function Z$(a){let{value:r,states:o}=a,{required:l}=o,s=[];return l&&!r&&s.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!s.filter(({type:d})=>d=="invalid").length,notice:s}}var eG=a=>{let r=a,{componentID:o,tone:l,required:s,form:d,value:u,enableFormSubmit:h,checkValidationAtFirst:p,onInput:v,onKeyDown:y,onValidate:b,onUpdateValue:C,onUpdateValidValue:w,children:T="",leftIndicator:L,rightIndicator:A,leftIcon:$,rightIcon:F,freeCSS:j,wrapStyles:U}=r,K=Ze(r,["componentID","tone","required","form","value","enableFormSubmit","checkValidationAtFirst","onInput","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","children","leftIndicator","rightIndicator","leftIcon","rightIcon","freeCSS","wrapStyles"]),M={componentID:o,dataValue:u,eventType:"init",eventID:pw.default.uuid.gen()},[oe,ke]=(0,fw.useState)(M),[J,pe]=(0,fw.useState)({ok:!1,notice:[]});return va.CommonEffects({type:"contenteditable",states:a,val_status:oe,set_status:ke,val_validate:J,set_validate:pe,onUpdateValue:C,onUpdateValidValue:w,DefaultValidation:Z$}),(0,N_.jsx)(Jr,{val_status:oe,set_status:ke,val_validate:J,states:a,children:(0,N_.jsx)(E,D(_({contentEditable:!0,"data-form":d,"data-name":a.name,"data-input-type":"contenteditable","data-show-validation":va.isShowValidation(J,oe,!!p),"data-validation":J.ok,"data-value":oe.dataValue,"data-component-id":oe.componentID,onKeyDown:he=>{y&&y(he),h&&va.SubmitForm(he)},onInput:he=>{let ce=he.currentTarget,{innerHTML:P,innerText:ee}=ce;J.ok&&pe({ok:!1,notice:[]}),ke(me=>D(_({},me),{dataValue:ee,eventType:"update",eventID:pw.default.uuid.gen()})),v&&v(he)}},K),{children:T}))})},YN=a=>{a=_({rows:5},a),a.rightIcon&&(a=_({paddingRight:3},a)),a.leftIcon&&(a=_({paddingLeft:3},a)),a=D(_({},a),{freeCSS:_({whiteSpace:"pre-wrap"},a.freeCSS)});let r=No(a);return(0,N_.jsx)(Hr,{componentID:a.componentID,children:eG,states:r})};var gd=Z(Mt()),hw=Z(ha()),ym=Z(ma());function tG(a){let{value:r,states:o}=a,{required:l,numericOnly:s=!1,digits:d}=o,u=[];return l&&!r&&u.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),r&&(s&&r.match(/\D/)&&u.push({type:"invalid",label:"\u6570\u5B57\u306E\u307F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),r.length!=d&&u.push({type:"warn",label:"\u6700\u5F8C\u307E\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"})),{ok:!u.filter(({type:h})=>h=="invalid"||h=="warn").length,notice:u}}var aG=(a,r="")=>{let o=String(r),l=[];for(let s=0;s<a;s++)l[s]=o[s]||"";return{formatValue:l,dataValue:o}},$N=(a="")=>{let r=a,o=r.join("");return{formatValue:r,dataValue:o}},rG=a=>{let r=a,{tone:o,required:l,form:s,name:d,className:u="",digits:h,numericOnly:p=!1,enableFormSubmit:v,checkValidationAtFirst:y,onChange:b,onKeyDown:C,onValidate:w,onUpdateValue:T,onUpdateValidValue:L,value:A="",override:$,freeCSS:F,wrapStyles:j,combineInput:U,componentID:K,listStyles:M}=r,oe=Ze(r,["tone","required","form","name","className","digits","numericOnly","enableFormSubmit","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","override","freeCSS","wrapStyles","combineInput","componentID","listStyles"]),ke=D(_({componentID:a.componentID||""},aG(h,A)),{eventType:"init",eventID:ym.default.uuid.gen()}),[J,pe]=(0,hw.useState)(ke),[he,ce]=(0,hw.useState)({ok:!1,notice:[]});va.CommonEffects({type:"textfield",states:a,val_status:J,set_status:pe,val_validate:he,set_validate:ce,onUpdateValue:T,onUpdateValidValue:L,DefaultValidation:tG});let P=[];for(let ee=0;ee<h;ee++){let me=J.formatValue[ee],z={},ne=u;a.combineInput&&(ne=[u,Wf("DigitCharacterCell"),Wf("Combined")].join(" ")),P.push((0,gd.jsx)("input",{type:"text",inputMode:p?"numeric":a.inputMode||"text",value:me,"data-form-name":s,id:"Digit-"+ee+"-"+J.componentID,className:ne,style:_(_({},a.style),z),onKeyDown:ve=>{let{key:be,code:de}=ve;if(be=="Tab")return;ve.preventDefault();let Re=null;if(be=="Backspace"){let Pe=J.formatValue;Pe[ee]="",pe(Oe=>D(_(_({},Oe),$N(Pe)),{eventType:"update",eventID:ym.default.uuid.gen()})),Re=ee-1}else if(["ArrowLeft","ArrowRight"].includes(be)){let Pe=+(be=="ArrowRight")*2-1;Re=ee+Pe}else v&&va.SubmitForm(ve),(()=>{let Pe=de.match(/^(Key(.)|Digit(\d)|Numpad(\d))/);if(!Pe)return;let Oe=Pe[2]||Pe[3]||Pe[4];if(p&&!Oe.match(/\d/)||!Oe)return;let rt=J.formatValue;rt[ee]=Oe,pe(ze=>D(_(_({},ze),$N(rt)),{eventType:"update",eventID:ym.default.uuid.gen()})),Re=ee+1})();ym.default.is.exist(Re)&&xt("#Digit-"+Re+"-"+J.componentID).focus()},onChange:()=>{}},ee))}return(0,gd.jsxs)(Jr,{val_status:J,set_status:pe,val_validate:he,states:a,children:[(0,gd.jsx)(Bs,_({name:d,"data-input-type":"digitCharacters","data-form":s,"data-validation":he.ok,componentID:J.componentID,"data-value":J.dataValue},oe)),(0,gd.jsx)(vt,D(_({gap:"1/2",flexChilds:"even",flexWrap:!1,flexSizing:"auto"},M),{children:P}))]})},GN=a=>{a=_({},a),a=_({textAlign:"center",width:0},a),a.combineInput&&(a=D(_({textAlign:"center",width:0},a),{freeCSS:_({minWidth:12*2,marginRight:-1},a.freeCSS),listStyles:_({borderRadius:"2.tone.secondary",border:"unset",gap:0},a.listStyles)}));let r=In(No(a));return(0,gd.jsx)(Hr,{componentID:a.componentID,children:rG,states:r})};var ar=Z(Mt()),Oo=Z(ha()),wo=Z(ma());var fO=Z(eO()),pO=Z(sO());var Ua=Z(Mt()),Bl=Z(ha()),hn=Z(ma());function nG(a){let{value:r,states:o}=a,{required:l,options:s}=o,d=[];return l&&r==="null"&&d.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!d.filter(({type:u})=>u=="invalid").length,notice:d}}var gw={FilterSelectableOptions:(a,r)=>{let o=a.rootStates.options;return r||(o=o.filter(l=>l.type!="label")),o}},Xf={Shallow:a=>{let{rootStates:r,val_status:o}=a,l=Os(r);return(0,Ua.jsx)(E,{position:"absolute",top:0,left:0,right:0,height:0,overflow:"hidden",opacity:"trans",freeCSS:{zIndex:3,pointerEvents:"none"},children:(0,Ua.jsx)(Je.Description,D(_({className:r.className},l),{position:"absolute",width:1,freeCSS:D(_({},l.freeCSS),{color:"orange"}),children:(0,Ua.jsx)(E,{"data-input-value-shallow":o.componentID,children:"A"})}))})},Button:a=>{let{rootStates:r,val_preventOpenSelectorOnFocus:o,set_preventOpenSelectorOnFocus:l,val_optionFocused:s,set_optionFocused:d,val_validate:u,set_validate:h,val_status:p,set_status:v,val_selectorOpen:y,set_selectorOpen:b}=a,C=r,{tone:w,required:T,form:L,className:A,label:$,isLabelActive:F,placeholder:j,enableFormSubmit:U,emptySelect:K,checkValidationAtFirst:M,onValidate:oe,onUpdateValue:ke,onUpdateValidValue:J,value:pe="",options:he,leftIndicator:ce,rightIndicator:P,leftIcon:ee,rightIcon:me,componentID:z,status_id:ne,wrapStyles:ve,SelectedCellStyles:be,SelectorCellStyles:de,SelectorStyles:Re,SelectorGravityPoint:Pe}=C,Oe=Ze(C,["tone","required","form","className","label","isLabelActive","placeholder","enableFormSubmit","emptySelect","checkValidationAtFirst","onValidate","onUpdateValue","onUpdateValidValue","value","options","leftIndicator","rightIndicator","leftIcon","rightIcon","componentID","status_id","wrapStyles","SelectedCellStyles","SelectorCellStyles","SelectorStyles","SelectorGravityPoint"]),rt="select-sheet-"+r.componentID;return(0,Bl.useEffect)(()=>{if(r.disabled)return;let ze="select-click-"+r.componentID;if(y){let pt=(0,hn.default)('[data-input-origin="'+r.componentID+'"]');if(!pt)return;Ot.open({sheetID:rt,type:"custom",parent:pt[0],padding:["1/4",0],gravityPoint:r.SelectorGravityPoint||22,close_option:{aroundClick:!1},content:(0,Ua.jsx)(Xf.Selector,_({},a))}),(0,hn.default)(document).addEvent({eventID:ze,eventType:"click",callback:Kt=>{let Et=(0,hn.default)(Kt.target),bt=!!(0,hn.default)(Et).parent("."+ts("Core")).length;(0,hn.default)(Et).parent("."+ts("Selector")).length||bt||b(!1)}})}else(0,hn.default)(document).removeEvent([ze]),Ot.close(rt)},[y]),(0,Bl.useEffect)(()=>{if(p.eventType=="init")return;let ze=(0,hn.default)('[data-input-origin="'+r.componentID+'"]');ze&&ze.focus()},[p.dataValue]),(0,Bl.useEffect)(()=>{if(r.disabled||!y)return;let ze=Ve.get("refresh-select-selector-"+r.componentID);ze&&ze(a)},[r.options,p.dataValue,s]),(0,Ua.jsx)(Ua.Fragment,{children:(0,Ua.jsx)(E,D(_({tabIndex:0},Oe),{"data-disabled":r.disabled,"data-name":r.name,"data-form":L,"data-show-validation":va.isShowValidation(u,p,!!M),"data-validation":u.ok,"data-component-id":p.componentID,"data-input-origin":p.componentID,"data-value":p.dataValue,"data-input-type":"select",className:[A,ts("Core")].join(" "),onFocus:ze=>{if(Oe!=null&&Oe.onFocus&&(Oe==null||Oe.onFocus(ze)),!r.disabled){if(o)return l(!1);b(!0)}},onClick:ze=>{Oe!=null&&Oe.onClick&&(Oe==null||Oe.onClick(ze)),!r.disabled&&b(!0)},onKeyDown:ze=>{let{key:pt,metaKey:Kt,ctrlKey:Et}=ze,bt=Kt||Et;if(Oe!=null&&Oe.onKeyDown&&(Oe==null||Oe.onKeyDown(ze)),U&&va.SubmitForm(ze),!r.disabled){if(hn.default.scope(()=>{if(!["ArrowDown","ArrowUp"].includes(pt))return;if(ze.preventDefault(),!y)return b(!0);let It=pt=="ArrowDown"?1:-1,nt=gw.FilterSelectableOptions(a),Le=nt.length-1,wt=null;hn.default.scope(()=>{var zt,Yt,$t,oa;if(It==1){if(wt=((zt=nt[0])==null?void 0:zt.value)||null,s==null)return;if(bt){wt=nt[Le].value||wt||null;return}let sa=nt.findIndex(xa=>xa.value==s);if(sa==-1)return;wt=((Yt=nt[sa+1])==null?void 0:Yt.value)||wt||null}else{if(wt=nt[Le].value||null,s==null)return;if(bt){wt=(($t=nt[0])==null?void 0:$t.value)||wt||null;return}let sa=nt.findIndex(xa=>xa.value==s);if(sa==-1)return;wt=((oa=nt[sa-1])==null?void 0:oa.value)||wt||null}}),d(wt)}),pt=="Escape")b(!1);else if(pt=="Tab")b(!1);else if(pt=="Backspace")v(It=>D(_({},It),{dataValue:"null",eventType:"update",eventID:hn.default.uuid.gen()}));else if(pt==" ")ze.preventDefault(),b(!0);else if(pt=="Enter"){if(!y)return b(!0);if(!s)return;ze.preventDefault();let It=r.options.find(nt=>nt.value==s);if(!It)return;v(nt=>D(_({},nt),{dataValue:It.value,eventType:"update",eventID:hn.default.uuid.gen()})),b(!1)}}},children:(0,Ua.jsxs)(Xe.Left,{flexWrap:!0,gap:"1/3",freeCSS:{letterSpacing:".5px"},children:[(0,Ua.jsx)(Xf.Placeholder,_({},a)),(0,Ua.jsx)(Xf.Selected,_({},a)),(0,Ua.jsx)(yn,{width:0,overflow:"hidden",opacity:"trans",children:"A"})]})}))})},Placeholder:a=>!a.rootStates.placeholder||a.val_status.dataValue!=="null"?null:(0,Ua.jsx)(E,{position:"absolute",opacity:"middle",fontColor:"3.blur",children:a.rootStates.placeholder||""}),Selector:a=>{let[r,o]=(0,Bl.useState)(a),{rootStates:l}=r;(0,Bl.useEffect)(()=>{Ve.set({["refresh-select-selector-"+l.componentID]:h=>{o(h)}})},[]);let s=[],d=gw.FilterSelectableOptions(r,!0),u=gw.FilterSelectableOptions(r);return d.forEach((h,p)=>{let{type:v,value:y}=h,b=r.val_optionFocused==y,C=r.val_status.dataValue===y;if(v=="selector"){s.push((0,Ua.jsx)(re.Button.Sub.S,{color:"cloud",backgroundColor:"trans",borderRadius:0,fontColor:"2.normal",textAlign:"left",padding:["1/2",1.5],isActive:C||b,isActiveStyles:b?{backgroundColor:"cloud"}:{backgroundColor:"theme.opa.few",fontColor:"theme"},onClick:w=>{r.set_status(T=>D(_({},T),{dataValue:y,eventType:"update",eventID:hn.default.uuid.gen()})),r.set_selectorOpen(!1),r.set_preventOpenSelectorOnFocus(!0)},children:(0,Ua.jsx)(Je.Supplement,{paddingLeft:C?"1/2":0,transition:"short",children:h.label})},String(y)));return}s.push((0,Ua.jsx)(E,{children:h.label},hn.default.uuid.gen()))}),u.length||(s=[(0,Ua.jsx)(Je.Supplement,{padding:[0,1],fontColor:"4.thin",children:"\u5019\u88DC\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093"},"no-selector-notice")]),(0,Ua.jsx)(Ot.Body,{className:ts("Selector"),ssCardBox:!0,borderRadius:"3.tone.tertiary",boxShadow:"1.normal",freeCSS:{minWidth:12*18},children:(0,Ua.jsx)(ft,{gap:0,padding:[1,0],children:s})})},Selected:a=>{let r=[];return a.val_status.dataValue!=="null"&&hn.default.scope(()=>{let o=a.rootStates.options.find(l=>l.value==a.val_status.dataValue);o&&r.push((0,Ua.jsx)(E,D(_({},a.rootStates.SelectedCellStyles),{children:o.label}),String(o.value)))}),(0,Ua.jsx)(Ua.Fragment,{children:r})},Core:a=>{let{onUpdateValue:r,onUpdateValidValue:o,value:l}=a,s={componentID:a.componentID||"",dataValue:l,eventType:"init",eventID:hn.default.uuid.gen()},[d,u]=(0,Bl.useState)(!1),[h,p]=(0,Bl.useState)(s),[v,y]=(0,Bl.useState)(!1),[b,C]=(0,Bl.useState)(a.value||null),[w,T]=(0,Bl.useState)({ok:!1,notice:[]}),L={rootStates:a,val_preventOpenSelectorOnFocus:d,set_preventOpenSelectorOnFocus:u,val_optionFocused:b,set_optionFocused:C,val_selectorOpen:v,set_selectorOpen:y,val_status:h,set_status:p,val_validate:w,set_validate:T};return va.CommonEffects({type:"select",states:a,val_status:h,set_status:p,val_validate:w,set_validate:T,onUpdateValue:r,onUpdateValidValue:o,DefaultValidation:nG,ExtraOverrideStates:{dataValue:l,formatValue:l}}),(0,Ua.jsxs)(Jr,{val_status:h,set_status:p,val_validate:w,states:a,children:[(0,Ua.jsx)(bc,{componentID:a.componentID,fontSize:a.fontSize,required:a.required,label:a.label,isActive:a.isLabelActive||h.dataValue!=="null"}),(0,Ua.jsx)(Xf.Shallow,_({},L)),(0,Ua.jsx)(Xf.Button,_({},L))]})}},os=a=>(a=D(_({emptySelect:!0},a),{freeCSS:_({cursor:"pointer"},a.freeCSS)}),a.value=hn.default.JsonTo(a.value||null),a.emptySelect&&(a.options=[{value:null,label:(0,Ua.jsx)(Je.Supplement,{fontColor:"4.thin",children:"\u9078\u629E\u3092\u89E3\u9664"})},...a.options]),a.options.forEach((r,o)=>{let{type:l,value:s}=r;a.options[o]=D(_({},r),{type:l||"selector",value:hn.default.JsonTo(s)})}),hn.default.is.nullish(a.rightIcon)&&(a.rightIcon=(0,Ua.jsx)(pn,{children:(0,Ua.jsx)(Ce.AngleDown,{})})),a.rightIcon&&(a=_({paddingRight:3},a)),a.leftIcon&&(a=_({paddingLeft:3},a)),(0,Ua.jsx)(Hr,{componentID:a.componentID,children:Xf.Core,states:No(a)}));var We=Z(Mt()),cO=Z(ha()),Cu=Z(ha()),Ga=Z(ma());var Ar=Z(Mt()),_w=Z(ha()),yc=Z(ma());function oG(a){let{value:r,states:o}=a,{type:l,required:s,minSelect:d=0}=o,u=[];return s&&(r.length||l=="radio"&&u.push({type:"invalid",label:"\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093"})),d&&r.length<d&&u.push({type:"invalid",label:`${d}\u500B\u4EE5\u4E0A\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044`}),{ok:!u.filter(({type:h})=>h=="invalid").length,notice:u}}var Sm={OptionalListWrapper:a=>{let{value:r,options:o=[]}=a,l=yc.default.is.exist(r)?yc.default.flatArray(r):[],s=o.map(u=>{let{value:h,label:p}=u;return D(_({},u),{value:JSON.stringify(h),label:p})}),d=[];return l.forEach(u=>{let h=JSON.stringify(u);s.findIndex(p=>p.value==h)!=-1&&d.push(h)}),(0,Ar.jsx)(Sm.Core,D(_({},a),{value:d,options:s}))},Core:a=>{let r=a,{type:o,tone:l,required:s,componentID:d="",form:u,override:h,icon:p,iconType:v,CustomIcon:y,enableFormSubmit:b,checkValidationAtFirst:C,onValidate:w,onUpdateValue:T,onUpdateValidValue:L,value:A,options:$,className:F,cellStyles:j,cellClassName:U,cellCheckedStyles:K,cellCheckedClassName:M,minSelect:oe,hideInput:ke,freeCSS:J,wrapStyles:pe}=r,he=Ze(r,["type","tone","required","componentID","form","override","icon","iconType","CustomIcon","enableFormSubmit","checkValidationAtFirst","onValidate","onUpdateValue","onUpdateValidValue","value","options","className","cellStyles","cellClassName","cellCheckedStyles","cellCheckedClassName","minSelect","hideInput","freeCSS","wrapStyles"]),ce={componentID:d,dataValue:A,eventType:"init",eventID:yc.default.uuid.gen()},[P,ee]=(0,_w.useState)(ce),[me,z]=(0,_w.useState)({ok:!1,notice:[]});return va.CommonEffects({type:"list",states:a,val_status:P,set_status:ee,val_validate:me,set_validate:z,onUpdateValue:T,onUpdateValidValue:L,DefaultValidation:oG}),(0,Ar.jsxs)(Jr,{val_status:P,set_status:ee,val_validate:me,states:a,children:[(0,Ar.jsx)(Bs,D(_({"data-value":JSON.stringify(P.dataValue),form:u,"data-input-type":o,"data-validation":me.ok},he),{componentID:P.componentID})),(0,Ar.jsx)(Sm.List,{rootStates:a,val_status:P,set_status:ee})]})},List:a=>{let{rootStates:r,val_status:o,set_status:l}=a,{componentID:s,type:d,tone:u,icon:h=!0,options:p,name:v,form:y,tabIndex:b,hideInput:C,disabled:w,className:T,cellStyles:L,cellClassName:A="",cellCheckedStyles:$,cellCheckedClassName:F="",enableFormSubmit:j}=r,{dataValue:U}=o,K=r.CustomIcon,M=p.map((oe,ke)=>{let J=oe,{value:pe,label:he,disabled:ce,className:P="",checkedStyles:ee,checkedClassName:me="",freeCSS:z}=J,ne=Ze(J,["value","label","disabled","className","checkedStyles","checkedClassName","freeCSS"]),ve=yc.default.uuid.gen(),be=U.findIndex(Oe=>Oe===pe)!=-1,de=_(_({},L),ne),Re=[dd("Label"),A,P];be&&(de=D(_(_(_({},de),$),ee),{freeCSS:_(_(_({},de==null?void 0:de.freeCSS),$==null?void 0:$.freeCSS),ee==null?void 0:ee.freeCSS)}),Re=[...Re,F,me]);let Pe=()=>{if(w||ce)return;let Oe=[];if(d=="radio")Oe=[pe];else if(d=="checkbox"||d=="checker")if(!be)Oe=[...o.dataValue,pe];else{let rt=[...o.dataValue];rt.splice(o.dataValue.findIndex(ze=>ze==pe),1),Oe=rt}l(rt=>D(_({},rt),{dataValue:Oe,eventType:"update",eventID:yc.default.uuid.gen()}))};return[(0,Ar.jsx)(E,{htmlTag:"input",type:d=="radio"?"radio":"checkbox",className:dd("Input"),name:"RadioCheckbox-"+v,"data-list-index":s+"-"+ke,id:ve,value:String(pe),"data-form-name":y,disabled:w||ce,checked:be,onFocus:Oe=>{ce||d=="radio"&&(o.dataValue.length||l(rt=>D(_({},rt),{dataValue:[pe],eventType:"update",eventID:yc.default.uuid.gen()})))},onChange:()=>{Pe()},onKeyDown:Oe=>{let{key:rt,shiftKey:ze}=Oe;if((d=="checkbox"||d=="checker")&&rt!="Tab"&&rt.match(/Arrow/)){Oe.preventDefault();let pt=["ArrowLeft","ArrowUp"].includes(rt)?-1:1,Kt=ke+pt;Kt<0?Kt=p.length-1:Kt>=p.length&&(Kt=0),xt(`input[data-list-index="${s}-${Kt}"]`).focus()}j&&va.SubmitForm(Oe)},tabIndex:b},"List-"+JSON.stringify(pe)),(0,Ar.jsxs)(S_,D(_({"data-disabled":w||ce,htmlFor:ve,className:Re.join(" "),tabIndex:-1,display:"flex",verticalAlign:"center",gap:"1/6",flexWrap:!1},de),{children:[h&&(0,Ar.jsx)(K,{isChecked:be,toggle:()=>{Pe()}}),yc.default.is.string(he)?(0,Ar.jsx)(E,{children:he}):he]}),"ListTrigger-"+JSON.stringify(pe))]});return(0,Ar.jsx)(vt,{flexSizing:"auto",style:r.style,freeCSS:_({},r.freeCSS),className:[T,dd("CellBase"),dd("HideInput_"+C),dd("IconIndicator_"+!!h),dd("Tone_"+u)].join(" "),children:M})},RadioIcon:a=>(0,Ar.jsx)(re.Button.Normal.R,{ssPushable:!0,color:"cloud",tabIndex:-1,ssEffectsOnActive:"ripple.cloud",ssSphere:3,onClick:r=>{r.preventDefault(),r.stopPropagation(),a.toggle()},children:(0,Ar.jsx)(E,{ssSphere:1.5,border:"3.thick",borderWidth:2,borderColor:a.isChecked?"theme":"3.thick",position:"relative",transition:"middle",children:(0,Ar.jsx)(E,{position:"absolute",transition:"middle",isRounded:!0,backgroundColor:a.isChecked?"theme":"trans",opacity:a.isChecked?"max":"trans",freeCSS:{width:"60%",height:"60%",transform:a.isChecked?"scale(1)":"scale(.6)"}})})}),CheckboxIcon:a=>(0,Ar.jsx)(re.Button.Normal.R,{ssPushable:!0,color:"cloud",tabIndex:-1,ssEffectsOnActive:"ripple.cloud",ssSphere:3,onClick:r=>{r.preventDefault(),r.stopPropagation(),a.toggle()},children:(0,Ar.jsx)(E,{ssSquare:1.5,flexCenter:!0,border:"3.thick",borderWidth:2,borderColor:a.isChecked?"theme":"3.thick",borderRadius:"3.tone.tertiary",position:"relative",backgroundColor:a.isChecked?"theme":"trans",transition:"middle",fontColor:"white",children:(0,Ar.jsx)(Ce.Check,{transition:"middle",opacity:a.isChecked?"max":"trans",freeCSS:{zIndex:8}})})})},bw=a=>{a=a||"checkbox";let r=l=>(l=D(_({gap:"1/2",iconType:a=="radio"?"radio":"checkbox"},l),{type:a,cellStyles:_({position:"relative",borderRadius:"2.tone.secondary",transition:"middle"},l.cellStyles)}),l.CustomIcon||(l.iconType=="radio"?l.CustomIcon=Sm.RadioIcon:l.iconType=="checkbox"&&(l.CustomIcon=Sm.CheckboxIcon)),l.tone=="normal"?(l.cellStyles=_({padding:["1/4",1],border:"1.thin",isRounded:!0,backgroundColor:"layer.1"},l.cellStyles),l.cellCheckedStyles=_({borderColor:"theme",fontColor:"theme",boxShadow:"1.normal"},l.cellCheckedStyles)):l.tone=="border"?(l.cellStyles=_({paddingRight:1,border:"1.thin",isRounded:!0,backgroundColor:"layer.1"},l.cellStyles),l.cellCheckedStyles=_({borderColor:"theme",fontColor:"theme"},l.cellCheckedStyles)):l.tone=="cloud"&&(l.cellStyles=_({paddingRight:1,isRounded:!0,border:"1.thin",backgroundColor:"layer.2"},l.cellStyles),l.cellCheckedStyles=_({backgroundColor:"cloud",fontColor:"theme"},l.cellCheckedStyles)),l=In(l),(0,Ar.jsx)(Hr,{componentID:l.componentID,children:Sm.OptionalListWrapper,states:l})),o=r;return o.Normal=l=>(0,Ar.jsx)(r,_({type:a,tone:"normal",icon:!1},l)),o.Border=l=>(0,Ar.jsx)(r,_({type:a,tone:"border"},l)),o.Cloud=l=>(0,Ar.jsx)(r,_({type:a,tone:"cloud"},l)),o.Vivid=l=>(0,Ar.jsx)(r,_({type:a,tone:"normal",icon:!1,cellCheckedStyles:{backgroundColor:"theme",fontColor:"white"}},l)),o.Simple=l=>(0,Ar.jsx)(r,_({type:a,tone:"plain",icon:!1,cellCheckedStyles:{fontColor:"theme"}},l)),o},O_=bw("checkbox"),_d=bw("radio"),uO=bw();var yw=a=>{var r,o;let l=[],s=Number((r=a==null?void 0:a.min)!=null?r:1900),d=Number((o=a==null?void 0:a.max)!=null?o:Ga.default.Time().addYear(10).year);for(let u=s;u<=d;u++)l.unshift({value:u,label:[u,...Ga.default.transformer.wareki(u).value].join(" - ")});return l},dO=a=>{let{restrict:r,era:o="year",defaultValue:l=""}=a;a=_({},a),a.tipsID=a.tipsID||Ga.default.uuid.gen();let s=(0,Cu.useRef)(!1),[d,u]=(0,Cu.useState)((()=>{var p,v;if(r=="clock"){let y=String(l).split(/[^\d]/);y[0]||(y=[0,0]);let b=Number(y[0]),C=Number(y[1]);return{modifiedType:"init",hour:b,minutes:C}}else if(r=="date"){let[y,b,C]=(p=String(l))==null?void 0:p.split(/\D/);return(Ga.default.is.nullish(y)||Ga.default.is.nullish(b)||Ga.default.is.nullish(C))&&([y,b,C]=Ga.default.Time().toFormat("%Y-%M-%D").split("-")),{modifiedType:"init",year:Number(y),month:Number(b),date:Number(C)}}else if(r!="week"){if(r=="month"){let[y,b]=String(l).split(/\D/);return(Ga.default.is.nullish(y)||Ga.default.is.nullish(b))&&([y,b]=Ga.default.Time().toFormat("%Y-%M").split("-")),{modifiedType:"init",year:Number(y),month:Number(b)}}else if(r=="year"){let[y]=String(l).split(/\D/);return Ga.default.is.nullish(y)&&([y]=Ga.default.Time().toFormat("%Y").split("-")),{modifiedType:"init",year:Number(y)}}else if(r=="dateWareki"){let[y,b,C]=(v=String(l))==null?void 0:v.split(/\D/);return(Ga.default.is.nullish(y)||Ga.default.is.nullish(b)||Ga.default.is.nullish(C))&&([y,b,C]=Ga.default.Time().toFormat("%Y-%M-%D").split("-")),{modifiedType:"init",era:o||"year",year:Number(y),month:Number(b),date:Number(C)}}}return{}})());(0,Cu.useEffect)(()=>{if(s.current){if(d.modifiedType=="update"){let p="",v=o||"year";if(r=="clock"){let{hour:y,minutes:b}=d;p=[y.zeroEmbed(2),b.zeroEmbed(2)].join("/")}else if(r=="date"){let{year:y,month:b,date:C}=d;p=[y,b.zeroEmbed(2),C.zeroEmbed(2)].join("/")}else if(r!="week"){if(r=="month"){let{year:y,month:b}=d;p=[y,b.zeroEmbed(2)].join("/")}else if(r=="year"){let{year:y}=d;p=String(y)}else if(r=="dateWareki"){let{year:y,month:b,date:C,era:w}=d;v=w,p=[y,b.zeroEmbed(2),C.zeroEmbed(2)].join("/")}}a.onValueUpdate(p,v)}}else s.current=!0},[d]);let h=D(_({},a),{val_value:d,set_value:u});return(0,We.jsx)(E,{backgroundColor:"layer.1",borderRadius:"2.tone.secondary",boxShadow:"1.remark",border:!0,overflow:"hidden",children:(0,We.jsx)(E,{overflow:"auto",className:zr(r.toCapital()+"Base"),children:r=="clock"?(0,We.jsx)(Wr.Clock.index,_({},h)):r=="date"?(0,We.jsx)(Wr.Date.index,_({},h)):r=="week"?"":r=="month"?(0,We.jsx)(Wr.Month.index,_({},h)):r=="year"?(0,We.jsx)(Wr.Year.index,_({},h)):r=="dates"||r=="months"?"":r=="dateWareki"?(0,We.jsx)(Wr.DateWareki.index,_({},h)):(0,We.jsx)(We.Fragment,{})})})},Wr={Clock:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,[h,p]=(0,Cu.useState)(d.hour>12?2:1),[v,y]=(0,Cu.useState)(Number(localStorage.getItem("timePickerUnit")||5));(0,Cu.useEffect)(()=>{localStorage.setItem("timePickerUnit",String(v))},[v]);let{hour:b,minutes:C}=d;return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsxs)(vt,{flexType:"row",flexWrap:!1,gap:1,className:zr("Body"),children:[(0,We.jsxs)(ft,{className:zr("DesignSide"),flexSizing:0,children:[(0,We.jsx)(E,{className:zr("ClockUiBase"),padding:[1,"2/3"],flexCenter:!0,children:(0,We.jsxs)(E,{className:zr("ClockUi"),backgroundColor:"theme.opa.low",isRounded:!0,position:"relative",children:[(0,We.jsx)(E,{position:"absolute",backgroundColor:"theme",unitWidth:"1/12",className:[zr("Needle"),zr("hour")].join(" "),freeCSS:{transform:`rotate(${b*30+C/2}deg)`}}),(0,We.jsx)(E,{position:"absolute",backgroundColor:"theme",unitWidth:"1/12",className:[zr("Needle"),zr("minute")].join(" "),freeCSS:{transform:`rotate(${C*6}deg)`}})]})}),(0,We.jsx)(_d,{icon:!0,value:[h],options:[{value:1,label:"AM"},{value:2,label:"PM"}],flexType:"col",gap:0,cellStyles:{padding:"1/2",horizontalAlign:"between",gap:"1/3"},tabIndex:-1,onUpdateValidValue:({value:w})=>{let T=d.hour%12+(w==2?12:0);p(w),u({modifiedType:"update",hour:T,minutes:d.minutes})}}),(0,We.jsx)(E,{borderTop:!0,margin:[0,1]}),(0,We.jsx)(_d,{icon:!0,value:[v],options:[{value:1,label:"/ 1\u5206"},{value:2,label:"/ 2\u5206"},{value:5,label:"/ 5\u5206"}],flexType:"col",gap:0,cellStyles:{padding:"1/2",horizontalAlign:"between",gap:"1/3"},tabIndex:-1,onUpdateValidValue:({value:w})=>{y(w)}})]}),(0,We.jsxs)(ft,{children:[(0,We.jsxs)(E,{flexCenter:!0,isSemiBoldFont:!0,fontSize:"3.paragraph",children:[d.hour.zeroEmbed(2)," : ",d.minutes.zeroEmbed(2)]}),(0,We.jsxs)(vt,{flexWrap:!1,borderRadius:"1.tone.primary",boxShadow:"0.remark.inset",flexChilds:"even",padding:["1/3",0],freeCSS:{minWidth:12*12},children:[(0,We.jsx)(ft,{gap:0,overflow:"auto",padding:"2/3",borderRight:!0,freeCSS:{maxHeight:12*22},children:Wr.Clock.Hours({onClick:w=>{let T=w+(h==2?12:0);u({modifiedType:"update",hour:T,minutes:d.minutes})},min:r,max:o,ampm:h})}),(0,We.jsx)(ft,{gap:0,overflow:"auto",padding:"2/3",freeCSS:{maxHeight:12*22},children:Wr.Clock.Minutes({onClick:w=>{u({modifiedType:"update",hour:d.hour,minutes:w})},min:r,max:o,unit:v})})]})]})]}),(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l})]})},Hours:a=>{let r=[];for(let o=0;o<12;o++){let l=a.ampm==2?o+12:o,s=!1;{let d=Number(String(l*100).replace(/\D/ig,""));if(a.min&&Number(String(a.min).replace(/\D/ig,""))>d&&(s=!0),a.max){let u=Number(String(a.max).replace(/\D/ig,""));d>u&&(s=!0)}}r.push((0,We.jsx)(re.Button.Normal.R,{isLocked:s,borderBottom:!0,borderRadius:0,padding:["1/2",1],freeCSS:{whiteSpace:"nowrap"},tabIndex:-1,onClick:()=>{a.onClick(o)},children:l.zeroEmbed(2)},o))}return r},Minutes:a=>{let r=[];for(let o=0;o<60/a.unit;o++){let l=o*a.unit;r.push((0,We.jsx)(re.Button.Normal.R,{borderBottom:!0,borderRadius:0,padding:["1/2",1],freeCSS:{whiteSpace:"nowrap"},tabIndex:-1,onClick:()=>{a.onClick(l)},children:l.zeroEmbed(2)},l))}return r}},Date:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,{year:h,month:p,date:v}=d;return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsxs)(vt,{flexWrap:!0,verticalAlign:"center",horizontalAlign:"between",children:[(0,We.jsxs)(vt,{verticalAlign:"bottom",horizontalAlign:"left",gap:"2/3",flexWrap:!1,children:[(0,We.jsx)(os,{override:"force",emptySelect:!1,value:h,options:yw(),border:"1.thin",padding:["1/3","2/3"],paddingRight:2,onUpdateValidValue:({value:y})=>{u({modifiedType:"update",year:Number(y),month:p,date:v})},rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})})}),(0,We.jsx)(os,{override:"force",emptySelect:!1,value:p,options:(()=>{let y=[];for(let b=1;b<=12;b++)y.push({value:b,label:String(b),displayLabel:String(b)+"\u6708"});return y})(),border:"1.thin",padding:["1/3","2/3"],paddingRight:2,rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})}),onUpdateValidValue:({value:y})=>{u({modifiedType:"update",year:h,month:Number(y),date:v})}})]}),(0,We.jsx)(Wr.Variables.ShiftButtons,{callback:y=>{let b=p+y,C=h;y==-1?(b<=0&&C--,b=b||12):p==12&&C++,u({modifiedType:"update",year:C,month:b,date:d.date})}})]}),(0,We.jsx)(E,{borderTop:!0}),(0,We.jsx)(E,{children:Wr.Date.MonthCalendar({min:r,max:o,year:d.year,month:d.month,current:[d.year,d.month,d.date],callback:y=>{let[b,C,w]=y;u({modifiedType:"update",year:b,month:C,date:w})}})}),(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l})]})},MonthCalendar:a=>{let{min:r,max:o,year:l,month:s,current:d,callback:u}=a,h=Ga.default.Time(),p=Ga.default.Time([l,s.zeroEmbed(2),"01"].join("/")),v=p.getLastDayOfTheMonth(),y=Ga.default.Time(p).addMonth(-1).getLastDayOfTheMonth().date,b=[],C=[],w=[],T=[],L={padding:0,unitWidth:3,unitHeight:3,flexCenter:!0,borderRadius:"3.tone.tertiary"};for(var A=0;A<7;A++)b.push((0,We.jsx)(E,D(_({className:[zr("CalendarDay"),zr("Legend")].join(" ")},L),{children:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"][A]}),A));for(var A=0;A<p.weekday;A++)C.unshift((0,cO.createElement)(E,D(_({className:[zr("CalendarDay"),zr("Dummy")].join(" "),fontColor:"4.thin"},L),{key:A}),y-A));for(var A=1;A<=v.date;A++){let F=A,j=l==h.year&&s==h.month&&A==h.date,U=!1;{let K=Number(String([l,s.zeroEmbed(2),A.zeroEmbed(2)].join("/")).replace(/\D/ig,""));if(a.min&&Number(String(a.min).replace(/\D/ig,""))>K&&(U=!0),a.max){let M=Number(String(a.max).replace(/\D/ig,""));K>M&&(U=!0)}}w.push((0,We.jsx)(re.Button.Clear.R,D(_({className:[zr("CalendarDay"),zr("isToday_"+j)].join(" ")},L),{fontColor:"1.clear",padding:0,flexCenter:!0,isRounded:!0,ssEffectsOnActive:"shrink",onClick:()=>{u([l,s,F])},tabIndex:-1,isLocked:U,children:A}),F))}for(var A=1;A<7-v.weekday;A++)T.push((0,We.jsx)(E,D(_({className:[zr("CalendarDay"),zr("Dummy")].join(" "),fontColor:"4.thin"},L),{children:A}),A));return(0,We.jsxs)(hr,{gridCols:7,gap:"1/3",children:[b,C,w,T]})}},Month:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,{year:h,month:p}=d;return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsxs)(Xe.Separate,{gap:0,children:[(0,We.jsx)(Xe.Center,{verticalAlign:"bottom",gap:"2/3",children:(0,We.jsx)(os,{emptySelect:!1,value:h,options:yw(),override:"force",border:"1.thin",padding:["1/3","2/3"],paddingRight:2,rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})}),onUpdateValidValue:({value:v})=>{u({modifiedType:"update",year:Number(v),month:p})}})}),(0,We.jsx)(Wr.Variables.ShiftButtons,{callback:v=>{let y=Math.min(Math.max(h+v,1900),2100);u({modifiedType:"update",year:y,month:p})}})]}),(0,We.jsx)(E,{borderTop:!0}),Wr.Month.Months({min:r,max:o,year:d.year,callback:v=>{let[y,b]=v;u({modifiedType:"update",year:y,month:b})}}),(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l})]})},Months:a=>{let{year:r,callback:o}=a,l=Ga.default.Time(),s=[];for(let d=1;d<=12;d++){let u=r==l.year&&d==l.month,h=!1;{let v=Number(String([r,d.zeroEmbed(2)].join("/")).replace(/\D/ig,""));if(a.min&&Number(String(a.min).replace(/\D/ig,""))>v&&(h=!0),a.max){let y=Number(String(a.max).replace(/\D/ig,""));v>y&&(h=!0)}}let p=[zr("Cell"),u?zr("isThisMonth"):""].join(" ");s.push((0,We.jsxs)(re.Button.Clear.R,{className:p,isLocked:h,fontColor:"2.normal",padding:["1/3",1],ssEffectsOnActive:"shrink",onClick:()=>{o([r,d])},children:[d," \u6708"]},r+"-"+d))}return(0,We.jsx)(hr,{gridCols:4,gap:"2/3",children:s})}},Year:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,{year:h}=d;return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsx)(os,{emptySelect:!1,value:h||Ga.default.Time().year,override:"force",options:yw({min:r,max:o}),onUpdateValidValue:({value:p})=>{u({modifiedType:"update",year:Number(p)})}}),(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l,onSubmit:()=>{u({modifiedType:"update",year:Number(h||Ga.default.Time().year)})}})]})}},DateWareki:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,{era:h,year:p,month:v,date:y}=d,b={val_value:d,set_value:u};return(0,We.jsxs)(E,{children:[(0,We.jsxs)(Xe.Left,{borderBottom:!0,gap:0,verticalAlign:"unset",children:[(0,We.jsx)(Wr.DateWareki.EraSelect,_({},b)),(0,We.jsx)(E,{borderRight:!0}),(0,We.jsx)(Wr.DateWareki.Calendar,_({},b))]}),(0,We.jsx)(E,{padding:1,children:(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l})})]})},EraSelect:a=>{let{val_value:r,set_value:o}=a,l={padding:["1/2",1.5],fontColor:"3.blur"},s={backgroundColor:"cloud",fontColor:"2.normal",isSemiBoldFont:!0};return(0,We.jsxs)(ft,{padding:1,gap:0,children:[(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="year",onClick:()=>{let d=Ga.default.Time();o({modifiedType:"update",era:"year",year:d.year,month:d.month,date:d.date})},children:"\u897F\u66A6"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="reiwa",onClick:()=>{let d=Ga.default.Time();o({modifiedType:"update",era:"reiwa",year:d.year,month:d.month,date:d.date})},children:"\u4EE4\u548C"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="heisei",onClick:()=>{o({modifiedType:"update",era:"heisei",year:2019,month:1,date:1})},children:"\u5E73\u6210"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="shouwa",onClick:()=>{o({modifiedType:"update",era:"shouwa",year:1989,month:1,date:1})},children:"\u662D\u548C"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="taisho",onClick:()=>{o({modifiedType:"update",era:"taisho",year:1926,month:1,date:1})},children:"\u5927\u6B63"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="meiji",onClick:()=>{o({modifiedType:"update",era:"meiji",year:1912,month:1,date:1})},children:"\u660E\u6CBB"}))]})},Calendar:a=>{let{val_value:r,set_value:o}=a,l=[];if(r.era=="year")for(let s=1900;s<2100;s++)l.unshift({value:s,label:s+"\u5E74"});else if(r.era=="reiwa"){let s=Ga.default.Time().year-2018;for(let d=1;d<=s+10;d++)l.unshift({value:2019+d-1,label:"\u4EE4\u548C"+(d==1?"\u5143":d)+"\u5E74"})}else if(r.era=="heisei")for(let s=1;s<=31;s++)l.unshift({value:1989+s-1,label:"\u5E73\u6210"+(s==1?"\u5143":s)+"\u5E74"});else if(r.era=="shouwa")for(let s=1;s<=64;s++)l.unshift({value:1926+s-1,label:"\u662D\u548C"+(s==1?"\u5143":s)+"\u5E74"});else if(r.era=="taisho")for(let s=1;s<=15;s++)l.unshift({value:1912+s-1,label:"\u5927\u6B63"+(s==1?"\u5143":s)+"\u5E74"});else if(r.era=="meiji")for(let s=1;s<=45;s++)l.unshift({value:1868+s-1,label:"\u660E\u6CBB"+(s==1?"\u5143":s)+"\u5E74"});return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsxs)(Xe.Separate,{children:[(0,We.jsx)(os,{tone:"cloud",emptySelect:!1,override:"force",border:"1.thin",padding:["1/3","2/3"],paddingRight:2,rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})}),options:l,value:r.year,onUpdateValidValue:({value:s})=>{o(d=>D(_({},d),{modifiedType:"update",year:Number(s)}))}}),(0,We.jsxs)(Xe.Center,{gap:"1/3",children:[(0,We.jsx)(re.Button.Clear.S,{ssSphere:2,onClick:()=>{let s=r.month-1;o({modifiedType:"update",era:r.era,year:s==0?r.year-1:r.year,month:s==0?12:s,date:1})},children:(0,We.jsx)(Ce.ChevronLeft,{})}),(0,We.jsx)(os,{tone:"cloud",emptySelect:!1,override:"force",border:"1.thin",padding:["1/3","2/3"],paddingRight:2,rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})}),options:[{value:1,label:"1\u6708"},{value:2,label:"2\u6708"},{value:3,label:"3\u6708"},{value:4,label:"4\u6708"},{value:5,label:"5\u6708"},{value:6,label:"6\u6708"},{value:7,label:"7\u6708"},{value:8,label:"8\u6708"},{value:9,label:"9\u6708"},{value:10,label:"10\u6708"},{value:11,label:"11\u6708"},{value:12,label:"12\u6708"}],value:r.month,onUpdateValidValue:({value:s})=>{o({modifiedType:"update",era:r.era,year:r.year,month:Number(s),date:1})}}),(0,We.jsx)(re.Button.Clear.S,{ssSphere:2,onClick:()=>{let s=r.month+1;o({modifiedType:"update",era:r.era,year:s==13?r.year+1:r.year,month:s==13?1:s,date:1})},children:(0,We.jsx)(Ce.ChevronRight,{})})]})]}),(0,We.jsx)(Wr.DateWareki.MonthCell,_({},a))]},r.era)},MonthCell:a=>{let{val_value:r,set_value:o}=a,l=Ga.default.Time([r.year.zeroEmbed(4),r.month.zeroEmbed(2),r.date.zeroEmbed(2)].join("/"));if(!l.validate)return;let s=l.getFirstDayOfTheMonth().weekday,d=l.getLastDayOfTheMonth(),u=[];for(let h=0;h<7;h++)u.push((0,We.jsx)(Je.Supplement,{flexCenter:!0,fontColor:h==0?"googleRed":h==6?"googleBlue":"3.blur",children:Ga.default.transformer.weekday.shortJP(h)},"legend-"+h));for(let h=0;h<s;h++){let p=Ga.default.Time(l).getFirstDayOfTheMonth().addDate(h-s);u.push((0,We.jsx)(re.Button.Sub.R,{color:"cloud",border:"1.thin",ssSphere:3,opacity:"middle",onClick:v=>{v.preventDefault(),v.stopPropagation(),o({modifiedType:"update",era:r.era,year:p.year,month:p.month,date:p.date})},children:p.date},"lastMonth-"+h))}for(let h=1;h<=d.date;h++){let p=Ga.default.Time(l).setDate(h);u.push((0,We.jsx)(re.Button.Border.R,{ssSphere:3,onClick:()=>{o({modifiedType:"update",era:r.era,year:p.year,month:p.month,date:p.date})},children:p.date},"currentMonth-"+h))}for(let h=0;h<7-d.weekday-1;h++){let p=Ga.default.Time(l).addMonth(1).setDate(1).addDate(h);u.push((0,We.jsx)(re.Button.Sub.R,{color:"cloud",border:"1.thin",ssSquare:3,opacity:"middle",onClick:v=>{v.preventDefault(),v.stopPropagation(),o({modifiedType:"update",era:r.era,year:p.year,month:p.month,date:p.date})},children:p.date},"nextMonth-"+h))}return(0,We.jsx)(hr,{gridCols:7,gap:"1/4",children:u})}},Variables:{Footer:a=>(0,We.jsxs)(vt,{flexWrap:!1,gap:1,flexChilds:"even",freeCSS:{whiteSpace:"nowrap"},children:[(0,We.jsxs)(re.Button.Border.R,{onClick:()=>{a.onValueUpdate("")},tabIndex:-1,flexSizing:"none",padding:["2/3",1],children:[(0,We.jsx)(Ce.Times,{})," \u524A\u9664"]}),(0,We.jsx)(re.Button.Prime.R,{flexSizing:"auto",padding:["2/3",1],onClick:()=>{a.onSubmit&&a.onSubmit(),Ba.close(a.tipsID)},tabIndex:-1,children:"\u6C7A\u5B9A"})]}),ShiftButtons:a=>(0,We.jsxs)(vt,{gap:"1/3",flexWrap:!1,children:[(0,We.jsx)(re.Button.Clear.R,D(_({className:zr("LeftButton"),tabIndex:-1,right:0},Wr.Variables.ShiftButtonStyles),{onClick:()=>{a.callback(-1)},children:(0,We.jsx)(Ce.ChevronLeft,{})})),(0,We.jsx)(re.Button.Clear.R,D(_({className:zr("RightButton"),tabIndex:-1,left:0},Wr.Variables.ShiftButtonStyles),{onClick:()=>{a.callback(1)},children:(0,We.jsx)(Ce.ChevronRight,{})}))]}),ShiftButtonStyles:{flexCenter:!0,padding:0,unitWidth:3,unitHeight:3,borderRadius:"sphere",position:"relative"}}};var yd=" ~ ",lG={clock:{defaultValue:"--:--",format:/^\d{2}\D\d{2}$/,ranges:[{type:"hour",from:0,length:2},{type:"minute",from:3,length:2}],sets:1},date:{defaultValue:"----/--/--",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2},{type:"date",from:8,length:2}],sets:1},week:{defaultValue:"----\u5E74\u7B2C--\u9031",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4,region:6},{type:"week",from:6,length:2,region:3}],sets:1},month:{defaultValue:"----\u5E74--\u6708",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2,region:3}],sets:1},year:{defaultValue:"----\u5E74",format:/^\d{4}$/,ranges:[{type:"year",from:0,length:4,region:5}],sets:1},dates:{defaultValue:"----/--/--",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2},{type:"date",from:8,length:2,region:5},{type:"year",from:10+yd.length,length:4},{type:"month",from:15+yd.length,length:2},{type:"date",from:18+yd.length,length:2}],sets:2},months:{defaultValue:"----\u5E74--\u6708",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2,region:6},{type:"year",from:8+yd.length,length:4},{type:"month",from:13+yd.length,length:2,region:3}],sets:2},dateWareki:{defaultValue:"----\u5E74--\u6708--\u65E5",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"dateWareki",from:0,length:4,region:5},{type:"month",from:5,length:2,region:3},{type:"date",from:8,length:2,region:3}],sets:1}},bd={PeriodMargin:" ~ ",DataLeveling:a=>{let{restrict:r,value:o,era:l}=a,s=wo.default.flatArray(o||""),{defaultValue:d,format:u,ranges:h,sets:p}=lG[r],v=[],y=r=="clock"?":":"/";for(let b=0;b<s.length;b++)s[b]=String(s[b]).replace(/\D/ig,y);for(let b=0;b<p;b++){let C=s[b]||"";if(!C.match(u))s[b]="",v.push(d);else{let w=d;C.split(/\D/).forEach((T,L)=>{if(L==0&&r=="dateWareki"){let A=Number(T);l!="year"&&(A>=2019?l=="reiwa"?A-=2018:l=="heisei"&&(A=31):A>=1989?l=="heisei"?A-=1988:l=="shouwa"&&(A=64):A>=1926?l=="shouwa"?A-=1925:l=="taisho"&&(A=15):A>=1912?l=="taisho"?A-=1911:l=="meiji"&&(A=45):A>=1868&&(A-=1867)),T=A.zeroEmbed(4)}w=w.replace(new RegExp("------------------".slice(0,T.length)),T)}),v.push(w)}}return{formatValue:v.join(yd),dataValue:["dates","months"].includes(r)?s:s[0],ranges:h}},DefaultValidation:a=>{let{states:r}=a,{restrict:o,min:l,max:s,required:d}=r,u=[],h=wo.default.flatArray(a.value),p={empty:!1,escalated:1,filled:!0,correct:!0,prohibited:!1};(()=>{let v=o=="clock"?":":"/";for(let y=0;y<h.length;y++)h[y]=String(h[y]).replace(/\D/ig,v);for(let y=0;y<h.length;y++){let b=h[y],C=h[y-1];b.removeLetters()||(p.empty=!0),y>0&&(p.escalated&=+(b>=C))}p.escalated&&(p.empty||(o.match(/clock/)?h.forEach(y=>{let[b,C]=y.split(/\D+/);!b||!C?p.filled=!1:(Number(b)>23||Number(C)>59)&&(p.correct=!1)}):o.match(/date/)?h.forEach(y=>{let[b,C,w]=y.split(/\D+/);if(!b||!C||!w)p.filled=!1;else{let T=wo.default.Time(y);(!T.validate||y!=T.toFormatYMD())&&(p.correct=!1)}}):o.match(/week/)?h.forEach(y=>{let[b,C]=y.split(/\D+/);if(!b||!C)p.filled=!1;else{let w=wo.default.Time(b+"/01/01").weekday,T=wo.default.Time(b+"/01/0"+(7-w+1)).addWeek(Number(C)-1);b!=String(T.year)&&(p.correct=!1)}}):o.match(/month/)?h.forEach(y=>{let[b,C]=y.split(/\D+/);!b||!C?p.filled=!1:wo.default.Time([b,C,"01"].join("/")).validate||(p.correct=!1)}):o.match(/year/),p.filled&&p.correct&&h.forEach(y=>{{let b=Number(String(y).replace(/\D/ig,""));if(l&&Number(String(l).replace(/\D/ig,""))>b&&(p.prohibited=!0),s){let C=Number(String(s).replace(/\D/ig,""));b>C&&(p.prohibited=!0)}}})))})();{let{empty:v,escalated:y,filled:b,correct:C,prohibited:w}=p;v&&d&&(u=[{type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}]),y||u.push({type:"invalid",label:"\u6642\u7CFB\u5217\u3092\u6B63\u3057\u304F\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),C||u.push({type:"invalid",label:"\u7121\u52B9\u306A\u5024\u304C\u5165\u529B\u3055\u308C\u3066\u3044\u307E\u3059"}),b||u.push({type:"invalid",label:"\u6700\u5F8C\u307E\u3067\u5024\u3092\u57CB\u3081\u3066\u304F\u3060\u3055\u3044"}),w&&u.push({type:"invalid",label:(0,ar.jsxs)(ar.Fragment,{children:[(0,ar.jsx)(E,{children:"\u5165\u529B\u7BC4\u56F2\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u307E\u3059"}),"[",l||"\u4E0B\u9650\u7121\u3057","] ~ [",s||"\u4E0A\u9650\u7121\u3057","]"]})})}return{ok:!u.filter(({type:v})=>v=="invalid").length,notice:u}},KeyDownEvent:a=>{let{val_era:r,restrict:o,event:l,val_status:s,set_status:d,val_focus:u,set_focus:h}=a,{key:p,shiftKey:v,ctrlKey:y,metaKey:b}=l,C=y||b,{selectionStart:w,selectionEnd:T}=l.target,{index:L,prevIndex:A}=u,{ranges:$,formatValue:F}=s,j=$.length-1;if(["Tab","ArrowLeft","ArrowRight"].includes(p)){let U=0;if(p=="Tab"){let K=+!v*2-1;if(U=u.index+K,U<0||U>j)return}else{let K=p=="ArrowLeft"?-1:p=="ArrowRight"?1:0;C||w==0&&T==String(s.formatValue).length?U=K==1?j:0:U=Math.max(0,Math.min(L+K,j))}h(K=>D(_({},K),{index:U,prevIndex:L})),l.preventDefault()}if(["Backspace","ArrowUp","ArrowDown","0","1","2","3","4","5","6","7","8","9"].includes(p)){l.preventDefault();let U=L;U=Math.max(U,0),U=Math.min(U,j);let{type:K,from:M,length:oe}=$[U],ke=F.slice(M,M+oe),J;if(p=="Backspace")J="------".slice(0,oe);else if(["ArrowUp","ArrowDown"].includes(p)){let pe=p=="ArrowUp"?1:-1;ke=ke|0,J=ke+pe;let[he,ce,P]=K=="dateWareki"?r=="year"?[0,2999,4]:r=="reiwa"?[1,2999,4]:r=="heisei"?[1,31,4]:r=="shouwa"?[1,64,4]:r=="taisho"?[1,15,4]:r=="meiji"?[1,45,4]:[0,0,0]:K=="minute"?[0,59,2]:K=="hour"?[0,23,2]:K=="date"?[1,31,2]:K=="week"?[1,53,2]:K=="month"?[1,12,2]:K=="year"?[0,2999,4]:[0,0,0];J>ce?J=he:J<he&&(J=ce),J=Number(J).zeroEmbed(P)}else if(["0","1","2","3","4","5","6","7","8","9"].includes(p)){let pe=ke|0,he=p,ce=`${pe}${he}`;if(A!=L&&(pe=0,ce="0"+he),K=="year"||K=="dateWareki"&&r=="year")Number(ce)>1e4?J=he:J=ce,(J|0)>1e3&&U++;else if(["hour","minute","date","week","month"].includes(K)||K=="dateWareki"&&r!="year"){let P=K=="dateWareki"?r=="reiwa"?100:r=="heisei"?31:r=="shouwa"?64:r=="taisho"?15:r=="meiji"?45:0:K=="minute"?59:K=="hour"?23:K=="date"?31:K=="week"?53:K=="month"?12:0;J=(ce|0)>P?he:ce,(Number(he)>Number(String(P)[0])||ke=="0000".slice(0,String(P).length)&&(ce!="0000".slice(0,String(P).length)||["minute","hour"].includes(K)&&A==L)||(ce|0)>=v5(10,String(P).length-1))&&U++}K=="year"||K=="dateWareki"?J=(J|0).zeroEmbed(4):J=(J|0).zeroEmbed(2)}{let pe=String(F).partReplace(M,String(J)),he=pe.split(yd).map(ce=>ce.replace(/(^\D|\D$)/,"").split(/\D+/).join(o=="clock"?":":"/").replace(/(^\D|\D$)/,""));if(o=="dateWareki"){let ce=he[0].split(/\D/),[P,ee,me]=ce;ce.length==3&&P&&(he=[[Number(P)-1+Number({year:1,reiwa:2019,heisei:1989,shouwa:1926,taisho:1912,meiji:1868}[r]),ee,me].join("/")])}U=Math.max(U,0),U=Math.min(U,j),d(ce=>D(_({},ce),{dataValue:["dates","months"].includes(o)?he:he[0],formatValue:pe,eventType:"update",eventID:wo.default.uuid.gen()})),h(ce=>D(_({},ce),{index:U,prevIndex:ce.index}))}}}},hO={picker:{launch:a=>{let r=a.tipsID||wo.default.uuid.gen(),o=a,{onValueUpdate:l,min:s,max:d,era:u,restrict:h,defaultValue:p}=o,v=Ze(o,["onValueUpdate","min","max","era","restrict","defaultValue"]);Ba.open(D(_({gravityPoint:a.gravityPoint||24,tipsID:r,padding:0},v),{parent:v.parent,close_option:_({aroundClick:!0,parentBlur:!1},v.close_option),content:(0,ar.jsx)(dO,{restrict:h,min:s,max:d,era:u,defaultValue:p,tipsID:r,onValueUpdate:(y,b)=>{l(y,b)}})}))},remove:a=>{Ba.close(a)}}},sG={Shallow:a=>{let{rootStates:r,val_status:o}=a,l=Os(r);return(0,ar.jsx)(E,{position:"absolute",top:0,left:0,right:0,height:0,overflow:"hidden",opacity:"trans",freeCSS:{zIndex:3,pointerEvents:"none"},children:(0,ar.jsx)(Je.Description,D(_({className:r.className},l),{position:"absolute",width:1,freeCSS:D(_({},l.freeCSS),{color:"orange"}),children:(0,ar.jsx)(E,{"data-input-value-shallow":o.componentID,children:"A"})}))})}},uG=a=>{let r=a,{tone:o,required:l,restrict:s="clock",componentID:d,era:u,form:h,name:p,min:v,max:y,className:b,enableFormSubmit:C,checkValidationAtFirst:w,onKeyDown:T,onValidate:L,onUpdateValue:A,onUpdateValidValue:$,value:F="",leftIndicator:j,rightIndicator:U,leftIcon:K,rightIcon:M,freeCSS:oe,wrapStyles:ke}=r,J=Ze(r,["tone","required","restrict","componentID","era","form","name","min","max","className","enableFormSubmit","checkValidationAtFirst","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","leftIndicator","rightIndicator","leftIcon","rightIcon","freeCSS","wrapStyles"]),[pe,he]=(0,Oo.useState)(u),[ce,P]=(0,Oo.useState)(D(_({componentID:a.componentID||""},bd.DataLeveling({restrict:s,value:F,era:pe})),{eventType:"init",eventID:wo.default.uuid.gen()})),[ee,me]=(0,Oo.useState)({ok:!1,notice:[]}),[z,ne]=(0,Oo.useState)({active:!1,index:0,prevIndex:-1}),ve={rootStates:a,val_status:ce,set_status:P,val_validate:ee,set_validate:me,val_era:pe,set_era:he,val_focus:z,set_focus:ne};va.CommonEffects({type:"time",states:a,val_status:ce,set_status:P,val_validate:ee,set_validate:me,onUpdateValue:A,onUpdateValidValue:$,DefaultValidation:bd.DefaultValidation,ExtraOverrideStates:_({},bd.DataLeveling({restrict:s,value:F,era:pe}))});let be=(0,Oo.useRef)(!1);return(0,Oo.useEffect)(()=>{if(be.current){P(Re=>_(_({},Re),bd.DataLeveling({restrict:s,value:Re.dataValue,era:pe})));let de=Ve.get("refreshEra_"+ce.componentID);de&&de.refreshEra(pe)}else be.current=!0},[pe]),Ve.update({[ce.componentID]:{openPicker:()=>{a.disabled||hO.picker.launch({parent:"#Picker-"+ce.componentID,tipsID:"PickerTips-"+ce.componentID,restrict:s,min:v,max:y,defaultValue:ce.dataValue,era:pe,onValueUpdate:(de,Re)=>{P(Pe=>D(_(_({},Pe),bd.DataLeveling({restrict:s,value:de,era:Re})),{eventType:"update",eventID:wo.default.uuid.gen()})),he(Re)}})},resetEra:de=>{he(de),P(Re=>D(_(_({},Re),bd.DataLeveling({restrict:s,value:"",era:pe})),{eventType:"update",eventID:wo.default.uuid.gen()}))}}}),(0,Oo.useEffect)(()=>{let{index:de,active:Re}=z;if(Re){de=Math.max(de,0),de=Math.min(de,ce.ranges.length-1);let{from:Pe,length:Oe}=ce.ranges[de],rt=xt("#"+a.id)[0];rt&&rt.setSelectionRange(Pe,Pe+Oe)}},[z]),(0,ar.jsxs)(Jr,{val_status:ce,set_status:P,val_validate:ee,states:a,children:[(0,ar.jsx)(sG.Shallow,_({},ve)),(0,ar.jsx)(bc,{componentID:a.componentID,fontSize:a.fontSize,required:a.required,label:a.label,isActive:!0}),(0,ar.jsx)(Bs,{name:p,"data-disabled":a.disabled,"data-input-type":"time","data-form":h,"data-validation":ee.ok,componentID:ce.componentID,"data-value":JSON.stringify(["dates","months"].includes(s)?!ce.dataValue[0]||!ce.dataValue[1]?null:ce.dataValue:ce.dataValue||null)}),lt.get().isTouchDevice?(0,ar.jsx)(re.Button.Plain,{"data-show-validation":va.isShowValidation(ee,ce,!!w),"data-component-id":ce.componentID,className:b,freeCSS:{textAlign:"left"},children:ce.formatValue,onClick:de=>{let Re=Ve.get(ce.componentID);Re&&Re.openPicker(),de.stopPropagation()}}):(0,ar.jsx)(E,_({htmlTag:"input",type:"text",inputMode:"numeric","data-show-validation":va.isShowValidation(ee,ce,!!w),"data-input-origin":ce.componentID,"data-disabled":a.disabled,"data-input-type":"time","data-form-name":h,value:ce.formatValue,className:b,tabIndex:lt.get().isTouchDevice?-1:0,onKeyDown:de=>{bd.KeyDownEvent({restrict:s,event:de,val_era:pe,val_status:ce,set_status:P,val_focus:z,set_focus:ne}),T&&T(de),C&&va.SubmitForm(de)},onKeyUp:de=>{de.key=="Tab"&&ne(Re=>D(_({},Re),{active:!0}))},onClick:de=>{let Re=de.target.selectionEnd,Pe=0;ce.ranges.forEach((Oe,rt)=>{let{from:ze,length:pt,region:Kt}=Oe;ze<=Re&&Re<=ze+(Kt||pt)&&(Pe=rt)}),ne(Oe=>D(_({},Oe),{active:!0,index:Pe})),de.preventDefault()},onChange:()=>{}},J))]})},Is={Origin:a=>{a=_({},a),a.rightIcon&&(a=_({paddingRight:3},a)),a.leftIcon&&(a=_({paddingLeft:3},a));let[r]=(0,Oo.useState)(a.componentID||wo.default.uuid.gen());if(a.componentID=r,wo.default.is.nullish(a.rightIcon)){let o=(a.restrict||"").match(/clock/)?fO.faClock:pO.faCalendarAlt;a.rightIcon=(0,ar.jsx)(pn,{padding:0,freeCSS:{pointerEvents:"all"},children:(0,ar.jsx)(re.Button.Sub.R,{color:"cloud",border:"unset",ssSphere:2,fontColor:"theme",boxShadow:"0.normal",borderRadius:"3.tone.tertiary",flexCenter:!0,ssEffectsOnActive:"push",tabIndex:-1,id:"Picker-"+a.componentID,onClick:()=>{let l=Ve.get(a.componentID);l&&l.openPicker()},children:(0,ar.jsx)(Ce,{icon:o})})})}return(0,ar.jsx)(Hr,{componentID:a.componentID,children:uG,states:No(a)})},Clock:a=>(0,ar.jsx)(Is.Origin,_({restrict:"clock",era:"clock"},a)),Date:a=>(0,ar.jsx)(Is.Origin,_({restrict:"date"},a)),Week:a=>(0,ar.jsx)(Is.Origin,_({restrict:"week"},a)),Month:a=>(0,ar.jsx)(Is.Origin,_({restrict:"month"},a)),Year:a=>(0,ar.jsx)(Is.Origin,_({restrict:"year"},a)),DateWareki:a=>{a=_({},a);let[r]=(0,Oo.useState)(a.componentID||wo.default.uuid.gen());a.componentID=r;let{defaultEra:o="wareki"}=a,[l,s]=(0,Oo.useState)((()=>{let d="year";if(o=="wareki"&&(d="reiwa",a.value)){let[u,h,p]=a.value.split(/\D/);if(u&&h&&p){let v=Number(u);v>=2019?(v-=2019,d="reiwa"):v>=1989?(v-=1989,d="heisei"):v>=1926?(v-=1926,d="shouwa"):v>=1912?(v-=1912,d="taisho"):v>=1868&&(v-=1868,d="meiji"),v+=1}}return d})());return(0,Oo.useEffect)(()=>{Ve.set({["refreshEra_"+r]:{refreshEra:d=>{s(d)}}})},[]),(0,ar.jsx)(Is.Origin,D(_({restrict:"dateWareki",leftIndicator:(0,ar.jsx)(os,{label:"\u5143\u53F7",emptySelect:!1,value:l,tone:a.tone||"border",override:"force",flexCenter:!0,borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3",height:1,freeCSS:{whiteSpace:"nowrap"},options:[{value:"year",label:"\u897F\u66A6"},{value:"reiwa",label:"\u4EE4\u548C"},{value:"heisei",label:"\u5E73\u6210"},{value:"shouwa",label:"\u662D\u548C"},{value:"taisho",label:"\u5927\u6B63"},{value:"meiji",label:"\u660E\u6CBB"}],onUpdateValidValue:({value:d,eventType:u})=>{s(d);let h=Ve.get(a.componentID);h&&h.resetEra&&h.resetEra(d)}})},a),{era:l}))},Periods:{Date:a=>(0,ar.jsx)(Is.Origin,_({restrict:"dates"},a)),Month:a=>(0,ar.jsx)(Is.Origin,_({restrict:"months"},a))},fn:hO};var la=Z(Mt()),Lr=Z(ha()),za=Z(ma());var Cd=Z(Mt());var Sd=Z(Mt()),mO=Z(ma());var wd=Z(ha());var Jf=a=>{let r=a,{color:o="theme",size:l="R",showInitial:s=!1,loaderID:d=""}=r,u=Ze(r,["color","size","showInitial","loaderID"]),[h]=(0,wd.useState)(d),[p]=(0,wd.useState)(mO.default.uuid.gen()),[v,y]=(0,wd.useState)(s),b=0;l=="S"?b=1:l=="R"?b=1.5:l=="L"?b=3:l=="XL"?b=4:l=="MAX"&&(b=6);let C={theme:"hsl( var( --color-theme-hsl ) )",posi:"var( --color-positive )",nega:"var( --color-negative )",warn:"var( --color-warning )",cloud:"hsl( var( --color-layer5-hsl ) )",white:"white"}[o];return(0,wd.useEffect)(()=>{let w=xt('[data-component-id="'+p+'"]');v?w.removeClass(kr("Hide")).await(10).addClass(kr("Active")):w.removeClass(kr("Active")).await(210).addClass(kr("Hide"))},[v]),(0,wd.useEffect)(()=>{Ve.set({[p]:{active:w=>{h==w&&y(!0)},stop:w=>{h==w&&y(!1)},stopForce:()=>{y(!1)}}})},[]),(0,Sd.jsxs)(Xe.Center,D(_({className:[kr("MiniLoader"),kr(s?"Active":"Hide")].join(" "),componentID:p,ssSphere:b,position:"relative"},u),{children:[(0,Sd.jsx)("svg",{className:kr("SVG1"),width:"100",height:"100",viewBox:"0 0 100 100",style:{stroke:C},children:(0,Sd.jsx)("circle",{cx:"50",cy:"50",r:"40"})}),(0,Sd.jsx)("svg",{className:kr("SVG2"),width:"100",height:"100",viewBox:"0 0 100 100",style:{stroke:C},children:(0,Sd.jsx)("circle",{cx:"50",cy:"50",r:"40"})})]}))};var Nl=Z(Mt());var I_=Z(ha());var vO=()=>{let[a,r]=(0,I_.useState)(!1);return(0,I_.useEffect)(()=>{Ve.set({["Loader-corner-"+lt.get().sessionUID+"-corner"]:{active:()=>{r(!0)},stop:()=>{r(!1)}}})},[]),(0,Nl.jsxs)(vt,{className:[kr("CornerLoader"),a?kr("isActive"):""].join(" "),gap:"1/2",padding:["1/2","3/4"],borderRadius:"2/3",backgroundColor:"dark",position:"fixed",boxShadow:"1.remark",left:"50%",top:1,opacity:"trans",transition:"short",isRounded:!0,freeCSS:{zIndex:10,pointerEvents:"none",transform:"translateX(-50%)"},children:[(0,Nl.jsxs)(vt,{className:kr("Wrap"),flexWrap:!1,verticalAlign:"center",horizontalAlign:"center",children:[(0,Nl.jsx)(E,{className:kr("Ld4")}),(0,Nl.jsx)(E,{className:kr("Ld3")}),(0,Nl.jsx)(E,{className:kr("Ld2")}),(0,Nl.jsx)(E,{className:kr("Ld1")}),(0,Nl.jsx)(E,{className:kr("Ld2")}),(0,Nl.jsx)(E,{className:kr("Ld3")}),(0,Nl.jsx)(E,{className:kr("Ld4")})]}),(0,Nl.jsx)(E,{fontColor:"white",fontSize:"0.xs",isSemiBoldFont:!0,children:"Loading..."})]})};var Qf=a=>{let r=a.color;return{S:o=>(0,Cd.jsx)(Jf,_({size:"S",color:r},o)),R:o=>(0,Cd.jsx)(Jf,_({size:"R",color:r},o)),L:o=>(0,Cd.jsx)(Jf,_({size:"L",color:r},o)),XL:o=>(0,Cd.jsx)(Jf,_({size:"XL",color:r},o)),MAX:o=>(0,Cd.jsx)(Jf,_({size:"MAX",color:r},o))}},Qr={Wrapper:()=>(0,Cd.jsx)(vO,{}),Theme:Qf({color:"theme"}),Posi:Qf({color:"posi"}),Nega:Qf({color:"nega"}),Warn:Qf({color:"warn"}),White:Qf({color:"white"}),Cloud:Qf({color:"cloud"}),fn:{corner:{active:()=>{let a=Ve.get("Loader-corner-"+lt.get().sessionUID+"-corner");a&&a.active()},stop:()=>{let a=Ve.get("Loader-corner-"+lt.get().sessionUID+"-corner");a&&a.stop()}},mini:{active:(a="")=>{xt("."+kr("MiniLoader")).for(r=>{let{dataset:{componentId:o}={}}=r;if(!o)return;let l=Ve.get(o);l&&l.active&&l.active(a)})},stop:(a="")=>{xt("."+kr("MiniLoader")).for(r=>{let{dataset:{componentId:o}={}}=r;if(!o)return;let l=Ve.get(o);l&&l.stop&&l.stop(a)})},stopALL:()=>{xt("."+kr("MiniLoader")).for(a=>{let{dataset:{componentId:r}={}}=a;if(!r)return;let o=Ve.get(r);o&&o.stopForce&&o.stopForce()})}},stopALL:()=>{Qr.fn.corner.stop(),Qr.fn.mini.stopALL()}}};function cG(a){let{value:r,states:o}=a,{required:l,options:s,min:d,max:u}=o;d=d||0,u=u||65535;let h=[],p=r.filter(v=>v!=="null").length;return l&&(p||h.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"})),p<d&&h.push({type:"invalid",label:d+"\u500B\u4EE5\u4E0A\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"}),p>u&&h.push({type:"invalid",label:u+"\u500B\u307E\u3067\u9078\u629E\u3067\u304D\u307E\u3059"}),{ok:!h.filter(({type:v})=>v=="invalid").length,notice:h}}var Zf={InitOptions:a=>{let r=[];return a.forEach(o=>{let{type:l,label:s,value:d,searchValue:u}=o,h=u||(za.default.is.string(s)?s:"")||(za.default.is.string(d)?d:"");r.push(D(_({},o),{searchValue:h,type:l||"selector",value:za.default.JsonTo(d)}))}),r},FilterSelectableOptions:(a,r)=>{let o=a.val_options;if(r||(o=a.val_options.filter(l=>l.type!="label")),a.val_keyword){let l=a.val_keyword.toLower().replace(/ /g,"");o=o.filter(s=>(s.searchValue||"").toLower().replace(/ /g,"").includes(l))}return o}},ep={Shallow:a=>{let{rootStates:r,val_status:o}=a,l=Os(r);return(0,la.jsx)(E,{position:"absolute",top:0,left:0,right:0,height:0,overflow:"hidden",opacity:"trans",freeCSS:{zIndex:3,pointerEvents:"none"},children:(0,la.jsx)(Je.Description,D(_({className:r.className},l),{position:"absolute",width:1,freeCSS:D(_({},l.freeCSS),{color:"orange"}),"data-id":"shallow_"+o.componentID,children:(0,la.jsx)(E,{"data-input-value-shallow":o.componentID,children:"A"})}))})},Button:a=>{let{rootStates:r,val_keyword:o,set_keyword:l,val_optionFocused:s,set_optionFocused:d,val_options:u,set_options:h,val_optionsDict:p,set_optionsDict:v,val_preventOpenSelectorOnFocus:y,set_preventOpenSelectorOnFocus:b,val_selectorOpen:C,set_selectorOpen:w,val_status:T,set_status:L,val_validate:A,set_validate:$}=a,F=r,{tone:j,required:U,form:K,className:M,multiSelect:oe,enableFormSubmit:ke,checkValidationAtFirst:J,onValidate:pe,onUpdateValue:he,onUpdateValidValue:ce,value:P="",options:ee,leftIndicator:me,rightIndicator:z,leftIcon:ne,rightIcon:ve,componentID:be,status_id:de,wrapStyles:Re,emptySelect:Pe,SearchInput:Oe,SearchInputPlaceholder:rt,SelectedComponent:ze,SelectorComponent:pt,SelectorGravityPoint:Kt,DynamicOptionsOnSearch:Et}=F,bt=Ze(F,["tone","required","form","className","multiSelect","enableFormSubmit","checkValidationAtFirst","onValidate","onUpdateValue","onUpdateValidValue","value","options","leftIndicator","rightIndicator","leftIcon","rightIcon","componentID","status_id","wrapStyles","emptySelect","SearchInput","SearchInputPlaceholder","SelectedComponent","SelectorComponent","SelectorGravityPoint","DynamicOptionsOnSearch"]);(0,Lr.useEffect)(()=>{var nt;if(r.disabled||!C)return;let Le=Zf.FilterSelectableOptions(a);d(((nt=Le[0])==null?void 0:nt.value)||null)},[o]),(0,Lr.useEffect)(()=>{T.eventType!="init"&&(r.max==T.dataValue.length?(w(!1),b(!0),setTimeout(()=>{let nt=(0,za.default)('[data-input-origin="'+r.componentID+'"]');nt&&nt.focus()},10)):(0,za.default)("#SearchInput_"+r.componentID).focus())},[T.dataValue]);let It="autocomplete-sheet-"+r.componentID;return(0,Lr.useEffect)(()=>{let nt="autocomplete-click-"+r.componentID;if(C){let Le=(0,za.default)('[data-input-origin="'+r.componentID+'"]');if(!Le)return;(0,za.default)("#SearchInput_"+r.componentID).focus(),Ot.open({sheetID:It,type:"custom",parent:Le[0],padding:["1/4",0],gravityPoint:r.SelectorGravityPoint||22,close_option:{aroundClick:!1},content:(0,la.jsx)(ep.Selector,_({},a))}),(0,za.default)(document).addEvent({eventID:nt,eventType:"click",callback:wt=>{let zt=(0,za.default)(wt.target),Yt=!!(0,za.default)(zt).parent("."+ts("Core")).length;(0,za.default)(zt).parent("."+ts("Selector")).length||Yt||w(!1)}})}else(0,za.default)(document).removeEvent([nt]),l(""),Ot.close(It)},[C]),(0,Lr.useEffect)(()=>{if(r.disabled||!C)return;Ot.customSheet.reposition(It);let nt=Ve.get("refresh-autocomplete-selector-"+r.componentID);nt&&nt(a)},[u,T.dataValue,o,s]),(0,la.jsx)(la.Fragment,{children:(0,la.jsx)(E,D(_({tabIndex:0},bt),{"data-disabled":r.disabled,"data-name":r.name,"data-value":za.default.JsonTo(T.dataValue),"data-form":K,"data-show-validation":va.isShowValidation(A,T,!!J),"data-validation":A.ok,"data-component-id":T.componentID,"data-input-origin":T.componentID,"data-focus":!!C,"data-input-type":"autocomplete-"+(oe?"multi":"single"),className:[M,ts("Core")].join(" "),onFocus:nt=>{if(bt!=null&&bt.onFocus&&(bt==null||bt.onFocus(nt)),!r.disabled){if(y)return b(!1);w(!0),nt.preventDefault()}},onClick:nt=>{bt!=null&&bt.onClick&&(bt==null||bt.onClick(nt)),!r.disabled&&w(!0)},onKeyDown:nt=>{let{key:Le}=nt;ke&&va.SubmitForm(nt),!C&&(Le==" "||Le=="ArrowDown"||Le=="ArrowUp"||Le=="Enter")&&w(!0)},children:(0,la.jsxs)(Xe.Left,{flexWrap:!0,gap:"1/3",freeCSS:{letterSpacing:".5px"},children:[(0,la.jsx)(ep.Selected,_({},a)),(0,la.jsx)(yn,{width:0,overflow:"hidden",opacity:"trans",children:"A"}),(0,la.jsx)(ep.SearchInput,_({},a))]})}))})},SearchInput:a=>{let{rootStates:r}=a;return r.disabled||!a.val_selectorOpen?null:(0,la.jsx)(E,{id:"SearchInput_"+r.componentID,placeholder:r.SearchInputPlaceholder||"\u691C\u7D22...",opacity:a.val_selectorOpen?"max":"trans","data-form":r.form,transition:"middle",flexSizing:0,htmlTag:"input",border:"unset",backgroundColor:"trans",value:a.val_keyword,freeCSS:{outline:"none"},onKeyDown:o=>{let{key:l,metaKey:s,ctrlKey:d}=o,u=s||d;l=="Escape"?(a.set_selectorOpen(!1),a.set_preventOpenSelectorOnFocus(!0),setTimeout(()=>{let h=(0,za.default)('[data-input-origin="'+r.componentID+'"]');h&&h.focus()},10)):l=="Tab"?a.set_selectorOpen(!1):l==" "?za.default.scope(()=>{a.val_selectorOpen||a.val_keyword||(o.preventDefault(),a.set_selectorOpen(!0))}):l=="Backspace"?za.default.scope(()=>{if(a.val_keyword)return;let h=[...a.val_status.dataValue];h.pop(),a.set_status(p=>D(_({},p),{dataValue:h,eventType:"update",eventID:za.default.uuid.gen()}))}):l=="Enter"&&za.default.scope(()=>{if(!a.val_selectorOpen)return a.set_selectorOpen(!0);if(!a.val_optionFocused)return;let h=a.val_options.find(v=>v.value==a.val_optionFocused);if(!h)return;let{value:p}=h;a.set_status(v=>{let y=[...v.dataValue];return za.default.scope(()=>{if(p==="null")return y=[];v.dataValue.includes(p)?y=y.filter(b=>b!==p):r.multiSelect?y.push(p):y=[p]}),D(_({},v),{dataValue:y,eventType:"update",eventID:za.default.uuid.gen()})}),a.set_keyword("")}),za.default.scope(()=>{if(!["ArrowDown","ArrowUp"].includes(l))return;if(o.preventDefault(),!a.val_selectorOpen)return a.set_selectorOpen(!0);let h=l=="ArrowDown"?1:-1,p=Zf.FilterSelectableOptions(a),v=p.length-1,y=null;za.default.scope(()=>{var b,C,w,T;if(h==1){if(y=((b=p[0])==null?void 0:b.value)||null,a.val_optionFocused==null)return;if(u){y=p[v].value||y||null;return}let L=p.findIndex(A=>A.value==a.val_optionFocused);if(L==-1)return;y=((C=p[L+1])==null?void 0:C.value)||y||null}else{if(y=p[v].value||null,a.val_optionFocused==null)return;if(u){y=((w=p[0])==null?void 0:w.value)||y||null;return}let L=p.findIndex(A=>A.value==a.val_optionFocused);if(L==-1)return;y=((T=p[L-1])==null?void 0:T.value)||y||null}}),a.set_optionFocused(y)}),r.enableFormSubmit&&va.SubmitForm(o)},onChange:o=>{let l=o.target.value;a.set_keyword(l)}},"searchInput")},Selector:a=>{let[r,o]=(0,Lr.useState)(a),{rootStates:l}=r,[s,d]=(0,Lr.useState)("idle"),[u,h]=(0,Lr.useState)("idle");(0,Lr.useEffect)(()=>{Ve.set({["refresh-autocomplete-selector-"+l.componentID]:b=>{o(b)}})},[]),(0,Lr.useEffect)(()=>{if(!r.val_selectorOpen||!l.DynamicOptionsOnSearch)return;if(s=="idle")return d("ok");h("fetch");let b="autocomplete-search-"+l.componentID;za.default.interval.clear(b),za.default.interval.standBy(b,300,()=>ir(void 0,null,function*(){let C=yield l.DynamicOptionsOnSearch(r.val_keyword);h("idle");let w=Zf.InitOptions(C||[]);r.set_options(w)}))},[r.val_keyword]);let p=[],v=Zf.FilterSelectableOptions(r,!0),y=Zf.FilterSelectableOptions(r);return v.forEach((b,C)=>{let{type:w,value:T}=b,L=r.val_optionFocused==T,A=r.val_status.dataValue.includes(T),$=l.SelectorComponent;p.push((0,la.jsx)($,{option:b,isFocused:L,isSelected:A,addCallback:()=>{r.set_status(F=>{let j=[...F.dataValue];return za.default.scope(()=>{if(T==="null")return j=[];F.dataValue.includes(T)?j=j.filter(U=>U!==T):l.multiSelect?j.push(T):j=[T]}),D(_({},F),{dataValue:j,eventType:"update",eventID:za.default.uuid.gen()})})}},String(T)||za.default.uuid.gen()))}),y.length||(p=[(0,la.jsx)(Je.Supplement,{padding:[0,1],fontColor:"4.thin",children:"\u5019\u88DC\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093"},"no-selector-notice")]),u=="fetch"&&(p=[(0,la.jsxs)(Xe.Left,{padding:1,fontColor:"3.blur",children:[(0,la.jsx)(Qr.Theme.R,{showInitial:!0}),(0,la.jsx)(Je.Supplement,{children:"Loading..."})]},"loader")]),(0,la.jsx)(Ot.Body,{className:ts("Selector"),ssCardBox:!0,borderRadius:"3.tone.tertiary",boxShadow:"1.normal",freeCSS:{minWidth:12*18},children:(0,la.jsx)(ft,{gap:0,padding:[1,0],children:p})})},Selected:a=>{let{rootStates:r,val_status:o,set_status:l,val_optionsDict:s}=a,d=[];return o.dataValue.forEach(u=>{let h=s[String(u)];if(!h)return;let p=r.SelectedComponent,v=h.label;h.value==="null"&&(v=""),d.push((0,la.jsx)(E,{className:ts("SelectedCell"),children:(0,la.jsx)(p,{value:h.value,label:v,children:v,removeCallback:y=>{if(y.stopPropagation(),y.preventDefault(),r.disabled)return;let b=[...o.dataValue];b=b.filter(C=>C!==u),l(C=>D(_({},C),{dataValue:b,eventType:"update",eventID:za.default.uuid.gen()}))}})},String(h.value)))}),(0,la.jsx)(la.Fragment,{children:d})},Core:a=>{let{onUpdateValue:r,onUpdateValidValue:o,value:l}=a,s={componentID:a.componentID||"",dataValue:l,eventType:"init",eventID:za.default.uuid.gen()},[d,u]=(0,Lr.useState)(!1),[h,p]=(0,Lr.useState)(!1),[v,y]=(0,Lr.useState)(""),[b,C]=(0,Lr.useState)(a.options),[w,T]=(0,Lr.useState)(a.value[0]||null),[L,A]=(0,Lr.useState)({}),[$,F]=(0,Lr.useState)(s),[j,U]=(0,Lr.useState)({ok:!1,notice:[]}),K=(0,Lr.useRef)(!1);(0,Lr.useEffect)(()=>{K.current?C(a.options):K.current=!0},[a.options]),(0,Lr.useEffect)(()=>{if(!b.length)return;let ke=[...b],J=_({},L);ke.forEach(pe=>{pe.type!="label"&&(J[String(pe.value)]=pe)}),A(J)},[b]);let M={rootStates:a,val_options:b,set_options:C,val_optionFocused:w,set_optionFocused:T,val_optionsDict:L,set_optionsDict:A,val_preventOpenSelectorOnFocus:d,set_preventOpenSelectorOnFocus:u,val_selectorOpen:h,set_selectorOpen:p,val_keyword:v,set_keyword:y,val_status:$,set_status:F,val_validate:j,set_validate:U};va.CommonEffects({type:"autocomplete",states:a,val_status:$,set_status:F,val_validate:j,set_validate:U,onUpdateValue:r,onUpdateValidValue:o,DefaultValidation:cG,ExtraOverrideStates:{dataValue:l,formatValue:l}});let oe=$.dataValue.length&&$.dataValue[0]!=="null";return oe=oe||h,(0,la.jsxs)(Jr,{val_status:$,set_status:F,val_validate:j,states:a,children:[(0,la.jsx)(bc,{componentID:a.componentID,fontSize:a.fontSize,required:a.required,label:a.label,isActive:oe}),(0,la.jsx)(ep.Shallow,_({},M)),(0,la.jsx)(ep.Button,_({},M))]})}},P_=a=>{let r=_({},a);r=D(_({value:[],min:0,max:65535,multiSelect:!0,SearchInput:!0,emptySelect:!0,SelectorComponent:({option:l,isSelected:s,isFocused:d,addCallback:u})=>l.type=="selector"?(0,la.jsx)(re.Button.Sub.S,{color:"cloud",backgroundColor:"trans",borderRadius:0,fontColor:"2.normal",textAlign:"left",padding:["1/2",1.5],isActive:s||d,isActiveStyles:d?{backgroundColor:"cloud"}:{backgroundColor:"theme.opa.few",fontColor:"theme"},onClick:h=>{u()},children:(0,la.jsx)(Je.Supplement,{paddingLeft:s?"1/2":0,transition:"short",children:l.label})}):(0,la.jsx)(la.Fragment,{children:l.label}),SelectedComponent:({value:l,label:s,removeCallback:d})=>(0,la.jsxs)(Xe.Left,{ssCardBox:"cloud",backgroundColor:"layer.3",borderRadius:"2.tone.secondary",fontSize:"1.mini",padding:"1/2",gap:0,children:[(0,la.jsx)(E,{padding:[0,"1/4"],children:s}),(0,la.jsx)(re.Button.Sub.R,{color:"cloud",fontColor:"white",backgroundColor:"layer.6",isRounded:!0,padding:"1/4",onClick:d,children:(0,la.jsx)(Ce.Times,{ssSphere:1})})]},"test")},r),{freeCSS:_({cursor:"pointer"},r.freeCSS)}),r.multiSelect||(r.min=1,r.max=1),r.options=r.options||[],r.emptySelect&&(r.options=[{value:null,label:(0,la.jsx)(Je.Supplement,{fontColor:"4.thin",children:"\u9078\u629E\u3092\u89E3\u9664"})},...r.options]);let o=[];return r.value=za.default.flatArray(r.value||null),r.value.forEach((l,s)=>{o.push(za.default.JsonTo(l))}),r.value=o,r.options=Zf.InitOptions(r.options),za.default.is.nullish(r.rightIcon)&&(r.rightIcon=(0,la.jsx)(pn,{children:(0,la.jsx)(Ce.Search,{})}),r.disabled&&(r.rightIcon=(0,la.jsx)(pn,{fontColor:"5.translucent",children:(0,la.jsx)(Ce.Ban,{})}))),r.rightIcon&&(r=_({paddingRight:3},r)),r.leftIcon&&(r=_({paddingLeft:3},r)),(0,la.jsx)(Hr,{componentID:r.componentID,children:ep.Core,states:No(r)})};var xd=Z(Mt());var gO=a=>(0,xd.jsx)(P_,_({multiSelect:!1,SelectedComponent:({value:r,label:o})=>(0,xd.jsx)(xd.Fragment,{children:o}),rightIcon:(0,xd.jsx)(pn,{children:(0,xd.jsx)(Ce.AngleDown,{})})},a));var Ca=Z(Mt()),tp=Z(ha()),Tu=Z(ma());var Io=Z(Mt()),_O=Z(ha()),Sc=Z(ma());var xu=Z(ha());var Gn={add:function(a){let r=Ve.get("Snackbar-"+lt.get().sessionUID);return r&&r.add(a),this},remove:function(a){let r=Ve.get("Snackbar-"+lt.get().sessionUID);return r&&r.remove(a),this},Wrapper:()=>(0,Io.jsx)(bO.Wrapper,{})},bO={Cell:a=>{let r=a,{snackID:o,secondsToClose:l,componentID:s=Sc.default.uuid.gen(),children:d,customChildren:u}=r,h=Ze(r,["snackID","secondsToClose","componentID","children","customChildren"]),[p]=(0,xu.useState)(s),[v,y]=(0,xu.useState)(a.secondsToClose||10);(0,xu.useEffect)(()=>{let C=xt('[data-component-id="'+p+'"]');setTimeout(()=>{C.addClass(cm("FadeIn"))},10),Ve.set({["Snackbar-"+o]:{remove:()=>{C.addClass(cm("FadeOut"))}}})},[]),(0,xu.useEffect)(()=>{Sc.default.interval.clear("Snackbar-"+p),Sc.default.interval.standBy("Snackbar-"+p,1e3,()=>{v<=0||y(v-1)}),v===0&&Gn.remove(o)},[v]);let b=(0,Io.jsx)(Io.Fragment,{});return u?b=(0,Io.jsx)(u,{close:()=>{Gn.remove(o)}}):b=(0,Io.jsxs)(Xe.Separate,{verticalAlign:"top",children:[(0,Io.jsx)(E,{padding:["1/4",0],flexSizing:0,children:Sc.default.is.function(d)?(0,Io.jsx)(d,{}):d}),(0,Io.jsx)(re.Button.Clear.R,{color:"layer",backgroundColor:"layer.4.opa.low",fontColor:"white",ssSphere:2.5,onClick:()=>{Gn.remove(o)},children:(0,Io.jsx)(Ce.Times,{})})]}),(0,Io.jsx)(E,D(_({className:cm("Cell"),componentID:p,onMouseOver:()=>{y(-1)},onMouseOut:()=>{y(l||10)},opacity:"trans",width:1,padding:"2/3",marginBottom:1,borderRadius:"1.tone.primary",fontColor:"white",boxShadow:"1.remark",backgroundColor:"dark",transition:"middle"},h),{children:b}))},Wrapper:()=>{let[a,r]=(0,xu.useState)(Sc.default.uuid.gen()),[o,l]=(0,xu.useState)([]);(0,xu.useEffect)(()=>{Ve.set({["Snackbar-"+lt.get().sessionUID]:{add:d=>{d.snackID=d.snackID||Sc.default.uuid.gen();let u=o.findIndex(h=>h.snackID==d.snackID);if(u==-1)o.unshift(D(_({},d),{snackID:d.snackID}));else{let h=[...o];h[u]=D(_({},d),{snackID:d.snackID}),o=h}r(Sc.default.uuid.gen())},remove:d=>{let u=Ve.get("Snackbar-"+d);u&&u.remove&&(u.remove(),setTimeout(()=>{let h=o.findIndex(v=>v.snackID==d);if(h==-1)return;let p=[...o];p.splice(h,1),l(p)},210))}}})},[o.length]);let s=o.map(d=>(0,_O.createElement)(bO.Cell,D(_({},d),{key:d.snackID})));return(0,Io.jsx)(vt,{className:["AMOTIFY_be",cm("Wrapper")].join(" "),position:"fixed",right:0,bottom:0,paddingLeft:0,paddingRight:1,paddingBottom:"safeAreaBottom",verticalAlign:"bottom",overflow:"auto",UnderBreakPointStyles:{left:0,paddingLeft:1,width:"auto"},children:s})}};var EO=Z(kO());function dG(a){let{value:r,states:o}=a,{required:l}=o,s=[];return l&&!r.length&&s.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!s.filter(({type:d})=>d=="invalid").length,notice:s}}var RO={List:a=>{let{files:r,states:o,val_status:l,set_status:s}=a,d=(o.limit||1)-l.dataValue.length,u=r.map((h,p)=>(0,Ca.jsx)(RO.Cell,{index:p,file:h,className:o.cellClassName,val_status:l,set_status:s,fileNameEdit:o.fileNameEdit},h.name));return d>0&&u.push((0,Ca.jsx)("label",{className:[o.cellClassName,es("AddButton")].join(" "),"data-component-id":l.componentID,htmlFor:o.id,tabIndex:o.tabIndex,onKeyDown:h=>{let{key:p}=h;o.tabIndex!=-1&&[" ","Enter"].includes(p)&&xt("#"+o.id).click()},children:(0,Ca.jsxs)(Xe.Center,{padding:["1/3",0],children:[(0,Ca.jsx)(E,{isRounded:!0,className:es("AddIcon"),children:(0,Ca.jsx)(Ce,{icon:EO.faCloudArrowUp,className:es("Icon"),fontColor:"theme",fontSize:"4.thirdTitle",backgroundColor:"theme.opa.low",ssSphere:3,padding:"1/2"})}),(0,Ca.jsxs)(E,{children:[(0,Ca.jsxs)(E,{fontColor:"theme",fontSize:"2.normal",isSemiBoldFont:!0,children:["\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E(",d,")"]}),(0,Ca.jsx)(E,{fontColor:"4.thin",fontSize:"0.xs",isSemiBoldFont:!0,children:"\u30D5\u30A1\u30A4\u30EB\u3092\u30C9\u30ED\u30C3\u30D7"})]})]})},"AddButton")),(0,Ca.jsx)(ft,{flexSizing:"auto",className:o.className,children:u})},Cell:a=>{let{index:r,file:o,className:l,val_status:s,set_status:d,fileNameEdit:u=!0}=a,{name:h,size:p,type:v}=o,[y,b]=(0,tp.useState)(!1),C=Tu.default.uuid.gen(),w=p.rank(),[T,L]=h.replace(/\s/,"").replace(/(.*)\.(.*)$/,"$1 $2").split(" "),A="\u30D5\u30A1\u30A4\u30EB";return v.match(/image/)?A=v.replace(/image\//,""):v.match(/pdf/)?A="PDF":v.match(/csv/)?A="CSV":v.match(/spreadsheet/)?A="SpreadSheet":v.match(/presentation/)?A="PowerPoint":v.match(/word/)?A="Word":v.match(/zip/)?A="Zip":v.match(/powerpoint/)?A="PowerPoint":v.match(/html/)?A="HTML":v.match(/js/)?A="JavaScript":v.match(/css/)?A="CSS":v.match(/text\/plain/)&&(A="\u30C6\u30AD\u30B9\u30C8"),(0,tp.useEffect)(()=>{y&&setTimeout(()=>{xt("#"+C).focus()},100)},[y]),(0,Ca.jsxs)(vt,{verticalAlign:"center",flexWrap:!1,gap:1,className:l,children:[(0,Ca.jsx)(Ce.File,{fontSize:"4.thirdTitle",fontColor:"4.thin"}),(0,Ca.jsxs)(E,{flexSizing:0,children:[(0,Ca.jsx)(E,{children:(0,Ca.jsx)(vt,{verticalAlign:"center",gap:"2/3",flexWrap:!1,className:es("FileName"),children:y?(0,Ca.jsx)(Ca.Fragment,{children:(0,Ca.jsxs)(ft,{flexSizing:0,gap:"1/2",children:[(0,Ca.jsxs)(vt,{gap:"2/3",verticalAlign:"center",children:[(0,Ca.jsx)(Sn,{tone:"border",wrapStyles:{flexSizing:"auto"},restrict:"fileName",name:"name",required:!0,id:C,form:"form-"+C,enableFormSubmit:!0,value:T,onKeyDown:$=>{let{key:F}=$;F=="Escape"&&b(!1)}}),(0,Ca.jsxs)(E,{children:[". ",L]})]}),(0,Ca.jsxs)(vt,{gap:"2/3",horizontalAlign:"right",flexWrap:!1,children:[(0,Ca.jsx)(re.Button.Sub.R,{padding:["2/3",1],onClick:()=>{b(!1)},children:"\u9589\u3058\u308B"}),(0,Ca.jsx)(re.Button.Prime.R,{padding:["2/3",1],submitOption:{formName:"form-"+C,callback:$=>ir(void 0,null,function*(){let{name:F}=$,j=[...s.dataValue],U=j[r],K=U.id;if(!U)return;let{target:M}=yield U.convert();if(!M)return;let oe=yield String(M.result).toBlob(o.type);if(!oe)return;let ke=new File([oe],F+"."+L,{type:U.type});ke.id=K,j[r]=ke,d(J=>D(_({},J),{dataValue:j,eventType:"update",eventID:Tu.default.uuid.gen()})),b(!1)})},children:"\u6C7A\u5B9A"})]})]})}):(0,Ca.jsxs)(Ca.Fragment,{children:[h,!!u&&(0,Ca.jsx)(re.Button.Clear.R,{ssSphere:2.5,flexSizing:"none",fontColor:"4.thin",padding:"1/3",ssEffectsOnActive:"expand",color:"cloud",onClick:()=>{b(!0)},children:(0,Ca.jsx)(Ce.Pen,{})})]})})}),!y&&(0,Ca.jsxs)(E,{fontSize:"1.mini",fontColor:"4.thin",flexSizing:0,children:[A,"\u30D5\u30A1\u30A4\u30EB / ",w,"B"]})]}),(0,Ca.jsx)(re.Button.Sub.R,{color:"cloud",fontColor:"4.thin",ssSphere:3,onClick:()=>{let $=[...s.dataValue];$[r]&&($.splice(r,1),d(F=>D(_({},F),{dataValue:$,eventType:"update",eventID:Tu.default.uuid.gen()})))},children:(0,Ca.jsx)(Ce.Times,{})})]})}},fG=a=>{let r=a,{tone:o,required:l,form:s,fileNameEdit:d=!0,systemOnly:u=!1,accept:h="*",limit:p=1,checkValidationAtFirst:v,onChange:y,onValidate:b,onUpdateValue:C,onUpdateValidValue:w,value:T=[],className:L,cellStyles:A,cellClassName:$,componentID:F,status_id:j,enableFormSubmit:U,freeCSS:K,wrapStyles:M}=r,oe=Ze(r,["tone","required","form","fileNameEdit","systemOnly","accept","limit","checkValidationAtFirst","onChange","onValidate","onUpdateValue","onUpdateValidValue","value","className","cellStyles","cellClassName","componentID","status_id","enableFormSubmit","freeCSS","wrapStyles"]),ke={componentID:a.componentID||"",dataValue:T,eventType:"init",eventID:Tu.default.uuid.gen()},[J,pe]=(0,tp.useState)(ke),[he,ce]=(0,tp.useState)({ok:!1,notice:[]});va.CommonEffects({type:"file",states:a,val_status:J,set_status:pe,val_validate:he,set_validate:ce,onUpdateValue:C,onUpdateValidValue:w,DefaultValidation:dG,ExtraOverrideStates:{dataValue:T,formatValue:T},ExtraStoreStates:{AddFiles:ee=>ir(void 0,null,function*(){let me=Ve.get(J.componentID).Files,z=[];for(var ne=0;ne<(ee==null?void 0:ee.length);ne++){let ve=ee[ne],{type:be,name:de}=ve;if(ne+1+me.length>p){Gn.add({componentID:de,secondsToClose:12e3,children:`\u30D5\u30A1\u30A4\u30EB\u9078\u629E\u4E0A\u9650\u3092\u8D85\u3048\u305F\u305F\u3081\u3001${de}}\u306F\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3002`,backgroundColor:"nega"});continue}if(h&&h=="image"&&!be.match(/image/)){Gn.add({componentID:de,secondsToClose:12e3,children:`\u30D5\u30A1\u30A4\u30EB\u5F62\u5F0F\u304C\u7570\u306A\u308B\u305F\u3081\u3001${de} \u306F\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3002`,backgroundColor:"nega"});continue}z.push(ve)}pe(ve=>D(_({},ve),{dataValue:[...me,...z],eventType:"update",eventID:Tu.default.uuid.gen()}))})}});let P="";return h&&(h=="image"?P="image/png,image/jpeg":P=h),(0,Ca.jsxs)(Jr,{val_status:J,set_status:pe,val_validate:he,states:a,children:[(0,Ca.jsx)(E,D(_({htmlTag:"input",type:"file",className:es("Input"),"data-form":s,"data-input-type":"file","data-component-id":J.componentID,"data-validation":he.ok,accept:P,multiple:p!=1,onChange:ee=>ir(void 0,null,function*(){let me=ee.target,z=me.files,ne=[];for(var ve=0;ve<(z==null?void 0:z.length);ve++){let be=z[ve],de=be.name;if(be.id=Tu.default.uuid.gen(),ve+1+J.dataValue.length>p){Gn.add({componentID:de,secondsToClose:12e3,children:`\u30D5\u30A1\u30A4\u30EB\u767B\u9332\u6570\u3092\u8D85\u3048\u305F\u305F\u3081\u3001${de}}\u306F\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,backgroundColor:"nega"});continue}ne.push(be)}pe(be=>D(_({},be),{dataValue:[...be.dataValue,...ne],eventType:"update",eventID:Tu.default.uuid.gen()})),me.value=""})},oe),{tabIndex:-1,value:""})),!u&&(0,Ca.jsx)(RO.List,{files:J.dataValue,states:a,val_status:J,set_status:pe})]})};typeof window!="undefined"&&window.document&&(0,Tu.default)(document).addEvent({eventType:"dragover",callback:a=>{a.preventDefault(),xt("."+es("AddButton")).addClass(es("Draggable"))},options:{passive:!1}}).addEvent({eventType:"drop",callback:a=>{a.preventDefault(),xt("."+es("AddButton")).removeClass(es("Draggable"));let r=a.dataTransfer.files;if(r.length){let o=a.target;if(xt(o).hasClass(es("AddButton"))){let{componentId:l}=o.dataset,s=Ve.get(l);s&&s.AddFiles&&s.AddFiles(r)}}},options:{passive:!1}});var ww=a=>{a=_({},a),a.override="force";let r=In(a);return r.cellClassName=[r.cellClassName,In(No(D(_({},r.cellStyles),{tone:r.tone}))).className].join(" "),(0,Ca.jsx)(Hr,{componentID:a.componentID,children:fG,states:r})};ww.fn={openDialog:a=>{let{multiple:r,accept:o}=a;return new Promise(l=>{let s=document.createElement("input");s.type="file",s.multiple=r!=null?r:!0,o&&(o=="image"?s.accept="image/png,image/jpeg":s.accept=o),s.onchange=d=>{l(d.target.files)},s.click()})}};var qn=Z(Mt()),wm=Z(ha()),Ps=Z(ma());function pG(a){let{value:r,states:o}=a,{required:l}=o,s=[];return l&&!r&&s.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!s.filter(({type:d})=>d=="invalid").length,notice:s}}var AO=a=>{let{value:r,val_status:o}=a,{min:l,max:s,step:d}=o;r=Math.max(r,l),r=Math.min(r,s);let u=r/s*s;return u=Math.round(u/d),{stepValue:u*d,stepIndex:u,positionLeft:u*d/s*100+"%"}},DO={IndicatorLabels:a=>{let{componentID:r,min:o,max:l,step:s,customLegends:d}=a,u=[],h=Math.round(o/s),p=Math.round(l/s),v=p-h+1;for(var y=h;y<=p;y++){let b=y*s;b=Math.max(b,o),b=Math.min(b,l);let C=b/l*100+"%";u.push((0,qn.jsx)(E,{className:As("Label"),id:"Legend-"+r+"-"+y,display:y==h||y==p?"flex":"none",position:"absolute",top:0,unitHeight:1,unitWidth:1.5,transition:"middle",fontColor:"1.clear",verticalAlign:"center",horizontalAlign:"center",freeCSS:{left:C,whiteSpace:"nowrap",textAlign:"center"},children:d?d(b):b.rank()},b))}return(0,wm.useEffect)(()=>{let b=()=>{let C=xt("#Labels-"+r),{width:w}=C.position(),T=Math.round(w/50)-1,L=Math.round(v/T);for(let A=h+1;A<p;A++)xt("#Legend-"+r+"-"+A).css({display:A%L==0?"flex":"none"})};return(0,Ps.default)(window).addEvent({eventID:"SliderResizeCallback-"+r,eventType:"resize",callback:()=>{b()}}),b(),()=>{(0,Ps.default)(window).removeEvent("SliderResizeCallback-"+r)}},[]),(0,qn.jsx)(vt,{className:As("Labels"),verticalAlign:"center",horizontalAlign:"between",fontSize:"0.xs",position:"relative",unitHeight:1,id:"Labels-"+r,children:(0,qn.jsx)(E,{position:"absolute",top:0,left:0,bottom:0,freeCSS:{right:12*1.5},children:u})})},Rail:a=>{let{val_status:r,set_status:o,DotData:l,form:s,enableFormSubmit:d}=a,{componentID:u}=r;return(0,qn.jsxs)(vt,{className:As("Rail"),position:"relative",paddingLeft:"1/2",unitHeight:1.5,verticalAlign:"center",freeCSS:{minWidth:"10rem",zIndex:1,cursor:"pointer"},onMouseDown:h=>{a.rootStates.disabled||(h.stopPropagation(),Td.Effects.Start(h,{val_status:r,set_status:o,DotData:l}))},onTouchStart:h=>{a.rootStates.disabled||(h.stopPropagation(),Td.Effects.Start(h,{val_status:r,set_status:o,DotData:l}))},children:[(0,qn.jsx)(E,{className:As("Bar"),backgroundColor:"layer.4",position:"relative",isRounded:!0,transition:"middle",flexSizing:"none",unitHeight:"2/3",width:1,id:u+"_Bar",children:(0,qn.jsx)(E,{className:As("BarColor"),position:"relative",height:1,width:0,left:0,transition:"long",borderRadius:"inherit",backgroundColor:a.color,opacity:"middle",overflow:"hidden",freeCSS:{width:l.positionLeft},id:u+"_BarColor"})}),(0,qn.jsx)(E,{className:As("BallWrap"),position:"absolute",top:0,left:0,bottom:0,freeCSS:{right:12*1.5},children:(0,qn.jsx)(re.Button.Plain,{className:As("Ball"),position:"absolute",backgroundColor:a.color,top:0,left:0,ssSphere:1.5,freeCSS:{zIndex:2,left:l.positionLeft},"data-form-name":s,id:u+"_Ball",onKeyDown:h=>{Td.KeyDownEvent({event:h,val_status:r,set_status:o,DotData:l}),d&&va.SubmitForm(h)}})})]})}},Td={Effects:{Start:(a,r)=>{(0,Ps.default)(document).addEvent({eventID:"SliderMouseMove",eventType:"mousemove",callback:o=>{Td.Effects.Move(o,r)},options:{passive:!1}}).addEvent({eventID:"SliderTouchMove",eventType:"touchmove",callback:o=>{Td.Effects.Move(o,r)},options:{passive:!1}}).addEvent({eventID:"SliderMouseUp",eventType:"mouseup",callback:()=>{Td.Effects.End()}}).addEvent({eventID:"SliderTouchEnd",eventType:"touchend",callback:()=>{Td.Effects.End()}})},Move:(a,r)=>{let o=Ps.default.getCursor(a).x,{val_status:l,set_status:s}=r,{componentID:d,min:u,max:h}=l,p=xt("#"+d+"_Ball"),v=xt("#"+d+"_Bar"),y=xt("#"+d+"_BarColor"),{width:b,left:C}=v.position(),w=(o-C)/b;w=Math.max(w,0),w=Math.min(w,1);let T=w*h,L=AO({value:T,val_status:l}),A=L.positionLeft,$=L.stepValue;p.css({left:A}),y.css({width:A});let{prevValue:F}=Ve.get(d);return $!=F&&(Ve.update({[d]:{prevValue:$}}),s(j=>D(_({},j),{dataValue:$,eventType:"update",eventID:Ps.default.uuid.gen()}))),a.preventDefault(),a.stopPropagation(),!1},End:()=>{(0,Ps.default)(document).removeEvent(["SliderMouseMove","SliderTouchMove","SliderMouseUp","SliderTouchEnd"])}},KeyDownEvent:a=>{let{event:r,val_status:o,set_status:l}=a,{min:s,max:d,step:u}=o,{key:h,metaKey:p,ctrlKey:v}=r,y=v||p,b=o.dataValue;h.match(/Arrow/)&&(r.preventDefault(),h.match(/Left|Up/)?y?b=s:b-=u:h.match(/Right|Down/)&&(y?b=d:b+=u),b=Math.max(Math.min(b,d),s),Ve.update({[o.componentID]:{prevValue:b}}),l(C=>D(_({},C),{dataValue:b,eventType:"update",eventID:Ps.default.uuid.gen()})))}},hG=a=>{let r=a,{color:o="theme",required:l,form:s="",legends:{enable:d=!0,custom:u,showAlways:h=!1}={},min:p,max:v,step:y,enableFormSubmit:b,checkValidationAtFirst:C,onChange:w,onKeyDown:T,onValidate:L,onUpdateValue:A,onUpdateValidValue:$,value:F="",className:j,freeCSS:U,wrapStyles:K}=r,M=Ze(r,["color","required","form","legends","min","max","step","enableFormSubmit","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","className","freeCSS","wrapStyles"]),oe={componentID:a.componentID||"",dataValue:F,min:p,max:v,step:y,eventType:"init",eventID:Ps.default.uuid.gen()},[ke,J]=(0,wm.useState)(oe),[pe,he]=(0,wm.useState)({ok:!1,notice:[]});va.CommonEffects({type:"slider",states:a,val_status:ke,set_status:J,val_validate:pe,set_validate:he,onUpdateValue:A,onUpdateValidValue:$,DefaultValidation:pG,ExtraOverrideStates:{dataValue:F},ExtraStoreStates:{prevValue:ke.dataValue,setValueByForeign:P=>{J(ee=>D(_({},ee),{dataValue:P,eventType:"update",eventID:Ps.default.uuid.gen()}))}}});let ce=AO({value:ke.dataValue,val_status:ke});return(0,qn.jsxs)(Jr,{val_status:ke,set_status:J,val_validate:pe,states:a,children:[(0,qn.jsx)(Bs,_({value:ce.stepValue,form:s,"data-value":ce.stepValue,"data-validation":pe.ok,"data-input-type":"slider"},M)),(0,qn.jsxs)(ft,{gap:"1/2",flexSizing:"auto",className:[As("Wrap"),j,As("ShowLegendsAlways_"+h)].join(" "),children:[(0,qn.jsx)(DO.Rail,{rootStates:a,color:o,val_status:ke,set_status:J,DotData:ce,form:s,enableFormSubmit:b}),!!d&&(0,qn.jsx)(DO.IndicatorLabels,{componentID:ke.componentID,min:p,max:v,step:y,customLegends:u})]})]})},LO=a=>(a=_({},a),(0,qn.jsx)(Hr,{componentID:a.componentID,children:hG,states:In(a)}));var is=Z(Mt()),Cw=Z(ha()),xw=Z(ma());function mG(a){let{value:r,states:o}=a,{required:l}=o,s=[];return l&&!r&&s.push({type:"invalid",label:"ON\u306B\u306A\u3063\u3066\u3044\u307E\u305B\u3093"}),{ok:!s.filter(({type:d})=>d=="invalid").length,notice:s}}var vG=a=>{let r=a,{componentID:o,color:l="posi",required:s,form:d,id:u,enableFormSubmit:h,checkValidationAtFirst:p,onChange:v,onKeyDown:y,onValidate:b,onUpdateValue:C,onUpdateValidValue:w,value:T="",icon:L="",appearance:A="material"}=r,$=Ze(r,["componentID","color","required","form","id","enableFormSubmit","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","icon","appearance"]),F={componentID:a.componentID||"",dataValue:T,eventType:"init",eventID:xw.default.uuid.gen()},[j,U]=(0,Cw.useState)(F),[K,M]=(0,Cw.useState)({ok:!1,notice:[]}),oe=!!j.dataValue;return va.CommonEffects({type:"switch",states:a,val_status:j,set_status:U,val_validate:K,set_validate:M,DefaultValidation:mG,onUpdateValue:C,onUpdateValidValue:w,ExtraOverrideStates:{dataValue:T,formatValue:T}}),(0,is.jsxs)(Jr,{val_status:j,set_status:U,val_validate:K,states:a,children:[(0,is.jsx)(E,_({htmlTag:"input",type:"checkbox","data-form":d,"data-input-type":"switch","data-validation":K.ok,"data-component-id":j.componentID,"data-value":j.dataValue,checked:j.dataValue,className:dm("Input"),id:u,onKeyDown:ke=>{y&&y(ke),h&&va.SubmitForm(ke)},onChange:ke=>{let{checked:J}=ke.target;K.ok&&M({ok:!1,notice:[]}),U(pe=>D(_({},pe),{dataValue:J,eventType:"update",eventID:xw.default.uuid.gen()})),v&&v(ke)}},$)),(0,is.jsx)(re.Label.Plain,{tabIndex:-1,htmlFor:u,padding:"1/3",transition:"middle",borderRadius:"1.tone.primary",className:dm("Label"),children:(0,is.jsx)(E,D(_({},A=="applely"?{padding:"1/4",isRounded:!0,backgroundColor:oe?l:"layer.5"}:{}),{children:(0,is.jsxs)(Xe.Center,{unitHeight:2.5,position:"relative",freeCSS:{width:12*4.5},children:[A=="material"&&(0,is.jsx)(E,{position:"absolute",backgroundColor:oe?l:"layer.5",isRounded:!0,unitHeight:1,transition:"middle",width:1,opacity:"middle",className:dm("Bar")}),(0,is.jsx)(E,{position:"absolute",top:0,left:0,backgroundColor:A=="material"&&oe?l:"white",transition:"middle",ssSphere:2.5,boxShadow:"1.remark",className:dm("Dot"),children:L&&(0,is.jsx)(E,{transition:"middle",ssSquare:2,flexCenter:!0,fontColor:A=="applely"&&oe?l:"white",children:L})})]})}))})]})},BO=a=>(a=_({},a),a.color=a.color||"theme",(0,is.jsx)(Hr,{componentID:a.componentID,children:vG,states:a}));var NO=Z(Mt());var OO=a=>(a=_({},a),(0,NO.jsx)(O_,D(_({},a),{icon:!0,value:a.value?!0:null,cellStyles:_({padding:0},a.cellStyles),options:[{value:!0,label:a.label}],onUpdateValidValue:r=>{let o=!!r.value[0];a.onUpdateValidValue&&a.onUpdateValidValue(D(_({},r),{value:o}))}})));var ku=Z(Mt()),IO=Z(ma()),M_=Z(ha());var gG=a=>{let r=a,{__sys_segmented_type:o,tone:l,value:s,options:d,onUpdateValue:u,onUpdateValidValue:h,enableFormSubmit:p,checkValidationAtFirst:v,cellStyles:y,cellClassName:b,cellCheckedClassName:C,cellCheckedStyles:w,freeCSS:T,wrapStyles:L}=r,A=Ze(r,["__sys_segmented_type","tone","value","options","onUpdateValue","onUpdateValidValue","enableFormSubmit","checkValidationAtFirst","cellStyles","cellClassName","cellCheckedClassName","cellCheckedStyles","freeCSS","wrapStyles"]),[$]=(0,M_.useState)(IO.default.uuid.gen()),[F,j]=(0,M_.useState)(s),[U,K]=(0,M_.useState)(F);return F!=s&&(j(s),K(s)),(0,ku.jsx)(_d,D(_({options:d,value:U,componentID:$,icon:!1,flexWrap:!1,borderRadius:"2.tone.secondary",position:"relative"},A),{freeCSS:_({whiteSpace:"nowrap"},T),cellStyles:_({flexCenter:!0,ssEffectsOnActive:"push"},y),cellCheckedStyles:_({},w),cellClassName:[b,b_("Label"),b_("Tone_"+o.replace(/\./ig,""))].join(" "),cellCheckedClassName:[C,b_("Checked")].join(" "),tone:"custom",onUpdateValue:u,onUpdateValidValue:M=>{h&&h(M),o=="bottomline"&&K(M.value)}}))},F_=a=>{let{__sys_segmented_type:r}=a;return r=r||"plain",r=="plain"&&(a=D(_({padding:"1/3",gap:"1/3",ssCardBox:!0,isRounded:!0},a),{cellStyles:_({isRounded:!0,padding:["1/2","3/4"],borderRadius:"inherit",position:"relative"},a.cellStyles),cellCheckedStyles:_({backgroundColor:"theme",boxShadow:"1.normal",fontColor:"white"},a.cellCheckedStyles)})),(0,ku.jsx)(gG,_({__sys_segmented_type:"plain"},a))},ls=F_;ls.Cloud=a=>{let r=D(_({__sys_segmented_type:"cloud",padding:"1/3",gap:"1/3",backgroundColor:"cloud"},a),{cellStyles:_({padding:"3/4",borderRadius:"inherit",position:"relative"},a.cellStyles),cellCheckedStyles:_({boxShadow:"1.normal",backgroundColor:"theme",fontColor:"white"},a.cellCheckedStyles)});return(0,ku.jsx)(F_,_({},r))},ls.CloudTheme=a=>{let r=_({backgroundColor:"theme.opa.few",fontColor:"theme",__sys_segmented_type:"cloud.theme"},a);return(0,ku.jsx)(ls.Cloud,_({},r))},ls.CloudMono=a=>{let r=D(_({fontColor:"3.blur",__sys_segmented_type:"cloud.mono"},a),{cellCheckedStyles:_({backgroundColor:"layer.1",fontColor:"1.clear"},a.cellCheckedStyles)});return(0,ku.jsx)(ls.Cloud,_({},r))},ls.Border=a=>{let r=D(_({backgroundColor:"layer.1",border:"2.normal",overflow:"hidden",gap:0,fontColor:"3.blur",ssLastChildLossBorder:"right",boxShadow:"0.min",__sys_segmented_type:"border"},a),{cellStyles:_({padding:["3/4",1],borderRadius:0,borderRight:"2.normal"},a.cellStyles),cellCheckedStyles:_({backgroundColor:"theme.opa.few",fontColor:"theme"},a.cellCheckedStyles)});return(0,ku.jsx)(F_,_({},r))},ls.BorderVivid=a=>{let r=D(_({border:!0,borderColor:"theme",__sys_segmented_type:"border.vivid"},a),{cellStyles:_({borderRight:!0,borderColor:"theme"},a.cellStyles),cellCheckedStyles:_({backgroundColor:"theme",fontColor:"white"},a.cellCheckedStyles)});return(0,ku.jsx)(ls.Border,_({},r))},ls.Bottomline=a=>{let r=D(_({__sys_segmented_type:"bottomline",gap:0,fontColor:"3.blur"},a),{cellStyles:_({ssEffectsOnActive:"ripple.theme",borderRadius:0,padding:1},a.cellStyles),cellCheckedStyles:_({fontColor:"theme"},a.cellCheckedStyles)});return(0,ku.jsx)(F_,_({},r))};var ut;(a=>(a.Plain=IN,a.Hidden=Bs,a.TextField=Sn,a.Contenteditable=YN,a.DigitCharacters=GN,a.Time=Is,a.Select=os,a.Autocomplete=P_,a.List=uO,a.Radio=_d,a.Checkbox=O_,a.Checker=OO,a.Search=gO,a.Filer=ww,a.Slider=LO,a.Switch=BO,a.Segmented=ls,a.LeftIcon=R_,a.RightIcon=pn,a.LeftIndicator=qf,a.RightIndicator=gc,a.RequiredSign=T_,a.RequiredShortSign=k_,a.OmitSign=E_))(ut||(ut={}));var H_=a=>{let r=a,{tabIndex:o,tabs:l,onTabChange:s,componentDidMount:d}=r,u=Ze(r,["tabIndex","tabs","onTabChange","componentDidMount"]);return(0,PO.useEffect)(()=>{d&&d()},[]),(0,z_.jsx)(vt,D(_({position:"relative",overflow:"auto",flexWrap:!1},u),{freeCSS:_({zIndex:3,whiteSpace:"nowrap"},u.freeCSS),children:(0,z_.jsx)(E,{margin:[0,"auto"],children:(0,z_.jsx)(ut.Segmented.Bottomline,{value:o,fontColor:"inherit",gap:0,override:"force",options:l.map((h,p)=>({value:p,label:h})),onUpdateValidValue:h=>{let p=h.value;s&&s(p)}})})}))};var wc=Z(Mt());var qa={Table:a=>(0,wc.jsx)(E,D(_({htmlTag:"table"},a),{border:a.border})),Head:a=>(0,wc.jsx)(E,_({htmlTag:"thead"},a)),Body:a=>(0,wc.jsx)(E,_({htmlTag:"tbody"},a)),Row:a=>(0,wc.jsx)(E,_({htmlTag:"tr"},a)),TH:a=>(0,wc.jsx)(E,_({htmlTag:"th"},a)),TD:a=>(0,wc.jsx)(E,_({htmlTag:"td"},a)),RightIndicator:{type:"td",unitWidth:4,children:(0,wc.jsx)(Ce.AngleRight,{fontColor:"theme",fontSize:"4.thirdTitle"})}};var Po=Z(Mt());var Tw=Z(Mt()),FO=Z(ma());var MO=(a,r)=>{if(r=="plain")return{};let o={};return a=="drag"&&(o.padding=1),["border","rowBorder","cellBorder"].includes(r)&&(o.borderBottom="2.normal"),["border","cellBorder"].includes(r)&&(o.borderRight="2.normal"),_({padding:"3/4",backgroundColor:"layer.1",transition:"short",textAlign:"center"},o)},ul=a=>{let r={};return a.right&&(r.borderRight="unset"),a.top&&(a.left&&(r.borderTopLeftRadius="inherit"),a.right&&(r.borderTopRightRadius="inherit")),a.bottom&&(r.borderBottom="unset",a.left&&(r.borderBottomLeftRadius="inherit"),a.right&&(r.borderBottomRightRadius="inherit")),r};var ap=a=>{let r=_({},a),{JSXChildren:o}=r;(!r.tone||r.tone=="auto")&&(r.tone="border",r.type=="drag"&&(r.tone="rowBorder"));let l=D(_({tableID:r.tableID||FO.default.uuid.gen(),tone:r.tone},r),{cellStyles:_(_({},MO(r.type,r.tone)),r.cellStyles)});r.tone!="plain"&&(l=_({backgroundColor:"layer.1",borderRadius:"1.tone.primary"},l));let s=In(l),{className:d,style:u}=s,h=Ze(s,["className","style"]),p=[d,ea("Wrap"),ea("TableType_"+r.type),ea("RowClickable_"+!!l.onRowClick)].join(" ");return(0,Tw.jsx)(E,{className:p,style:u,children:(0,Tw.jsx)(o,_({},h))})};var kw={HeadRow:a=>{let{cellStyles:r={},cellClassName:o="",cellStylesCallback:l,colLength:s,head:d,rows:u}=a;if(!d)return null;let h=[];return d.forEach((p,v)=>{let y=qa[p.type=="th"?"TH":"TD"],b={top:!0,bottom:!u.length,left:v==0,right:v==s-1,rowIndex:0,colIndex:v,isBody:!1,isHeader:!0},C=ul(b),w=l?l(b):{},T=D(_(_(_(_({},r),C),w),p),{freeCSS:_(_(_({},r.freeCSS),w.freeCSS),p.freeCSS),className:[ea("Cell"),o,p.className].join(" ")});h.push((0,Po.jsx)(y,_({},T),v))}),(0,Po.jsx)(qa.Row,{className:[ea("Row"),ea("HeadRow")].join(" "),children:h})},BodyRows:a=>{let{cellStyles:r={},cellClassName:o="",cellStylesCallback:l,head:s,rows:d,colLength:u,onRowClick:h}=a,p=[];return d.forEach((v,y)=>{let b=[];v.forEach((C,w)=>{let T=qa[C.type=="th"?"TH":"TD"],L={top:y==0&&!s,bottom:y==d.length-1,left:w==0,right:w==u-1,rowIndex:y,colIndex:w,isBody:!0,isHeader:!1},A=ul(L),$=l?l(L):{};b.push((0,Po.jsx)(T,D(_(_(_(_({},r),A),C),$),{freeCSS:_(_(_({},r.freeCSS),$.freeCSS),C.freeCSS),className:[ea("Cell"),o,C.className].join(" ")}),w))}),p.push((0,Po.jsx)(qa.Row,{className:[ea("Row"),ea("BodyRow")].join(" "),children:b,onClick:C=>{h&&h(v.rowID,C)}},y))}),(0,Po.jsx)(Po.Fragment,{children:p})},Normal:a=>(a=_({},a),a.rows=a.rows.map((r,o)=>(r.rowID=r.rowID||o,r)),(0,Po.jsx)(qa.Table,{className:ea("Table"),children:(0,Po.jsxs)(qa.Body,{children:[(0,Po.jsx)(kw.HeadRow,_({},a)),(0,Po.jsx)(kw.BodyRows,_({},a))]})}))},zO=a=>(0,Po.jsx)(ap,D(_({type:"normal"},a),{JSXChildren:kw.Normal}));var Cr=Z(Mt()),op=Z(ha()),rp=Z(ma());var Rw=Z($O());var Dw={HeadRow:a=>{let{cellStyles:r={},cellClassName:o="",cellStylesCallback:l,colLength:s,head:d,rows:u}=a;if(!d)return null;let h=[];for(let p=0;p<s;p++){let v=d[p],y=qa[v.type=="th"?"TH":"TD"],b={top:!0,bottom:!u.length,left:p==0,right:p==s-1,rowIndex:0,colIndex:p,isBody:!1,isHeader:!0},C=ul(b),w=l?l(b):{};h.push((0,Cr.jsx)(y,D(_(_(_(_({},r),C),v),w),{freeCSS:_(_(_({},r.freeCSS),w.freeCSS),v.freeCSS),className:[ea("Cell"),o,v.className].join(" ")}),p))}return(0,Cr.jsx)(qa.Row,{className:[ea("Row"),ea("HeadRow")].join(" "),children:h})},BodyRows:a=>{let{cellStyles:r={},cellClassName:o="",cellStylesCallback:l,head:s,rows:d,colLength:u,onOrderChanged:h}=a,[p]=(0,op.useState)(rp.default.uuid.gen()),[v,y]=(0,op.useState)({rows:d,origin:0,to:NaN}),b=[];if(v.rows.forEach((C,w)=>{let T=[];{let L={top:w==0&&!s,bottom:w==d.length-1,left:!0,right:!1,rowIndex:w,colIndex:0,isBody:!0,isHeader:!1},A=ul(L),$=l?l(L):{};T.push((0,Cr.jsx)(qa.TH,D(_(_(_({padding:0,borderRight:!0},r),A),$),{freeCSS:_(_({},r.freeCSS),$.freeCSS),className:[ea("Cell"),ea("Draggable"),o].join(" "),children:(0,Cr.jsx)(re.Button.Clear.R,{className:ea("DragableButton"),fontColor:"4.thin",fontSize:"3.paragraph",margin:"auto",ssSphere:3,tabIndex:-1,onMouseDown:F=>{np.Start(F,{id:p,index:w,rows:v.rows,maxLength:d.length})},onTouchStart:F=>{np.Start(F,{id:p,index:w,rows:v.rows,maxLength:d.length})},children:(0,Cr.jsx)(Ce,{icon:Rw.faGripVertical})})}),"DragOrigin"))}C.forEach((L,A)=>{L=_({},L);let $=qa[L.type=="th"?"TH":"TD"],F={top:!!s&&!s.length,bottom:w==d.length-1,left:!1,right:A==u-2,rowIndex:w,colIndex:A,isBody:!0,isHeader:!1},j=ul(F),U=l?l(F):{};T.push((0,Cr.jsx)($,D(_(_(_(_({},r),j),L),U),{freeCSS:_(_(_({},r.freeCSS),U.freeCSS),L.freeCSS),className:[ea("Cell"),o,L.className].join(" ")}),A))}),b.push((0,Cr.jsx)(qa.Row,{id:"TableRow-"+p+"-"+w,className:[ea("Row"),ea("BodyRow")].join(" "),children:T},w))}),!isNaN(v.to)){let{origin:C,to:w}=v,T=[];T.push((0,Cr.jsx)(qa.TH,{backgroundColor:"theme.opa.low",padding:0,borderRight:"2.normal",className:[ea("Cell"),ea("Draggable"),o].join(" "),children:(0,Cr.jsx)(Ce.ArrowRight,{fontColor:"theme"})},"dragButton")),v.rows[C].forEach((L,A)=>{L=_({},L);let $=qa[L.type=="th"?"TH":"TD"],F={top:!1,bottom:!1,left:!1,right:!1,rowIndex:-1,colIndex:-1,isBody:!0,isHeader:!1},j=ul(F),U=l?l(F):{};T.push((0,Cr.jsx)($,D(_(_(D(_({className:[ea("Cell"),o,L.className].join(" ")},j),{backgroundColor:"theme.opa.low"}),U),L),{freeCSS:_(_(_({},r.freeCSS),U.freeCSS),L.freeCSS)})))}),b.splice(w,0,(0,Cr.jsx)(qa.Row,{className:[ea("Row"),ea("Pre")].join(" "),children:T},"preSet"))}return(0,op.useEffect)(()=>{Ve.set({[p]:{swap:(C,w)=>{if(w||w==0){let T=v.rows[C],L=[...v.rows];L.splice(C,1),L.splice(w-(C<w?1:0),0,T),y({rows:L,origin:0,to:NaN}),h(L.map(A=>JSON.parse(A.rowID)))}},preSet:C=>{let{origin:w,index:T}=C;y({rows:v.rows,origin:w,to:T})}}})}),(0,op.useEffect)(()=>()=>{Ve.delete(p)},[]),(0,Cr.jsx)(Cr.Fragment,{children:b})},Drag:a=>(a=_({},a),a.colLength=a.colLength+1,a.head&&(a.head=[{children:(0,Cr.jsx)(re.Button.Clear.R,{ssSphere:3,fontSize:"3.paragraph",fontColor:"theme",onMouseOver:r=>{Ba.open({parent:r.currentTarget,content:(0,Cr.jsxs)(Ba.Body,{children:[(0,Cr.jsx)(Ce,{icon:Rw.faGripVertical}),"\u30DC\u30BF\u30F3\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u9806\u5E8F\u3092\u5909\u66F4"]})})},children:(0,Cr.jsx)(Ce.QuestionCircle,{})}),padding:[0,1],unitWidth:4},...a.head]),a.rows=a.rows.map((r,o)=>(r.rowID=JSON.stringify(r.rowID||o),r)),(0,Cr.jsx)(qa.Table,{className:ea("Table"),children:(0,Cr.jsxs)(qa.Body,{children:[(0,Cr.jsx)(Dw.HeadRow,_({},a)),(0,Cr.jsx)(Dw.BodyRows,_({},a))]})}))},GO=a=>(0,Cr.jsx)(ap,D(_({type:"drag"},a),{JSXChildren:Dw.Drag})),np={Start:function(a,r){return ir(this,null,function*(){a.stopPropagation(),a.preventDefault();let{id:o,index:l,rows:s,maxLength:d}=r;xt("#TableRow-"+o+"-"+l).addClass(ea("DraggerOrigin")),(0,rp.default)(document).addEvent({eventID:"DragMouseMove",eventType:"mousemove",callback:u=>{np.Move(u,r)},options:{passive:!1}}).addEvent({eventID:"DragTouchMove",eventType:"touchmove",callback:u=>{np.Move(u,r)},options:{passive:!1}}).addEvent({eventID:"DragMouseUp",eventType:"mouseup",callback:u=>{np.End(u,r)}}).addEvent({eventID:"DragTouchEnd",eventType:"touchend",callback:u=>{np.End(u,r)}})})},Move:function(a,r){let{id:o,maxLength:l}=r,s=rp.default.getCursor(a).y-rp.default.getScreenSize().scrollY;for(let d=0;d<l;d++){let u=xt("#TableRow-"+o+"-"+d),{top:h,bottom:p,height:v}=u.position();d==0&&s<h?r.insertIndex=0:d===l-1&&p<=s?r.insertIndex=l:s>=h&&s<p&&(r.insertIndex=d+1)}{let{index:d,insertIndex:u}=r,h=Ve.get(o);h&&h.preSet&&h.preSet({origin:d,index:u})}return a.stopPropagation(),a.preventDefault(),!1},End:function(a,r){let{id:o,index:l,insertIndex:s}=r,d=Ve.get(o);d&&d.swap&&d.swap(l,s),xt("#TableRow-"+o+"-"+l).removeClass(ea("DraggerOrigin")),(0,rp.default)(document).removeEvent(["DragMouseMove","DragTouchMove","DragMouseUp","DragTouchEnd"])}};var Bt=Z(Mt()),Eu=Z(ha()),Mo=Z(ma());var t7=Z(fS()),a7=Z(hS()),r7=Z(cS()),n7=Z(e7());var zn={__memoryID:Mo.default.uuid.gen(),Header:a=>{var r,o;let{val_status:l,set_status:s,KeywordFilterRows:d}=_({},a),{order:u,filter:h}=l,[p,v]=u.current,y=[],b=[...l.head];if(l.checker){let C={top:!0,bottom:!l.rows.length,left:!0,right:!l.colLength,rowIndex:0,colIndex:0,isBody:!1,isHeader:!0},w=ul(C),T=l.cellStylesCallback?l.cellStylesCallback(C):{};y.push((0,Bt.jsx)(qa.TH,D(_(_(_({fontWeight:"2.normal",position:"sticky",top:0,unitWidth:4,padding:0},l.cellStyles),w),T),{freeCSS:D(_(_({},(r=l.cellStyles)==null?void 0:r.freeCSS),T.freeCSS),{zIndex:2}),className:[ea("Cell"),l.cellClassName].join(" "),children:(0,Bt.jsx)(E,{flexCenter:!0,children:(0,Bt.jsx)(ut.Checker,{label:null,value:!1,onUpdateValidValue:({value:L})=>{let A=l.rows;A.forEach($=>{$.checked=L}),s(D(_({},l),{rows:A}))}})})}),-1))}for(let C=0;C<l.colLength;C++){let w=b[C];if(!w)continue;let T=w.children||w.data,L=u.enabled&&u.column[C],A=h.enabled&&h.column[C],$=L?(0,Bt.jsx)(Ce,{fontSize:"1.mini",fontColor:C==p?"1.clear":"5.translucent",icon:C==p?v=="DESC"?a7.faArrowDown:t7.faArrowUp:r7.faArrowRight}):null,F=(0,Bt.jsx)(Bt.Fragment,{});if(A){let M=d.map(ke=>{var J;return(J=ke[C])==null?void 0:J.data});M=[...new Set(M)].order({direction:"ASC"});let oe=h.current[C];if(oe){let ke=M.filter(P=>!oe.includes(P)),J=[];M.forEach(P=>{P&&J.push({value:P,label:(0,Bt.jsx)(E,{flexSizing:"auto",children:P})})});let pe="BUTTON-"+l.componentID+"-"+C,he=l.componentID+"-"+C,ce={sheetID:he,parent:"#"+pe,gravityPoint:23,type:"custom",content:(0,Bt.jsxs)(vt,{flexType:"col",border:!0,boxShadow:"3.remark",backgroundColor:"layer.1",borderRadius:1,freeCSS:{minWidth:12*20,maxWidth:12*30},children:[(0,Bt.jsx)(ft,{gap:"1/3",overflow:"auto",padding:"2/3",freeCSS:{maxHeight:12*30},children:(0,Bt.jsx)(ut.Checkbox,{icon:!0,value:ke,display:"flex",gap:"1/2",override:"force",options:J,hideInput:!0,name:"DTFilter-col-"+C+"-table-"+l.componentID,cellStyles:{flexSizing:"auto",padding:"2/3"},onUpdateValidValue:({value:P})=>{let ee=M.filter(z=>!P.includes(z)),me=_({},l);me.filter.current[C]=ee,s(me)}})}),(0,Bt.jsxs)(Xe.Separate,{gap:"2/3",padding:"2/3",horizontalAlign:"right",children:[(0,Bt.jsx)(re.Button.Border.S,{isRounded:!0,onClick:()=>{Ot.close(he)},children:"\u9589\u3058\u308B"}),(0,Bt.jsx)(re.Button.Prime.S,{color:"theme",isRounded:!0,ssEffectsOnActive:"shrink",onClick:()=>{let P=[];oe.length||(P=M);let ee=_({},l);ee.filter.current[C]=P,s(ee)},children:"\u5168\u9078\u629E"})]})]})};Ot.refresh(ce,!0),F=(0,Bt.jsx)(E,{className:ea("FilterRegion"),children:(0,Bt.jsx)(re.Button.Sub.S,{ssSphere:2.5,fontSize:"1.mini",className:ea("Filtering_"+!!oe.length),id:pe,onClick:P=>{P.stopPropagation(),Ot.open(ce)},children:(0,Bt.jsx)(Ce,{icon:n7.faFilter})})})}}let j={top:!0,bottom:!l.rows.length,left:l.checker?!1:C==0,right:C==l.colLength-1,rowIndex:0,colIndex:C,isBody:!1,isHeader:!0},U=ul(j),K=l.cellStylesCallback?l.cellStylesCallback(j):{};w=D(_(_(_(_({},l.cellStyles),U),w),K),{ssPushable:L,freeCSS:_(_(_({},(o=l.cellStyles)==null?void 0:o.freeCSS),K.freeCSS),w.freeCSS),className:[ea("Cell"),l.cellClassName,w.className].join(" ")}),delete w.orderIndex,y.push((0,Bt.jsx)(qa.TH,D(_({fontWeight:"2.normal",position:"sticky",top:0},w),{freeCSS:_({zIndex:2},w.freeCSS),onClick:M=>{if(L){let oe=_({},l),ke=[C,p===C&&v=="ASC"?"DESC":"ASC"];oe.order.current=ke,s(oe),l.onOrderChanged&&l.onOrderChanged(ke)}},children:(0,Bt.jsxs)(vt,{flexType:"row-r",flexWrap:!1,height:1,borderRadius:"inherit",flexCenter:!0,children:[F,(0,Bt.jsxs)(vt,{flexSizing:0,position:"relative",borderRadius:"inherit",gap:"1/3",flexWrap:!1,horizontalAlign:"center",children:[$,T]})]})}),C))}return(0,Bt.jsx)(qa.Row,{className:[ea("Row"),ea("HeadRow")].join(" "),children:y})},Body:a=>{let{val_status:r,PageRows:o}=a,l=[];if(o.forEach((s,d)=>{var u;let h=[...s],p=[];if(r.checker){let v={top:d==0&&!r.head,bottom:d==o.length-1,left:!0,right:!r.colLength,rowIndex:d,colIndex:0,isBody:!0,isHeader:!1},y=ul(v),b=r.cellStylesCallback?r.cellStylesCallback(v):{};p.push((0,Bt.jsx)(qa.TH,D(_(_(_({unitWidth:4,padding:0,borderRight:!0},r.cellStyles),y),b),{freeCSS:_(_({},(u=r.cellStyles)==null?void 0:u.freeCSS),b.freeCSS),className:[ea("Cell"),r.cellClassName].join(" "),children:(0,Bt.jsx)(E,{flexCenter:!0,children:(0,Bt.jsx)(ut.Checker,{label:null,value:s.checked,override:"force",onUpdateValidValue:({value:C})=>{let w=r.rows;w[d].checked=C,a.set_status(T=>D(_({},T),{rows:w}))}})})}),-1))}h.forEach((v,y)=>{var b;if(!v)return;let C=v,{type:w="td"}=C,T=Ze(C,["type"]),L={top:d==0&&!r.head,bottom:d==o.length-1,left:r.checker?!1:y==0,right:y==r.colLength-1,rowIndex:d,colIndex:y,isBody:!0,isHeader:!1},A=ul(L),$=r.cellStylesCallback?r.cellStylesCallback(L):{};T=D(_(_(_(_({},r.cellStyles),A),T),$),{freeCSS:_(_(_({},(b=r.cellStyles)==null?void 0:b.freeCSS),T.freeCSS),$.freeCSS),className:[ea("Cell"),r.cellClassName,T.className].join(" ")}),delete T.orderIndex;let F=qa[w=="td"?"TD":"TH"];p.push((0,Bt.jsx)(F,_({},T),y))}),l.push((0,Bt.jsx)(qa.Row,{className:[ea("Row"),ea("BodyRow")].join(" "),children:p,onClick:v=>{r.onRowClick&&r.onRowClick(JSON.parse(s.rowID),v)}},d))}),!o.length){let s=(0,Bt.jsx)(E,{padding:2,fontColor:"4.thin",textAlign:"center",borderTop:"1.thin",children:"\u30C6\u30FC\u30D6\u30EB\u304C\u3042\u308A\u307E\u305B\u3093"});r.noRecords&&(s=(0,Bt.jsx)(Bt.Fragment,{children:r.noRecords})),l.push((0,Bt.jsx)(qa.Row,{className:[ea("Row"),ea("BodyRow"),ea("DataNotFound")].join(" "),children:(0,Bt.jsx)(qa.TD,{colSpan:r.colLength,className:ea("Cell"),children:s})},"dataNotFound"))}return(0,Bt.jsx)(Bt.Fragment,{children:l})},Core:a=>{let{val_status:r,set_status:o}=a,{searchKeyword:l,filter:s,order:d,paging:u}=r,h=[...r.rows],p=[...r.rows],v=[...r.rows],y=[...r.rows];if(l&&(p=h.filter(w=>(w.__sys4SearchKey||"").match(new RegExp(l,"i"))?1:0),v=[...p],y=[...p]),s.enabled)for(let w=0;w<r.colLength;w++){let T=s.column[w],L=s.current[w];T&&L&&L.length&&(v=v.filter(A=>!L.includes(A[w].data)),y=[...v])}d.enabled&&(v=v.order({direction:d.current[1],keys:[d.current[0],"orderIndex"]}),y=[...v]);{let{currentPageIndex:w,rowLength:T}=u;y=[...y].splice((w-1)*T,T)}let b=zn.__memoryID+"_"+r.tableID,C={tableComponentDidMount:!0,totalRows:h.length,pageRows:y.length,filteredRows:v.length,filter:r.filter,order:r.order,paging:r.paging,searchKeyword:r.searchKeyword};return Ve.update({[b]:{status:C,updatePageIndex:w=>{let T=Math.min(Math.max(1,w),r.paging.pageLength),L=_({},r);L.paging.currentPageIndex=T,o(L)},updateRowLength:w=>{let T=_({},r);T.paging={rowLength:w,currentPageIndex:1,pageLength:Math.ceil(v.length/w)},o(T)},updateKeyword:w=>{Mo.default.interval.clear("InputSearchTime"),Mo.default.interval.standBy("InputSearchTime",200,()=>{let T=_({},r);T.searchKeyword=w,T.paging.currentPageIndex=1,T.filter.current=T.filter.current.map(()=>[]),o(T)})},getRowData:()=>{let w=[...h];return d.enabled&&(w=w.order({direction:d.current[1],keys:[d.current[0],"orderIndex"]})),w.forEach(T=>{T.currentPage=!1,T.filtered=!1}),y.forEach(T=>{let{rowID:L}=T;w.find(A=>A.rowID==L).currentPage=!0}),v.forEach(T=>{let{rowID:L}=T;w.find(A=>A.rowID==L).filtered=!0}),w}}}),(0,Eu.useEffect)(()=>{let w=zn.Propagations[r.tableID]||[];Object.keys(w).forEach(T=>{let L=Ve.get(T);L!=null&&L.refresh&&L.refresh()})}),(0,Bt.jsx)(E,{className:ea("TableBase"),children:(0,Bt.jsx)(qa.Table,{className:ea("Table"),children:(0,Bt.jsxs)(qa.Body,{children:[(0,Bt.jsx)(zn.Header,{val_status:r,set_status:o,KeywordFilterRows:p}),(0,Bt.jsx)(zn.Body,{val_status:r,set_status:o,PageRows:y})]})})})},Propagations:{},DataLeveler:a=>{var r,o;return a=_({},a),a.filter=(r=a.filter)!=null?r:!1,a.filter=Array.from({length:a.colLength}).map((l,s)=>{var d;return Mo.default.is.boolean(a.filter)?a.filter:(d=a.filter[s])!=null?d:!1}),a.order=(o=a.order)!=null?o:!0,a.order=Array.from({length:a.colLength}).map((l,s)=>{var d;return Mo.default.is.boolean(a.order)?a.order:(d=a.order[s])!=null?d:!0}),a=_({checker:!1,searchKeyword:"",filter:!1,order:!0,defaultOrder:[0,"ASC"]},a),a.rows.forEach((l,s)=>{l.rowID=JSON.stringify(l.rowID||s);let d=[];l.forEach((u,h)=>{let{data:p,children:v,orderIndex:y}=u;u.orderIndex=Mo.default.is.exist(y)?String(y):String(p),u.children=v||String(p),d.push(String(u.data))}),l.__sys4SearchKey=d.join("/")}),(0,Bt.jsx)(zn.StateManager,_({eventID:Mo.default.uuid.gen()},a))},StateManager:a=>{let{colLength:r,eventID:o,checker:l=!1,searchKeyword:s="",filter:d,order:u,defaultOrder:h=[0,"ASC"],pageRowLength:p=30}=a,[v]=(0,Eu.useState)(Mo.default.uuid.gen()),y={tableID:a.tableID||v,componentID:v,colLength:r,checker:l,searchKeyword:s,filter:{enabled:d!==!1,column:d,current:Array.from({length:r},()=>[])},order:{enabled:u!==!1,column:u,current:h},paging:{rowLength:p,pageLength:Math.ceil(a.rows.length/p),currentPageIndex:1},head:a.head,rows:a.rows,noRecords:a.noRecords,cellStyles:a.cellStyles||{},cellClassName:a.cellClassName||"",cellStylesCallback:a.cellStylesCallback,onRowClick:a.onRowClick,onOrderChanged:a.onOrderChanged},[b,C]=(0,Eu.useState)(y),[w,T]=(0,Eu.useState)(a.eventID);return w!=a.eventID&&(T(a.eventID),C(y)),(0,Bt.jsx)(zn.Core,{val_status:b,set_status:C})}},Kn={__memoryID:zn.__memoryID,useStatus:a=>{var r;let[o]=(0,Eu.useState)(Mo.default.uuid.gen()),[l,s]=(0,Eu.useState)(Mo.default.uuid.gen()),d=zn.__memoryID+"_"+a;return(0,Eu.useEffect)(()=>(zn.Propagations[a]=D(_({},zn.Propagations[a]),{[o]:1}),Ve.set({[o]:{refresh:()=>{s(Mo.default.uuid.gen())}}}),()=>{delete zn.Propagations[a][o]}),[]),((r=Ve.get(d))==null?void 0:r.status)||{tableComponentDidMount:!1}},getRowData:a=>{let r=Ve.get(zn.__memoryID+"_"+a);if(r!=null&&r.getRowData)return r.getRowData()},setPageIndex:(a,r)=>{let o=Ve.get(zn.__memoryID+"_"+a);o!=null&&o.updatePageIndex&&o.updatePageIndex(r)},setRowLength:(a,r)=>{let o=Ve.get(zn.__memoryID+"_"+a);o!=null&&o.updateRowLength&&o.updateRowLength(r)},setSearchKeyword:(a,r)=>{let o=Ve.get(zn.__memoryID+"_"+a);o!=null&&o.updateKeyword&&o.updateKeyword(r)}},j_={SearchInput:a=>{let r=Kn.useStatus(a.tableID);return r.tableComponentDidMount?(0,Bt.jsx)(ut.TextField,{label:"\u691C\u7D22...",clearButton:!0,padding:"2/3",paddingRight:3,rightIcon:(0,Bt.jsx)(ut.RightIcon,{fontColor:"5.translucent",right:"2/3",children:(0,Bt.jsx)(Ce.Search,{})}),override:"force",value:r.searchKeyword,onUpdateValidValue:({value:o})=>{Mo.default.interval.clear("InputSearchTime"),Mo.default.interval.standBy("InputSearchTime",500,()=>{Kn.setSearchKeyword(a.tableID,o)})}}):null},Info:a=>{let r=Kn.useStatus(a.tableID);if(!r.tableComponentDidMount)return null;let o=r.filteredRows.ratio(r.totalRows)||0;return(0,Bt.jsxs)(vt,{verticalAlign:"baseline",gap:"1/2",fontSize:"1.mini",fontColor:"3.blur",children:[(0,Bt.jsx)(yn,{fontSize:"4.thirdTitle",fontColor:"theme",children:r.filteredRows.toLocaleString()}),"/ ",r.totalRows.toLocaleString(),"\u4EF6 (",o,"%)"]})},Paging:a=>{let r=Kn.useStatus(a.tableID);if(!r.tableComponentDidMount)return null;let o=[];for(let l=0;l<r.paging.pageLength;l++)o.push({value:l+1,label:(l+1).toString()});return(0,Bt.jsxs)(Xe.Center,{children:[(0,Bt.jsxs)(Xe.Center,{gap:"1/2",children:["\u30DA\u30FC\u30B8 :",(0,Bt.jsx)(ut.Select,{emptySelect:!1,padding:["1/3","2/3"],rightIcon:!1,override:"force",value:r.paging.currentPageIndex,options:o,onUpdateValidValue:({value:l})=>{Kn.setPageIndex(a.tableID,l)}}),"/ ",r.paging.pageLength]}),(0,Bt.jsxs)(Xe.Right,{gap:"1/2",children:[(0,Bt.jsx)(re.Button.Sub.R,{ssSphere:3,onClick:()=>{if(r.paging.currentPageIndex==1){Kn.setPageIndex(a.tableID,r.paging.pageLength);return}Kn.setPageIndex(a.tableID,r.paging.currentPageIndex-1)},children:(0,Bt.jsx)(Ce.ChevronLeft,{})}),(0,Bt.jsx)(re.Button.Sub.R,{ssSphere:3,onClick:()=>{if(r.paging.currentPageIndex==r.paging.pageLength){Kn.setPageIndex(a.tableID,1);return}Kn.setPageIndex(a.tableID,r.paging.currentPageIndex+1)},children:(0,Bt.jsx)(Ce.ChevronRight,{})})]})]})},RowLength:a=>{let r=Kn.useStatus(a.tableID);if(!r.tableComponentDidMount)return null;let o=r.paging.rowLength,l=0,s=a.lengthSelect.map(d=>(l|=+(d==o),{value:d,label:d.toString()}));return l||s.push({value:o,label:o.toString()}),s=s.order({direction:"ASC",keys:["value"]}),(0,Bt.jsxs)(Xe.Center,{gap:"1/2",children:["\u4EF6\u6570 :",(0,Bt.jsx)(ut.Select,{emptySelect:!1,rightIcon:!1,label:"\u9078\u629E",override:"force",padding:["1/3","2/3"],value:r.paging.rowLength,options:s,onUpdateValidValue:({value:d})=>{Kn.setRowLength(a.tableID,d)}})]})}},_G=a=>(0,Bt.jsx)(ap,D(_({},a),{type:"data",JSXChildren:zn.DataLeveler})),Ol=_G;Ol.__memoryID=zn.__memoryID,Ol.useStatus=Kn.useStatus,Ol.getRowData=Kn.getRowData,Ol.setPageIndex=Kn.setPageIndex,Ol.setRowLength=Kn.setRowLength,Ol.setSearchKeyword=Kn.setSearchKeyword,Ol.Info=j_.Info,Ol.Paging=j_.Paging,Ol.RowLength=j_.RowLength,Ol.SearchInput=j_.SearchInput;var Xn;(a=>(a.Normal=zO,a.Data=Ol,a.Drag=GO,a.Parts=qa))(Xn||(Xn={}));var gt=Z(Mt()),Br=Z(ma());var ss=Z(ha());var N7=Z(d7()),O7=Z(_7()),I7=Z(T7()),P7=Z(B7());var Iw=class{constructor(r){this.set_scale=r.set_scale,this.val_file=r.val_file,this.develops=r.develops,this.use=r.use,this.componentID=r.componentID,this.scale={current:r.scale.default,default:r.scale.default,min:r.scale.min,max:r.scale.max};let o=r.canvas;this.Canvas={elm:o,ctx:o.getContext("2d")};let l=r.picture.image,{width:s,height:d}=l,u=s/d;this.Picture={elm:l,originDataUrl:l.src,aspect:u,revisedAspect:1,rotate:r.picture.rotate,grayScale:r.picture.grayScale,tone:r.picture.tone},this.pst={frame:{x:0,y:0,w:0,h:0,aspect:1},outImage:{x:0,y:0,w:0,h:0},imageX:s/2,imageY:d/2,centerX:0,centerY:0},this.dragEffectInfo={origin:{x:0,y:0},frameExpandRate:{x:0,y:0}},this.pinchEffectInfo={origin:{x:0,y:0,scale:this.scale.current}},this.frameSizing(),this.modifyImage()}frameSizing(){let r=this.Canvas.elm,o=this.Picture.elm,l=0,s=0;if(this.use=="square"){let y=r.width/3*2,b=r.height/3*2;l=Math.min(y,b),s=l}else this.use=="wallpaper.horizontal"?(l=r.width*(7/9),s=l/3):this.use=="wallpaper.vertical"&&(s=r.height*(7/9),l=s/2);let{width:d,height:u}=o,h=(r.width-l)/2,p=(r.height-s)/2,v=l/s;this.pst={frame:{x:h,y:p,w:l,h:s,aspect:v},outImage:{x:0,y:0,w:0,h:0},imageX:d/2,imageY:u/2,centerX:r.width/2,centerY:r.height/2}}dragEffect(r){let{eventType:o,x:l,y:s}=r;if(o=="start"){let d=this.Canvas.elm.position();this.dragEffectInfo={origin:{x:l,y:s},frameExpandRate:{x:this.Canvas.elm.width/d.width,y:this.Canvas.elm.height/d.height}}}else{let{origin:d,frameExpandRate:u}=this.dragEffectInfo,h=d.x-l,p=d.y-s,v=this.scale.current*this.Picture.revisedAspect/100,y=h/v*u.x,b=p/v*u.y;o=="move"?this.drawImage(this.pst.imageX+y,this.pst.imageY+b):o=="end"&&this.drawImage(this.pst.imageX+=y,this.pst.imageY+=b)}}pinchEffect(r){let{eventType:o,event:l}=r,{x:s,y:d}=Br.default.getCursor(l.touches[0]),{x:u,y:h}=Br.default.getCursor(l.touches[1]),p=u-s,v=h-d;if(o=="start")this.pinchEffectInfo.origin={x:p,y:v,scale:this.scale.current};else if(o=="move"){let{origin:y}=this.pinchEffectInfo,b=Math.sqrt(Math.pow(y.x,2)+Math.pow(y.y,2)),C=Math.sqrt(Math.pow(p,2)+Math.pow(v,2))/b,w=Number(y.scale*C);this.set_scale(w)}}updateScale(r){let o=r;o=Math.max(o,this.scale.min),o=Math.min(o,this.scale.max),this.scale.current=o,this.drawImage()}updateFilter(r){this.Picture.grayScale=r.grayScale,this.Picture.tone=r.tone,this.Picture.rotate=r.rotate,this.modifyImage()}modifyImage(){return ir(this,null,function*(){let{grayScale:r,tone:o,rotate:l}=this.Picture,s=document.createElement("canvas"),d=s.getContext("2d"),u=yield Br.default.ImageLoader(this.Picture.originDataUrl),h=u.width,p=u.height;(l==90||l==270)&&(h=u.height,p=u.width),s.width=h,s.height=p,r&&(d.filter="grayscale("+r+"%)"),l&&(d.translate(h/2,p/2),d.rotate(l*Math.PI/180),[90,270].includes(l)?d.translate(-p/2,-h/2):d.translate(-h/2,-p/2)),d.drawImage(u,0,0,u.width,u.height);let v=d.getImageData(0,0,s.width,s.height),y=v.data;{r/=100;let T=[[255,255,255],[255,200,100],[170,170,255],[240,200,145],[128,255,255],[255,128,255],[255,255,128],[128,158,169],[128,112,162],[50,192,87],[246,100,140]][o],L=T[0]/255,A=T[1]/255,$=T[2]/255;for(let F=0;F<p;F++)for(let j=0;j<h;j++){var b=(F*h+j)*4;if(r){let U=.3*y[b]+.59*y[b+1]+.11*y[b+2];for(var C=0;C<3;C++){let K=y[b+C];y[b+C]=K+(U-K)*r}}y[b]*=L,y[b+1]*=A,y[b+2]*=$}}d.putImageData(v,0,0);let w=s.toDataURL("image/jpeg");{let T=yield Br.default.ImageLoader(w),{width:L,height:A}=T,$=L/A;this.Picture=D(_({},this.Picture),{elm:T,aspect:$,revisedAspect:this.pst.frame.aspect>$?this.pst.frame.w/L:this.pst.frame.h/A})}this.drawImage()})}drawImage(r,o){let{use:l,Canvas:{ctx:s,elm:d},pst:{frame:u}}=this,h=r||this.pst.imageX,p=o||this.pst.imageY;{let v=this.scale.current/100,y=this.Picture.revisedAspect*v,b=this.pst.centerX-h*y,C=this.pst.centerY-p*y,w=this.Picture.elm.width*y,T=this.Picture.elm.height*y;{let L=this.pst.frame.x+this.pst.frame.w-w,A=this.pst.frame.x,$=this.pst.frame.y+this.pst.frame.h-T,F=this.pst.frame.y,j=0;b<L&&(j=b-L),b>A&&(j=b-A);let U=0;C<$&&(U=C-$),C>F&&(U=C-F),this.dragEffectInfo.origin.x+=j/2/this.dragEffectInfo.frameExpandRate.x,this.dragEffectInfo.origin.y+=U/2/this.dragEffectInfo.frameExpandRate.y,b=Math.min(Math.max(b,L),A),C=Math.min(Math.max(C,$),F)}this.pst.outImage={x:b,y:C,w,h:T},s.clearRect(0,0,this.Canvas.elm.width,this.Canvas.elm.height),s.drawImage(this.Picture.elm,0,0,this.Picture.elm.width,this.Picture.elm.height,b,C,w,T)}{if(l=="square"){s.fillStyle="rgba( 20,24,20,.3 )",s.beginPath();let y=d.width/3*2,b=d.height/3*2,C=Math.min(y,b),w=Math.max(y,b);s.arc(d.width/2,d.height/2,w,0,Math.PI*2,!0),s.arc(d.width/2,d.height/2,C/2,0,Math.PI*2,!1),s.closePath(),s.fill()}else(l=="wallpaper.horizontal"||l=="wallpaper.vertical")&&(s.fillStyle="rgba( 20,24,20,.3 )");s.beginPath(),s.moveTo(0,0),s.lineTo(d.width,0),s.lineTo(d.width,d.height),s.lineTo(0,d.height),s.lineTo(0,0),s.closePath(),s.lineTo(u.x,u.y),s.lineTo(u.x,u.y+u.h),s.lineTo(u.x+u.w,u.y+u.h),s.lineTo(u.x+u.w,u.y),s.lineTo(u.x,u.y),s.fill();let v=(0,Br.default)(document.body).getStyleProperty("--color-theme-hsl");s.lineWidth=4,s.strokeStyle=`hsla( ${v},1 )`,s.strokeRect(u.x,u.y,u.w,u.h)}}export(){return ir(this,null,function*(){let{Canvas:r,develops:o,Picture:l,pst:{outImage:s,frame:d}}=this,u=s.w/l.elm.width,h=s.h/l.elm.height,p=(d.x-s.x)/u,v=(d.x-s.x+d.w)/u,y=(d.y-s.y)/h,b=(d.y-s.y+d.h)/h,C=Array.from({length:o.length}),w="image/jpeg";for(let T=0;T<o.length;T++){let{size:L,maxSize:A}=o[T];A=A||{S:1024*20,R:1024*100,L:1024*350}[L];let $={S:140,R:600,L:1200}[L],F=$;this.use=="wallpaper.horizontal"?F=$/3:this.use=="wallpaper.vertical"&&(F=$*2);let j=document.createElement("canvas");j.width=$,j.height=F;let U=j.getContext("2d");if(!U)return;U.clearRect(0,0,$,F),U.drawImage(this.Picture.elm,p,y,v-p,b-y,0,0,$,F);let K=j.toDataURL(w),M=yield K.toBlob(w);if(!M)return;if(M.size>=A){let ke=A/M.size;if(K=j.toDataURL(w,ke*.92),M=yield K.toBlob(w),!M)return}let oe=new File([M],this.val_file.name,{type:w});C[T]=oe}return C})}},M7={Core:a=>{let{val_file:r,options:o,finishedCallback:l,abortCallback:s}=a,{use:d,develops:u=[]}=o,[h]=(0,ss.useState)(Br.default.uuid.gen(32)),p={scale:{default:120,min:100,max:400},rotate:0,grayScale:0,tone:0},[v,y]=(0,ss.useState)(p.scale.default),[b,C]=(0,ss.useState)(p.rotate),[w,T]=(0,ss.useState)(p.grayScale),[L,A]=(0,ss.useState)(p.tone);return(0,ss.useEffect)(()=>{let $="CropperResize";return(0,Br.default)(window).addEvent({eventType:"resize",eventID:$,callback:()=>{Br.default.interval.clear("CropperResize"),Br.default.interval.standBy("CropperResize",200,()=>{var F;let j=xt("#Canvas-"+h)[0];if(!j)return;let U=(F=Ve.get(h))==null?void 0:F.Instance;if(!U)return;let K=j.position(),M=K.width/K.height;j.width=2400,j.height=2400/M;let{width:oe,height:ke}=j;U.pst.centerX=oe/2,U.pst.centerY=ke/2,U.frameSizing(),U.modifyImage()})}}),()=>{(0,Br.default)(window).removeEvent($)}},[]),(0,ss.useEffect)(()=>{Ve.set({[h]:{}}),ir(void 0,null,function*(){Qr.fn.corner.active(),yield Br.default.pending(()=>{},400);let{target:$}=yield r.convert();if(!$)return;let F=$.result,j=xt("#Canvas-"+h)[0];if(!j)return;let U=j.position(),K=U.width/U.height;j.width=2400,j.height=2400/K;let M=new Iw({set_scale:y,val_file:r,develops:u,use:d,scale:p.scale,componentID:h,canvas:j,picture:{image:yield Br.default.ImageLoader(F),grayScale:p.grayScale,tone:p.tone,rotate:p.rotate}});Ve.set({[h]:{Instance:M}});let oe=function(pe){if(pe.preventDefault(),pe.touches&&pe.touches.length>1)M.pinchEffect({eventType:"start",event:pe}),(0,Br.default)(document).addEvent({eventType:"touchmove",eventID:"CropperEffectMove",options:{passive:!1},callback:he=>{he.preventDefault(),M.pinchEffect({eventType:"move",event:he})}}).addEvent({eventType:"touchend",eventID:"CropperEffectEnd",options:{passive:!1},callback:J});else{M.dragEffect(_({eventType:"start"},Br.default.getCursor(pe)));let{type:he}=pe;(0,Br.default)(document).addEvent({eventType:he=="touchstart"?"touchmove":"mousemove",eventID:"CropperEffectMove",options:{passive:!1},callback:ce=>{ke("move",ce)}}).addEvent({eventType:he=="touchstart"?"touchend":"mouseup",eventID:"CropperEffectEnd",options:{passive:!1},callback:ce=>{ke("end",ce),J(ce)}})}},ke=function(pe,he){he.preventDefault(),M.dragEffect(_({eventType:pe},Br.default.getCursor(he)))},J=function(pe){pe.preventDefault(),(0,Br.default)(document).removeEvent(["CropperEffectMove","CropperEffectEnd"])};(0,Br.default)(j).removeEvent(["CropperMouseWheel","CropperTouchStart","CropperMouseDown"]).addEvent({eventID:"CropperMouseWheel",eventType:"wheel",callback:pe=>{pe.preventDefault();let he=Number(pe.wheelDelta*.04),ce=M.scale.current+he;ce=Math.max(ce,M.scale.min),ce=Math.min(ce,M.scale.max),y(ce)},options:{passive:!1}}).addEvent({eventType:"touchstart",eventID:"CropperTouchStart",callback:oe,options:{passive:!1}}).addEvent({eventType:"mousedown",eventID:"CropperMouseDown",callback:oe,options:{passive:!1}}),setTimeout(()=>{Qr.fn.corner.stop()},1e3)})},[r.id]),(0,ss.useEffect)(()=>{var $;let F=($=Ve.get(h))==null?void 0:$.Instance;F&&F.updateScale(v)},[v]),(0,ss.useEffect)(()=>{var $;let F=($=Ve.get(h))==null?void 0:$.Instance;F&&F.updateFilter({grayScale:w,tone:L,rotate:b})},[w,L,b]),(0,gt.jsx)(Ot.Body,{borderRadius:0,height:"viewHeight",width:"viewWidth",children:(0,gt.jsxs)(ft,{className:[fc("Wrap"),fc("Use_"+d)].join(" "),gap:0,height:1,position:"relative",overflow:"hidden",borderRadius:"inherit",children:[(0,gt.jsx)(E,{flexSizing:0,overflow:"hidden",position:"relative",backgroundColor:"black",flexCenter:!0,freeCSS:{zIndex:1},children:(0,gt.jsx)("canvas",{style:{width:"100%",height:"100%"},width:2400,height:2400,className:fc("Canvas"),id:"Canvas-"+h})}),(0,gt.jsxs)(Xe.Separate,{borderTop:!0,flexSizing:"none",backgroundColor:"layer.1",padding:1,verticalAlign:"unset",UnderBreakPointStyles:{flexType:"col"},children:[(0,gt.jsx)(M7.SettingRegion,{DefaultOptions:p,val_scale:v,set_scale:y,val_tone:L,set_tone:A,val_grayScale:w,set_grayScale:T,val_rotate:b,set_rotate:C}),(0,gt.jsxs)(Xe.Right,{flexSizing:"none",children:[(0,gt.jsx)(re.Button.Border.R,{isRounded:!0,onClick:()=>{s()},children:"\u9589\u3058\u308B"}),(0,gt.jsx)(re.Button.Prime.R,{isRounded:!0,boxShadow:"3.remark",onClick:()=>ir(void 0,null,function*(){var $;let F=($=Ve.get(h))==null?void 0:$.Instance;if(!F)return;Qr.fn.mini.active("CropperExportation");let j=yield F.export();setTimeout(()=>{Qr.fn.mini.stop("CropperExportation"),l(j)},3e3)}),children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(Qr.White.R,{loaderID:"CropperExportation"}),"\u6C7A\u5B9A"]})})]})]})]})})},SettingRegion:a=>{let r=["","\u6696\u8272","\u5BD2\u8272","\u30BB\u30D4\u30A2","\u30B7\u30A2\u30F3","\u30DE\u30BC\u30F3\u30BF","\u30A4\u30A8\u30ED\u30FC","\u30AA\u30EA\u30B8\u30CA\u30EB1","\u30AA\u30EA\u30B8\u30CA\u30EB2","\u30AA\u30EA\u30B8\u30CA\u30EB3","\u30AA\u30EA\u30B8\u30CA\u30EB4"],o=l=>r[l]||"\u306A\u3057";return(0,gt.jsxs)(Xe.Left,{verticalAlign:"unset",flexWrap:!0,children:[(0,gt.jsxs)(ft,{gap:"1/3",children:[(0,gt.jsx)(Je.Supplement,{children:"Rotate"}),(0,gt.jsxs)(Xe.Left,{flexChilds:"even",gap:"1/6",children:[(0,gt.jsx)(re.Button.Border.S,{isRounded:!0,borderTopRightRadius:0,borderBottomRightRadius:0,onClick:()=>{let l=a.val_rotate-90;l<0&&(l+=360),a.set_rotate(l)},children:(0,gt.jsxs)(Xe.Center,{gap:"1/4",children:["90\xB0",(0,gt.jsx)(Ce,{icon:I7.faRotateLeft})]})}),(0,gt.jsx)(re.Button.Border.S,{isRounded:!0,borderTopLeftRadius:0,borderBottomLeftRadius:0,onClick:()=>{a.set_rotate((a.val_rotate+90)%360)},children:(0,gt.jsxs)(Xe.Center,{gap:"1/4",children:[(0,gt.jsx)(Ce,{icon:P7.faRotateRight}),"90\xB0"]})})]})]}),(0,gt.jsxs)(ft,{gap:"1/3",freeCSS:{minWidth:12*6},children:[(0,gt.jsx)(Je.Supplement,{children:"Zoom"}),(0,gt.jsxs)(re.Button.Border.S,{flexCenter:!0,isRounded:!0,flexSizing:0,onClick:l=>{let s="CropperZoomEdit";Ba.open({tipsID:s,gravityPoint:3,event:l,close_option:{parentBlur:!1},freeCSS:{minWidth:12*26},content:(0,gt.jsx)(Ot.Body,{children:(0,gt.jsxs)(ft,{padding:1.5,children:[(0,gt.jsxs)(Xe.Separate,{children:[(0,gt.jsx)(Je.Paragraph,{children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(Ce.Search,{fontColor:"5.translucent"}),"Zoom"]})}),(0,gt.jsx)(re.Button.Sub.R,{color:"cloud",ssSphere:2.5,onClick:()=>{Ba.close(s)},children:(0,gt.jsx)(Ce.Times,{})})]}),(0,gt.jsx)(E,{borderBottom:!0,opacity:"low"}),(0,gt.jsx)(ut.Slider,{override:"force",value:a.val_scale-100,min:a.DefaultOptions.scale.min-100,max:a.DefaultOptions.scale.max-100,step:25,onUpdateValidValue:({eventType:d,value:u})=>{Br.default.interval.clear("Cropper.UpdateScale"),Br.default.interval.standBy("Cropper.UpdateScale",250,()=>{a.set_scale(u+100)})},legends:{enable:!0,custom:d=>"x"+Math.round(100+d)/100}})]})})})},children:[a.val_scale.rate(1,0),"%"]})]}),(0,gt.jsxs)(ft,{gap:"1/3",freeCSS:{minWidth:12*6},children:[(0,gt.jsx)(Je.Supplement,{children:"GrayScale"}),(0,gt.jsxs)(re.Button.Border.S,{flexCenter:!0,isRounded:!0,flexSizing:0,onClick:l=>{let s="CropperGrayScaleEdit";Ba.open({tipsID:s,gravityPoint:3,event:l,close_option:{parentBlur:!1},freeCSS:{minWidth:12*26},content:(0,gt.jsx)(Ot.Body,{children:(0,gt.jsxs)(ft,{padding:1.5,children:[(0,gt.jsxs)(Xe.Separate,{children:[(0,gt.jsx)(Je.Paragraph,{children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(Ce,{icon:N7.faPalette,fontColor:"5.translucent"}),"Gray Scale"]})}),(0,gt.jsx)(re.Button.Sub.R,{color:"cloud",ssSphere:2.5,onClick:()=>{Ba.close(s)},children:(0,gt.jsx)(Ce.Times,{})})]}),(0,gt.jsx)(E,{borderBottom:!0,opacity:"low"}),(0,gt.jsx)(ut.Slider,{value:a.val_grayScale,min:0,max:100,step:10,onUpdateValidValue:({value:d})=>{Br.default.interval.clear("Cropper.GrayScale"),Br.default.interval.standBy("Cropper.GrayScale",250,()=>{a.set_grayScale(d)})},legends:{enable:!0,custom:d=>d+"%"}})]})})})},children:[a.val_grayScale.rate(1,0),"%"]})]}),(0,gt.jsxs)(ft,{gap:"1/3",freeCSS:{minWidth:12*6},children:[(0,gt.jsx)(Je.Supplement,{children:"Tone"}),(0,gt.jsx)(re.Button.Border.S,{flexCenter:!0,isRounded:!0,flexSizing:0,onClick:l=>{let s="CropperToneEdit";Ba.open({tipsID:s,gravityPoint:3,event:l,close_option:{parentBlur:!1},freeCSS:{minWidth:12*26,maxWidth:12*24},content:()=>{let d=[];for(let u=1;u<=10;u++)d.push({value:u,label:(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(E,{ssSphere:1,className:[fc("ToneBall"),fc("ToneBall_"+u)].join(" ")}),(0,gt.jsx)(E,{textAlign:"left",flexSizing:0,children:o(u)})]})});return(0,gt.jsx)(Ot.Body,{children:(0,gt.jsxs)(ft,{padding:1.5,children:[(0,gt.jsxs)(Xe.Separate,{children:[(0,gt.jsx)(Je.Paragraph,{children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(Ce,{icon:O7.faBarsStaggered,fontColor:"5.translucent"}),"Tone"]})}),(0,gt.jsx)(re.Button.Sub.R,{color:"cloud",ssSphere:2.5,onClick:()=>{Ba.close(s)},children:(0,gt.jsx)(Ce.Times,{})})]}),(0,gt.jsx)(E,{borderBottom:!0,opacity:"low"}),(0,gt.jsx)(ut.Radio.Normal,{value:a.val_tone,gap:"1/2",cellStyles:{fontColor:"3.blur"},options:[{value:0,label:(0,gt.jsx)(E,{flexSizing:0,textAlign:"center",children:"\u306A\u3057"})},...d],onUpdateValidValue:({value:u})=>{a.set_tone(u)}})]})})}})},children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(E,{boxShadow:"2.remark",ssSphere:1,className:[fc("ToneBall"),fc("ToneBall_"+a.val_tone)].join(" ")}),o(a.val_tone)]})})]})]})}},Cm={openDialogNEdit:a=>ir(void 0,null,function*(){let r=yield ut.Filer.fn.openDialog({accept:"image",multiple:!1});Cm.openEditor(_({imageFile:r[0]},a))}),openEditor:a=>ir(void 0,null,function*(){let r="CropperImage";Ot.open({sheetID:r,type:"normal.middleCenter",size:"MAX",padding:0,margin:0,freeCSS:{maxWidth:"100vw"},content:(0,gt.jsx)(M7.Core,{val_file:a.imageFile,options:a,finishedCallback:o=>{Ot.close(r),a.onProcessFinished(o)},abortCallback:()=>{Ot.close(r)}}),close_option:{escapeKeyDown:!1}})})};var Fo=Z(Mt());var F7=()=>{let{href:a}=location;return(0,Fo.jsx)(Xe.Center,{padding:[4,1],children:(0,Fo.jsxs)(ft,{ssCardBox:!0,gap:2,padding:[3,2],textAlign:"center",width:1,freeCSS:{maxWidth:12*30},children:[(0,Fo.jsx)(Ce.LinkSlash,{fontColor:"theme",freeCSS:{fontSize:"3rem"}}),(0,Fo.jsxs)(E,{children:[(0,Fo.jsx)(Je.Paragraph,{children:"\u3053\u306E\u30DA\u30FC\u30B8\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093\u3002"}),(0,Fo.jsx)(Je.Supplement,{fontColor:"3.blur",children:"\u5165\u529B\u3055\u308C\u305F\u30EA\u30F3\u30AF\u306E\u30DA\u30FC\u30B8\u306F\u5B58\u5728\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002"})]}),(0,Fo.jsxs)(ft,{children:[(0,Fo.jsxs)(Je,{textAlign:"left",ssCardBox:"cloud",isSemiBoldFont:!0,padding:1,children:["\u30FB\u30EA\u30F3\u30AF\u304C\u6B63\u3057\u3044\u304B",(0,Fo.jsx)(E,{margin:["1/2",0],borderBottom:!0}),"\u30FB\u30EA\u30F3\u30AF\u306E\u6709\u52B9\u671F\u9650",(0,Fo.jsx)(E,{margin:["1/2",0],borderBottom:!0}),"\u30FB\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u7B49\u304C\u6B63\u3057\u3044\u304B"]}),"\u306A\u3069\u3092\u3082\u3046\u4E00\u5EA6\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"]}),(0,Fo.jsx)(re.Anchor.Link,{newTab:!0,href:a,children:a}),(0,Fo.jsx)(re.Anchor.BorderToFill.R,{href:"/",width:1,children:"\u30DB\u30FC\u30E0\u306B\u623B\u308B"})]})})};var U_=a=>{let[r,o]=(0,Cc.useState)(a.pathname),l=!0;r!==a.pathname&&(l=!1,o(a.pathname));let s=(0,Cc.useRef)(!1);(0,Cc.useEffect)(()=>{l&&(s.current?(Ot.closeAll(!0),as.fn.updateCSSProperty.reset()):s.current=!0)},[r]),l&&a.beforeCB&&a.beforeCB(location.href),(0,Cc.useEffect)(()=>{l&&a.afterFirstCB&&a.afterFirstCB(location.href)},[]),(0,Cc.useEffect)(()=>{l&&(setTimeout(()=>{window.dispatchEvent(new Event("resize"))},200),a.afterCB&&a.afterCB(location.href))},[r])};var us=Z(ma());var Mw=!1,w_=a=>ir(void 0,null,function*(){if(Mw)return{valid:!1,data:{}};let r=document.activeElement;r&&r.blur(),Mw=!0;let o=(0,us.default)(`[data-form="${a}"]`),l=1,s={};for(let d=0;d<o.length;d++){let u=o[d],{componentId:h=""}=u.dataset,p=Ve.get(h);p&&p.Refresh&&(yield p.Refresh());let{value:v,name:y,checked:b,dataset:{value:C,name:w="",inputType:T="",validation:L}}=o[d],A=C;if(y=y||w,L=+((L!=null?L:"true")=="true"),T=="hidden")A&&(A=JSON.parse(A));else if(["radio","checkbox","checker"].includes(T)){if(A){let F=us.default.toJson(A);if(!F.ok)continue;A=F.body,us.default.is.array(A)?A=A.map(j=>us.default.toJson(j).body):A=us.default.toJson(A).body,T=="radio"&&(A=A[0]),T=="checker"&&(A=!!A[0])}}else["autocomplete-single","autocomplete-multi"].includes(T)?(A=us.default.toJson(A).body,A.length&&(A=A.map(F=>us.default.toJson(F).body),T=="autocomplete-single"&&(A=A[0]))):T=="time"?A&&(A=us.default.toJson(A).body):T=="select"?A=us.default.toJson(A).body:T=="file"?p&&(A=p.Files):T=="slider"?A&&(A=us.default.toJson(A).body):T=="switch"&&(A=b|0);let $=(L!=null?L:1)|0;l&=$,L&&(s[y]=A)}return Mw=!1,{valid:!!l,data:s}});var Mn={open:a=>{window.open(a)},pushSync:a=>{window.location.href=a},push:(a,r)=>{if(r){Mn.open(a);return}Mn.pushAsync(a)},pushAsync:a=>{if(a.match(/https?:\/\//)){Mn.pushSync(a);return}Mn.__push(a)},back:()=>{Mn.__back()},__push:a=>{},__back:()=>{},setPushEffect:a=>{Mn.__push=a},setBackEffect:a=>{Mn.__back=a}};var Yr=Z(ma());var Ae={toConcreteBorderRadius:a=>{let r=lt.get().roundness|0;return a=="1.tone.primary"?a=[0,2,3,4,5,5][r]:a=="2.tone.secondary"?a=[0,1,2,3,4,5][r]:a=="3.tone.tertiary"&&(a=[0,"1/3","2/3",1,2,3][r]),a},ev:a=>Yr.default.is.exist(a),ClassNames:(a,r)=>{var o,l,s,d,u,h,p;let v=[],{gap:y,display:b,position:C,overflow:w,fontColor:T,fontSize:L,fontWeight:A,backgroundColor:$,textAlign:F,textDecoration:j,boxShadow:U,margin:K,marginTop:M,marginRight:oe,marginBottom:ke,marginLeft:J,padding:pe,paddingTop:he,paddingRight:ce,paddingBottom:P,paddingLeft:ee,top:me,right:z,bottom:ne,left:ve,border:be,borderTop:de,borderRight:Re,borderBottom:Pe,borderLeft:Oe,borderWidth:rt,borderColor:ze,borderStyle:pt,borderRadius:Kt,borderTopLeftRadius:Et,borderTopRightRadius:bt,borderBottomLeftRadius:It,borderBottomRightRadius:nt,flexSizing:Le,flexWrap:wt,flexType:zt,flexChilds:Yt,flexGrid:$t,horizontalAlign:oa,verticalAlign:sa,transition:xa,gridCenter:_r,gridCols:rr,maxHeight:lr,minHeight:Na,maxWidth:Oa,minWidth:Ia,width:mr,height:da,unitHeight:Ra,unitWidth:Pa,opacity:br}=r;{if(Ae.ev(b)&&v.push("dsp"+b),w){let I=Yr.default.flatArray(w);v.push("ovfl-x-"+I[0]),v.push("ovfl-y-"+(I[1]||I[0]))}Ae.ev(C)&&v.push("ps"+C),Ae.ev(F)&&v.push("txtalg"+F),Ae.ev(F)&&v.push("txtdeco"+j),Ae.ev(T)&&v.push("ftcl"+((o=String(T))==null?void 0:o.replace(/\./g,"_"))),Ae.ev(L)&&v.push("ftsz"+((l=String(L))==null?void 0:l.replace(/\..*/,""))),Ae.ev(A)&&v.push("ftwt"+(A==null?void 0:A.replace(/\..*/,""))),Ae.ev($)&&v.push("bgc"+((s=String($))==null?void 0:s.replace(/\./g,"_"))),Ae.ev(U)&&v.push("bs"+U);let He,ct,yt,Xt;Yr.default.is.exist(K)&&(Yr.default.is.array(K)?K.length==2?[He,ct,yt,Xt]=[...K,...K]:K.length==4&&([He,ct,yt,Xt]=K):He=ct=yt=Xt=K,M=M!=null?M:He,oe=oe!=null?oe:ct,ke=ke!=null?ke:yt,J=J!=null?J:Xt),Ae.ev(M)&&v.push("mrgt"+M),Ae.ev(oe)&&v.push("mrgr"+oe),Ae.ev(ke)&&v.push("mrgb"+ke),Ae.ev(J)&&v.push("mrgl"+J);let Gt,Ea,ga,Ka;Yr.default.is.exist(pe)&&(Yr.default.is.array(pe)?pe.length==2?[Gt,Ea,ga,Ka]=[...pe,...pe]:pe.length==4&&([Gt,Ea,ga,Ka]=pe):Gt=Ea=ga=Ka=pe,he=he!=null?he:Gt,ce=ce!=null?ce:Ea,P=P!=null?P:ga,ee=ee!=null?ee:Ka),Ae.ev(he)&&v.push("pdt"+he),Ae.ev(ce)&&v.push("pdr"+ce),Ae.ev(P)&&v.push("pdb"+P),Ae.ev(ee)&&v.push("pdl"+ee),Ae.ev(me)&&v.push("pstt"+me),Ae.ev(z)&&v.push("pstr"+z),Ae.ev(ne)&&v.push("pstb"+ne),Ae.ev(ve)&&v.push("pstl"+ve);{Yr.default.is.exist(be)&&(de=de!=null?de:be,Re=Re!=null?Re:be,Pe=Pe!=null?Pe:be,Oe=Oe!=null?Oe:be),Yr.default.is.boolean(de)&&(de=["unset","2.normal"][Number(de)]),Yr.default.is.boolean(Re)&&(Re=["unset","2.normal"][Number(Re)]),Yr.default.is.boolean(Pe)&&(Pe=["unset","2.normal"][Number(Pe)]),Yr.default.is.boolean(Oe)&&(Oe=["unset","2.normal"][Number(Oe)]),Ae.ev(de)&&v.push("b_t_ss"+((d=String(de))==null?void 0:d.replace(/\..*/,""))),Ae.ev(Re)&&v.push("b_r_ss"+((u=String(Re))==null?void 0:u.replace(/\..*/,""))),Ae.ev(Pe)&&v.push("b_b_ss"+((h=String(Pe))==null?void 0:h.replace(/\..*/,""))),Ae.ev(Oe)&&v.push("b_l_ss"+((p=String(Oe))==null?void 0:p.replace(/\..*/,""))),Yr.default.is.exist(rt)&&v.push("b_wth"+String(rt)),Yr.default.is.exist(ze)&&v.push("b_cl"+String(ze)),Yr.default.is.exist(pt)&&v.push("b_st"+String(pt));{let I,te,B,V;Yr.default.is.exist(Kt)&&(Yr.default.is.array(Kt)?Kt.length==4&&([I,te,V,B]=Kt):I=te=B=V=Kt,Et=Et!=null?Et:I,bt=bt!=null?bt:te,It=It!=null?It:B,nt=nt!=null?nt:V)}Ae.ev(Et)&&v.push("br_tl"+Ae.toConcreteBorderRadius(Et)),Ae.ev(bt)&&v.push("br_tr"+Ae.toConcreteBorderRadius(bt)),Ae.ev(It)&&v.push("br_bl"+Ae.toConcreteBorderRadius(It)),Ae.ev(nt)&&v.push("br_br"+Ae.toConcreteBorderRadius(nt))}if(Ae.ev(br)&&v.push("op"+br),Yr.default.is.exist(y)){let I,te;Yr.default.is.array(y)?(I=y[0],te=y[1]):I=te=y,v.push("gapRow"+I,"gapCol"+te)}Ae.ev(Le)&&v.push("flsz"+Le),Ae.ev(wt)&&v.push("flwrp"+wt),Ae.ev(zt)&&v.push("fltyp"+zt),Ae.ev(Yt)&&v.push("flchld"+Yt),Ae.ev($t)&&v.push("flgrid"+$t),Ae.ev(sa)&&v.push("flvrt"+sa),Ae.ev(oa)&&v.push("flhrz"+oa),Ae.ev(_r)&&v.push("grcnt"+_r),Ae.ev(rr)&&v.push("grcol"+rr),Ae.ev(da)&&v.push("hgt"+da),Ae.ev(mr)&&v.push("wdt"+mr),Ae.ev(Ra)&&v.push("unthgt"+Ra),Ae.ev(Pa)&&v.push("untwdt"+Pa),Ae.ev(xa)&&v.push("trnst"+xa),Ae.ev(lr)&&v.push("maxh"+lr),Ae.ev(Na)&&v.push("minh"+Na),Ae.ev(Oa)&&v.push("maxw"+Oa),Ae.ev(Ia)&&v.push("minw"+Ia)}return v.length?a+v.join(" "+a):""}},fm=a=>{let r=_({},a),{gradients:o,ssCardBox:l,ssSphere:s,ssSquare:d,ssPushable:u,ssAbsoluteCovered:h,ssTextEllipsis:p,flexCenter:v,flexNewLine:y,isLightFont:b,isBoldFont:C,isSemiBoldFont:w,isRounded:T,isSquare:L,freeCSS:A={}}=r,$=Ze(A,[]),F=Ze(r,["gradients","ssCardBox","ssSphere","ssSquare","ssPushable","ssAbsoluteCovered","ssTextEllipsis","flexCenter","flexNewLine","isLightFont","isBoldFont","isSemiBoldFont","isRounded","isSquare","freeCSS"]);if($=$||{},F=F||{},o){let{deg:j,colors:U}=o;$=D(_({},$),{background:`linear-gradient(${j}deg,${U.join(",")})`})}if(l){l===!0&&(l="border");let j={backgroundColor:"layer.1",borderRadius:"1.tone.primary",boxShadow:"0.min"};l=="border"?j.border=!0:l=="layer"?j.backgroundColor="layer.1":l=="cloud"?j.backgroundColor="cloud":l=="shadow"&&(j.boxShadow="0.normal"),lt.get().darkMode=="dim"&&(j.boxShadow="1.normal"),lt.get().darkMode=="dark"&&(j.boxShadow="1.remark"),$=_(_({},j.freeCSS),$),F=_(_({},j),F)}return s&&(v=v!=null?v:!0,F=_({padding:0,unitWidth:s,unitHeight:s,borderRadius:"sphere",flexSizing:"none"},F)),d&&(v=v!=null?v:!0,F=_({padding:0,unitWidth:d,unitHeight:d,flexSizing:"none"},F)),u&&(F=_({transition:"middle"},F),F=D(_({},F),{className:[F.className,"ssPushable"].join(" ")})),h&&(F=_({position:"absolute",top:0,left:0,right:0,bottom:0},F)),p&&(F=_({overflow:"hidden"},F),$=_({whiteSpace:"nowrap",textOverflow:"ellipsis"},$)),y&&(F=_({width:1,flexSizing:"none"},F)),v&&(F=_({display:"flex",horizontalAlign:"center",verticalAlign:"center"},F)),b&&(F.fontWeight="1.light"),w&&(F.fontWeight="3.semiBold"),C&&(F.fontWeight="4.bold"),T&&(Yr.default.is.number(T)?$.borderRadius=T*12:F.borderRadius="sphere"),L&&($.aspectRatio="1"),D(_({},F),{freeCSS:$})},In=a=>{let r=fm(a),{componentID:o,gap:l,display:s,position:d,overflow:u,fontColor:h,fontSize:p,fontWeight:v,backgroundColor:y,textAlign:b,textDecoration:C,boxShadow:w,margin:T,marginTop:L,marginRight:A,marginBottom:$,marginLeft:F,padding:j,paddingTop:U,paddingRight:K,paddingBottom:M,paddingLeft:oe,top:ke,right:J,bottom:pe,left:he,border:ce,borderTop:P,borderRight:ee,borderBottom:me,borderLeft:z,borderWidth:ne,borderColor:ve,borderStyle:be,borderRadius:de,borderTopLeftRadius:Re,borderTopRightRadius:Pe,borderBottomLeftRadius:Oe,borderBottomRightRadius:rt,flexSizing:ze,flexWrap:pt,flexType:Kt,flexChilds:Et,flexGrid:bt,horizontalAlign:It,verticalAlign:nt,transition:Le,gridCenter:wt,gridCols:zt,maxHeight:Yt,minHeight:$t,maxWidth:oa,minWidth:sa,width:xa,height:_r,unitHeight:rr,unitWidth:lr,opacity:Na,ssLastChildLossBorder:Oa,ssAbsoluteCovered:Ia,ssCardBox:mr,ssEffectsOnActive:da,ssPushable:Ra,ssSphere:Pa,ssSquare:br,ssTextEllipsis:He,isBoldFont:ct,isLightFont:yt,isSemiBoldFont:Xt,isRounded:Gt,flexCenter:Ea,flexNewLine:ga,gradients:Ka,UnderBreakPointStyles:I={},className:te="",freeCSS:B={}}=r,V=Ze(r,["componentID","gap","display","position","overflow","fontColor","fontSize","fontWeight","backgroundColor","textAlign","textDecoration","boxShadow","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderWidth","borderColor","borderStyle","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","flexSizing","flexWrap","flexType","flexChilds","flexGrid","horizontalAlign","verticalAlign","transition","gridCenter","gridCols","maxHeight","minHeight","maxWidth","minWidth","width","height","unitHeight","unitWidth","opacity","ssLastChildLossBorder","ssAbsoluteCovered","ssCardBox","ssEffectsOnActive","ssPushable","ssSphere","ssSquare","ssTextEllipsis","isBoldFont","isLightFont","isSemiBoldFont","isRounded","flexCenter","flexNewLine","gradients","UnderBreakPointStyles","className","freeCSS"]),q=_({},V),fe=[te];if(Oa&&fe.push("ssLastChildLossBorder_"+Oa),da){da=Yr.default.flatArray(da);for(let ie of da){let[Ie,Me]=ie.split(".");q["data-effect-"+Ie]="1",Me&&(q["data-effect-tone"]=Me)}}{let ie=Ae.ClassNames("amotf_",{gap:l,display:s,position:d,overflow:u,fontColor:h,fontSize:p,fontWeight:v,backgroundColor:y,textAlign:b,textDecoration:C,boxShadow:w,margin:T,marginTop:L,marginRight:A,marginBottom:$,marginLeft:F,padding:j,paddingTop:U,paddingRight:K,paddingBottom:M,paddingLeft:oe,top:ke,right:J,bottom:pe,left:he,border:ce,borderTop:P,borderRight:ee,borderBottom:me,borderLeft:z,borderWidth:ne,borderColor:ve,borderStyle:be,borderRadius:de,borderTopLeftRadius:Re,borderTopRightRadius:Pe,borderBottomLeftRadius:Oe,borderBottomRightRadius:rt,flexSizing:ze,flexWrap:pt,flexType:Kt,flexChilds:Et,flexGrid:bt,horizontalAlign:It,verticalAlign:nt,transition:Le,gridCenter:wt,gridCols:zt,maxHeight:Yt,minHeight:$t,maxWidth:oa,minWidth:sa,width:xa,height:_r,unitHeight:rr,unitWidth:lr,opacity:Na});fe.push(ie)}return I&&fe.push(Ae.ClassNames("amotf_bp",I)),B&&(q.style=_(_({},B),q.style)),(o||q["data-component-id"])&&(q["data-component-id"]=q["data-component-id"]||o),fe.length&&fe.join("")&&(q.className=fe.join(" ").trim().replace(/%/ig,"P").replace(/\d+px/ig,"PIX").replace(/\s+/ig," ").replace(/\//ig,"_").replace(/\./ig,"-")),q},Os=a=>{let{gap:r,display:o,position:l,overflow:s,fontColor:d,fontSize:u,fontWeight:h,backgroundColor:p,textAlign:v,textDecoration:y,boxShadow:b,margin:C,marginTop:w,marginRight:T,marginBottom:L,marginLeft:A,padding:$,paddingTop:F,paddingRight:j,paddingBottom:U,paddingLeft:K,top:M,right:oe,bottom:ke,left:J,border:pe,borderTop:he,borderRight:ce,borderBottom:P,borderLeft:ee,borderWidth:me,borderColor:z,borderStyle:ne,borderRadius:ve,borderTopLeftRadius:be,borderTopRightRadius:de,borderBottomLeftRadius:Re,borderBottomRightRadius:Pe,flexSizing:Oe,flexWrap:rt,flexType:ze,flexChilds:pt,flexGrid:Kt,horizontalAlign:Et,verticalAlign:bt,transition:It,gridCenter:nt,gridCols:Le,maxHeight:wt,minHeight:zt,maxWidth:Yt,minWidth:$t,width:oa,height:sa,unitHeight:xa,unitWidth:_r,opacity:rr,ssLastChildLossBorder:lr,ssAbsoluteCovered:Na,ssCardBox:Oa,ssEffectsOnActive:Ia,ssPushable:mr,ssSphere:da,ssSquare:Ra,ssTextEllipsis:Pa,isBoldFont:br,isLightFont:He,isSemiBoldFont:ct,isRounded:yt,flexCenter:Xt,flexNewLine:Gt,gradients:Ea,UnderBreakPointStyles:ga={},freeCSS:Ka={}}=a,I={};return Ae.ev(r)&&(I.gap=r),Ae.ev(o)&&(I.display=o),Ae.ev(l)&&(I.position=l),Ae.ev(s)&&(I.overflow=s),Ae.ev(d)&&(I.fontColor=d),Ae.ev(u)&&(I.fontSize=u),Ae.ev(h)&&(I.fontWeight=h),Ae.ev(p)&&(I.backgroundColor=p),Ae.ev(v)&&(I.textAlign=v),Ae.ev(y)&&(I.textDecoration=y),Ae.ev(b)&&(I.boxShadow=b),Ae.ev(C)&&(I.margin=C),Ae.ev(w)&&(I.marginTop=w),Ae.ev(T)&&(I.marginRight=T),Ae.ev(L)&&(I.marginBottom=L),Ae.ev(A)&&(I.marginLeft=A),Ae.ev($)&&(I.padding=$),Ae.ev(F)&&(I.paddingTop=F),Ae.ev(j)&&(I.paddingRight=j),Ae.ev(U)&&(I.paddingBottom=U),Ae.ev(K)&&(I.paddingLeft=K),Ae.ev(M)&&(I.top=M),Ae.ev(oe)&&(I.right=oe),Ae.ev(ke)&&(I.bottom=ke),Ae.ev(J)&&(I.left=J),Ae.ev(pe)&&(I.border=pe),Ae.ev(he)&&(I.borderTop=he),Ae.ev(ce)&&(I.borderRight=ce),Ae.ev(P)&&(I.borderBottom=P),Ae.ev(ee)&&(I.borderLeft=ee),Ae.ev(me)&&(I.borderWidth=me),Ae.ev(z)&&(I.borderColor=z),Ae.ev(ne)&&(I.borderStyle=ne),Ae.ev(ve)&&(I.borderRadius=ve),Ae.ev(be)&&(I.borderTopLeftRadius=be),Ae.ev(de)&&(I.borderTopRightRadius=de),Ae.ev(Re)&&(I.borderBottomLeftRadius=Re),Ae.ev(Pe)&&(I.borderBottomRightRadius=Pe),Ae.ev(Oe)&&(I.flexSizing=Oe),Ae.ev(rt)&&(I.flexWrap=rt),Ae.ev(ze)&&(I.flexType=ze),Ae.ev(pt)&&(I.flexChilds=pt),Ae.ev(Kt)&&(I.flexGrid=Kt),Ae.ev(Et)&&(I.horizontalAlign=Et),Ae.ev(bt)&&(I.verticalAlign=bt),Ae.ev(It)&&(I.transition=It),Ae.ev(nt)&&(I.gridCenter=nt),Ae.ev(Le)&&(I.gridCols=Le),Ae.ev(wt)&&(I.maxHeight=wt),Ae.ev(zt)&&(I.minHeight=zt),Ae.ev(Yt)&&(I.maxWidth=Yt),Ae.ev($t)&&(I.minWidth=$t),Ae.ev(oa)&&(I.width=oa),Ae.ev(sa)&&(I.height=sa),Ae.ev(xa)&&(I.unitHeight=xa),Ae.ev(_r)&&(I.unitWidth=_r),Ae.ev(rr)&&(I.opacity=rr),Ae.ev(lr)&&(I.ssLastChildLossBorder=lr),Ae.ev(Na)&&(I.ssAbsoluteCovered=Na),Ae.ev(Oa)&&(I.ssCardBox=Oa),Ae.ev(Ia)&&(I.ssEffectsOnActive=Ia),Ae.ev(mr)&&(I.ssPushable=mr),Ae.ev(da)&&(I.ssSphere=da),Ae.ev(Ra)&&(I.ssSquare=Ra),Ae.ev(Pa)&&(I.ssTextEllipsis=Pa),Ae.ev(br)&&(I.isBoldFont=br),Ae.ev(He)&&(I.isLightFont=He),Ae.ev(ct)&&(I.isSemiBoldFont=ct),Ae.ev(yt)&&(I.isRounded=yt),Ae.ev(Xt)&&(I.flexCenter=Xt),Ae.ev(Gt)&&(I.flexNewLine=Gt),Ae.ev(Ea)&&(I.gradients=Ea),Ae.ev(Ka)&&(I.freeCSS=Ka),Ae.ev(ga)&&(I.UnderBreakPointStyles=ga),I};var vl=Z(Mt());var V_=a=>{var r;let o=Pf.set("RootViewController_"+lt.get().sessionUID);return(0,vl.jsxs)(vl.Fragment,{children:[(0,vl.jsx)("style",{children:a.inlineCSS}),(0,vl.jsxs)("amotify-app",{id:"appRoot_"+lt.get().sessionUID,children:[(0,vl.jsx)(_u.Pudding.Wrapper,{}),(0,vl.jsx)(_u.Ripple.Wrapper,{}),(0,vl.jsx)(Qr.Wrapper,{}),(0,vl.jsx)(Gn.Wrapper,{}),(0,vl.jsx)(Ot.Wrapper,{}),(0,vl.jsx)(E,{className:["AMOTIFY_be","AMOTIFY_be_root",(r=a.isRootPage)==null||r?"AMOTIFY_be_origin":"",a.originClassName||""].join(" "),children:a.children},o)]})]})};var W_=Z(ma()),xt=a=>{let r=lt.get().appRoot;return W_.default.is.shadowRoot(r)?(0,W_.default)(r).find(a):(0,W_.default)(a)};var CG=Z(zw());lo(Cn,Z(zw()));var jw={};ad(jw,{DesignBook:()=>Y_});var m=Z(Mt()),cs=Z(ha()),gl=Z(ma());var ip={index:()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(vt,{gap:1,children:[(0,m.jsx)(E,{flexCenter:!0,children:(0,m.jsx)(y_,{ssSphere:6,children:"Placeholder"})}),(0,m.jsxs)(hr,{gridCols:3,gap:1,flexSizing:"auto",children:[(0,m.jsx)(E,{padding:2,backgroundColor:"layer.1"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.2"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.3"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.4"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.5"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.6"})]}),(0,m.jsxs)(hr,{gridCols:3,gap:"1/2",flexSizing:"auto",ssCardBox:!0,children:[(0,m.jsx)(E,{flexCenter:!0,fontColor:"1.clear",children:"FontColor1"}),(0,m.jsx)(E,{flexCenter:!0,fontColor:"2.normal",children:"FontColor2"}),(0,m.jsx)(E,{flexCenter:!0,fontColor:"3.blur",children:"FontColor3"}),(0,m.jsx)(E,{flexCenter:!0,fontColor:"4.thin",children:"FontColor4"}),(0,m.jsx)(E,{flexCenter:!0,fontColor:"5.translucent",children:"FontColor5"})]})]}),(0,m.jsx)(ip.Fonts,{}),(0,m.jsx)(ip.Box,{}),(0,m.jsx)(ip.Flex,{}),(0,m.jsx)(ip.Grid,{}),(0,m.jsx)(ip.Others,{})]}),Fonts:()=>(0,m.jsxs)(E,{ssCardBox:!0,children:[(0,m.jsx)(Je.SubTitle,{padding:1,borderBottom:!0,children:"Font"}),(0,m.jsxs)(E,{overflow:"auto",padding:1,children:[(0,m.jsx)(Je.Description,{padding:1,children:`<Box
980
+ T`.repeat(v-1)}let h=Os(r);return(0,ta.jsxs)(E,{position:"absolute",top:0,left:0,right:0,height:0,overflow:"hidden",opacity:"trans",freeCSS:{zIndex:3,pointerEvents:"none"},children:[(0,ta.jsx)(Je.Description,D(_({className:r.className},h),{position:"absolute",width:1,freeCSS:D(_({},h.freeCSS),{color:"orange"}),"data-input-shallow":o.componentID,children:(0,ta.jsx)(E,{"data-input-value-shallow":o.componentID,children:s})})),(0,ta.jsx)(Je.Description,D(_({className:r.className},h),{position:"absolute",left:0,freeCSS:D(_({},h.freeCSS),{backgroundColor:"transparent",color:"blue"}),"data-input-min-height-value-shallow":o.componentID,children:d})),(0,ta.jsx)(Je.Description,D(_({className:r.className},h),{position:"absolute",right:0,freeCSS:D(_({},h.freeCSS),{backgroundColor:"transparent",color:"red"}),"data-input-max-height-value-shallow":o.componentID,children:u}))]})},InputBox:a=>{let{rootStates:r,val_validate:o,set_validate:l,val_status:s,set_status:d,val_focus:u,set_focus:h,val_isComposing:p,set_isComposing:v}=a;if(r.multiline)return null;let y=r,{componentID:b,tone:C,required:w,restrict:T="text",form:L,autoComplete:A="off",autoCapitalize:$="off",minRows:F,maxRows:j,multiline:U,autoHeight:K,enableFormSubmit:M,clearButton:oe=!1,checkValidationAtFirst:ke,onChange:J,onKeyDown:pe,onValidate:he,onUpdateValue:ce,onUpdateValidValue:P,value:ee="",leftIndicator:me,rightIndicator:z,leftIcon:ne,rightIcon:ve,maxLength:be,min:de,max:Re,label:Pe,isLabelActive:Oe,wrapStyles:rt}=y,ze=Ze(y,["componentID","tone","required","restrict","form","autoComplete","autoCapitalize","minRows","maxRows","multiline","autoHeight","enableFormSubmit","clearButton","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","leftIndicator","rightIndicator","leftIcon","rightIcon","maxLength","min","max","label","isLabelActive","wrapStyles"]),pt=T=="password"||T=="concealed"?"password":"text",Kt=["number","digitNumber","creditCard"].includes(T)?"numeric":T=="email"?"email":"text";return(0,ta.jsx)(E,D(_({htmlTag:"input",type:pt,inputMode:Kt,"data-disabled":r.disabled,"data-form":L,"data-input-type":"text","data-show-validation":va.isShowValidation(o,s,!!ke),"data-validation":o.ok,"data-value":s.dataValue,"data-component-id":s.componentID,"data-input-origin":s.componentID,value:s.formatValue,autoComplete:A,autoCapitalize:$,onKeyDown:Et=>{let{key:bt,target:It}=Et;{let nt=It,{selectionStart:Le,selectionEnd:wt}=nt,zt=Number(Le),Yt=Number(wt),$t=s.formatValue[Number(zt)],oa=s.formatValue[Number(zt)-1];bt=="Delete"&&(T=="creditCard"&&$t==" "||T=="postal"&&$t=="-"||T=="digitNumber"&&$t==",")&&(nt.setSelectionRange(zt+1,Yt+1),Et.preventDefault()),bt=="Backspace"&&(T=="creditCard"&&oa==" "||T=="postal"&&oa=="-"||T=="digitNumber"&&oa==",")&&(nt.setSelectionRange(zt-1,Yt-1),Et.preventDefault()),bt=="Enter"||bt=="Tab"}if(["number","digitNumber","creditCard"].includes(T)&&bt=="Clear"&&d(nt=>D(_({},nt),{dataValue:"",formatValue:"",eventType:"update",eventID:wn.default.uuid.gen()})),["number","digitNumber"].includes(T)&&["ArrowUp","ArrowDown"].includes(bt)){let nt=+(bt=="ArrowUp")*2-1,Le=String(Number(s.dataValue)+nt);o.ok&&l({ok:!1,notice:[]}),d(wt=>D(_(_({},wt),wu.Validation.DataLeveling({min:de,max:Re,restrict:T,value:Le})),{eventType:"update",eventID:wn.default.uuid.gen()})),Et.preventDefault()}pe&&pe(Et),M&&va.SubmitForm(Et)},onChange:Et=>{let{value:bt,selectionStart:It,selectionEnd:nt}=Et.target,Le=wu.Validation.DataLeveling({min:de,max:Re,restrict:T,value:bt});p&&(Le.formatValue=bt),Le.formatValue!=s.formatValue&&(o.ok&&l({ok:!1,notice:[]}),d(wt=>D(_(_({},wt),Le),{prevValue:s.formatValue,eventType:"update",eventID:wn.default.uuid.gen(),caretFrom:Number(It),caretTo:Number(nt)})),J&&J(Et))},width:1},ze),{onFocus:Et=>{ze!=null&&ze.onFocus&&(ze==null||ze.onFocus(Et)),h(!0)},onBlur:Et=>{ze!=null&&ze.onBlur&&(ze==null||ze.onBlur(Et)),h(!1)},onCompositionStart:Et=>{ze!=null&&ze.onCompositionStart&&(ze==null||ze.onCompositionStart(Et)),v(!0)},onCompositionEnd:Et=>{if(ze!=null&&ze.onCompositionEnd&&(ze==null||ze.onCompositionEnd(Et)),T=="text")return;let bt=wu.Validation.DataLeveling({min:de,max:Re,restrict:T,value:s.formatValue});d(It=>D(_(_({},It),bt),{prevValue:It.formatValue,eventType:"update",eventID:wn.default.uuid.gen(),caretFrom:Number(It.formatValue.length+1),caretTo:Number(It.formatValue.length+1)})),v(!1)}}))},TextAreaBox:a=>{let{rootStates:r,val_focus:o,set_focus:l,val_validate:s,set_validate:d,val_status:u,set_status:h,isShallow:p}=a,v=r,{componentID:y,tone:b,required:C,form:w,label:T,isLabelActive:L,minRows:A,maxRows:$,multiline:F,autoHeight:j,enableFormSubmit:U,maxLength:K,checkValidationAtFirst:M,onChange:oe,onKeyDown:ke,onValidate:J,onUpdateValue:pe,onUpdateValidValue:he,value:ce="",leftIndicator:P,rightIndicator:ee,leftIcon:me,rightIcon:z,wrapStyles:ne}=v,ve=Ze(v,["componentID","tone","required","form","label","isLabelActive","minRows","maxRows","multiline","autoHeight","enableFormSubmit","maxLength","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","leftIndicator","rightIndicator","leftIcon","rightIcon","wrapStyles"]);return r.multiline?(0,ta.jsx)(E,D(_({htmlTag:"textarea","data-form":w,"data-input-type":"textarea","data-show-validation":va.isShowValidation(s,u,!!M),"data-validation":s.ok,"data-value":u.dataValue,"data-input-origin":u.componentID,"data-component-id":u.componentID,value:u.dataValue,width:1},ve),{onFocus:be=>{ve!=null&&ve.onFocus&&(ve==null||ve.onFocus(be)),l(!0)},onBlur:be=>{ve!=null&&ve.onBlur&&(ve==null||ve.onBlur(be)),l(!1)},onKeyDown:be=>{ke&&ke(be),U&&va.SubmitForm(be)},onChange:be=>{let{value:de}=be.target;s.ok&&d({ok:!1,notice:[]}),h(Re=>D(_({},Re),{dataValue:de,eventType:"update",eventID:wn.default.uuid.gen()})),oe&&oe(be)}})):null}},Q$=a=>{let{componentID:r,restrict:o="text",onUpdateValue:l,onUpdateValidValue:s,value:d="",min:u,max:h}=a,p=D(_({componentID:r},wu.Validation.DataLeveling({min:u,max:h,restrict:o,value:d})),{prevValue:"",eventType:"init",eventID:wn.default.uuid.gen(),caretFrom:null,caretTo:null}),[v,y]=(0,Ns.useState)(!1),[b,C]=(0,Ns.useState)(!1),[w,T]=(0,Ns.useState)(p),[L,A]=(0,Ns.useState)({ok:!1,notice:[]}),$={rootStates:a,val_focus:v,set_focus:y,val_isComposing:b,set_isComposing:C,val_status:w,set_status:T,val_validate:L,set_validate:A};return va.CommonEffects({type:"textfield",states:a,val_status:w,set_status:T,val_validate:L,set_validate:A,onUpdateValue:l,onUpdateValidValue:s,DefaultValidation:wu.Validation.Default,ExtraOverrideStates:_({},wu.Validation.DataLeveling({min:u,max:h,restrict:o,value:d}))}),(0,Ns.useEffect)(()=>{wu.setSelection({id:a.id,restrict:o,val_status:w})},[w]),(0,ta.jsxs)(Jr,{val_status:w,set_status:T,val_validate:L,states:$.rootStates,children:[(0,ta.jsx)(bc,{componentID:a.componentID,fontSize:a.fontSize,required:a.required,label:a.label,isActive:a.isLabelActive||v||!!w.dataValue}),(0,ta.jsx)(cw.Shallow,_({},$)),(0,ta.jsx)(cw.InputBox,_({},$)),(0,ta.jsx)(cw.TextAreaBox,_({},$))]})},Ll=a=>(a=_({autoHeight:!0,restrict:"text",fontSize:"2.normal"},a),a.rightIcon&&(a=_({paddingRight:3},a)),a.leftIcon&&(a=_({paddingLeft:3},a)),a.multiline?(a.minRows=a.minRows||5,a.maxRows=a.maxRows||20):(a.minRows=1,a.maxRows=1),(0,ta.jsx)(Hr,{componentID:a.componentID,children:Q$,states:No(a)})),Sn=Ll;Sn.Validate=wu.Validation.Text,Sn.Katakana=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"katakana",multiline:!1,autoHeight:!1})),Sn.HankakuKatakana=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"hankaku.katakana",multiline:!1,autoHeight:!1})),Sn.CreditCard=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"creditCard",multiline:!1,autoHeight:!1})),Sn.Tel=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"tel",multiline:!1,autoHeight:!1})),Sn.Number=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"number",multiline:!1,autoHeight:!1})),Sn.DigitNumber=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"digitNumber",multiline:!1,autoHeight:!1})),Sn.Email=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"email",multiline:!1,autoHeight:!1})),Sn.Url=a=>(0,ta.jsx)(Ll,D(_({},a),{restrict:"url",multiline:!1,autoHeight:!1})),Sn.Postal=a=>{let[r]=(0,Ns.useState)(wn.default.uuid.gen());return(0,Ns.useEffect)(()=>()=>{Ve.delete(r)},[]),(0,ta.jsx)(Ll,D(_({label:"\u90F5\u4FBF\u756A\u53F7"},a),{restrict:"postal",multiline:!1,autoHeight:!1,leftIndicator:(0,ta.jsx)(qf,{children:"\u3012"})}))},Sn.Password=a=>(0,ta.jsx)(Ll,D(_({label:"\u30D1\u30B9\u30EF\u30FC\u30C9",rightIndicator:(0,ta.jsx)(gc,{padding:0,children:(0,ta.jsx)(re.Button.Normal.R,{padding:[0,1],fontColor:"theme",borderRadius:"inherit",backgroundColor:"inherit",flexCenter:!0,height:1,ssEffectsOnActive:["expand"],onMouseOver:r=>{Ba.open({parent:r.currentTarget,gravityPoint:24,padding:[1,0],content:(0,ta.jsx)(Ba.Body,{children:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A"})})},tabIndex:-1,onClick:r=>{(0,wn.default)(r.target).parent().parent().find("input").callback(o=>{let l=o[0];l.type=l.type==="password"?"text":"password"})},children:(0,ta.jsx)(Ce,{icon:dw.faEye})})})},a),{restrict:"password",multiline:!1,autoHeight:!1})),Sn.Concealed=a=>(0,ta.jsx)(Ll,D(_({label:"\u79D8\u5BC6\u9375",rightIndicator:(0,ta.jsx)(gc,{padding:0,children:(0,ta.jsx)(re.Button.Normal.R,{padding:[0,1],fontColor:"theme",borderRadius:"inherit",backgroundColor:"inherit",flexCenter:!0,height:1,ssEffectsOnActive:["expand"],onMouseOver:r=>{Ba.open({parent:r.currentTarget,gravityPoint:24,padding:[1,0],content:(0,ta.jsx)(Ba.Body,{children:"\u5024\u3092\u8868\u793A"})})},tabIndex:-1,onClick:r=>{(0,wn.default)(r.target).parent().parent().parent().find("input").callback(o=>{let l=o[0];l.type=l.type==="password"?"text":"password"})},children:(0,ta.jsx)(Ce,{icon:dw.faEye})})})},a),{restrict:"concealed",multiline:!1,autoHeight:!1})),Sn.Money={JPY:a=>(0,ta.jsx)(Sn.DigitNumber,D(_({rightIndicator:(0,ta.jsx)(gc,{children:"\u5186"})},a),{multiline:!1,autoHeight:!1}))};var N_=Z(Mt()),fw=Z(ha()),pw=Z(ma());function Z$(a){let{value:r,states:o}=a,{required:l}=o,s=[];return l&&!r&&s.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!s.filter(({type:d})=>d=="invalid").length,notice:s}}var eG=a=>{let r=a,{componentID:o,tone:l,required:s,form:d,value:u,enableFormSubmit:h,checkValidationAtFirst:p,onInput:v,onKeyDown:y,onValidate:b,onUpdateValue:C,onUpdateValidValue:w,children:T="",leftIndicator:L,rightIndicator:A,leftIcon:$,rightIcon:F,freeCSS:j,wrapStyles:U}=r,K=Ze(r,["componentID","tone","required","form","value","enableFormSubmit","checkValidationAtFirst","onInput","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","children","leftIndicator","rightIndicator","leftIcon","rightIcon","freeCSS","wrapStyles"]),M={componentID:o,dataValue:u,eventType:"init",eventID:pw.default.uuid.gen()},[oe,ke]=(0,fw.useState)(M),[J,pe]=(0,fw.useState)({ok:!1,notice:[]});return va.CommonEffects({type:"contenteditable",states:a,val_status:oe,set_status:ke,val_validate:J,set_validate:pe,onUpdateValue:C,onUpdateValidValue:w,DefaultValidation:Z$}),(0,N_.jsx)(Jr,{val_status:oe,set_status:ke,val_validate:J,states:a,children:(0,N_.jsx)(E,D(_({contentEditable:!0,"data-form":d,"data-name":a.name,"data-input-type":"contenteditable","data-show-validation":va.isShowValidation(J,oe,!!p),"data-validation":J.ok,"data-value":oe.dataValue,"data-component-id":oe.componentID,onKeyDown:he=>{y&&y(he),h&&va.SubmitForm(he)},onInput:he=>{let ce=he.currentTarget,{innerHTML:P,innerText:ee}=ce;J.ok&&pe({ok:!1,notice:[]}),ke(me=>D(_({},me),{dataValue:ee,eventType:"update",eventID:pw.default.uuid.gen()})),v&&v(he)}},K),{children:T}))})},YN=a=>{a=_({rows:5},a),a.rightIcon&&(a=_({paddingRight:3},a)),a.leftIcon&&(a=_({paddingLeft:3},a)),a=D(_({},a),{freeCSS:_({whiteSpace:"pre-wrap"},a.freeCSS)});let r=No(a);return(0,N_.jsx)(Hr,{componentID:a.componentID,children:eG,states:r})};var gd=Z(Mt()),hw=Z(ha()),ym=Z(ma());function tG(a){let{value:r,states:o}=a,{required:l,numericOnly:s=!1,digits:d}=o,u=[];return l&&!r&&u.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),r&&(s&&r.match(/\D/)&&u.push({type:"invalid",label:"\u6570\u5B57\u306E\u307F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),r.length!=d&&u.push({type:"warn",label:"\u6700\u5F8C\u307E\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"})),{ok:!u.filter(({type:h})=>h=="invalid"||h=="warn").length,notice:u}}var aG=(a,r="")=>{let o=String(r),l=[];for(let s=0;s<a;s++)l[s]=o[s]||"";return{formatValue:l,dataValue:o}},$N=(a="")=>{let r=a,o=r.join("");return{formatValue:r,dataValue:o}},rG=a=>{let r=a,{tone:o,required:l,form:s,name:d,className:u="",digits:h,numericOnly:p=!1,enableFormSubmit:v,checkValidationAtFirst:y,onChange:b,onKeyDown:C,onValidate:w,onUpdateValue:T,onUpdateValidValue:L,value:A="",override:$,freeCSS:F,wrapStyles:j,combineInput:U,componentID:K,listStyles:M}=r,oe=Ze(r,["tone","required","form","name","className","digits","numericOnly","enableFormSubmit","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","override","freeCSS","wrapStyles","combineInput","componentID","listStyles"]),ke=D(_({componentID:a.componentID||""},aG(h,A)),{eventType:"init",eventID:ym.default.uuid.gen()}),[J,pe]=(0,hw.useState)(ke),[he,ce]=(0,hw.useState)({ok:!1,notice:[]});va.CommonEffects({type:"textfield",states:a,val_status:J,set_status:pe,val_validate:he,set_validate:ce,onUpdateValue:T,onUpdateValidValue:L,DefaultValidation:tG});let P=[];for(let ee=0;ee<h;ee++){let me=J.formatValue[ee],z={},ne=u;a.combineInput&&(ne=[u,Wf("DigitCharacterCell"),Wf("Combined")].join(" ")),P.push((0,gd.jsx)("input",{type:"text",inputMode:p?"numeric":a.inputMode||"text",value:me,"data-form-name":s,id:"Digit-"+ee+"-"+J.componentID,className:ne,style:_(_({},a.style),z),onKeyDown:ve=>{let{key:be,code:de}=ve;if(be=="Tab")return;ve.preventDefault();let Re=null;if(be=="Backspace"){let Pe=J.formatValue;Pe[ee]="",pe(Oe=>D(_(_({},Oe),$N(Pe)),{eventType:"update",eventID:ym.default.uuid.gen()})),Re=ee-1}else if(["ArrowLeft","ArrowRight"].includes(be)){let Pe=+(be=="ArrowRight")*2-1;Re=ee+Pe}else v&&va.SubmitForm(ve),(()=>{let Pe=de.match(/^(Key(.)|Digit(\d)|Numpad(\d))/);if(!Pe)return;let Oe=Pe[2]||Pe[3]||Pe[4];if(p&&!Oe.match(/\d/)||!Oe)return;let rt=J.formatValue;rt[ee]=Oe,pe(ze=>D(_(_({},ze),$N(rt)),{eventType:"update",eventID:ym.default.uuid.gen()})),Re=ee+1})();ym.default.is.exist(Re)&&xt("#Digit-"+Re+"-"+J.componentID).focus()},onChange:()=>{}},ee))}return(0,gd.jsxs)(Jr,{val_status:J,set_status:pe,val_validate:he,states:a,children:[(0,gd.jsx)(Bs,_({name:d,"data-input-type":"digitCharacters","data-form":s,"data-validation":he.ok,componentID:J.componentID,"data-value":J.dataValue},oe)),(0,gd.jsx)(vt,D(_({gap:"1/2",flexChilds:"even",flexWrap:!1,flexSizing:"auto"},M),{children:P}))]})},GN=a=>{a=_({},a),a=_({textAlign:"center",width:0},a),a.combineInput&&(a=D(_({textAlign:"center",width:0},a),{freeCSS:_({minWidth:12*2,marginRight:-1},a.freeCSS),listStyles:_({borderRadius:"2.tone.secondary",border:"unset",gap:0},a.listStyles)}));let r=In(No(a));return(0,gd.jsx)(Hr,{componentID:a.componentID,children:rG,states:r})};var ar=Z(Mt()),Oo=Z(ha()),wo=Z(ma());var fO=Z(eO()),pO=Z(sO());var Ua=Z(Mt()),Bl=Z(ha()),hn=Z(ma());function nG(a){let{value:r,states:o}=a,{required:l,options:s}=o,d=[];return l&&r==="null"&&d.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!d.filter(({type:u})=>u=="invalid").length,notice:d}}var gw={FilterSelectableOptions:(a,r)=>{let o=a.rootStates.options;return r||(o=o.filter(l=>l.type!="label")),o}},Xf={Shallow:a=>{let{rootStates:r,val_status:o}=a,l=Os(r);return(0,Ua.jsx)(E,{position:"absolute",top:0,left:0,right:0,height:0,overflow:"hidden",opacity:"trans",freeCSS:{zIndex:3,pointerEvents:"none"},children:(0,Ua.jsx)(Je.Description,D(_({className:r.className},l),{position:"absolute",width:1,freeCSS:D(_({},l.freeCSS),{color:"orange"}),children:(0,Ua.jsx)(E,{"data-input-value-shallow":o.componentID,children:"A"})}))})},Button:a=>{let{rootStates:r,val_preventOpenSelectorOnFocus:o,set_preventOpenSelectorOnFocus:l,val_optionFocused:s,set_optionFocused:d,val_validate:u,set_validate:h,val_status:p,set_status:v,val_selectorOpen:y,set_selectorOpen:b}=a,C=r,{tone:w,required:T,form:L,className:A,label:$,isLabelActive:F,placeholder:j,enableFormSubmit:U,emptySelect:K,checkValidationAtFirst:M,onValidate:oe,onUpdateValue:ke,onUpdateValidValue:J,value:pe="",options:he,leftIndicator:ce,rightIndicator:P,leftIcon:ee,rightIcon:me,componentID:z,status_id:ne,wrapStyles:ve,SelectedCellStyles:be,SelectorCellStyles:de,SelectorStyles:Re,SelectorGravityPoint:Pe}=C,Oe=Ze(C,["tone","required","form","className","label","isLabelActive","placeholder","enableFormSubmit","emptySelect","checkValidationAtFirst","onValidate","onUpdateValue","onUpdateValidValue","value","options","leftIndicator","rightIndicator","leftIcon","rightIcon","componentID","status_id","wrapStyles","SelectedCellStyles","SelectorCellStyles","SelectorStyles","SelectorGravityPoint"]),rt="select-sheet-"+r.componentID;return(0,Bl.useEffect)(()=>{if(r.disabled)return;let ze="select-click-"+r.componentID;if(y){let pt=(0,hn.default)('[data-input-origin="'+r.componentID+'"]');if(!pt)return;Ot.open({sheetID:rt,type:"custom",parent:pt[0],padding:["1/4",0],gravityPoint:r.SelectorGravityPoint||22,close_option:{aroundClick:!1},content:(0,Ua.jsx)(Xf.Selector,_({},a))}),(0,hn.default)(document).addEvent({eventID:ze,eventType:"click",callback:Kt=>{let Et=(0,hn.default)(Kt.target),bt=!!(0,hn.default)(Et).parent("."+ts("Core")).length;(0,hn.default)(Et).parent("."+ts("Selector")).length||bt||b(!1)}})}else(0,hn.default)(document).removeEvent([ze]),Ot.close(rt)},[y]),(0,Bl.useEffect)(()=>{if(p.eventType=="init")return;let ze=(0,hn.default)('[data-input-origin="'+r.componentID+'"]');ze&&ze.focus()},[p.dataValue]),(0,Bl.useEffect)(()=>{if(r.disabled||!y)return;let ze=Ve.get("refresh-select-selector-"+r.componentID);ze&&ze(a)},[r.options,p.dataValue,s]),(0,Ua.jsx)(Ua.Fragment,{children:(0,Ua.jsx)(E,D(_({tabIndex:0},Oe),{"data-disabled":r.disabled,"data-name":r.name,"data-form":L,"data-show-validation":va.isShowValidation(u,p,!!M),"data-validation":u.ok,"data-component-id":p.componentID,"data-input-origin":p.componentID,"data-value":p.dataValue,"data-input-type":"select",className:[A,ts("Core")].join(" "),onFocus:ze=>{if(Oe!=null&&Oe.onFocus&&(Oe==null||Oe.onFocus(ze)),!r.disabled){if(o)return l(!1);b(!0)}},onClick:ze=>{Oe!=null&&Oe.onClick&&(Oe==null||Oe.onClick(ze)),!r.disabled&&b(!0)},onKeyDown:ze=>{let{key:pt,metaKey:Kt,ctrlKey:Et}=ze,bt=Kt||Et;if(Oe!=null&&Oe.onKeyDown&&(Oe==null||Oe.onKeyDown(ze)),U&&va.SubmitForm(ze),!r.disabled){if(hn.default.scope(()=>{if(!["ArrowDown","ArrowUp"].includes(pt))return;if(ze.preventDefault(),!y)return b(!0);let It=pt=="ArrowDown"?1:-1,nt=gw.FilterSelectableOptions(a),Le=nt.length-1,wt=null;hn.default.scope(()=>{var zt,Yt,$t,oa;if(It==1){if(wt=((zt=nt[0])==null?void 0:zt.value)||null,s==null)return;if(bt){wt=nt[Le].value||wt||null;return}let sa=nt.findIndex(xa=>xa.value==s);if(sa==-1)return;wt=((Yt=nt[sa+1])==null?void 0:Yt.value)||wt||null}else{if(wt=nt[Le].value||null,s==null)return;if(bt){wt=(($t=nt[0])==null?void 0:$t.value)||wt||null;return}let sa=nt.findIndex(xa=>xa.value==s);if(sa==-1)return;wt=((oa=nt[sa-1])==null?void 0:oa.value)||wt||null}}),d(wt)}),pt=="Escape")b(!1);else if(pt=="Tab")b(!1);else if(pt=="Backspace")v(It=>D(_({},It),{dataValue:"null",eventType:"update",eventID:hn.default.uuid.gen()}));else if(pt==" ")ze.preventDefault(),b(!0);else if(pt=="Enter"){if(!y)return b(!0);if(!s)return;ze.preventDefault();let It=r.options.find(nt=>nt.value==s);if(!It)return;v(nt=>D(_({},nt),{dataValue:It.value,eventType:"update",eventID:hn.default.uuid.gen()})),b(!1)}}},children:(0,Ua.jsxs)(Xe.Left,{flexWrap:!0,gap:"1/3",freeCSS:{letterSpacing:".5px"},children:[(0,Ua.jsx)(Xf.Placeholder,_({},a)),(0,Ua.jsx)(Xf.Selected,_({},a)),(0,Ua.jsx)(yn,{width:0,overflow:"hidden",opacity:"trans",children:"A"})]})}))})},Placeholder:a=>!a.rootStates.placeholder||a.val_status.dataValue!=="null"?null:(0,Ua.jsx)(E,{position:"absolute",opacity:"middle",fontColor:"3.blur",children:a.rootStates.placeholder||""}),Selector:a=>{let[r,o]=(0,Bl.useState)(a),{rootStates:l}=r;(0,Bl.useEffect)(()=>{Ve.set({["refresh-select-selector-"+l.componentID]:h=>{o(h)}})},[]);let s=[],d=gw.FilterSelectableOptions(r,!0),u=gw.FilterSelectableOptions(r);return d.forEach((h,p)=>{let{type:v,value:y}=h,b=r.val_optionFocused==y,C=r.val_status.dataValue===y;if(v=="selector"){s.push((0,Ua.jsx)(re.Button.Sub.S,{color:"cloud",backgroundColor:"trans",borderRadius:0,fontColor:"2.normal",textAlign:"left",padding:["1/2",1.5],isActive:C||b,isActiveStyles:b?{backgroundColor:"cloud"}:{backgroundColor:"theme.opa.few",fontColor:"theme"},onClick:w=>{r.set_status(T=>D(_({},T),{dataValue:y,eventType:"update",eventID:hn.default.uuid.gen()})),r.set_selectorOpen(!1),r.set_preventOpenSelectorOnFocus(!0)},children:(0,Ua.jsx)(Je.Supplement,{paddingLeft:C?"1/2":0,transition:"short",children:h.label})},String(y)));return}s.push((0,Ua.jsx)(E,{children:h.label},hn.default.uuid.gen()))}),u.length||(s=[(0,Ua.jsx)(Je.Supplement,{padding:[0,1],fontColor:"4.thin",children:"\u5019\u88DC\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093"},"no-selector-notice")]),(0,Ua.jsx)(Ot.Body,{className:ts("Selector"),ssCardBox:!0,borderRadius:"3.tone.tertiary",boxShadow:"1.normal",freeCSS:{minWidth:12*18},children:(0,Ua.jsx)(ft,{gap:0,padding:[1,0],children:s})})},Selected:a=>{let r=[];return a.val_status.dataValue!=="null"&&hn.default.scope(()=>{let o=a.rootStates.options.find(l=>l.value==a.val_status.dataValue);o&&r.push((0,Ua.jsx)(E,D(_({},a.rootStates.SelectedCellStyles),{children:o.label}),String(o.value)))}),(0,Ua.jsx)(Ua.Fragment,{children:r})},Core:a=>{let{onUpdateValue:r,onUpdateValidValue:o,value:l}=a,s={componentID:a.componentID||"",dataValue:l,eventType:"init",eventID:hn.default.uuid.gen()},[d,u]=(0,Bl.useState)(!1),[h,p]=(0,Bl.useState)(s),[v,y]=(0,Bl.useState)(!1),[b,C]=(0,Bl.useState)(a.value||null),[w,T]=(0,Bl.useState)({ok:!1,notice:[]}),L={rootStates:a,val_preventOpenSelectorOnFocus:d,set_preventOpenSelectorOnFocus:u,val_optionFocused:b,set_optionFocused:C,val_selectorOpen:v,set_selectorOpen:y,val_status:h,set_status:p,val_validate:w,set_validate:T};return va.CommonEffects({type:"select",states:a,val_status:h,set_status:p,val_validate:w,set_validate:T,onUpdateValue:r,onUpdateValidValue:o,DefaultValidation:nG,ExtraOverrideStates:{dataValue:l,formatValue:l}}),(0,Ua.jsxs)(Jr,{val_status:h,set_status:p,val_validate:w,states:a,children:[(0,Ua.jsx)(bc,{componentID:a.componentID,fontSize:a.fontSize,required:a.required,label:a.label,isActive:a.isLabelActive||h.dataValue!=="null"}),(0,Ua.jsx)(Xf.Shallow,_({},L)),(0,Ua.jsx)(Xf.Button,_({},L))]})}},os=a=>(a=D(_({emptySelect:!0},a),{freeCSS:_({cursor:"pointer"},a.freeCSS)}),a.value=hn.default.JsonTo(a.value||null),a.emptySelect&&(a.options=[{value:null,label:(0,Ua.jsx)(Je.Supplement,{fontColor:"4.thin",children:"\u9078\u629E\u3092\u89E3\u9664"})},...a.options]),a.options.forEach((r,o)=>{let{type:l,value:s}=r;a.options[o]=D(_({},r),{type:l||"selector",value:hn.default.JsonTo(s)})}),hn.default.is.nullish(a.rightIcon)&&(a.rightIcon=(0,Ua.jsx)(pn,{children:(0,Ua.jsx)(Ce.AngleDown,{})})),a.rightIcon&&(a=_({paddingRight:3},a)),a.leftIcon&&(a=_({paddingLeft:3},a)),(0,Ua.jsx)(Hr,{componentID:a.componentID,children:Xf.Core,states:No(a)}));var We=Z(Mt()),cO=Z(ha()),Cu=Z(ha()),Ga=Z(ma());var Ar=Z(Mt()),_w=Z(ha()),yc=Z(ma());function oG(a){let{value:r,states:o}=a,{type:l,required:s,minSelect:d=0}=o,u=[];return s&&(r.length||l=="radio"&&u.push({type:"invalid",label:"\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093"})),d&&r.length<d&&u.push({type:"invalid",label:`${d}\u500B\u4EE5\u4E0A\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044`}),{ok:!u.filter(({type:h})=>h=="invalid").length,notice:u}}var Sm={OptionalListWrapper:a=>{let{value:r,options:o=[]}=a,l=yc.default.is.exist(r)?yc.default.flatArray(r):[],s=o.map(u=>{let{value:h,label:p}=u;return D(_({},u),{value:JSON.stringify(h),label:p})}),d=[];return l.forEach(u=>{let h=JSON.stringify(u);s.findIndex(p=>p.value==h)!=-1&&d.push(h)}),(0,Ar.jsx)(Sm.Core,D(_({},a),{value:d,options:s}))},Core:a=>{let r=a,{type:o,tone:l,required:s,componentID:d="",form:u,override:h,icon:p,iconType:v,CustomIcon:y,enableFormSubmit:b,checkValidationAtFirst:C,onValidate:w,onUpdateValue:T,onUpdateValidValue:L,value:A,options:$,className:F,cellStyles:j,cellClassName:U,cellCheckedStyles:K,cellCheckedClassName:M,minSelect:oe,hideInput:ke,freeCSS:J,wrapStyles:pe}=r,he=Ze(r,["type","tone","required","componentID","form","override","icon","iconType","CustomIcon","enableFormSubmit","checkValidationAtFirst","onValidate","onUpdateValue","onUpdateValidValue","value","options","className","cellStyles","cellClassName","cellCheckedStyles","cellCheckedClassName","minSelect","hideInput","freeCSS","wrapStyles"]),ce={componentID:d,dataValue:A,eventType:"init",eventID:yc.default.uuid.gen()},[P,ee]=(0,_w.useState)(ce),[me,z]=(0,_w.useState)({ok:!1,notice:[]});return va.CommonEffects({type:"list",states:a,val_status:P,set_status:ee,val_validate:me,set_validate:z,onUpdateValue:T,onUpdateValidValue:L,DefaultValidation:oG}),(0,Ar.jsxs)(Jr,{val_status:P,set_status:ee,val_validate:me,states:a,children:[(0,Ar.jsx)(Bs,D(_({"data-value":JSON.stringify(P.dataValue),form:u,"data-input-type":o,"data-validation":me.ok},he),{componentID:P.componentID})),(0,Ar.jsx)(Sm.List,{rootStates:a,val_status:P,set_status:ee})]})},List:a=>{let{rootStates:r,val_status:o,set_status:l}=a,{componentID:s,type:d,tone:u,icon:h=!0,options:p,name:v,form:y,tabIndex:b,hideInput:C,disabled:w,className:T,cellStyles:L,cellClassName:A="",cellCheckedStyles:$,cellCheckedClassName:F="",enableFormSubmit:j}=r,{dataValue:U}=o,K=r.CustomIcon,M=p.map((oe,ke)=>{let J=oe,{value:pe,label:he,disabled:ce,className:P="",checkedStyles:ee,checkedClassName:me="",freeCSS:z}=J,ne=Ze(J,["value","label","disabled","className","checkedStyles","checkedClassName","freeCSS"]),ve=yc.default.uuid.gen(),be=U.findIndex(Oe=>Oe===pe)!=-1,de=_(_({},L),ne),Re=[dd("Label"),A,P];be&&(de=D(_(_(_({},de),$),ee),{freeCSS:_(_(_({},de==null?void 0:de.freeCSS),$==null?void 0:$.freeCSS),ee==null?void 0:ee.freeCSS)}),Re=[...Re,F,me]);let Pe=()=>{if(w||ce)return;let Oe=[];if(d=="radio")Oe=[pe];else if(d=="checkbox"||d=="checker")if(!be)Oe=[...o.dataValue,pe];else{let rt=[...o.dataValue];rt.splice(o.dataValue.findIndex(ze=>ze==pe),1),Oe=rt}l(rt=>D(_({},rt),{dataValue:Oe,eventType:"update",eventID:yc.default.uuid.gen()}))};return[(0,Ar.jsx)(E,{htmlTag:"input",type:d=="radio"?"radio":"checkbox",className:dd("Input"),name:"RadioCheckbox-"+v,"data-list-index":s+"-"+ke,id:ve,value:String(pe),"data-form-name":y,disabled:w||ce,checked:be,onFocus:Oe=>{ce||d=="radio"&&(o.dataValue.length||l(rt=>D(_({},rt),{dataValue:[pe],eventType:"update",eventID:yc.default.uuid.gen()})))},onChange:()=>{Pe()},onKeyDown:Oe=>{let{key:rt,shiftKey:ze}=Oe;if((d=="checkbox"||d=="checker")&&rt!="Tab"&&rt.match(/Arrow/)){Oe.preventDefault();let pt=["ArrowLeft","ArrowUp"].includes(rt)?-1:1,Kt=ke+pt;Kt<0?Kt=p.length-1:Kt>=p.length&&(Kt=0),xt(`input[data-list-index="${s}-${Kt}"]`).focus()}j&&va.SubmitForm(Oe)},tabIndex:b},"List-"+JSON.stringify(pe)),(0,Ar.jsxs)(S_,D(_({"data-disabled":w||ce,htmlFor:ve,className:Re.join(" "),tabIndex:-1,display:"flex",verticalAlign:"center",gap:"1/6",flexWrap:!1},de),{children:[h&&(0,Ar.jsx)(K,{isChecked:be,toggle:()=>{Pe()}}),yc.default.is.string(he)?(0,Ar.jsx)(E,{children:he}):he]}),"ListTrigger-"+JSON.stringify(pe))]});return(0,Ar.jsx)(vt,{flexSizing:"auto",style:r.style,freeCSS:_({},r.freeCSS),className:[T,dd("CellBase"),dd("HideInput_"+C),dd("IconIndicator_"+!!h),dd("Tone_"+u)].join(" "),children:M})},RadioIcon:a=>(0,Ar.jsx)(re.Button.Normal.R,{ssPushable:!0,color:"cloud",tabIndex:-1,ssEffectsOnActive:"ripple.cloud",ssSphere:3,onClick:r=>{r.preventDefault(),r.stopPropagation(),a.toggle()},children:(0,Ar.jsx)(E,{ssSphere:1.5,border:"3.thick",borderWidth:2,borderColor:a.isChecked?"theme":"3.thick",position:"relative",transition:"middle",children:(0,Ar.jsx)(E,{position:"absolute",transition:"middle",isRounded:!0,backgroundColor:a.isChecked?"theme":"trans",opacity:a.isChecked?"max":"trans",freeCSS:{width:"60%",height:"60%",transform:a.isChecked?"scale(1)":"scale(.6)"}})})}),CheckboxIcon:a=>(0,Ar.jsx)(re.Button.Normal.R,{ssPushable:!0,color:"cloud",tabIndex:-1,ssEffectsOnActive:"ripple.cloud",ssSphere:3,onClick:r=>{r.preventDefault(),r.stopPropagation(),a.toggle()},children:(0,Ar.jsx)(E,{ssSquare:1.5,flexCenter:!0,border:"3.thick",borderWidth:2,borderColor:a.isChecked?"theme":"3.thick",borderRadius:"3.tone.tertiary",position:"relative",backgroundColor:a.isChecked?"theme":"trans",transition:"middle",fontColor:"white",children:(0,Ar.jsx)(Ce.Check,{transition:"middle",opacity:a.isChecked?"max":"trans",freeCSS:{zIndex:8}})})})},bw=a=>{a=a||"checkbox";let r=l=>(l=D(_({gap:"1/2",iconType:a=="radio"?"radio":"checkbox"},l),{type:a,cellStyles:_({position:"relative",borderRadius:"2.tone.secondary",transition:"middle"},l.cellStyles)}),l.CustomIcon||(l.iconType=="radio"?l.CustomIcon=Sm.RadioIcon:l.iconType=="checkbox"&&(l.CustomIcon=Sm.CheckboxIcon)),l.tone=="normal"?(l.cellStyles=_({padding:["1/4",1],border:"1.thin",isRounded:!0,backgroundColor:"layer.1"},l.cellStyles),l.cellCheckedStyles=_({borderColor:"theme",fontColor:"theme",boxShadow:"1.normal"},l.cellCheckedStyles)):l.tone=="border"?(l.cellStyles=_({paddingRight:1,border:"1.thin",isRounded:!0,backgroundColor:"layer.1"},l.cellStyles),l.cellCheckedStyles=_({borderColor:"theme",fontColor:"theme"},l.cellCheckedStyles)):l.tone=="cloud"&&(l.cellStyles=_({paddingRight:1,isRounded:!0,border:"1.thin",backgroundColor:"layer.2"},l.cellStyles),l.cellCheckedStyles=_({backgroundColor:"cloud",fontColor:"theme"},l.cellCheckedStyles)),l=In(l),(0,Ar.jsx)(Hr,{componentID:l.componentID,children:Sm.OptionalListWrapper,states:l})),o=r;return o.Normal=l=>(0,Ar.jsx)(r,_({type:a,tone:"normal",icon:!1},l)),o.Border=l=>(0,Ar.jsx)(r,_({type:a,tone:"border"},l)),o.Cloud=l=>(0,Ar.jsx)(r,_({type:a,tone:"cloud"},l)),o.Vivid=l=>(0,Ar.jsx)(r,_({type:a,tone:"normal",icon:!1,cellCheckedStyles:{backgroundColor:"theme",fontColor:"white"}},l)),o.Simple=l=>(0,Ar.jsx)(r,_({type:a,tone:"plain",icon:!1,cellCheckedStyles:{fontColor:"theme"}},l)),o},O_=bw("checkbox"),_d=bw("radio"),uO=bw();var yw=a=>{var r,o;let l=[],s=Number((r=a==null?void 0:a.min)!=null?r:1900),d=Number((o=a==null?void 0:a.max)!=null?o:Ga.default.Time().addYear(10).year);for(let u=s;u<=d;u++)l.unshift({value:u,label:[u,...Ga.default.transformer.wareki(u).value].join(" - ")});return l},dO=a=>{let{restrict:r,era:o="year",defaultValue:l=""}=a;a=_({},a),a.tipsID=a.tipsID||Ga.default.uuid.gen();let s=(0,Cu.useRef)(!1),[d,u]=(0,Cu.useState)((()=>{var p,v;if(r=="clock"){let y=String(l).split(/[^\d]/);y[0]||(y=[0,0]);let b=Number(y[0]),C=Number(y[1]);return{modifiedType:"init",hour:b,minutes:C}}else if(r=="date"){let[y,b,C]=(p=String(l))==null?void 0:p.split(/\D/);return(Ga.default.is.nullish(y)||Ga.default.is.nullish(b)||Ga.default.is.nullish(C))&&([y,b,C]=Ga.default.Time().toFormat("%Y-%M-%D").split("-")),{modifiedType:"init",year:Number(y),month:Number(b),date:Number(C)}}else if(r!="week"){if(r=="month"){let[y,b]=String(l).split(/\D/);return(Ga.default.is.nullish(y)||Ga.default.is.nullish(b))&&([y,b]=Ga.default.Time().toFormat("%Y-%M").split("-")),{modifiedType:"init",year:Number(y),month:Number(b)}}else if(r=="year"){let[y]=String(l).split(/\D/);return Ga.default.is.nullish(y)&&([y]=Ga.default.Time().toFormat("%Y").split("-")),{modifiedType:"init",year:Number(y)}}else if(r=="dateWareki"){let[y,b,C]=(v=String(l))==null?void 0:v.split(/\D/);return(Ga.default.is.nullish(y)||Ga.default.is.nullish(b)||Ga.default.is.nullish(C))&&([y,b,C]=Ga.default.Time().toFormat("%Y-%M-%D").split("-")),{modifiedType:"init",era:o||"year",year:Number(y),month:Number(b),date:Number(C)}}}return{}})());(0,Cu.useEffect)(()=>{if(s.current){if(d.modifiedType=="update"){let p="",v=o||"year";if(r=="clock"){let{hour:y,minutes:b}=d;p=[y.zeroEmbed(2),b.zeroEmbed(2)].join("/")}else if(r=="date"){let{year:y,month:b,date:C}=d;p=[y,b.zeroEmbed(2),C.zeroEmbed(2)].join("/")}else if(r!="week"){if(r=="month"){let{year:y,month:b}=d;p=[y,b.zeroEmbed(2)].join("/")}else if(r=="year"){let{year:y}=d;p=String(y)}else if(r=="dateWareki"){let{year:y,month:b,date:C,era:w}=d;v=w,p=[y,b.zeroEmbed(2),C.zeroEmbed(2)].join("/")}}a.onValueUpdate(p,v)}}else s.current=!0},[d]);let h=D(_({},a),{val_value:d,set_value:u});return(0,We.jsx)(E,{backgroundColor:"layer.1",borderRadius:"2.tone.secondary",boxShadow:"1.remark",border:!0,overflow:"hidden",children:(0,We.jsx)(E,{overflow:"auto",className:zr(r.toCapital()+"Base"),children:r=="clock"?(0,We.jsx)(Wr.Clock.index,_({},h)):r=="date"?(0,We.jsx)(Wr.Date.index,_({},h)):r=="week"?"":r=="month"?(0,We.jsx)(Wr.Month.index,_({},h)):r=="year"?(0,We.jsx)(Wr.Year.index,_({},h)):r=="dates"||r=="months"?"":r=="dateWareki"?(0,We.jsx)(Wr.DateWareki.index,_({},h)):(0,We.jsx)(We.Fragment,{})})})},Wr={Clock:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,[h,p]=(0,Cu.useState)(d.hour>12?2:1),[v,y]=(0,Cu.useState)(Number(localStorage.getItem("timePickerUnit")||5));(0,Cu.useEffect)(()=>{localStorage.setItem("timePickerUnit",String(v))},[v]);let{hour:b,minutes:C}=d;return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsxs)(vt,{flexType:"row",flexWrap:!1,gap:1,className:zr("Body"),children:[(0,We.jsxs)(ft,{className:zr("DesignSide"),flexSizing:0,children:[(0,We.jsx)(E,{className:zr("ClockUiBase"),padding:[1,"2/3"],flexCenter:!0,children:(0,We.jsxs)(E,{className:zr("ClockUi"),backgroundColor:"theme.opa.low",isRounded:!0,position:"relative",children:[(0,We.jsx)(E,{position:"absolute",backgroundColor:"theme",unitWidth:"1/12",className:[zr("Needle"),zr("hour")].join(" "),freeCSS:{transform:`rotate(${b*30+C/2}deg)`}}),(0,We.jsx)(E,{position:"absolute",backgroundColor:"theme",unitWidth:"1/12",className:[zr("Needle"),zr("minute")].join(" "),freeCSS:{transform:`rotate(${C*6}deg)`}})]})}),(0,We.jsx)(_d,{icon:!0,value:[h],options:[{value:1,label:"AM"},{value:2,label:"PM"}],flexType:"col",gap:0,cellStyles:{padding:"1/2",horizontalAlign:"between",gap:"1/3"},tabIndex:-1,onUpdateValidValue:({value:w})=>{let T=d.hour%12+(w==2?12:0);p(w),u({modifiedType:"update",hour:T,minutes:d.minutes})}}),(0,We.jsx)(E,{borderTop:!0,margin:[0,1]}),(0,We.jsx)(_d,{icon:!0,value:[v],options:[{value:1,label:"/ 1\u5206"},{value:2,label:"/ 2\u5206"},{value:5,label:"/ 5\u5206"}],flexType:"col",gap:0,cellStyles:{padding:"1/2",horizontalAlign:"between",gap:"1/3"},tabIndex:-1,onUpdateValidValue:({value:w})=>{y(w)}})]}),(0,We.jsxs)(ft,{children:[(0,We.jsxs)(E,{flexCenter:!0,isSemiBoldFont:!0,fontSize:"3.paragraph",children:[d.hour.zeroEmbed(2)," : ",d.minutes.zeroEmbed(2)]}),(0,We.jsxs)(vt,{flexWrap:!1,borderRadius:"1.tone.primary",boxShadow:"0.remark.inset",flexChilds:"even",padding:["1/3",0],freeCSS:{minWidth:12*12},children:[(0,We.jsx)(ft,{gap:0,overflow:"auto",padding:"2/3",borderRight:!0,freeCSS:{maxHeight:12*22},children:Wr.Clock.Hours({onClick:w=>{let T=w+(h==2?12:0);u({modifiedType:"update",hour:T,minutes:d.minutes})},min:r,max:o,ampm:h})}),(0,We.jsx)(ft,{gap:0,overflow:"auto",padding:"2/3",freeCSS:{maxHeight:12*22},children:Wr.Clock.Minutes({onClick:w=>{u({modifiedType:"update",hour:d.hour,minutes:w})},min:r,max:o,unit:v})})]})]})]}),(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l})]})},Hours:a=>{let r=[];for(let o=0;o<12;o++){let l=a.ampm==2?o+12:o,s=!1;{let d=Number(String(l*100).replace(/\D/ig,""));if(a.min&&Number(String(a.min).replace(/\D/ig,""))>d&&(s=!0),a.max){let u=Number(String(a.max).replace(/\D/ig,""));d>u&&(s=!0)}}r.push((0,We.jsx)(re.Button.Normal.R,{isLocked:s,borderBottom:!0,borderRadius:0,padding:["1/2",1],freeCSS:{whiteSpace:"nowrap"},tabIndex:-1,onClick:()=>{a.onClick(o)},children:l.zeroEmbed(2)},o))}return r},Minutes:a=>{let r=[];for(let o=0;o<60/a.unit;o++){let l=o*a.unit;r.push((0,We.jsx)(re.Button.Normal.R,{borderBottom:!0,borderRadius:0,padding:["1/2",1],freeCSS:{whiteSpace:"nowrap"},tabIndex:-1,onClick:()=>{a.onClick(l)},children:l.zeroEmbed(2)},l))}return r}},Date:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,{year:h,month:p,date:v}=d;return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsxs)(vt,{flexWrap:!0,verticalAlign:"center",horizontalAlign:"between",children:[(0,We.jsxs)(vt,{verticalAlign:"bottom",horizontalAlign:"left",gap:"2/3",flexWrap:!1,children:[(0,We.jsx)(os,{override:"force",emptySelect:!1,value:h,options:yw(),border:"1.thin",padding:["1/3","2/3"],paddingRight:2,onUpdateValidValue:({value:y})=>{u({modifiedType:"update",year:Number(y),month:p,date:v})},rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})})}),(0,We.jsx)(os,{override:"force",emptySelect:!1,value:p,options:(()=>{let y=[];for(let b=1;b<=12;b++)y.push({value:b,label:String(b),displayLabel:String(b)+"\u6708"});return y})(),border:"1.thin",padding:["1/3","2/3"],paddingRight:2,rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})}),onUpdateValidValue:({value:y})=>{u({modifiedType:"update",year:h,month:Number(y),date:v})}})]}),(0,We.jsx)(Wr.Variables.ShiftButtons,{callback:y=>{let b=p+y,C=h;y==-1?(b<=0&&C--,b=b||12):p==12&&C++,u({modifiedType:"update",year:C,month:b,date:d.date})}})]}),(0,We.jsx)(E,{borderTop:!0}),(0,We.jsx)(E,{children:Wr.Date.MonthCalendar({min:r,max:o,year:d.year,month:d.month,current:[d.year,d.month,d.date],callback:y=>{let[b,C,w]=y;u({modifiedType:"update",year:b,month:C,date:w})}})}),(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l})]})},MonthCalendar:a=>{let{min:r,max:o,year:l,month:s,current:d,callback:u}=a,h=Ga.default.Time(),p=Ga.default.Time([l,s.zeroEmbed(2),"01"].join("/")),v=p.getLastDayOfTheMonth(),y=Ga.default.Time(p).addMonth(-1).getLastDayOfTheMonth().date,b=[],C=[],w=[],T=[],L={padding:0,unitWidth:3,unitHeight:3,flexCenter:!0,borderRadius:"3.tone.tertiary"};for(var A=0;A<7;A++)b.push((0,We.jsx)(E,D(_({className:[zr("CalendarDay"),zr("Legend")].join(" ")},L),{children:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"][A]}),A));for(var A=0;A<p.weekday;A++)C.unshift((0,cO.createElement)(E,D(_({className:[zr("CalendarDay"),zr("Dummy")].join(" "),fontColor:"4.thin"},L),{key:A}),y-A));for(var A=1;A<=v.date;A++){let F=A,j=l==h.year&&s==h.month&&A==h.date,U=!1;{let K=Number(String([l,s.zeroEmbed(2),A.zeroEmbed(2)].join("/")).replace(/\D/ig,""));if(a.min&&Number(String(a.min).replace(/\D/ig,""))>K&&(U=!0),a.max){let M=Number(String(a.max).replace(/\D/ig,""));K>M&&(U=!0)}}w.push((0,We.jsx)(re.Button.Clear.R,D(_({className:[zr("CalendarDay"),zr("isToday_"+j)].join(" ")},L),{fontColor:"1.clear",padding:0,flexCenter:!0,isRounded:!0,ssEffectsOnActive:"shrink",onClick:()=>{u([l,s,F])},tabIndex:-1,isLocked:U,children:A}),F))}for(var A=1;A<7-v.weekday;A++)T.push((0,We.jsx)(E,D(_({className:[zr("CalendarDay"),zr("Dummy")].join(" "),fontColor:"4.thin"},L),{children:A}),A));return(0,We.jsxs)(hr,{gridCols:7,gap:"1/3",children:[b,C,w,T]})}},Month:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,{year:h,month:p}=d;return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsxs)(Xe.Separate,{gap:0,children:[(0,We.jsx)(Xe.Center,{verticalAlign:"bottom",gap:"2/3",children:(0,We.jsx)(os,{emptySelect:!1,value:h,options:yw(),override:"force",border:"1.thin",padding:["1/3","2/3"],paddingRight:2,rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})}),onUpdateValidValue:({value:v})=>{u({modifiedType:"update",year:Number(v),month:p})}})}),(0,We.jsx)(Wr.Variables.ShiftButtons,{callback:v=>{let y=Math.min(Math.max(h+v,1900),2100);u({modifiedType:"update",year:y,month:p})}})]}),(0,We.jsx)(E,{borderTop:!0}),Wr.Month.Months({min:r,max:o,year:d.year,callback:v=>{let[y,b]=v;u({modifiedType:"update",year:y,month:b})}}),(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l})]})},Months:a=>{let{year:r,callback:o}=a,l=Ga.default.Time(),s=[];for(let d=1;d<=12;d++){let u=r==l.year&&d==l.month,h=!1;{let v=Number(String([r,d.zeroEmbed(2)].join("/")).replace(/\D/ig,""));if(a.min&&Number(String(a.min).replace(/\D/ig,""))>v&&(h=!0),a.max){let y=Number(String(a.max).replace(/\D/ig,""));v>y&&(h=!0)}}let p=[zr("Cell"),u?zr("isThisMonth"):""].join(" ");s.push((0,We.jsxs)(re.Button.Clear.R,{className:p,isLocked:h,fontColor:"2.normal",padding:["1/3",1],ssEffectsOnActive:"shrink",onClick:()=>{o([r,d])},children:[d," \u6708"]},r+"-"+d))}return(0,We.jsx)(hr,{gridCols:4,gap:"2/3",children:s})}},Year:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,{year:h}=d;return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsx)(os,{emptySelect:!1,value:h||Ga.default.Time().year,override:"force",options:yw({min:r,max:o}),onUpdateValidValue:({value:p})=>{u({modifiedType:"update",year:Number(p)})}}),(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l,onSubmit:()=>{u({modifiedType:"update",year:Number(h||Ga.default.Time().year)})}})]})}},DateWareki:{index:a=>{let{min:r,max:o,onValueUpdate:l,tipsID:s,val_value:d,set_value:u}=a,{era:h,year:p,month:v,date:y}=d,b={val_value:d,set_value:u};return(0,We.jsxs)(E,{children:[(0,We.jsxs)(Xe.Left,{borderBottom:!0,gap:0,verticalAlign:"unset",children:[(0,We.jsx)(Wr.DateWareki.EraSelect,_({},b)),(0,We.jsx)(E,{borderRight:!0}),(0,We.jsx)(Wr.DateWareki.Calendar,_({},b))]}),(0,We.jsx)(E,{padding:1,children:(0,We.jsx)(Wr.Variables.Footer,{tipsID:s,onValueUpdate:l})})]})},EraSelect:a=>{let{val_value:r,set_value:o}=a,l={padding:["1/2",1.5],fontColor:"3.blur"},s={backgroundColor:"cloud",fontColor:"2.normal",isSemiBoldFont:!0};return(0,We.jsxs)(ft,{padding:1,gap:0,children:[(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="year",onClick:()=>{let d=Ga.default.Time();o({modifiedType:"update",era:"year",year:d.year,month:d.month,date:d.date})},children:"\u897F\u66A6"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="reiwa",onClick:()=>{let d=Ga.default.Time();o({modifiedType:"update",era:"reiwa",year:d.year,month:d.month,date:d.date})},children:"\u4EE4\u548C"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="heisei",onClick:()=>{o({modifiedType:"update",era:"heisei",year:2019,month:1,date:1})},children:"\u5E73\u6210"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="shouwa",onClick:()=>{o({modifiedType:"update",era:"shouwa",year:1989,month:1,date:1})},children:"\u662D\u548C"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="taisho",onClick:()=>{o({modifiedType:"update",era:"taisho",year:1926,month:1,date:1})},children:"\u5927\u6B63"})),(0,We.jsx)(re.Button.Clear.R,D(_({color:"cloud"},l),{isActiveStyles:s,isActive:r.era=="meiji",onClick:()=>{o({modifiedType:"update",era:"meiji",year:1912,month:1,date:1})},children:"\u660E\u6CBB"}))]})},Calendar:a=>{let{val_value:r,set_value:o}=a,l=[];if(r.era=="year")for(let s=1900;s<2100;s++)l.unshift({value:s,label:s+"\u5E74"});else if(r.era=="reiwa"){let s=Ga.default.Time().year-2018;for(let d=1;d<=s+10;d++)l.unshift({value:2019+d-1,label:"\u4EE4\u548C"+(d==1?"\u5143":d)+"\u5E74"})}else if(r.era=="heisei")for(let s=1;s<=31;s++)l.unshift({value:1989+s-1,label:"\u5E73\u6210"+(s==1?"\u5143":s)+"\u5E74"});else if(r.era=="shouwa")for(let s=1;s<=64;s++)l.unshift({value:1926+s-1,label:"\u662D\u548C"+(s==1?"\u5143":s)+"\u5E74"});else if(r.era=="taisho")for(let s=1;s<=15;s++)l.unshift({value:1912+s-1,label:"\u5927\u6B63"+(s==1?"\u5143":s)+"\u5E74"});else if(r.era=="meiji")for(let s=1;s<=45;s++)l.unshift({value:1868+s-1,label:"\u660E\u6CBB"+(s==1?"\u5143":s)+"\u5E74"});return(0,We.jsxs)(ft,{padding:1,children:[(0,We.jsxs)(Xe.Separate,{children:[(0,We.jsx)(os,{tone:"cloud",emptySelect:!1,override:"force",border:"1.thin",padding:["1/3","2/3"],paddingRight:2,rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})}),options:l,value:r.year,onUpdateValidValue:({value:s})=>{o(d=>D(_({},d),{modifiedType:"update",year:Number(s)}))}}),(0,We.jsxs)(Xe.Center,{gap:"1/3",children:[(0,We.jsx)(re.Button.Clear.S,{ssSphere:2,onClick:()=>{let s=r.month-1;o({modifiedType:"update",era:r.era,year:s==0?r.year-1:r.year,month:s==0?12:s,date:1})},children:(0,We.jsx)(Ce.ChevronLeft,{})}),(0,We.jsx)(os,{tone:"cloud",emptySelect:!1,override:"force",border:"1.thin",padding:["1/3","2/3"],paddingRight:2,rightIcon:(0,We.jsx)(pn,{right:"1/3",children:(0,We.jsx)(Ce.AngleDown,{})}),options:[{value:1,label:"1\u6708"},{value:2,label:"2\u6708"},{value:3,label:"3\u6708"},{value:4,label:"4\u6708"},{value:5,label:"5\u6708"},{value:6,label:"6\u6708"},{value:7,label:"7\u6708"},{value:8,label:"8\u6708"},{value:9,label:"9\u6708"},{value:10,label:"10\u6708"},{value:11,label:"11\u6708"},{value:12,label:"12\u6708"}],value:r.month,onUpdateValidValue:({value:s})=>{o({modifiedType:"update",era:r.era,year:r.year,month:Number(s),date:1})}}),(0,We.jsx)(re.Button.Clear.S,{ssSphere:2,onClick:()=>{let s=r.month+1;o({modifiedType:"update",era:r.era,year:s==13?r.year+1:r.year,month:s==13?1:s,date:1})},children:(0,We.jsx)(Ce.ChevronRight,{})})]})]}),(0,We.jsx)(Wr.DateWareki.MonthCell,_({},a))]},r.era)},MonthCell:a=>{let{val_value:r,set_value:o}=a,l=Ga.default.Time([r.year.zeroEmbed(4),r.month.zeroEmbed(2),r.date.zeroEmbed(2)].join("/"));if(!l.validate)return;let s=l.getFirstDayOfTheMonth().weekday,d=l.getLastDayOfTheMonth(),u=[];for(let h=0;h<7;h++)u.push((0,We.jsx)(Je.Supplement,{flexCenter:!0,fontColor:h==0?"googleRed":h==6?"googleBlue":"3.blur",children:Ga.default.transformer.weekday.shortJP(h)},"legend-"+h));for(let h=0;h<s;h++){let p=Ga.default.Time(l).getFirstDayOfTheMonth().addDate(h-s);u.push((0,We.jsx)(re.Button.Sub.R,{color:"cloud",border:"1.thin",ssSphere:3,opacity:"middle",onClick:v=>{v.preventDefault(),v.stopPropagation(),o({modifiedType:"update",era:r.era,year:p.year,month:p.month,date:p.date})},children:p.date},"lastMonth-"+h))}for(let h=1;h<=d.date;h++){let p=Ga.default.Time(l).setDate(h);u.push((0,We.jsx)(re.Button.Border.R,{ssSphere:3,onClick:()=>{o({modifiedType:"update",era:r.era,year:p.year,month:p.month,date:p.date})},children:p.date},"currentMonth-"+h))}for(let h=0;h<7-d.weekday-1;h++){let p=Ga.default.Time(l).addMonth(1).setDate(1).addDate(h);u.push((0,We.jsx)(re.Button.Sub.R,{color:"cloud",border:"1.thin",ssSquare:3,opacity:"middle",onClick:v=>{v.preventDefault(),v.stopPropagation(),o({modifiedType:"update",era:r.era,year:p.year,month:p.month,date:p.date})},children:p.date},"nextMonth-"+h))}return(0,We.jsx)(hr,{gridCols:7,gap:"1/4",children:u})}},Variables:{Footer:a=>(0,We.jsxs)(vt,{flexWrap:!1,gap:1,flexChilds:"even",freeCSS:{whiteSpace:"nowrap"},children:[(0,We.jsxs)(re.Button.Border.R,{onClick:()=>{a.onValueUpdate("")},tabIndex:-1,flexSizing:"none",padding:["2/3",1],children:[(0,We.jsx)(Ce.Times,{})," \u524A\u9664"]}),(0,We.jsx)(re.Button.Prime.R,{flexSizing:"auto",padding:["2/3",1],onClick:()=>{a.onSubmit&&a.onSubmit(),Ba.close(a.tipsID)},tabIndex:-1,children:"\u6C7A\u5B9A"})]}),ShiftButtons:a=>(0,We.jsxs)(vt,{gap:"1/3",flexWrap:!1,children:[(0,We.jsx)(re.Button.Clear.R,D(_({className:zr("LeftButton"),tabIndex:-1,right:0},Wr.Variables.ShiftButtonStyles),{onClick:()=>{a.callback(-1)},children:(0,We.jsx)(Ce.ChevronLeft,{})})),(0,We.jsx)(re.Button.Clear.R,D(_({className:zr("RightButton"),tabIndex:-1,left:0},Wr.Variables.ShiftButtonStyles),{onClick:()=>{a.callback(1)},children:(0,We.jsx)(Ce.ChevronRight,{})}))]}),ShiftButtonStyles:{flexCenter:!0,padding:0,unitWidth:3,unitHeight:3,borderRadius:"sphere",position:"relative"}}};var yd=" ~ ",lG={clock:{defaultValue:"--:--",format:/^\d{2}\D\d{2}$/,ranges:[{type:"hour",from:0,length:2},{type:"minute",from:3,length:2}],sets:1},date:{defaultValue:"----/--/--",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2},{type:"date",from:8,length:2}],sets:1},week:{defaultValue:"----\u5E74\u7B2C--\u9031",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4,region:6},{type:"week",from:6,length:2,region:3}],sets:1},month:{defaultValue:"----\u5E74--\u6708",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2,region:3}],sets:1},year:{defaultValue:"----\u5E74",format:/^\d{4}$/,ranges:[{type:"year",from:0,length:4,region:5}],sets:1},dates:{defaultValue:"----/--/--",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2},{type:"date",from:8,length:2,region:5},{type:"year",from:10+yd.length,length:4},{type:"month",from:15+yd.length,length:2},{type:"date",from:18+yd.length,length:2}],sets:2},months:{defaultValue:"----\u5E74--\u6708",format:/^\d{4}\D\d{2}$/,ranges:[{type:"year",from:0,length:4},{type:"month",from:5,length:2,region:6},{type:"year",from:8+yd.length,length:4},{type:"month",from:13+yd.length,length:2,region:3}],sets:2},dateWareki:{defaultValue:"----\u5E74--\u6708--\u65E5",format:/^\d{4}\D\d{2}\D\d{2}$/,ranges:[{type:"dateWareki",from:0,length:4,region:5},{type:"month",from:5,length:2,region:3},{type:"date",from:8,length:2,region:3}],sets:1}},bd={PeriodMargin:" ~ ",DataLeveling:a=>{let{restrict:r,value:o,era:l}=a,s=wo.default.flatArray(o||""),{defaultValue:d,format:u,ranges:h,sets:p}=lG[r],v=[],y=r=="clock"?":":"/";for(let b=0;b<s.length;b++)s[b]=String(s[b]).replace(/\D/ig,y);for(let b=0;b<p;b++){let C=s[b]||"";if(!C.match(u))s[b]="",v.push(d);else{let w=d;C.split(/\D/).forEach((T,L)=>{if(L==0&&r=="dateWareki"){let A=Number(T);l!="year"&&(A>=2019?l=="reiwa"?A-=2018:l=="heisei"&&(A=31):A>=1989?l=="heisei"?A-=1988:l=="shouwa"&&(A=64):A>=1926?l=="shouwa"?A-=1925:l=="taisho"&&(A=15):A>=1912?l=="taisho"?A-=1911:l=="meiji"&&(A=45):A>=1868&&(A-=1867)),T=A.zeroEmbed(4)}w=w.replace(new RegExp("------------------".slice(0,T.length)),T)}),v.push(w)}}return{formatValue:v.join(yd),dataValue:["dates","months"].includes(r)?s:s[0],ranges:h}},DefaultValidation:a=>{let{states:r}=a,{restrict:o,min:l,max:s,required:d}=r,u=[],h=wo.default.flatArray(a.value),p={empty:!1,escalated:1,filled:!0,correct:!0,prohibited:!1};(()=>{let v=o=="clock"?":":"/";for(let y=0;y<h.length;y++)h[y]=String(h[y]).replace(/\D/ig,v);for(let y=0;y<h.length;y++){let b=h[y],C=h[y-1];b.removeLetters()||(p.empty=!0),y>0&&(p.escalated&=+(b>=C))}p.escalated&&(p.empty||(o.match(/clock/)?h.forEach(y=>{let[b,C]=y.split(/\D+/);!b||!C?p.filled=!1:(Number(b)>23||Number(C)>59)&&(p.correct=!1)}):o.match(/date/)?h.forEach(y=>{let[b,C,w]=y.split(/\D+/);if(!b||!C||!w)p.filled=!1;else{let T=wo.default.Time(y);(!T.validate||y!=T.toFormatYMD())&&(p.correct=!1)}}):o.match(/week/)?h.forEach(y=>{let[b,C]=y.split(/\D+/);if(!b||!C)p.filled=!1;else{let w=wo.default.Time(b+"/01/01").weekday,T=wo.default.Time(b+"/01/0"+(7-w+1)).addWeek(Number(C)-1);b!=String(T.year)&&(p.correct=!1)}}):o.match(/month/)?h.forEach(y=>{let[b,C]=y.split(/\D+/);!b||!C?p.filled=!1:wo.default.Time([b,C,"01"].join("/")).validate||(p.correct=!1)}):o.match(/year/),p.filled&&p.correct&&h.forEach(y=>{{let b=Number(String(y).replace(/\D/ig,""));if(l&&Number(String(l).replace(/\D/ig,""))>b&&(p.prohibited=!0),s){let C=Number(String(s).replace(/\D/ig,""));b>C&&(p.prohibited=!0)}}})))})();{let{empty:v,escalated:y,filled:b,correct:C,prohibited:w}=p;v&&d&&(u=[{type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}]),y||u.push({type:"invalid",label:"\u6642\u7CFB\u5217\u3092\u6B63\u3057\u304F\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"}),C||u.push({type:"invalid",label:"\u7121\u52B9\u306A\u5024\u304C\u5165\u529B\u3055\u308C\u3066\u3044\u307E\u3059"}),b||u.push({type:"invalid",label:"\u6700\u5F8C\u307E\u3067\u5024\u3092\u57CB\u3081\u3066\u304F\u3060\u3055\u3044"}),w&&u.push({type:"invalid",label:(0,ar.jsxs)(ar.Fragment,{children:[(0,ar.jsx)(E,{children:"\u5165\u529B\u7BC4\u56F2\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u307E\u3059"}),"[",l||"\u4E0B\u9650\u7121\u3057","] ~ [",s||"\u4E0A\u9650\u7121\u3057","]"]})})}return{ok:!u.filter(({type:v})=>v=="invalid").length,notice:u}},KeyDownEvent:a=>{let{val_era:r,restrict:o,event:l,val_status:s,set_status:d,val_focus:u,set_focus:h}=a,{key:p,shiftKey:v,ctrlKey:y,metaKey:b}=l,C=y||b,{selectionStart:w,selectionEnd:T}=l.target,{index:L,prevIndex:A}=u,{ranges:$,formatValue:F}=s,j=$.length-1;if(["Tab","ArrowLeft","ArrowRight"].includes(p)){let U=0;if(p=="Tab"){let K=+!v*2-1;if(U=u.index+K,U<0||U>j)return}else{let K=p=="ArrowLeft"?-1:p=="ArrowRight"?1:0;C||w==0&&T==String(s.formatValue).length?U=K==1?j:0:U=Math.max(0,Math.min(L+K,j))}h(K=>D(_({},K),{index:U,prevIndex:L})),l.preventDefault()}if(["Backspace","ArrowUp","ArrowDown","0","1","2","3","4","5","6","7","8","9"].includes(p)){l.preventDefault();let U=L;U=Math.max(U,0),U=Math.min(U,j);let{type:K,from:M,length:oe}=$[U],ke=F.slice(M,M+oe),J;if(p=="Backspace")J="------".slice(0,oe);else if(["ArrowUp","ArrowDown"].includes(p)){let pe=p=="ArrowUp"?1:-1;ke=ke|0,J=ke+pe;let[he,ce,P]=K=="dateWareki"?r=="year"?[0,2999,4]:r=="reiwa"?[1,2999,4]:r=="heisei"?[1,31,4]:r=="shouwa"?[1,64,4]:r=="taisho"?[1,15,4]:r=="meiji"?[1,45,4]:[0,0,0]:K=="minute"?[0,59,2]:K=="hour"?[0,23,2]:K=="date"?[1,31,2]:K=="week"?[1,53,2]:K=="month"?[1,12,2]:K=="year"?[0,2999,4]:[0,0,0];J>ce?J=he:J<he&&(J=ce),J=Number(J).zeroEmbed(P)}else if(["0","1","2","3","4","5","6","7","8","9"].includes(p)){let pe=ke|0,he=p,ce=`${pe}${he}`;if(A!=L&&(pe=0,ce="0"+he),K=="year"||K=="dateWareki"&&r=="year")Number(ce)>1e4?J=he:J=ce,(J|0)>1e3&&U++;else if(["hour","minute","date","week","month"].includes(K)||K=="dateWareki"&&r!="year"){let P=K=="dateWareki"?r=="reiwa"?100:r=="heisei"?31:r=="shouwa"?64:r=="taisho"?15:r=="meiji"?45:0:K=="minute"?59:K=="hour"?23:K=="date"?31:K=="week"?53:K=="month"?12:0;J=(ce|0)>P?he:ce,(Number(he)>Number(String(P)[0])||ke=="0000".slice(0,String(P).length)&&(ce!="0000".slice(0,String(P).length)||["minute","hour"].includes(K)&&A==L)||(ce|0)>=v5(10,String(P).length-1))&&U++}K=="year"||K=="dateWareki"?J=(J|0).zeroEmbed(4):J=(J|0).zeroEmbed(2)}{let pe=String(F).partReplace(M,String(J)),he=pe.split(yd).map(ce=>ce.replace(/(^\D|\D$)/,"").split(/\D+/).join(o=="clock"?":":"/").replace(/(^\D|\D$)/,""));if(o=="dateWareki"){let ce=he[0].split(/\D/),[P,ee,me]=ce;ce.length==3&&P&&(he=[[Number(P)-1+Number({year:1,reiwa:2019,heisei:1989,shouwa:1926,taisho:1912,meiji:1868}[r]),ee,me].join("/")])}U=Math.max(U,0),U=Math.min(U,j),d(ce=>D(_({},ce),{dataValue:["dates","months"].includes(o)?he:he[0],formatValue:pe,eventType:"update",eventID:wo.default.uuid.gen()})),h(ce=>D(_({},ce),{index:U,prevIndex:ce.index}))}}}},hO={picker:{launch:a=>{let r=a.tipsID||wo.default.uuid.gen(),o=a,{onValueUpdate:l,min:s,max:d,era:u,restrict:h,defaultValue:p}=o,v=Ze(o,["onValueUpdate","min","max","era","restrict","defaultValue"]);Ba.open(D(_({gravityPoint:a.gravityPoint||24,tipsID:r,padding:0},v),{parent:v.parent,close_option:_({aroundClick:!0,parentBlur:!1},v.close_option),content:(0,ar.jsx)(dO,{restrict:h,min:s,max:d,era:u,defaultValue:p,tipsID:r,onValueUpdate:(y,b)=>{l(y,b)}})}))},remove:a=>{Ba.close(a)}}},sG={Shallow:a=>{let{rootStates:r,val_status:o}=a,l=Os(r);return(0,ar.jsx)(E,{position:"absolute",top:0,left:0,right:0,height:0,overflow:"hidden",opacity:"trans",freeCSS:{zIndex:3,pointerEvents:"none"},children:(0,ar.jsx)(Je.Description,D(_({className:r.className},l),{position:"absolute",width:1,freeCSS:D(_({},l.freeCSS),{color:"orange"}),children:(0,ar.jsx)(E,{"data-input-value-shallow":o.componentID,children:"A"})}))})}},uG=a=>{let r=a,{tone:o,required:l,restrict:s="clock",componentID:d,era:u,form:h,name:p,min:v,max:y,className:b,enableFormSubmit:C,checkValidationAtFirst:w,onKeyDown:T,onValidate:L,onUpdateValue:A,onUpdateValidValue:$,value:F="",leftIndicator:j,rightIndicator:U,leftIcon:K,rightIcon:M,freeCSS:oe,wrapStyles:ke}=r,J=Ze(r,["tone","required","restrict","componentID","era","form","name","min","max","className","enableFormSubmit","checkValidationAtFirst","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","leftIndicator","rightIndicator","leftIcon","rightIcon","freeCSS","wrapStyles"]),[pe,he]=(0,Oo.useState)(u),[ce,P]=(0,Oo.useState)(D(_({componentID:a.componentID||""},bd.DataLeveling({restrict:s,value:F,era:pe})),{eventType:"init",eventID:wo.default.uuid.gen()})),[ee,me]=(0,Oo.useState)({ok:!1,notice:[]}),[z,ne]=(0,Oo.useState)({active:!1,index:0,prevIndex:-1}),ve={rootStates:a,val_status:ce,set_status:P,val_validate:ee,set_validate:me,val_era:pe,set_era:he,val_focus:z,set_focus:ne};va.CommonEffects({type:"time",states:a,val_status:ce,set_status:P,val_validate:ee,set_validate:me,onUpdateValue:A,onUpdateValidValue:$,DefaultValidation:bd.DefaultValidation,ExtraOverrideStates:_({},bd.DataLeveling({restrict:s,value:F,era:pe}))});let be=(0,Oo.useRef)(!1);return(0,Oo.useEffect)(()=>{if(be.current){P(Re=>_(_({},Re),bd.DataLeveling({restrict:s,value:Re.dataValue,era:pe})));let de=Ve.get("refreshEra_"+ce.componentID);de&&de.refreshEra(pe)}else be.current=!0},[pe]),Ve.update({[ce.componentID]:{openPicker:()=>{a.disabled||hO.picker.launch({parent:"#Picker-"+ce.componentID,tipsID:"PickerTips-"+ce.componentID,restrict:s,min:v,max:y,defaultValue:ce.dataValue,era:pe,onValueUpdate:(de,Re)=>{P(Pe=>D(_(_({},Pe),bd.DataLeveling({restrict:s,value:de,era:Re})),{eventType:"update",eventID:wo.default.uuid.gen()})),he(Re)}})},resetEra:de=>{he(de),P(Re=>D(_(_({},Re),bd.DataLeveling({restrict:s,value:"",era:pe})),{eventType:"update",eventID:wo.default.uuid.gen()}))}}}),(0,Oo.useEffect)(()=>{let{index:de,active:Re}=z;if(Re){de=Math.max(de,0),de=Math.min(de,ce.ranges.length-1);let{from:Pe,length:Oe}=ce.ranges[de],rt=xt("#"+a.id)[0];rt&&rt.setSelectionRange(Pe,Pe+Oe)}},[z]),(0,ar.jsxs)(Jr,{val_status:ce,set_status:P,val_validate:ee,states:a,children:[(0,ar.jsx)(sG.Shallow,_({},ve)),(0,ar.jsx)(bc,{componentID:a.componentID,fontSize:a.fontSize,required:a.required,label:a.label,isActive:!0}),(0,ar.jsx)(Bs,{name:p,"data-disabled":a.disabled,"data-input-type":"time","data-form":h,"data-validation":ee.ok,componentID:ce.componentID,"data-value":JSON.stringify(["dates","months"].includes(s)?!ce.dataValue[0]||!ce.dataValue[1]?null:ce.dataValue:ce.dataValue||null)}),lt.get().isTouchDevice?(0,ar.jsx)(re.Button.Plain,{"data-show-validation":va.isShowValidation(ee,ce,!!w),"data-component-id":ce.componentID,className:b,freeCSS:{textAlign:"left"},children:ce.formatValue,onClick:de=>{let Re=Ve.get(ce.componentID);Re&&Re.openPicker(),de.stopPropagation()}}):(0,ar.jsx)(E,_({htmlTag:"input",type:"text",inputMode:"numeric","data-show-validation":va.isShowValidation(ee,ce,!!w),"data-input-origin":ce.componentID,"data-disabled":a.disabled,"data-input-type":"time","data-form-name":h,value:ce.formatValue,className:b,tabIndex:lt.get().isTouchDevice?-1:0,onKeyDown:de=>{bd.KeyDownEvent({restrict:s,event:de,val_era:pe,val_status:ce,set_status:P,val_focus:z,set_focus:ne}),T&&T(de),C&&va.SubmitForm(de)},onKeyUp:de=>{de.key=="Tab"&&ne(Re=>D(_({},Re),{active:!0}))},onClick:de=>{let Re=de.target.selectionEnd,Pe=0;ce.ranges.forEach((Oe,rt)=>{let{from:ze,length:pt,region:Kt}=Oe;ze<=Re&&Re<=ze+(Kt||pt)&&(Pe=rt)}),ne(Oe=>D(_({},Oe),{active:!0,index:Pe})),de.preventDefault()},onChange:()=>{}},J))]})},Is={Origin:a=>{a=_({},a),a.rightIcon&&(a=_({paddingRight:3},a)),a.leftIcon&&(a=_({paddingLeft:3},a));let[r]=(0,Oo.useState)(a.componentID||wo.default.uuid.gen());if(a.componentID=r,wo.default.is.nullish(a.rightIcon)){let o=(a.restrict||"").match(/clock/)?fO.faClock:pO.faCalendarAlt;a.rightIcon=(0,ar.jsx)(pn,{padding:0,freeCSS:{pointerEvents:"all"},children:(0,ar.jsx)(re.Button.Sub.R,{color:"cloud",border:"unset",ssSphere:2,fontColor:"theme",boxShadow:"0.normal",borderRadius:"3.tone.tertiary",flexCenter:!0,ssEffectsOnActive:"push",tabIndex:-1,id:"Picker-"+a.componentID,onClick:()=>{let l=Ve.get(a.componentID);l&&l.openPicker()},children:(0,ar.jsx)(Ce,{icon:o})})})}return(0,ar.jsx)(Hr,{componentID:a.componentID,children:uG,states:No(a)})},Clock:a=>(0,ar.jsx)(Is.Origin,_({restrict:"clock",era:"clock"},a)),Date:a=>(0,ar.jsx)(Is.Origin,_({restrict:"date"},a)),Week:a=>(0,ar.jsx)(Is.Origin,_({restrict:"week"},a)),Month:a=>(0,ar.jsx)(Is.Origin,_({restrict:"month"},a)),Year:a=>(0,ar.jsx)(Is.Origin,_({restrict:"year"},a)),DateWareki:a=>{a=_({},a);let[r]=(0,Oo.useState)(a.componentID||wo.default.uuid.gen());a.componentID=r;let{defaultEra:o="wareki"}=a,[l,s]=(0,Oo.useState)((()=>{let d="year";if(o=="wareki"&&(d="reiwa",a.value)){let[u,h,p]=a.value.split(/\D/);if(u&&h&&p){let v=Number(u);v>=2019?(v-=2019,d="reiwa"):v>=1989?(v-=1989,d="heisei"):v>=1926?(v-=1926,d="shouwa"):v>=1912?(v-=1912,d="taisho"):v>=1868&&(v-=1868,d="meiji"),v+=1}}return d})());return(0,Oo.useEffect)(()=>{Ve.set({["refreshEra_"+r]:{refreshEra:d=>{s(d)}}})},[]),(0,ar.jsx)(Is.Origin,D(_({restrict:"dateWareki",leftIndicator:(0,ar.jsx)(os,{label:"\u5143\u53F7",emptySelect:!1,value:l,tone:a.tone||"border",override:"force",flexCenter:!0,borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3",height:1,freeCSS:{whiteSpace:"nowrap"},options:[{value:"year",label:"\u897F\u66A6"},{value:"reiwa",label:"\u4EE4\u548C"},{value:"heisei",label:"\u5E73\u6210"},{value:"shouwa",label:"\u662D\u548C"},{value:"taisho",label:"\u5927\u6B63"},{value:"meiji",label:"\u660E\u6CBB"}],onUpdateValidValue:({value:d,eventType:u})=>{s(d);let h=Ve.get(a.componentID);h&&h.resetEra&&h.resetEra(d)}})},a),{era:l}))},Periods:{Date:a=>(0,ar.jsx)(Is.Origin,_({restrict:"dates"},a)),Month:a=>(0,ar.jsx)(Is.Origin,_({restrict:"months"},a))},fn:hO};var la=Z(Mt()),Lr=Z(ha()),za=Z(ma());var Cd=Z(Mt());var Sd=Z(Mt()),mO=Z(ma());var wd=Z(ha());var Jf=a=>{let r=a,{color:o="theme",size:l="R",showInitial:s=!1,loaderID:d=""}=r,u=Ze(r,["color","size","showInitial","loaderID"]),[h]=(0,wd.useState)(d),[p]=(0,wd.useState)(mO.default.uuid.gen()),[v,y]=(0,wd.useState)(s),b=0;l=="S"?b=1:l=="R"?b=1.5:l=="L"?b=3:l=="XL"?b=4:l=="MAX"&&(b=6);let C={theme:"hsl( var( --color-theme-hsl ) )",posi:"var( --color-positive )",nega:"var( --color-negative )",warn:"var( --color-warning )",cloud:"hsl( var( --color-layer5-hsl ) )",white:"white"}[o];return(0,wd.useEffect)(()=>{let w=xt('[data-component-id="'+p+'"]');v?w.removeClass(kr("Hide")).await(10).addClass(kr("Active")):w.removeClass(kr("Active")).await(210).addClass(kr("Hide"))},[v]),(0,wd.useEffect)(()=>{Ve.set({[p]:{active:w=>{h==w&&y(!0)},stop:w=>{h==w&&y(!1)},stopForce:()=>{y(!1)}}})},[]),(0,Sd.jsxs)(Xe.Center,D(_({className:[kr("MiniLoader"),kr(s?"Active":"Hide")].join(" "),componentID:p,ssSphere:b,position:"relative"},u),{children:[(0,Sd.jsx)("svg",{className:kr("SVG1"),width:"100",height:"100",viewBox:"0 0 100 100",style:{stroke:C},children:(0,Sd.jsx)("circle",{cx:"50",cy:"50",r:"40"})}),(0,Sd.jsx)("svg",{className:kr("SVG2"),width:"100",height:"100",viewBox:"0 0 100 100",style:{stroke:C},children:(0,Sd.jsx)("circle",{cx:"50",cy:"50",r:"40"})})]}))};var Nl=Z(Mt());var I_=Z(ha());var vO=()=>{let[a,r]=(0,I_.useState)(!1);return(0,I_.useEffect)(()=>{Ve.set({["Loader-corner-"+lt.get().sessionUID+"-corner"]:{active:()=>{r(!0)},stop:()=>{r(!1)}}})},[]),(0,Nl.jsxs)(vt,{className:[kr("CornerLoader"),a?kr("isActive"):""].join(" "),gap:"1/2",padding:["1/2","3/4"],borderRadius:"2/3",backgroundColor:"dark",position:"fixed",boxShadow:"1.remark",left:"50%",top:1,opacity:"trans",transition:"short",isRounded:!0,freeCSS:{zIndex:10,pointerEvents:"none",transform:"translateX(-50%)"},children:[(0,Nl.jsxs)(vt,{className:kr("Wrap"),flexWrap:!1,verticalAlign:"center",horizontalAlign:"center",children:[(0,Nl.jsx)(E,{className:kr("Ld4")}),(0,Nl.jsx)(E,{className:kr("Ld3")}),(0,Nl.jsx)(E,{className:kr("Ld2")}),(0,Nl.jsx)(E,{className:kr("Ld1")}),(0,Nl.jsx)(E,{className:kr("Ld2")}),(0,Nl.jsx)(E,{className:kr("Ld3")}),(0,Nl.jsx)(E,{className:kr("Ld4")})]}),(0,Nl.jsx)(E,{fontColor:"white",fontSize:"0.xs",isSemiBoldFont:!0,children:"Loading..."})]})};var Qf=a=>{let r=a.color;return{S:o=>(0,Cd.jsx)(Jf,_({size:"S",color:r},o)),R:o=>(0,Cd.jsx)(Jf,_({size:"R",color:r},o)),L:o=>(0,Cd.jsx)(Jf,_({size:"L",color:r},o)),XL:o=>(0,Cd.jsx)(Jf,_({size:"XL",color:r},o)),MAX:o=>(0,Cd.jsx)(Jf,_({size:"MAX",color:r},o))}},Qr={Wrapper:()=>(0,Cd.jsx)(vO,{}),Theme:Qf({color:"theme"}),Posi:Qf({color:"posi"}),Nega:Qf({color:"nega"}),Warn:Qf({color:"warn"}),White:Qf({color:"white"}),Cloud:Qf({color:"cloud"}),fn:{corner:{active:()=>{let a=Ve.get("Loader-corner-"+lt.get().sessionUID+"-corner");a&&a.active()},stop:()=>{let a=Ve.get("Loader-corner-"+lt.get().sessionUID+"-corner");a&&a.stop()}},mini:{active:(a="")=>{xt("."+kr("MiniLoader")).for(r=>{let{dataset:{componentId:o}={}}=r;if(!o)return;let l=Ve.get(o);l&&l.active&&l.active(a)})},stop:(a="")=>{xt("."+kr("MiniLoader")).for(r=>{let{dataset:{componentId:o}={}}=r;if(!o)return;let l=Ve.get(o);l&&l.stop&&l.stop(a)})},stopALL:()=>{xt("."+kr("MiniLoader")).for(a=>{let{dataset:{componentId:r}={}}=a;if(!r)return;let o=Ve.get(r);o&&o.stopForce&&o.stopForce()})}},stopALL:()=>{Qr.fn.corner.stop(),Qr.fn.mini.stopALL()}}};function cG(a){let{value:r,states:o}=a,{required:l,options:s,min:d,max:u}=o;d=d||0,u=u||65535;let h=[],p=r.filter(v=>v!=="null").length;return l&&(p||h.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"})),p<d&&h.push({type:"invalid",label:d+"\u500B\u4EE5\u4E0A\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"}),p>u&&h.push({type:"invalid",label:u+"\u500B\u307E\u3067\u9078\u629E\u3067\u304D\u307E\u3059"}),{ok:!h.filter(({type:v})=>v=="invalid").length,notice:h}}var Zf={InitOptions:a=>{let r=[];return a.forEach(o=>{let{type:l,label:s,value:d,searchValue:u}=o,h=u||(za.default.is.string(s)?s:"")||(za.default.is.string(d)?d:"");r.push(D(_({},o),{searchValue:h,type:l||"selector",value:za.default.JsonTo(d)}))}),r},FilterSelectableOptions:(a,r)=>{let o=a.val_options;if(r||(o=a.val_options.filter(l=>l.type!="label")),a.val_keyword){let l=a.val_keyword.toLower().replace(/ /g,"");o=o.filter(s=>(s.searchValue||"").toLower().replace(/ /g,"").includes(l))}return o}},ep={Shallow:a=>{let{rootStates:r,val_status:o}=a,l=Os(r);return(0,la.jsx)(E,{position:"absolute",top:0,left:0,right:0,height:0,overflow:"hidden",opacity:"trans",freeCSS:{zIndex:3,pointerEvents:"none"},children:(0,la.jsx)(Je.Description,D(_({className:r.className},l),{position:"absolute",width:1,freeCSS:D(_({},l.freeCSS),{color:"orange"}),"data-id":"shallow_"+o.componentID,children:(0,la.jsx)(E,{"data-input-value-shallow":o.componentID,children:"A"})}))})},Button:a=>{let{rootStates:r,val_keyword:o,set_keyword:l,val_optionFocused:s,set_optionFocused:d,val_options:u,set_options:h,val_optionsDict:p,set_optionsDict:v,val_preventOpenSelectorOnFocus:y,set_preventOpenSelectorOnFocus:b,val_selectorOpen:C,set_selectorOpen:w,val_status:T,set_status:L,val_validate:A,set_validate:$}=a,F=r,{tone:j,required:U,form:K,className:M,multiSelect:oe,enableFormSubmit:ke,checkValidationAtFirst:J,onValidate:pe,onUpdateValue:he,onUpdateValidValue:ce,value:P="",options:ee,leftIndicator:me,rightIndicator:z,leftIcon:ne,rightIcon:ve,componentID:be,status_id:de,wrapStyles:Re,emptySelect:Pe,SearchInput:Oe,SearchInputPlaceholder:rt,SelectedComponent:ze,SelectorComponent:pt,SelectorGravityPoint:Kt,DynamicOptionsOnSearch:Et}=F,bt=Ze(F,["tone","required","form","className","multiSelect","enableFormSubmit","checkValidationAtFirst","onValidate","onUpdateValue","onUpdateValidValue","value","options","leftIndicator","rightIndicator","leftIcon","rightIcon","componentID","status_id","wrapStyles","emptySelect","SearchInput","SearchInputPlaceholder","SelectedComponent","SelectorComponent","SelectorGravityPoint","DynamicOptionsOnSearch"]);(0,Lr.useEffect)(()=>{var nt;if(r.disabled||!C)return;let Le=Zf.FilterSelectableOptions(a);d(((nt=Le[0])==null?void 0:nt.value)||null)},[o]),(0,Lr.useEffect)(()=>{T.eventType!="init"&&(r.max==T.dataValue.length?(w(!1),b(!0),setTimeout(()=>{let nt=(0,za.default)('[data-input-origin="'+r.componentID+'"]');nt&&nt.focus()},10)):(0,za.default)("#SearchInput_"+r.componentID).focus())},[T.dataValue]);let It="autocomplete-sheet-"+r.componentID;return(0,Lr.useEffect)(()=>{let nt="autocomplete-click-"+r.componentID;if(C){let Le=(0,za.default)('[data-input-origin="'+r.componentID+'"]');if(!Le)return;(0,za.default)("#SearchInput_"+r.componentID).focus(),Ot.open({sheetID:It,type:"custom",parent:Le[0],padding:["1/4",0],gravityPoint:r.SelectorGravityPoint||22,close_option:{aroundClick:!1},content:(0,la.jsx)(ep.Selector,_({},a))}),(0,za.default)(document).addEvent({eventID:nt,eventType:"click",callback:wt=>{let zt=(0,za.default)(wt.target),Yt=!!(0,za.default)(zt).parent("."+ts("Core")).length;(0,za.default)(zt).parent("."+ts("Selector")).length||Yt||w(!1)}})}else(0,za.default)(document).removeEvent([nt]),l(""),Ot.close(It)},[C]),(0,Lr.useEffect)(()=>{if(r.disabled||!C)return;Ot.customSheet.reposition(It);let nt=Ve.get("refresh-autocomplete-selector-"+r.componentID);nt&&nt(a)},[u,T.dataValue,o,s]),(0,la.jsx)(la.Fragment,{children:(0,la.jsx)(E,D(_({tabIndex:0},bt),{"data-disabled":r.disabled,"data-name":r.name,"data-value":za.default.JsonTo(T.dataValue),"data-form":K,"data-show-validation":va.isShowValidation(A,T,!!J),"data-validation":A.ok,"data-component-id":T.componentID,"data-input-origin":T.componentID,"data-focus":!!C,"data-input-type":"autocomplete-"+(oe?"multi":"single"),className:[M,ts("Core")].join(" "),onFocus:nt=>{if(bt!=null&&bt.onFocus&&(bt==null||bt.onFocus(nt)),!r.disabled){if(y)return b(!1);w(!0),nt.preventDefault()}},onClick:nt=>{bt!=null&&bt.onClick&&(bt==null||bt.onClick(nt)),!r.disabled&&w(!0)},onKeyDown:nt=>{let{key:Le}=nt;ke&&va.SubmitForm(nt),!C&&(Le==" "||Le=="ArrowDown"||Le=="ArrowUp"||Le=="Enter")&&w(!0)},children:(0,la.jsxs)(Xe.Left,{flexWrap:!0,gap:"1/3",freeCSS:{letterSpacing:".5px"},children:[(0,la.jsx)(ep.Selected,_({},a)),(0,la.jsx)(yn,{width:0,overflow:"hidden",opacity:"trans",children:"A"}),(0,la.jsx)(ep.SearchInput,_({},a))]})}))})},SearchInput:a=>{let{rootStates:r}=a;return r.disabled||!a.val_selectorOpen?null:(0,la.jsx)(E,{id:"SearchInput_"+r.componentID,placeholder:r.SearchInputPlaceholder||"\u691C\u7D22...",opacity:a.val_selectorOpen?"max":"trans","data-form":r.form,transition:"middle",flexSizing:0,htmlTag:"input",border:"unset",backgroundColor:"trans",value:a.val_keyword,freeCSS:{outline:"none"},onKeyDown:o=>{let{key:l,metaKey:s,ctrlKey:d}=o,u=s||d;l=="Escape"?(a.set_selectorOpen(!1),a.set_preventOpenSelectorOnFocus(!0),setTimeout(()=>{let h=(0,za.default)('[data-input-origin="'+r.componentID+'"]');h&&h.focus()},10)):l=="Tab"?a.set_selectorOpen(!1):l==" "?za.default.scope(()=>{a.val_selectorOpen||a.val_keyword||(o.preventDefault(),a.set_selectorOpen(!0))}):l=="Backspace"?za.default.scope(()=>{if(a.val_keyword)return;let h=[...a.val_status.dataValue];h.pop(),a.set_status(p=>D(_({},p),{dataValue:h,eventType:"update",eventID:za.default.uuid.gen()}))}):l=="Enter"&&za.default.scope(()=>{if(!a.val_selectorOpen)return a.set_selectorOpen(!0);if(!a.val_optionFocused)return;let h=a.val_options.find(v=>v.value==a.val_optionFocused);if(!h)return;let{value:p}=h;a.set_status(v=>{let y=[...v.dataValue];return za.default.scope(()=>{if(p==="null")return y=[];v.dataValue.includes(p)?y=y.filter(b=>b!==p):r.multiSelect?y.push(p):y=[p]}),D(_({},v),{dataValue:y,eventType:"update",eventID:za.default.uuid.gen()})}),a.set_keyword("")}),za.default.scope(()=>{if(!["ArrowDown","ArrowUp"].includes(l))return;if(o.preventDefault(),!a.val_selectorOpen)return a.set_selectorOpen(!0);let h=l=="ArrowDown"?1:-1,p=Zf.FilterSelectableOptions(a),v=p.length-1,y=null;za.default.scope(()=>{var b,C,w,T;if(h==1){if(y=((b=p[0])==null?void 0:b.value)||null,a.val_optionFocused==null)return;if(u){y=p[v].value||y||null;return}let L=p.findIndex(A=>A.value==a.val_optionFocused);if(L==-1)return;y=((C=p[L+1])==null?void 0:C.value)||y||null}else{if(y=p[v].value||null,a.val_optionFocused==null)return;if(u){y=((w=p[0])==null?void 0:w.value)||y||null;return}let L=p.findIndex(A=>A.value==a.val_optionFocused);if(L==-1)return;y=((T=p[L-1])==null?void 0:T.value)||y||null}}),a.set_optionFocused(y)}),r.enableFormSubmit&&va.SubmitForm(o)},onChange:o=>{let l=o.target.value;a.set_keyword(l)}},"searchInput")},Selector:a=>{let[r,o]=(0,Lr.useState)(a),{rootStates:l}=r,[s,d]=(0,Lr.useState)("idle"),[u,h]=(0,Lr.useState)("idle");(0,Lr.useEffect)(()=>{Ve.set({["refresh-autocomplete-selector-"+l.componentID]:b=>{o(b)}})},[]),(0,Lr.useEffect)(()=>{if(!r.val_selectorOpen||!l.DynamicOptionsOnSearch)return;if(s=="idle")return d("ok");h("fetch");let b="autocomplete-search-"+l.componentID;za.default.interval.clear(b),za.default.interval.standBy(b,300,()=>ir(void 0,null,function*(){let C=yield l.DynamicOptionsOnSearch(r.val_keyword);h("idle");let w=Zf.InitOptions(C||[]);r.set_options(w)}))},[r.val_keyword]);let p=[],v=Zf.FilterSelectableOptions(r,!0),y=Zf.FilterSelectableOptions(r);return v.forEach((b,C)=>{let{type:w,value:T}=b,L=r.val_optionFocused==T,A=r.val_status.dataValue.includes(T),$=l.SelectorComponent;p.push((0,la.jsx)($,{option:b,isFocused:L,isSelected:A,addCallback:()=>{r.set_status(F=>{let j=[...F.dataValue];return za.default.scope(()=>{if(T==="null")return j=[];F.dataValue.includes(T)?j=j.filter(U=>U!==T):l.multiSelect?j.push(T):j=[T]}),D(_({},F),{dataValue:j,eventType:"update",eventID:za.default.uuid.gen()})})}},String(T)||za.default.uuid.gen()))}),y.length||(p=[(0,la.jsx)(Je.Supplement,{padding:[0,1],fontColor:"4.thin",children:"\u5019\u88DC\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093"},"no-selector-notice")]),u=="fetch"&&(p=[(0,la.jsxs)(Xe.Left,{padding:1,fontColor:"3.blur",children:[(0,la.jsx)(Qr.Theme.R,{showInitial:!0}),(0,la.jsx)(Je.Supplement,{children:"Loading..."})]},"loader")]),(0,la.jsx)(Ot.Body,{className:ts("Selector"),ssCardBox:!0,borderRadius:"3.tone.tertiary",boxShadow:"1.normal",freeCSS:{minWidth:12*18},children:(0,la.jsx)(ft,{gap:0,padding:[1,0],children:p})})},Selected:a=>{let{rootStates:r,val_status:o,set_status:l,val_optionsDict:s}=a,d=[];return o.dataValue.forEach(u=>{let h=s[String(u)];if(!h)return;let p=r.SelectedComponent,v=h.label;h.value==="null"&&(v=""),d.push((0,la.jsx)(E,{className:ts("SelectedCell"),children:(0,la.jsx)(p,{value:h.value,label:v,children:v,removeCallback:y=>{if(y.stopPropagation(),y.preventDefault(),r.disabled)return;let b=[...o.dataValue];b=b.filter(C=>C!==u),l(C=>D(_({},C),{dataValue:b,eventType:"update",eventID:za.default.uuid.gen()}))}})},String(h.value)))}),(0,la.jsx)(la.Fragment,{children:d})},Core:a=>{let{onUpdateValue:r,onUpdateValidValue:o,value:l}=a,s={componentID:a.componentID||"",dataValue:l,eventType:"init",eventID:za.default.uuid.gen()},[d,u]=(0,Lr.useState)(!1),[h,p]=(0,Lr.useState)(!1),[v,y]=(0,Lr.useState)(""),[b,C]=(0,Lr.useState)(a.options),[w,T]=(0,Lr.useState)(a.value[0]||null),[L,A]=(0,Lr.useState)({}),[$,F]=(0,Lr.useState)(s),[j,U]=(0,Lr.useState)({ok:!1,notice:[]}),K=(0,Lr.useRef)(!1);(0,Lr.useEffect)(()=>{K.current?C(a.options):K.current=!0},[a.options]),(0,Lr.useEffect)(()=>{if(!b.length)return;let ke=[...b],J=_({},L);ke.forEach(pe=>{pe.type!="label"&&(J[String(pe.value)]=pe)}),A(J)},[b]);let M={rootStates:a,val_options:b,set_options:C,val_optionFocused:w,set_optionFocused:T,val_optionsDict:L,set_optionsDict:A,val_preventOpenSelectorOnFocus:d,set_preventOpenSelectorOnFocus:u,val_selectorOpen:h,set_selectorOpen:p,val_keyword:v,set_keyword:y,val_status:$,set_status:F,val_validate:j,set_validate:U};va.CommonEffects({type:"autocomplete",states:a,val_status:$,set_status:F,val_validate:j,set_validate:U,onUpdateValue:r,onUpdateValidValue:o,DefaultValidation:cG,ExtraOverrideStates:{dataValue:l,formatValue:l}});let oe=$.dataValue.length&&$.dataValue[0]!=="null";return oe=oe||h,(0,la.jsxs)(Jr,{val_status:$,set_status:F,val_validate:j,states:a,children:[(0,la.jsx)(bc,{componentID:a.componentID,fontSize:a.fontSize,required:a.required,label:a.label,isActive:oe}),(0,la.jsx)(ep.Shallow,_({},M)),(0,la.jsx)(ep.Button,_({},M))]})}},P_=a=>{let r=_({},a);r=D(_({value:[],min:0,max:65535,multiSelect:!0,SearchInput:!0,emptySelect:!0,SelectorComponent:({option:l,isSelected:s,isFocused:d,addCallback:u})=>l.type=="selector"?(0,la.jsx)(re.Button.Sub.S,{color:"cloud",backgroundColor:"trans",borderRadius:0,fontColor:"2.normal",textAlign:"left",padding:["1/2",1.5],isActive:s||d,isActiveStyles:d?{backgroundColor:"cloud"}:{backgroundColor:"theme.opa.few",fontColor:"theme"},onClick:h=>{u()},children:(0,la.jsx)(Je.Supplement,{paddingLeft:s?"1/2":0,transition:"short",children:l.label})}):(0,la.jsx)(la.Fragment,{children:l.label}),SelectedComponent:({value:l,label:s,removeCallback:d})=>(0,la.jsxs)(Xe.Left,{ssCardBox:"cloud",backgroundColor:"layer.3",borderRadius:"2.tone.secondary",fontSize:"1.mini",padding:"1/2",gap:0,children:[(0,la.jsx)(E,{padding:[0,"1/4"],children:s}),(0,la.jsx)(re.Button.Sub.R,{color:"cloud",fontColor:"white",backgroundColor:"layer.6",isRounded:!0,padding:"1/4",onClick:d,children:(0,la.jsx)(Ce.Times,{ssSphere:1})})]},"test")},r),{freeCSS:_({cursor:"pointer"},r.freeCSS)}),r.multiSelect||(r.min=1,r.max=1),r.options=r.options||[],r.emptySelect&&(r.options=[{value:null,label:(0,la.jsx)(Je.Supplement,{fontColor:"4.thin",children:"\u9078\u629E\u3092\u89E3\u9664"})},...r.options]);let o=[];return r.value=za.default.flatArray(r.value||null),r.value.forEach((l,s)=>{o.push(za.default.JsonTo(l))}),r.value=o,r.options=Zf.InitOptions(r.options),za.default.is.nullish(r.rightIcon)&&(r.rightIcon=(0,la.jsx)(pn,{children:(0,la.jsx)(Ce.Search,{})}),r.disabled&&(r.rightIcon=(0,la.jsx)(pn,{fontColor:"5.translucent",children:(0,la.jsx)(Ce.Ban,{})}))),r.rightIcon&&(r=_({paddingRight:3},r)),r.leftIcon&&(r=_({paddingLeft:3},r)),(0,la.jsx)(Hr,{componentID:r.componentID,children:ep.Core,states:No(r)})};var xd=Z(Mt());var gO=a=>(0,xd.jsx)(P_,_({multiSelect:!1,SelectedComponent:({value:r,label:o})=>(0,xd.jsx)(xd.Fragment,{children:o}),rightIcon:(0,xd.jsx)(pn,{children:(0,xd.jsx)(Ce.AngleDown,{})})},a));var Ca=Z(Mt()),tp=Z(ha()),Tu=Z(ma());var Io=Z(Mt()),_O=Z(ha()),Sc=Z(ma());var xu=Z(ha());var Gn={add:function(a){let r=Ve.get("Snackbar-"+lt.get().sessionUID);return r&&r.add(a),this},remove:function(a){let r=Ve.get("Snackbar-"+lt.get().sessionUID);return r&&r.remove(a),this},Wrapper:()=>(0,Io.jsx)(bO.Wrapper,{})},bO={Cell:a=>{let r=a,{snackID:o,secondsToClose:l,componentID:s=Sc.default.uuid.gen(),children:d,customChildren:u}=r,h=Ze(r,["snackID","secondsToClose","componentID","children","customChildren"]),[p]=(0,xu.useState)(s),[v,y]=(0,xu.useState)(a.secondsToClose||10);(0,xu.useEffect)(()=>{let C=xt('[data-component-id="'+p+'"]');setTimeout(()=>{C.addClass(cm("FadeIn"))},10),Ve.set({["Snackbar-"+o]:{remove:()=>{C.addClass(cm("FadeOut"))}}})},[]),(0,xu.useEffect)(()=>{Sc.default.interval.clear("Snackbar-"+p),Sc.default.interval.standBy("Snackbar-"+p,1e3,()=>{v<=0||y(v-1)}),v===0&&Gn.remove(o)},[v]);let b=(0,Io.jsx)(Io.Fragment,{});return u?b=(0,Io.jsx)(u,{close:()=>{Gn.remove(o)}}):b=(0,Io.jsxs)(Xe.Separate,{verticalAlign:"top",children:[(0,Io.jsx)(E,{padding:["1/4",0],flexSizing:0,children:Sc.default.is.function(d)?(0,Io.jsx)(d,{}):d}),(0,Io.jsx)(re.Button.Clear.R,{color:"layer",backgroundColor:"layer.4.opa.low",fontColor:"white",ssSphere:2.5,onClick:()=>{Gn.remove(o)},children:(0,Io.jsx)(Ce.Times,{})})]}),(0,Io.jsx)(E,D(_({className:cm("Cell"),componentID:p,onMouseOver:()=>{y(-1)},onMouseOut:()=>{y(l||10)},opacity:"trans",width:1,padding:"2/3",marginBottom:1,borderRadius:"1.tone.primary",fontColor:"white",boxShadow:"1.remark",backgroundColor:"dark",transition:"middle"},h),{children:b}))},Wrapper:()=>{let[a,r]=(0,xu.useState)(Sc.default.uuid.gen()),[o,l]=(0,xu.useState)([]);(0,xu.useEffect)(()=>{Ve.set({["Snackbar-"+lt.get().sessionUID]:{add:d=>{d.snackID=d.snackID||Sc.default.uuid.gen();let u=o.findIndex(h=>h.snackID==d.snackID);if(u==-1)o.unshift(D(_({},d),{snackID:d.snackID}));else{let h=[...o];h[u]=D(_({},d),{snackID:d.snackID}),o=h}r(Sc.default.uuid.gen())},remove:d=>{let u=Ve.get("Snackbar-"+d);u&&u.remove&&(u.remove(),setTimeout(()=>{let h=o.findIndex(v=>v.snackID==d);if(h==-1)return;let p=[...o];p.splice(h,1),l(p)},210))}}})},[o.length]);let s=o.map(d=>(0,_O.createElement)(bO.Cell,D(_({},d),{key:d.snackID})));return(0,Io.jsx)(vt,{className:["AMOTIFY_be",cm("Wrapper")].join(" "),position:"fixed",right:0,bottom:0,paddingLeft:0,paddingRight:1,paddingBottom:"safeAreaBottom",verticalAlign:"bottom",overflow:"auto",UnderBreakPointStyles:{left:0,paddingLeft:1,width:"auto"},children:s})}};var EO=Z(kO());function dG(a){let{value:r,states:o}=a,{required:l}=o,s=[];return l&&!r.length&&s.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!s.filter(({type:d})=>d=="invalid").length,notice:s}}var RO={List:a=>{let{files:r,states:o,val_status:l,set_status:s}=a,d=(o.limit||1)-l.dataValue.length,u=r.map((h,p)=>(0,Ca.jsx)(RO.Cell,{index:p,file:h,className:o.cellClassName,val_status:l,set_status:s,fileNameEdit:o.fileNameEdit},h.name));return d>0&&u.push((0,Ca.jsx)("label",{className:[o.cellClassName,es("AddButton")].join(" "),"data-component-id":l.componentID,htmlFor:o.id,tabIndex:o.tabIndex,onKeyDown:h=>{let{key:p}=h;o.tabIndex!=-1&&[" ","Enter"].includes(p)&&xt("#"+o.id).click()},children:(0,Ca.jsxs)(Xe.Center,{padding:["1/3",0],children:[(0,Ca.jsx)(E,{isRounded:!0,className:es("AddIcon"),children:(0,Ca.jsx)(Ce,{icon:EO.faCloudArrowUp,className:es("Icon"),fontColor:"theme",fontSize:"4.thirdTitle",backgroundColor:"theme.opa.low",ssSphere:3,padding:"1/2"})}),(0,Ca.jsxs)(E,{children:[(0,Ca.jsxs)(E,{fontColor:"theme",fontSize:"2.normal",isSemiBoldFont:!0,children:["\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E(",d,")"]}),(0,Ca.jsx)(E,{fontColor:"4.thin",fontSize:"0.xs",isSemiBoldFont:!0,children:"\u30D5\u30A1\u30A4\u30EB\u3092\u30C9\u30ED\u30C3\u30D7"})]})]})},"AddButton")),(0,Ca.jsx)(ft,{flexSizing:"auto",className:o.className,children:u})},Cell:a=>{let{index:r,file:o,className:l,val_status:s,set_status:d,fileNameEdit:u=!0}=a,{name:h,size:p,type:v}=o,[y,b]=(0,tp.useState)(!1),C=Tu.default.uuid.gen(),w=p.rank(),[T,L]=h.replace(/\s/,"").replace(/(.*)\.(.*)$/,"$1 $2").split(" "),A="\u30D5\u30A1\u30A4\u30EB";return v.match(/image/)?A=v.replace(/image\//,""):v.match(/pdf/)?A="PDF":v.match(/csv/)?A="CSV":v.match(/spreadsheet/)?A="SpreadSheet":v.match(/presentation/)?A="PowerPoint":v.match(/word/)?A="Word":v.match(/zip/)?A="Zip":v.match(/powerpoint/)?A="PowerPoint":v.match(/html/)?A="HTML":v.match(/js/)?A="JavaScript":v.match(/css/)?A="CSS":v.match(/text\/plain/)&&(A="\u30C6\u30AD\u30B9\u30C8"),(0,tp.useEffect)(()=>{y&&setTimeout(()=>{xt("#"+C).focus()},100)},[y]),(0,Ca.jsxs)(vt,{verticalAlign:"center",flexWrap:!1,gap:1,className:l,children:[(0,Ca.jsx)(Ce.File,{fontSize:"4.thirdTitle",fontColor:"4.thin"}),(0,Ca.jsxs)(E,{flexSizing:0,children:[(0,Ca.jsx)(E,{children:(0,Ca.jsx)(vt,{verticalAlign:"center",gap:"2/3",flexWrap:!1,className:es("FileName"),children:y?(0,Ca.jsx)(Ca.Fragment,{children:(0,Ca.jsxs)(ft,{flexSizing:0,gap:"1/2",children:[(0,Ca.jsxs)(vt,{gap:"2/3",verticalAlign:"center",children:[(0,Ca.jsx)(Sn,{tone:"border",wrapStyles:{flexSizing:"auto"},restrict:"fileName",name:"name",required:!0,id:C,form:"form-"+C,enableFormSubmit:!0,value:T,onKeyDown:$=>{let{key:F}=$;F=="Escape"&&b(!1)}}),(0,Ca.jsxs)(E,{children:[". ",L]})]}),(0,Ca.jsxs)(vt,{gap:"2/3",horizontalAlign:"right",flexWrap:!1,children:[(0,Ca.jsx)(re.Button.Sub.R,{padding:["2/3",1],onClick:()=>{b(!1)},children:"\u9589\u3058\u308B"}),(0,Ca.jsx)(re.Button.Prime.R,{padding:["2/3",1],submitOption:{formName:"form-"+C,callback:$=>ir(void 0,null,function*(){let{name:F}=$,j=[...s.dataValue],U=j[r],K=U.id;if(!U)return;let{target:M}=yield U.convert();if(!M)return;let oe=yield String(M.result).toBlob(o.type);if(!oe)return;let ke=new File([oe],F+"."+L,{type:U.type});ke.id=K,j[r]=ke,d(J=>D(_({},J),{dataValue:j,eventType:"update",eventID:Tu.default.uuid.gen()})),b(!1)})},children:"\u6C7A\u5B9A"})]})]})}):(0,Ca.jsxs)(Ca.Fragment,{children:[h,!!u&&(0,Ca.jsx)(re.Button.Clear.R,{ssSphere:2.5,flexSizing:"none",fontColor:"4.thin",padding:"1/3",ssEffectsOnActive:"expand",color:"cloud",onClick:()=>{b(!0)},children:(0,Ca.jsx)(Ce.Pen,{})})]})})}),!y&&(0,Ca.jsxs)(E,{fontSize:"1.mini",fontColor:"4.thin",flexSizing:0,children:[A,"\u30D5\u30A1\u30A4\u30EB / ",w,"B"]})]}),(0,Ca.jsx)(re.Button.Sub.R,{color:"cloud",fontColor:"4.thin",ssSphere:3,onClick:()=>{let $=[...s.dataValue];$[r]&&($.splice(r,1),d(F=>D(_({},F),{dataValue:$,eventType:"update",eventID:Tu.default.uuid.gen()})))},children:(0,Ca.jsx)(Ce.Times,{})})]})}},fG=a=>{let r=a,{tone:o,required:l,form:s,fileNameEdit:d=!0,systemOnly:u=!1,accept:h="*",limit:p=1,checkValidationAtFirst:v,onChange:y,onValidate:b,onUpdateValue:C,onUpdateValidValue:w,value:T=[],className:L,cellStyles:A,cellClassName:$,componentID:F,status_id:j,enableFormSubmit:U,freeCSS:K,wrapStyles:M}=r,oe=Ze(r,["tone","required","form","fileNameEdit","systemOnly","accept","limit","checkValidationAtFirst","onChange","onValidate","onUpdateValue","onUpdateValidValue","value","className","cellStyles","cellClassName","componentID","status_id","enableFormSubmit","freeCSS","wrapStyles"]),ke={componentID:a.componentID||"",dataValue:T,eventType:"init",eventID:Tu.default.uuid.gen()},[J,pe]=(0,tp.useState)(ke),[he,ce]=(0,tp.useState)({ok:!1,notice:[]});va.CommonEffects({type:"file",states:a,val_status:J,set_status:pe,val_validate:he,set_validate:ce,onUpdateValue:C,onUpdateValidValue:w,DefaultValidation:dG,ExtraOverrideStates:{dataValue:T,formatValue:T},ExtraStoreStates:{AddFiles:ee=>ir(void 0,null,function*(){let me=Ve.get(J.componentID).Files,z=[];for(var ne=0;ne<(ee==null?void 0:ee.length);ne++){let ve=ee[ne],{type:be,name:de}=ve;if(ne+1+me.length>p){Gn.add({componentID:de,secondsToClose:12e3,children:`\u30D5\u30A1\u30A4\u30EB\u9078\u629E\u4E0A\u9650\u3092\u8D85\u3048\u305F\u305F\u3081\u3001${de}}\u306F\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3002`,backgroundColor:"nega"});continue}if(h&&h=="image"&&!be.match(/image/)){Gn.add({componentID:de,secondsToClose:12e3,children:`\u30D5\u30A1\u30A4\u30EB\u5F62\u5F0F\u304C\u7570\u306A\u308B\u305F\u3081\u3001${de} \u306F\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3002`,backgroundColor:"nega"});continue}z.push(ve)}pe(ve=>D(_({},ve),{dataValue:[...me,...z],eventType:"update",eventID:Tu.default.uuid.gen()}))})}});let P="";return h&&(h=="image"?P="image/png,image/jpeg":P=h),(0,Ca.jsxs)(Jr,{val_status:J,set_status:pe,val_validate:he,states:a,children:[(0,Ca.jsx)(E,D(_({htmlTag:"input",type:"file",className:es("Input"),"data-form":s,"data-input-type":"file","data-component-id":J.componentID,"data-validation":he.ok,accept:P,multiple:p!=1,onChange:ee=>ir(void 0,null,function*(){let me=ee.target,z=me.files,ne=[];for(var ve=0;ve<(z==null?void 0:z.length);ve++){let be=z[ve],de=be.name;if(be.id=Tu.default.uuid.gen(),ve+1+J.dataValue.length>p){Gn.add({componentID:de,secondsToClose:12e3,children:`\u30D5\u30A1\u30A4\u30EB\u767B\u9332\u6570\u3092\u8D85\u3048\u305F\u305F\u3081\u3001${de}}\u306F\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,backgroundColor:"nega"});continue}ne.push(be)}pe(be=>D(_({},be),{dataValue:[...be.dataValue,...ne],eventType:"update",eventID:Tu.default.uuid.gen()})),me.value=""})},oe),{tabIndex:-1,value:""})),!u&&(0,Ca.jsx)(RO.List,{files:J.dataValue,states:a,val_status:J,set_status:pe})]})};typeof window!="undefined"&&window.document&&(0,Tu.default)(document).addEvent({eventType:"dragover",callback:a=>{a.preventDefault(),xt("."+es("AddButton")).addClass(es("Draggable"))},options:{passive:!1}}).addEvent({eventType:"drop",callback:a=>{a.preventDefault(),xt("."+es("AddButton")).removeClass(es("Draggable"));let r=a.dataTransfer.files;if(r.length){let o=a.target;if(xt(o).hasClass(es("AddButton"))){let{componentId:l}=o.dataset,s=Ve.get(l);s&&s.AddFiles&&s.AddFiles(r)}}},options:{passive:!1}});var ww=a=>{a=_({},a),a.override="force";let r=In(a);return r.cellClassName=[r.cellClassName,In(No(D(_({},r.cellStyles),{tone:r.tone}))).className].join(" "),(0,Ca.jsx)(Hr,{componentID:a.componentID,children:fG,states:r})};ww.fn={openDialog:a=>{let{multiple:r,accept:o}=a;return new Promise(l=>{let s=document.createElement("input");s.type="file",s.multiple=r!=null?r:!0,o&&(o=="image"?s.accept="image/png,image/jpeg":s.accept=o),s.onchange=d=>{l(d.target.files)},s.click()})}};var qn=Z(Mt()),wm=Z(ha()),Ps=Z(ma());function pG(a){let{value:r,states:o}=a,{required:l}=o,s=[];return l&&!r&&s.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"}),{ok:!s.filter(({type:d})=>d=="invalid").length,notice:s}}var AO=a=>{let{value:r,val_status:o}=a,{min:l,max:s,step:d}=o;r=Math.max(r,l),r=Math.min(r,s);let u=r/s*s;return u=Math.round(u/d),{stepValue:u*d,stepIndex:u,positionLeft:u*d/s*100+"%"}},DO={IndicatorLabels:a=>{let{componentID:r,min:o,max:l,step:s,customLegends:d}=a,u=[],h=Math.round(o/s),p=Math.round(l/s),v=p-h+1;for(var y=h;y<=p;y++){let b=y*s;b=Math.max(b,o),b=Math.min(b,l);let C=b/l*100+"%";u.push((0,qn.jsx)(E,{className:As("Label"),id:"Legend-"+r+"-"+y,display:y==h||y==p?"flex":"none",position:"absolute",top:0,unitHeight:1,unitWidth:1.5,transition:"middle",fontColor:"1.clear",verticalAlign:"center",horizontalAlign:"center",freeCSS:{left:C,whiteSpace:"nowrap",textAlign:"center"},children:d?d(b):b.rank()},b))}return(0,wm.useEffect)(()=>{let b=()=>{let C=xt("#Labels-"+r),{width:w}=C.position(),T=Math.round(w/50)-1,L=Math.round(v/T);for(let A=h+1;A<p;A++)xt("#Legend-"+r+"-"+A).css({display:A%L==0?"flex":"none"})};return(0,Ps.default)(window).addEvent({eventID:"SliderResizeCallback-"+r,eventType:"resize",callback:()=>{b()}}),b(),()=>{(0,Ps.default)(window).removeEvent("SliderResizeCallback-"+r)}},[]),(0,qn.jsx)(vt,{className:As("Labels"),verticalAlign:"center",horizontalAlign:"between",fontSize:"0.xs",position:"relative",unitHeight:1,id:"Labels-"+r,children:(0,qn.jsx)(E,{position:"absolute",top:0,left:0,bottom:0,freeCSS:{right:12*1.5},children:u})})},Rail:a=>{let{val_status:r,set_status:o,DotData:l,form:s,enableFormSubmit:d}=a,{componentID:u}=r;return(0,qn.jsxs)(vt,{className:As("Rail"),position:"relative",paddingLeft:"1/2",unitHeight:1.5,verticalAlign:"center",freeCSS:{minWidth:"10rem",zIndex:1,cursor:"pointer"},onMouseDown:h=>{a.rootStates.disabled||(h.stopPropagation(),Td.Effects.Start(h,{val_status:r,set_status:o,DotData:l}))},onTouchStart:h=>{a.rootStates.disabled||(h.stopPropagation(),Td.Effects.Start(h,{val_status:r,set_status:o,DotData:l}))},children:[(0,qn.jsx)(E,{className:As("Bar"),backgroundColor:"layer.4",position:"relative",isRounded:!0,transition:"middle",flexSizing:"none",unitHeight:"2/3",width:1,id:u+"_Bar",children:(0,qn.jsx)(E,{className:As("BarColor"),position:"relative",height:1,width:0,left:0,transition:"long",borderRadius:"inherit",backgroundColor:a.color,opacity:"middle",overflow:"hidden",freeCSS:{width:l.positionLeft},id:u+"_BarColor"})}),(0,qn.jsx)(E,{className:As("BallWrap"),position:"absolute",top:0,left:0,bottom:0,freeCSS:{right:12*1.5},children:(0,qn.jsx)(re.Button.Plain,{className:As("Ball"),position:"absolute",backgroundColor:a.color,top:0,left:0,ssSphere:1.5,freeCSS:{zIndex:2,left:l.positionLeft},"data-form-name":s,id:u+"_Ball",onKeyDown:h=>{Td.KeyDownEvent({event:h,val_status:r,set_status:o,DotData:l}),d&&va.SubmitForm(h)}})})]})}},Td={Effects:{Start:(a,r)=>{(0,Ps.default)(document).addEvent({eventID:"SliderMouseMove",eventType:"mousemove",callback:o=>{Td.Effects.Move(o,r)},options:{passive:!1}}).addEvent({eventID:"SliderTouchMove",eventType:"touchmove",callback:o=>{Td.Effects.Move(o,r)},options:{passive:!1}}).addEvent({eventID:"SliderMouseUp",eventType:"mouseup",callback:()=>{Td.Effects.End()}}).addEvent({eventID:"SliderTouchEnd",eventType:"touchend",callback:()=>{Td.Effects.End()}})},Move:(a,r)=>{let o=Ps.default.getCursor(a).x,{val_status:l,set_status:s}=r,{componentID:d,min:u,max:h}=l,p=xt("#"+d+"_Ball"),v=xt("#"+d+"_Bar"),y=xt("#"+d+"_BarColor"),{width:b,left:C}=v.position(),w=(o-C)/b;w=Math.max(w,0),w=Math.min(w,1);let T=w*h,L=AO({value:T,val_status:l}),A=L.positionLeft,$=L.stepValue;p.css({left:A}),y.css({width:A});let{prevValue:F}=Ve.get(d);return $!=F&&(Ve.update({[d]:{prevValue:$}}),s(j=>D(_({},j),{dataValue:$,eventType:"update",eventID:Ps.default.uuid.gen()}))),a.preventDefault(),a.stopPropagation(),!1},End:()=>{(0,Ps.default)(document).removeEvent(["SliderMouseMove","SliderTouchMove","SliderMouseUp","SliderTouchEnd"])}},KeyDownEvent:a=>{let{event:r,val_status:o,set_status:l}=a,{min:s,max:d,step:u}=o,{key:h,metaKey:p,ctrlKey:v}=r,y=v||p,b=o.dataValue;h.match(/Arrow/)&&(r.preventDefault(),h.match(/Left|Up/)?y?b=s:b-=u:h.match(/Right|Down/)&&(y?b=d:b+=u),b=Math.max(Math.min(b,d),s),Ve.update({[o.componentID]:{prevValue:b}}),l(C=>D(_({},C),{dataValue:b,eventType:"update",eventID:Ps.default.uuid.gen()})))}},hG=a=>{let r=a,{color:o="theme",required:l,form:s="",legends:{enable:d=!0,custom:u,showAlways:h=!1}={},min:p,max:v,step:y,enableFormSubmit:b,checkValidationAtFirst:C,onChange:w,onKeyDown:T,onValidate:L,onUpdateValue:A,onUpdateValidValue:$,value:F="",className:j,freeCSS:U,wrapStyles:K}=r,M=Ze(r,["color","required","form","legends","min","max","step","enableFormSubmit","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","className","freeCSS","wrapStyles"]),oe={componentID:a.componentID||"",dataValue:F,min:p,max:v,step:y,eventType:"init",eventID:Ps.default.uuid.gen()},[ke,J]=(0,wm.useState)(oe),[pe,he]=(0,wm.useState)({ok:!1,notice:[]});va.CommonEffects({type:"slider",states:a,val_status:ke,set_status:J,val_validate:pe,set_validate:he,onUpdateValue:A,onUpdateValidValue:$,DefaultValidation:pG,ExtraOverrideStates:{dataValue:F},ExtraStoreStates:{prevValue:ke.dataValue,setValueByForeign:P=>{J(ee=>D(_({},ee),{dataValue:P,eventType:"update",eventID:Ps.default.uuid.gen()}))}}});let ce=AO({value:ke.dataValue,val_status:ke});return(0,qn.jsxs)(Jr,{val_status:ke,set_status:J,val_validate:pe,states:a,children:[(0,qn.jsx)(Bs,_({value:ce.stepValue,form:s,"data-value":ce.stepValue,"data-validation":pe.ok,"data-input-type":"slider"},M)),(0,qn.jsxs)(ft,{gap:"1/2",flexSizing:"auto",className:[As("Wrap"),j,As("ShowLegendsAlways_"+h)].join(" "),children:[(0,qn.jsx)(DO.Rail,{rootStates:a,color:o,val_status:ke,set_status:J,DotData:ce,form:s,enableFormSubmit:b}),!!d&&(0,qn.jsx)(DO.IndicatorLabels,{componentID:ke.componentID,min:p,max:v,step:y,customLegends:u})]})]})},LO=a=>(a=_({},a),(0,qn.jsx)(Hr,{componentID:a.componentID,children:hG,states:In(a)}));var is=Z(Mt()),Cw=Z(ha()),xw=Z(ma());function mG(a){let{value:r,states:o}=a,{required:l}=o,s=[];return l&&!r&&s.push({type:"invalid",label:"ON\u306B\u306A\u3063\u3066\u3044\u307E\u305B\u3093"}),{ok:!s.filter(({type:d})=>d=="invalid").length,notice:s}}var vG=a=>{let r=a,{componentID:o,color:l="posi",required:s,form:d,id:u,enableFormSubmit:h,checkValidationAtFirst:p,onChange:v,onKeyDown:y,onValidate:b,onUpdateValue:C,onUpdateValidValue:w,value:T="",icon:L="",appearance:A="material"}=r,$=Ze(r,["componentID","color","required","form","id","enableFormSubmit","checkValidationAtFirst","onChange","onKeyDown","onValidate","onUpdateValue","onUpdateValidValue","value","icon","appearance"]),F={componentID:a.componentID||"",dataValue:T,eventType:"init",eventID:xw.default.uuid.gen()},[j,U]=(0,Cw.useState)(F),[K,M]=(0,Cw.useState)({ok:!1,notice:[]}),oe=!!j.dataValue;return va.CommonEffects({type:"switch",states:a,val_status:j,set_status:U,val_validate:K,set_validate:M,DefaultValidation:mG,onUpdateValue:C,onUpdateValidValue:w,ExtraOverrideStates:{dataValue:T,formatValue:T}}),(0,is.jsxs)(Jr,{val_status:j,set_status:U,val_validate:K,states:a,children:[(0,is.jsx)(E,_({htmlTag:"input",type:"checkbox","data-form":d,"data-input-type":"switch","data-validation":K.ok,"data-component-id":j.componentID,"data-value":j.dataValue,checked:j.dataValue,className:dm("Input"),id:u,onKeyDown:ke=>{y&&y(ke),h&&va.SubmitForm(ke)},onChange:ke=>{let{checked:J}=ke.target;K.ok&&M({ok:!1,notice:[]}),U(pe=>D(_({},pe),{dataValue:J,eventType:"update",eventID:xw.default.uuid.gen()})),v&&v(ke)}},$)),(0,is.jsx)(re.Label.Plain,{tabIndex:-1,htmlFor:u,padding:"1/3",transition:"middle",borderRadius:"1.tone.primary",className:dm("Label"),children:(0,is.jsx)(E,D(_({},A=="applely"?{padding:"1/4",isRounded:!0,backgroundColor:oe?l:"layer.5"}:{}),{children:(0,is.jsxs)(Xe.Center,{unitHeight:2.5,position:"relative",freeCSS:{width:12*4.5},children:[A=="material"&&(0,is.jsx)(E,{position:"absolute",backgroundColor:oe?l:"layer.5",isRounded:!0,unitHeight:1,transition:"middle",width:1,opacity:"middle",className:dm("Bar")}),(0,is.jsx)(E,{position:"absolute",top:0,left:0,backgroundColor:A=="material"&&oe?l:"white",transition:"middle",ssSphere:2.5,boxShadow:"1.remark",className:dm("Dot"),children:L&&(0,is.jsx)(E,{transition:"middle",ssSquare:2,flexCenter:!0,fontColor:A=="applely"&&oe?l:"white",children:L})})]})}))})]})},BO=a=>(a=_({},a),a.color=a.color||"theme",(0,is.jsx)(Hr,{componentID:a.componentID,children:vG,states:a}));var NO=Z(Mt());var OO=a=>(a=_({},a),(0,NO.jsx)(O_,D(_({},a),{icon:!0,value:a.value?!0:null,cellStyles:_({padding:0},a.cellStyles),options:[{value:!0,label:a.label}],onUpdateValidValue:r=>{let o=!!r.value[0];a.onUpdateValidValue&&a.onUpdateValidValue(D(_({},r),{value:o}))}})));var ku=Z(Mt()),IO=Z(ma()),M_=Z(ha());var gG=a=>{let r=a,{__sys_segmented_type:o,tone:l,value:s,options:d,onUpdateValue:u,onUpdateValidValue:h,enableFormSubmit:p,checkValidationAtFirst:v,cellStyles:y,cellClassName:b,cellCheckedClassName:C,cellCheckedStyles:w,freeCSS:T,wrapStyles:L}=r,A=Ze(r,["__sys_segmented_type","tone","value","options","onUpdateValue","onUpdateValidValue","enableFormSubmit","checkValidationAtFirst","cellStyles","cellClassName","cellCheckedClassName","cellCheckedStyles","freeCSS","wrapStyles"]),[$]=(0,M_.useState)(IO.default.uuid.gen()),[F,j]=(0,M_.useState)(s),[U,K]=(0,M_.useState)(F);return F!=s&&(j(s),K(s)),(0,ku.jsx)(_d,D(_({options:d,value:U,componentID:$,icon:!1,flexWrap:!1,borderRadius:"2.tone.secondary",position:"relative"},A),{freeCSS:_({whiteSpace:"nowrap"},T),cellStyles:_({flexCenter:!0,ssEffectsOnActive:"push"},y),cellCheckedStyles:_({},w),cellClassName:[b,b_("Label"),b_("Tone_"+o.replace(/\./ig,""))].join(" "),cellCheckedClassName:[C,b_("Checked")].join(" "),tone:"custom",onUpdateValue:u,onUpdateValidValue:M=>{h&&h(M),o=="bottomline"&&K(M.value)}}))},F_=a=>{let{__sys_segmented_type:r}=a;return r=r||"plain",r=="plain"&&(a=D(_({padding:"1/3",gap:"1/3",ssCardBox:!0,isRounded:!0},a),{cellStyles:_({isRounded:!0,padding:["1/2","3/4"],borderRadius:"inherit",position:"relative"},a.cellStyles),cellCheckedStyles:_({backgroundColor:"theme",boxShadow:"1.normal",fontColor:"white"},a.cellCheckedStyles)})),(0,ku.jsx)(gG,_({__sys_segmented_type:"plain"},a))},ls=F_;ls.Cloud=a=>{let r=D(_({__sys_segmented_type:"cloud",padding:"1/3",gap:"1/3",backgroundColor:"cloud"},a),{cellStyles:_({padding:"3/4",borderRadius:"inherit",position:"relative"},a.cellStyles),cellCheckedStyles:_({boxShadow:"1.normal",backgroundColor:"theme",fontColor:"white"},a.cellCheckedStyles)});return(0,ku.jsx)(F_,_({},r))},ls.CloudTheme=a=>{let r=_({backgroundColor:"theme.opa.few",fontColor:"theme",__sys_segmented_type:"cloud.theme"},a);return(0,ku.jsx)(ls.Cloud,_({},r))},ls.CloudMono=a=>{let r=D(_({fontColor:"3.blur",__sys_segmented_type:"cloud.mono"},a),{cellCheckedStyles:_({backgroundColor:"layer.1",fontColor:"1.clear"},a.cellCheckedStyles)});return(0,ku.jsx)(ls.Cloud,_({},r))},ls.Border=a=>{let r=D(_({backgroundColor:"layer.1",border:"2.normal",overflow:"hidden",gap:0,fontColor:"3.blur",ssLastChildLossBorder:"right",boxShadow:"0.min",__sys_segmented_type:"border"},a),{cellStyles:_({padding:["3/4",1],borderRadius:0,borderRight:"2.normal"},a.cellStyles),cellCheckedStyles:_({backgroundColor:"theme.opa.few",fontColor:"theme"},a.cellCheckedStyles)});return(0,ku.jsx)(F_,_({},r))},ls.BorderVivid=a=>{let r=D(_({border:!0,borderColor:"theme",__sys_segmented_type:"border.vivid"},a),{cellStyles:_({borderRight:!0,borderColor:"theme"},a.cellStyles),cellCheckedStyles:_({backgroundColor:"theme",fontColor:"white"},a.cellCheckedStyles)});return(0,ku.jsx)(ls.Border,_({},r))},ls.Bottomline=a=>{let r=D(_({__sys_segmented_type:"bottomline",gap:0,fontColor:"3.blur"},a),{cellStyles:_({ssEffectsOnActive:"ripple.theme",borderRadius:0,padding:1},a.cellStyles),cellCheckedStyles:_({fontColor:"theme"},a.cellCheckedStyles)});return(0,ku.jsx)(F_,_({},r))};var ut;(a=>(a.Plain=IN,a.Hidden=Bs,a.TextField=Sn,a.Contenteditable=YN,a.DigitCharacters=GN,a.Time=Is,a.Select=os,a.Autocomplete=P_,a.List=uO,a.Radio=_d,a.Checkbox=O_,a.Checker=OO,a.Search=gO,a.Filer=ww,a.Slider=LO,a.Switch=BO,a.Segmented=ls,a.LeftIcon=R_,a.RightIcon=pn,a.LeftIndicator=qf,a.RightIndicator=gc,a.RequiredSign=T_,a.RequiredShortSign=k_,a.OmitSign=E_))(ut||(ut={}));var H_=a=>{let r=a,{tabIndex:o,tabs:l,onTabChange:s,componentDidMount:d}=r,u=Ze(r,["tabIndex","tabs","onTabChange","componentDidMount"]);return(0,PO.useEffect)(()=>{d&&d()},[]),(0,z_.jsx)(vt,D(_({position:"relative",overflow:"auto",flexWrap:!1},u),{freeCSS:_({zIndex:3,whiteSpace:"nowrap"},u.freeCSS),children:(0,z_.jsx)(E,{margin:[0,"auto"],children:(0,z_.jsx)(ut.Segmented.Bottomline,{value:o,fontColor:"inherit",gap:0,override:"force",options:l.map((h,p)=>({value:p,label:h})),onUpdateValidValue:h=>{let p=h.value;s&&s(p)}})})}))};var wc=Z(Mt());var qa={Table:a=>(0,wc.jsx)(E,D(_({htmlTag:"table"},a),{border:a.border})),Head:a=>(0,wc.jsx)(E,_({htmlTag:"thead"},a)),Body:a=>(0,wc.jsx)(E,_({htmlTag:"tbody"},a)),Row:a=>(0,wc.jsx)(E,_({htmlTag:"tr"},a)),TH:a=>(0,wc.jsx)(E,_({htmlTag:"th"},a)),TD:a=>(0,wc.jsx)(E,_({htmlTag:"td"},a)),RightIndicator:{type:"td",unitWidth:4,children:(0,wc.jsx)(Ce.AngleRight,{fontColor:"theme",fontSize:"4.thirdTitle"})}};var Po=Z(Mt());var Tw=Z(Mt()),FO=Z(ma());var MO=(a,r)=>{if(r=="plain")return{};let o={};return a=="drag"&&(o.padding=1),["border","rowBorder","cellBorder"].includes(r)&&(o.borderBottom="2.normal"),["border","cellBorder"].includes(r)&&(o.borderRight="2.normal"),_({padding:"3/4",backgroundColor:"layer.1",transition:"short",textAlign:"center"},o)},ul=a=>{let r={};return a.right&&(r.borderRight="unset"),a.top&&(a.left&&(r.borderTopLeftRadius="inherit"),a.right&&(r.borderTopRightRadius="inherit")),a.bottom&&(r.borderBottom="unset",a.left&&(r.borderBottomLeftRadius="inherit"),a.right&&(r.borderBottomRightRadius="inherit")),r};var ap=a=>{let r=_({},a),{JSXChildren:o}=r;(!r.tone||r.tone=="auto")&&(r.tone="border",r.type=="drag"&&(r.tone="rowBorder"));let l=D(_({tableID:r.tableID||FO.default.uuid.gen(),tone:r.tone},r),{cellStyles:_(_({},MO(r.type,r.tone)),r.cellStyles)});r.tone!="plain"&&(l=_({backgroundColor:"layer.1",borderRadius:"1.tone.primary"},l));let s=In(l),{className:d,style:u}=s,h=Ze(s,["className","style"]),p=[d,ea("Wrap"),ea("TableType_"+r.type),ea("RowClickable_"+!!l.onRowClick)].join(" ");return(0,Tw.jsx)(E,{className:p,style:u,children:(0,Tw.jsx)(o,_({},h))})};var kw={HeadRow:a=>{let{cellStyles:r={},cellClassName:o="",cellStylesCallback:l,colLength:s,head:d,rows:u}=a;if(!d)return null;let h=[];return d.forEach((p,v)=>{let y=qa[p.type=="th"?"TH":"TD"],b={top:!0,bottom:!u.length,left:v==0,right:v==s-1,rowIndex:0,colIndex:v,isBody:!1,isHeader:!0},C=ul(b),w=l?l(b):{},T=D(_(_(_(_({},r),C),w),p),{freeCSS:_(_(_({},r.freeCSS),w.freeCSS),p.freeCSS),className:[ea("Cell"),o,p.className].join(" ")});h.push((0,Po.jsx)(y,_({},T),v))}),(0,Po.jsx)(qa.Row,{className:[ea("Row"),ea("HeadRow")].join(" "),children:h})},BodyRows:a=>{let{cellStyles:r={},cellClassName:o="",cellStylesCallback:l,head:s,rows:d,colLength:u,onRowClick:h}=a,p=[];return d.forEach((v,y)=>{let b=[];v.forEach((C,w)=>{let T=qa[C.type=="th"?"TH":"TD"],L={top:y==0&&!s,bottom:y==d.length-1,left:w==0,right:w==u-1,rowIndex:y,colIndex:w,isBody:!0,isHeader:!1},A=ul(L),$=l?l(L):{};b.push((0,Po.jsx)(T,D(_(_(_(_({},r),A),C),$),{freeCSS:_(_(_({},r.freeCSS),$.freeCSS),C.freeCSS),className:[ea("Cell"),o,C.className].join(" ")}),w))}),p.push((0,Po.jsx)(qa.Row,{className:[ea("Row"),ea("BodyRow")].join(" "),children:b,onClick:C=>{h&&h(v.rowID,C)}},y))}),(0,Po.jsx)(Po.Fragment,{children:p})},Normal:a=>(a=_({},a),a.rows=a.rows.map((r,o)=>(r.rowID=r.rowID||o,r)),(0,Po.jsx)(qa.Table,{className:ea("Table"),children:(0,Po.jsxs)(qa.Body,{children:[(0,Po.jsx)(kw.HeadRow,_({},a)),(0,Po.jsx)(kw.BodyRows,_({},a))]})}))},zO=a=>(0,Po.jsx)(ap,D(_({type:"normal"},a),{JSXChildren:kw.Normal}));var Cr=Z(Mt()),op=Z(ha()),rp=Z(ma());var Rw=Z($O());var Dw={HeadRow:a=>{let{cellStyles:r={},cellClassName:o="",cellStylesCallback:l,colLength:s,head:d,rows:u}=a;if(!d)return null;let h=[];for(let p=0;p<s;p++){let v=d[p],y=qa[v.type=="th"?"TH":"TD"],b={top:!0,bottom:!u.length,left:p==0,right:p==s-1,rowIndex:0,colIndex:p,isBody:!1,isHeader:!0},C=ul(b),w=l?l(b):{};h.push((0,Cr.jsx)(y,D(_(_(_(_({},r),C),v),w),{freeCSS:_(_(_({},r.freeCSS),w.freeCSS),v.freeCSS),className:[ea("Cell"),o,v.className].join(" ")}),p))}return(0,Cr.jsx)(qa.Row,{className:[ea("Row"),ea("HeadRow")].join(" "),children:h})},BodyRows:a=>{let{cellStyles:r={},cellClassName:o="",cellStylesCallback:l,head:s,rows:d,colLength:u,onOrderChanged:h}=a,[p]=(0,op.useState)(rp.default.uuid.gen()),[v,y]=(0,op.useState)({rows:d,origin:0,to:NaN}),b=[];if(v.rows.forEach((C,w)=>{let T=[];{let L={top:w==0&&!s,bottom:w==d.length-1,left:!0,right:!1,rowIndex:w,colIndex:0,isBody:!0,isHeader:!1},A=ul(L),$=l?l(L):{};T.push((0,Cr.jsx)(qa.TH,D(_(_(_({padding:0,borderRight:!0},r),A),$),{freeCSS:_(_({},r.freeCSS),$.freeCSS),className:[ea("Cell"),ea("Draggable"),o].join(" "),children:(0,Cr.jsx)(re.Button.Clear.R,{className:ea("DragableButton"),fontColor:"4.thin",fontSize:"3.paragraph",margin:"auto",ssSphere:3,tabIndex:-1,onMouseDown:F=>{np.Start(F,{id:p,index:w,rows:v.rows,maxLength:d.length})},onTouchStart:F=>{np.Start(F,{id:p,index:w,rows:v.rows,maxLength:d.length})},children:(0,Cr.jsx)(Ce,{icon:Rw.faGripVertical})})}),"DragOrigin"))}C.forEach((L,A)=>{L=_({},L);let $=qa[L.type=="th"?"TH":"TD"],F={top:!!s&&!s.length,bottom:w==d.length-1,left:!1,right:A==u-2,rowIndex:w,colIndex:A,isBody:!0,isHeader:!1},j=ul(F),U=l?l(F):{};T.push((0,Cr.jsx)($,D(_(_(_(_({},r),j),L),U),{freeCSS:_(_(_({},r.freeCSS),U.freeCSS),L.freeCSS),className:[ea("Cell"),o,L.className].join(" ")}),A))}),b.push((0,Cr.jsx)(qa.Row,{id:"TableRow-"+p+"-"+w,className:[ea("Row"),ea("BodyRow")].join(" "),children:T},w))}),!isNaN(v.to)){let{origin:C,to:w}=v,T=[];T.push((0,Cr.jsx)(qa.TH,{backgroundColor:"theme.opa.low",padding:0,borderRight:"2.normal",className:[ea("Cell"),ea("Draggable"),o].join(" "),children:(0,Cr.jsx)(Ce.ArrowRight,{fontColor:"theme"})},"dragButton")),v.rows[C].forEach((L,A)=>{L=_({},L);let $=qa[L.type=="th"?"TH":"TD"],F={top:!1,bottom:!1,left:!1,right:!1,rowIndex:-1,colIndex:-1,isBody:!0,isHeader:!1},j=ul(F),U=l?l(F):{};T.push((0,Cr.jsx)($,D(_(_(D(_({className:[ea("Cell"),o,L.className].join(" ")},j),{backgroundColor:"theme.opa.low"}),U),L),{freeCSS:_(_(_({},r.freeCSS),U.freeCSS),L.freeCSS)})))}),b.splice(w,0,(0,Cr.jsx)(qa.Row,{className:[ea("Row"),ea("Pre")].join(" "),children:T},"preSet"))}return(0,op.useEffect)(()=>{Ve.set({[p]:{swap:(C,w)=>{if(w||w==0){let T=v.rows[C],L=[...v.rows];L.splice(C,1),L.splice(w-(C<w?1:0),0,T),y({rows:L,origin:0,to:NaN}),h(L.map(A=>JSON.parse(A.rowID)))}},preSet:C=>{let{origin:w,index:T}=C;y({rows:v.rows,origin:w,to:T})}}})}),(0,op.useEffect)(()=>()=>{Ve.delete(p)},[]),(0,Cr.jsx)(Cr.Fragment,{children:b})},Drag:a=>(a=_({},a),a.colLength=a.colLength+1,a.head&&(a.head=[{children:(0,Cr.jsx)(re.Button.Clear.R,{ssSphere:3,fontSize:"3.paragraph",fontColor:"theme",onMouseOver:r=>{Ba.open({parent:r.currentTarget,content:(0,Cr.jsxs)(Ba.Body,{children:[(0,Cr.jsx)(Ce,{icon:Rw.faGripVertical}),"\u30DC\u30BF\u30F3\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u9806\u5E8F\u3092\u5909\u66F4"]})})},children:(0,Cr.jsx)(Ce.QuestionCircle,{})}),padding:[0,1],unitWidth:4},...a.head]),a.rows=a.rows.map((r,o)=>(r.rowID=JSON.stringify(r.rowID||o),r)),(0,Cr.jsx)(qa.Table,{className:ea("Table"),children:(0,Cr.jsxs)(qa.Body,{children:[(0,Cr.jsx)(Dw.HeadRow,_({},a)),(0,Cr.jsx)(Dw.BodyRows,_({},a))]})}))},GO=a=>(0,Cr.jsx)(ap,D(_({type:"drag"},a),{JSXChildren:Dw.Drag})),np={Start:function(a,r){return ir(this,null,function*(){a.stopPropagation(),a.preventDefault();let{id:o,index:l,rows:s,maxLength:d}=r;xt("#TableRow-"+o+"-"+l).addClass(ea("DraggerOrigin")),(0,rp.default)(document).addEvent({eventID:"DragMouseMove",eventType:"mousemove",callback:u=>{np.Move(u,r)},options:{passive:!1}}).addEvent({eventID:"DragTouchMove",eventType:"touchmove",callback:u=>{np.Move(u,r)},options:{passive:!1}}).addEvent({eventID:"DragMouseUp",eventType:"mouseup",callback:u=>{np.End(u,r)}}).addEvent({eventID:"DragTouchEnd",eventType:"touchend",callback:u=>{np.End(u,r)}})})},Move:function(a,r){let{id:o,maxLength:l}=r,s=rp.default.getCursor(a).y-rp.default.getScreenSize().scrollY;for(let d=0;d<l;d++){let u=xt("#TableRow-"+o+"-"+d),{top:h,bottom:p,height:v}=u.position();d==0&&s<h?r.insertIndex=0:d===l-1&&p<=s?r.insertIndex=l:s>=h&&s<p&&(r.insertIndex=d+1)}{let{index:d,insertIndex:u}=r,h=Ve.get(o);h&&h.preSet&&h.preSet({origin:d,index:u})}return a.stopPropagation(),a.preventDefault(),!1},End:function(a,r){let{id:o,index:l,insertIndex:s}=r,d=Ve.get(o);d&&d.swap&&d.swap(l,s),xt("#TableRow-"+o+"-"+l).removeClass(ea("DraggerOrigin")),(0,rp.default)(document).removeEvent(["DragMouseMove","DragTouchMove","DragMouseUp","DragTouchEnd"])}};var Bt=Z(Mt()),Eu=Z(ha()),Mo=Z(ma());var t7=Z(fS()),a7=Z(hS()),r7=Z(cS()),n7=Z(e7());var zn={__memoryID:Mo.default.uuid.gen(),Header:a=>{var r,o;let{val_status:l,set_status:s,KeywordFilterRows:d}=_({},a),{order:u,filter:h}=l,[p,v]=u.current,y=[],b=[...l.head];if(l.checker){let C={top:!0,bottom:!l.rows.length,left:!0,right:!l.colLength,rowIndex:0,colIndex:0,isBody:!1,isHeader:!0},w=ul(C),T=l.cellStylesCallback?l.cellStylesCallback(C):{};y.push((0,Bt.jsx)(qa.TH,D(_(_(_({fontWeight:"2.normal",position:"sticky",top:0,unitWidth:4,padding:0},l.cellStyles),w),T),{freeCSS:D(_(_({},(r=l.cellStyles)==null?void 0:r.freeCSS),T.freeCSS),{zIndex:2}),className:[ea("Cell"),l.cellClassName].join(" "),children:(0,Bt.jsx)(E,{flexCenter:!0,children:(0,Bt.jsx)(ut.Checker,{label:null,value:!1,onUpdateValidValue:({value:L})=>{let A=l.rows;A.forEach($=>{$.checked=L}),s(D(_({},l),{rows:A}))}})})}),-1))}for(let C=0;C<l.colLength;C++){let w=b[C];if(!w)continue;let T=w.children||w.data,L=u.enabled&&u.column[C],A=h.enabled&&h.column[C],$=L?(0,Bt.jsx)(Ce,{fontSize:"1.mini",fontColor:C==p?"1.clear":"5.translucent",icon:C==p?v=="DESC"?a7.faArrowDown:t7.faArrowUp:r7.faArrowRight}):null,F=(0,Bt.jsx)(Bt.Fragment,{});if(A){let M=d.map(ke=>{var J;return(J=ke[C])==null?void 0:J.data});M=[...new Set(M)].order({direction:"ASC"});let oe=h.current[C];if(oe){let ke=M.filter(P=>!oe.includes(P)),J=[];M.forEach(P=>{P&&J.push({value:P,label:(0,Bt.jsx)(E,{flexSizing:"auto",children:P})})});let pe="BUTTON-"+l.componentID+"-"+C,he=l.componentID+"-"+C,ce={sheetID:he,parent:"#"+pe,gravityPoint:23,type:"custom",content:(0,Bt.jsxs)(vt,{flexType:"col",border:!0,boxShadow:"3.remark",backgroundColor:"layer.1",borderRadius:1,freeCSS:{minWidth:12*20,maxWidth:12*30},children:[(0,Bt.jsx)(ft,{gap:"1/3",overflow:"auto",padding:"2/3",freeCSS:{maxHeight:12*30},children:(0,Bt.jsx)(ut.Checkbox,{icon:!0,value:ke,display:"flex",gap:"1/2",override:"force",options:J,hideInput:!0,name:"DTFilter-col-"+C+"-table-"+l.componentID,cellStyles:{flexSizing:"auto",padding:"2/3"},onUpdateValidValue:({value:P})=>{let ee=M.filter(z=>!P.includes(z)),me=_({},l);me.filter.current[C]=ee,s(me)}})}),(0,Bt.jsxs)(Xe.Separate,{gap:"2/3",padding:"2/3",horizontalAlign:"right",children:[(0,Bt.jsx)(re.Button.Border.S,{isRounded:!0,onClick:()=>{Ot.close(he)},children:"\u9589\u3058\u308B"}),(0,Bt.jsx)(re.Button.Prime.S,{color:"theme",isRounded:!0,ssEffectsOnActive:"shrink",onClick:()=>{let P=[];oe.length||(P=M);let ee=_({},l);ee.filter.current[C]=P,s(ee)},children:"\u5168\u9078\u629E"})]})]})};Ot.refresh(ce,!0),F=(0,Bt.jsx)(E,{className:ea("FilterRegion"),children:(0,Bt.jsx)(re.Button.Sub.S,{ssSphere:2.5,fontSize:"1.mini",className:ea("Filtering_"+!!oe.length),id:pe,onClick:P=>{P.stopPropagation(),Ot.open(ce)},children:(0,Bt.jsx)(Ce,{icon:n7.faFilter})})})}}let j={top:!0,bottom:!l.rows.length,left:l.checker?!1:C==0,right:C==l.colLength-1,rowIndex:0,colIndex:C,isBody:!1,isHeader:!0},U=ul(j),K=l.cellStylesCallback?l.cellStylesCallback(j):{};w=D(_(_(_(_({},l.cellStyles),U),w),K),{ssPushable:L,freeCSS:_(_(_({},(o=l.cellStyles)==null?void 0:o.freeCSS),K.freeCSS),w.freeCSS),className:[ea("Cell"),l.cellClassName,w.className].join(" ")}),delete w.orderIndex,y.push((0,Bt.jsx)(qa.TH,D(_({fontWeight:"2.normal",position:"sticky",top:0},w),{freeCSS:_({zIndex:2},w.freeCSS),onClick:M=>{if(L){let oe=_({},l),ke=[C,p===C&&v=="ASC"?"DESC":"ASC"];oe.order.current=ke,s(oe),l.onOrderChanged&&l.onOrderChanged(ke)}},children:(0,Bt.jsxs)(vt,{flexType:"row-r",flexWrap:!1,height:1,borderRadius:"inherit",flexCenter:!0,children:[F,(0,Bt.jsxs)(vt,{flexSizing:0,position:"relative",borderRadius:"inherit",gap:"1/2",flexWrap:!1,verticalAlign:"center",horizontalAlign:"center",children:[$,T]})]})}),C))}return(0,Bt.jsx)(qa.Row,{className:[ea("Row"),ea("HeadRow")].join(" "),children:y})},Body:a=>{let{val_status:r,PageRows:o}=a,l=[];if(o.forEach((s,d)=>{var u;let h=[...s],p=[];if(r.checker){let v={top:d==0&&!r.head,bottom:d==o.length-1,left:!0,right:!r.colLength,rowIndex:d,colIndex:0,isBody:!0,isHeader:!1},y=ul(v),b=r.cellStylesCallback?r.cellStylesCallback(v):{};p.push((0,Bt.jsx)(qa.TH,D(_(_(_({unitWidth:4,padding:0,borderRight:!0},r.cellStyles),y),b),{freeCSS:_(_({},(u=r.cellStyles)==null?void 0:u.freeCSS),b.freeCSS),className:[ea("Cell"),r.cellClassName].join(" "),children:(0,Bt.jsx)(E,{flexCenter:!0,children:(0,Bt.jsx)(ut.Checker,{label:null,value:s.checked,override:"force",onUpdateValidValue:({value:C})=>{let w=r.rows;w[d].checked=C,a.set_status(T=>D(_({},T),{rows:w}))}})})}),-1))}h.forEach((v,y)=>{var b;if(!v)return;let C=v,{type:w="td"}=C,T=Ze(C,["type"]),L={top:d==0&&!r.head,bottom:d==o.length-1,left:r.checker?!1:y==0,right:y==r.colLength-1,rowIndex:d,colIndex:y,isBody:!0,isHeader:!1},A=ul(L),$=r.cellStylesCallback?r.cellStylesCallback(L):{};T=D(_(_(_(_({},r.cellStyles),A),T),$),{freeCSS:_(_(_({},(b=r.cellStyles)==null?void 0:b.freeCSS),T.freeCSS),$.freeCSS),className:[ea("Cell"),r.cellClassName,T.className].join(" ")}),delete T.orderIndex;let F=qa[w=="td"?"TD":"TH"];p.push((0,Bt.jsx)(F,_({},T),y))}),l.push((0,Bt.jsx)(qa.Row,{className:[ea("Row"),ea("BodyRow")].join(" "),children:p,onClick:v=>{r.onRowClick&&r.onRowClick(JSON.parse(s.rowID),v)}},d))}),!o.length){let s=(0,Bt.jsx)(E,{padding:2,fontColor:"4.thin",textAlign:"center",borderTop:"1.thin",children:"\u30C6\u30FC\u30D6\u30EB\u304C\u3042\u308A\u307E\u305B\u3093"});r.noRecords&&(s=(0,Bt.jsx)(Bt.Fragment,{children:r.noRecords})),l.push((0,Bt.jsx)(qa.Row,{className:[ea("Row"),ea("BodyRow"),ea("DataNotFound")].join(" "),children:(0,Bt.jsx)(qa.TD,{colSpan:r.colLength,className:ea("Cell"),children:s})},"dataNotFound"))}return(0,Bt.jsx)(Bt.Fragment,{children:l})},Core:a=>{let{val_status:r,set_status:o}=a,{searchKeyword:l,filter:s,order:d,paging:u}=r,h=[...r.rows],p=[...r.rows],v=[...r.rows],y=[...r.rows];if(l&&(p=h.filter(w=>(w.__sys4SearchKey||"").match(new RegExp(l,"i"))?1:0),v=[...p],y=[...p]),s.enabled)for(let w=0;w<r.colLength;w++){let T=s.column[w],L=s.current[w];T&&L&&L.length&&(v=v.filter(A=>!L.includes(A[w].data)),y=[...v])}d.enabled&&(v=v.order({direction:d.current[1],keys:[d.current[0],"orderIndex"]}),y=[...v]);{let{currentPageIndex:w,rowLength:T}=u;y=[...y].splice((w-1)*T,T)}let b=zn.__memoryID+"_"+r.tableID,C={tableComponentDidMount:!0,totalRows:h.length,pageRows:y.length,filteredRows:v.length,filter:r.filter,order:r.order,paging:r.paging,searchKeyword:r.searchKeyword};return Ve.update({[b]:{status:C,updatePageIndex:w=>{let T=Math.min(Math.max(1,w),r.paging.pageLength),L=_({},r);L.paging.currentPageIndex=T,o(L)},updateRowLength:w=>{let T=_({},r);T.paging={rowLength:w,currentPageIndex:1,pageLength:Math.ceil(v.length/w)},o(T)},updateKeyword:w=>{Mo.default.interval.clear("InputSearchTime"),Mo.default.interval.standBy("InputSearchTime",200,()=>{let T=_({},r);T.searchKeyword=w,T.paging.currentPageIndex=1,T.filter.current=T.filter.current.map(()=>[]),o(T)})},getRowData:()=>{let w=[...h];return d.enabled&&(w=w.order({direction:d.current[1],keys:[d.current[0],"orderIndex"]})),w.forEach(T=>{T.currentPage=!1,T.filtered=!1}),y.forEach(T=>{let{rowID:L}=T;w.find(A=>A.rowID==L).currentPage=!0}),v.forEach(T=>{let{rowID:L}=T;w.find(A=>A.rowID==L).filtered=!0}),w}}}),(0,Eu.useEffect)(()=>{let w=zn.Propagations[r.tableID]||[];Object.keys(w).forEach(T=>{let L=Ve.get(T);L!=null&&L.refresh&&L.refresh()})}),(0,Bt.jsx)(E,{className:ea("TableBase"),children:(0,Bt.jsx)(qa.Table,{className:ea("Table"),children:(0,Bt.jsxs)(qa.Body,{children:[(0,Bt.jsx)(zn.Header,{val_status:r,set_status:o,KeywordFilterRows:p}),(0,Bt.jsx)(zn.Body,{val_status:r,set_status:o,PageRows:y})]})})})},Propagations:{},DataLeveler:a=>{var r,o;return a=_({},a),a.filter=(r=a.filter)!=null?r:!1,a.filter=Array.from({length:a.colLength}).map((l,s)=>{var d;return Mo.default.is.boolean(a.filter)?a.filter:(d=a.filter[s])!=null?d:!1}),a.order=(o=a.order)!=null?o:!0,a.order=Array.from({length:a.colLength}).map((l,s)=>{var d;return Mo.default.is.boolean(a.order)?a.order:(d=a.order[s])!=null?d:!0}),a=_({checker:!1,searchKeyword:"",filter:!1,order:!0,defaultOrder:[0,"ASC"]},a),a.rows.forEach((l,s)=>{l.rowID=JSON.stringify(l.rowID||s);let d=[];l.forEach((u,h)=>{let{data:p,children:v,orderIndex:y}=u;u.orderIndex=Mo.default.is.exist(y)?String(y):String(p),u.children=v||String(p),d.push(String(u.data))}),l.__sys4SearchKey=d.join("/")}),(0,Bt.jsx)(zn.StateManager,_({eventID:Mo.default.uuid.gen()},a))},StateManager:a=>{let{colLength:r,eventID:o,checker:l=!1,searchKeyword:s="",filter:d,order:u,defaultOrder:h=[0,"ASC"],pageRowLength:p=30}=a,[v]=(0,Eu.useState)(Mo.default.uuid.gen()),y={tableID:a.tableID||v,componentID:v,colLength:r,checker:l,searchKeyword:s,filter:{enabled:d!==!1,column:d,current:Array.from({length:r},()=>[])},order:{enabled:u!==!1,column:u,current:h},paging:{rowLength:p,pageLength:Math.ceil(a.rows.length/p),currentPageIndex:1},head:a.head,rows:a.rows,noRecords:a.noRecords,cellStyles:a.cellStyles||{},cellClassName:a.cellClassName||"",cellStylesCallback:a.cellStylesCallback,onRowClick:a.onRowClick,onOrderChanged:a.onOrderChanged},[b,C]=(0,Eu.useState)(y),[w,T]=(0,Eu.useState)(a.eventID);return w!=a.eventID&&(T(a.eventID),C(y)),(0,Bt.jsx)(zn.Core,{val_status:b,set_status:C})}},Kn={__memoryID:zn.__memoryID,useStatus:a=>{var r;let[o]=(0,Eu.useState)(Mo.default.uuid.gen()),[l,s]=(0,Eu.useState)(Mo.default.uuid.gen()),d=zn.__memoryID+"_"+a;return(0,Eu.useEffect)(()=>(zn.Propagations[a]=D(_({},zn.Propagations[a]),{[o]:1}),Ve.set({[o]:{refresh:()=>{s(Mo.default.uuid.gen())}}}),()=>{delete zn.Propagations[a][o]}),[]),((r=Ve.get(d))==null?void 0:r.status)||{tableComponentDidMount:!1}},getRowData:a=>{let r=Ve.get(zn.__memoryID+"_"+a);if(r!=null&&r.getRowData)return r.getRowData()},setPageIndex:(a,r)=>{let o=Ve.get(zn.__memoryID+"_"+a);o!=null&&o.updatePageIndex&&o.updatePageIndex(r)},setRowLength:(a,r)=>{let o=Ve.get(zn.__memoryID+"_"+a);o!=null&&o.updateRowLength&&o.updateRowLength(r)},setSearchKeyword:(a,r)=>{let o=Ve.get(zn.__memoryID+"_"+a);o!=null&&o.updateKeyword&&o.updateKeyword(r)}},j_={SearchInput:a=>{let r=Kn.useStatus(a.tableID);return r.tableComponentDidMount?(0,Bt.jsx)(ut.TextField,{label:"\u691C\u7D22...",clearButton:!0,padding:"2/3",paddingRight:3,rightIcon:(0,Bt.jsx)(ut.RightIcon,{fontColor:"5.translucent",right:"2/3",children:(0,Bt.jsx)(Ce.Search,{})}),override:"force",value:r.searchKeyword,onUpdateValidValue:({value:o})=>{Mo.default.interval.clear("InputSearchTime"),Mo.default.interval.standBy("InputSearchTime",500,()=>{Kn.setSearchKeyword(a.tableID,o)})}}):null},Info:a=>{let r=Kn.useStatus(a.tableID);if(!r.tableComponentDidMount)return null;let o=r.filteredRows.ratio(r.totalRows)||0;return(0,Bt.jsxs)(vt,{verticalAlign:"baseline",gap:"1/2",fontSize:"1.mini",fontColor:"3.blur",children:[(0,Bt.jsx)(yn,{fontSize:"4.thirdTitle",fontColor:"theme",children:r.filteredRows.toLocaleString()}),"/ ",r.totalRows.toLocaleString(),"\u4EF6 (",o,"%)"]})},Paging:a=>{let r=Kn.useStatus(a.tableID);if(!r.tableComponentDidMount)return null;let o=[];for(let l=0;l<r.paging.pageLength;l++)o.push({value:l+1,label:(l+1).toString()});return(0,Bt.jsxs)(Xe.Center,{children:[(0,Bt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,Bt.jsx)(ut.Select,{label:"\u9805",freeCSS:{minWidth:12*3},emptySelect:!1,padding:["1/3","2/3"],rightIcon:!1,override:"force",value:r.paging.currentPageIndex,options:o,SelectorGravityPoint:24,onUpdateValidValue:({value:l})=>{Kn.setPageIndex(a.tableID,l)}}),"/ ",r.paging.pageLength]}),(0,Bt.jsxs)(Xe.Right,{gap:"1/2",children:[(0,Bt.jsx)(re.Button.Sub.R,{ssSphere:3,onClick:()=>{if(r.paging.currentPageIndex==1){Kn.setPageIndex(a.tableID,r.paging.pageLength);return}Kn.setPageIndex(a.tableID,r.paging.currentPageIndex-1)},children:(0,Bt.jsx)(Ce.ChevronLeft,{})}),(0,Bt.jsx)(re.Button.Sub.R,{ssSphere:3,onClick:()=>{if(r.paging.currentPageIndex==r.paging.pageLength){Kn.setPageIndex(a.tableID,1);return}Kn.setPageIndex(a.tableID,r.paging.currentPageIndex+1)},children:(0,Bt.jsx)(Ce.ChevronRight,{})})]})]})},RowLength:a=>{let r=Kn.useStatus(a.tableID);if(!r.tableComponentDidMount)return null;let o=r.paging.rowLength,l=0,s=a.lengthSelect.map(d=>(l|=+(d==o),{value:d,label:d.toString()}));return l||s.push({value:o,label:o.toString()}),s=s.order({direction:"ASC",keys:["value"]}),(0,Bt.jsx)(Xe.Center,{gap:"1/2",children:(0,Bt.jsx)(ut.Select,{label:"\u4EF6\u6570",emptySelect:!1,rightIcon:!1,override:"force",padding:["1/3","2/3"],value:r.paging.rowLength,options:s,SelectorGravityPoint:24,onUpdateValidValue:({value:d})=>{Kn.setRowLength(a.tableID,d)}})})}},_G=a=>(0,Bt.jsx)(ap,D(_({},a),{type:"data",JSXChildren:zn.DataLeveler})),Ol=_G;Ol.__memoryID=zn.__memoryID,Ol.useStatus=Kn.useStatus,Ol.getRowData=Kn.getRowData,Ol.setPageIndex=Kn.setPageIndex,Ol.setRowLength=Kn.setRowLength,Ol.setSearchKeyword=Kn.setSearchKeyword,Ol.Info=j_.Info,Ol.Paging=j_.Paging,Ol.RowLength=j_.RowLength,Ol.SearchInput=j_.SearchInput;var Xn;(a=>(a.Normal=zO,a.Data=Ol,a.Drag=GO,a.Parts=qa))(Xn||(Xn={}));var gt=Z(Mt()),Br=Z(ma());var ss=Z(ha());var N7=Z(d7()),O7=Z(_7()),I7=Z(T7()),P7=Z(B7());var Iw=class{constructor(r){this.set_scale=r.set_scale,this.val_file=r.val_file,this.develops=r.develops,this.use=r.use,this.componentID=r.componentID,this.scale={current:r.scale.default,default:r.scale.default,min:r.scale.min,max:r.scale.max};let o=r.canvas;this.Canvas={elm:o,ctx:o.getContext("2d")};let l=r.picture.image,{width:s,height:d}=l,u=s/d;this.Picture={elm:l,originDataUrl:l.src,aspect:u,revisedAspect:1,rotate:r.picture.rotate,grayScale:r.picture.grayScale,tone:r.picture.tone},this.pst={frame:{x:0,y:0,w:0,h:0,aspect:1},outImage:{x:0,y:0,w:0,h:0},imageX:s/2,imageY:d/2,centerX:0,centerY:0},this.dragEffectInfo={origin:{x:0,y:0},frameExpandRate:{x:0,y:0}},this.pinchEffectInfo={origin:{x:0,y:0,scale:this.scale.current}},this.frameSizing(),this.modifyImage()}frameSizing(){let r=this.Canvas.elm,o=this.Picture.elm,l=0,s=0;if(this.use=="square"){let y=r.width/3*2,b=r.height/3*2;l=Math.min(y,b),s=l}else this.use=="wallpaper.horizontal"?(l=r.width*(7/9),s=l/3):this.use=="wallpaper.vertical"&&(s=r.height*(7/9),l=s/2);let{width:d,height:u}=o,h=(r.width-l)/2,p=(r.height-s)/2,v=l/s;this.pst={frame:{x:h,y:p,w:l,h:s,aspect:v},outImage:{x:0,y:0,w:0,h:0},imageX:d/2,imageY:u/2,centerX:r.width/2,centerY:r.height/2}}dragEffect(r){let{eventType:o,x:l,y:s}=r;if(o=="start"){let d=this.Canvas.elm.position();this.dragEffectInfo={origin:{x:l,y:s},frameExpandRate:{x:this.Canvas.elm.width/d.width,y:this.Canvas.elm.height/d.height}}}else{let{origin:d,frameExpandRate:u}=this.dragEffectInfo,h=d.x-l,p=d.y-s,v=this.scale.current*this.Picture.revisedAspect/100,y=h/v*u.x,b=p/v*u.y;o=="move"?this.drawImage(this.pst.imageX+y,this.pst.imageY+b):o=="end"&&this.drawImage(this.pst.imageX+=y,this.pst.imageY+=b)}}pinchEffect(r){let{eventType:o,event:l}=r,{x:s,y:d}=Br.default.getCursor(l.touches[0]),{x:u,y:h}=Br.default.getCursor(l.touches[1]),p=u-s,v=h-d;if(o=="start")this.pinchEffectInfo.origin={x:p,y:v,scale:this.scale.current};else if(o=="move"){let{origin:y}=this.pinchEffectInfo,b=Math.sqrt(Math.pow(y.x,2)+Math.pow(y.y,2)),C=Math.sqrt(Math.pow(p,2)+Math.pow(v,2))/b,w=Number(y.scale*C);this.set_scale(w)}}updateScale(r){let o=r;o=Math.max(o,this.scale.min),o=Math.min(o,this.scale.max),this.scale.current=o,this.drawImage()}updateFilter(r){this.Picture.grayScale=r.grayScale,this.Picture.tone=r.tone,this.Picture.rotate=r.rotate,this.modifyImage()}modifyImage(){return ir(this,null,function*(){let{grayScale:r,tone:o,rotate:l}=this.Picture,s=document.createElement("canvas"),d=s.getContext("2d"),u=yield Br.default.ImageLoader(this.Picture.originDataUrl),h=u.width,p=u.height;(l==90||l==270)&&(h=u.height,p=u.width),s.width=h,s.height=p,r&&(d.filter="grayscale("+r+"%)"),l&&(d.translate(h/2,p/2),d.rotate(l*Math.PI/180),[90,270].includes(l)?d.translate(-p/2,-h/2):d.translate(-h/2,-p/2)),d.drawImage(u,0,0,u.width,u.height);let v=d.getImageData(0,0,s.width,s.height),y=v.data;{r/=100;let T=[[255,255,255],[255,200,100],[170,170,255],[240,200,145],[128,255,255],[255,128,255],[255,255,128],[128,158,169],[128,112,162],[50,192,87],[246,100,140]][o],L=T[0]/255,A=T[1]/255,$=T[2]/255;for(let F=0;F<p;F++)for(let j=0;j<h;j++){var b=(F*h+j)*4;if(r){let U=.3*y[b]+.59*y[b+1]+.11*y[b+2];for(var C=0;C<3;C++){let K=y[b+C];y[b+C]=K+(U-K)*r}}y[b]*=L,y[b+1]*=A,y[b+2]*=$}}d.putImageData(v,0,0);let w=s.toDataURL("image/jpeg");{let T=yield Br.default.ImageLoader(w),{width:L,height:A}=T,$=L/A;this.Picture=D(_({},this.Picture),{elm:T,aspect:$,revisedAspect:this.pst.frame.aspect>$?this.pst.frame.w/L:this.pst.frame.h/A})}this.drawImage()})}drawImage(r,o){let{use:l,Canvas:{ctx:s,elm:d},pst:{frame:u}}=this,h=r||this.pst.imageX,p=o||this.pst.imageY;{let v=this.scale.current/100,y=this.Picture.revisedAspect*v,b=this.pst.centerX-h*y,C=this.pst.centerY-p*y,w=this.Picture.elm.width*y,T=this.Picture.elm.height*y;{let L=this.pst.frame.x+this.pst.frame.w-w,A=this.pst.frame.x,$=this.pst.frame.y+this.pst.frame.h-T,F=this.pst.frame.y,j=0;b<L&&(j=b-L),b>A&&(j=b-A);let U=0;C<$&&(U=C-$),C>F&&(U=C-F),this.dragEffectInfo.origin.x+=j/2/this.dragEffectInfo.frameExpandRate.x,this.dragEffectInfo.origin.y+=U/2/this.dragEffectInfo.frameExpandRate.y,b=Math.min(Math.max(b,L),A),C=Math.min(Math.max(C,$),F)}this.pst.outImage={x:b,y:C,w,h:T},s.clearRect(0,0,this.Canvas.elm.width,this.Canvas.elm.height),s.drawImage(this.Picture.elm,0,0,this.Picture.elm.width,this.Picture.elm.height,b,C,w,T)}{if(l=="square"){s.fillStyle="rgba( 20,24,20,.3 )",s.beginPath();let y=d.width/3*2,b=d.height/3*2,C=Math.min(y,b),w=Math.max(y,b);s.arc(d.width/2,d.height/2,w,0,Math.PI*2,!0),s.arc(d.width/2,d.height/2,C/2,0,Math.PI*2,!1),s.closePath(),s.fill()}else(l=="wallpaper.horizontal"||l=="wallpaper.vertical")&&(s.fillStyle="rgba( 20,24,20,.3 )");s.beginPath(),s.moveTo(0,0),s.lineTo(d.width,0),s.lineTo(d.width,d.height),s.lineTo(0,d.height),s.lineTo(0,0),s.closePath(),s.lineTo(u.x,u.y),s.lineTo(u.x,u.y+u.h),s.lineTo(u.x+u.w,u.y+u.h),s.lineTo(u.x+u.w,u.y),s.lineTo(u.x,u.y),s.fill();let v=(0,Br.default)(document.body).getStyleProperty("--color-theme-hsl");s.lineWidth=4,s.strokeStyle=`hsla( ${v},1 )`,s.strokeRect(u.x,u.y,u.w,u.h)}}export(){return ir(this,null,function*(){let{Canvas:r,develops:o,Picture:l,pst:{outImage:s,frame:d}}=this,u=s.w/l.elm.width,h=s.h/l.elm.height,p=(d.x-s.x)/u,v=(d.x-s.x+d.w)/u,y=(d.y-s.y)/h,b=(d.y-s.y+d.h)/h,C=Array.from({length:o.length}),w="image/jpeg";for(let T=0;T<o.length;T++){let{size:L,maxSize:A}=o[T];A=A||{S:1024*20,R:1024*100,L:1024*350}[L];let $={S:140,R:600,L:1200}[L],F=$;this.use=="wallpaper.horizontal"?F=$/3:this.use=="wallpaper.vertical"&&(F=$*2);let j=document.createElement("canvas");j.width=$,j.height=F;let U=j.getContext("2d");if(!U)return;U.clearRect(0,0,$,F),U.drawImage(this.Picture.elm,p,y,v-p,b-y,0,0,$,F);let K=j.toDataURL(w),M=yield K.toBlob(w);if(!M)return;if(M.size>=A){let ke=A/M.size;if(K=j.toDataURL(w,ke*.92),M=yield K.toBlob(w),!M)return}let oe=new File([M],this.val_file.name,{type:w});C[T]=oe}return C})}},M7={Core:a=>{let{val_file:r,options:o,finishedCallback:l,abortCallback:s}=a,{use:d,develops:u=[]}=o,[h]=(0,ss.useState)(Br.default.uuid.gen(32)),p={scale:{default:120,min:100,max:400},rotate:0,grayScale:0,tone:0},[v,y]=(0,ss.useState)(p.scale.default),[b,C]=(0,ss.useState)(p.rotate),[w,T]=(0,ss.useState)(p.grayScale),[L,A]=(0,ss.useState)(p.tone);return(0,ss.useEffect)(()=>{let $="CropperResize";return(0,Br.default)(window).addEvent({eventType:"resize",eventID:$,callback:()=>{Br.default.interval.clear("CropperResize"),Br.default.interval.standBy("CropperResize",200,()=>{var F;let j=xt("#Canvas-"+h)[0];if(!j)return;let U=(F=Ve.get(h))==null?void 0:F.Instance;if(!U)return;let K=j.position(),M=K.width/K.height;j.width=2400,j.height=2400/M;let{width:oe,height:ke}=j;U.pst.centerX=oe/2,U.pst.centerY=ke/2,U.frameSizing(),U.modifyImage()})}}),()=>{(0,Br.default)(window).removeEvent($)}},[]),(0,ss.useEffect)(()=>{Ve.set({[h]:{}}),ir(void 0,null,function*(){Qr.fn.corner.active(),yield Br.default.pending(()=>{},400);let{target:$}=yield r.convert();if(!$)return;let F=$.result,j=xt("#Canvas-"+h)[0];if(!j)return;let U=j.position(),K=U.width/U.height;j.width=2400,j.height=2400/K;let M=new Iw({set_scale:y,val_file:r,develops:u,use:d,scale:p.scale,componentID:h,canvas:j,picture:{image:yield Br.default.ImageLoader(F),grayScale:p.grayScale,tone:p.tone,rotate:p.rotate}});Ve.set({[h]:{Instance:M}});let oe=function(pe){if(pe.preventDefault(),pe.touches&&pe.touches.length>1)M.pinchEffect({eventType:"start",event:pe}),(0,Br.default)(document).addEvent({eventType:"touchmove",eventID:"CropperEffectMove",options:{passive:!1},callback:he=>{he.preventDefault(),M.pinchEffect({eventType:"move",event:he})}}).addEvent({eventType:"touchend",eventID:"CropperEffectEnd",options:{passive:!1},callback:J});else{M.dragEffect(_({eventType:"start"},Br.default.getCursor(pe)));let{type:he}=pe;(0,Br.default)(document).addEvent({eventType:he=="touchstart"?"touchmove":"mousemove",eventID:"CropperEffectMove",options:{passive:!1},callback:ce=>{ke("move",ce)}}).addEvent({eventType:he=="touchstart"?"touchend":"mouseup",eventID:"CropperEffectEnd",options:{passive:!1},callback:ce=>{ke("end",ce),J(ce)}})}},ke=function(pe,he){he.preventDefault(),M.dragEffect(_({eventType:pe},Br.default.getCursor(he)))},J=function(pe){pe.preventDefault(),(0,Br.default)(document).removeEvent(["CropperEffectMove","CropperEffectEnd"])};(0,Br.default)(j).removeEvent(["CropperMouseWheel","CropperTouchStart","CropperMouseDown"]).addEvent({eventID:"CropperMouseWheel",eventType:"wheel",callback:pe=>{pe.preventDefault();let he=Number(pe.wheelDelta*.04),ce=M.scale.current+he;ce=Math.max(ce,M.scale.min),ce=Math.min(ce,M.scale.max),y(ce)},options:{passive:!1}}).addEvent({eventType:"touchstart",eventID:"CropperTouchStart",callback:oe,options:{passive:!1}}).addEvent({eventType:"mousedown",eventID:"CropperMouseDown",callback:oe,options:{passive:!1}}),setTimeout(()=>{Qr.fn.corner.stop()},1e3)})},[r.id]),(0,ss.useEffect)(()=>{var $;let F=($=Ve.get(h))==null?void 0:$.Instance;F&&F.updateScale(v)},[v]),(0,ss.useEffect)(()=>{var $;let F=($=Ve.get(h))==null?void 0:$.Instance;F&&F.updateFilter({grayScale:w,tone:L,rotate:b})},[w,L,b]),(0,gt.jsx)(Ot.Body,{borderRadius:0,height:"viewHeight",width:"viewWidth",children:(0,gt.jsxs)(ft,{className:[fc("Wrap"),fc("Use_"+d)].join(" "),gap:0,height:1,position:"relative",overflow:"hidden",borderRadius:"inherit",children:[(0,gt.jsx)(E,{flexSizing:0,overflow:"hidden",position:"relative",backgroundColor:"black",flexCenter:!0,freeCSS:{zIndex:1},children:(0,gt.jsx)("canvas",{style:{width:"100%",height:"100%"},width:2400,height:2400,className:fc("Canvas"),id:"Canvas-"+h})}),(0,gt.jsxs)(Xe.Separate,{borderTop:!0,flexSizing:"none",backgroundColor:"layer.1",padding:1,verticalAlign:"unset",UnderBreakPointStyles:{flexType:"col"},children:[(0,gt.jsx)(M7.SettingRegion,{DefaultOptions:p,val_scale:v,set_scale:y,val_tone:L,set_tone:A,val_grayScale:w,set_grayScale:T,val_rotate:b,set_rotate:C}),(0,gt.jsxs)(Xe.Right,{flexSizing:"none",children:[(0,gt.jsx)(re.Button.Border.R,{isRounded:!0,onClick:()=>{s()},children:"\u9589\u3058\u308B"}),(0,gt.jsx)(re.Button.Prime.R,{isRounded:!0,boxShadow:"3.remark",onClick:()=>ir(void 0,null,function*(){var $;let F=($=Ve.get(h))==null?void 0:$.Instance;if(!F)return;Qr.fn.mini.active("CropperExportation");let j=yield F.export();setTimeout(()=>{Qr.fn.mini.stop("CropperExportation"),l(j)},3e3)}),children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(Qr.White.R,{loaderID:"CropperExportation"}),"\u6C7A\u5B9A"]})})]})]})]})})},SettingRegion:a=>{let r=["","\u6696\u8272","\u5BD2\u8272","\u30BB\u30D4\u30A2","\u30B7\u30A2\u30F3","\u30DE\u30BC\u30F3\u30BF","\u30A4\u30A8\u30ED\u30FC","\u30AA\u30EA\u30B8\u30CA\u30EB1","\u30AA\u30EA\u30B8\u30CA\u30EB2","\u30AA\u30EA\u30B8\u30CA\u30EB3","\u30AA\u30EA\u30B8\u30CA\u30EB4"],o=l=>r[l]||"\u306A\u3057";return(0,gt.jsxs)(Xe.Left,{verticalAlign:"unset",flexWrap:!0,children:[(0,gt.jsxs)(ft,{gap:"1/3",children:[(0,gt.jsx)(Je.Supplement,{children:"Rotate"}),(0,gt.jsxs)(Xe.Left,{flexChilds:"even",gap:"1/6",children:[(0,gt.jsx)(re.Button.Border.S,{isRounded:!0,borderTopRightRadius:0,borderBottomRightRadius:0,onClick:()=>{let l=a.val_rotate-90;l<0&&(l+=360),a.set_rotate(l)},children:(0,gt.jsxs)(Xe.Center,{gap:"1/4",children:["90\xB0",(0,gt.jsx)(Ce,{icon:I7.faRotateLeft})]})}),(0,gt.jsx)(re.Button.Border.S,{isRounded:!0,borderTopLeftRadius:0,borderBottomLeftRadius:0,onClick:()=>{a.set_rotate((a.val_rotate+90)%360)},children:(0,gt.jsxs)(Xe.Center,{gap:"1/4",children:[(0,gt.jsx)(Ce,{icon:P7.faRotateRight}),"90\xB0"]})})]})]}),(0,gt.jsxs)(ft,{gap:"1/3",freeCSS:{minWidth:12*6},children:[(0,gt.jsx)(Je.Supplement,{children:"Zoom"}),(0,gt.jsxs)(re.Button.Border.S,{flexCenter:!0,isRounded:!0,flexSizing:0,onClick:l=>{let s="CropperZoomEdit";Ba.open({tipsID:s,gravityPoint:3,event:l,close_option:{parentBlur:!1},freeCSS:{minWidth:12*26},content:(0,gt.jsx)(Ot.Body,{children:(0,gt.jsxs)(ft,{padding:1.5,children:[(0,gt.jsxs)(Xe.Separate,{children:[(0,gt.jsx)(Je.Paragraph,{children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(Ce.Search,{fontColor:"5.translucent"}),"Zoom"]})}),(0,gt.jsx)(re.Button.Sub.R,{color:"cloud",ssSphere:2.5,onClick:()=>{Ba.close(s)},children:(0,gt.jsx)(Ce.Times,{})})]}),(0,gt.jsx)(E,{borderBottom:!0,opacity:"low"}),(0,gt.jsx)(ut.Slider,{override:"force",value:a.val_scale-100,min:a.DefaultOptions.scale.min-100,max:a.DefaultOptions.scale.max-100,step:25,onUpdateValidValue:({eventType:d,value:u})=>{Br.default.interval.clear("Cropper.UpdateScale"),Br.default.interval.standBy("Cropper.UpdateScale",250,()=>{a.set_scale(u+100)})},legends:{enable:!0,custom:d=>"x"+Math.round(100+d)/100}})]})})})},children:[a.val_scale.rate(1,0),"%"]})]}),(0,gt.jsxs)(ft,{gap:"1/3",freeCSS:{minWidth:12*6},children:[(0,gt.jsx)(Je.Supplement,{children:"GrayScale"}),(0,gt.jsxs)(re.Button.Border.S,{flexCenter:!0,isRounded:!0,flexSizing:0,onClick:l=>{let s="CropperGrayScaleEdit";Ba.open({tipsID:s,gravityPoint:3,event:l,close_option:{parentBlur:!1},freeCSS:{minWidth:12*26},content:(0,gt.jsx)(Ot.Body,{children:(0,gt.jsxs)(ft,{padding:1.5,children:[(0,gt.jsxs)(Xe.Separate,{children:[(0,gt.jsx)(Je.Paragraph,{children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(Ce,{icon:N7.faPalette,fontColor:"5.translucent"}),"Gray Scale"]})}),(0,gt.jsx)(re.Button.Sub.R,{color:"cloud",ssSphere:2.5,onClick:()=>{Ba.close(s)},children:(0,gt.jsx)(Ce.Times,{})})]}),(0,gt.jsx)(E,{borderBottom:!0,opacity:"low"}),(0,gt.jsx)(ut.Slider,{value:a.val_grayScale,min:0,max:100,step:10,onUpdateValidValue:({value:d})=>{Br.default.interval.clear("Cropper.GrayScale"),Br.default.interval.standBy("Cropper.GrayScale",250,()=>{a.set_grayScale(d)})},legends:{enable:!0,custom:d=>d+"%"}})]})})})},children:[a.val_grayScale.rate(1,0),"%"]})]}),(0,gt.jsxs)(ft,{gap:"1/3",freeCSS:{minWidth:12*6},children:[(0,gt.jsx)(Je.Supplement,{children:"Tone"}),(0,gt.jsx)(re.Button.Border.S,{flexCenter:!0,isRounded:!0,flexSizing:0,onClick:l=>{let s="CropperToneEdit";Ba.open({tipsID:s,gravityPoint:3,event:l,close_option:{parentBlur:!1},freeCSS:{minWidth:12*26,maxWidth:12*24},content:()=>{let d=[];for(let u=1;u<=10;u++)d.push({value:u,label:(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(E,{ssSphere:1,className:[fc("ToneBall"),fc("ToneBall_"+u)].join(" ")}),(0,gt.jsx)(E,{textAlign:"left",flexSizing:0,children:o(u)})]})});return(0,gt.jsx)(Ot.Body,{children:(0,gt.jsxs)(ft,{padding:1.5,children:[(0,gt.jsxs)(Xe.Separate,{children:[(0,gt.jsx)(Je.Paragraph,{children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(Ce,{icon:O7.faBarsStaggered,fontColor:"5.translucent"}),"Tone"]})}),(0,gt.jsx)(re.Button.Sub.R,{color:"cloud",ssSphere:2.5,onClick:()=>{Ba.close(s)},children:(0,gt.jsx)(Ce.Times,{})})]}),(0,gt.jsx)(E,{borderBottom:!0,opacity:"low"}),(0,gt.jsx)(ut.Radio.Normal,{value:a.val_tone,gap:"1/2",cellStyles:{fontColor:"3.blur"},options:[{value:0,label:(0,gt.jsx)(E,{flexSizing:0,textAlign:"center",children:"\u306A\u3057"})},...d],onUpdateValidValue:({value:u})=>{a.set_tone(u)}})]})})}})},children:(0,gt.jsxs)(Xe.Center,{gap:"1/2",children:[(0,gt.jsx)(E,{boxShadow:"2.remark",ssSphere:1,className:[fc("ToneBall"),fc("ToneBall_"+a.val_tone)].join(" ")}),o(a.val_tone)]})})]})]})}},Cm={openDialogNEdit:a=>ir(void 0,null,function*(){let r=yield ut.Filer.fn.openDialog({accept:"image",multiple:!1});Cm.openEditor(_({imageFile:r[0]},a))}),openEditor:a=>ir(void 0,null,function*(){let r="CropperImage";Ot.open({sheetID:r,type:"normal.middleCenter",size:"MAX",padding:0,margin:0,freeCSS:{maxWidth:"100vw"},content:(0,gt.jsx)(M7.Core,{val_file:a.imageFile,options:a,finishedCallback:o=>{Ot.close(r),a.onProcessFinished(o)},abortCallback:()=>{Ot.close(r)}}),close_option:{escapeKeyDown:!1}})})};var Fo=Z(Mt());var F7=()=>{let{href:a}=location;return(0,Fo.jsx)(Xe.Center,{padding:[4,1],children:(0,Fo.jsxs)(ft,{ssCardBox:!0,gap:2,padding:[3,2],textAlign:"center",width:1,freeCSS:{maxWidth:12*30},children:[(0,Fo.jsx)(Ce.LinkSlash,{fontColor:"theme",freeCSS:{fontSize:"3rem"}}),(0,Fo.jsxs)(E,{children:[(0,Fo.jsx)(Je.Paragraph,{children:"\u3053\u306E\u30DA\u30FC\u30B8\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093\u3002"}),(0,Fo.jsx)(Je.Supplement,{fontColor:"3.blur",children:"\u5165\u529B\u3055\u308C\u305F\u30EA\u30F3\u30AF\u306E\u30DA\u30FC\u30B8\u306F\u5B58\u5728\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002"})]}),(0,Fo.jsxs)(ft,{children:[(0,Fo.jsxs)(Je,{textAlign:"left",ssCardBox:"cloud",isSemiBoldFont:!0,padding:1,children:["\u30FB\u30EA\u30F3\u30AF\u304C\u6B63\u3057\u3044\u304B",(0,Fo.jsx)(E,{margin:["1/2",0],borderBottom:!0}),"\u30FB\u30EA\u30F3\u30AF\u306E\u6709\u52B9\u671F\u9650",(0,Fo.jsx)(E,{margin:["1/2",0],borderBottom:!0}),"\u30FB\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u7B49\u304C\u6B63\u3057\u3044\u304B"]}),"\u306A\u3069\u3092\u3082\u3046\u4E00\u5EA6\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"]}),(0,Fo.jsx)(re.Anchor.Link,{newTab:!0,href:a,children:a}),(0,Fo.jsx)(re.Anchor.BorderToFill.R,{href:"/",width:1,children:"\u30DB\u30FC\u30E0\u306B\u623B\u308B"})]})})};var U_=a=>{let[r,o]=(0,Cc.useState)(a.pathname),l=!0;r!==a.pathname&&(l=!1,o(a.pathname));let s=(0,Cc.useRef)(!1);(0,Cc.useEffect)(()=>{l&&(s.current?(Ot.closeAll(!0),as.fn.updateCSSProperty.reset()):s.current=!0)},[r]),l&&a.beforeCB&&a.beforeCB(location.href),(0,Cc.useEffect)(()=>{l&&a.afterFirstCB&&a.afterFirstCB(location.href)},[]),(0,Cc.useEffect)(()=>{l&&(setTimeout(()=>{window.dispatchEvent(new Event("resize"))},200),a.afterCB&&a.afterCB(location.href))},[r])};var us=Z(ma());var Mw=!1,w_=a=>ir(void 0,null,function*(){if(Mw)return{valid:!1,data:{}};let r=document.activeElement;r&&r.blur(),Mw=!0;let o=(0,us.default)(`[data-form="${a}"]`),l=1,s={};for(let d=0;d<o.length;d++){let u=o[d],{componentId:h=""}=u.dataset,p=Ve.get(h);p&&p.Refresh&&(yield p.Refresh());let{value:v,name:y,checked:b,dataset:{value:C,name:w="",inputType:T="",validation:L}}=o[d],A=C;if(y=y||w,L=+((L!=null?L:"true")=="true"),T=="hidden")A&&(A=JSON.parse(A));else if(["radio","checkbox","checker"].includes(T)){if(A){let F=us.default.toJson(A);if(!F.ok)continue;A=F.body,us.default.is.array(A)?A=A.map(j=>us.default.toJson(j).body):A=us.default.toJson(A).body,T=="radio"&&(A=A[0]),T=="checker"&&(A=!!A[0])}}else["autocomplete-single","autocomplete-multi"].includes(T)?(A=us.default.toJson(A).body,A.length&&(A=A.map(F=>us.default.toJson(F).body),T=="autocomplete-single"&&(A=A[0]))):T=="time"?A&&(A=us.default.toJson(A).body):T=="select"?A=us.default.toJson(A).body:T=="file"?p&&(A=p.Files):T=="slider"?A&&(A=us.default.toJson(A).body):T=="switch"&&(A=b|0);let $=(L!=null?L:1)|0;l&=$,L&&(s[y]=A)}return Mw=!1,{valid:!!l,data:s}});var Mn={open:a=>{window.open(a)},pushSync:a=>{window.location.href=a},push:(a,r)=>{if(r){Mn.open(a);return}Mn.pushAsync(a)},pushAsync:a=>{if(a.match(/https?:\/\//)){Mn.pushSync(a);return}Mn.__push(a)},back:()=>{Mn.__back()},__push:a=>{},__back:()=>{},setPushEffect:a=>{Mn.__push=a},setBackEffect:a=>{Mn.__back=a}};var Yr=Z(ma());var Ae={toConcreteBorderRadius:a=>{let r=lt.get().roundness|0;return a=="1.tone.primary"?a=[0,2,3,4,5,5][r]:a=="2.tone.secondary"?a=[0,1,2,3,4,5][r]:a=="3.tone.tertiary"&&(a=[0,"1/3","2/3",1,2,3][r]),a},ev:a=>Yr.default.is.exist(a),ClassNames:(a,r)=>{var o,l,s,d,u,h,p;let v=[],{gap:y,display:b,position:C,overflow:w,fontColor:T,fontSize:L,fontWeight:A,backgroundColor:$,textAlign:F,textDecoration:j,boxShadow:U,margin:K,marginTop:M,marginRight:oe,marginBottom:ke,marginLeft:J,padding:pe,paddingTop:he,paddingRight:ce,paddingBottom:P,paddingLeft:ee,top:me,right:z,bottom:ne,left:ve,border:be,borderTop:de,borderRight:Re,borderBottom:Pe,borderLeft:Oe,borderWidth:rt,borderColor:ze,borderStyle:pt,borderRadius:Kt,borderTopLeftRadius:Et,borderTopRightRadius:bt,borderBottomLeftRadius:It,borderBottomRightRadius:nt,flexSizing:Le,flexWrap:wt,flexType:zt,flexChilds:Yt,flexGrid:$t,horizontalAlign:oa,verticalAlign:sa,transition:xa,gridCenter:_r,gridCols:rr,maxHeight:lr,minHeight:Na,maxWidth:Oa,minWidth:Ia,width:mr,height:da,unitHeight:Ra,unitWidth:Pa,opacity:br}=r;{if(Ae.ev(b)&&v.push("dsp"+b),w){let I=Yr.default.flatArray(w);v.push("ovfl-x-"+I[0]),v.push("ovfl-y-"+(I[1]||I[0]))}Ae.ev(C)&&v.push("ps"+C),Ae.ev(F)&&v.push("txtalg"+F),Ae.ev(F)&&v.push("txtdeco"+j),Ae.ev(T)&&v.push("ftcl"+((o=String(T))==null?void 0:o.replace(/\./g,"_"))),Ae.ev(L)&&v.push("ftsz"+((l=String(L))==null?void 0:l.replace(/\..*/,""))),Ae.ev(A)&&v.push("ftwt"+(A==null?void 0:A.replace(/\..*/,""))),Ae.ev($)&&v.push("bgc"+((s=String($))==null?void 0:s.replace(/\./g,"_"))),Ae.ev(U)&&v.push("bs"+U);let He,ct,yt,Xt;Yr.default.is.exist(K)&&(Yr.default.is.array(K)?K.length==2?[He,ct,yt,Xt]=[...K,...K]:K.length==4&&([He,ct,yt,Xt]=K):He=ct=yt=Xt=K,M=M!=null?M:He,oe=oe!=null?oe:ct,ke=ke!=null?ke:yt,J=J!=null?J:Xt),Ae.ev(M)&&v.push("mrgt"+M),Ae.ev(oe)&&v.push("mrgr"+oe),Ae.ev(ke)&&v.push("mrgb"+ke),Ae.ev(J)&&v.push("mrgl"+J);let Gt,Ea,ga,Ka;Yr.default.is.exist(pe)&&(Yr.default.is.array(pe)?pe.length==2?[Gt,Ea,ga,Ka]=[...pe,...pe]:pe.length==4&&([Gt,Ea,ga,Ka]=pe):Gt=Ea=ga=Ka=pe,he=he!=null?he:Gt,ce=ce!=null?ce:Ea,P=P!=null?P:ga,ee=ee!=null?ee:Ka),Ae.ev(he)&&v.push("pdt"+he),Ae.ev(ce)&&v.push("pdr"+ce),Ae.ev(P)&&v.push("pdb"+P),Ae.ev(ee)&&v.push("pdl"+ee),Ae.ev(me)&&v.push("pstt"+me),Ae.ev(z)&&v.push("pstr"+z),Ae.ev(ne)&&v.push("pstb"+ne),Ae.ev(ve)&&v.push("pstl"+ve);{Yr.default.is.exist(be)&&(de=de!=null?de:be,Re=Re!=null?Re:be,Pe=Pe!=null?Pe:be,Oe=Oe!=null?Oe:be),Yr.default.is.boolean(de)&&(de=["unset","2.normal"][Number(de)]),Yr.default.is.boolean(Re)&&(Re=["unset","2.normal"][Number(Re)]),Yr.default.is.boolean(Pe)&&(Pe=["unset","2.normal"][Number(Pe)]),Yr.default.is.boolean(Oe)&&(Oe=["unset","2.normal"][Number(Oe)]),Ae.ev(de)&&v.push("b_t_ss"+((d=String(de))==null?void 0:d.replace(/\..*/,""))),Ae.ev(Re)&&v.push("b_r_ss"+((u=String(Re))==null?void 0:u.replace(/\..*/,""))),Ae.ev(Pe)&&v.push("b_b_ss"+((h=String(Pe))==null?void 0:h.replace(/\..*/,""))),Ae.ev(Oe)&&v.push("b_l_ss"+((p=String(Oe))==null?void 0:p.replace(/\..*/,""))),Yr.default.is.exist(rt)&&v.push("b_wth"+String(rt)),Yr.default.is.exist(ze)&&v.push("b_cl"+String(ze)),Yr.default.is.exist(pt)&&v.push("b_st"+String(pt));{let I,te,B,V;Yr.default.is.exist(Kt)&&(Yr.default.is.array(Kt)?Kt.length==4&&([I,te,V,B]=Kt):I=te=B=V=Kt,Et=Et!=null?Et:I,bt=bt!=null?bt:te,It=It!=null?It:B,nt=nt!=null?nt:V)}Ae.ev(Et)&&v.push("br_tl"+Ae.toConcreteBorderRadius(Et)),Ae.ev(bt)&&v.push("br_tr"+Ae.toConcreteBorderRadius(bt)),Ae.ev(It)&&v.push("br_bl"+Ae.toConcreteBorderRadius(It)),Ae.ev(nt)&&v.push("br_br"+Ae.toConcreteBorderRadius(nt))}if(Ae.ev(br)&&v.push("op"+br),Yr.default.is.exist(y)){let I,te;Yr.default.is.array(y)?(I=y[0],te=y[1]):I=te=y,v.push("gapRow"+I,"gapCol"+te)}Ae.ev(Le)&&v.push("flsz"+Le),Ae.ev(wt)&&v.push("flwrp"+wt),Ae.ev(zt)&&v.push("fltyp"+zt),Ae.ev(Yt)&&v.push("flchld"+Yt),Ae.ev($t)&&v.push("flgrid"+$t),Ae.ev(sa)&&v.push("flvrt"+sa),Ae.ev(oa)&&v.push("flhrz"+oa),Ae.ev(_r)&&v.push("grcnt"+_r),Ae.ev(rr)&&v.push("grcol"+rr),Ae.ev(da)&&v.push("hgt"+da),Ae.ev(mr)&&v.push("wdt"+mr),Ae.ev(Ra)&&v.push("unthgt"+Ra),Ae.ev(Pa)&&v.push("untwdt"+Pa),Ae.ev(xa)&&v.push("trnst"+xa),Ae.ev(lr)&&v.push("maxh"+lr),Ae.ev(Na)&&v.push("minh"+Na),Ae.ev(Oa)&&v.push("maxw"+Oa),Ae.ev(Ia)&&v.push("minw"+Ia)}return v.length?a+v.join(" "+a):""}},fm=a=>{let r=_({},a),{gradients:o,ssCardBox:l,ssSphere:s,ssSquare:d,ssPushable:u,ssAbsoluteCovered:h,ssTextEllipsis:p,flexCenter:v,flexNewLine:y,isLightFont:b,isBoldFont:C,isSemiBoldFont:w,isRounded:T,isSquare:L,freeCSS:A={}}=r,$=Ze(A,[]),F=Ze(r,["gradients","ssCardBox","ssSphere","ssSquare","ssPushable","ssAbsoluteCovered","ssTextEllipsis","flexCenter","flexNewLine","isLightFont","isBoldFont","isSemiBoldFont","isRounded","isSquare","freeCSS"]);if($=$||{},F=F||{},o){let{deg:j,colors:U}=o;$=D(_({},$),{background:`linear-gradient(${j}deg,${U.join(",")})`})}if(l){l===!0&&(l="border");let j={backgroundColor:"layer.1",borderRadius:"1.tone.primary",boxShadow:"0.min"};l=="border"?j.border=!0:l=="layer"?j.backgroundColor="layer.1":l=="cloud"?j.backgroundColor="cloud":l=="shadow"&&(j.boxShadow="0.normal"),lt.get().darkMode=="dim"&&(j.boxShadow="1.normal"),lt.get().darkMode=="dark"&&(j.boxShadow="1.remark"),$=_(_({},j.freeCSS),$),F=_(_({},j),F)}return s&&(v=v!=null?v:!0,F=_({padding:0,unitWidth:s,unitHeight:s,borderRadius:"sphere",flexSizing:"none"},F)),d&&(v=v!=null?v:!0,F=_({padding:0,unitWidth:d,unitHeight:d,flexSizing:"none"},F)),u&&(F=_({transition:"middle"},F),F=D(_({},F),{className:[F.className,"ssPushable"].join(" ")})),h&&(F=_({position:"absolute",top:0,left:0,right:0,bottom:0},F)),p&&(F=_({overflow:"hidden"},F),$=_({whiteSpace:"nowrap",textOverflow:"ellipsis"},$)),y&&(F=_({width:1,flexSizing:"none"},F)),v&&(F=_({display:"flex",horizontalAlign:"center",verticalAlign:"center"},F)),b&&(F.fontWeight="1.light"),w&&(F.fontWeight="3.semiBold"),C&&(F.fontWeight="4.bold"),T&&(Yr.default.is.number(T)?$.borderRadius=T*12:F.borderRadius="sphere"),L&&($.aspectRatio="1"),D(_({},F),{freeCSS:$})},In=a=>{let r=fm(a),{componentID:o,gap:l,display:s,position:d,overflow:u,fontColor:h,fontSize:p,fontWeight:v,backgroundColor:y,textAlign:b,textDecoration:C,boxShadow:w,margin:T,marginTop:L,marginRight:A,marginBottom:$,marginLeft:F,padding:j,paddingTop:U,paddingRight:K,paddingBottom:M,paddingLeft:oe,top:ke,right:J,bottom:pe,left:he,border:ce,borderTop:P,borderRight:ee,borderBottom:me,borderLeft:z,borderWidth:ne,borderColor:ve,borderStyle:be,borderRadius:de,borderTopLeftRadius:Re,borderTopRightRadius:Pe,borderBottomLeftRadius:Oe,borderBottomRightRadius:rt,flexSizing:ze,flexWrap:pt,flexType:Kt,flexChilds:Et,flexGrid:bt,horizontalAlign:It,verticalAlign:nt,transition:Le,gridCenter:wt,gridCols:zt,maxHeight:Yt,minHeight:$t,maxWidth:oa,minWidth:sa,width:xa,height:_r,unitHeight:rr,unitWidth:lr,opacity:Na,ssLastChildLossBorder:Oa,ssAbsoluteCovered:Ia,ssCardBox:mr,ssEffectsOnActive:da,ssPushable:Ra,ssSphere:Pa,ssSquare:br,ssTextEllipsis:He,isBoldFont:ct,isLightFont:yt,isSemiBoldFont:Xt,isRounded:Gt,flexCenter:Ea,flexNewLine:ga,gradients:Ka,UnderBreakPointStyles:I={},className:te="",freeCSS:B={}}=r,V=Ze(r,["componentID","gap","display","position","overflow","fontColor","fontSize","fontWeight","backgroundColor","textAlign","textDecoration","boxShadow","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderWidth","borderColor","borderStyle","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","flexSizing","flexWrap","flexType","flexChilds","flexGrid","horizontalAlign","verticalAlign","transition","gridCenter","gridCols","maxHeight","minHeight","maxWidth","minWidth","width","height","unitHeight","unitWidth","opacity","ssLastChildLossBorder","ssAbsoluteCovered","ssCardBox","ssEffectsOnActive","ssPushable","ssSphere","ssSquare","ssTextEllipsis","isBoldFont","isLightFont","isSemiBoldFont","isRounded","flexCenter","flexNewLine","gradients","UnderBreakPointStyles","className","freeCSS"]),q=_({},V),fe=[te];if(Oa&&fe.push("ssLastChildLossBorder_"+Oa),da){da=Yr.default.flatArray(da);for(let ie of da){let[Ie,Me]=ie.split(".");q["data-effect-"+Ie]="1",Me&&(q["data-effect-tone"]=Me)}}{let ie=Ae.ClassNames("amotf_",{gap:l,display:s,position:d,overflow:u,fontColor:h,fontSize:p,fontWeight:v,backgroundColor:y,textAlign:b,textDecoration:C,boxShadow:w,margin:T,marginTop:L,marginRight:A,marginBottom:$,marginLeft:F,padding:j,paddingTop:U,paddingRight:K,paddingBottom:M,paddingLeft:oe,top:ke,right:J,bottom:pe,left:he,border:ce,borderTop:P,borderRight:ee,borderBottom:me,borderLeft:z,borderWidth:ne,borderColor:ve,borderStyle:be,borderRadius:de,borderTopLeftRadius:Re,borderTopRightRadius:Pe,borderBottomLeftRadius:Oe,borderBottomRightRadius:rt,flexSizing:ze,flexWrap:pt,flexType:Kt,flexChilds:Et,flexGrid:bt,horizontalAlign:It,verticalAlign:nt,transition:Le,gridCenter:wt,gridCols:zt,maxHeight:Yt,minHeight:$t,maxWidth:oa,minWidth:sa,width:xa,height:_r,unitHeight:rr,unitWidth:lr,opacity:Na});fe.push(ie)}return I&&fe.push(Ae.ClassNames("amotf_bp",I)),B&&(q.style=_(_({},B),q.style)),(o||q["data-component-id"])&&(q["data-component-id"]=q["data-component-id"]||o),fe.length&&fe.join("")&&(q.className=fe.join(" ").trim().replace(/%/ig,"P").replace(/\d+px/ig,"PIX").replace(/\s+/ig," ").replace(/\//ig,"_").replace(/\./ig,"-")),q},Os=a=>{let{gap:r,display:o,position:l,overflow:s,fontColor:d,fontSize:u,fontWeight:h,backgroundColor:p,textAlign:v,textDecoration:y,boxShadow:b,margin:C,marginTop:w,marginRight:T,marginBottom:L,marginLeft:A,padding:$,paddingTop:F,paddingRight:j,paddingBottom:U,paddingLeft:K,top:M,right:oe,bottom:ke,left:J,border:pe,borderTop:he,borderRight:ce,borderBottom:P,borderLeft:ee,borderWidth:me,borderColor:z,borderStyle:ne,borderRadius:ve,borderTopLeftRadius:be,borderTopRightRadius:de,borderBottomLeftRadius:Re,borderBottomRightRadius:Pe,flexSizing:Oe,flexWrap:rt,flexType:ze,flexChilds:pt,flexGrid:Kt,horizontalAlign:Et,verticalAlign:bt,transition:It,gridCenter:nt,gridCols:Le,maxHeight:wt,minHeight:zt,maxWidth:Yt,minWidth:$t,width:oa,height:sa,unitHeight:xa,unitWidth:_r,opacity:rr,ssLastChildLossBorder:lr,ssAbsoluteCovered:Na,ssCardBox:Oa,ssEffectsOnActive:Ia,ssPushable:mr,ssSphere:da,ssSquare:Ra,ssTextEllipsis:Pa,isBoldFont:br,isLightFont:He,isSemiBoldFont:ct,isRounded:yt,flexCenter:Xt,flexNewLine:Gt,gradients:Ea,UnderBreakPointStyles:ga={},freeCSS:Ka={}}=a,I={};return Ae.ev(r)&&(I.gap=r),Ae.ev(o)&&(I.display=o),Ae.ev(l)&&(I.position=l),Ae.ev(s)&&(I.overflow=s),Ae.ev(d)&&(I.fontColor=d),Ae.ev(u)&&(I.fontSize=u),Ae.ev(h)&&(I.fontWeight=h),Ae.ev(p)&&(I.backgroundColor=p),Ae.ev(v)&&(I.textAlign=v),Ae.ev(y)&&(I.textDecoration=y),Ae.ev(b)&&(I.boxShadow=b),Ae.ev(C)&&(I.margin=C),Ae.ev(w)&&(I.marginTop=w),Ae.ev(T)&&(I.marginRight=T),Ae.ev(L)&&(I.marginBottom=L),Ae.ev(A)&&(I.marginLeft=A),Ae.ev($)&&(I.padding=$),Ae.ev(F)&&(I.paddingTop=F),Ae.ev(j)&&(I.paddingRight=j),Ae.ev(U)&&(I.paddingBottom=U),Ae.ev(K)&&(I.paddingLeft=K),Ae.ev(M)&&(I.top=M),Ae.ev(oe)&&(I.right=oe),Ae.ev(ke)&&(I.bottom=ke),Ae.ev(J)&&(I.left=J),Ae.ev(pe)&&(I.border=pe),Ae.ev(he)&&(I.borderTop=he),Ae.ev(ce)&&(I.borderRight=ce),Ae.ev(P)&&(I.borderBottom=P),Ae.ev(ee)&&(I.borderLeft=ee),Ae.ev(me)&&(I.borderWidth=me),Ae.ev(z)&&(I.borderColor=z),Ae.ev(ne)&&(I.borderStyle=ne),Ae.ev(ve)&&(I.borderRadius=ve),Ae.ev(be)&&(I.borderTopLeftRadius=be),Ae.ev(de)&&(I.borderTopRightRadius=de),Ae.ev(Re)&&(I.borderBottomLeftRadius=Re),Ae.ev(Pe)&&(I.borderBottomRightRadius=Pe),Ae.ev(Oe)&&(I.flexSizing=Oe),Ae.ev(rt)&&(I.flexWrap=rt),Ae.ev(ze)&&(I.flexType=ze),Ae.ev(pt)&&(I.flexChilds=pt),Ae.ev(Kt)&&(I.flexGrid=Kt),Ae.ev(Et)&&(I.horizontalAlign=Et),Ae.ev(bt)&&(I.verticalAlign=bt),Ae.ev(It)&&(I.transition=It),Ae.ev(nt)&&(I.gridCenter=nt),Ae.ev(Le)&&(I.gridCols=Le),Ae.ev(wt)&&(I.maxHeight=wt),Ae.ev(zt)&&(I.minHeight=zt),Ae.ev(Yt)&&(I.maxWidth=Yt),Ae.ev($t)&&(I.minWidth=$t),Ae.ev(oa)&&(I.width=oa),Ae.ev(sa)&&(I.height=sa),Ae.ev(xa)&&(I.unitHeight=xa),Ae.ev(_r)&&(I.unitWidth=_r),Ae.ev(rr)&&(I.opacity=rr),Ae.ev(lr)&&(I.ssLastChildLossBorder=lr),Ae.ev(Na)&&(I.ssAbsoluteCovered=Na),Ae.ev(Oa)&&(I.ssCardBox=Oa),Ae.ev(Ia)&&(I.ssEffectsOnActive=Ia),Ae.ev(mr)&&(I.ssPushable=mr),Ae.ev(da)&&(I.ssSphere=da),Ae.ev(Ra)&&(I.ssSquare=Ra),Ae.ev(Pa)&&(I.ssTextEllipsis=Pa),Ae.ev(br)&&(I.isBoldFont=br),Ae.ev(He)&&(I.isLightFont=He),Ae.ev(ct)&&(I.isSemiBoldFont=ct),Ae.ev(yt)&&(I.isRounded=yt),Ae.ev(Xt)&&(I.flexCenter=Xt),Ae.ev(Gt)&&(I.flexNewLine=Gt),Ae.ev(Ea)&&(I.gradients=Ea),Ae.ev(Ka)&&(I.freeCSS=Ka),Ae.ev(ga)&&(I.UnderBreakPointStyles=ga),I};var vl=Z(Mt());var V_=a=>{var r;let o=Pf.set("RootViewController_"+lt.get().sessionUID);return(0,vl.jsxs)(vl.Fragment,{children:[(0,vl.jsx)("style",{children:a.inlineCSS}),(0,vl.jsxs)("amotify-app",{id:"appRoot_"+lt.get().sessionUID,children:[(0,vl.jsx)(_u.Pudding.Wrapper,{}),(0,vl.jsx)(_u.Ripple.Wrapper,{}),(0,vl.jsx)(Qr.Wrapper,{}),(0,vl.jsx)(Gn.Wrapper,{}),(0,vl.jsx)(Ot.Wrapper,{}),(0,vl.jsx)(E,{className:["AMOTIFY_be","AMOTIFY_be_root",(r=a.isRootPage)==null||r?"AMOTIFY_be_origin":"",a.originClassName||""].join(" "),children:a.children},o)]})]})};var W_=Z(ma()),xt=a=>{let r=lt.get().appRoot;return W_.default.is.shadowRoot(r)?(0,W_.default)(r).find(a):(0,W_.default)(a)};var CG=Z(zw());lo(Cn,Z(zw()));var jw={};ad(jw,{DesignBook:()=>Y_});var m=Z(Mt()),cs=Z(ha()),gl=Z(ma());var ip={index:()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(vt,{gap:1,children:[(0,m.jsx)(E,{flexCenter:!0,children:(0,m.jsx)(y_,{ssSphere:6,children:"Placeholder"})}),(0,m.jsxs)(hr,{gridCols:3,gap:1,flexSizing:"auto",children:[(0,m.jsx)(E,{padding:2,backgroundColor:"layer.1"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.2"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.3"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.4"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.5"}),(0,m.jsx)(E,{padding:2,backgroundColor:"layer.6"})]}),(0,m.jsxs)(hr,{gridCols:3,gap:"1/2",flexSizing:"auto",ssCardBox:!0,children:[(0,m.jsx)(E,{flexCenter:!0,fontColor:"1.clear",children:"FontColor1"}),(0,m.jsx)(E,{flexCenter:!0,fontColor:"2.normal",children:"FontColor2"}),(0,m.jsx)(E,{flexCenter:!0,fontColor:"3.blur",children:"FontColor3"}),(0,m.jsx)(E,{flexCenter:!0,fontColor:"4.thin",children:"FontColor4"}),(0,m.jsx)(E,{flexCenter:!0,fontColor:"5.translucent",children:"FontColor5"})]})]}),(0,m.jsx)(ip.Fonts,{}),(0,m.jsx)(ip.Box,{}),(0,m.jsx)(ip.Flex,{}),(0,m.jsx)(ip.Grid,{}),(0,m.jsx)(ip.Others,{})]}),Fonts:()=>(0,m.jsxs)(E,{ssCardBox:!0,children:[(0,m.jsx)(Je.SubTitle,{padding:1,borderBottom:!0,children:"Font"}),(0,m.jsxs)(E,{overflow:"auto",padding:1,children:[(0,m.jsx)(Je.Description,{padding:1,children:`<Box
981
981
  fontSize={ 0 ~ 8 }
982
982
  >
983
983
  some text