@hypertools/sdk 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @see https://github.com/hypertools/sdk
|
|
10
10
|
*/
|
|
11
|
-
var lR=Object.create;var{getPrototypeOf:iR,defineProperty:jW,getOwnPropertyNames:nR}=Object;var rR=Object.prototype.hasOwnProperty;var zQ=(Z,Y,K)=>{K=Z!=null?lR(iR(Z)):{};let z=Y||!Z||!Z.__esModule?jW(K,"default",{value:Z,enumerable:!0}):K;for(let $ of nR(Z))if(!rR.call(z,$))jW(z,$,{get:()=>Z[$],enumerable:!0});return z};var m1=(Z,Y)=>()=>(Y||Z((Y={exports:{}}).exports,Y),Y.exports);var G8=m1((oT,qG)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z="18.3.1",Y=Symbol.for("react.element"),K=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),j=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),DJ=Symbol.for("react.offscreen"),_J=Symbol.iterator,bJ="@@iterator";function CJ(D){if(D===null||typeof D!=="object")return null;var A=_J&&D[_J]||D[bJ];if(typeof A==="function")return A;return null}var g={current:null},KJ={transition:null},c={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},qJ={current:null},d={},UJ=null;function SJ(D){UJ=D}d.setExtraStackFrame=function(D){UJ=D},d.getCurrentStack=null,d.getStackAddendum=function(){var D="";if(UJ)D+=UJ;var A=d.getCurrentStack;if(A)D+=A()||"";return D};var zJ=!1,i=!1,$J=!1,LJ=!1,JJ=!1,YJ={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:KJ,ReactCurrentOwner:qJ};YJ.ReactDebugCurrentFrame=d,YJ.ReactCurrentActQueue=c;function TJ(D){{for(var A=arguments.length,V=Array(A>1?A-1:0),C=1;C<A;C++)V[C-1]=arguments[C];AJ("warn",D,V)}}function QJ(D){{for(var A=arguments.length,V=Array(A>1?A-1:0),C=1;C<A;C++)V[C-1]=arguments[C];AJ("error",D,V)}}function AJ(D,A,V){{var C=YJ.ReactDebugCurrentFrame,m=C.getStackAddendum();if(m!=="")A+="%s",V=V.concat([m]);var IJ=V.map(function(XJ){return String(XJ)});IJ.unshift("Warning: "+A),Function.prototype.apply.call(console[D],console,IJ)}}var BQ={};function vQ(D,A){{var V=D.constructor,C=V&&(V.displayName||V.name)||"ReactClass",m=C+"."+A;if(BQ[m])return;QJ("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.",A,C),BQ[m]=!0}}var mZ={isMounted:function(D){return!1},enqueueForceUpdate:function(D,A,V){vQ(D,"forceUpdate")},enqueueReplaceState:function(D,A,V,C){vQ(D,"replaceState")},enqueueSetState:function(D,A,V,C){vQ(D,"setState")}},cQ=Object.assign,$Q={};Object.freeze($Q);function uQ(D,A,V){this.props=D,this.context=A,this.refs=$Q,this.updater=V||mZ}uQ.prototype.isReactComponent={},uQ.prototype.setState=function(D,A){if(typeof D!=="object"&&typeof D!=="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,A,"setState")},uQ.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var cZ={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)."]},Z7=function(D,A){Object.defineProperty(uQ.prototype,D,{get:function(){TJ("%s(...) is deprecated in plain JavaScript React classes. %s",A[0],A[1]);return}})};for(var f7 in cZ)if(cZ.hasOwnProperty(f7))Z7(f7,cZ[f7])}function v7(){}v7.prototype=uQ.prototype;function ZZ(D,A,V){this.props=D,this.context=A,this.refs=$Q,this.updater=V||mZ}var X7=ZZ.prototype=new v7;X7.constructor=ZZ,cQ(X7,uQ.prototype),X7.isPureReactComponent=!0;function PZ(){var D={current:null};return Object.seal(D),D}var I7=Array.isArray;function bQ(D){return I7(D)}function Y7(D){{var A=typeof Symbol==="function"&&Symbol.toStringTag,V=A&&D[Symbol.toStringTag]||D.constructor.name||"Object";return V}}function j7(D){try{return pQ(D),!1}catch(A){return!0}}function pQ(D){return""+D}function SQ(D){if(j7(D))return QJ("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Y7(D)),pQ(D)}function pZ(D,A,V){var C=D.displayName;if(C)return C;var m=A.displayName||A.name||"";return m!==""?V+"("+m+")":V}function u7(D){return D.displayName||"Context"}function XZ(D){if(D==null)return null;if(typeof D.tag==="number")QJ("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof D==="function")return D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case z:return"Fragment";case K:return"Portal";case F:return"Profiler";case $:return"StrictMode";case _:return"Suspense";case y:return"SuspenseList"}if(typeof D==="object")switch(D.$$typeof){case j:var A=D;return u7(A)+".Consumer";case B:var V=D;return u7(V._context)+".Provider";case b:return pZ(D,D.render,"ForwardRef");case k:var C=D.displayName||null;if(C!==null)return C;return XZ(D.type)||"Memo";case a:{var m=D,IJ=m._payload,XJ=m._init;try{return XZ(XJ(IJ))}catch(PJ){return null}}}return null}var P7=Object.prototype.hasOwnProperty,qX={key:!0,ref:!0,__self:!0,__source:!0},G7,K7,sQ;sQ={};function N7(D){if(P7.call(D,"ref")){var A=Object.getOwnPropertyDescriptor(D,"ref").get;if(A&&A.isReactWarning)return!1}return D.ref!==void 0}function NZ(D){if(P7.call(D,"key")){var A=Object.getOwnPropertyDescriptor(D,"key").get;if(A&&A.isReactWarning)return!1}return D.key!==void 0}function $Z(D,A){var V=function(){if(!G7)G7=!0,QJ("%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)",A)};V.isReactWarning=!0,Object.defineProperty(D,"key",{get:V,configurable:!0})}function K8(D,A){var V=function(){if(!K7)K7=!0,QJ("%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)",A)};V.isReactWarning=!0,Object.defineProperty(D,"ref",{get:V,configurable:!0})}function U8(D){if(typeof D.ref==="string"&&qJ.current&&D.__self&&qJ.current.stateNode!==D.__self){var A=XZ(qJ.current.type);if(!sQ[A])QJ('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',A,D.ref),sQ[A]=!0}}var g7=function(D,A,V,C,m,IJ,XJ){var PJ={$$typeof:Y,type:D,key:A,ref:V,props:XJ,_owner:IJ};if(PJ._store={},Object.defineProperty(PJ._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(PJ,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(PJ,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze)Object.freeze(PJ.props),Object.freeze(PJ);return PJ};function U7(D,A,V){var C,m={},IJ=null,XJ=null,PJ=null,gJ=null;if(A!=null){if(N7(A))XJ=A.ref,U8(A);if(NZ(A))SQ(A.key),IJ=""+A.key;PJ=A.__self===void 0?null:A.__self,gJ=A.__source===void 0?null:A.__source;for(C in A)if(P7.call(A,C)&&!qX.hasOwnProperty(C))m[C]=A[C]}var XQ=arguments.length-2;if(XQ===1)m.children=V;else if(XQ>1){var LQ=Array(XQ);for(var WQ=0;WQ<XQ;WQ++)LQ[WQ]=arguments[WQ+2];if(Object.freeze)Object.freeze(LQ);m.children=LQ}if(D&&D.defaultProps){var jQ=D.defaultProps;for(C in jQ)if(m[C]===void 0)m[C]=jQ[C]}if(IJ||XJ){var EQ=typeof D==="function"?D.displayName||D.name||"Unknown":D;if(IJ)$Z(m,EQ);if(XJ)K8(m,EQ)}return g7(D,IJ,XJ,PJ,gJ,qJ.current,m)}function r(D,A){var V=g7(D.type,A,D.ref,D._self,D._source,D._owner,D.props);return V}function WJ(D,A,V){if(D===null||D===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var C,m=cQ({},D.props),IJ=D.key,XJ=D.ref,PJ=D._self,gJ=D._source,XQ=D._owner;if(A!=null){if(N7(A))XJ=A.ref,XQ=qJ.current;if(NZ(A))SQ(A.key),IJ=""+A.key;var LQ;if(D.type&&D.type.defaultProps)LQ=D.type.defaultProps;for(C in A)if(P7.call(A,C)&&!qX.hasOwnProperty(C))if(A[C]===void 0&&LQ!==void 0)m[C]=LQ[C];else m[C]=A[C]}var WQ=arguments.length-2;if(WQ===1)m.children=V;else if(WQ>1){var jQ=Array(WQ);for(var EQ=0;EQ<WQ;EQ++)jQ[EQ]=arguments[EQ+2];m.children=jQ}return g7(D.type,IJ,XJ,PJ,gJ,XQ,m)}function VJ(D){return typeof D==="object"&&D!==null&&D.$$typeof===Y}var JQ=".",OQ=":";function lQ(D){var A=/[=:]/g,V={"=":"=0",":":"=2"},C=D.replace(A,function(m){return V[m]});return"$"+C}var AQ=!1,wZ=/\/+/g;function cJ(D){return D.replace(wZ,"$&/")}function rJ(D,A){if(typeof D==="object"&&D!==null&&D.key!=null)return SQ(D.key),lQ(""+D.key);return A.toString(36)}function T8(D,A,V,C,m){var IJ=typeof D;if(IJ==="undefined"||IJ==="boolean")D=null;var XJ=!1;if(D===null)XJ=!0;else switch(IJ){case"string":case"number":XJ=!0;break;case"object":switch(D.$$typeof){case Y:case K:XJ=!0}}if(XJ){var PJ=D,gJ=m(PJ),XQ=C===""?JQ+rJ(PJ,0):C;if(bQ(gJ)){var LQ="";if(XQ!=null)LQ=cJ(XQ)+"/";T8(gJ,A,LQ,"",function(BG){return BG})}else if(gJ!=null){if(VJ(gJ)){if(gJ.key&&(!PJ||PJ.key!==gJ.key))SQ(gJ.key);gJ=r(gJ,V+(gJ.key&&(!PJ||PJ.key!==gJ.key)?cJ(""+gJ.key)+"/":"")+XQ)}A.push(gJ)}return 1}var WQ,jQ,EQ=0,tJ=C===""?JQ:C+OQ;if(bQ(D))for(var Z9=0;Z9<D.length;Z9++)WQ=D[Z9],jQ=tJ+rJ(WQ,Z9),EQ+=T8(WQ,A,V,jQ,m);else{var r9=CJ(D);if(typeof r9==="function"){var j6=D;if(r9===j6.entries){if(!AQ)TJ("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");AQ=!0}var FG=r9.call(j6),k8,P6=0;while(!(k8=FG.next()).done)WQ=k8.value,jQ=tJ+rJ(WQ,P6++),EQ+=T8(WQ,A,V,jQ,m)}else if(IJ==="object"){var N6=String(D);throw Error("Objects are not valid as a React child (found: "+(N6==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":N6)+"). If you meant to render a collection of children, use an array instead.")}}return EQ}function w7(D,A,V){if(D==null)return D;var C=[],m=0;return T8(D,C,"","",function(IJ){return A.call(V,IJ,m++)}),C}function zX(D){var A=0;return w7(D,function(){A++}),A}function U6(D,A,V){w7(D,function(){A.apply(this,arguments)},V)}function m9(D){return w7(D,function(A){return A})||[]}function c9(D){if(!VJ(D))throw Error("React.Children.only expected to receive a single React element child.");return D}function tX(D){var A={$$typeof:j,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};A.Provider={$$typeof:B,_context:A};var V=!1,C=!1,m=!1;{var IJ={$$typeof:j,_context:A};Object.defineProperties(IJ,{Provider:{get:function(){if(!C)C=!0,QJ("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");return A.Provider},set:function(XJ){A.Provider=XJ}},_currentValue:{get:function(){return A._currentValue},set:function(XJ){A._currentValue=XJ}},_currentValue2:{get:function(){return A._currentValue2},set:function(XJ){A._currentValue2=XJ}},_threadCount:{get:function(){return A._threadCount},set:function(XJ){A._threadCount=XJ}},Consumer:{get:function(){if(!V)V=!0,QJ("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");return A.Consumer}},displayName:{get:function(){return A.displayName},set:function(XJ){if(!m)TJ("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",XJ),m=!0}}}),A.Consumer=IJ}return A._currentRenderer=null,A._currentRenderer2=null,A}var q8=-1,$X=0,OX=1,d7=2;function m7(D){if(D._status===q8){var A=D._result,V=A();if(V.then(function(IJ){if(D._status===$X||D._status===q8){var XJ=D;XJ._status=OX,XJ._result=IJ}},function(IJ){if(D._status===$X||D._status===q8){var XJ=D;XJ._status=d7,XJ._result=IJ}}),D._status===q8){var C=D;C._status=$X,C._result=V}}if(D._status===OX){var m=D._result;if(m===void 0)QJ(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
11
|
+
var lV=Object.create;var{getPrototypeOf:iV,defineProperty:jW,getOwnPropertyNames:rV}=Object;var nV=Object.prototype.hasOwnProperty;var zQ=(Z,Y,K)=>{K=Z!=null?lV(iV(Z)):{};let z=Y||!Z||!Z.__esModule?jW(K,"default",{value:Z,enumerable:!0}):K;for(let $ of rV(Z))if(!nV.call(z,$))jW(z,$,{get:()=>Z[$],enumerable:!0});return z};var m1=(Z,Y)=>()=>(Y||Z((Y={exports:{}}).exports,Y),Y.exports);var G8=m1((o_,qG)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z="18.3.1",Y=Symbol.for("react.element"),K=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),j=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),DJ=Symbol.for("react.offscreen"),TJ=Symbol.iterator,bJ="@@iterator";function CJ(D){if(D===null||typeof D!=="object")return null;var A=TJ&&D[TJ]||D[bJ];if(typeof A==="function")return A;return null}var g={current:null},KJ={transition:null},c={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},qJ={current:null},d={},UJ=null;function SJ(D){UJ=D}d.setExtraStackFrame=function(D){UJ=D},d.getCurrentStack=null,d.getStackAddendum=function(){var D="";if(UJ)D+=UJ;var A=d.getCurrentStack;if(A)D+=A()||"";return D};var zJ=!1,i=!1,$J=!1,LJ=!1,JJ=!1,YJ={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:KJ,ReactCurrentOwner:qJ};YJ.ReactDebugCurrentFrame=d,YJ.ReactCurrentActQueue=c;function _J(D){{for(var A=arguments.length,R=Array(A>1?A-1:0),C=1;C<A;C++)R[C-1]=arguments[C];AJ("warn",D,R)}}function QJ(D){{for(var A=arguments.length,R=Array(A>1?A-1:0),C=1;C<A;C++)R[C-1]=arguments[C];AJ("error",D,R)}}function AJ(D,A,R){{var C=YJ.ReactDebugCurrentFrame,m=C.getStackAddendum();if(m!=="")A+="%s",R=R.concat([m]);var IJ=R.map(function(XJ){return String(XJ)});IJ.unshift("Warning: "+A),Function.prototype.apply.call(console[D],console,IJ)}}var BQ={};function vQ(D,A){{var R=D.constructor,C=R&&(R.displayName||R.name)||"ReactClass",m=C+"."+A;if(BQ[m])return;QJ("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.",A,C),BQ[m]=!0}}var mZ={isMounted:function(D){return!1},enqueueForceUpdate:function(D,A,R){vQ(D,"forceUpdate")},enqueueReplaceState:function(D,A,R,C){vQ(D,"replaceState")},enqueueSetState:function(D,A,R,C){vQ(D,"setState")}},cQ=Object.assign,$Q={};Object.freeze($Q);function uQ(D,A,R){this.props=D,this.context=A,this.refs=$Q,this.updater=R||mZ}uQ.prototype.isReactComponent={},uQ.prototype.setState=function(D,A){if(typeof D!=="object"&&typeof D!=="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,A,"setState")},uQ.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var cZ={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)."]},Z7=function(D,A){Object.defineProperty(uQ.prototype,D,{get:function(){_J("%s(...) is deprecated in plain JavaScript React classes. %s",A[0],A[1]);return}})};for(var f7 in cZ)if(cZ.hasOwnProperty(f7))Z7(f7,cZ[f7])}function v7(){}v7.prototype=uQ.prototype;function ZZ(D,A,R){this.props=D,this.context=A,this.refs=$Q,this.updater=R||mZ}var X7=ZZ.prototype=new v7;X7.constructor=ZZ,cQ(X7,uQ.prototype),X7.isPureReactComponent=!0;function PZ(){var D={current:null};return Object.seal(D),D}var I7=Array.isArray;function bQ(D){return I7(D)}function Y7(D){{var A=typeof Symbol==="function"&&Symbol.toStringTag,R=A&&D[Symbol.toStringTag]||D.constructor.name||"Object";return R}}function j7(D){try{return pQ(D),!1}catch(A){return!0}}function pQ(D){return""+D}function SQ(D){if(j7(D))return QJ("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Y7(D)),pQ(D)}function pZ(D,A,R){var C=D.displayName;if(C)return C;var m=A.displayName||A.name||"";return m!==""?R+"("+m+")":R}function u7(D){return D.displayName||"Context"}function XZ(D){if(D==null)return null;if(typeof D.tag==="number")QJ("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof D==="function")return D.displayName||D.name||null;if(typeof D==="string")return D;switch(D){case z:return"Fragment";case K:return"Portal";case F:return"Profiler";case $:return"StrictMode";case T:return"Suspense";case y:return"SuspenseList"}if(typeof D==="object")switch(D.$$typeof){case j:var A=D;return u7(A)+".Consumer";case B:var R=D;return u7(R._context)+".Provider";case b:return pZ(D,D.render,"ForwardRef");case k:var C=D.displayName||null;if(C!==null)return C;return XZ(D.type)||"Memo";case a:{var m=D,IJ=m._payload,XJ=m._init;try{return XZ(XJ(IJ))}catch(PJ){return null}}}return null}var P7=Object.prototype.hasOwnProperty,qX={key:!0,ref:!0,__self:!0,__source:!0},G7,K7,sQ;sQ={};function N7(D){if(P7.call(D,"ref")){var A=Object.getOwnPropertyDescriptor(D,"ref").get;if(A&&A.isReactWarning)return!1}return D.ref!==void 0}function NZ(D){if(P7.call(D,"key")){var A=Object.getOwnPropertyDescriptor(D,"key").get;if(A&&A.isReactWarning)return!1}return D.key!==void 0}function $Z(D,A){var R=function(){if(!G7)G7=!0,QJ("%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)",A)};R.isReactWarning=!0,Object.defineProperty(D,"key",{get:R,configurable:!0})}function K8(D,A){var R=function(){if(!K7)K7=!0,QJ("%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)",A)};R.isReactWarning=!0,Object.defineProperty(D,"ref",{get:R,configurable:!0})}function U8(D){if(typeof D.ref==="string"&&qJ.current&&D.__self&&qJ.current.stateNode!==D.__self){var A=XZ(qJ.current.type);if(!sQ[A])QJ('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',A,D.ref),sQ[A]=!0}}var g7=function(D,A,R,C,m,IJ,XJ){var PJ={$$typeof:Y,type:D,key:A,ref:R,props:XJ,_owner:IJ};if(PJ._store={},Object.defineProperty(PJ._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(PJ,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(PJ,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze)Object.freeze(PJ.props),Object.freeze(PJ);return PJ};function U7(D,A,R){var C,m={},IJ=null,XJ=null,PJ=null,gJ=null;if(A!=null){if(N7(A))XJ=A.ref,U8(A);if(NZ(A))SQ(A.key),IJ=""+A.key;PJ=A.__self===void 0?null:A.__self,gJ=A.__source===void 0?null:A.__source;for(C in A)if(P7.call(A,C)&&!qX.hasOwnProperty(C))m[C]=A[C]}var XQ=arguments.length-2;if(XQ===1)m.children=R;else if(XQ>1){var LQ=Array(XQ);for(var WQ=0;WQ<XQ;WQ++)LQ[WQ]=arguments[WQ+2];if(Object.freeze)Object.freeze(LQ);m.children=LQ}if(D&&D.defaultProps){var jQ=D.defaultProps;for(C in jQ)if(m[C]===void 0)m[C]=jQ[C]}if(IJ||XJ){var EQ=typeof D==="function"?D.displayName||D.name||"Unknown":D;if(IJ)$Z(m,EQ);if(XJ)K8(m,EQ)}return g7(D,IJ,XJ,PJ,gJ,qJ.current,m)}function n(D,A){var R=g7(D.type,A,D.ref,D._self,D._source,D._owner,D.props);return R}function WJ(D,A,R){if(D===null||D===void 0)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var C,m=cQ({},D.props),IJ=D.key,XJ=D.ref,PJ=D._self,gJ=D._source,XQ=D._owner;if(A!=null){if(N7(A))XJ=A.ref,XQ=qJ.current;if(NZ(A))SQ(A.key),IJ=""+A.key;var LQ;if(D.type&&D.type.defaultProps)LQ=D.type.defaultProps;for(C in A)if(P7.call(A,C)&&!qX.hasOwnProperty(C))if(A[C]===void 0&&LQ!==void 0)m[C]=LQ[C];else m[C]=A[C]}var WQ=arguments.length-2;if(WQ===1)m.children=R;else if(WQ>1){var jQ=Array(WQ);for(var EQ=0;EQ<WQ;EQ++)jQ[EQ]=arguments[EQ+2];m.children=jQ}return g7(D.type,IJ,XJ,PJ,gJ,XQ,m)}function RJ(D){return typeof D==="object"&&D!==null&&D.$$typeof===Y}var JQ=".",OQ=":";function lQ(D){var A=/[=:]/g,R={"=":"=0",":":"=2"},C=D.replace(A,function(m){return R[m]});return"$"+C}var AQ=!1,wZ=/\/+/g;function cJ(D){return D.replace(wZ,"$&/")}function nJ(D,A){if(typeof D==="object"&&D!==null&&D.key!=null)return SQ(D.key),lQ(""+D.key);return A.toString(36)}function _8(D,A,R,C,m){var IJ=typeof D;if(IJ==="undefined"||IJ==="boolean")D=null;var XJ=!1;if(D===null)XJ=!0;else switch(IJ){case"string":case"number":XJ=!0;break;case"object":switch(D.$$typeof){case Y:case K:XJ=!0}}if(XJ){var PJ=D,gJ=m(PJ),XQ=C===""?JQ+nJ(PJ,0):C;if(bQ(gJ)){var LQ="";if(XQ!=null)LQ=cJ(XQ)+"/";_8(gJ,A,LQ,"",function(BG){return BG})}else if(gJ!=null){if(RJ(gJ)){if(gJ.key&&(!PJ||PJ.key!==gJ.key))SQ(gJ.key);gJ=n(gJ,R+(gJ.key&&(!PJ||PJ.key!==gJ.key)?cJ(""+gJ.key)+"/":"")+XQ)}A.push(gJ)}return 1}var WQ,jQ,EQ=0,tJ=C===""?JQ:C+OQ;if(bQ(D))for(var Z9=0;Z9<D.length;Z9++)WQ=D[Z9],jQ=tJ+nJ(WQ,Z9),EQ+=_8(WQ,A,R,jQ,m);else{var n9=CJ(D);if(typeof n9==="function"){var j6=D;if(n9===j6.entries){if(!AQ)_J("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");AQ=!0}var FG=n9.call(j6),k8,P6=0;while(!(k8=FG.next()).done)WQ=k8.value,jQ=tJ+nJ(WQ,P6++),EQ+=_8(WQ,A,R,jQ,m)}else if(IJ==="object"){var N6=String(D);throw Error("Objects are not valid as a React child (found: "+(N6==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":N6)+"). If you meant to render a collection of children, use an array instead.")}}return EQ}function w7(D,A,R){if(D==null)return D;var C=[],m=0;return _8(D,C,"","",function(IJ){return A.call(R,IJ,m++)}),C}function zX(D){var A=0;return w7(D,function(){A++}),A}function U6(D,A,R){w7(D,function(){A.apply(this,arguments)},R)}function m9(D){return w7(D,function(A){return A})||[]}function c9(D){if(!RJ(D))throw Error("React.Children.only expected to receive a single React element child.");return D}function tX(D){var A={$$typeof:j,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};A.Provider={$$typeof:B,_context:A};var R=!1,C=!1,m=!1;{var IJ={$$typeof:j,_context:A};Object.defineProperties(IJ,{Provider:{get:function(){if(!C)C=!0,QJ("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");return A.Provider},set:function(XJ){A.Provider=XJ}},_currentValue:{get:function(){return A._currentValue},set:function(XJ){A._currentValue=XJ}},_currentValue2:{get:function(){return A._currentValue2},set:function(XJ){A._currentValue2=XJ}},_threadCount:{get:function(){return A._threadCount},set:function(XJ){A._threadCount=XJ}},Consumer:{get:function(){if(!R)R=!0,QJ("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");return A.Consumer}},displayName:{get:function(){return A.displayName},set:function(XJ){if(!m)_J("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",XJ),m=!0}}}),A.Consumer=IJ}return A._currentRenderer=null,A._currentRenderer2=null,A}var q8=-1,$X=0,OX=1,d7=2;function m7(D){if(D._status===q8){var A=D._result,R=A();if(R.then(function(IJ){if(D._status===$X||D._status===q8){var XJ=D;XJ._status=OX,XJ._result=IJ}},function(IJ){if(D._status===$X||D._status===q8){var XJ=D;XJ._status=d7,XJ._result=IJ}}),D._status===q8){var C=D;C._status=$X,C._result=R}}if(D._status===OX){var m=D._result;if(m===void 0)QJ(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
12
12
|
|
|
13
13
|
Your code should look like:
|
|
14
14
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -16,30 +16,30 @@ Your code should look like:
|
|
|
16
16
|
Did you accidentally put curly braces around the import?`,m);if(!("default"in m))QJ(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
17
17
|
|
|
18
18
|
Your code should look like:
|
|
19
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,m);return m.default}else throw D._result}function z8(D){var A={_status:q8,_result:D},
|
|
19
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,m);return m.default}else throw D._result}function z8(D){var A={_status:q8,_result:D},R={$$typeof:a,_payload:A,_init:m7};{var C,m;Object.defineProperties(R,{defaultProps:{configurable:!0,get:function(){return C},set:function(IJ){QJ("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),C=IJ,Object.defineProperty(R,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return m},set:function(IJ){QJ("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),m=IJ,Object.defineProperty(R,"propTypes",{enumerable:!0})}}})}return R}function I(D){{if(D!=null&&D.$$typeof===k)QJ("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");else if(typeof D!=="function")QJ("forwardRef requires a render function but was given %s.",D===null?"null":typeof D);else if(D.length!==0&&D.length!==2)QJ("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined.");if(D!=null){if(D.defaultProps!=null||D.propTypes!=null)QJ("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")}}var A={$$typeof:b,render:D};{var R;Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return R},set:function(C){if(R=C,!D.name&&!D.displayName)D.displayName=C}})}return A}var v=Symbol.for("react.module.reference");function l(D){if(typeof D==="string"||typeof D==="function")return!0;if(D===z||D===F||JJ||D===$||D===T||D===y||LJ||D===DJ||zJ||i||$J)return!0;if(typeof D==="object"&&D!==null){if(D.$$typeof===a||D.$$typeof===k||D.$$typeof===B||D.$$typeof===j||D.$$typeof===b||D.$$typeof===v||D.getModuleId!==void 0)return!0}return!1}function FJ(D,A){if(!l(D))QJ("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D);var R={$$typeof:k,type:D,compare:A===void 0?null:A};{var C;Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return C},set:function(m){if(C=m,!D.name&&!D.displayName)D.displayName=m}})}return R}function HJ(){var D=g.current;if(D===null)QJ(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
20
20
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
21
21
|
2. You might be breaking the Rules of Hooks
|
|
22
22
|
3. You might have more than one copy of React in the same app
|
|
23
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return D}function lJ(D){var A=HJ();if(D._context!==void 0){var
|
|
24
|
-
`+
|
|
23
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return D}function lJ(D){var A=HJ();if(D._context!==void 0){var R=D._context;if(R.Consumer===D)QJ("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");else if(R.Provider===D)QJ("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return A.useContext(D)}function hJ(D){var A=HJ();return A.useState(D)}function kJ(D,A,R){var C=HJ();return C.useReducer(D,A,R)}function oJ(D){var A=HJ();return A.useRef(D)}function IQ(D,A){var R=HJ();return R.useEffect(D,A)}function VQ(D,A){var R=HJ();return R.useInsertionEffect(D,A)}function OZ(D,A){var R=HJ();return R.useLayoutEffect(D,A)}function $8(D,A){var R=HJ();return R.useCallback(D,A)}function c7(D,A){var R=HJ();return R.useMemo(D,A)}function YZ(D,A,R){var C=HJ();return C.useImperativeHandle(D,A,R)}function LX(D,A){{var R=HJ();return R.useDebugValue(D,A)}}function q6(){var D=HJ();return D.useTransition()}function p7(D){var A=HJ();return A.useDeferredValue(D)}function uJ(){var D=HJ();return D.useId()}function aX(D,A,R){var C=HJ();return C.useSyncExternalStore(D,A,R)}var WX=0,z6,$6,O6,L6,W6,D6,H6;function I4(){}I4.__reactDisabledLog=!0;function DG(){{if(WX===0){z6=console.log,$6=console.info,O6=console.warn,L6=console.error,W6=console.group,D6=console.groupCollapsed,H6=console.groupEnd;var D={configurable:!0,enumerable:!0,value:I4,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}WX++}}function M6(){{if(WX--,WX===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:cQ({},D,{value:z6}),info:cQ({},D,{value:$6}),warn:cQ({},D,{value:O6}),error:cQ({},D,{value:L6}),group:cQ({},D,{value:W6}),groupCollapsed:cQ({},D,{value:D6}),groupEnd:cQ({},D,{value:H6})})}if(WX<0)QJ("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var eX=YJ.ReactCurrentDispatcher,V7;function DX(D,A,R){{if(V7===void 0)try{throw Error()}catch(m){var C=m.stack.trim().match(/\n( *(at )?)/);V7=C&&C[1]||""}return`
|
|
24
|
+
`+V7+D}}var HX=!1,p9;{var F6=typeof WeakMap==="function"?WeakMap:Map;p9=new F6}function j4(D,A){if(!D||HX)return"";{var R=p9.get(D);if(R!==void 0)return R}var C;HX=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var IJ;IJ=eX.current,eX.current=null,DG();try{if(A){var XJ=function(){throw Error()};if(Object.defineProperty(XJ.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(XJ,[])}catch(tJ){C=tJ}Reflect.construct(D,[],XJ)}else{try{XJ.call()}catch(tJ){C=tJ}D.call(XJ.prototype)}}else{try{throw Error()}catch(tJ){C=tJ}D()}}catch(tJ){if(tJ&&C&&typeof tJ.stack==="string"){var PJ=tJ.stack.split(`
|
|
25
25
|
`),gJ=C.stack.split(`
|
|
26
26
|
`),XQ=PJ.length-1,LQ=gJ.length-1;while(XQ>=1&&LQ>=0&&PJ[XQ]!==gJ[LQ])LQ--;for(;XQ>=1&&LQ>=0;XQ--,LQ--)if(PJ[XQ]!==gJ[LQ]){if(XQ!==1||LQ!==1)do if(XQ--,LQ--,LQ<0||PJ[XQ]!==gJ[LQ]){var WQ=`
|
|
27
|
-
`+PJ[XQ].replace(" at new "," at ");if(D.displayName&&WQ.includes("<anonymous>"))WQ=WQ.replace("<anonymous>",D.displayName);if(typeof D==="function")p9.set(D,WQ);return WQ}while(XQ>=1&&LQ>=0);break}}}finally{HX=!1,eX.current=IJ,M6(),Error.prepareStackTrace=m}var jQ=D?D.displayName||D.name:"",EQ=jQ?DX(jQ):"";if(typeof D==="function")p9.set(D,EQ);return EQ}function B6(D,A,
|
|
27
|
+
`+PJ[XQ].replace(" at new "," at ");if(D.displayName&&WQ.includes("<anonymous>"))WQ=WQ.replace("<anonymous>",D.displayName);if(typeof D==="function")p9.set(D,WQ);return WQ}while(XQ>=1&&LQ>=0);break}}}finally{HX=!1,eX.current=IJ,M6(),Error.prepareStackTrace=m}var jQ=D?D.displayName||D.name:"",EQ=jQ?DX(jQ):"";if(typeof D==="function")p9.set(D,EQ);return EQ}function B6(D,A,R){return j4(D,!1)}function HG(D){var A=D.prototype;return!!(A&&A.isReactComponent)}function MX(D,A,R){if(D==null)return"";if(typeof D==="function")return j4(D,HG(D));if(typeof D==="string")return DX(D);switch(D){case T:return DX("Suspense");case y:return DX("SuspenseList")}if(typeof D==="object")switch(D.$$typeof){case b:return B6(D.render);case k:return MX(D.type,A,R);case a:{var C=D,m=C._payload,IJ=C._init;try{return MX(IJ(m),A,R)}catch(XJ){}}}return""}var P4={},A6=YJ.ReactDebugCurrentFrame;function s9(D){if(D){var A=D._owner,R=MX(D.type,D._source,A?A.type:null);A6.setExtraStackFrame(R)}else A6.setExtraStackFrame(null)}function N4(D,A,R,C,m){{var IJ=Function.call.bind(P7);for(var XJ in D)if(IJ(D,XJ)){var PJ=void 0;try{if(typeof D[XJ]!=="function"){var gJ=Error((C||"React class")+": "+R+" type `"+XJ+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[XJ]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw gJ.name="Invariant Violation",gJ}PJ=D[XJ](A,XJ,C,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(XQ){PJ=XQ}if(PJ&&!(PJ instanceof Error))s9(m),QJ("%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).",C||"React class",R,XJ,typeof PJ),s9(null);if(PJ instanceof Error&&!(PJ.message in P4))P4[PJ.message]=!0,s9(m),QJ("Failed %s type: %s",R,PJ.message),s9(null)}}}function sJ(D){if(D){var A=D._owner,R=MX(D.type,D._source,A?A.type:null);SJ(R)}else SJ(null)}var w4=!1;function I6(){if(qJ.current){var D=XZ(qJ.current.type);if(D)return`
|
|
28
28
|
|
|
29
|
-
Check the render method of \``+D+"`."}return""}function EJ(D){if(D!==void 0){var A=D.fileName.replace(/^.*[\\\/]/,""),
|
|
29
|
+
Check the render method of \``+D+"`."}return""}function EJ(D){if(D!==void 0){var A=D.fileName.replace(/^.*[\\\/]/,""),R=D.lineNumber;return`
|
|
30
30
|
|
|
31
|
-
Check your code at `+A+":"+
|
|
31
|
+
Check your code at `+A+":"+R+"."}return""}function V4(D){if(D!==null&&D!==void 0)return EJ(D.__source);return""}var VZ={};function J9(D){var A=I6();if(!A){var R=typeof D==="string"?D:D.displayName||D.name;if(R)A=`
|
|
32
32
|
|
|
33
|
-
Check the top-level render call using <`+V+">."}return A}function FX(D,A){if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var V=J9(A);if(RZ[V])return;RZ[V]=!0;var C="";if(D&&D._owner&&D._owner!==qJ.current)C=" It was passed a child from "+XZ(D._owner.type)+".";sJ(D),QJ('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,C),sJ(null)}function V4(D,A){if(typeof D!=="object")return;if(bQ(D))for(var V=0;V<D.length;V++){var C=D[V];if(VJ(C))FX(C,A)}else if(VJ(D)){if(D._store)D._store.validated=!0}else if(D){var m=CJ(D);if(typeof m==="function"){if(m!==D.entries){var IJ=m.call(D),XJ;while(!(XJ=IJ.next()).done)if(VJ(XJ.value))FX(XJ.value,A)}}}}function GZ(D){{var A=D.type;if(A===null||A===void 0||typeof A==="string")return;var V;if(typeof A==="function")V=A.propTypes;else if(typeof A==="object"&&(A.$$typeof===b||A.$$typeof===k))V=A.propTypes;else return;if(V){var C=XZ(A);N4(V,D.props,"prop",C,D)}else if(A.PropTypes!==void 0&&!w4){w4=!0;var m=XZ(A);QJ("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}if(typeof A.getDefaultProps==="function"&&!A.getDefaultProps.isReactClassApproved)QJ("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function TQ(D){{var A=Object.keys(D.props);for(var V=0;V<A.length;V++){var C=A[V];if(C!=="children"&&C!=="key"){sJ(D),QJ("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),sJ(null);break}}if(D.ref!==null)sJ(D),QJ("Invalid attribute `ref` supplied to `React.Fragment`."),sJ(null)}}function S4(D,A,V){var C=l(D);if(!C){var m="";if(D===void 0||typeof D==="object"&&D!==null&&Object.keys(D).length===0)m+=" 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 IJ=R4(A);if(IJ)m+=IJ;else m+=I6();var XJ;if(D===null)XJ="null";else if(bQ(D))XJ="array";else if(D!==void 0&&D.$$typeof===Y)XJ="<"+(XZ(D.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?";else XJ=typeof D;QJ("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",XJ,m)}var PJ=U7.apply(this,arguments);if(PJ==null)return PJ;if(C)for(var gJ=2;gJ<arguments.length;gJ++)V4(arguments[gJ],D);if(D===z)TQ(PJ);else GZ(PJ);return PJ}var q7=!1;function sZ(D){var A=S4.bind(null,D);A.type=D;{if(!q7)q7=!0,TJ("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(A,"type",{enumerable:!1,get:function(){return TJ("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:D}),D}})}return A}function O8(D,A,V){var C=WJ.apply(this,arguments);for(var m=2;m<arguments.length;m++)V4(arguments[m],C.type);return GZ(C),C}function MG(D,A){var V=KJ.transition;KJ.transition={};var C=KJ.transition;KJ.transition._updatedFibers=new Set;try{D()}finally{if(KJ.transition=V,V===null&&C._updatedFibers){var m=C._updatedFibers.size;if(m>10)TJ("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.");C._updatedFibers.clear()}}}var l9=!1,Q9=null;function T4(D){if(Q9===null)try{var A=("require"+Math.random()).slice(0,7),V=qG&&qG[A];Q9=V.call(qG,"timers").setImmediate}catch(C){Q9=function(m){if(l9===!1){if(l9=!0,typeof MessageChannel>"u")QJ("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 IJ=new MessageChannel;IJ.port1.onmessage=m,IJ.port2.postMessage(void 0)}}return Q9(D)}var BX=0,_4=!1;function k4(D){{var A=BX;if(BX++,c.current===null)c.current=[];var V=c.isBatchingLegacy,C;try{if(c.isBatchingLegacy=!0,C=D(),!V&&c.didScheduleLegacyUpdate){var m=c.current;if(m!==null)c.didScheduleLegacyUpdate=!1,n9(m)}}catch(jQ){throw _8(A),jQ}finally{c.isBatchingLegacy=V}if(C!==null&&typeof C==="object"&&typeof C.then==="function"){var IJ=C,XJ=!1,PJ={then:function(jQ,EQ){XJ=!0,IJ.then(function(tJ){if(_8(A),BX===0)i9(tJ,jQ,EQ);else jQ(tJ)},function(tJ){_8(A),EQ(tJ)})}};if(!_4&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!XJ)_4=!0,QJ("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 () => ...);")});return PJ}else{var gJ=C;if(_8(A),BX===0){var XQ=c.current;if(XQ!==null)n9(XQ),c.current=null;var LQ={then:function(jQ,EQ){if(c.current===null)c.current=[],i9(gJ,jQ,EQ);else jQ(gJ)}};return LQ}else{var WQ={then:function(jQ,EQ){jQ(gJ)}};return WQ}}}}function _8(D){{if(D!==BX-1)QJ("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");BX=D}}function i9(D,A,V){{var C=c.current;if(C!==null)try{n9(C),T4(function(){if(C.length===0)c.current=null,A(D);else i9(D,A,V)})}catch(m){V(m)}else A(D)}}var AX=!1;function n9(D){if(!AX){AX=!0;var A=0;try{for(;A<D.length;A++){var V=D[A];do V=V(!0);while(V!==null)}D.length=0}catch(C){throw D=D.slice(A+1),C}finally{AX=!1}}}var E4=S4,C4=O8,x4=sZ,h4={map:w7,forEach:U6,count:zX,toArray:m9,only:c9};if(oT.Children=h4,oT.Component=uQ,oT.Fragment=z,oT.Profiler=F,oT.PureComponent=ZZ,oT.StrictMode=$,oT.Suspense=_,oT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YJ,oT.act=k4,oT.cloneElement=C4,oT.createContext=tX,oT.createElement=E4,oT.createFactory=x4,oT.createRef=PZ,oT.forwardRef=I,oT.isValidElement=VJ,oT.lazy=z8,oT.memo=FJ,oT.startTransition=MG,oT.unstable_act=k4,oT.useCallback=$8,oT.useContext=lJ,oT.useDebugValue=LX,oT.useDeferredValue=p7,oT.useEffect=IQ,oT.useId=uJ,oT.useImperativeHandle=YZ,oT.useInsertionEffect=RQ,oT.useLayoutEffect=OZ,oT.useMemo=c7,oT.useReducer=kJ,oT.useRef=oJ,oT.useState=hJ,oT.useSyncExternalStore=aX,oT.useTransition=q6,oT.version=Z,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var KM=m1((tT)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z=!1,Y=!1,K=5;function z(r,WJ){var VJ=r.length;r.push(WJ),B(r,WJ,VJ)}function $(r){return r.length===0?null:r[0]}function F(r){if(r.length===0)return null;var WJ=r[0],VJ=r.pop();if(VJ!==WJ)r[0]=VJ,j(r,VJ,0);return WJ}function B(r,WJ,VJ){var JQ=VJ;while(JQ>0){var OQ=JQ-1>>>1,lQ=r[OQ];if(b(lQ,WJ)>0)r[OQ]=WJ,r[JQ]=lQ,JQ=OQ;else return}}function j(r,WJ,VJ){var JQ=VJ,OQ=r.length,lQ=OQ>>>1;while(JQ<lQ){var AQ=(JQ+1)*2-1,wZ=r[AQ],cJ=AQ+1,rJ=r[cJ];if(b(wZ,WJ)<0)if(cJ<OQ&&b(rJ,wZ)<0)r[JQ]=rJ,r[cJ]=WJ,JQ=cJ;else r[JQ]=wZ,r[AQ]=WJ,JQ=AQ;else if(cJ<OQ&&b(rJ,WJ)<0)r[JQ]=rJ,r[cJ]=WJ,JQ=cJ;else return}}function b(r,WJ){var VJ=r.sortIndex-WJ.sortIndex;return VJ!==0?VJ:r.id-WJ.id}var _=1,y=2,k=3,a=4,DJ=5;function _J(r,WJ){}var bJ=typeof performance==="object"&&typeof performance.now==="function";if(bJ){var CJ=performance;tT.unstable_now=function(){return CJ.now()}}else{var g=Date,KJ=g.now();tT.unstable_now=function(){return g.now()-KJ}}var c=1073741823,qJ=-1,d=250,UJ=5000,SJ=1e4,zJ=c,i=[],$J=[],LJ=1,JJ=null,YJ=k,TJ=!1,QJ=!1,AJ=!1,BQ=typeof setTimeout==="function"?setTimeout:null,vQ=typeof clearTimeout==="function"?clearTimeout:null,mZ=typeof setImmediate<"u"?setImmediate:null,cQ=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function $Q(r){var WJ=$($J);while(WJ!==null){if(WJ.callback===null)F($J);else if(WJ.startTime<=r)F($J),WJ.sortIndex=WJ.expirationTime,z(i,WJ);else return;WJ=$($J)}}function uQ(r){if(AJ=!1,$Q(r),!QJ)if($(i)!==null)QJ=!0,$Z(cZ);else{var WJ=$($J);if(WJ!==null)K8(uQ,WJ.startTime-r)}}function cZ(r,WJ){if(QJ=!1,AJ)AJ=!1,U8();TJ=!0;var VJ=YJ;try{if(Y)try{return Z7(r,WJ)}catch(OQ){if(JJ!==null){var JQ=tT.unstable_now();_J(JJ,JQ),JJ.isQueued=!1}throw OQ}else return Z7(r,WJ)}finally{JJ=null,YJ=VJ,TJ=!1}}function Z7(r,WJ){var VJ=WJ;$Q(VJ),JJ=$(i);while(JJ!==null&&!Z){if(JJ.expirationTime>VJ&&(!r||P7()))break;var JQ=JJ.callback;if(typeof JQ==="function"){JJ.callback=null,YJ=JJ.priorityLevel;var OQ=JJ.expirationTime<=VJ,lQ=JQ(OQ);if(VJ=tT.unstable_now(),typeof lQ==="function")JJ.callback=lQ;else if(JJ===$(i))F(i);$Q(VJ)}else F(i);JJ=$(i)}if(JJ!==null)return!0;else{var AQ=$($J);if(AQ!==null)K8(uQ,AQ.startTime-VJ);return!1}}function f7(r,WJ){switch(r){case _:case y:case k:case a:case DJ:break;default:r=k}var VJ=YJ;YJ=r;try{return WJ()}finally{YJ=VJ}}function v7(r){var WJ;switch(YJ){case _:case y:case k:WJ=k;break;default:WJ=YJ;break}var VJ=YJ;YJ=WJ;try{return r()}finally{YJ=VJ}}function ZZ(r){var WJ=YJ;return function(){var VJ=YJ;YJ=WJ;try{return r.apply(this,arguments)}finally{YJ=VJ}}}function X7(r,WJ,VJ){var JQ=tT.unstable_now(),OQ;if(typeof VJ==="object"&&VJ!==null){var lQ=VJ.delay;if(typeof lQ==="number"&&lQ>0)OQ=JQ+lQ;else OQ=JQ}else OQ=JQ;var AQ;switch(r){case _:AQ=qJ;break;case y:AQ=d;break;case DJ:AQ=zJ;break;case a:AQ=SJ;break;case k:default:AQ=UJ;break}var wZ=OQ+AQ,cJ={id:LJ++,callback:WJ,priorityLevel:r,startTime:OQ,expirationTime:wZ,sortIndex:-1};if(OQ>JQ){if(cJ.sortIndex=OQ,z($J,cJ),$(i)===null&&cJ===$($J)){if(AJ)U8();else AJ=!0;K8(uQ,OQ-JQ)}}else if(cJ.sortIndex=wZ,z(i,cJ),!QJ&&!TJ)QJ=!0,$Z(cZ);return cJ}function PZ(){}function I7(){if(!QJ&&!TJ)QJ=!0,$Z(cZ)}function bQ(){return $(i)}function Y7(r){r.callback=null}function j7(){return YJ}var pQ=!1,SQ=null,pZ=-1,u7=K,XZ=-1;function P7(){var r=tT.unstable_now()-XZ;if(r<u7)return!1;return!0}function qX(){}function G7(r){if(r<0||r>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(r>0)u7=Math.floor(1000/r);else u7=K}var K7=function(){if(SQ!==null){var r=tT.unstable_now();XZ=r;var WJ=!0,VJ=!0;try{VJ=SQ(WJ,r)}finally{if(VJ)sQ();else pQ=!1,SQ=null}}else pQ=!1},sQ;if(typeof mZ==="function")sQ=function(){mZ(K7)};else if(typeof MessageChannel<"u"){var N7=new MessageChannel,NZ=N7.port2;N7.port1.onmessage=K7,sQ=function(){NZ.postMessage(null)}}else sQ=function(){BQ(K7,0)};function $Z(r){if(SQ=r,!pQ)pQ=!0,sQ()}function K8(r,WJ){pZ=BQ(function(){r(tT.unstable_now())},WJ)}function U8(){vQ(pZ),pZ=-1}var g7=qX,U7=null;if(tT.unstable_IdlePriority=DJ,tT.unstable_ImmediatePriority=_,tT.unstable_LowPriority=a,tT.unstable_NormalPriority=k,tT.unstable_Profiling=U7,tT.unstable_UserBlockingPriority=y,tT.unstable_cancelCallback=Y7,tT.unstable_continueExecution=I7,tT.unstable_forceFrameRate=G7,tT.unstable_getCurrentPriorityLevel=j7,tT.unstable_getFirstCallbackNode=bQ,tT.unstable_next=v7,tT.unstable_pauseExecution=PZ,tT.unstable_requestPaint=g7,tT.unstable_runWithPriority=f7,tT.unstable_scheduleCallback=X7,tT.unstable_shouldYield=P7,tT.unstable_wrapCallback=ZZ,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var UM=m1((aT)=>{var F4=zQ(G8()),qQ=zQ(KM());(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z=F4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y=!1;function K(J){Y=J}function z(J){if(!Y){for(var Q=arguments.length,X=Array(Q>1?Q-1:0),G=1;G<Q;G++)X[G-1]=arguments[G];F("warn",J,X)}}function $(J){if(!Y){for(var Q=arguments.length,X=Array(Q>1?Q-1:0),G=1;G<Q;G++)X[G-1]=arguments[G];F("error",J,X)}}function F(J,Q,X){{var G=Z.ReactDebugCurrentFrame,U=G.getStackAddendum();if(U!=="")Q+="%s",X=X.concat([U]);var q=X.map(function(O){return String(O)});q.unshift("Warning: "+Q),Function.prototype.apply.call(console[J],console,q)}}var B=0,j=1,b=2,_=3,y=4,k=5,a=6,DJ=7,_J=8,bJ=9,CJ=10,g=11,KJ=12,c=13,qJ=14,d=15,UJ=16,SJ=17,zJ=18,i=19,$J=21,LJ=22,JJ=23,YJ=24,TJ=25,QJ=!0,AJ=!1,BQ=!1,vQ=!1,mZ=!1,cQ=!0,$Q=!1,uQ=!0,cZ=!0,Z7=!0,f7=!0,v7=new Set,ZZ={},X7={};function PZ(J,Q){I7(J,Q),I7(J+"Capture",Q)}function I7(J,Q){if(ZZ[J])$("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",J);ZZ[J]=Q;{var X=J.toLowerCase();if(X7[X]=J,J==="onDoubleClick")X7.ondblclick=J}for(var G=0;G<Q.length;G++)v7.add(Q[G])}var bQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y7=Object.prototype.hasOwnProperty;function j7(J){{var Q=typeof Symbol==="function"&&Symbol.toStringTag,X=Q&&J[Symbol.toStringTag]||J.constructor.name||"Object";return X}}function pQ(J){try{return SQ(J),!1}catch(Q){return!0}}function SQ(J){return""+J}function pZ(J,Q){if(pQ(J))return $("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function u7(J){if(pQ(J))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",j7(J)),SQ(J)}function XZ(J,Q){if(pQ(J))return $("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function P7(J,Q){if(pQ(J))return $("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function qX(J){if(pQ(J))return $("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",j7(J)),SQ(J)}function G7(J){if(pQ(J))return $("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.",j7(J)),SQ(J)}var K7=0,sQ=1,N7=2,NZ=3,$Z=4,K8=5,U8=6,g7=":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",U7=g7+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r=new RegExp("^["+g7+"]["+U7+"]*$"),WJ={},VJ={};function JQ(J){if(Y7.call(VJ,J))return!0;if(Y7.call(WJ,J))return!1;if(r.test(J))return VJ[J]=!0,!0;return WJ[J]=!0,$("Invalid attribute name: `%s`",J),!1}function OQ(J,Q,X){if(Q!==null)return Q.type===K7;if(X)return!1;if(J.length>2&&(J[0]==="o"||J[0]==="O")&&(J[1]==="n"||J[1]==="N"))return!0;return!1}function lQ(J,Q,X,G){if(X!==null&&X.type===K7)return!1;switch(typeof Q){case"function":case"symbol":return!0;case"boolean":{if(G)return!1;if(X!==null)return!X.acceptsBooleans;else{var U=J.toLowerCase().slice(0,5);return U!=="data-"&&U!=="aria-"}}default:return!1}}function AQ(J,Q,X,G){if(Q===null||typeof Q>"u")return!0;if(lQ(J,Q,X,G))return!0;if(G)return!1;if(X!==null)switch(X.type){case NZ:return!Q;case $Z:return Q===!1;case K8:return isNaN(Q);case U8:return isNaN(Q)||Q<1}return!1}function wZ(J){return rJ.hasOwnProperty(J)?rJ[J]:null}function cJ(J,Q,X,G,U,q,O){this.acceptsBooleans=Q===N7||Q===NZ||Q===$Z,this.attributeName=G,this.attributeNamespace=U,this.mustUseProperty=X,this.propertyName=J,this.type=Q,this.sanitizeURL=q,this.removeEmptyString=O}var rJ={},T8=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];T8.forEach(function(J){rJ[J]=new cJ(J,K7,!1,J,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(J){var Q=J[0],X=J[1];rJ[Q]=new cJ(Q,sQ,!1,X,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(J){rJ[J]=new cJ(J,N7,!1,J.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(J){rJ[J]=new cJ(J,N7,!1,J,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(J){rJ[J]=new cJ(J,NZ,!1,J.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(J){rJ[J]=new cJ(J,NZ,!0,J,null,!1,!1)}),["capture","download"].forEach(function(J){rJ[J]=new cJ(J,$Z,!1,J,null,!1,!1)}),["cols","rows","size","span"].forEach(function(J){rJ[J]=new cJ(J,U8,!1,J,null,!1,!1)}),["rowSpan","start"].forEach(function(J){rJ[J]=new cJ(J,K8,!1,J.toLowerCase(),null,!1,!1)});var w7=/[\-\:]([a-z])/g,zX=function(J){return J[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(J){var Q=J.replace(w7,zX);rJ[Q]=new cJ(Q,sQ,!1,J,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(J){var Q=J.replace(w7,zX);rJ[Q]=new cJ(Q,sQ,!1,J,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(J){var Q=J.replace(w7,zX);rJ[Q]=new cJ(Q,sQ,!1,J,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(J){rJ[J]=new cJ(J,sQ,!1,J.toLowerCase(),null,!1,!1)});var U6="xlinkHref";rJ[U6]=new cJ("xlinkHref",sQ,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(J){rJ[J]=new cJ(J,sQ,!1,J.toLowerCase(),null,!0,!0)});var m9=/^[\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,c9=!1;function tX(J){if(!c9&&m9.test(J))c9=!0,$("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(J))}function q8(J,Q,X,G){if(G.mustUseProperty){var U=G.propertyName;return J[U]}else{if(pZ(X,Q),G.sanitizeURL)tX(""+X);var q=G.attributeName,O=null;if(G.type===$Z){if(J.hasAttribute(q)){var L=J.getAttribute(q);if(L==="")return!0;if(AQ(Q,X,G,!1))return L;if(L===""+X)return X;return L}}else if(J.hasAttribute(q)){if(AQ(Q,X,G,!1))return J.getAttribute(q);if(G.type===NZ)return X;O=J.getAttribute(q)}if(AQ(Q,X,G,!1))return O===null?X:O;else if(O===""+X)return X;else return O}}function $X(J,Q,X,G){{if(!JQ(Q))return;if(!J.hasAttribute(Q))return X===void 0?void 0:null;var U=J.getAttribute(Q);if(pZ(X,Q),U===""+X)return X;return U}}function OX(J,Q,X,G){var U=wZ(Q);if(OQ(Q,U,G))return;if(AQ(Q,X,U,G))X=null;if(G||U===null){if(JQ(Q)){var q=Q;if(X===null)J.removeAttribute(q);else pZ(X,Q),J.setAttribute(q,""+X)}return}var O=U.mustUseProperty;if(O){var L=U.propertyName;if(X===null){var W=U.type;J[L]=W===NZ?!1:""}else J[L]=X;return}var{attributeName:H,attributeNamespace:M}=U;if(X===null)J.removeAttribute(H);else{var N=U.type,P;if(N===NZ||N===$Z&&X===!0)P="";else if(pZ(X,H),P=""+X,U.sanitizeURL)tX(P.toString());if(M)J.setAttributeNS(M,H,P);else J.setAttribute(H,P)}}var d7=Symbol.for("react.element"),m7=Symbol.for("react.portal"),z8=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),FJ=Symbol.for("react.context"),HJ=Symbol.for("react.forward_ref"),lJ=Symbol.for("react.suspense"),hJ=Symbol.for("react.suspense_list"),kJ=Symbol.for("react.memo"),oJ=Symbol.for("react.lazy"),IQ=Symbol.for("react.scope"),RQ=Symbol.for("react.debug_trace_mode"),OZ=Symbol.for("react.offscreen"),$8=Symbol.for("react.legacy_hidden"),c7=Symbol.for("react.cache"),YZ=Symbol.for("react.tracing_marker"),LX=Symbol.iterator,q6="@@iterator";function p7(J){if(J===null||typeof J!=="object")return null;var Q=LX&&J[LX]||J[q6];if(typeof Q==="function")return Q;return null}var uJ=Object.assign,aX=0,WX,z6,$6,O6,L6,W6,D6;function H6(){}H6.__reactDisabledLog=!0;function I4(){{if(aX===0){WX=console.log,z6=console.info,$6=console.warn,O6=console.error,L6=console.group,W6=console.groupCollapsed,D6=console.groupEnd;var J={configurable:!0,enumerable:!0,value:H6,writable:!0};Object.defineProperties(console,{info:J,log:J,warn:J,error:J,group:J,groupCollapsed:J,groupEnd:J})}aX++}}function DG(){{if(aX--,aX===0){var J={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:uJ({},J,{value:WX}),info:uJ({},J,{value:z6}),warn:uJ({},J,{value:$6}),error:uJ({},J,{value:O6}),group:uJ({},J,{value:L6}),groupCollapsed:uJ({},J,{value:W6}),groupEnd:uJ({},J,{value:D6})})}if(aX<0)$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var M6=Z.ReactCurrentDispatcher,eX;function R7(J,Q,X){{if(eX===void 0)try{throw Error()}catch(U){var G=U.stack.trim().match(/\n( *(at )?)/);eX=G&&G[1]||""}return`
|
|
34
|
-
`+eX+J}}var DX=!1,HX;{var p9=typeof WeakMap==="function"?WeakMap:Map;HX=new p9}function F6(J,Q){if(!J||DX)return"";{var X=HX.get(J);if(X!==void 0)return X}var G;DX=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var q;q=M6.current,M6.current=null,I4();try{if(Q){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(
|
|
33
|
+
Check the top-level render call using <`+R+">."}return A}function FX(D,A){if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var R=J9(A);if(VZ[R])return;VZ[R]=!0;var C="";if(D&&D._owner&&D._owner!==qJ.current)C=" It was passed a child from "+XZ(D._owner.type)+".";sJ(D),QJ('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,C),sJ(null)}function R4(D,A){if(typeof D!=="object")return;if(bQ(D))for(var R=0;R<D.length;R++){var C=D[R];if(RJ(C))FX(C,A)}else if(RJ(D)){if(D._store)D._store.validated=!0}else if(D){var m=CJ(D);if(typeof m==="function"){if(m!==D.entries){var IJ=m.call(D),XJ;while(!(XJ=IJ.next()).done)if(RJ(XJ.value))FX(XJ.value,A)}}}}function GZ(D){{var A=D.type;if(A===null||A===void 0||typeof A==="string")return;var R;if(typeof A==="function")R=A.propTypes;else if(typeof A==="object"&&(A.$$typeof===b||A.$$typeof===k))R=A.propTypes;else return;if(R){var C=XZ(A);N4(R,D.props,"prop",C,D)}else if(A.PropTypes!==void 0&&!w4){w4=!0;var m=XZ(A);QJ("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}if(typeof A.getDefaultProps==="function"&&!A.getDefaultProps.isReactClassApproved)QJ("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _Q(D){{var A=Object.keys(D.props);for(var R=0;R<A.length;R++){var C=A[R];if(C!=="children"&&C!=="key"){sJ(D),QJ("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),sJ(null);break}}if(D.ref!==null)sJ(D),QJ("Invalid attribute `ref` supplied to `React.Fragment`."),sJ(null)}}function S4(D,A,R){var C=l(D);if(!C){var m="";if(D===void 0||typeof D==="object"&&D!==null&&Object.keys(D).length===0)m+=" 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 IJ=V4(A);if(IJ)m+=IJ;else m+=I6();var XJ;if(D===null)XJ="null";else if(bQ(D))XJ="array";else if(D!==void 0&&D.$$typeof===Y)XJ="<"+(XZ(D.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?";else XJ=typeof D;QJ("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",XJ,m)}var PJ=U7.apply(this,arguments);if(PJ==null)return PJ;if(C)for(var gJ=2;gJ<arguments.length;gJ++)R4(arguments[gJ],D);if(D===z)_Q(PJ);else GZ(PJ);return PJ}var q7=!1;function sZ(D){var A=S4.bind(null,D);A.type=D;{if(!q7)q7=!0,_J("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");Object.defineProperty(A,"type",{enumerable:!1,get:function(){return _J("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:D}),D}})}return A}function O8(D,A,R){var C=WJ.apply(this,arguments);for(var m=2;m<arguments.length;m++)R4(arguments[m],C.type);return GZ(C),C}function MG(D,A){var R=KJ.transition;KJ.transition={};var C=KJ.transition;KJ.transition._updatedFibers=new Set;try{D()}finally{if(KJ.transition=R,R===null&&C._updatedFibers){var m=C._updatedFibers.size;if(m>10)_J("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.");C._updatedFibers.clear()}}}var l9=!1,Q9=null;function _4(D){if(Q9===null)try{var A=("require"+Math.random()).slice(0,7),R=qG&&qG[A];Q9=R.call(qG,"timers").setImmediate}catch(C){Q9=function(m){if(l9===!1){if(l9=!0,typeof MessageChannel>"u")QJ("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 IJ=new MessageChannel;IJ.port1.onmessage=m,IJ.port2.postMessage(void 0)}}return Q9(D)}var BX=0,T4=!1;function k4(D){{var A=BX;if(BX++,c.current===null)c.current=[];var R=c.isBatchingLegacy,C;try{if(c.isBatchingLegacy=!0,C=D(),!R&&c.didScheduleLegacyUpdate){var m=c.current;if(m!==null)c.didScheduleLegacyUpdate=!1,r9(m)}}catch(jQ){throw T8(A),jQ}finally{c.isBatchingLegacy=R}if(C!==null&&typeof C==="object"&&typeof C.then==="function"){var IJ=C,XJ=!1,PJ={then:function(jQ,EQ){XJ=!0,IJ.then(function(tJ){if(T8(A),BX===0)i9(tJ,jQ,EQ);else jQ(tJ)},function(tJ){T8(A),EQ(tJ)})}};if(!T4&&typeof Promise<"u")Promise.resolve().then(function(){}).then(function(){if(!XJ)T4=!0,QJ("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 () => ...);")});return PJ}else{var gJ=C;if(T8(A),BX===0){var XQ=c.current;if(XQ!==null)r9(XQ),c.current=null;var LQ={then:function(jQ,EQ){if(c.current===null)c.current=[],i9(gJ,jQ,EQ);else jQ(gJ)}};return LQ}else{var WQ={then:function(jQ,EQ){jQ(gJ)}};return WQ}}}}function T8(D){{if(D!==BX-1)QJ("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");BX=D}}function i9(D,A,R){{var C=c.current;if(C!==null)try{r9(C),_4(function(){if(C.length===0)c.current=null,A(D);else i9(D,A,R)})}catch(m){R(m)}else A(D)}}var AX=!1;function r9(D){if(!AX){AX=!0;var A=0;try{for(;A<D.length;A++){var R=D[A];do R=R(!0);while(R!==null)}D.length=0}catch(C){throw D=D.slice(A+1),C}finally{AX=!1}}}var E4=S4,C4=O8,x4=sZ,h4={map:w7,forEach:U6,count:zX,toArray:m9,only:c9};if(o_.Children=h4,o_.Component=uQ,o_.Fragment=z,o_.Profiler=F,o_.PureComponent=ZZ,o_.StrictMode=$,o_.Suspense=T,o_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YJ,o_.act=k4,o_.cloneElement=C4,o_.createContext=tX,o_.createElement=E4,o_.createFactory=x4,o_.createRef=PZ,o_.forwardRef=I,o_.isValidElement=RJ,o_.lazy=z8,o_.memo=FJ,o_.startTransition=MG,o_.unstable_act=k4,o_.useCallback=$8,o_.useContext=lJ,o_.useDebugValue=LX,o_.useDeferredValue=p7,o_.useEffect=IQ,o_.useId=uJ,o_.useImperativeHandle=YZ,o_.useInsertionEffect=VQ,o_.useLayoutEffect=OZ,o_.useMemo=c7,o_.useReducer=kJ,o_.useRef=oJ,o_.useState=hJ,o_.useSyncExternalStore=aX,o_.useTransition=q6,o_.version=Z,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var KM=m1((t_)=>{(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z=!1,Y=!1,K=5;function z(n,WJ){var RJ=n.length;n.push(WJ),B(n,WJ,RJ)}function $(n){return n.length===0?null:n[0]}function F(n){if(n.length===0)return null;var WJ=n[0],RJ=n.pop();if(RJ!==WJ)n[0]=RJ,j(n,RJ,0);return WJ}function B(n,WJ,RJ){var JQ=RJ;while(JQ>0){var OQ=JQ-1>>>1,lQ=n[OQ];if(b(lQ,WJ)>0)n[OQ]=WJ,n[JQ]=lQ,JQ=OQ;else return}}function j(n,WJ,RJ){var JQ=RJ,OQ=n.length,lQ=OQ>>>1;while(JQ<lQ){var AQ=(JQ+1)*2-1,wZ=n[AQ],cJ=AQ+1,nJ=n[cJ];if(b(wZ,WJ)<0)if(cJ<OQ&&b(nJ,wZ)<0)n[JQ]=nJ,n[cJ]=WJ,JQ=cJ;else n[JQ]=wZ,n[AQ]=WJ,JQ=AQ;else if(cJ<OQ&&b(nJ,WJ)<0)n[JQ]=nJ,n[cJ]=WJ,JQ=cJ;else return}}function b(n,WJ){var RJ=n.sortIndex-WJ.sortIndex;return RJ!==0?RJ:n.id-WJ.id}var T=1,y=2,k=3,a=4,DJ=5;function TJ(n,WJ){}var bJ=typeof performance==="object"&&typeof performance.now==="function";if(bJ){var CJ=performance;t_.unstable_now=function(){return CJ.now()}}else{var g=Date,KJ=g.now();t_.unstable_now=function(){return g.now()-KJ}}var c=1073741823,qJ=-1,d=250,UJ=5000,SJ=1e4,zJ=c,i=[],$J=[],LJ=1,JJ=null,YJ=k,_J=!1,QJ=!1,AJ=!1,BQ=typeof setTimeout==="function"?setTimeout:null,vQ=typeof clearTimeout==="function"?clearTimeout:null,mZ=typeof setImmediate<"u"?setImmediate:null,cQ=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function $Q(n){var WJ=$($J);while(WJ!==null){if(WJ.callback===null)F($J);else if(WJ.startTime<=n)F($J),WJ.sortIndex=WJ.expirationTime,z(i,WJ);else return;WJ=$($J)}}function uQ(n){if(AJ=!1,$Q(n),!QJ)if($(i)!==null)QJ=!0,$Z(cZ);else{var WJ=$($J);if(WJ!==null)K8(uQ,WJ.startTime-n)}}function cZ(n,WJ){if(QJ=!1,AJ)AJ=!1,U8();_J=!0;var RJ=YJ;try{if(Y)try{return Z7(n,WJ)}catch(OQ){if(JJ!==null){var JQ=t_.unstable_now();TJ(JJ,JQ),JJ.isQueued=!1}throw OQ}else return Z7(n,WJ)}finally{JJ=null,YJ=RJ,_J=!1}}function Z7(n,WJ){var RJ=WJ;$Q(RJ),JJ=$(i);while(JJ!==null&&!Z){if(JJ.expirationTime>RJ&&(!n||P7()))break;var JQ=JJ.callback;if(typeof JQ==="function"){JJ.callback=null,YJ=JJ.priorityLevel;var OQ=JJ.expirationTime<=RJ,lQ=JQ(OQ);if(RJ=t_.unstable_now(),typeof lQ==="function")JJ.callback=lQ;else if(JJ===$(i))F(i);$Q(RJ)}else F(i);JJ=$(i)}if(JJ!==null)return!0;else{var AQ=$($J);if(AQ!==null)K8(uQ,AQ.startTime-RJ);return!1}}function f7(n,WJ){switch(n){case T:case y:case k:case a:case DJ:break;default:n=k}var RJ=YJ;YJ=n;try{return WJ()}finally{YJ=RJ}}function v7(n){var WJ;switch(YJ){case T:case y:case k:WJ=k;break;default:WJ=YJ;break}var RJ=YJ;YJ=WJ;try{return n()}finally{YJ=RJ}}function ZZ(n){var WJ=YJ;return function(){var RJ=YJ;YJ=WJ;try{return n.apply(this,arguments)}finally{YJ=RJ}}}function X7(n,WJ,RJ){var JQ=t_.unstable_now(),OQ;if(typeof RJ==="object"&&RJ!==null){var lQ=RJ.delay;if(typeof lQ==="number"&&lQ>0)OQ=JQ+lQ;else OQ=JQ}else OQ=JQ;var AQ;switch(n){case T:AQ=qJ;break;case y:AQ=d;break;case DJ:AQ=zJ;break;case a:AQ=SJ;break;case k:default:AQ=UJ;break}var wZ=OQ+AQ,cJ={id:LJ++,callback:WJ,priorityLevel:n,startTime:OQ,expirationTime:wZ,sortIndex:-1};if(OQ>JQ){if(cJ.sortIndex=OQ,z($J,cJ),$(i)===null&&cJ===$($J)){if(AJ)U8();else AJ=!0;K8(uQ,OQ-JQ)}}else if(cJ.sortIndex=wZ,z(i,cJ),!QJ&&!_J)QJ=!0,$Z(cZ);return cJ}function PZ(){}function I7(){if(!QJ&&!_J)QJ=!0,$Z(cZ)}function bQ(){return $(i)}function Y7(n){n.callback=null}function j7(){return YJ}var pQ=!1,SQ=null,pZ=-1,u7=K,XZ=-1;function P7(){var n=t_.unstable_now()-XZ;if(n<u7)return!1;return!0}function qX(){}function G7(n){if(n<0||n>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}if(n>0)u7=Math.floor(1000/n);else u7=K}var K7=function(){if(SQ!==null){var n=t_.unstable_now();XZ=n;var WJ=!0,RJ=!0;try{RJ=SQ(WJ,n)}finally{if(RJ)sQ();else pQ=!1,SQ=null}}else pQ=!1},sQ;if(typeof mZ==="function")sQ=function(){mZ(K7)};else if(typeof MessageChannel<"u"){var N7=new MessageChannel,NZ=N7.port2;N7.port1.onmessage=K7,sQ=function(){NZ.postMessage(null)}}else sQ=function(){BQ(K7,0)};function $Z(n){if(SQ=n,!pQ)pQ=!0,sQ()}function K8(n,WJ){pZ=BQ(function(){n(t_.unstable_now())},WJ)}function U8(){vQ(pZ),pZ=-1}var g7=qX,U7=null;if(t_.unstable_IdlePriority=DJ,t_.unstable_ImmediatePriority=T,t_.unstable_LowPriority=a,t_.unstable_NormalPriority=k,t_.unstable_Profiling=U7,t_.unstable_UserBlockingPriority=y,t_.unstable_cancelCallback=Y7,t_.unstable_continueExecution=I7,t_.unstable_forceFrameRate=G7,t_.unstable_getCurrentPriorityLevel=j7,t_.unstable_getFirstCallbackNode=bQ,t_.unstable_next=v7,t_.unstable_pauseExecution=PZ,t_.unstable_requestPaint=g7,t_.unstable_runWithPriority=f7,t_.unstable_scheduleCallback=X7,t_.unstable_shouldYield=P7,t_.unstable_wrapCallback=ZZ,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var UM=m1((a_)=>{var F4=zQ(G8()),qQ=zQ(KM());(function(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Z=F4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y=!1;function K(J){Y=J}function z(J){if(!Y){for(var Q=arguments.length,X=Array(Q>1?Q-1:0),G=1;G<Q;G++)X[G-1]=arguments[G];F("warn",J,X)}}function $(J){if(!Y){for(var Q=arguments.length,X=Array(Q>1?Q-1:0),G=1;G<Q;G++)X[G-1]=arguments[G];F("error",J,X)}}function F(J,Q,X){{var G=Z.ReactDebugCurrentFrame,U=G.getStackAddendum();if(U!=="")Q+="%s",X=X.concat([U]);var q=X.map(function(O){return String(O)});q.unshift("Warning: "+Q),Function.prototype.apply.call(console[J],console,q)}}var B=0,j=1,b=2,T=3,y=4,k=5,a=6,DJ=7,TJ=8,bJ=9,CJ=10,g=11,KJ=12,c=13,qJ=14,d=15,UJ=16,SJ=17,zJ=18,i=19,$J=21,LJ=22,JJ=23,YJ=24,_J=25,QJ=!0,AJ=!1,BQ=!1,vQ=!1,mZ=!1,cQ=!0,$Q=!1,uQ=!0,cZ=!0,Z7=!0,f7=!0,v7=new Set,ZZ={},X7={};function PZ(J,Q){I7(J,Q),I7(J+"Capture",Q)}function I7(J,Q){if(ZZ[J])$("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",J);ZZ[J]=Q;{var X=J.toLowerCase();if(X7[X]=J,J==="onDoubleClick")X7.ondblclick=J}for(var G=0;G<Q.length;G++)v7.add(Q[G])}var bQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y7=Object.prototype.hasOwnProperty;function j7(J){{var Q=typeof Symbol==="function"&&Symbol.toStringTag,X=Q&&J[Symbol.toStringTag]||J.constructor.name||"Object";return X}}function pQ(J){try{return SQ(J),!1}catch(Q){return!0}}function SQ(J){return""+J}function pZ(J,Q){if(pQ(J))return $("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function u7(J){if(pQ(J))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",j7(J)),SQ(J)}function XZ(J,Q){if(pQ(J))return $("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function P7(J,Q){if(pQ(J))return $("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",Q,j7(J)),SQ(J)}function qX(J){if(pQ(J))return $("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",j7(J)),SQ(J)}function G7(J){if(pQ(J))return $("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.",j7(J)),SQ(J)}var K7=0,sQ=1,N7=2,NZ=3,$Z=4,K8=5,U8=6,g7=":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",U7=g7+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n=new RegExp("^["+g7+"]["+U7+"]*$"),WJ={},RJ={};function JQ(J){if(Y7.call(RJ,J))return!0;if(Y7.call(WJ,J))return!1;if(n.test(J))return RJ[J]=!0,!0;return WJ[J]=!0,$("Invalid attribute name: `%s`",J),!1}function OQ(J,Q,X){if(Q!==null)return Q.type===K7;if(X)return!1;if(J.length>2&&(J[0]==="o"||J[0]==="O")&&(J[1]==="n"||J[1]==="N"))return!0;return!1}function lQ(J,Q,X,G){if(X!==null&&X.type===K7)return!1;switch(typeof Q){case"function":case"symbol":return!0;case"boolean":{if(G)return!1;if(X!==null)return!X.acceptsBooleans;else{var U=J.toLowerCase().slice(0,5);return U!=="data-"&&U!=="aria-"}}default:return!1}}function AQ(J,Q,X,G){if(Q===null||typeof Q>"u")return!0;if(lQ(J,Q,X,G))return!0;if(G)return!1;if(X!==null)switch(X.type){case NZ:return!Q;case $Z:return Q===!1;case K8:return isNaN(Q);case U8:return isNaN(Q)||Q<1}return!1}function wZ(J){return nJ.hasOwnProperty(J)?nJ[J]:null}function cJ(J,Q,X,G,U,q,O){this.acceptsBooleans=Q===N7||Q===NZ||Q===$Z,this.attributeName=G,this.attributeNamespace=U,this.mustUseProperty=X,this.propertyName=J,this.type=Q,this.sanitizeURL=q,this.removeEmptyString=O}var nJ={},_8=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];_8.forEach(function(J){nJ[J]=new cJ(J,K7,!1,J,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(J){var Q=J[0],X=J[1];nJ[Q]=new cJ(Q,sQ,!1,X,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(J){nJ[J]=new cJ(J,N7,!1,J.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(J){nJ[J]=new cJ(J,N7,!1,J,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(J){nJ[J]=new cJ(J,NZ,!1,J.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(J){nJ[J]=new cJ(J,NZ,!0,J,null,!1,!1)}),["capture","download"].forEach(function(J){nJ[J]=new cJ(J,$Z,!1,J,null,!1,!1)}),["cols","rows","size","span"].forEach(function(J){nJ[J]=new cJ(J,U8,!1,J,null,!1,!1)}),["rowSpan","start"].forEach(function(J){nJ[J]=new cJ(J,K8,!1,J.toLowerCase(),null,!1,!1)});var w7=/[\-\:]([a-z])/g,zX=function(J){return J[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(J){var Q=J.replace(w7,zX);nJ[Q]=new cJ(Q,sQ,!1,J,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(J){var Q=J.replace(w7,zX);nJ[Q]=new cJ(Q,sQ,!1,J,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(J){var Q=J.replace(w7,zX);nJ[Q]=new cJ(Q,sQ,!1,J,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(J){nJ[J]=new cJ(J,sQ,!1,J.toLowerCase(),null,!1,!1)});var U6="xlinkHref";nJ[U6]=new cJ("xlinkHref",sQ,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(J){nJ[J]=new cJ(J,sQ,!1,J.toLowerCase(),null,!0,!0)});var m9=/^[\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,c9=!1;function tX(J){if(!c9&&m9.test(J))c9=!0,$("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(J))}function q8(J,Q,X,G){if(G.mustUseProperty){var U=G.propertyName;return J[U]}else{if(pZ(X,Q),G.sanitizeURL)tX(""+X);var q=G.attributeName,O=null;if(G.type===$Z){if(J.hasAttribute(q)){var L=J.getAttribute(q);if(L==="")return!0;if(AQ(Q,X,G,!1))return L;if(L===""+X)return X;return L}}else if(J.hasAttribute(q)){if(AQ(Q,X,G,!1))return J.getAttribute(q);if(G.type===NZ)return X;O=J.getAttribute(q)}if(AQ(Q,X,G,!1))return O===null?X:O;else if(O===""+X)return X;else return O}}function $X(J,Q,X,G){{if(!JQ(Q))return;if(!J.hasAttribute(Q))return X===void 0?void 0:null;var U=J.getAttribute(Q);if(pZ(X,Q),U===""+X)return X;return U}}function OX(J,Q,X,G){var U=wZ(Q);if(OQ(Q,U,G))return;if(AQ(Q,X,U,G))X=null;if(G||U===null){if(JQ(Q)){var q=Q;if(X===null)J.removeAttribute(q);else pZ(X,Q),J.setAttribute(q,""+X)}return}var O=U.mustUseProperty;if(O){var L=U.propertyName;if(X===null){var W=U.type;J[L]=W===NZ?!1:""}else J[L]=X;return}var{attributeName:H,attributeNamespace:M}=U;if(X===null)J.removeAttribute(H);else{var N=U.type,P;if(N===NZ||N===$Z&&X===!0)P="";else if(pZ(X,H),P=""+X,U.sanitizeURL)tX(P.toString());if(M)J.setAttributeNS(M,H,P);else J.setAttribute(H,P)}}var d7=Symbol.for("react.element"),m7=Symbol.for("react.portal"),z8=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),FJ=Symbol.for("react.context"),HJ=Symbol.for("react.forward_ref"),lJ=Symbol.for("react.suspense"),hJ=Symbol.for("react.suspense_list"),kJ=Symbol.for("react.memo"),oJ=Symbol.for("react.lazy"),IQ=Symbol.for("react.scope"),VQ=Symbol.for("react.debug_trace_mode"),OZ=Symbol.for("react.offscreen"),$8=Symbol.for("react.legacy_hidden"),c7=Symbol.for("react.cache"),YZ=Symbol.for("react.tracing_marker"),LX=Symbol.iterator,q6="@@iterator";function p7(J){if(J===null||typeof J!=="object")return null;var Q=LX&&J[LX]||J[q6];if(typeof Q==="function")return Q;return null}var uJ=Object.assign,aX=0,WX,z6,$6,O6,L6,W6,D6;function H6(){}H6.__reactDisabledLog=!0;function I4(){{if(aX===0){WX=console.log,z6=console.info,$6=console.warn,O6=console.error,L6=console.group,W6=console.groupCollapsed,D6=console.groupEnd;var J={configurable:!0,enumerable:!0,value:H6,writable:!0};Object.defineProperties(console,{info:J,log:J,warn:J,error:J,group:J,groupCollapsed:J,groupEnd:J})}aX++}}function DG(){{if(aX--,aX===0){var J={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:uJ({},J,{value:WX}),info:uJ({},J,{value:z6}),warn:uJ({},J,{value:$6}),error:uJ({},J,{value:O6}),group:uJ({},J,{value:L6}),groupCollapsed:uJ({},J,{value:W6}),groupEnd:uJ({},J,{value:D6})})}if(aX<0)$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var M6=Z.ReactCurrentDispatcher,eX;function V7(J,Q,X){{if(eX===void 0)try{throw Error()}catch(U){var G=U.stack.trim().match(/\n( *(at )?)/);eX=G&&G[1]||""}return`
|
|
34
|
+
`+eX+J}}var DX=!1,HX;{var p9=typeof WeakMap==="function"?WeakMap:Map;HX=new p9}function F6(J,Q){if(!J||DX)return"";{var X=HX.get(J);if(X!==void 0)return X}var G;DX=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var q;q=M6.current,M6.current=null,I4();try{if(Q){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(_){G=_}Reflect.construct(J,[],O)}else{try{O.call()}catch(_){G=_}J.call(O.prototype)}}else{try{throw Error()}catch(_){G=_}J()}}catch(_){if(_&&G&&typeof _.stack==="string"){var L=_.stack.split(`
|
|
35
35
|
`),W=G.stack.split(`
|
|
36
36
|
`),H=L.length-1,M=W.length-1;while(H>=1&&M>=0&&L[H]!==W[M])M--;for(;H>=1&&M>=0;H--,M--)if(L[H]!==W[M]){if(H!==1||M!==1)do if(H--,M--,M<0||L[H]!==W[M]){var N=`
|
|
37
|
-
`+L[H].replace(" at new "," at ");if(J.displayName&&N.includes("<anonymous>"))N=N.replace("<anonymous>",J.displayName);if(typeof J==="function")HX.set(J,N);return N}while(H>=1&&M>=0);break}}}finally{DX=!1,M6.current=q,DG(),Error.prepareStackTrace=U}var P=J?J.displayName||J.name:"",S=P?
|
|
37
|
+
`+L[H].replace(" at new "," at ");if(J.displayName&&N.includes("<anonymous>"))N=N.replace("<anonymous>",J.displayName);if(typeof J==="function")HX.set(J,N);return N}while(H>=1&&M>=0);break}}}finally{DX=!1,M6.current=q,DG(),Error.prepareStackTrace=U}var P=J?J.displayName||J.name:"",S=P?V7(P):"";if(typeof J==="function")HX.set(J,S);return S}function j4(J,Q,X){return F6(J,!0)}function B6(J,Q,X){return F6(J,!1)}function HG(J){var Q=J.prototype;return!!(Q&&Q.isReactComponent)}function MX(J,Q,X){if(J==null)return"";if(typeof J==="function")return F6(J,HG(J));if(typeof J==="string")return V7(J);switch(J){case lJ:return V7("Suspense");case hJ:return V7("SuspenseList")}if(typeof J==="object")switch(J.$$typeof){case HJ:return B6(J.render);case kJ:return MX(J.type,Q,X);case oJ:{var G=J,U=G._payload,q=G._init;try{return MX(q(U),Q,X)}catch(O){}}}return""}function P4(J){var Q=J._debugOwner?J._debugOwner.type:null,X=J._debugSource;switch(J.tag){case k:return V7(J.type);case UJ:return V7("Lazy");case c:return V7("Suspense");case i:return V7("SuspenseList");case B:case b:case d:return B6(J.type);case g:return B6(J.type.render);case j:return j4(J.type);default:return""}}function A6(J){try{var Q="",X=J;do Q+=P4(X),X=X.return;while(X);return Q}catch(G){return`
|
|
38
38
|
Error generating stack: `+G.message+`
|
|
39
|
-
`+G.stack}}function s9(J,Q,X){var G=J.displayName;if(G)return G;var U=Q.displayName||Q.name||"";return U!==""?X+"("+U+")":X}function N4(J){return J.displayName||"Context"}function sJ(J){if(J==null)return null;if(typeof J.tag==="number")$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;switch(J){case z8:return"Fragment";case m7:return"Portal";case v:return"Profiler";case I:return"StrictMode";case lJ:return"Suspense";case hJ:return"SuspenseList"}if(typeof J==="object")switch(J.$$typeof){case FJ:var Q=J;return N4(Q)+".Consumer";case l:var X=J;return N4(X._context)+".Provider";case HJ:return s9(J,J.render,"ForwardRef");case kJ:var G=J.displayName||null;if(G!==null)return G;return sJ(J.type)||"Memo";case oJ:{var U=J,q=U._payload,O=U._init;try{return sJ(O(q))}catch(L){return null}}}return null}function w4(J,Q,X){var G=Q.displayName||Q.name||"";return J.displayName||(G!==""?X+"("+G+")":X)}function I6(J){return J.displayName||"Context"}function EJ(J){var{tag:Q,type:X}=J;switch(Q){case YJ:return"Cache";case bJ:var G=X;return I6(G)+".Consumer";case CJ:var U=X;return I6(U._context)+".Provider";case zJ:return"DehydratedFragment";case g:return w4(X,X.render,"ForwardRef");case DJ:return"Fragment";case k:return X;case y:return"Portal";case
|
|
39
|
+
`+G.stack}}function s9(J,Q,X){var G=J.displayName;if(G)return G;var U=Q.displayName||Q.name||"";return U!==""?X+"("+U+")":X}function N4(J){return J.displayName||"Context"}function sJ(J){if(J==null)return null;if(typeof J.tag==="number")$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;switch(J){case z8:return"Fragment";case m7:return"Portal";case v:return"Profiler";case I:return"StrictMode";case lJ:return"Suspense";case hJ:return"SuspenseList"}if(typeof J==="object")switch(J.$$typeof){case FJ:var Q=J;return N4(Q)+".Consumer";case l:var X=J;return N4(X._context)+".Provider";case HJ:return s9(J,J.render,"ForwardRef");case kJ:var G=J.displayName||null;if(G!==null)return G;return sJ(J.type)||"Memo";case oJ:{var U=J,q=U._payload,O=U._init;try{return sJ(O(q))}catch(L){return null}}}return null}function w4(J,Q,X){var G=Q.displayName||Q.name||"";return J.displayName||(G!==""?X+"("+G+")":X)}function I6(J){return J.displayName||"Context"}function EJ(J){var{tag:Q,type:X}=J;switch(Q){case YJ:return"Cache";case bJ:var G=X;return I6(G)+".Consumer";case CJ:var U=X;return I6(U._context)+".Provider";case zJ:return"DehydratedFragment";case g:return w4(X,X.render,"ForwardRef");case DJ:return"Fragment";case k:return X;case y:return"Portal";case T:return"Root";case a:return"Text";case UJ:return sJ(X);case TJ:if(X===I)return"StrictMode";return"Mode";case LJ:return"Offscreen";case KJ:return"Profiler";case $J:return"Scope";case c:return"Suspense";case i:return"SuspenseList";case _J:return"TracingMarker";case j:case B:case SJ:case b:case qJ:case d:if(typeof X==="function")return X.displayName||X.name||null;if(typeof X==="string")return X;break}return null}var V4=Z.ReactDebugCurrentFrame,VZ=null,J9=!1;function FX(){{if(VZ===null)return null;var J=VZ._debugOwner;if(J!==null&&typeof J<"u")return EJ(J)}return null}function R4(){{if(VZ===null)return"";return A6(VZ)}}function GZ(){V4.getCurrentStack=null,VZ=null,J9=!1}function _Q(J){V4.getCurrentStack=J===null?null:R4,VZ=J,J9=!1}function S4(){return VZ}function q7(J){J9=J}function sZ(J){return""+J}function O8(J){switch(typeof J){case"boolean":case"number":case"string":case"undefined":return J;case"object":return G7(J),J;default:return""}}var MG={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function l9(J,Q){{if(!(MG[Q.type]||Q.onChange||Q.onInput||Q.readOnly||Q.disabled||Q.value==null))$("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`.");if(!(Q.onChange||Q.readOnly||Q.disabled||Q.checked==null))$("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 Q9(J){var{type:Q,nodeName:X}=J;return X&&X.toLowerCase()==="input"&&(Q==="checkbox"||Q==="radio")}function _4(J){return J._valueTracker}function BX(J){J._valueTracker=null}function T4(J){var Q="";if(!J)return Q;if(Q9(J))Q=J.checked?"true":"false";else Q=J.value;return Q}function k4(J){var Q=Q9(J)?"checked":"value",X=Object.getOwnPropertyDescriptor(J.constructor.prototype,Q);G7(J[Q]);var G=""+J[Q];if(J.hasOwnProperty(Q)||typeof X>"u"||typeof X.get!=="function"||typeof X.set!=="function")return;var{get:U,set:q}=X;Object.defineProperty(J,Q,{configurable:!0,get:function(){return U.call(this)},set:function(L){G7(L),G=""+L,q.call(this,L)}}),Object.defineProperty(J,Q,{enumerable:X.enumerable});var O={getValue:function(){return G},setValue:function(L){G7(L),G=""+L},stopTracking:function(){BX(J),delete J[Q]}};return O}function T8(J){if(_4(J))return;J._valueTracker=k4(J)}function i9(J){if(!J)return!1;var Q=_4(J);if(!Q)return!0;var X=Q.getValue(),G=T4(J);if(G!==X)return Q.setValue(G),!0;return!1}function AX(J){if(J=J||(typeof document<"u"?document:void 0),typeof J>"u")return null;try{return J.activeElement||J.body}catch(Q){return J.body}}var r9=!1,E4=!1,C4=!1,x4=!1;function h4(J){var Q=J.type==="checkbox"||J.type==="radio";return Q?J.checked!=null:J.value!=null}function D(J,Q){var X=J,G=Q.checked,U=uJ({},Q,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:G!=null?G:X._wrapperState.initialChecked});return U}function A(J,Q){{if(l9("input",Q),Q.checked!==void 0&&Q.defaultChecked!==void 0&&!E4)$("%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",FX()||"A component",Q.type),E4=!0;if(Q.value!==void 0&&Q.defaultValue!==void 0&&!r9)$("%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",FX()||"A component",Q.type),r9=!0}var X=J,G=Q.defaultValue==null?"":Q.defaultValue;X._wrapperState={initialChecked:Q.checked!=null?Q.checked:Q.defaultChecked,initialValue:O8(Q.value!=null?Q.value:G),controlled:h4(Q)}}function R(J,Q){var X=J,G=Q.checked;if(G!=null)OX(X,"checked",G,!1)}function C(J,Q){var X=J;{var G=h4(Q);if(!X._wrapperState.controlled&&G&&!x4)$("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"),x4=!0;if(X._wrapperState.controlled&&!G&&!C4)$("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"),C4=!0}R(J,Q);var U=O8(Q.value),q=Q.type;if(U!=null){if(q==="number"){if(U===0&&X.value===""||X.value!=U)X.value=sZ(U)}else if(X.value!==sZ(U))X.value=sZ(U)}else if(q==="submit"||q==="reset"){X.removeAttribute("value");return}if(Q.hasOwnProperty("value"))PJ(X,Q.type,U);else if(Q.hasOwnProperty("defaultValue"))PJ(X,Q.type,O8(Q.defaultValue));if(Q.checked==null&&Q.defaultChecked!=null)X.defaultChecked=!!Q.defaultChecked}function m(J,Q,X){var G=J;if(Q.hasOwnProperty("value")||Q.hasOwnProperty("defaultValue")){var U=Q.type,q=U==="submit"||U==="reset";if(q&&(Q.value===void 0||Q.value===null))return;var O=sZ(G._wrapperState.initialValue);if(!X){if(O!==G.value)G.value=O}G.defaultValue=O}var L=G.name;if(L!=="")G.name="";if(G.defaultChecked=!G.defaultChecked,G.defaultChecked=!!G._wrapperState.initialChecked,L!=="")G.name=L}function IJ(J,Q){var X=J;C(X,Q),XJ(X,Q)}function XJ(J,Q){var X=Q.name;if(Q.type==="radio"&&X!=null){var G=J;while(G.parentNode)G=G.parentNode;pZ(X,"name");var U=G.querySelectorAll("input[name="+JSON.stringify(""+X)+'][type="radio"]');for(var q=0;q<U.length;q++){var O=U[q];if(O===J||O.form!==J.form)continue;var L=jY(O);if(!L)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");i9(O),C(O,L)}}}function PJ(J,Q,X){if(Q!=="number"||AX(J.ownerDocument)!==J){if(X==null)J.defaultValue=sZ(J._wrapperState.initialValue);else if(J.defaultValue!==sZ(X))J.defaultValue=sZ(X)}}var gJ=!1,XQ=!1,LQ=!1;function WQ(J,Q){{if(Q.value==null){if(typeof Q.children==="object"&&Q.children!==null)F4.Children.forEach(Q.children,function(X){if(X==null)return;if(typeof X==="string"||typeof X==="number")return;if(!XQ)XQ=!0,$("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")});else if(Q.dangerouslySetInnerHTML!=null){if(!LQ)LQ=!0,$("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")}}if(Q.selected!=null&&!gJ)$("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gJ=!0}}function jQ(J,Q){if(Q.value!=null)J.setAttribute("value",sZ(O8(Q.value)))}var EQ=Array.isArray;function tJ(J){return EQ(J)}var Z9=!1;function n9(){var J=FX();if(J)return`
|
|
40
40
|
|
|
41
|
-
Check the render method of \``+J+"`.";return""}var j6=["value","defaultValue"];function FG(J){{l9("select",J);for(var Q=0;Q<j6.length;Q++){var X=j6[Q];if(J[X]==null)continue;var G=tJ(J[X]);if(J.multiple&&!G)$("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",X,r9());else if(!J.multiple&&G)$("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",X,r9())}}}function k8(J,Q,X,G){var U=J.options;if(Q){var q=X,O={};for(var L=0;L<q.length;L++)O["$"+q[L]]=!0;for(var W=0;W<U.length;W++){var H=O.hasOwnProperty("$"+U[W].value);if(U[W].selected!==H)U[W].selected=H;if(H&&G)U[W].defaultSelected=!0}}else{var M=sZ(O8(X)),N=null;for(var P=0;P<U.length;P++){if(U[P].value===M){if(U[P].selected=!0,G)U[P].defaultSelected=!0;return}if(N===null&&!U[P].disabled)N=U[P]}if(N!==null)N.selected=!0}}function P6(J,Q){return uJ({},Q,{value:void 0})}function N6(J,Q){var X=J;if(FG(Q),X._wrapperState={wasMultiple:!!Q.multiple},Q.value!==void 0&&Q.defaultValue!==void 0&&!Z9)$("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"),Z9=!0}function BG(J,Q){var X=J;X.multiple=!!Q.multiple;var G=Q.value;if(G!=null)k8(X,!!Q.multiple,G,!1);else if(Q.defaultValue!=null)k8(X,!!Q.multiple,Q.defaultValue,!0)}function VM(J,Q){var X=J,G=X._wrapperState.wasMultiple;X._wrapperState.wasMultiple=!!Q.multiple;var U=Q.value;if(U!=null)k8(X,!!Q.multiple,U,!1);else if(G!==!!Q.multiple)if(Q.defaultValue!=null)k8(X,!!Q.multiple,Q.defaultValue,!0);else k8(X,!!Q.multiple,Q.multiple?[]:"",!1)}function SM(J,Q){var X=J,G=Q.value;if(G!=null)k8(X,!!Q.multiple,G,!1)}var L$=!1;function AG(J,Q){var X=J;if(Q.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var G=uJ({},Q,{value:void 0,defaultValue:void 0,children:sZ(X._wrapperState.initialValue)});return G}function W$(J,Q){var X=J;if(l9("textarea",Q),Q.value!==void 0&&Q.defaultValue!==void 0&&!L$)$("%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",FX()||"A component"),L$=!0;var G=Q.value;if(G==null){var{children:U,defaultValue:q}=Q;if(U!=null){$("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(q!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(tJ(U)){if(U.length>1)throw Error("<textarea> can only have at most one child.");U=U[0]}q=U}}if(q==null)q="";G=q}X._wrapperState={initialValue:O8(G)}}function D$(J,Q){var X=J,G=O8(Q.value),U=O8(Q.defaultValue);if(G!=null){var q=sZ(G);if(q!==X.value)X.value=q;if(Q.defaultValue==null&&X.defaultValue!==q)X.defaultValue=q}if(U!=null)X.defaultValue=sZ(U)}function H$(J,Q){var X=J,G=X.textContent;if(G===X._wrapperState.initialValue){if(G!==""&&G!==null)X.value=G}}function TM(J,Q){D$(J,Q)}var E8="http://www.w3.org/1999/xhtml",_M="http://www.w3.org/1998/Math/MathML",IG="http://www.w3.org/2000/svg";function jG(J){switch(J){case"svg":return IG;case"math":return _M;default:return E8}}function PG(J,Q){if(J==null||J===E8)return jG(Q);if(J===IG&&Q==="foreignObject")return E8;return J}var kM=function(J){if(typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction)return function(Q,X,G,U){MSApp.execUnsafeLocalFunction(function(){return J(Q,X,G,U)})};else return J},b4,M$=kM(function(J,Q){if(J.namespaceURI===IG){if(!("innerHTML"in J)){b4=b4||document.createElement("div"),b4.innerHTML="<svg>"+Q.valueOf().toString()+"</svg>";var X=b4.firstChild;while(J.firstChild)J.removeChild(J.firstChild);while(X.firstChild)J.appendChild(X.firstChild);return}}J.innerHTML=Q}),lZ=1,C8=3,gQ=8,x8=9,NG=11,y4=function(J,Q){if(Q){var X=J.firstChild;if(X&&X===J.lastChild&&X.nodeType===C8){X.nodeValue=Q;return}}J.textContent=Q},EM={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"]},w6={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 CM(J,Q){return J+Q.charAt(0).toUpperCase()+Q.substring(1)}var xM=["Webkit","ms","Moz","O"];Object.keys(w6).forEach(function(J){xM.forEach(function(Q){w6[CM(Q,J)]=w6[J]})});function wG(J,Q,X){var G=Q==null||typeof Q==="boolean"||Q==="";if(G)return"";if(!X&&typeof Q==="number"&&Q!==0&&!(w6.hasOwnProperty(J)&&w6[J]))return Q+"px";return P7(Q,J),(""+Q).trim()}var hM=/([A-Z])/g,bM=/^ms-/;function yM(J){return J.replace(hM,"-$1").toLowerCase().replace(bM,"-ms-")}var F$=function(){};{var fM=/^(?:webkit|moz|o)[A-Z]/,vM=/^-ms-/,uM=/-(.)/g,B$=/;\s*$/,o9={},RG={},A$=!1,I$=!1,gM=function(J){return J.replace(uM,function(Q,X){return X.toUpperCase()})},dM=function(J){if(o9.hasOwnProperty(J)&&o9[J])return;o9[J]=!0,$("Unsupported style property %s. Did you mean %s?",J,gM(J.replace(vM,"ms-")))},mM=function(J){if(o9.hasOwnProperty(J)&&o9[J])return;o9[J]=!0,$("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))},cM=function(J,Q){if(RG.hasOwnProperty(Q)&&RG[Q])return;RG[Q]=!0,$(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,Q.replace(B$,""))},pM=function(J,Q){if(A$)return;A$=!0,$("`NaN` is an invalid value for the `%s` css style property.",J)},sM=function(J,Q){if(I$)return;I$=!0,$("`Infinity` is an invalid value for the `%s` css style property.",J)};F$=function(J,Q){if(J.indexOf("-")>-1)dM(J);else if(fM.test(J))mM(J);else if(B$.test(Q))cM(J,Q);if(typeof Q==="number"){if(isNaN(Q))pM(J,Q);else if(!isFinite(Q))sM(J,Q)}}}var lM=F$;function iM(J){{var Q="",X="";for(var G in J){if(!J.hasOwnProperty(G))continue;var U=J[G];if(U!=null){var q=G.indexOf("--")===0;Q+=X+(q?G:yM(G))+":",Q+=wG(G,U,q),X=";"}}return Q||null}}function j$(J,Q){var X=J.style;for(var G in Q){if(!Q.hasOwnProperty(G))continue;var U=G.indexOf("--")===0;if(!U)lM(G,Q[G]);var q=wG(G,Q[G],U);if(G==="float")G="cssFloat";if(U)X.setProperty(G,q);else X[G]=q}}function nM(J){return J==null||typeof J==="boolean"||J===""}function P$(J){var Q={};for(var X in J){var G=EM[X]||[X];for(var U=0;U<G.length;U++)Q[G[U]]=X}return Q}function rM(J,Q){{if(!Q)return;var X=P$(J),G=P$(Q),U={};for(var q in X){var O=X[q],L=G[q];if(L&&O!==L){var W=O+","+L;if(U[W])continue;U[W]=!0,$("%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.",nM(J[O])?"Removing":"Updating",O,L)}}}}var oM={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},tM=uJ({menuitem:!0},oM),aM="__html";function VG(J,Q){if(!Q)return;if(tM[J]){if(Q.children!=null||Q.dangerouslySetInnerHTML!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.")}if(Q.dangerouslySetInnerHTML!=null){if(Q.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Q.dangerouslySetInnerHTML!=="object"||!(aM in Q.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!Q.suppressContentEditableWarning&&Q.contentEditable&&Q.children!=null)$("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.");if(Q.style!=null&&typeof Q.style!=="object")throw 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 X9(J,Q){if(J.indexOf("-")===-1)return typeof Q.is==="string";switch(J){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 f4={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"},N$={"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},t9={},eM=new RegExp("^(aria)-["+U7+"]*$"),JF=new RegExp("^(aria)[A-Z]["+U7+"]*$");function QF(J,Q){{if(Y7.call(t9,Q)&&t9[Q])return!0;if(JF.test(Q)){var X="aria-"+Q.slice(4).toLowerCase(),G=N$.hasOwnProperty(X)?X:null;if(G==null)return $("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Q),t9[Q]=!0,!0;if(Q!==G)return $("Invalid ARIA attribute `%s`. Did you mean `%s`?",Q,G),t9[Q]=!0,!0}if(eM.test(Q)){var U=Q.toLowerCase(),q=N$.hasOwnProperty(U)?U:null;if(q==null)return t9[Q]=!0,!1;if(Q!==q)return $("Unknown ARIA attribute `%s`. Did you mean `%s`?",Q,q),t9[Q]=!0,!0}}return!0}function ZF(J,Q){{var X=[];for(var G in Q){var U=QF(J,G);if(!U)X.push(G)}var q=X.map(function(O){return"`"+O+"`"}).join(", ");if(X.length===1)$("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,J);else if(X.length>1)$("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,J)}}function XF(J,Q){if(X9(J,Q))return;ZF(J,Q)}var w$=!1;function YF(J,Q){{if(J!=="input"&&J!=="textarea"&&J!=="select")return;if(Q!=null&&Q.value===null&&!w$)if(w$=!0,J==="select"&&Q.multiple)$("`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.",J);else $("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",J)}}var R$=function(){};{var EZ={},V$=/^on./,GF=/^on[^A-Z]/,KF=new RegExp("^(aria)-["+U7+"]*$"),UF=new RegExp("^(aria)[A-Z]["+U7+"]*$");R$=function(J,Q,X,G){if(Y7.call(EZ,Q)&&EZ[Q])return!0;var U=Q.toLowerCase();if(U==="onfocusin"||U==="onfocusout")return $("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."),EZ[Q]=!0,!0;if(G!=null){var{registrationNameDependencies:q,possibleRegistrationNames:O}=G;if(q.hasOwnProperty(Q))return!0;var L=O.hasOwnProperty(U)?O[U]:null;if(L!=null)return $("Invalid event handler property `%s`. Did you mean `%s`?",Q,L),EZ[Q]=!0,!0;if(V$.test(Q))return $("Unknown event handler property `%s`. It will be ignored.",Q),EZ[Q]=!0,!0}else if(V$.test(Q)){if(GF.test(Q))$("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Q);return EZ[Q]=!0,!0}if(KF.test(Q)||UF.test(Q))return!0;if(U==="innerhtml")return $("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),EZ[Q]=!0,!0;if(U==="aria")return $("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),EZ[Q]=!0,!0;if(U==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return $("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),EZ[Q]=!0,!0;if(typeof X==="number"&&isNaN(X))return $("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Q),EZ[Q]=!0,!0;var W=wZ(Q),H=W!==null&&W.type===K7;if(f4.hasOwnProperty(U)){var M=f4[U];if(M!==Q)return $("Invalid DOM property `%s`. Did you mean `%s`?",Q,M),EZ[Q]=!0,!0}else if(!H&&Q!==U)return $("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.",Q,U),EZ[Q]=!0,!0;if(typeof X==="boolean"&&lQ(Q,X,W,!1)){if(X)$('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()}.',X,Q,Q,X,Q);else $('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.',X,Q,Q,X,Q,Q,Q);return EZ[Q]=!0,!0}if(H)return!0;if(lQ(Q,X,W,!1))return EZ[Q]=!0,!1;if((X==="false"||X==="true")&&W!==null&&W.type===NZ)return $("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",X,Q,X==="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".',Q,X),EZ[Q]=!0,!0;return!0}}var qF=function(J,Q,X){{var G=[];for(var U in Q){var q=R$(J,U,Q[U],X);if(!q)G.push(U)}var O=G.map(function(L){return"`"+L+"`"}).join(", ");if(G.length===1)$("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 ",O,J);else if(G.length>1)$("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 ",O,J)}};function zF(J,Q,X){if(X9(J,Q))return;qF(J,Q,X)}var S$=1,SG=2,R6=4,$F=S$|SG|R6,V6=null;function OF(J){if(V6!==null)$("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.");V6=J}function LF(){if(V6===null)$("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.");V6=null}function WF(J){return J===V6}function TG(J){var Q=J.target||J.srcElement||window;if(Q.correspondingUseElement)Q=Q.correspondingUseElement;return Q.nodeType===C8?Q.parentNode:Q}var _G=null,a9=null,e9=null;function T$(J){var Q=SX(J);if(!Q)return;if(typeof _G!=="function")throw 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 X=Q.stateNode;if(X){var G=jY(X);_G(Q.stateNode,Q.type,G)}}function DF(J){_G=J}function _$(J){if(a9)if(e9)e9.push(J);else e9=[J];else a9=J}function HF(){return a9!==null||e9!==null}function k$(){if(!a9)return;var J=a9,Q=e9;if(a9=null,e9=null,T$(J),Q)for(var X=0;X<Q.length;X++)T$(Q[X])}var E$=function(J,Q){return J(Q)},C$=function(){},kG=!1;function MF(){var J=HF();if(J)C$(),k$()}function x$(J,Q,X){if(kG)return J(Q,X);kG=!0;try{return E$(J,Q,X)}finally{kG=!1,MF()}}function FF(J,Q,X){E$=J,C$=X}function BF(J){return J==="button"||J==="input"||J==="select"||J==="textarea"}function AF(J,Q,X){switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(X.disabled&&BF(Q));default:return!1}}function S6(J,Q){var X=J.stateNode;if(X===null)return null;var G=jY(X);if(G===null)return null;var U=G[Q];if(AF(Q,J.type,G))return null;if(U&&typeof U!=="function")throw Error("Expected `"+Q+"` listener to be a function, instead got a value of `"+typeof U+"` type.");return U}var EG=!1;if(bQ)try{var T6={};Object.defineProperty(T6,"passive",{get:function(){EG=!0}}),window.addEventListener("test",T6,T6),window.removeEventListener("test",T6,T6)}catch(J){EG=!1}function h$(J,Q,X,G,U,q,O,L,W){var H=Array.prototype.slice.call(arguments,3);try{Q.apply(X,H)}catch(M){this.onError(M)}}var b$=h$;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var CG=document.createElement("react");b$=function(Q,X,G,U,q,O,L,W,H){if(typeof document>"u"||document===null)throw 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 M=document.createEvent("Event"),N=!1,P=!0,S=window.event,T=Object.getOwnPropertyDescriptor(window,"event");function E(){if(CG.removeEventListener(x,OJ,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=S}var s=Array.prototype.slice.call(arguments,3);function OJ(){N=!0,E(),X.apply(G,s),P=!1}var GJ,yJ=!1,fJ=!1;function w(R){if(GJ=R.error,yJ=!0,GJ===null&&R.colno===0&&R.lineno===0)fJ=!0;if(R.defaultPrevented){if(GJ!=null&&typeof GJ==="object")try{GJ._suppressLogging=!0}catch(u){}}}var x="react-"+(Q?Q:"invokeguardedcallback");if(window.addEventListener("error",w),CG.addEventListener(x,OJ,!1),M.initEvent(x,!1,!1),CG.dispatchEvent(M),T)Object.defineProperty(window,"event",T);if(N&&P){if(!yJ)GJ=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.`);else if(fJ)GJ=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.");this.onError(GJ)}if(window.removeEventListener("error",w),!N)return E(),h$.apply(this,arguments)}}var IF=b$,J1=!1,v4=null,u4=!1,xG=null,jF={onError:function(J){J1=!0,v4=J}};function hG(J,Q,X,G,U,q,O,L,W){J1=!1,v4=null,IF.apply(jF,arguments)}function PF(J,Q,X,G,U,q,O,L,W){if(hG.apply(this,arguments),J1){var H=bG();if(!u4)u4=!0,xG=H}}function NF(){if(u4){var J=xG;throw u4=!1,xG=null,J}}function wF(){return J1}function bG(){if(J1){var J=v4;return J1=!1,v4=null,J}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Q1(J){return J._reactInternals}function RF(J){return J._reactInternals!==void 0}function VF(J,Q){J._reactInternals=Q}var BJ=0,Z1=1,dQ=2,pJ=4,Y9=16,_6=32,yG=64,aJ=128,h8=256,IX=512,G9=1024,s7=2048,b8=4096,K9=8192,g4=16384,SF=s7|pJ|yG|IX|G9|g4,TF=32767,k6=32768,CZ=65536,fG=131072,y$=1048576,vG=2097152,U9=4194304,uG=8388608,y8=16777216,d4=33554432,gG=pJ|G9|0,dG=dQ|pJ|Y9|_6|IX|b8|K9,E6=pJ|yG|IX|K9,X1=s7|Y9,f8=U9|uG|vG,_F=Z.ReactCurrentOwner;function q9(J){var Q=J,X=J;if(!J.alternate){var G=Q;do{if(Q=G,(Q.flags&(dQ|b8))!==BJ)X=Q.return;G=Q.return}while(G)}else while(Q.return)Q=Q.return;if(Q.tag===_)return X;return null}function f$(J){if(J.tag===c){var Q=J.memoizedState;if(Q===null){var X=J.alternate;if(X!==null)Q=X.memoizedState}if(Q!==null)return Q.dehydrated}return null}function v$(J){return J.tag===_?J.stateNode.containerInfo:null}function kF(J){return q9(J)===J}function EF(J){{var Q=_F.current;if(Q!==null&&Q.tag===j){var X=Q,G=X.stateNode;if(!G._warnedAboutRefsInRender)$("%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.",EJ(X)||"A component");G._warnedAboutRefsInRender=!0}}var U=Q1(J);if(!U)return!1;return q9(U)===U}function u$(J){if(q9(J)!==J)throw Error("Unable to find node on an unmounted component.")}function g$(J){var Q=J.alternate;if(!Q){var X=q9(J);if(X===null)throw Error("Unable to find node on an unmounted component.");if(X!==J)return null;return J}var G=J,U=Q;while(!0){var q=G.return;if(q===null)break;var O=q.alternate;if(O===null){var L=q.return;if(L!==null){G=U=L;continue}break}if(q.child===O.child){var W=q.child;while(W){if(W===G)return u$(q),J;if(W===U)return u$(q),Q;W=W.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==U.return)G=q,U=O;else{var H=!1,M=q.child;while(M){if(M===G){H=!0,G=q,U=O;break}if(M===U){H=!0,U=q,G=O;break}M=M.sibling}if(!H){M=O.child;while(M){if(M===G){H=!0,G=O,U=q;break}if(M===U){H=!0,U=O,G=q;break}M=M.sibling}if(!H)throw 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(G.alternate!==U)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(G.tag!==_)throw Error("Unable to find node on an unmounted component.");if(G.stateNode.current===G)return J;return Q}function d$(J){var Q=g$(J);return Q!==null?m$(Q):null}function m$(J){if(J.tag===k||J.tag===a)return J;var Q=J.child;while(Q!==null){var X=m$(Q);if(X!==null)return X;Q=Q.sibling}return null}function CF(J){var Q=g$(J);return Q!==null?c$(Q):null}function c$(J){if(J.tag===k||J.tag===a)return J;var Q=J.child;while(Q!==null){if(Q.tag!==y){var X=c$(Q);if(X!==null)return X}Q=Q.sibling}return null}var p$=qQ.unstable_scheduleCallback,xF=qQ.unstable_cancelCallback,hF=qQ.unstable_shouldYield,bF=qQ.unstable_requestPaint,KZ=qQ.unstable_now,yF=qQ.unstable_getCurrentPriorityLevel,m4=qQ.unstable_ImmediatePriority,mG=qQ.unstable_UserBlockingPriority,z9=qQ.unstable_NormalPriority,fF=qQ.unstable_LowPriority,cG=qQ.unstable_IdlePriority,vF=qQ.unstable_yieldValue,uF=qQ.unstable_setDisableYieldValue,$9=null,LZ=null,o=null,L8=!1,l7=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function gF(J){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Q=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Q.isDisabled)return!0;if(!Q.supportsFiber)return $("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{if(cZ)J=uJ({},J,{getLaneLabelMap:lF,injectProfilingHooks:sF});$9=Q.inject(J),LZ=Q}catch(X){$("React instrumentation encountered an error: %s.",X)}if(Q.checkDCE)return!0;else return!1}function dF(J,Q){if(LZ&&typeof LZ.onScheduleFiberRoot==="function")try{LZ.onScheduleFiberRoot($9,J,Q)}catch(X){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",X)}}function mF(J,Q){if(LZ&&typeof LZ.onCommitFiberRoot==="function")try{var X=(J.current.flags&aJ)===aJ;if(Z7){var G;switch(Q){case O7:G=m4;break;case u8:G=mG;break;case g8:G=z9;break;case o4:G=cG;break;default:G=z9;break}LZ.onCommitFiberRoot($9,J,G,X)}else LZ.onCommitFiberRoot($9,J,void 0,X)}catch(U){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",U)}}function cF(J){if(LZ&&typeof LZ.onPostCommitFiberRoot==="function")try{LZ.onPostCommitFiberRoot($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}function pF(J){if(LZ&&typeof LZ.onCommitFiberUnmount==="function")try{LZ.onCommitFiberUnmount($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}function UZ(J){{if(typeof vF==="function")uF(J),K(J);if(LZ&&typeof LZ.setStrictMode==="function")try{LZ.setStrictMode($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}}function sF(J){o=J}function lF(){{var J=new Map,Q=1;for(var X=0;X<sG;X++){var G=LB(Q);J.set(Q,G),Q*=2}return J}}function iF(J){if(o!==null&&typeof o.markCommitStarted==="function")o.markCommitStarted(J)}function s$(){if(o!==null&&typeof o.markCommitStopped==="function")o.markCommitStopped()}function C6(J){if(o!==null&&typeof o.markComponentRenderStarted==="function")o.markComponentRenderStarted(J)}function Y1(){if(o!==null&&typeof o.markComponentRenderStopped==="function")o.markComponentRenderStopped()}function nF(J){if(o!==null&&typeof o.markComponentPassiveEffectMountStarted==="function")o.markComponentPassiveEffectMountStarted(J)}function rF(){if(o!==null&&typeof o.markComponentPassiveEffectMountStopped==="function")o.markComponentPassiveEffectMountStopped()}function oF(J){if(o!==null&&typeof o.markComponentPassiveEffectUnmountStarted==="function")o.markComponentPassiveEffectUnmountStarted(J)}function tF(){if(o!==null&&typeof o.markComponentPassiveEffectUnmountStopped==="function")o.markComponentPassiveEffectUnmountStopped()}function aF(J){if(o!==null&&typeof o.markComponentLayoutEffectMountStarted==="function")o.markComponentLayoutEffectMountStarted(J)}function eF(){if(o!==null&&typeof o.markComponentLayoutEffectMountStopped==="function")o.markComponentLayoutEffectMountStopped()}function l$(J){if(o!==null&&typeof o.markComponentLayoutEffectUnmountStarted==="function")o.markComponentLayoutEffectUnmountStarted(J)}function i$(){if(o!==null&&typeof o.markComponentLayoutEffectUnmountStopped==="function")o.markComponentLayoutEffectUnmountStopped()}function JB(J,Q,X){if(o!==null&&typeof o.markComponentErrored==="function")o.markComponentErrored(J,Q,X)}function QB(J,Q,X){if(o!==null&&typeof o.markComponentSuspended==="function")o.markComponentSuspended(J,Q,X)}function ZB(J){if(o!==null&&typeof o.markLayoutEffectsStarted==="function")o.markLayoutEffectsStarted(J)}function XB(){if(o!==null&&typeof o.markLayoutEffectsStopped==="function")o.markLayoutEffectsStopped()}function YB(J){if(o!==null&&typeof o.markPassiveEffectsStarted==="function")o.markPassiveEffectsStarted(J)}function GB(){if(o!==null&&typeof o.markPassiveEffectsStopped==="function")o.markPassiveEffectsStopped()}function n$(J){if(o!==null&&typeof o.markRenderStarted==="function")o.markRenderStarted(J)}function KB(){if(o!==null&&typeof o.markRenderYielded==="function")o.markRenderYielded()}function r$(){if(o!==null&&typeof o.markRenderStopped==="function")o.markRenderStopped()}function UB(J){if(o!==null&&typeof o.markRenderScheduled==="function")o.markRenderScheduled(J)}function qB(J,Q){if(o!==null&&typeof o.markForceUpdateScheduled==="function")o.markForceUpdateScheduled(J,Q)}function pG(J,Q){if(o!==null&&typeof o.markStateUpdateScheduled==="function")o.markStateUpdateScheduled(J,Q)}var MJ=0,dJ=1,YQ=2,CQ=8,W8=16,o$=Math.clz32?Math.clz32:OB,zB=Math.log,$B=Math.LN2;function OB(J){var Q=J>>>0;if(Q===0)return 32;return 31-(zB(Q)/$B|0)|0}var sG=31,f=0,qZ=0,NJ=1,G1=2,v8=4,O9=8,D8=16,x6=32,K1=4194240,h6=64,lG=128,iG=256,nG=512,rG=1024,oG=2048,tG=4096,aG=8192,eG=16384,JK=32768,QK=65536,ZK=131072,XK=262144,YK=524288,GK=1048576,KK=2097152,c4=130023424,U1=4194304,UK=8388608,qK=16777216,zK=33554432,$K=67108864,t$=U1,b6=134217728,a$=268435455,y6=268435456,L9=536870912,z7=1073741824;function LB(J){{if(J&NJ)return"Sync";if(J&G1)return"InputContinuousHydration";if(J&v8)return"InputContinuous";if(J&O9)return"DefaultHydration";if(J&D8)return"Default";if(J&x6)return"TransitionHydration";if(J&K1)return"Transition";if(J&c4)return"Retry";if(J&b6)return"SelectiveHydration";if(J&y6)return"IdleHydration";if(J&L9)return"Idle";if(J&z7)return"Offscreen"}}var HQ=-1,p4=h6,s4=U1;function f6(J){switch(W9(J)){case NJ:return NJ;case G1:return G1;case v8:return v8;case O9:return O9;case D8:return D8;case x6:return x6;case h6:case lG:case iG:case nG:case rG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:case KK:return J&K1;case U1:case UK:case qK:case zK:case $K:return J&c4;case b6:return b6;case y6:return y6;case L9:return L9;case z7:return z7;default:return $("Should have found matching lanes. This is a bug in React."),J}}function l4(J,Q){var X=J.pendingLanes;if(X===f)return f;var G=f,U=J.suspendedLanes,q=J.pingedLanes,O=X&a$;if(O!==f){var L=O&~U;if(L!==f)G=f6(L);else{var W=O&q;if(W!==f)G=f6(W)}}else{var H=X&~U;if(H!==f)G=f6(H);else if(q!==f)G=f6(q)}if(G===f)return f;if(Q!==f&&Q!==G&&(Q&U)===f){var M=W9(G),N=W9(Q);if(M>=N||M===D8&&(N&K1)!==f)return Q}if((G&v8)!==f)G|=X&D8;var P=J.entangledLanes;if(P!==f){var S=J.entanglements,T=G&P;while(T>0){var E=D9(T),s=1<<E;G|=S[E],T&=~s}}return G}function WB(J,Q){var X=J.eventTimes,G=HQ;while(Q>0){var U=D9(Q),q=1<<U,O=X[U];if(O>G)G=O;Q&=~q}return G}function DB(J,Q){switch(J){case NJ:case G1:case v8:return Q+250;case O9:case D8:case x6:case h6:case lG:case iG:case nG:case rG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:case KK:return Q+5000;case U1:case UK:case qK:case zK:case $K:return HQ;case b6:case y6:case L9:case z7:return HQ;default:return $("Should have found matching lanes. This is a bug in React."),HQ}}function HB(J,Q){var{pendingLanes:X,suspendedLanes:G,pingedLanes:U,expirationTimes:q}=J,O=X;while(O>0){var L=D9(O),W=1<<L,H=q[L];if(H===HQ){if((W&G)===f||(W&U)!==f)q[L]=DB(W,Q)}else if(H<=Q)J.expiredLanes|=W;O&=~W}}function MB(J){return f6(J.pendingLanes)}function OK(J){var Q=J.pendingLanes&~z7;if(Q!==f)return Q;if(Q&z7)return z7;return f}function FB(J){return(J&NJ)!==f}function LK(J){return(J&a$)!==f}function e$(J){return(J&c4)===J}function BB(J){var Q=NJ|v8|D8;return(J&Q)===f}function AB(J){return(J&K1)===J}function i4(J,Q){var X=G1|v8|O9|D8;return(Q&X)!==f}function IB(J,Q){return(Q&J.expiredLanes)!==f}function J3(J){return(J&K1)!==f}function Q3(){var J=p4;if(p4<<=1,(p4&K1)===f)p4=h6;return J}function jB(){var J=s4;if(s4<<=1,(s4&c4)===f)s4=U1;return J}function W9(J){return J&-J}function v6(J){return W9(J)}function D9(J){return 31-o$(J)}function WK(J){return D9(J)}function $7(J,Q){return(J&Q)!==f}function q1(J,Q){return(J&Q)===Q}function xJ(J,Q){return J|Q}function n4(J,Q){return J&~Q}function Z3(J,Q){return J&Q}function r4(J){return J}function PB(J,Q){return J!==qZ&&J<Q?J:Q}function DK(J){var Q=[];for(var X=0;X<sG;X++)Q.push(J);return Q}function u6(J,Q,X){if(J.pendingLanes|=Q,Q!==L9)J.suspendedLanes=f,J.pingedLanes=f;var G=J.eventTimes,U=WK(Q);G[U]=X}function NB(J,Q){J.suspendedLanes|=Q,J.pingedLanes&=~Q;var X=J.expirationTimes,G=Q;while(G>0){var U=D9(G),q=1<<U;X[U]=HQ,G&=~q}}function X3(J,Q,X){J.pingedLanes|=J.suspendedLanes&Q}function wB(J,Q){var X=J.pendingLanes&~Q;J.pendingLanes=Q,J.suspendedLanes=f,J.pingedLanes=f,J.expiredLanes&=Q,J.mutableReadLanes&=Q,J.entangledLanes&=Q;var{entanglements:G,eventTimes:U,expirationTimes:q}=J,O=X;while(O>0){var L=D9(O),W=1<<L;G[L]=f,U[L]=HQ,q[L]=HQ,O&=~W}}function HK(J,Q){var X=J.entangledLanes|=Q,G=J.entanglements,U=X;while(U){var q=D9(U),O=1<<q;if(O&Q|G[q]&Q)G[q]|=Q;U&=~O}}function RB(J,Q){var X=W9(Q),G;switch(X){case v8:G=G1;break;case D8:G=O9;break;case h6:case lG:case iG:case nG:case rG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:case KK:case U1:case UK:case qK:case zK:case $K:G=x6;break;case L9:G=y6;break;default:G=qZ;break}if((G&(J.suspendedLanes|Q))!==qZ)return qZ;return G}function Y3(J,Q,X){if(!l7)return;var G=J.pendingUpdatersLaneMap;while(X>0){var U=WK(X),q=1<<U,O=G[U];O.add(Q),X&=~q}}function G3(J,Q){if(!l7)return;var{pendingUpdatersLaneMap:X,memoizedUpdaters:G}=J;while(Q>0){var U=WK(Q),q=1<<U,O=X[U];if(O.size>0)O.forEach(function(L){var W=L.alternate;if(W===null||!G.has(W))G.add(L)}),O.clear();Q&=~q}}function K3(J,Q){return null}var O7=NJ,u8=v8,g8=D8,o4=L9,g6=qZ;function i7(){return g6}function zZ(J){g6=J}function VB(J,Q){var X=g6;try{return g6=J,Q()}finally{g6=X}}function SB(J,Q){return J!==0&&J<Q?J:Q}function TB(J,Q){return J===0||J>Q?J:Q}function MK(J,Q){return J!==0&&J<Q}function U3(J){var Q=W9(J);if(!MK(O7,Q))return O7;if(!MK(u8,Q))return u8;if(LK(Q))return g8;return o4}function t4(J){var Q=J.current.memoizedState;return Q.isDehydrated}var q3;function _B(J){q3=J}function kB(J){q3(J)}var FK;function EB(J){FK=J}var z3;function CB(J){z3=J}var $3;function xB(J){$3=J}var O3;function hB(J){O3=J}var BK=!1,a4=[],jX=null,PX=null,NX=null,d6=new Map,m6=new Map,wX=[],bB=["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 yB(J){return bB.indexOf(J)>-1}function fB(J,Q,X,G,U){return{blockedOn:J,domEventName:Q,eventSystemFlags:X,nativeEvent:U,targetContainers:[G]}}function L3(J,Q){switch(J){case"focusin":case"focusout":jX=null;break;case"dragenter":case"dragleave":PX=null;break;case"mouseover":case"mouseout":NX=null;break;case"pointerover":case"pointerout":{var X=Q.pointerId;d6.delete(X);break}case"gotpointercapture":case"lostpointercapture":{var G=Q.pointerId;m6.delete(G);break}}}function c6(J,Q,X,G,U,q){if(J===null||J.nativeEvent!==q){var O=fB(Q,X,G,U,q);if(Q!==null){var L=SX(Q);if(L!==null)FK(L)}return O}J.eventSystemFlags|=G;var W=J.targetContainers;if(U!==null&&W.indexOf(U)===-1)W.push(U);return J}function vB(J,Q,X,G,U){switch(Q){case"focusin":{var q=U;return jX=c6(jX,J,Q,X,G,q),!0}case"dragenter":{var O=U;return PX=c6(PX,J,Q,X,G,O),!0}case"mouseover":{var L=U;return NX=c6(NX,J,Q,X,G,L),!0}case"pointerover":{var W=U,H=W.pointerId;return d6.set(H,c6(d6.get(H)||null,J,Q,X,G,W)),!0}case"gotpointercapture":{var M=U,N=M.pointerId;return m6.set(N,c6(m6.get(N)||null,J,Q,X,G,M)),!0}}return!1}function W3(J){var Q=F9(J.target);if(Q!==null){var X=q9(Q);if(X!==null){var G=X.tag;if(G===c){var U=f$(X);if(U!==null){J.blockedOn=U,O3(J.priority,function(){z3(X)});return}}else if(G===_){var q=X.stateNode;if(t4(q)){J.blockedOn=v$(X);return}}}}J.blockedOn=null}function uB(J){var Q=$3(),X={blockedOn:null,target:J,priority:Q},G=0;for(;G<wX.length;G++)if(!MK(Q,wX[G].priority))break;if(wX.splice(G,0,X),G===0)W3(X)}function e4(J){if(J.blockedOn!==null)return!1;var Q=J.targetContainers;while(Q.length>0){var X=Q[0],G=jK(J.domEventName,J.eventSystemFlags,X,J.nativeEvent);if(G===null){var U=J.nativeEvent,q=new U.constructor(U.type,U);OF(q),U.target.dispatchEvent(q),LF()}else{var O=SX(G);if(O!==null)FK(O);return J.blockedOn=G,!1}Q.shift()}return!0}function D3(J,Q,X){if(e4(J))X.delete(Q)}function gB(){if(BK=!1,jX!==null&&e4(jX))jX=null;if(PX!==null&&e4(PX))PX=null;if(NX!==null&&e4(NX))NX=null;d6.forEach(D3),m6.forEach(D3)}function p6(J,Q){if(J.blockedOn===Q){if(J.blockedOn=null,!BK)BK=!0,qQ.unstable_scheduleCallback(qQ.unstable_NormalPriority,gB)}}function s6(J){if(a4.length>0){p6(a4[0],J);for(var Q=1;Q<a4.length;Q++){var X=a4[Q];if(X.blockedOn===J)X.blockedOn=null}}if(jX!==null)p6(jX,J);if(PX!==null)p6(PX,J);if(NX!==null)p6(NX,J);var G=function(L){return p6(L,J)};d6.forEach(G),m6.forEach(G);for(var U=0;U<wX.length;U++){var q=wX[U];if(q.blockedOn===J)q.blockedOn=null}while(wX.length>0){var O=wX[0];if(O.blockedOn!==null)break;else if(W3(O),O.blockedOn===null)wX.shift()}}var z1=Z.ReactCurrentBatchConfig,AK=!0;function H3(J){AK=!!J}function dB(){return AK}function mB(J,Q,X){var G=M3(Q),U;switch(G){case O7:U=cB;break;case u8:U=pB;break;case g8:default:U=IK;break}return U.bind(null,Q,X,J)}function cB(J,Q,X,G){var U=i7(),q=z1.transition;z1.transition=null;try{zZ(O7),IK(J,Q,X,G)}finally{zZ(U),z1.transition=q}}function pB(J,Q,X,G){var U=i7(),q=z1.transition;z1.transition=null;try{zZ(u8),IK(J,Q,X,G)}finally{zZ(U),z1.transition=q}}function IK(J,Q,X,G){if(!AK)return;sB(J,Q,X,G)}function sB(J,Q,X,G){var U=jK(J,Q,X,G);if(U===null){bK(J,Q,G,JY,X),L3(J,G);return}if(vB(U,J,Q,X,G)){G.stopPropagation();return}if(L3(J,G),Q&R6&&yB(J)){while(U!==null){var q=SX(U);if(q!==null)kB(q);var O=jK(J,Q,X,G);if(O===null)bK(J,Q,G,JY,X);if(O===U)break;U=O}if(U!==null)G.stopPropagation();return}bK(J,Q,G,null,X)}var JY=null;function jK(J,Q,X,G){JY=null;var U=TG(G),q=F9(U);if(q!==null){var O=q9(q);if(O===null)q=null;else{var L=O.tag;if(L===c){var W=f$(O);if(W!==null)return W;q=null}else if(L===_){var H=O.stateNode;if(t4(H))return v$(O);q=null}else if(O!==q)q=null}}return JY=q,null}function M3(J){switch(J){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 O7;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 u8;case"message":{var Q=yF();switch(Q){case m4:return O7;case mG:return u8;case z9:case fF:return g8;case cG:return o4;default:return g8}}default:return g8}}function lB(J,Q,X){return J.addEventListener(Q,X,!1),X}function iB(J,Q,X){return J.addEventListener(Q,X,!0),X}function nB(J,Q,X,G){return J.addEventListener(Q,X,{capture:!0,passive:G}),X}function rB(J,Q,X,G){return J.addEventListener(Q,X,{passive:G}),X}var l6=null,PK=null,i6=null;function oB(J){return l6=J,PK=B3(),!0}function tB(){l6=null,PK=null,i6=null}function F3(){if(i6)return i6;var J,Q=PK,X=Q.length,G,U=B3(),q=U.length;for(J=0;J<X;J++)if(Q[J]!==U[J])break;var O=X-J;for(G=1;G<=O;G++)if(Q[X-G]!==U[q-G])break;var L=G>1?1-G:void 0;return i6=U.slice(J,L),i6}function B3(){if("value"in l6)return l6.value;return l6.textContent}function QY(J){var Q,X=J.keyCode;if("charCode"in J){if(Q=J.charCode,Q===0&&X===13)Q=13}else Q=X;if(Q===10)Q=13;if(Q>=32||Q===13)return Q;return 0}function ZY(){return!0}function A3(){return!1}function L7(J){function Q(X,G,U,q,O){this._reactName=X,this._targetInst=U,this.type=G,this.nativeEvent=q,this.target=O,this.currentTarget=null;for(var L in J){if(!J.hasOwnProperty(L))continue;var W=J[L];if(W)this[L]=W(q);else this[L]=q[L]}var H=q.defaultPrevented!=null?q.defaultPrevented:q.returnValue===!1;if(H)this.isDefaultPrevented=ZY;else this.isDefaultPrevented=A3;return this.isPropagationStopped=A3,this}return uJ(Q.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;if(!X)return;if(X.preventDefault)X.preventDefault();else if(typeof X.returnValue!=="unknown")X.returnValue=!1;this.isDefaultPrevented=ZY},stopPropagation:function(){var X=this.nativeEvent;if(!X)return;if(X.stopPropagation)X.stopPropagation();else if(typeof X.cancelBubble!=="unknown")X.cancelBubble=!0;this.isPropagationStopped=ZY},persist:function(){},isPersistent:ZY}),Q}var $1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(J){return J.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},NK=L7($1),n6=uJ({},$1,{view:0,detail:0}),aB=L7(n6),wK,RK,r6;function eB(J){if(J!==r6){if(r6&&J.type==="mousemove")wK=J.screenX-r6.screenX,RK=J.screenY-r6.screenY;else wK=0,RK=0;r6=J}}var XY=uJ({},n6,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:SK,button:0,buttons:0,relatedTarget:function(J){if(J.relatedTarget===void 0)return J.fromElement===J.srcElement?J.toElement:J.fromElement;return J.relatedTarget},movementX:function(J){if("movementX"in J)return J.movementX;return eB(J),wK},movementY:function(J){if("movementY"in J)return J.movementY;return RK}}),I3=L7(XY),JA=uJ({},XY,{dataTransfer:0}),QA=L7(JA),ZA=uJ({},n6,{relatedTarget:0}),VK=L7(ZA),XA=uJ({},$1,{animationName:0,elapsedTime:0,pseudoElement:0}),YA=L7(XA),GA=uJ({},$1,{clipboardData:function(J){return"clipboardData"in J?J.clipboardData:window.clipboardData}}),KA=L7(GA),UA=uJ({},$1,{data:0}),j3=L7(UA),qA=j3,zA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$A={"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 OA(J){if(J.key){var Q=zA[J.key]||J.key;if(Q!=="Unidentified")return Q}if(J.type==="keypress"){var X=QY(J);return X===13?"Enter":String.fromCharCode(X)}if(J.type==="keydown"||J.type==="keyup")return $A[J.keyCode]||"Unidentified";return""}var LA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function WA(J){var Q=this,X=Q.nativeEvent;if(X.getModifierState)return X.getModifierState(J);var G=LA[J];return G?!!X[G]:!1}function SK(J){return WA}var DA=uJ({},n6,{key:OA,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:SK,charCode:function(J){if(J.type==="keypress")return QY(J);return 0},keyCode:function(J){if(J.type==="keydown"||J.type==="keyup")return J.keyCode;return 0},which:function(J){if(J.type==="keypress")return QY(J);if(J.type==="keydown"||J.type==="keyup")return J.keyCode;return 0}}),HA=L7(DA),MA=uJ({},XY,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),P3=L7(MA),FA=uJ({},n6,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:SK}),BA=L7(FA),AA=uJ({},$1,{propertyName:0,elapsedTime:0,pseudoElement:0}),IA=L7(AA),jA=uJ({},XY,{deltaX:function(J){return"deltaX"in J?J.deltaX:("wheelDeltaX"in J)?-J.wheelDeltaX:0},deltaY:function(J){return"deltaY"in J?J.deltaY:("wheelDeltaY"in J)?-J.wheelDeltaY:("wheelDelta"in J)?-J.wheelDelta:0},deltaZ:0,deltaMode:0}),PA=L7(jA),NA=[9,13,27,32],N3=229,TK=bQ&&"CompositionEvent"in window,o6=null;if(bQ&&"documentMode"in document)o6=document.documentMode;var wA=bQ&&"TextEvent"in window&&!o6,w3=bQ&&(!TK||o6&&o6>8&&o6<=11),R3=32,V3=String.fromCharCode(R3);function RA(){PZ("onBeforeInput",["compositionend","keypress","textInput","paste"]),PZ("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),PZ("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),PZ("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var S3=!1;function VA(J){return(J.ctrlKey||J.altKey||J.metaKey)&&!(J.ctrlKey&&J.altKey)}function SA(J){switch(J){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function TA(J,Q){return J==="keydown"&&Q.keyCode===N3}function T3(J,Q){switch(J){case"keyup":return NA.indexOf(Q.keyCode)!==-1;case"keydown":return Q.keyCode!==N3;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _3(J){var Q=J.detail;if(typeof Q==="object"&&"data"in Q)return Q.data;return null}function k3(J){return J.locale==="ko"}var O1=!1;function _A(J,Q,X,G,U){var q,O;if(TK)q=SA(Q);else if(!O1){if(TA(Q,G))q="onCompositionStart"}else if(T3(Q,G))q="onCompositionEnd";if(!q)return null;if(w3&&!k3(G)){if(!O1&&q==="onCompositionStart")O1=oB(U);else if(q==="onCompositionEnd"){if(O1)O=F3()}}var L=qY(X,q);if(L.length>0){var W=new j3(q,Q,null,G,U);if(J.push({event:W,listeners:L}),O)W.data=O;else{var H=_3(G);if(H!==null)W.data=H}}}function kA(J,Q){switch(J){case"compositionend":return _3(Q);case"keypress":var X=Q.which;if(X!==R3)return null;return S3=!0,V3;case"textInput":var G=Q.data;if(G===V3&&S3)return null;return G;default:return null}}function EA(J,Q){if(O1){if(J==="compositionend"||!TK&&T3(J,Q)){var X=F3();return tB(),O1=!1,X}return null}switch(J){case"paste":return null;case"keypress":if(!VA(Q)){if(Q.char&&Q.char.length>1)return Q.char;else if(Q.which)return String.fromCharCode(Q.which)}return null;case"compositionend":return w3&&!k3(Q)?null:Q.data;default:return null}}function CA(J,Q,X,G,U){var q;if(wA)q=kA(Q,G);else q=EA(Q,G);if(!q)return null;var O=qY(X,"onBeforeInput");if(O.length>0){var L=new qA("onBeforeInput","beforeinput",null,G,U);J.push({event:L,listeners:O}),L.data=q}}function xA(J,Q,X,G,U,q,O){_A(J,Q,X,G,U),CA(J,Q,X,G,U)}var hA={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 E3(J){var Q=J&&J.nodeName&&J.nodeName.toLowerCase();if(Q==="input")return!!hA[J.type];if(Q==="textarea")return!0;return!1}function bA(J){if(!bQ)return!1;var Q="on"+J,X=Q in document;if(!X){var G=document.createElement("div");G.setAttribute(Q,"return;"),X=typeof G[Q]==="function"}return X}function yA(){PZ("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function C3(J,Q,X,G){_$(G);var U=qY(Q,"onChange");if(U.length>0){var q=new NK("onChange","change",null,X,G);J.push({event:q,listeners:U})}}var t6=null,a6=null;function fA(J){var Q=J.nodeName&&J.nodeName.toLowerCase();return Q==="select"||Q==="input"&&J.type==="file"}function vA(J){var Q=[];C3(Q,a6,J,TG(J)),x$(uA,Q)}function uA(J){o3(J,0)}function YY(J){var Q=F1(J);if(i9(Q))return J}function gA(J,Q){if(J==="change")return Q}var x3=!1;if(bQ)x3=bA("input")&&(!document.documentMode||document.documentMode>9);function dA(J,Q){t6=J,a6=Q,t6.attachEvent("onpropertychange",b3)}function h3(){if(!t6)return;t6.detachEvent("onpropertychange",b3),t6=null,a6=null}function b3(J){if(J.propertyName!=="value")return;if(YY(a6))vA(J)}function mA(J,Q,X){if(J==="focusin")h3(),dA(Q,X);else if(J==="focusout")h3()}function cA(J,Q){if(J==="selectionchange"||J==="keyup"||J==="keydown")return YY(a6)}function pA(J){var Q=J.nodeName;return Q&&Q.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")}function sA(J,Q){if(J==="click")return YY(Q)}function lA(J,Q){if(J==="input"||J==="change")return YY(Q)}function iA(J){var Q=J._wrapperState;if(!Q||!Q.controlled||J.type!=="number")return;PJ(J,"number",J.value)}function nA(J,Q,X,G,U,q,O){var L=X?F1(X):window,W,H;if(fA(L))W=gA;else if(E3(L))if(x3)W=lA;else W=cA,H=mA;else if(pA(L))W=sA;if(W){var M=W(Q,X);if(M){C3(J,M,G,U);return}}if(H)H(Q,L,X);if(Q==="focusout")iA(L)}function rA(){I7("onMouseEnter",["mouseout","mouseover"]),I7("onMouseLeave",["mouseout","mouseover"]),I7("onPointerEnter",["pointerout","pointerover"]),I7("onPointerLeave",["pointerout","pointerover"])}function oA(J,Q,X,G,U,q,O){var L=Q==="mouseover"||Q==="pointerover",W=Q==="mouseout"||Q==="pointerout";if(L&&!WF(G)){var H=G.relatedTarget||G.fromElement;if(H){if(F9(H)||W0(H))return}}if(!W&&!L)return;var M;if(U.window===U)M=U;else{var N=U.ownerDocument;if(N)M=N.defaultView||N.parentWindow;else M=window}var P,S;if(W){var T=G.relatedTarget||G.toElement;if(P=X,S=T?F9(T):null,S!==null){var E=q9(S);if(S!==E||S.tag!==k&&S.tag!==a)S=null}}else P=null,S=X;if(P===S)return;var s=I3,OJ="onMouseLeave",GJ="onMouseEnter",yJ="mouse";if(Q==="pointerout"||Q==="pointerover")s=P3,OJ="onPointerLeave",GJ="onPointerEnter",yJ="pointer";var fJ=P==null?M:F1(P),w=S==null?M:F1(S),x=new s(OJ,yJ+"leave",P,G,U);x.target=fJ,x.relatedTarget=w;var R=null,u=F9(U);if(u===X){var e=new s(GJ,yJ+"enter",S,G,U);e.target=w,e.relatedTarget=fJ,R=e}II(J,x,R,P,S)}function tA(J,Q){return J===Q&&(J!==0||1/J===1/Q)||J!==J&&Q!==Q}var W7=typeof Object.is==="function"?Object.is:tA;function e6(J,Q){if(W7(J,Q))return!0;if(typeof J!=="object"||J===null||typeof Q!=="object"||Q===null)return!1;var X=Object.keys(J),G=Object.keys(Q);if(X.length!==G.length)return!1;for(var U=0;U<X.length;U++){var q=X[U];if(!Y7.call(Q,q)||!W7(J[q],Q[q]))return!1}return!0}function y3(J){while(J&&J.firstChild)J=J.firstChild;return J}function aA(J){while(J){if(J.nextSibling)return J.nextSibling;J=J.parentNode}}function f3(J,Q){var X=y3(J),G=0,U=0;while(X){if(X.nodeType===C8){if(U=G+X.textContent.length,G<=Q&&U>=Q)return{node:X,offset:Q-G};G=U}X=y3(aA(X))}}function eA(J){var Q=J.ownerDocument,X=Q&&Q.defaultView||window,G=X.getSelection&&X.getSelection();if(!G||G.rangeCount===0)return null;var{anchorNode:U,anchorOffset:q,focusNode:O,focusOffset:L}=G;try{U.nodeType,O.nodeType}catch(W){return null}return JI(J,U,q,O,L)}function JI(J,Q,X,G,U){var q=0,O=-1,L=-1,W=0,H=0,M=J,N=null;J:while(!0){var P=null;while(!0){if(M===Q&&(X===0||M.nodeType===C8))O=q+X;if(M===G&&(U===0||M.nodeType===C8))L=q+U;if(M.nodeType===C8)q+=M.nodeValue.length;if((P=M.firstChild)===null)break;N=M,M=P}while(!0){if(M===J)break J;if(N===Q&&++W===X)O=q;if(N===G&&++H===U)L=q;if((P=M.nextSibling)!==null)break;M=N,N=M.parentNode}M=P}if(O===-1||L===-1)return null;return{start:O,end:L}}function QI(J,Q){var X=J.ownerDocument||document,G=X&&X.defaultView||window;if(!G.getSelection)return;var U=G.getSelection(),q=J.textContent.length,O=Math.min(Q.start,q),L=Q.end===void 0?O:Math.min(Q.end,q);if(!U.extend&&O>L){var W=L;L=O,O=W}var H=f3(J,O),M=f3(J,L);if(H&&M){if(U.rangeCount===1&&U.anchorNode===H.node&&U.anchorOffset===H.offset&&U.focusNode===M.node&&U.focusOffset===M.offset)return;var N=X.createRange();if(N.setStart(H.node,H.offset),U.removeAllRanges(),O>L)U.addRange(N),U.extend(M.node,M.offset);else N.setEnd(M.node,M.offset),U.addRange(N)}}function v3(J){return J&&J.nodeType===C8}function u3(J,Q){if(!J||!Q)return!1;else if(J===Q)return!0;else if(v3(J))return!1;else if(v3(Q))return u3(J,Q.parentNode);else if("contains"in J)return J.contains(Q);else if(J.compareDocumentPosition)return!!(J.compareDocumentPosition(Q)&16);else return!1}function ZI(J){return J&&J.ownerDocument&&u3(J.ownerDocument.documentElement,J)}function XI(J){try{return typeof J.contentWindow.location.href==="string"}catch(Q){return!1}}function g3(){var J=window,Q=AX();while(Q instanceof J.HTMLIFrameElement){if(XI(Q))J=Q.contentWindow;else return Q;Q=AX(J.document)}return Q}function _K(J){var Q=J&&J.nodeName&&J.nodeName.toLowerCase();return Q&&(Q==="input"&&(J.type==="text"||J.type==="search"||J.type==="tel"||J.type==="url"||J.type==="password")||Q==="textarea"||J.contentEditable==="true")}function YI(){var J=g3();return{focusedElem:J,selectionRange:_K(J)?KI(J):null}}function GI(J){var Q=g3(),X=J.focusedElem,G=J.selectionRange;if(Q!==X&&ZI(X)){if(G!==null&&_K(X))UI(X,G);var U=[],q=X;while(q=q.parentNode)if(q.nodeType===lZ)U.push({element:q,left:q.scrollLeft,top:q.scrollTop});if(typeof X.focus==="function")X.focus();for(var O=0;O<U.length;O++){var L=U[O];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}}function KI(J){var Q;if("selectionStart"in J)Q={start:J.selectionStart,end:J.selectionEnd};else Q=eA(J);return Q||{start:0,end:0}}function UI(J,Q){var{start:X,end:G}=Q;if(G===void 0)G=X;if("selectionStart"in J)J.selectionStart=X,J.selectionEnd=Math.min(G,J.value.length);else QI(J,Q)}var qI=bQ&&"documentMode"in document&&document.documentMode<=11;function zI(){PZ("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var L1=null,kK=null,J0=null,EK=!1;function $I(J){if("selectionStart"in J&&_K(J))return{start:J.selectionStart,end:J.selectionEnd};else{var Q=J.ownerDocument&&J.ownerDocument.defaultView||window,X=Q.getSelection();return{anchorNode:X.anchorNode,anchorOffset:X.anchorOffset,focusNode:X.focusNode,focusOffset:X.focusOffset}}}function OI(J){return J.window===J?J.document:J.nodeType===x8?J:J.ownerDocument}function d3(J,Q,X){var G=OI(X);if(EK||L1==null||L1!==AX(G))return;var U=$I(L1);if(!J0||!e6(J0,U)){J0=U;var q=qY(kK,"onSelect");if(q.length>0){var O=new NK("onSelect","select",null,Q,X);J.push({event:O,listeners:q}),O.target=L1}}}function LI(J,Q,X,G,U,q,O){var L=X?F1(X):window;switch(Q){case"focusin":if(E3(L)||L.contentEditable==="true")L1=L,kK=X,J0=null;break;case"focusout":L1=null,kK=null,J0=null;break;case"mousedown":EK=!0;break;case"contextmenu":case"mouseup":case"dragend":EK=!1,d3(J,G,U);break;case"selectionchange":if(qI)break;case"keydown":case"keyup":d3(J,G,U)}}function GY(J,Q){var X={};return X[J.toLowerCase()]=Q.toLowerCase(),X["Webkit"+J]="webkit"+Q,X["Moz"+J]="moz"+Q,X}var W1={animationend:GY("Animation","AnimationEnd"),animationiteration:GY("Animation","AnimationIteration"),animationstart:GY("Animation","AnimationStart"),transitionend:GY("Transition","TransitionEnd")},CK={},m3={};if(bQ){if(m3=document.createElement("div").style,!("AnimationEvent"in window))delete W1.animationend.animation,delete W1.animationiteration.animation,delete W1.animationstart.animation;if(!("TransitionEvent"in window))delete W1.transitionend.transition}function KY(J){if(CK[J])return CK[J];else if(!W1[J])return J;var Q=W1[J];for(var X in Q)if(Q.hasOwnProperty(X)&&X in m3)return CK[J]=Q[X];return J}var c3=KY("animationend"),p3=KY("animationiteration"),s3=KY("animationstart"),l3=KY("transitionend"),i3=new Map,n3=["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 RX(J,Q){i3.set(J,Q),PZ(Q,[J])}function WI(){for(var J=0;J<n3.length;J++){var Q=n3[J],X=Q.toLowerCase(),G=Q[0].toUpperCase()+Q.slice(1);RX(X,"on"+G)}RX(c3,"onAnimationEnd"),RX(p3,"onAnimationIteration"),RX(s3,"onAnimationStart"),RX("dblclick","onDoubleClick"),RX("focusin","onFocus"),RX("focusout","onBlur"),RX(l3,"onTransitionEnd")}function DI(J,Q,X,G,U,q,O){var L=i3.get(Q);if(L===void 0)return;var W=NK,H=Q;switch(Q){case"keypress":if(QY(G)===0)return;case"keydown":case"keyup":W=HA;break;case"focusin":H="focus",W=VK;break;case"focusout":H="blur",W=VK;break;case"beforeblur":case"afterblur":W=VK;break;case"click":if(G.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=I3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=QA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=BA;break;case c3:case p3:case s3:W=YA;break;case l3:W=IA;break;case"scroll":W=aB;break;case"wheel":W=PA;break;case"copy":case"cut":case"paste":W=KA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=P3;break}var M=(q&R6)!==0;{var N=!M&&Q==="scroll",P=BI(X,L,G.type,M,N);if(P.length>0){var S=new W(L,H,null,G,U);J.push({event:S,listeners:P})}}}WI(),rA(),yA(),zI(),RA();function HI(J,Q,X,G,U,q,O){DI(J,Q,X,G,U,q);var L=(q&$F)===0;if(L)oA(J,Q,X,G,U),nA(J,Q,X,G,U),LI(J,Q,X,G,U),xA(J,Q,X,G,U)}var Q0=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],xK=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Q0));function r3(J,Q,X){var G=J.type||"unknown-event";J.currentTarget=X,PF(G,Q,void 0,J),J.currentTarget=null}function MI(J,Q,X){var G;if(X)for(var U=Q.length-1;U>=0;U--){var q=Q[U],O=q.instance,L=q.currentTarget,W=q.listener;if(O!==G&&J.isPropagationStopped())return;r3(J,W,L),G=O}else for(var H=0;H<Q.length;H++){var M=Q[H],N=M.instance,P=M.currentTarget,S=M.listener;if(N!==G&&J.isPropagationStopped())return;r3(J,S,P),G=N}}function o3(J,Q){var X=(Q&R6)!==0;for(var G=0;G<J.length;G++){var U=J[G],q=U.event,O=U.listeners;MI(q,O,X)}NF()}function FI(J,Q,X,G,U){var q=TG(X),O=[];HI(O,J,G,X,q,Q),o3(O,Q)}function PQ(J,Q){if(!xK.has(J))$('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',J);var X=!1,G=ij(Q),U=jI(J,X);if(!G.has(U))t3(Q,J,SG,X),G.add(U)}function hK(J,Q,X){if(xK.has(J)&&!Q)$('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',J);var G=0;if(Q)G|=R6;t3(X,J,G,Q)}var UY="_reactListening"+Math.random().toString(36).slice(2);function Z0(J){if(!J[UY]){J[UY]=!0,v7.forEach(function(X){if(X!=="selectionchange"){if(!xK.has(X))hK(X,!1,J);hK(X,!0,J)}});var Q=J.nodeType===x8?J:J.ownerDocument;if(Q!==null){if(!Q[UY])Q[UY]=!0,hK("selectionchange",!1,Q)}}}function t3(J,Q,X,G,U){var q=mB(J,Q,X),O=void 0;if(EG){if(Q==="touchstart"||Q==="touchmove"||Q==="wheel")O=!0}J=J;var L;if(G)if(O!==void 0)L=nB(J,Q,q,O);else L=iB(J,Q,q);else if(O!==void 0)L=rB(J,Q,q,O);else L=lB(J,Q,q)}function a3(J,Q){return J===Q||J.nodeType===gQ&&J.parentNode===Q}function bK(J,Q,X,G,U){var q=G;if((Q&S$)===0&&(Q&SG)===0){var O=U;if(G!==null){var L=G;J:while(!0){if(L===null)return;var W=L.tag;if(W===_||W===y){var H=L.stateNode.containerInfo;if(a3(H,O))break;if(W===y){var M=L.return;while(M!==null){var N=M.tag;if(N===_||N===y){var P=M.stateNode.containerInfo;if(a3(P,O))return}M=M.return}}while(H!==null){var S=F9(H);if(S===null)return;var T=S.tag;if(T===k||T===a){L=q=S;continue J}H=H.parentNode}}L=L.return}}}x$(function(){return FI(J,Q,X,q)})}function X0(J,Q,X){return{instance:J,listener:Q,currentTarget:X}}function BI(J,Q,X,G,U,q){var O=Q!==null?Q+"Capture":null,L=G?O:Q,W=[],H=J,M=null;while(H!==null){var N=H,P=N.stateNode,S=N.tag;if(S===k&&P!==null){if(M=P,L!==null){var T=S6(H,L);if(T!=null)W.push(X0(H,T,M))}}if(U)break;H=H.return}return W}function qY(J,Q){var X=Q+"Capture",G=[],U=J;while(U!==null){var q=U,O=q.stateNode,L=q.tag;if(L===k&&O!==null){var W=O,H=S6(U,X);if(H!=null)G.unshift(X0(U,H,W));var M=S6(U,Q);if(M!=null)G.push(X0(U,M,W))}U=U.return}return G}function D1(J){if(J===null)return null;do J=J.return;while(J&&J.tag!==k);if(J)return J;return null}function AI(J,Q){var X=J,G=Q,U=0;for(var q=X;q;q=D1(q))U++;var O=0;for(var L=G;L;L=D1(L))O++;while(U-O>0)X=D1(X),U--;while(O-U>0)G=D1(G),O--;var W=U;while(W--){if(X===G||G!==null&&X===G.alternate)return X;X=D1(X),G=D1(G)}return null}function e3(J,Q,X,G,U){var q=Q._reactName,O=[],L=X;while(L!==null){if(L===G)break;var W=L,H=W.alternate,M=W.stateNode,N=W.tag;if(H!==null&&H===G)break;if(N===k&&M!==null){var P=M;if(U){var S=S6(L,q);if(S!=null)O.unshift(X0(L,S,P))}else if(!U){var T=S6(L,q);if(T!=null)O.push(X0(L,T,P))}}L=L.return}if(O.length!==0)J.push({event:Q,listeners:O})}function II(J,Q,X,G,U){var q=G&&U?AI(G,U):null;if(G!==null)e3(J,Q,G,q,!1);if(U!==null&&X!==null)e3(J,X,U,q,!0)}function jI(J,Q){return J+"__"+(Q?"capture":"bubble")}var iZ=!1,Y0="dangerouslySetInnerHTML",zY="suppressContentEditableWarning",VX="suppressHydrationWarning",J2="autoFocus",H9="children",M9="style",$Y="__html",yK,OY,G0,Q2,LY,Z2,X2;yK={dialog:!0,webview:!0},OY=function(J,Q){XF(J,Q),YF(J,Q),zF(J,Q,{registrationNameDependencies:ZZ,possibleRegistrationNames:X7})},Z2=bQ&&!document.documentMode,G0=function(J,Q,X){if(iZ)return;var G=WY(X),U=WY(Q);if(U===G)return;iZ=!0,$("Prop `%s` did not match. Server: %s Client: %s",J,JSON.stringify(U),JSON.stringify(G))},Q2=function(J){if(iZ)return;iZ=!0;var Q=[];J.forEach(function(X){Q.push(X)}),$("Extra attributes from the server: %s",Q)},LY=function(J,Q){if(Q===!1)$("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.",J,J,J);else $("Expected `%s` listener to be a function, instead got a value of `%s` type.",J,typeof Q)},X2=function(J,Q){var X=J.namespaceURI===E8?J.ownerDocument.createElement(J.tagName):J.ownerDocument.createElementNS(J.namespaceURI,J.tagName);return X.innerHTML=Q,X.innerHTML};var PI=/\r\n?/g,NI=/\u0000|\uFFFD/g;function WY(J){qX(J);var Q=typeof J==="string"?J:""+J;return Q.replace(PI,`
|
|
42
|
-
`).replace(NI,"")}function DY(J,Q,X,G){var U=WY(Q),q=WY(J);if(q===U)return;if(G){if(!iZ)iZ=!0,$('Text content did not match. Server: "%s" Client: "%s"',q,U)}if(X&&QJ)throw Error("Text content does not match server-rendered HTML.")}function Y2(J){return J.nodeType===x8?J:J.ownerDocument}function wI(){}function HY(J){J.onclick=wI}function RI(J,Q,X,G,U){for(var q in G){if(!G.hasOwnProperty(q))continue;var O=G[q];if(q===M9){if(O)Object.freeze(O);j$(Q,O)}else if(q===Y0){var L=O?O[$Y]:void 0;if(L!=null)M$(Q,L)}else if(q===H9){if(typeof O==="string"){var W=J!=="textarea"||O!=="";if(W)y4(Q,O)}else if(typeof O==="number")y4(Q,""+O)}else if(q===zY||q===VX);else if(q===J2);else if(ZZ.hasOwnProperty(q)){if(O!=null){if(typeof O!=="function")LY(q,O);if(q==="onScroll")PQ("scroll",Q)}}else if(O!=null)OX(Q,q,O,U)}}function VI(J,Q,X,G){for(var U=0;U<Q.length;U+=2){var q=Q[U],O=Q[U+1];if(q===M9)j$(J,O);else if(q===Y0)M$(J,O);else if(q===H9)y4(J,O);else OX(J,q,O,G)}}function SI(J,Q,X,G){var U,q=Y2(X),O,L=G;if(L===E8)L=jG(J);if(L===E8){if(U=X9(J,Q),!U&&J!==J.toLowerCase())$("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",J);if(J==="script"){var W=q.createElement("div");W.innerHTML="<script></script>";var H=W.firstChild;O=W.removeChild(H)}else if(typeof Q.is==="string")O=q.createElement(J,{is:Q.is});else if(O=q.createElement(J),J==="select"){var M=O;if(Q.multiple)M.multiple=!0;else if(Q.size)M.size=Q.size}}else O=q.createElementNS(L,J);if(L===E8){if(!U&&Object.prototype.toString.call(O)==="[object HTMLUnknownElement]"&&!Y7.call(yK,J))yK[J]=!0,$("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",J)}return O}function TI(J,Q){return Y2(Q).createTextNode(J)}function _I(J,Q,X,G){var U=X9(Q,X);OY(Q,X);var q;switch(Q){case"dialog":PQ("cancel",J),PQ("close",J),q=X;break;case"iframe":case"object":case"embed":PQ("load",J),q=X;break;case"video":case"audio":for(var O=0;O<Q0.length;O++)PQ(Q0[O],J);q=X;break;case"source":PQ("error",J),q=X;break;case"img":case"image":case"link":PQ("error",J),PQ("load",J),q=X;break;case"details":PQ("toggle",J),q=X;break;case"input":A(J,X),q=D(J,X),PQ("invalid",J);break;case"option":WQ(J,X),q=X;break;case"select":N6(J,X),q=P6(J,X),PQ("invalid",J);break;case"textarea":W$(J,X),q=AG(J,X),PQ("invalid",J);break;default:q=X}switch(VG(Q,q),RI(Q,J,G,q,U),Q){case"input":_8(J),m(J,X,!1);break;case"textarea":_8(J),H$(J);break;case"option":jQ(J,X);break;case"select":BG(J,X);break;default:if(typeof q.onClick==="function")HY(J);break}}function kI(J,Q,X,G,U){OY(Q,G);var q=null,O,L;switch(Q){case"input":O=D(J,X),L=D(J,G),q=[];break;case"select":O=P6(J,X),L=P6(J,G),q=[];break;case"textarea":O=AG(J,X),L=AG(J,G),q=[];break;default:if(O=X,L=G,typeof O.onClick!=="function"&&typeof L.onClick==="function")HY(J);break}VG(Q,L);var W,H,M=null;for(W in O){if(L.hasOwnProperty(W)||!O.hasOwnProperty(W)||O[W]==null)continue;if(W===M9){var N=O[W];for(H in N)if(N.hasOwnProperty(H)){if(!M)M={};M[H]=""}}else if(W===Y0||W===H9);else if(W===zY||W===VX);else if(W===J2);else if(ZZ.hasOwnProperty(W)){if(!q)q=[]}else(q=q||[]).push(W,null)}for(W in L){var P=L[W],S=O!=null?O[W]:void 0;if(!L.hasOwnProperty(W)||P===S||P==null&&S==null)continue;if(W===M9){if(P)Object.freeze(P);if(S){for(H in S)if(S.hasOwnProperty(H)&&(!P||!P.hasOwnProperty(H))){if(!M)M={};M[H]=""}for(H in P)if(P.hasOwnProperty(H)&&S[H]!==P[H]){if(!M)M={};M[H]=P[H]}}else{if(!M){if(!q)q=[];q.push(W,M)}M=P}}else if(W===Y0){var T=P?P[$Y]:void 0,E=S?S[$Y]:void 0;if(T!=null){if(E!==T)(q=q||[]).push(W,T)}}else if(W===H9){if(typeof P==="string"||typeof P==="number")(q=q||[]).push(W,""+P)}else if(W===zY||W===VX);else if(ZZ.hasOwnProperty(W)){if(P!=null){if(typeof P!=="function")LY(W,P);if(W==="onScroll")PQ("scroll",J)}if(!q&&S!==P)q=[]}else(q=q||[]).push(W,P)}if(M)rM(M,L[M9]),(q=q||[]).push(M9,M);return q}function EI(J,Q,X,G,U){if(X==="input"&&U.type==="radio"&&U.name!=null)V(J,U);var q=X9(X,G),O=X9(X,U);switch(VI(J,Q,q,O),X){case"input":C(J,U);break;case"textarea":D$(J,U);break;case"select":VM(J,U);break}}function CI(J){{var Q=J.toLowerCase();if(!f4.hasOwnProperty(Q))return null;return f4[Q]||null}}function xI(J,Q,X,G,U,q,O){var L,W;switch(L=X9(Q,X),OY(Q,X),Q){case"dialog":PQ("cancel",J),PQ("close",J);break;case"iframe":case"object":case"embed":PQ("load",J);break;case"video":case"audio":for(var H=0;H<Q0.length;H++)PQ(Q0[H],J);break;case"source":PQ("error",J);break;case"img":case"image":case"link":PQ("error",J),PQ("load",J);break;case"details":PQ("toggle",J);break;case"input":A(J,X),PQ("invalid",J);break;case"option":WQ(J,X);break;case"select":N6(J,X),PQ("invalid",J);break;case"textarea":W$(J,X),PQ("invalid",J);break}VG(Q,X);{W=new Set;var M=J.attributes;for(var N=0;N<M.length;N++){var P=M[N].name.toLowerCase();switch(P){case"value":break;case"checked":break;case"selected":break;default:W.add(M[N].name)}}}var S=null;for(var T in X){if(!X.hasOwnProperty(T))continue;var E=X[T];if(T===H9){if(typeof E==="string"){if(J.textContent!==E){if(X[VX]!==!0)DY(J.textContent,E,q,O);S=[H9,E]}}else if(typeof E==="number"){if(J.textContent!==""+E){if(X[VX]!==!0)DY(J.textContent,E,q,O);S=[H9,""+E]}}}else if(ZZ.hasOwnProperty(T)){if(E!=null){if(typeof E!=="function")LY(T,E);if(T==="onScroll")PQ("scroll",J)}}else if(O&&!0&&typeof L==="boolean"){var s=void 0,OJ=L&&$Q?null:wZ(T);if(X[VX]===!0);else if(T===zY||T===VX||T==="value"||T==="checked"||T==="selected");else if(T===Y0){var GJ=J.innerHTML,yJ=E?E[$Y]:void 0;if(yJ!=null){var fJ=X2(J,yJ);if(fJ!==GJ)G0(T,GJ,fJ)}}else if(T===M9){if(W.delete(T),Z2){var w=iM(E);if(s=J.getAttribute("style"),w!==s)G0(T,s,w)}}else if(L&&!$Q){if(W.delete(T.toLowerCase()),s=$X(J,T,E),E!==s)G0(T,s,E)}else if(!OQ(T,OJ,L)&&!AQ(T,E,OJ,L)){var x=!1;if(OJ!==null)W.delete(OJ.attributeName),s=q8(J,T,E,OJ);else{var R=G;if(R===E8)R=jG(Q);if(R===E8)W.delete(T.toLowerCase());else{var u=CI(T);if(u!==null&&u!==T)x=!0,W.delete(u);W.delete(T)}s=$X(J,T,E)}var e=$Q;if(!e&&E!==s&&!x)G0(T,s,E)}}}if(O){if(W.size>0&&X[VX]!==!0)Q2(W)}switch(Q){case"input":_8(J),m(J,X,!0);break;case"textarea":_8(J),H$(J);break;case"select":case"option":break;default:if(typeof X.onClick==="function")HY(J);break}return S}function hI(J,Q,X){var G=J.nodeValue!==Q;return G}function fK(J,Q){{if(iZ)return;iZ=!0,$("Did not expect server HTML to contain a <%s> in <%s>.",Q.nodeName.toLowerCase(),J.nodeName.toLowerCase())}}function vK(J,Q){{if(iZ)return;iZ=!0,$('Did not expect server HTML to contain the text node "%s" in <%s>.',Q.nodeValue,J.nodeName.toLowerCase())}}function uK(J,Q,X){{if(iZ)return;iZ=!0,$("Expected server HTML to contain a matching <%s> in <%s>.",Q,J.nodeName.toLowerCase())}}function gK(J,Q){{if(Q==="")return;if(iZ)return;iZ=!0,$('Expected server HTML to contain a matching text node for "%s" in <%s>.',Q,J.nodeName.toLowerCase())}}function bI(J,Q,X){switch(Q){case"input":IJ(J,X);return;case"textarea":TM(J,X);return;case"select":SM(J,X);return}}var K0=function(){},U0=function(){};{var yI=["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"],G2=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],fI=G2.concat(["button"]),vI=["dd","dt","li","option","optgroup","p","rp","rt"],K2={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};U0=function(J,Q){var X=uJ({},J||K2),G={tag:Q};if(G2.indexOf(Q)!==-1)X.aTagInScope=null,X.buttonTagInScope=null,X.nobrTagInScope=null;if(fI.indexOf(Q)!==-1)X.pTagInButtonScope=null;if(yI.indexOf(Q)!==-1&&Q!=="address"&&Q!=="div"&&Q!=="p")X.listItemTagAutoclosing=null,X.dlItemTagAutoclosing=null;if(X.current=G,Q==="form")X.formTag=G;if(Q==="a")X.aTagInScope=G;if(Q==="button")X.buttonTagInScope=G;if(Q==="nobr")X.nobrTagInScope=G;if(Q==="p")X.pTagInButtonScope=G;if(Q==="li")X.listItemTagAutoclosing=G;if(Q==="dd"||Q==="dt")X.dlItemTagAutoclosing=G;return X};var uI=function(J,Q){switch(Q){case"select":return J==="option"||J==="optgroup"||J==="#text";case"optgroup":return J==="option"||J==="#text";case"option":return J==="#text";case"tr":return J==="th"||J==="td"||J==="style"||J==="script"||J==="template";case"tbody":case"thead":case"tfoot":return J==="tr"||J==="style"||J==="script"||J==="template";case"colgroup":return J==="col"||J==="template";case"table":return J==="caption"||J==="colgroup"||J==="tbody"||J==="tfoot"||J==="thead"||J==="style"||J==="script"||J==="template";case"head":return J==="base"||J==="basefont"||J==="bgsound"||J==="link"||J==="meta"||J==="title"||J==="noscript"||J==="noframes"||J==="style"||J==="script"||J==="template";case"html":return J==="head"||J==="body"||J==="frameset";case"frameset":return J==="frame";case"#document":return J==="html"}switch(J){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Q!=="h1"&&Q!=="h2"&&Q!=="h3"&&Q!=="h4"&&Q!=="h5"&&Q!=="h6";case"rp":case"rt":return vI.indexOf(Q)===-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 Q==null}return!0},gI=function(J,Q){switch(J){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 Q.pTagInButtonScope;case"form":return Q.formTag||Q.pTagInButtonScope;case"li":return Q.listItemTagAutoclosing;case"dd":case"dt":return Q.dlItemTagAutoclosing;case"button":return Q.buttonTagInScope;case"a":return Q.aTagInScope;case"nobr":return Q.nobrTagInScope}return null},U2={};K0=function(J,Q,X){X=X||K2;var G=X.current,U=G&&G.tag;if(Q!=null){if(J!=null)$("validateDOMNesting: when childText is passed, childTag should be null");J="#text"}var q=uI(J,U)?null:G,O=q?null:gI(J,X),L=q||O;if(!L)return;var W=L.tag,H=!!q+"|"+J+"|"+W;if(U2[H])return;U2[H]=!0;var M=J,N="";if(J==="#text")if(/\S/.test(Q))M="Text nodes";else M="Whitespace text nodes",N=" Make sure you don't have any extra whitespace between tags on each line of your source code.";else M="<"+J+">";if(q){var P="";if(W==="table"&&J==="tr")P+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.";$("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",M,W,N,P)}else $("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",M,W)}}var MY="suppressHydrationWarning",FY="$",BY="/$",q0="$?",z0="$!",dI="style",dK=null,mK=null;function mI(J){var Q,X,G=J.nodeType;switch(G){case x8:case NG:{Q=G===x8?"#document":"#fragment";var U=J.documentElement;X=U?U.namespaceURI:PG(null,"");break}default:{var q=G===gQ?J.parentNode:J,O=q.namespaceURI||null;Q=q.tagName,X=PG(O,Q);break}}{var L=Q.toLowerCase(),W=U0(null,L);return{namespace:X,ancestorInfo:W}}}function cI(J,Q,X){{var G=J,U=PG(G.namespace,Q),q=U0(G.ancestorInfo,Q);return{namespace:U,ancestorInfo:q}}}function cK(J){return J}function pI(J){dK=dB(),mK=YI();var Q=null;return H3(!1),Q}function sI(J){GI(mK),H3(dK),dK=null,mK=null}function lI(J,Q,X,G,U){var q;{var O=G;if(K0(J,null,O.ancestorInfo),typeof Q.children==="string"||typeof Q.children==="number"){var L=""+Q.children,W=U0(O.ancestorInfo,J);K0(null,L,W)}q=O.namespace}var H=SI(J,Q,X,q);return L0(U,H),tK(H,Q),H}function iI(J,Q){J.appendChild(Q)}function nI(J,Q,X,G,U){switch(_I(J,Q,X,G),Q){case"button":case"input":case"select":case"textarea":return!!X.autoFocus;case"img":return!0;default:return!1}}function rI(J,Q,X,G,U,q){{var O=q;if(typeof G.children!==typeof X.children&&(typeof G.children==="string"||typeof G.children==="number")){var L=""+G.children,W=U0(O.ancestorInfo,Q);K0(null,L,W)}}return kI(J,Q,X,G)}function pK(J,Q){return J==="textarea"||J==="noscript"||typeof Q.children==="string"||typeof Q.children==="number"||typeof Q.dangerouslySetInnerHTML==="object"&&Q.dangerouslySetInnerHTML!==null&&Q.dangerouslySetInnerHTML.__html!=null}function oI(J,Q,X,G){{var U=X;K0(null,J,U.ancestorInfo)}var q=TI(J,Q);return L0(G,q),q}function tI(){var J=window.event;if(J===void 0)return g8;return M3(J.type)}var sK=typeof setTimeout==="function"?setTimeout:void 0,aI=typeof clearTimeout==="function"?clearTimeout:void 0,lK=-1,q2=typeof Promise==="function"?Promise:void 0,eI=typeof queueMicrotask==="function"?queueMicrotask:typeof q2<"u"?function(J){return q2.resolve(null).then(J).catch(Jj)}:sK;function Jj(J){setTimeout(function(){throw J})}function Qj(J,Q,X,G){switch(Q){case"button":case"input":case"select":case"textarea":if(X.autoFocus)J.focus();return;case"img":{if(X.src)J.src=X.src;return}}}function Zj(J,Q,X,G,U,q){EI(J,Q,X,G,U),tK(J,U)}function z2(J){y4(J,"")}function Xj(J,Q,X){J.nodeValue=X}function Yj(J,Q){J.appendChild(Q)}function Gj(J,Q){var X;if(J.nodeType===gQ)X=J.parentNode,X.insertBefore(Q,J);else X=J,X.appendChild(Q);var G=J._reactRootContainer;if((G===null||G===void 0)&&X.onclick===null)HY(X)}function Kj(J,Q,X){J.insertBefore(Q,X)}function Uj(J,Q,X){if(J.nodeType===gQ)J.parentNode.insertBefore(Q,X);else J.insertBefore(Q,X)}function qj(J,Q){J.removeChild(Q)}function zj(J,Q){if(J.nodeType===gQ)J.parentNode.removeChild(Q);else J.removeChild(Q)}function iK(J,Q){var X=Q,G=0;do{var U=X.nextSibling;if(J.removeChild(X),U&&U.nodeType===gQ){var q=U.data;if(q===BY)if(G===0){J.removeChild(U),s6(Q);return}else G--;else if(q===FY||q===q0||q===z0)G++}X=U}while(X);s6(Q)}function $j(J,Q){if(J.nodeType===gQ)iK(J.parentNode,Q);else if(J.nodeType===lZ)iK(J,Q);s6(J)}function Oj(J){J=J;var Q=J.style;if(typeof Q.setProperty==="function")Q.setProperty("display","none","important");else Q.display="none"}function Lj(J){J.nodeValue=""}function Wj(J,Q){J=J;var X=Q[dI],G=X!==void 0&&X!==null&&X.hasOwnProperty("display")?X.display:null;J.style.display=wG("display",G)}function Dj(J,Q){J.nodeValue=Q}function Hj(J){if(J.nodeType===lZ)J.textContent="";else if(J.nodeType===x8){if(J.documentElement)J.removeChild(J.documentElement)}}function Mj(J,Q,X){if(J.nodeType!==lZ||Q.toLowerCase()!==J.nodeName.toLowerCase())return null;return J}function Fj(J,Q){if(Q===""||J.nodeType!==C8)return null;return J}function Bj(J){if(J.nodeType!==gQ)return null;return J}function $2(J){return J.data===q0}function nK(J){return J.data===z0}function Aj(J){var Q=J.nextSibling&&J.nextSibling.dataset,X,G,U;if(Q)X=Q.dgst,G=Q.msg,U=Q.stck;return{message:G,digest:X,stack:U}}function Ij(J,Q){J._reactRetry=Q}function AY(J){for(;J!=null;J=J.nextSibling){var Q=J.nodeType;if(Q===lZ||Q===C8)break;if(Q===gQ){var X=J.data;if(X===FY||X===z0||X===q0)break;if(X===BY)return null}}return J}function $0(J){return AY(J.nextSibling)}function jj(J){return AY(J.firstChild)}function Pj(J){return AY(J.firstChild)}function Nj(J){return AY(J.nextSibling)}function wj(J,Q,X,G,U,q,O){L0(q,J),tK(J,X);var L;{var W=U;L=W.namespace}var H=(q.mode&dJ)!==MJ;return xI(J,Q,X,L,G,H,O)}function Rj(J,Q,X,G){L0(X,J);var U=(X.mode&dJ)!==MJ;return hI(J,Q)}function Vj(J,Q){L0(Q,J)}function Sj(J){var Q=J.nextSibling,X=0;while(Q){if(Q.nodeType===gQ){var G=Q.data;if(G===BY)if(X===0)return $0(Q);else X--;else if(G===FY||G===z0||G===q0)X++}Q=Q.nextSibling}return null}function O2(J){var Q=J.previousSibling,X=0;while(Q){if(Q.nodeType===gQ){var G=Q.data;if(G===FY||G===z0||G===q0)if(X===0)return Q;else X--;else if(G===BY)X++}Q=Q.previousSibling}return null}function Tj(J){s6(J)}function _j(J){s6(J)}function kj(J){return J!=="head"&&J!=="body"}function Ej(J,Q,X,G){var U=!0;DY(Q.nodeValue,X,G,U)}function Cj(J,Q,X,G,U,q){if(Q[MY]!==!0){var O=!0;DY(G.nodeValue,U,q,O)}}function xj(J,Q){if(Q.nodeType===lZ)fK(J,Q);else if(Q.nodeType===gQ);else vK(J,Q)}function hj(J,Q){{var X=J.parentNode;if(X!==null)if(Q.nodeType===lZ)fK(X,Q);else if(Q.nodeType===gQ);else vK(X,Q)}}function bj(J,Q,X,G,U){if(U||Q[MY]!==!0)if(G.nodeType===lZ)fK(X,G);else if(G.nodeType===gQ);else vK(X,G)}function yj(J,Q,X){uK(J,Q)}function fj(J,Q){gK(J,Q)}function vj(J,Q,X){{var G=J.parentNode;if(G!==null)uK(G,Q)}}function uj(J,Q){{var X=J.parentNode;if(X!==null)gK(X,Q)}}function gj(J,Q,X,G,U,q){if(q||Q[MY]!==!0)uK(X,G)}function dj(J,Q,X,G,U){if(U||Q[MY]!==!0)gK(X,G)}function mj(J){$("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",J.nodeName.toLowerCase())}function cj(J){Z0(J)}var H1=Math.random().toString(36).slice(2),M1="__reactFiber$"+H1,rK="__reactProps$"+H1,O0="__reactContainer$"+H1,oK="__reactEvents$"+H1,pj="__reactListeners$"+H1,sj="__reactHandles$"+H1;function lj(J){delete J[M1],delete J[rK],delete J[oK],delete J[pj],delete J[sj]}function L0(J,Q){Q[M1]=J}function IY(J,Q){Q[O0]=J}function L2(J){J[O0]=null}function W0(J){return!!J[O0]}function F9(J){var Q=J[M1];if(Q)return Q;var X=J.parentNode;while(X){if(Q=X[O0]||X[M1],Q){var G=Q.alternate;if(Q.child!==null||G!==null&&G.child!==null){var U=O2(J);while(U!==null){var q=U[M1];if(q)return q;U=O2(U)}}return Q}J=X,X=J.parentNode}return null}function SX(J){var Q=J[M1]||J[O0];if(Q)if(Q.tag===k||Q.tag===a||Q.tag===c||Q.tag===_)return Q;else return null;return null}function F1(J){if(J.tag===k||J.tag===a)return J.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function jY(J){return J[rK]||null}function tK(J,Q){J[rK]=Q}function ij(J){var Q=J[oK];if(Q===void 0)Q=J[oK]=new Set;return Q}var W2={},D2=Z.ReactDebugCurrentFrame;function PY(J){if(J){var Q=J._owner,X=MX(J.type,J._source,Q?Q.type:null);D2.setExtraStackFrame(X)}else D2.setExtraStackFrame(null)}function n7(J,Q,X,G,U){{var q=Function.call.bind(Y7);for(var O in J)if(q(J,O)){var L=void 0;try{if(typeof J[O]!=="function"){var W=Error((G||"React class")+": "+X+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof J[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw W.name="Invariant Violation",W}L=J[O](Q,O,G,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(H){L=H}if(L&&!(L instanceof Error))PY(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).",G||"React class",X,O,typeof L),PY(null);if(L instanceof Error&&!(L.message in W2))W2[L.message]=!0,PY(U),$("Failed %s type: %s",X,L.message),PY(null)}}}var aK=[],NY;NY=[];var d8=-1;function TX(J){return{current:J}}function VZ(J,Q){if(d8<0){$("Unexpected pop.");return}if(Q!==NY[d8])$("Unexpected Fiber popped.");J.current=aK[d8],aK[d8]=null,NY[d8]=null,d8--}function SZ(J,Q,X){d8++,aK[d8]=J.current,NY[d8]=X,J.current=Q}var H2={},D7={};Object.freeze(D7);var m8=TX(D7),H8=TX(!1),eK=D7;function B1(J,Q,X){{if(X&&M8(Q))return eK;return m8.current}}function M2(J,Q,X){{var G=J.stateNode;G.__reactInternalMemoizedUnmaskedChildContext=Q,G.__reactInternalMemoizedMaskedChildContext=X}}function A1(J,Q){{var X=J.type,G=X.contextTypes;if(!G)return D7;var U=J.stateNode;if(U&&U.__reactInternalMemoizedUnmaskedChildContext===Q)return U.__reactInternalMemoizedMaskedChildContext;var q={};for(var O in G)q[O]=Q[O];{var L=EJ(J)||"Unknown";n7(G,q,"context",L)}if(U)M2(J,Q,q);return q}}function wY(){return H8.current}function M8(J){{var Q=J.childContextTypes;return Q!==null&&Q!==void 0}}function RY(J){VZ(H8,J),VZ(m8,J)}function JU(J){VZ(H8,J),VZ(m8,J)}function F2(J,Q,X){{if(m8.current!==D7)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");SZ(m8,Q,J),SZ(H8,X,J)}}function B2(J,Q,X){{var G=J.stateNode,U=Q.childContextTypes;if(typeof G.getChildContext!=="function"){{var q=EJ(J)||"Unknown";if(!H2[q])H2[q]=!0,$("%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.",q,q)}return X}var O=G.getChildContext();for(var L in O)if(!(L in U))throw Error((EJ(J)||"Unknown")+'.getChildContext(): key "'+L+'" is not defined in childContextTypes.');{var W=EJ(J)||"Unknown";n7(U,O,"child context",W)}return uJ({},X,O)}}function VY(J){{var Q=J.stateNode,X=Q&&Q.__reactInternalMemoizedMergedChildContext||D7;return eK=m8.current,SZ(m8,X,J),SZ(H8,H8.current,J),!0}}function A2(J,Q,X){{var G=J.stateNode;if(!G)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(X){var U=B2(J,Q,eK);G.__reactInternalMemoizedMergedChildContext=U,VZ(H8,J),VZ(m8,J),SZ(m8,U,J),SZ(H8,X,J)}else VZ(H8,J),SZ(H8,X,J)}}function nj(J){{if(!kF(J)||J.tag!==j)throw 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 Q=J;do{switch(Q.tag){case _:return Q.stateNode.context;case j:{var X=Q.type;if(M8(X))return Q.stateNode.__reactInternalMemoizedMergedChildContext;break}}Q=Q.return}while(Q!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var _X=0,SY=1,c8=null,QU=!1,ZU=!1;function I2(J){if(c8===null)c8=[J];else c8.push(J)}function rj(J){QU=!0,I2(J)}function j2(){if(QU)kX()}function kX(){if(!ZU&&c8!==null){ZU=!0;var J=0,Q=i7();try{var X=!0,G=c8;zZ(O7);for(;J<G.length;J++){var U=G[J];do U=U(X);while(U!==null)}c8=null,QU=!1}catch(q){if(c8!==null)c8=c8.slice(J+1);throw p$(m4,kX),q}finally{zZ(Q),ZU=!1}}return null}var I1=[],j1=0,TY=null,_Y=0,V7=[],S7=0,B9=null,p8=1,s8="";function oj(J){return I9(),(J.flags&y$)!==BJ}function tj(J){return I9(),_Y}function aj(){var J=s8,Q=p8,X=Q&~ej(Q);return X.toString(32)+J}function A9(J,Q){I9(),I1[j1++]=_Y,I1[j1++]=TY,TY=J,_Y=Q}function P2(J,Q,X){I9(),V7[S7++]=p8,V7[S7++]=s8,V7[S7++]=B9,B9=J;var G=p8,U=s8,q=kY(G)-1,O=G&~(1<<q),L=X+1,W=kY(Q)+q;if(W>30){var H=q-q%5,M=(1<<H)-1,N=(O&M).toString(32),P=O>>H,S=q-H,T=kY(Q)+S,E=L<<S,s=E|P,OJ=N+U;p8=1<<T|s,s8=OJ}else{var GJ=L<<q,yJ=GJ|O,fJ=U;p8=1<<W|yJ,s8=fJ}}function XU(J){I9();var Q=J.return;if(Q!==null){var X=1,G=0;A9(J,X),P2(J,X,G)}}function kY(J){return 32-o$(J)}function ej(J){return 1<<kY(J)-1}function YU(J){while(J===TY)TY=I1[--j1],I1[j1]=null,_Y=I1[--j1],I1[j1]=null;while(J===B9)B9=V7[--S7],V7[S7]=null,s8=V7[--S7],V7[S7]=null,p8=V7[--S7],V7[S7]=null}function JP(){if(I9(),B9!==null)return{id:p8,overflow:s8};else return null}function QP(J,Q){I9(),V7[S7++]=p8,V7[S7++]=s8,V7[S7++]=B9,p8=Q.id,s8=Q.overflow,B9=J}function I9(){if(!DZ())$("Expected to be hydrating. This is a bug in React. Please file an issue.")}var WZ=null,T7=null,r7=!1,j9=!1,EX=null;function ZP(){if(r7)$("We should not be hydrating here. This is a bug in React. Please file a bug.")}function N2(){j9=!0}function XP(){return j9}function YP(J){var Q=J.stateNode.containerInfo;return T7=Pj(Q),WZ=J,r7=!0,EX=null,j9=!1,!0}function GP(J,Q,X){if(T7=Nj(Q),WZ=J,r7=!0,EX=null,j9=!1,X!==null)QP(J,X);return!0}function w2(J,Q){switch(J.tag){case _:{xj(J.stateNode.containerInfo,Q);break}case k:{var X=(J.mode&dJ)!==MJ;bj(J.type,J.memoizedProps,J.stateNode,Q,X);break}case c:{var G=J.memoizedState;if(G.dehydrated!==null)hj(G.dehydrated,Q);break}}}function R2(J,Q){w2(J,Q);var X=WR();X.stateNode=Q,X.return=J;var G=J.deletions;if(G===null)J.deletions=[X],J.flags|=Y9;else G.push(X)}function GU(J,Q){{if(j9)return;switch(J.tag){case _:{var X=J.stateNode.containerInfo;switch(Q.tag){case k:var{type:G,pendingProps:U}=Q;yj(X,G);break;case a:var q=Q.pendingProps;fj(X,q);break}break}case k:{var{type:O,memoizedProps:L,stateNode:W}=J;switch(Q.tag){case k:{var{type:H,pendingProps:M}=Q,N=(J.mode&dJ)!==MJ;gj(O,L,W,H,M,N);break}case a:{var P=Q.pendingProps,S=(J.mode&dJ)!==MJ;dj(O,L,W,P,S);break}}break}case c:{var T=J.memoizedState,E=T.dehydrated;if(E!==null)switch(Q.tag){case k:var{type:s,pendingProps:OJ}=Q;vj(E,s);break;case a:var GJ=Q.pendingProps;uj(E,GJ);break}break}default:return}}}function V2(J,Q){Q.flags=Q.flags&~b8|dQ,GU(J,Q)}function S2(J,Q){switch(J.tag){case k:{var{type:X,pendingProps:G}=J,U=Mj(Q,X);if(U!==null)return J.stateNode=U,WZ=J,T7=jj(U),!0;return!1}case a:{var q=J.pendingProps,O=Fj(Q,q);if(O!==null)return J.stateNode=O,WZ=J,T7=null,!0;return!1}case c:{var L=Bj(Q);if(L!==null){var W={dehydrated:L,treeContext:JP(),retryLane:z7};J.memoizedState=W;var H=DR(L);return H.return=J,J.child=H,WZ=J,T7=null,!0}return!1}default:return!1}}function KU(J){return(J.mode&dJ)!==MJ&&(J.flags&aJ)===BJ}function UU(J){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function qU(J){if(!r7)return;var Q=T7;if(!Q){if(KU(J))GU(WZ,J),UU();V2(WZ,J),r7=!1,WZ=J;return}var X=Q;if(!S2(J,Q)){if(KU(J))GU(WZ,J),UU();Q=$0(X);var G=WZ;if(!Q||!S2(J,Q)){V2(WZ,J),r7=!1,WZ=J;return}R2(G,X)}}function KP(J,Q,X){var G=J.stateNode,U=!j9,q=wj(G,J.type,J.memoizedProps,Q,X,J,U);if(J.updateQueue=q,q!==null)return!0;return!1}function UP(J){var{stateNode:Q,memoizedProps:X}=J,G=Rj(Q,X,J);if(G){var U=WZ;if(U!==null)switch(U.tag){case _:{var q=U.stateNode.containerInfo,O=(U.mode&dJ)!==MJ;Ej(q,Q,X,O);break}case k:{var{type:L,memoizedProps:W,stateNode:H}=U,M=(U.mode&dJ)!==MJ;Cj(L,W,H,Q,X,M);break}}}return G}function qP(J){var Q=J.memoizedState,X=Q!==null?Q.dehydrated:null;if(!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vj(X,J)}function zP(J){var Q=J.memoizedState,X=Q!==null?Q.dehydrated:null;if(!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Sj(X)}function T2(J){var Q=J.return;while(Q!==null&&Q.tag!==k&&Q.tag!==_&&Q.tag!==c)Q=Q.return;WZ=Q}function EY(J){if(J!==WZ)return!1;if(!r7)return T2(J),r7=!0,!1;if(J.tag!==_&&(J.tag!==k||kj(J.type)&&!pK(J.type,J.memoizedProps))){var Q=T7;if(Q)if(KU(J))_2(J),UU();else while(Q)R2(J,Q),Q=$0(Q)}if(T2(J),J.tag===c)T7=zP(J);else T7=WZ?$0(J.stateNode):null;return!0}function $P(){return r7&&T7!==null}function _2(J){var Q=T7;while(Q)w2(J,Q),Q=$0(Q)}function P1(){WZ=null,T7=null,r7=!1,j9=!1}function k2(){if(EX!==null)wL(EX),EX=null}function DZ(){return r7}function zU(J){if(EX===null)EX=[J];else EX.push(J)}var OP=Z.ReactCurrentBatchConfig,LP=null;function WP(){return OP.transition}var o7={recordUnsafeLifecycleWarnings:function(J,Q){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(J,Q){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var DP=function(J){var Q=null,X=J;while(X!==null){if(X.mode&CQ)Q=X;X=X.return}return Q},P9=function(J){var Q=[];return J.forEach(function(X){Q.push(X)}),Q.sort().join(", ")},D0=[],H0=[],M0=[],F0=[],B0=[],A0=[],N9=new Set;o7.recordUnsafeLifecycleWarnings=function(J,Q){if(N9.has(J.type))return;if(typeof Q.componentWillMount==="function"&&Q.componentWillMount.__suppressDeprecationWarning!==!0)D0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillMount==="function")H0.push(J);if(typeof Q.componentWillReceiveProps==="function"&&Q.componentWillReceiveProps.__suppressDeprecationWarning!==!0)M0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillReceiveProps==="function")F0.push(J);if(typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate.__suppressDeprecationWarning!==!0)B0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillUpdate==="function")A0.push(J)},o7.flushPendingUnsafeLifecycleWarnings=function(){var J=new Set;if(D0.length>0)D0.forEach(function(P){J.add(EJ(P)||"Component"),N9.add(P.type)}),D0=[];var Q=new Set;if(H0.length>0)H0.forEach(function(P){Q.add(EJ(P)||"Component"),N9.add(P.type)}),H0=[];var X=new Set;if(M0.length>0)M0.forEach(function(P){X.add(EJ(P)||"Component"),N9.add(P.type)}),M0=[];var G=new Set;if(F0.length>0)F0.forEach(function(P){G.add(EJ(P)||"Component"),N9.add(P.type)}),F0=[];var U=new Set;if(B0.length>0)B0.forEach(function(P){U.add(EJ(P)||"Component"),N9.add(P.type)}),B0=[];var q=new Set;if(A0.length>0)A0.forEach(function(P){q.add(EJ(P)||"Component"),N9.add(P.type)}),A0=[];if(Q.size>0){var O=P9(Q);$(`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.
|
|
41
|
+
Check the render method of \``+J+"`.";return""}var j6=["value","defaultValue"];function FG(J){{l9("select",J);for(var Q=0;Q<j6.length;Q++){var X=j6[Q];if(J[X]==null)continue;var G=tJ(J[X]);if(J.multiple&&!G)$("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",X,n9());else if(!J.multiple&&G)$("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",X,n9())}}}function k8(J,Q,X,G){var U=J.options;if(Q){var q=X,O={};for(var L=0;L<q.length;L++)O["$"+q[L]]=!0;for(var W=0;W<U.length;W++){var H=O.hasOwnProperty("$"+U[W].value);if(U[W].selected!==H)U[W].selected=H;if(H&&G)U[W].defaultSelected=!0}}else{var M=sZ(O8(X)),N=null;for(var P=0;P<U.length;P++){if(U[P].value===M){if(U[P].selected=!0,G)U[P].defaultSelected=!0;return}if(N===null&&!U[P].disabled)N=U[P]}if(N!==null)N.selected=!0}}function P6(J,Q){return uJ({},Q,{value:void 0})}function N6(J,Q){var X=J;if(FG(Q),X._wrapperState={wasMultiple:!!Q.multiple},Q.value!==void 0&&Q.defaultValue!==void 0&&!Z9)$("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"),Z9=!0}function BG(J,Q){var X=J;X.multiple=!!Q.multiple;var G=Q.value;if(G!=null)k8(X,!!Q.multiple,G,!1);else if(Q.defaultValue!=null)k8(X,!!Q.multiple,Q.defaultValue,!0)}function RM(J,Q){var X=J,G=X._wrapperState.wasMultiple;X._wrapperState.wasMultiple=!!Q.multiple;var U=Q.value;if(U!=null)k8(X,!!Q.multiple,U,!1);else if(G!==!!Q.multiple)if(Q.defaultValue!=null)k8(X,!!Q.multiple,Q.defaultValue,!0);else k8(X,!!Q.multiple,Q.multiple?[]:"",!1)}function SM(J,Q){var X=J,G=Q.value;if(G!=null)k8(X,!!Q.multiple,G,!1)}var L$=!1;function AG(J,Q){var X=J;if(Q.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var G=uJ({},Q,{value:void 0,defaultValue:void 0,children:sZ(X._wrapperState.initialValue)});return G}function W$(J,Q){var X=J;if(l9("textarea",Q),Q.value!==void 0&&Q.defaultValue!==void 0&&!L$)$("%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",FX()||"A component"),L$=!0;var G=Q.value;if(G==null){var{children:U,defaultValue:q}=Q;if(U!=null){$("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(q!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(tJ(U)){if(U.length>1)throw Error("<textarea> can only have at most one child.");U=U[0]}q=U}}if(q==null)q="";G=q}X._wrapperState={initialValue:O8(G)}}function D$(J,Q){var X=J,G=O8(Q.value),U=O8(Q.defaultValue);if(G!=null){var q=sZ(G);if(q!==X.value)X.value=q;if(Q.defaultValue==null&&X.defaultValue!==q)X.defaultValue=q}if(U!=null)X.defaultValue=sZ(U)}function H$(J,Q){var X=J,G=X.textContent;if(G===X._wrapperState.initialValue){if(G!==""&&G!==null)X.value=G}}function _M(J,Q){D$(J,Q)}var E8="http://www.w3.org/1999/xhtml",TM="http://www.w3.org/1998/Math/MathML",IG="http://www.w3.org/2000/svg";function jG(J){switch(J){case"svg":return IG;case"math":return TM;default:return E8}}function PG(J,Q){if(J==null||J===E8)return jG(Q);if(J===IG&&Q==="foreignObject")return E8;return J}var kM=function(J){if(typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction)return function(Q,X,G,U){MSApp.execUnsafeLocalFunction(function(){return J(Q,X,G,U)})};else return J},b4,M$=kM(function(J,Q){if(J.namespaceURI===IG){if(!("innerHTML"in J)){b4=b4||document.createElement("div"),b4.innerHTML="<svg>"+Q.valueOf().toString()+"</svg>";var X=b4.firstChild;while(J.firstChild)J.removeChild(J.firstChild);while(X.firstChild)J.appendChild(X.firstChild);return}}J.innerHTML=Q}),lZ=1,C8=3,gQ=8,x8=9,NG=11,y4=function(J,Q){if(Q){var X=J.firstChild;if(X&&X===J.lastChild&&X.nodeType===C8){X.nodeValue=Q;return}}J.textContent=Q},EM={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"]},w6={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 CM(J,Q){return J+Q.charAt(0).toUpperCase()+Q.substring(1)}var xM=["Webkit","ms","Moz","O"];Object.keys(w6).forEach(function(J){xM.forEach(function(Q){w6[CM(Q,J)]=w6[J]})});function wG(J,Q,X){var G=Q==null||typeof Q==="boolean"||Q==="";if(G)return"";if(!X&&typeof Q==="number"&&Q!==0&&!(w6.hasOwnProperty(J)&&w6[J]))return Q+"px";return P7(Q,J),(""+Q).trim()}var hM=/([A-Z])/g,bM=/^ms-/;function yM(J){return J.replace(hM,"-$1").toLowerCase().replace(bM,"-ms-")}var F$=function(){};{var fM=/^(?:webkit|moz|o)[A-Z]/,vM=/^-ms-/,uM=/-(.)/g,B$=/;\s*$/,o9={},VG={},A$=!1,I$=!1,gM=function(J){return J.replace(uM,function(Q,X){return X.toUpperCase()})},dM=function(J){if(o9.hasOwnProperty(J)&&o9[J])return;o9[J]=!0,$("Unsupported style property %s. Did you mean %s?",J,gM(J.replace(vM,"ms-")))},mM=function(J){if(o9.hasOwnProperty(J)&&o9[J])return;o9[J]=!0,$("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))},cM=function(J,Q){if(VG.hasOwnProperty(Q)&&VG[Q])return;VG[Q]=!0,$(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,Q.replace(B$,""))},pM=function(J,Q){if(A$)return;A$=!0,$("`NaN` is an invalid value for the `%s` css style property.",J)},sM=function(J,Q){if(I$)return;I$=!0,$("`Infinity` is an invalid value for the `%s` css style property.",J)};F$=function(J,Q){if(J.indexOf("-")>-1)dM(J);else if(fM.test(J))mM(J);else if(B$.test(Q))cM(J,Q);if(typeof Q==="number"){if(isNaN(Q))pM(J,Q);else if(!isFinite(Q))sM(J,Q)}}}var lM=F$;function iM(J){{var Q="",X="";for(var G in J){if(!J.hasOwnProperty(G))continue;var U=J[G];if(U!=null){var q=G.indexOf("--")===0;Q+=X+(q?G:yM(G))+":",Q+=wG(G,U,q),X=";"}}return Q||null}}function j$(J,Q){var X=J.style;for(var G in Q){if(!Q.hasOwnProperty(G))continue;var U=G.indexOf("--")===0;if(!U)lM(G,Q[G]);var q=wG(G,Q[G],U);if(G==="float")G="cssFloat";if(U)X.setProperty(G,q);else X[G]=q}}function rM(J){return J==null||typeof J==="boolean"||J===""}function P$(J){var Q={};for(var X in J){var G=EM[X]||[X];for(var U=0;U<G.length;U++)Q[G[U]]=X}return Q}function nM(J,Q){{if(!Q)return;var X=P$(J),G=P$(Q),U={};for(var q in X){var O=X[q],L=G[q];if(L&&O!==L){var W=O+","+L;if(U[W])continue;U[W]=!0,$("%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.",rM(J[O])?"Removing":"Updating",O,L)}}}}var oM={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},tM=uJ({menuitem:!0},oM),aM="__html";function RG(J,Q){if(!Q)return;if(tM[J]){if(Q.children!=null||Q.dangerouslySetInnerHTML!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.")}if(Q.dangerouslySetInnerHTML!=null){if(Q.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Q.dangerouslySetInnerHTML!=="object"||!(aM in Q.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!Q.suppressContentEditableWarning&&Q.contentEditable&&Q.children!=null)$("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.");if(Q.style!=null&&typeof Q.style!=="object")throw 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 X9(J,Q){if(J.indexOf("-")===-1)return typeof Q.is==="string";switch(J){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 f4={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"},N$={"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},t9={},eM=new RegExp("^(aria)-["+U7+"]*$"),JF=new RegExp("^(aria)[A-Z]["+U7+"]*$");function QF(J,Q){{if(Y7.call(t9,Q)&&t9[Q])return!0;if(JF.test(Q)){var X="aria-"+Q.slice(4).toLowerCase(),G=N$.hasOwnProperty(X)?X:null;if(G==null)return $("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Q),t9[Q]=!0,!0;if(Q!==G)return $("Invalid ARIA attribute `%s`. Did you mean `%s`?",Q,G),t9[Q]=!0,!0}if(eM.test(Q)){var U=Q.toLowerCase(),q=N$.hasOwnProperty(U)?U:null;if(q==null)return t9[Q]=!0,!1;if(Q!==q)return $("Unknown ARIA attribute `%s`. Did you mean `%s`?",Q,q),t9[Q]=!0,!0}}return!0}function ZF(J,Q){{var X=[];for(var G in Q){var U=QF(J,G);if(!U)X.push(G)}var q=X.map(function(O){return"`"+O+"`"}).join(", ");if(X.length===1)$("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,J);else if(X.length>1)$("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,J)}}function XF(J,Q){if(X9(J,Q))return;ZF(J,Q)}var w$=!1;function YF(J,Q){{if(J!=="input"&&J!=="textarea"&&J!=="select")return;if(Q!=null&&Q.value===null&&!w$)if(w$=!0,J==="select"&&Q.multiple)$("`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.",J);else $("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",J)}}var V$=function(){};{var EZ={},R$=/^on./,GF=/^on[^A-Z]/,KF=new RegExp("^(aria)-["+U7+"]*$"),UF=new RegExp("^(aria)[A-Z]["+U7+"]*$");V$=function(J,Q,X,G){if(Y7.call(EZ,Q)&&EZ[Q])return!0;var U=Q.toLowerCase();if(U==="onfocusin"||U==="onfocusout")return $("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."),EZ[Q]=!0,!0;if(G!=null){var{registrationNameDependencies:q,possibleRegistrationNames:O}=G;if(q.hasOwnProperty(Q))return!0;var L=O.hasOwnProperty(U)?O[U]:null;if(L!=null)return $("Invalid event handler property `%s`. Did you mean `%s`?",Q,L),EZ[Q]=!0,!0;if(R$.test(Q))return $("Unknown event handler property `%s`. It will be ignored.",Q),EZ[Q]=!0,!0}else if(R$.test(Q)){if(GF.test(Q))$("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Q);return EZ[Q]=!0,!0}if(KF.test(Q)||UF.test(Q))return!0;if(U==="innerhtml")return $("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),EZ[Q]=!0,!0;if(U==="aria")return $("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),EZ[Q]=!0,!0;if(U==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return $("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),EZ[Q]=!0,!0;if(typeof X==="number"&&isNaN(X))return $("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Q),EZ[Q]=!0,!0;var W=wZ(Q),H=W!==null&&W.type===K7;if(f4.hasOwnProperty(U)){var M=f4[U];if(M!==Q)return $("Invalid DOM property `%s`. Did you mean `%s`?",Q,M),EZ[Q]=!0,!0}else if(!H&&Q!==U)return $("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.",Q,U),EZ[Q]=!0,!0;if(typeof X==="boolean"&&lQ(Q,X,W,!1)){if(X)$('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()}.',X,Q,Q,X,Q);else $('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.',X,Q,Q,X,Q,Q,Q);return EZ[Q]=!0,!0}if(H)return!0;if(lQ(Q,X,W,!1))return EZ[Q]=!0,!1;if((X==="false"||X==="true")&&W!==null&&W.type===NZ)return $("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",X,Q,X==="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".',Q,X),EZ[Q]=!0,!0;return!0}}var qF=function(J,Q,X){{var G=[];for(var U in Q){var q=V$(J,U,Q[U],X);if(!q)G.push(U)}var O=G.map(function(L){return"`"+L+"`"}).join(", ");if(G.length===1)$("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 ",O,J);else if(G.length>1)$("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 ",O,J)}};function zF(J,Q,X){if(X9(J,Q))return;qF(J,Q,X)}var S$=1,SG=2,V6=4,$F=S$|SG|V6,R6=null;function OF(J){if(R6!==null)$("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.");R6=J}function LF(){if(R6===null)$("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.");R6=null}function WF(J){return J===R6}function _G(J){var Q=J.target||J.srcElement||window;if(Q.correspondingUseElement)Q=Q.correspondingUseElement;return Q.nodeType===C8?Q.parentNode:Q}var TG=null,a9=null,e9=null;function _$(J){var Q=SX(J);if(!Q)return;if(typeof TG!=="function")throw 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 X=Q.stateNode;if(X){var G=jY(X);TG(Q.stateNode,Q.type,G)}}function DF(J){TG=J}function T$(J){if(a9)if(e9)e9.push(J);else e9=[J];else a9=J}function HF(){return a9!==null||e9!==null}function k$(){if(!a9)return;var J=a9,Q=e9;if(a9=null,e9=null,_$(J),Q)for(var X=0;X<Q.length;X++)_$(Q[X])}var E$=function(J,Q){return J(Q)},C$=function(){},kG=!1;function MF(){var J=HF();if(J)C$(),k$()}function x$(J,Q,X){if(kG)return J(Q,X);kG=!0;try{return E$(J,Q,X)}finally{kG=!1,MF()}}function FF(J,Q,X){E$=J,C$=X}function BF(J){return J==="button"||J==="input"||J==="select"||J==="textarea"}function AF(J,Q,X){switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(X.disabled&&BF(Q));default:return!1}}function S6(J,Q){var X=J.stateNode;if(X===null)return null;var G=jY(X);if(G===null)return null;var U=G[Q];if(AF(Q,J.type,G))return null;if(U&&typeof U!=="function")throw Error("Expected `"+Q+"` listener to be a function, instead got a value of `"+typeof U+"` type.");return U}var EG=!1;if(bQ)try{var _6={};Object.defineProperty(_6,"passive",{get:function(){EG=!0}}),window.addEventListener("test",_6,_6),window.removeEventListener("test",_6,_6)}catch(J){EG=!1}function h$(J,Q,X,G,U,q,O,L,W){var H=Array.prototype.slice.call(arguments,3);try{Q.apply(X,H)}catch(M){this.onError(M)}}var b$=h$;if(typeof window<"u"&&typeof window.dispatchEvent==="function"&&typeof document<"u"&&typeof document.createEvent==="function"){var CG=document.createElement("react");b$=function(Q,X,G,U,q,O,L,W,H){if(typeof document>"u"||document===null)throw 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 M=document.createEvent("Event"),N=!1,P=!0,S=window.event,_=Object.getOwnPropertyDescriptor(window,"event");function E(){if(CG.removeEventListener(x,OJ,!1),typeof window.event<"u"&&window.hasOwnProperty("event"))window.event=S}var s=Array.prototype.slice.call(arguments,3);function OJ(){N=!0,E(),X.apply(G,s),P=!1}var GJ,yJ=!1,fJ=!1;function w(V){if(GJ=V.error,yJ=!0,GJ===null&&V.colno===0&&V.lineno===0)fJ=!0;if(V.defaultPrevented){if(GJ!=null&&typeof GJ==="object")try{GJ._suppressLogging=!0}catch(u){}}}var x="react-"+(Q?Q:"invokeguardedcallback");if(window.addEventListener("error",w),CG.addEventListener(x,OJ,!1),M.initEvent(x,!1,!1),CG.dispatchEvent(M),_)Object.defineProperty(window,"event",_);if(N&&P){if(!yJ)GJ=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.`);else if(fJ)GJ=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.");this.onError(GJ)}if(window.removeEventListener("error",w),!N)return E(),h$.apply(this,arguments)}}var IF=b$,J1=!1,v4=null,u4=!1,xG=null,jF={onError:function(J){J1=!0,v4=J}};function hG(J,Q,X,G,U,q,O,L,W){J1=!1,v4=null,IF.apply(jF,arguments)}function PF(J,Q,X,G,U,q,O,L,W){if(hG.apply(this,arguments),J1){var H=bG();if(!u4)u4=!0,xG=H}}function NF(){if(u4){var J=xG;throw u4=!1,xG=null,J}}function wF(){return J1}function bG(){if(J1){var J=v4;return J1=!1,v4=null,J}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Q1(J){return J._reactInternals}function VF(J){return J._reactInternals!==void 0}function RF(J,Q){J._reactInternals=Q}var BJ=0,Z1=1,dQ=2,pJ=4,Y9=16,T6=32,yG=64,aJ=128,h8=256,IX=512,G9=1024,s7=2048,b8=4096,K9=8192,g4=16384,SF=s7|pJ|yG|IX|G9|g4,_F=32767,k6=32768,CZ=65536,fG=131072,y$=1048576,vG=2097152,U9=4194304,uG=8388608,y8=16777216,d4=33554432,gG=pJ|G9|0,dG=dQ|pJ|Y9|T6|IX|b8|K9,E6=pJ|yG|IX|K9,X1=s7|Y9,f8=U9|uG|vG,TF=Z.ReactCurrentOwner;function q9(J){var Q=J,X=J;if(!J.alternate){var G=Q;do{if(Q=G,(Q.flags&(dQ|b8))!==BJ)X=Q.return;G=Q.return}while(G)}else while(Q.return)Q=Q.return;if(Q.tag===T)return X;return null}function f$(J){if(J.tag===c){var Q=J.memoizedState;if(Q===null){var X=J.alternate;if(X!==null)Q=X.memoizedState}if(Q!==null)return Q.dehydrated}return null}function v$(J){return J.tag===T?J.stateNode.containerInfo:null}function kF(J){return q9(J)===J}function EF(J){{var Q=TF.current;if(Q!==null&&Q.tag===j){var X=Q,G=X.stateNode;if(!G._warnedAboutRefsInRender)$("%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.",EJ(X)||"A component");G._warnedAboutRefsInRender=!0}}var U=Q1(J);if(!U)return!1;return q9(U)===U}function u$(J){if(q9(J)!==J)throw Error("Unable to find node on an unmounted component.")}function g$(J){var Q=J.alternate;if(!Q){var X=q9(J);if(X===null)throw Error("Unable to find node on an unmounted component.");if(X!==J)return null;return J}var G=J,U=Q;while(!0){var q=G.return;if(q===null)break;var O=q.alternate;if(O===null){var L=q.return;if(L!==null){G=U=L;continue}break}if(q.child===O.child){var W=q.child;while(W){if(W===G)return u$(q),J;if(W===U)return u$(q),Q;W=W.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==U.return)G=q,U=O;else{var H=!1,M=q.child;while(M){if(M===G){H=!0,G=q,U=O;break}if(M===U){H=!0,U=q,G=O;break}M=M.sibling}if(!H){M=O.child;while(M){if(M===G){H=!0,G=O,U=q;break}if(M===U){H=!0,U=O,G=q;break}M=M.sibling}if(!H)throw 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(G.alternate!==U)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(G.tag!==T)throw Error("Unable to find node on an unmounted component.");if(G.stateNode.current===G)return J;return Q}function d$(J){var Q=g$(J);return Q!==null?m$(Q):null}function m$(J){if(J.tag===k||J.tag===a)return J;var Q=J.child;while(Q!==null){var X=m$(Q);if(X!==null)return X;Q=Q.sibling}return null}function CF(J){var Q=g$(J);return Q!==null?c$(Q):null}function c$(J){if(J.tag===k||J.tag===a)return J;var Q=J.child;while(Q!==null){if(Q.tag!==y){var X=c$(Q);if(X!==null)return X}Q=Q.sibling}return null}var p$=qQ.unstable_scheduleCallback,xF=qQ.unstable_cancelCallback,hF=qQ.unstable_shouldYield,bF=qQ.unstable_requestPaint,KZ=qQ.unstable_now,yF=qQ.unstable_getCurrentPriorityLevel,m4=qQ.unstable_ImmediatePriority,mG=qQ.unstable_UserBlockingPriority,z9=qQ.unstable_NormalPriority,fF=qQ.unstable_LowPriority,cG=qQ.unstable_IdlePriority,vF=qQ.unstable_yieldValue,uF=qQ.unstable_setDisableYieldValue,$9=null,LZ=null,o=null,L8=!1,l7=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function gF(J){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Q=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Q.isDisabled)return!0;if(!Q.supportsFiber)return $("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{if(cZ)J=uJ({},J,{getLaneLabelMap:lF,injectProfilingHooks:sF});$9=Q.inject(J),LZ=Q}catch(X){$("React instrumentation encountered an error: %s.",X)}if(Q.checkDCE)return!0;else return!1}function dF(J,Q){if(LZ&&typeof LZ.onScheduleFiberRoot==="function")try{LZ.onScheduleFiberRoot($9,J,Q)}catch(X){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",X)}}function mF(J,Q){if(LZ&&typeof LZ.onCommitFiberRoot==="function")try{var X=(J.current.flags&aJ)===aJ;if(Z7){var G;switch(Q){case O7:G=m4;break;case u8:G=mG;break;case g8:G=z9;break;case o4:G=cG;break;default:G=z9;break}LZ.onCommitFiberRoot($9,J,G,X)}else LZ.onCommitFiberRoot($9,J,void 0,X)}catch(U){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",U)}}function cF(J){if(LZ&&typeof LZ.onPostCommitFiberRoot==="function")try{LZ.onPostCommitFiberRoot($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}function pF(J){if(LZ&&typeof LZ.onCommitFiberUnmount==="function")try{LZ.onCommitFiberUnmount($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}function UZ(J){{if(typeof vF==="function")uF(J),K(J);if(LZ&&typeof LZ.setStrictMode==="function")try{LZ.setStrictMode($9,J)}catch(Q){if(!L8)L8=!0,$("React instrumentation encountered an error: %s",Q)}}}function sF(J){o=J}function lF(){{var J=new Map,Q=1;for(var X=0;X<sG;X++){var G=LB(Q);J.set(Q,G),Q*=2}return J}}function iF(J){if(o!==null&&typeof o.markCommitStarted==="function")o.markCommitStarted(J)}function s$(){if(o!==null&&typeof o.markCommitStopped==="function")o.markCommitStopped()}function C6(J){if(o!==null&&typeof o.markComponentRenderStarted==="function")o.markComponentRenderStarted(J)}function Y1(){if(o!==null&&typeof o.markComponentRenderStopped==="function")o.markComponentRenderStopped()}function rF(J){if(o!==null&&typeof o.markComponentPassiveEffectMountStarted==="function")o.markComponentPassiveEffectMountStarted(J)}function nF(){if(o!==null&&typeof o.markComponentPassiveEffectMountStopped==="function")o.markComponentPassiveEffectMountStopped()}function oF(J){if(o!==null&&typeof o.markComponentPassiveEffectUnmountStarted==="function")o.markComponentPassiveEffectUnmountStarted(J)}function tF(){if(o!==null&&typeof o.markComponentPassiveEffectUnmountStopped==="function")o.markComponentPassiveEffectUnmountStopped()}function aF(J){if(o!==null&&typeof o.markComponentLayoutEffectMountStarted==="function")o.markComponentLayoutEffectMountStarted(J)}function eF(){if(o!==null&&typeof o.markComponentLayoutEffectMountStopped==="function")o.markComponentLayoutEffectMountStopped()}function l$(J){if(o!==null&&typeof o.markComponentLayoutEffectUnmountStarted==="function")o.markComponentLayoutEffectUnmountStarted(J)}function i$(){if(o!==null&&typeof o.markComponentLayoutEffectUnmountStopped==="function")o.markComponentLayoutEffectUnmountStopped()}function JB(J,Q,X){if(o!==null&&typeof o.markComponentErrored==="function")o.markComponentErrored(J,Q,X)}function QB(J,Q,X){if(o!==null&&typeof o.markComponentSuspended==="function")o.markComponentSuspended(J,Q,X)}function ZB(J){if(o!==null&&typeof o.markLayoutEffectsStarted==="function")o.markLayoutEffectsStarted(J)}function XB(){if(o!==null&&typeof o.markLayoutEffectsStopped==="function")o.markLayoutEffectsStopped()}function YB(J){if(o!==null&&typeof o.markPassiveEffectsStarted==="function")o.markPassiveEffectsStarted(J)}function GB(){if(o!==null&&typeof o.markPassiveEffectsStopped==="function")o.markPassiveEffectsStopped()}function r$(J){if(o!==null&&typeof o.markRenderStarted==="function")o.markRenderStarted(J)}function KB(){if(o!==null&&typeof o.markRenderYielded==="function")o.markRenderYielded()}function n$(){if(o!==null&&typeof o.markRenderStopped==="function")o.markRenderStopped()}function UB(J){if(o!==null&&typeof o.markRenderScheduled==="function")o.markRenderScheduled(J)}function qB(J,Q){if(o!==null&&typeof o.markForceUpdateScheduled==="function")o.markForceUpdateScheduled(J,Q)}function pG(J,Q){if(o!==null&&typeof o.markStateUpdateScheduled==="function")o.markStateUpdateScheduled(J,Q)}var MJ=0,dJ=1,YQ=2,CQ=8,W8=16,o$=Math.clz32?Math.clz32:OB,zB=Math.log,$B=Math.LN2;function OB(J){var Q=J>>>0;if(Q===0)return 32;return 31-(zB(Q)/$B|0)|0}var sG=31,f=0,qZ=0,NJ=1,G1=2,v8=4,O9=8,D8=16,x6=32,K1=4194240,h6=64,lG=128,iG=256,rG=512,nG=1024,oG=2048,tG=4096,aG=8192,eG=16384,JK=32768,QK=65536,ZK=131072,XK=262144,YK=524288,GK=1048576,KK=2097152,c4=130023424,U1=4194304,UK=8388608,qK=16777216,zK=33554432,$K=67108864,t$=U1,b6=134217728,a$=268435455,y6=268435456,L9=536870912,z7=1073741824;function LB(J){{if(J&NJ)return"Sync";if(J&G1)return"InputContinuousHydration";if(J&v8)return"InputContinuous";if(J&O9)return"DefaultHydration";if(J&D8)return"Default";if(J&x6)return"TransitionHydration";if(J&K1)return"Transition";if(J&c4)return"Retry";if(J&b6)return"SelectiveHydration";if(J&y6)return"IdleHydration";if(J&L9)return"Idle";if(J&z7)return"Offscreen"}}var HQ=-1,p4=h6,s4=U1;function f6(J){switch(W9(J)){case NJ:return NJ;case G1:return G1;case v8:return v8;case O9:return O9;case D8:return D8;case x6:return x6;case h6:case lG:case iG:case rG:case nG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:case KK:return J&K1;case U1:case UK:case qK:case zK:case $K:return J&c4;case b6:return b6;case y6:return y6;case L9:return L9;case z7:return z7;default:return $("Should have found matching lanes. This is a bug in React."),J}}function l4(J,Q){var X=J.pendingLanes;if(X===f)return f;var G=f,U=J.suspendedLanes,q=J.pingedLanes,O=X&a$;if(O!==f){var L=O&~U;if(L!==f)G=f6(L);else{var W=O&q;if(W!==f)G=f6(W)}}else{var H=X&~U;if(H!==f)G=f6(H);else if(q!==f)G=f6(q)}if(G===f)return f;if(Q!==f&&Q!==G&&(Q&U)===f){var M=W9(G),N=W9(Q);if(M>=N||M===D8&&(N&K1)!==f)return Q}if((G&v8)!==f)G|=X&D8;var P=J.entangledLanes;if(P!==f){var S=J.entanglements,_=G&P;while(_>0){var E=D9(_),s=1<<E;G|=S[E],_&=~s}}return G}function WB(J,Q){var X=J.eventTimes,G=HQ;while(Q>0){var U=D9(Q),q=1<<U,O=X[U];if(O>G)G=O;Q&=~q}return G}function DB(J,Q){switch(J){case NJ:case G1:case v8:return Q+250;case O9:case D8:case x6:case h6:case lG:case iG:case rG:case nG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:case KK:return Q+5000;case U1:case UK:case qK:case zK:case $K:return HQ;case b6:case y6:case L9:case z7:return HQ;default:return $("Should have found matching lanes. This is a bug in React."),HQ}}function HB(J,Q){var{pendingLanes:X,suspendedLanes:G,pingedLanes:U,expirationTimes:q}=J,O=X;while(O>0){var L=D9(O),W=1<<L,H=q[L];if(H===HQ){if((W&G)===f||(W&U)!==f)q[L]=DB(W,Q)}else if(H<=Q)J.expiredLanes|=W;O&=~W}}function MB(J){return f6(J.pendingLanes)}function OK(J){var Q=J.pendingLanes&~z7;if(Q!==f)return Q;if(Q&z7)return z7;return f}function FB(J){return(J&NJ)!==f}function LK(J){return(J&a$)!==f}function e$(J){return(J&c4)===J}function BB(J){var Q=NJ|v8|D8;return(J&Q)===f}function AB(J){return(J&K1)===J}function i4(J,Q){var X=G1|v8|O9|D8;return(Q&X)!==f}function IB(J,Q){return(Q&J.expiredLanes)!==f}function J3(J){return(J&K1)!==f}function Q3(){var J=p4;if(p4<<=1,(p4&K1)===f)p4=h6;return J}function jB(){var J=s4;if(s4<<=1,(s4&c4)===f)s4=U1;return J}function W9(J){return J&-J}function v6(J){return W9(J)}function D9(J){return 31-o$(J)}function WK(J){return D9(J)}function $7(J,Q){return(J&Q)!==f}function q1(J,Q){return(J&Q)===Q}function xJ(J,Q){return J|Q}function r4(J,Q){return J&~Q}function Z3(J,Q){return J&Q}function n4(J){return J}function PB(J,Q){return J!==qZ&&J<Q?J:Q}function DK(J){var Q=[];for(var X=0;X<sG;X++)Q.push(J);return Q}function u6(J,Q,X){if(J.pendingLanes|=Q,Q!==L9)J.suspendedLanes=f,J.pingedLanes=f;var G=J.eventTimes,U=WK(Q);G[U]=X}function NB(J,Q){J.suspendedLanes|=Q,J.pingedLanes&=~Q;var X=J.expirationTimes,G=Q;while(G>0){var U=D9(G),q=1<<U;X[U]=HQ,G&=~q}}function X3(J,Q,X){J.pingedLanes|=J.suspendedLanes&Q}function wB(J,Q){var X=J.pendingLanes&~Q;J.pendingLanes=Q,J.suspendedLanes=f,J.pingedLanes=f,J.expiredLanes&=Q,J.mutableReadLanes&=Q,J.entangledLanes&=Q;var{entanglements:G,eventTimes:U,expirationTimes:q}=J,O=X;while(O>0){var L=D9(O),W=1<<L;G[L]=f,U[L]=HQ,q[L]=HQ,O&=~W}}function HK(J,Q){var X=J.entangledLanes|=Q,G=J.entanglements,U=X;while(U){var q=D9(U),O=1<<q;if(O&Q|G[q]&Q)G[q]|=Q;U&=~O}}function VB(J,Q){var X=W9(Q),G;switch(X){case v8:G=G1;break;case D8:G=O9;break;case h6:case lG:case iG:case rG:case nG:case oG:case tG:case aG:case eG:case JK:case QK:case ZK:case XK:case YK:case GK:case KK:case U1:case UK:case qK:case zK:case $K:G=x6;break;case L9:G=y6;break;default:G=qZ;break}if((G&(J.suspendedLanes|Q))!==qZ)return qZ;return G}function Y3(J,Q,X){if(!l7)return;var G=J.pendingUpdatersLaneMap;while(X>0){var U=WK(X),q=1<<U,O=G[U];O.add(Q),X&=~q}}function G3(J,Q){if(!l7)return;var{pendingUpdatersLaneMap:X,memoizedUpdaters:G}=J;while(Q>0){var U=WK(Q),q=1<<U,O=X[U];if(O.size>0)O.forEach(function(L){var W=L.alternate;if(W===null||!G.has(W))G.add(L)}),O.clear();Q&=~q}}function K3(J,Q){return null}var O7=NJ,u8=v8,g8=D8,o4=L9,g6=qZ;function i7(){return g6}function zZ(J){g6=J}function RB(J,Q){var X=g6;try{return g6=J,Q()}finally{g6=X}}function SB(J,Q){return J!==0&&J<Q?J:Q}function _B(J,Q){return J===0||J>Q?J:Q}function MK(J,Q){return J!==0&&J<Q}function U3(J){var Q=W9(J);if(!MK(O7,Q))return O7;if(!MK(u8,Q))return u8;if(LK(Q))return g8;return o4}function t4(J){var Q=J.current.memoizedState;return Q.isDehydrated}var q3;function TB(J){q3=J}function kB(J){q3(J)}var FK;function EB(J){FK=J}var z3;function CB(J){z3=J}var $3;function xB(J){$3=J}var O3;function hB(J){O3=J}var BK=!1,a4=[],jX=null,PX=null,NX=null,d6=new Map,m6=new Map,wX=[],bB=["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 yB(J){return bB.indexOf(J)>-1}function fB(J,Q,X,G,U){return{blockedOn:J,domEventName:Q,eventSystemFlags:X,nativeEvent:U,targetContainers:[G]}}function L3(J,Q){switch(J){case"focusin":case"focusout":jX=null;break;case"dragenter":case"dragleave":PX=null;break;case"mouseover":case"mouseout":NX=null;break;case"pointerover":case"pointerout":{var X=Q.pointerId;d6.delete(X);break}case"gotpointercapture":case"lostpointercapture":{var G=Q.pointerId;m6.delete(G);break}}}function c6(J,Q,X,G,U,q){if(J===null||J.nativeEvent!==q){var O=fB(Q,X,G,U,q);if(Q!==null){var L=SX(Q);if(L!==null)FK(L)}return O}J.eventSystemFlags|=G;var W=J.targetContainers;if(U!==null&&W.indexOf(U)===-1)W.push(U);return J}function vB(J,Q,X,G,U){switch(Q){case"focusin":{var q=U;return jX=c6(jX,J,Q,X,G,q),!0}case"dragenter":{var O=U;return PX=c6(PX,J,Q,X,G,O),!0}case"mouseover":{var L=U;return NX=c6(NX,J,Q,X,G,L),!0}case"pointerover":{var W=U,H=W.pointerId;return d6.set(H,c6(d6.get(H)||null,J,Q,X,G,W)),!0}case"gotpointercapture":{var M=U,N=M.pointerId;return m6.set(N,c6(m6.get(N)||null,J,Q,X,G,M)),!0}}return!1}function W3(J){var Q=F9(J.target);if(Q!==null){var X=q9(Q);if(X!==null){var G=X.tag;if(G===c){var U=f$(X);if(U!==null){J.blockedOn=U,O3(J.priority,function(){z3(X)});return}}else if(G===T){var q=X.stateNode;if(t4(q)){J.blockedOn=v$(X);return}}}}J.blockedOn=null}function uB(J){var Q=$3(),X={blockedOn:null,target:J,priority:Q},G=0;for(;G<wX.length;G++)if(!MK(Q,wX[G].priority))break;if(wX.splice(G,0,X),G===0)W3(X)}function e4(J){if(J.blockedOn!==null)return!1;var Q=J.targetContainers;while(Q.length>0){var X=Q[0],G=jK(J.domEventName,J.eventSystemFlags,X,J.nativeEvent);if(G===null){var U=J.nativeEvent,q=new U.constructor(U.type,U);OF(q),U.target.dispatchEvent(q),LF()}else{var O=SX(G);if(O!==null)FK(O);return J.blockedOn=G,!1}Q.shift()}return!0}function D3(J,Q,X){if(e4(J))X.delete(Q)}function gB(){if(BK=!1,jX!==null&&e4(jX))jX=null;if(PX!==null&&e4(PX))PX=null;if(NX!==null&&e4(NX))NX=null;d6.forEach(D3),m6.forEach(D3)}function p6(J,Q){if(J.blockedOn===Q){if(J.blockedOn=null,!BK)BK=!0,qQ.unstable_scheduleCallback(qQ.unstable_NormalPriority,gB)}}function s6(J){if(a4.length>0){p6(a4[0],J);for(var Q=1;Q<a4.length;Q++){var X=a4[Q];if(X.blockedOn===J)X.blockedOn=null}}if(jX!==null)p6(jX,J);if(PX!==null)p6(PX,J);if(NX!==null)p6(NX,J);var G=function(L){return p6(L,J)};d6.forEach(G),m6.forEach(G);for(var U=0;U<wX.length;U++){var q=wX[U];if(q.blockedOn===J)q.blockedOn=null}while(wX.length>0){var O=wX[0];if(O.blockedOn!==null)break;else if(W3(O),O.blockedOn===null)wX.shift()}}var z1=Z.ReactCurrentBatchConfig,AK=!0;function H3(J){AK=!!J}function dB(){return AK}function mB(J,Q,X){var G=M3(Q),U;switch(G){case O7:U=cB;break;case u8:U=pB;break;case g8:default:U=IK;break}return U.bind(null,Q,X,J)}function cB(J,Q,X,G){var U=i7(),q=z1.transition;z1.transition=null;try{zZ(O7),IK(J,Q,X,G)}finally{zZ(U),z1.transition=q}}function pB(J,Q,X,G){var U=i7(),q=z1.transition;z1.transition=null;try{zZ(u8),IK(J,Q,X,G)}finally{zZ(U),z1.transition=q}}function IK(J,Q,X,G){if(!AK)return;sB(J,Q,X,G)}function sB(J,Q,X,G){var U=jK(J,Q,X,G);if(U===null){bK(J,Q,G,JY,X),L3(J,G);return}if(vB(U,J,Q,X,G)){G.stopPropagation();return}if(L3(J,G),Q&V6&&yB(J)){while(U!==null){var q=SX(U);if(q!==null)kB(q);var O=jK(J,Q,X,G);if(O===null)bK(J,Q,G,JY,X);if(O===U)break;U=O}if(U!==null)G.stopPropagation();return}bK(J,Q,G,null,X)}var JY=null;function jK(J,Q,X,G){JY=null;var U=_G(G),q=F9(U);if(q!==null){var O=q9(q);if(O===null)q=null;else{var L=O.tag;if(L===c){var W=f$(O);if(W!==null)return W;q=null}else if(L===T){var H=O.stateNode;if(t4(H))return v$(O);q=null}else if(O!==q)q=null}}return JY=q,null}function M3(J){switch(J){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 O7;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 u8;case"message":{var Q=yF();switch(Q){case m4:return O7;case mG:return u8;case z9:case fF:return g8;case cG:return o4;default:return g8}}default:return g8}}function lB(J,Q,X){return J.addEventListener(Q,X,!1),X}function iB(J,Q,X){return J.addEventListener(Q,X,!0),X}function rB(J,Q,X,G){return J.addEventListener(Q,X,{capture:!0,passive:G}),X}function nB(J,Q,X,G){return J.addEventListener(Q,X,{passive:G}),X}var l6=null,PK=null,i6=null;function oB(J){return l6=J,PK=B3(),!0}function tB(){l6=null,PK=null,i6=null}function F3(){if(i6)return i6;var J,Q=PK,X=Q.length,G,U=B3(),q=U.length;for(J=0;J<X;J++)if(Q[J]!==U[J])break;var O=X-J;for(G=1;G<=O;G++)if(Q[X-G]!==U[q-G])break;var L=G>1?1-G:void 0;return i6=U.slice(J,L),i6}function B3(){if("value"in l6)return l6.value;return l6.textContent}function QY(J){var Q,X=J.keyCode;if("charCode"in J){if(Q=J.charCode,Q===0&&X===13)Q=13}else Q=X;if(Q===10)Q=13;if(Q>=32||Q===13)return Q;return 0}function ZY(){return!0}function A3(){return!1}function L7(J){function Q(X,G,U,q,O){this._reactName=X,this._targetInst=U,this.type=G,this.nativeEvent=q,this.target=O,this.currentTarget=null;for(var L in J){if(!J.hasOwnProperty(L))continue;var W=J[L];if(W)this[L]=W(q);else this[L]=q[L]}var H=q.defaultPrevented!=null?q.defaultPrevented:q.returnValue===!1;if(H)this.isDefaultPrevented=ZY;else this.isDefaultPrevented=A3;return this.isPropagationStopped=A3,this}return uJ(Q.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;if(!X)return;if(X.preventDefault)X.preventDefault();else if(typeof X.returnValue!=="unknown")X.returnValue=!1;this.isDefaultPrevented=ZY},stopPropagation:function(){var X=this.nativeEvent;if(!X)return;if(X.stopPropagation)X.stopPropagation();else if(typeof X.cancelBubble!=="unknown")X.cancelBubble=!0;this.isPropagationStopped=ZY},persist:function(){},isPersistent:ZY}),Q}var $1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(J){return J.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},NK=L7($1),r6=uJ({},$1,{view:0,detail:0}),aB=L7(r6),wK,VK,n6;function eB(J){if(J!==n6){if(n6&&J.type==="mousemove")wK=J.screenX-n6.screenX,VK=J.screenY-n6.screenY;else wK=0,VK=0;n6=J}}var XY=uJ({},r6,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:SK,button:0,buttons:0,relatedTarget:function(J){if(J.relatedTarget===void 0)return J.fromElement===J.srcElement?J.toElement:J.fromElement;return J.relatedTarget},movementX:function(J){if("movementX"in J)return J.movementX;return eB(J),wK},movementY:function(J){if("movementY"in J)return J.movementY;return VK}}),I3=L7(XY),JA=uJ({},XY,{dataTransfer:0}),QA=L7(JA),ZA=uJ({},r6,{relatedTarget:0}),RK=L7(ZA),XA=uJ({},$1,{animationName:0,elapsedTime:0,pseudoElement:0}),YA=L7(XA),GA=uJ({},$1,{clipboardData:function(J){return"clipboardData"in J?J.clipboardData:window.clipboardData}}),KA=L7(GA),UA=uJ({},$1,{data:0}),j3=L7(UA),qA=j3,zA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$A={"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 OA(J){if(J.key){var Q=zA[J.key]||J.key;if(Q!=="Unidentified")return Q}if(J.type==="keypress"){var X=QY(J);return X===13?"Enter":String.fromCharCode(X)}if(J.type==="keydown"||J.type==="keyup")return $A[J.keyCode]||"Unidentified";return""}var LA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function WA(J){var Q=this,X=Q.nativeEvent;if(X.getModifierState)return X.getModifierState(J);var G=LA[J];return G?!!X[G]:!1}function SK(J){return WA}var DA=uJ({},r6,{key:OA,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:SK,charCode:function(J){if(J.type==="keypress")return QY(J);return 0},keyCode:function(J){if(J.type==="keydown"||J.type==="keyup")return J.keyCode;return 0},which:function(J){if(J.type==="keypress")return QY(J);if(J.type==="keydown"||J.type==="keyup")return J.keyCode;return 0}}),HA=L7(DA),MA=uJ({},XY,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),P3=L7(MA),FA=uJ({},r6,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:SK}),BA=L7(FA),AA=uJ({},$1,{propertyName:0,elapsedTime:0,pseudoElement:0}),IA=L7(AA),jA=uJ({},XY,{deltaX:function(J){return"deltaX"in J?J.deltaX:("wheelDeltaX"in J)?-J.wheelDeltaX:0},deltaY:function(J){return"deltaY"in J?J.deltaY:("wheelDeltaY"in J)?-J.wheelDeltaY:("wheelDelta"in J)?-J.wheelDelta:0},deltaZ:0,deltaMode:0}),PA=L7(jA),NA=[9,13,27,32],N3=229,_K=bQ&&"CompositionEvent"in window,o6=null;if(bQ&&"documentMode"in document)o6=document.documentMode;var wA=bQ&&"TextEvent"in window&&!o6,w3=bQ&&(!_K||o6&&o6>8&&o6<=11),V3=32,R3=String.fromCharCode(V3);function VA(){PZ("onBeforeInput",["compositionend","keypress","textInput","paste"]),PZ("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),PZ("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),PZ("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var S3=!1;function RA(J){return(J.ctrlKey||J.altKey||J.metaKey)&&!(J.ctrlKey&&J.altKey)}function SA(J){switch(J){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function _A(J,Q){return J==="keydown"&&Q.keyCode===N3}function _3(J,Q){switch(J){case"keyup":return NA.indexOf(Q.keyCode)!==-1;case"keydown":return Q.keyCode!==N3;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T3(J){var Q=J.detail;if(typeof Q==="object"&&"data"in Q)return Q.data;return null}function k3(J){return J.locale==="ko"}var O1=!1;function TA(J,Q,X,G,U){var q,O;if(_K)q=SA(Q);else if(!O1){if(_A(Q,G))q="onCompositionStart"}else if(_3(Q,G))q="onCompositionEnd";if(!q)return null;if(w3&&!k3(G)){if(!O1&&q==="onCompositionStart")O1=oB(U);else if(q==="onCompositionEnd"){if(O1)O=F3()}}var L=qY(X,q);if(L.length>0){var W=new j3(q,Q,null,G,U);if(J.push({event:W,listeners:L}),O)W.data=O;else{var H=T3(G);if(H!==null)W.data=H}}}function kA(J,Q){switch(J){case"compositionend":return T3(Q);case"keypress":var X=Q.which;if(X!==V3)return null;return S3=!0,R3;case"textInput":var G=Q.data;if(G===R3&&S3)return null;return G;default:return null}}function EA(J,Q){if(O1){if(J==="compositionend"||!_K&&_3(J,Q)){var X=F3();return tB(),O1=!1,X}return null}switch(J){case"paste":return null;case"keypress":if(!RA(Q)){if(Q.char&&Q.char.length>1)return Q.char;else if(Q.which)return String.fromCharCode(Q.which)}return null;case"compositionend":return w3&&!k3(Q)?null:Q.data;default:return null}}function CA(J,Q,X,G,U){var q;if(wA)q=kA(Q,G);else q=EA(Q,G);if(!q)return null;var O=qY(X,"onBeforeInput");if(O.length>0){var L=new qA("onBeforeInput","beforeinput",null,G,U);J.push({event:L,listeners:O}),L.data=q}}function xA(J,Q,X,G,U,q,O){TA(J,Q,X,G,U),CA(J,Q,X,G,U)}var hA={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 E3(J){var Q=J&&J.nodeName&&J.nodeName.toLowerCase();if(Q==="input")return!!hA[J.type];if(Q==="textarea")return!0;return!1}function bA(J){if(!bQ)return!1;var Q="on"+J,X=Q in document;if(!X){var G=document.createElement("div");G.setAttribute(Q,"return;"),X=typeof G[Q]==="function"}return X}function yA(){PZ("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function C3(J,Q,X,G){T$(G);var U=qY(Q,"onChange");if(U.length>0){var q=new NK("onChange","change",null,X,G);J.push({event:q,listeners:U})}}var t6=null,a6=null;function fA(J){var Q=J.nodeName&&J.nodeName.toLowerCase();return Q==="select"||Q==="input"&&J.type==="file"}function vA(J){var Q=[];C3(Q,a6,J,_G(J)),x$(uA,Q)}function uA(J){o3(J,0)}function YY(J){var Q=F1(J);if(i9(Q))return J}function gA(J,Q){if(J==="change")return Q}var x3=!1;if(bQ)x3=bA("input")&&(!document.documentMode||document.documentMode>9);function dA(J,Q){t6=J,a6=Q,t6.attachEvent("onpropertychange",b3)}function h3(){if(!t6)return;t6.detachEvent("onpropertychange",b3),t6=null,a6=null}function b3(J){if(J.propertyName!=="value")return;if(YY(a6))vA(J)}function mA(J,Q,X){if(J==="focusin")h3(),dA(Q,X);else if(J==="focusout")h3()}function cA(J,Q){if(J==="selectionchange"||J==="keyup"||J==="keydown")return YY(a6)}function pA(J){var Q=J.nodeName;return Q&&Q.toLowerCase()==="input"&&(J.type==="checkbox"||J.type==="radio")}function sA(J,Q){if(J==="click")return YY(Q)}function lA(J,Q){if(J==="input"||J==="change")return YY(Q)}function iA(J){var Q=J._wrapperState;if(!Q||!Q.controlled||J.type!=="number")return;PJ(J,"number",J.value)}function rA(J,Q,X,G,U,q,O){var L=X?F1(X):window,W,H;if(fA(L))W=gA;else if(E3(L))if(x3)W=lA;else W=cA,H=mA;else if(pA(L))W=sA;if(W){var M=W(Q,X);if(M){C3(J,M,G,U);return}}if(H)H(Q,L,X);if(Q==="focusout")iA(L)}function nA(){I7("onMouseEnter",["mouseout","mouseover"]),I7("onMouseLeave",["mouseout","mouseover"]),I7("onPointerEnter",["pointerout","pointerover"]),I7("onPointerLeave",["pointerout","pointerover"])}function oA(J,Q,X,G,U,q,O){var L=Q==="mouseover"||Q==="pointerover",W=Q==="mouseout"||Q==="pointerout";if(L&&!WF(G)){var H=G.relatedTarget||G.fromElement;if(H){if(F9(H)||W0(H))return}}if(!W&&!L)return;var M;if(U.window===U)M=U;else{var N=U.ownerDocument;if(N)M=N.defaultView||N.parentWindow;else M=window}var P,S;if(W){var _=G.relatedTarget||G.toElement;if(P=X,S=_?F9(_):null,S!==null){var E=q9(S);if(S!==E||S.tag!==k&&S.tag!==a)S=null}}else P=null,S=X;if(P===S)return;var s=I3,OJ="onMouseLeave",GJ="onMouseEnter",yJ="mouse";if(Q==="pointerout"||Q==="pointerover")s=P3,OJ="onPointerLeave",GJ="onPointerEnter",yJ="pointer";var fJ=P==null?M:F1(P),w=S==null?M:F1(S),x=new s(OJ,yJ+"leave",P,G,U);x.target=fJ,x.relatedTarget=w;var V=null,u=F9(U);if(u===X){var e=new s(GJ,yJ+"enter",S,G,U);e.target=w,e.relatedTarget=fJ,V=e}II(J,x,V,P,S)}function tA(J,Q){return J===Q&&(J!==0||1/J===1/Q)||J!==J&&Q!==Q}var W7=typeof Object.is==="function"?Object.is:tA;function e6(J,Q){if(W7(J,Q))return!0;if(typeof J!=="object"||J===null||typeof Q!=="object"||Q===null)return!1;var X=Object.keys(J),G=Object.keys(Q);if(X.length!==G.length)return!1;for(var U=0;U<X.length;U++){var q=X[U];if(!Y7.call(Q,q)||!W7(J[q],Q[q]))return!1}return!0}function y3(J){while(J&&J.firstChild)J=J.firstChild;return J}function aA(J){while(J){if(J.nextSibling)return J.nextSibling;J=J.parentNode}}function f3(J,Q){var X=y3(J),G=0,U=0;while(X){if(X.nodeType===C8){if(U=G+X.textContent.length,G<=Q&&U>=Q)return{node:X,offset:Q-G};G=U}X=y3(aA(X))}}function eA(J){var Q=J.ownerDocument,X=Q&&Q.defaultView||window,G=X.getSelection&&X.getSelection();if(!G||G.rangeCount===0)return null;var{anchorNode:U,anchorOffset:q,focusNode:O,focusOffset:L}=G;try{U.nodeType,O.nodeType}catch(W){return null}return JI(J,U,q,O,L)}function JI(J,Q,X,G,U){var q=0,O=-1,L=-1,W=0,H=0,M=J,N=null;J:while(!0){var P=null;while(!0){if(M===Q&&(X===0||M.nodeType===C8))O=q+X;if(M===G&&(U===0||M.nodeType===C8))L=q+U;if(M.nodeType===C8)q+=M.nodeValue.length;if((P=M.firstChild)===null)break;N=M,M=P}while(!0){if(M===J)break J;if(N===Q&&++W===X)O=q;if(N===G&&++H===U)L=q;if((P=M.nextSibling)!==null)break;M=N,N=M.parentNode}M=P}if(O===-1||L===-1)return null;return{start:O,end:L}}function QI(J,Q){var X=J.ownerDocument||document,G=X&&X.defaultView||window;if(!G.getSelection)return;var U=G.getSelection(),q=J.textContent.length,O=Math.min(Q.start,q),L=Q.end===void 0?O:Math.min(Q.end,q);if(!U.extend&&O>L){var W=L;L=O,O=W}var H=f3(J,O),M=f3(J,L);if(H&&M){if(U.rangeCount===1&&U.anchorNode===H.node&&U.anchorOffset===H.offset&&U.focusNode===M.node&&U.focusOffset===M.offset)return;var N=X.createRange();if(N.setStart(H.node,H.offset),U.removeAllRanges(),O>L)U.addRange(N),U.extend(M.node,M.offset);else N.setEnd(M.node,M.offset),U.addRange(N)}}function v3(J){return J&&J.nodeType===C8}function u3(J,Q){if(!J||!Q)return!1;else if(J===Q)return!0;else if(v3(J))return!1;else if(v3(Q))return u3(J,Q.parentNode);else if("contains"in J)return J.contains(Q);else if(J.compareDocumentPosition)return!!(J.compareDocumentPosition(Q)&16);else return!1}function ZI(J){return J&&J.ownerDocument&&u3(J.ownerDocument.documentElement,J)}function XI(J){try{return typeof J.contentWindow.location.href==="string"}catch(Q){return!1}}function g3(){var J=window,Q=AX();while(Q instanceof J.HTMLIFrameElement){if(XI(Q))J=Q.contentWindow;else return Q;Q=AX(J.document)}return Q}function TK(J){var Q=J&&J.nodeName&&J.nodeName.toLowerCase();return Q&&(Q==="input"&&(J.type==="text"||J.type==="search"||J.type==="tel"||J.type==="url"||J.type==="password")||Q==="textarea"||J.contentEditable==="true")}function YI(){var J=g3();return{focusedElem:J,selectionRange:TK(J)?KI(J):null}}function GI(J){var Q=g3(),X=J.focusedElem,G=J.selectionRange;if(Q!==X&&ZI(X)){if(G!==null&&TK(X))UI(X,G);var U=[],q=X;while(q=q.parentNode)if(q.nodeType===lZ)U.push({element:q,left:q.scrollLeft,top:q.scrollTop});if(typeof X.focus==="function")X.focus();for(var O=0;O<U.length;O++){var L=U[O];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}}function KI(J){var Q;if("selectionStart"in J)Q={start:J.selectionStart,end:J.selectionEnd};else Q=eA(J);return Q||{start:0,end:0}}function UI(J,Q){var{start:X,end:G}=Q;if(G===void 0)G=X;if("selectionStart"in J)J.selectionStart=X,J.selectionEnd=Math.min(G,J.value.length);else QI(J,Q)}var qI=bQ&&"documentMode"in document&&document.documentMode<=11;function zI(){PZ("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var L1=null,kK=null,J0=null,EK=!1;function $I(J){if("selectionStart"in J&&TK(J))return{start:J.selectionStart,end:J.selectionEnd};else{var Q=J.ownerDocument&&J.ownerDocument.defaultView||window,X=Q.getSelection();return{anchorNode:X.anchorNode,anchorOffset:X.anchorOffset,focusNode:X.focusNode,focusOffset:X.focusOffset}}}function OI(J){return J.window===J?J.document:J.nodeType===x8?J:J.ownerDocument}function d3(J,Q,X){var G=OI(X);if(EK||L1==null||L1!==AX(G))return;var U=$I(L1);if(!J0||!e6(J0,U)){J0=U;var q=qY(kK,"onSelect");if(q.length>0){var O=new NK("onSelect","select",null,Q,X);J.push({event:O,listeners:q}),O.target=L1}}}function LI(J,Q,X,G,U,q,O){var L=X?F1(X):window;switch(Q){case"focusin":if(E3(L)||L.contentEditable==="true")L1=L,kK=X,J0=null;break;case"focusout":L1=null,kK=null,J0=null;break;case"mousedown":EK=!0;break;case"contextmenu":case"mouseup":case"dragend":EK=!1,d3(J,G,U);break;case"selectionchange":if(qI)break;case"keydown":case"keyup":d3(J,G,U)}}function GY(J,Q){var X={};return X[J.toLowerCase()]=Q.toLowerCase(),X["Webkit"+J]="webkit"+Q,X["Moz"+J]="moz"+Q,X}var W1={animationend:GY("Animation","AnimationEnd"),animationiteration:GY("Animation","AnimationIteration"),animationstart:GY("Animation","AnimationStart"),transitionend:GY("Transition","TransitionEnd")},CK={},m3={};if(bQ){if(m3=document.createElement("div").style,!("AnimationEvent"in window))delete W1.animationend.animation,delete W1.animationiteration.animation,delete W1.animationstart.animation;if(!("TransitionEvent"in window))delete W1.transitionend.transition}function KY(J){if(CK[J])return CK[J];else if(!W1[J])return J;var Q=W1[J];for(var X in Q)if(Q.hasOwnProperty(X)&&X in m3)return CK[J]=Q[X];return J}var c3=KY("animationend"),p3=KY("animationiteration"),s3=KY("animationstart"),l3=KY("transitionend"),i3=new Map,r3=["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 VX(J,Q){i3.set(J,Q),PZ(Q,[J])}function WI(){for(var J=0;J<r3.length;J++){var Q=r3[J],X=Q.toLowerCase(),G=Q[0].toUpperCase()+Q.slice(1);VX(X,"on"+G)}VX(c3,"onAnimationEnd"),VX(p3,"onAnimationIteration"),VX(s3,"onAnimationStart"),VX("dblclick","onDoubleClick"),VX("focusin","onFocus"),VX("focusout","onBlur"),VX(l3,"onTransitionEnd")}function DI(J,Q,X,G,U,q,O){var L=i3.get(Q);if(L===void 0)return;var W=NK,H=Q;switch(Q){case"keypress":if(QY(G)===0)return;case"keydown":case"keyup":W=HA;break;case"focusin":H="focus",W=RK;break;case"focusout":H="blur",W=RK;break;case"beforeblur":case"afterblur":W=RK;break;case"click":if(G.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=I3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=QA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=BA;break;case c3:case p3:case s3:W=YA;break;case l3:W=IA;break;case"scroll":W=aB;break;case"wheel":W=PA;break;case"copy":case"cut":case"paste":W=KA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=P3;break}var M=(q&V6)!==0;{var N=!M&&Q==="scroll",P=BI(X,L,G.type,M,N);if(P.length>0){var S=new W(L,H,null,G,U);J.push({event:S,listeners:P})}}}WI(),nA(),yA(),zI(),VA();function HI(J,Q,X,G,U,q,O){DI(J,Q,X,G,U,q);var L=(q&$F)===0;if(L)oA(J,Q,X,G,U),rA(J,Q,X,G,U),LI(J,Q,X,G,U),xA(J,Q,X,G,U)}var Q0=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],xK=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Q0));function n3(J,Q,X){var G=J.type||"unknown-event";J.currentTarget=X,PF(G,Q,void 0,J),J.currentTarget=null}function MI(J,Q,X){var G;if(X)for(var U=Q.length-1;U>=0;U--){var q=Q[U],O=q.instance,L=q.currentTarget,W=q.listener;if(O!==G&&J.isPropagationStopped())return;n3(J,W,L),G=O}else for(var H=0;H<Q.length;H++){var M=Q[H],N=M.instance,P=M.currentTarget,S=M.listener;if(N!==G&&J.isPropagationStopped())return;n3(J,S,P),G=N}}function o3(J,Q){var X=(Q&V6)!==0;for(var G=0;G<J.length;G++){var U=J[G],q=U.event,O=U.listeners;MI(q,O,X)}NF()}function FI(J,Q,X,G,U){var q=_G(X),O=[];HI(O,J,G,X,q,Q),o3(O,Q)}function PQ(J,Q){if(!xK.has(J))$('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',J);var X=!1,G=ij(Q),U=jI(J,X);if(!G.has(U))t3(Q,J,SG,X),G.add(U)}function hK(J,Q,X){if(xK.has(J)&&!Q)$('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',J);var G=0;if(Q)G|=V6;t3(X,J,G,Q)}var UY="_reactListening"+Math.random().toString(36).slice(2);function Z0(J){if(!J[UY]){J[UY]=!0,v7.forEach(function(X){if(X!=="selectionchange"){if(!xK.has(X))hK(X,!1,J);hK(X,!0,J)}});var Q=J.nodeType===x8?J:J.ownerDocument;if(Q!==null){if(!Q[UY])Q[UY]=!0,hK("selectionchange",!1,Q)}}}function t3(J,Q,X,G,U){var q=mB(J,Q,X),O=void 0;if(EG){if(Q==="touchstart"||Q==="touchmove"||Q==="wheel")O=!0}J=J;var L;if(G)if(O!==void 0)L=rB(J,Q,q,O);else L=iB(J,Q,q);else if(O!==void 0)L=nB(J,Q,q,O);else L=lB(J,Q,q)}function a3(J,Q){return J===Q||J.nodeType===gQ&&J.parentNode===Q}function bK(J,Q,X,G,U){var q=G;if((Q&S$)===0&&(Q&SG)===0){var O=U;if(G!==null){var L=G;J:while(!0){if(L===null)return;var W=L.tag;if(W===T||W===y){var H=L.stateNode.containerInfo;if(a3(H,O))break;if(W===y){var M=L.return;while(M!==null){var N=M.tag;if(N===T||N===y){var P=M.stateNode.containerInfo;if(a3(P,O))return}M=M.return}}while(H!==null){var S=F9(H);if(S===null)return;var _=S.tag;if(_===k||_===a){L=q=S;continue J}H=H.parentNode}}L=L.return}}}x$(function(){return FI(J,Q,X,q)})}function X0(J,Q,X){return{instance:J,listener:Q,currentTarget:X}}function BI(J,Q,X,G,U,q){var O=Q!==null?Q+"Capture":null,L=G?O:Q,W=[],H=J,M=null;while(H!==null){var N=H,P=N.stateNode,S=N.tag;if(S===k&&P!==null){if(M=P,L!==null){var _=S6(H,L);if(_!=null)W.push(X0(H,_,M))}}if(U)break;H=H.return}return W}function qY(J,Q){var X=Q+"Capture",G=[],U=J;while(U!==null){var q=U,O=q.stateNode,L=q.tag;if(L===k&&O!==null){var W=O,H=S6(U,X);if(H!=null)G.unshift(X0(U,H,W));var M=S6(U,Q);if(M!=null)G.push(X0(U,M,W))}U=U.return}return G}function D1(J){if(J===null)return null;do J=J.return;while(J&&J.tag!==k);if(J)return J;return null}function AI(J,Q){var X=J,G=Q,U=0;for(var q=X;q;q=D1(q))U++;var O=0;for(var L=G;L;L=D1(L))O++;while(U-O>0)X=D1(X),U--;while(O-U>0)G=D1(G),O--;var W=U;while(W--){if(X===G||G!==null&&X===G.alternate)return X;X=D1(X),G=D1(G)}return null}function e3(J,Q,X,G,U){var q=Q._reactName,O=[],L=X;while(L!==null){if(L===G)break;var W=L,H=W.alternate,M=W.stateNode,N=W.tag;if(H!==null&&H===G)break;if(N===k&&M!==null){var P=M;if(U){var S=S6(L,q);if(S!=null)O.unshift(X0(L,S,P))}else if(!U){var _=S6(L,q);if(_!=null)O.push(X0(L,_,P))}}L=L.return}if(O.length!==0)J.push({event:Q,listeners:O})}function II(J,Q,X,G,U){var q=G&&U?AI(G,U):null;if(G!==null)e3(J,Q,G,q,!1);if(U!==null&&X!==null)e3(J,X,U,q,!0)}function jI(J,Q){return J+"__"+(Q?"capture":"bubble")}var iZ=!1,Y0="dangerouslySetInnerHTML",zY="suppressContentEditableWarning",RX="suppressHydrationWarning",J2="autoFocus",H9="children",M9="style",$Y="__html",yK,OY,G0,Q2,LY,Z2,X2;yK={dialog:!0,webview:!0},OY=function(J,Q){XF(J,Q),YF(J,Q),zF(J,Q,{registrationNameDependencies:ZZ,possibleRegistrationNames:X7})},Z2=bQ&&!document.documentMode,G0=function(J,Q,X){if(iZ)return;var G=WY(X),U=WY(Q);if(U===G)return;iZ=!0,$("Prop `%s` did not match. Server: %s Client: %s",J,JSON.stringify(U),JSON.stringify(G))},Q2=function(J){if(iZ)return;iZ=!0;var Q=[];J.forEach(function(X){Q.push(X)}),$("Extra attributes from the server: %s",Q)},LY=function(J,Q){if(Q===!1)$("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.",J,J,J);else $("Expected `%s` listener to be a function, instead got a value of `%s` type.",J,typeof Q)},X2=function(J,Q){var X=J.namespaceURI===E8?J.ownerDocument.createElement(J.tagName):J.ownerDocument.createElementNS(J.namespaceURI,J.tagName);return X.innerHTML=Q,X.innerHTML};var PI=/\r\n?/g,NI=/\u0000|\uFFFD/g;function WY(J){qX(J);var Q=typeof J==="string"?J:""+J;return Q.replace(PI,`
|
|
42
|
+
`).replace(NI,"")}function DY(J,Q,X,G){var U=WY(Q),q=WY(J);if(q===U)return;if(G){if(!iZ)iZ=!0,$('Text content did not match. Server: "%s" Client: "%s"',q,U)}if(X&&QJ)throw Error("Text content does not match server-rendered HTML.")}function Y2(J){return J.nodeType===x8?J:J.ownerDocument}function wI(){}function HY(J){J.onclick=wI}function VI(J,Q,X,G,U){for(var q in G){if(!G.hasOwnProperty(q))continue;var O=G[q];if(q===M9){if(O)Object.freeze(O);j$(Q,O)}else if(q===Y0){var L=O?O[$Y]:void 0;if(L!=null)M$(Q,L)}else if(q===H9){if(typeof O==="string"){var W=J!=="textarea"||O!=="";if(W)y4(Q,O)}else if(typeof O==="number")y4(Q,""+O)}else if(q===zY||q===RX);else if(q===J2);else if(ZZ.hasOwnProperty(q)){if(O!=null){if(typeof O!=="function")LY(q,O);if(q==="onScroll")PQ("scroll",Q)}}else if(O!=null)OX(Q,q,O,U)}}function RI(J,Q,X,G){for(var U=0;U<Q.length;U+=2){var q=Q[U],O=Q[U+1];if(q===M9)j$(J,O);else if(q===Y0)M$(J,O);else if(q===H9)y4(J,O);else OX(J,q,O,G)}}function SI(J,Q,X,G){var U,q=Y2(X),O,L=G;if(L===E8)L=jG(J);if(L===E8){if(U=X9(J,Q),!U&&J!==J.toLowerCase())$("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",J);if(J==="script"){var W=q.createElement("div");W.innerHTML="<script></script>";var H=W.firstChild;O=W.removeChild(H)}else if(typeof Q.is==="string")O=q.createElement(J,{is:Q.is});else if(O=q.createElement(J),J==="select"){var M=O;if(Q.multiple)M.multiple=!0;else if(Q.size)M.size=Q.size}}else O=q.createElementNS(L,J);if(L===E8){if(!U&&Object.prototype.toString.call(O)==="[object HTMLUnknownElement]"&&!Y7.call(yK,J))yK[J]=!0,$("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",J)}return O}function _I(J,Q){return Y2(Q).createTextNode(J)}function TI(J,Q,X,G){var U=X9(Q,X);OY(Q,X);var q;switch(Q){case"dialog":PQ("cancel",J),PQ("close",J),q=X;break;case"iframe":case"object":case"embed":PQ("load",J),q=X;break;case"video":case"audio":for(var O=0;O<Q0.length;O++)PQ(Q0[O],J);q=X;break;case"source":PQ("error",J),q=X;break;case"img":case"image":case"link":PQ("error",J),PQ("load",J),q=X;break;case"details":PQ("toggle",J),q=X;break;case"input":A(J,X),q=D(J,X),PQ("invalid",J);break;case"option":WQ(J,X),q=X;break;case"select":N6(J,X),q=P6(J,X),PQ("invalid",J);break;case"textarea":W$(J,X),q=AG(J,X),PQ("invalid",J);break;default:q=X}switch(RG(Q,q),VI(Q,J,G,q,U),Q){case"input":T8(J),m(J,X,!1);break;case"textarea":T8(J),H$(J);break;case"option":jQ(J,X);break;case"select":BG(J,X);break;default:if(typeof q.onClick==="function")HY(J);break}}function kI(J,Q,X,G,U){OY(Q,G);var q=null,O,L;switch(Q){case"input":O=D(J,X),L=D(J,G),q=[];break;case"select":O=P6(J,X),L=P6(J,G),q=[];break;case"textarea":O=AG(J,X),L=AG(J,G),q=[];break;default:if(O=X,L=G,typeof O.onClick!=="function"&&typeof L.onClick==="function")HY(J);break}RG(Q,L);var W,H,M=null;for(W in O){if(L.hasOwnProperty(W)||!O.hasOwnProperty(W)||O[W]==null)continue;if(W===M9){var N=O[W];for(H in N)if(N.hasOwnProperty(H)){if(!M)M={};M[H]=""}}else if(W===Y0||W===H9);else if(W===zY||W===RX);else if(W===J2);else if(ZZ.hasOwnProperty(W)){if(!q)q=[]}else(q=q||[]).push(W,null)}for(W in L){var P=L[W],S=O!=null?O[W]:void 0;if(!L.hasOwnProperty(W)||P===S||P==null&&S==null)continue;if(W===M9){if(P)Object.freeze(P);if(S){for(H in S)if(S.hasOwnProperty(H)&&(!P||!P.hasOwnProperty(H))){if(!M)M={};M[H]=""}for(H in P)if(P.hasOwnProperty(H)&&S[H]!==P[H]){if(!M)M={};M[H]=P[H]}}else{if(!M){if(!q)q=[];q.push(W,M)}M=P}}else if(W===Y0){var _=P?P[$Y]:void 0,E=S?S[$Y]:void 0;if(_!=null){if(E!==_)(q=q||[]).push(W,_)}}else if(W===H9){if(typeof P==="string"||typeof P==="number")(q=q||[]).push(W,""+P)}else if(W===zY||W===RX);else if(ZZ.hasOwnProperty(W)){if(P!=null){if(typeof P!=="function")LY(W,P);if(W==="onScroll")PQ("scroll",J)}if(!q&&S!==P)q=[]}else(q=q||[]).push(W,P)}if(M)nM(M,L[M9]),(q=q||[]).push(M9,M);return q}function EI(J,Q,X,G,U){if(X==="input"&&U.type==="radio"&&U.name!=null)R(J,U);var q=X9(X,G),O=X9(X,U);switch(RI(J,Q,q,O),X){case"input":C(J,U);break;case"textarea":D$(J,U);break;case"select":RM(J,U);break}}function CI(J){{var Q=J.toLowerCase();if(!f4.hasOwnProperty(Q))return null;return f4[Q]||null}}function xI(J,Q,X,G,U,q,O){var L,W;switch(L=X9(Q,X),OY(Q,X),Q){case"dialog":PQ("cancel",J),PQ("close",J);break;case"iframe":case"object":case"embed":PQ("load",J);break;case"video":case"audio":for(var H=0;H<Q0.length;H++)PQ(Q0[H],J);break;case"source":PQ("error",J);break;case"img":case"image":case"link":PQ("error",J),PQ("load",J);break;case"details":PQ("toggle",J);break;case"input":A(J,X),PQ("invalid",J);break;case"option":WQ(J,X);break;case"select":N6(J,X),PQ("invalid",J);break;case"textarea":W$(J,X),PQ("invalid",J);break}RG(Q,X);{W=new Set;var M=J.attributes;for(var N=0;N<M.length;N++){var P=M[N].name.toLowerCase();switch(P){case"value":break;case"checked":break;case"selected":break;default:W.add(M[N].name)}}}var S=null;for(var _ in X){if(!X.hasOwnProperty(_))continue;var E=X[_];if(_===H9){if(typeof E==="string"){if(J.textContent!==E){if(X[RX]!==!0)DY(J.textContent,E,q,O);S=[H9,E]}}else if(typeof E==="number"){if(J.textContent!==""+E){if(X[RX]!==!0)DY(J.textContent,E,q,O);S=[H9,""+E]}}}else if(ZZ.hasOwnProperty(_)){if(E!=null){if(typeof E!=="function")LY(_,E);if(_==="onScroll")PQ("scroll",J)}}else if(O&&!0&&typeof L==="boolean"){var s=void 0,OJ=L&&$Q?null:wZ(_);if(X[RX]===!0);else if(_===zY||_===RX||_==="value"||_==="checked"||_==="selected");else if(_===Y0){var GJ=J.innerHTML,yJ=E?E[$Y]:void 0;if(yJ!=null){var fJ=X2(J,yJ);if(fJ!==GJ)G0(_,GJ,fJ)}}else if(_===M9){if(W.delete(_),Z2){var w=iM(E);if(s=J.getAttribute("style"),w!==s)G0(_,s,w)}}else if(L&&!$Q){if(W.delete(_.toLowerCase()),s=$X(J,_,E),E!==s)G0(_,s,E)}else if(!OQ(_,OJ,L)&&!AQ(_,E,OJ,L)){var x=!1;if(OJ!==null)W.delete(OJ.attributeName),s=q8(J,_,E,OJ);else{var V=G;if(V===E8)V=jG(Q);if(V===E8)W.delete(_.toLowerCase());else{var u=CI(_);if(u!==null&&u!==_)x=!0,W.delete(u);W.delete(_)}s=$X(J,_,E)}var e=$Q;if(!e&&E!==s&&!x)G0(_,s,E)}}}if(O){if(W.size>0&&X[RX]!==!0)Q2(W)}switch(Q){case"input":T8(J),m(J,X,!0);break;case"textarea":T8(J),H$(J);break;case"select":case"option":break;default:if(typeof X.onClick==="function")HY(J);break}return S}function hI(J,Q,X){var G=J.nodeValue!==Q;return G}function fK(J,Q){{if(iZ)return;iZ=!0,$("Did not expect server HTML to contain a <%s> in <%s>.",Q.nodeName.toLowerCase(),J.nodeName.toLowerCase())}}function vK(J,Q){{if(iZ)return;iZ=!0,$('Did not expect server HTML to contain the text node "%s" in <%s>.',Q.nodeValue,J.nodeName.toLowerCase())}}function uK(J,Q,X){{if(iZ)return;iZ=!0,$("Expected server HTML to contain a matching <%s> in <%s>.",Q,J.nodeName.toLowerCase())}}function gK(J,Q){{if(Q==="")return;if(iZ)return;iZ=!0,$('Expected server HTML to contain a matching text node for "%s" in <%s>.',Q,J.nodeName.toLowerCase())}}function bI(J,Q,X){switch(Q){case"input":IJ(J,X);return;case"textarea":_M(J,X);return;case"select":SM(J,X);return}}var K0=function(){},U0=function(){};{var yI=["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"],G2=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],fI=G2.concat(["button"]),vI=["dd","dt","li","option","optgroup","p","rp","rt"],K2={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};U0=function(J,Q){var X=uJ({},J||K2),G={tag:Q};if(G2.indexOf(Q)!==-1)X.aTagInScope=null,X.buttonTagInScope=null,X.nobrTagInScope=null;if(fI.indexOf(Q)!==-1)X.pTagInButtonScope=null;if(yI.indexOf(Q)!==-1&&Q!=="address"&&Q!=="div"&&Q!=="p")X.listItemTagAutoclosing=null,X.dlItemTagAutoclosing=null;if(X.current=G,Q==="form")X.formTag=G;if(Q==="a")X.aTagInScope=G;if(Q==="button")X.buttonTagInScope=G;if(Q==="nobr")X.nobrTagInScope=G;if(Q==="p")X.pTagInButtonScope=G;if(Q==="li")X.listItemTagAutoclosing=G;if(Q==="dd"||Q==="dt")X.dlItemTagAutoclosing=G;return X};var uI=function(J,Q){switch(Q){case"select":return J==="option"||J==="optgroup"||J==="#text";case"optgroup":return J==="option"||J==="#text";case"option":return J==="#text";case"tr":return J==="th"||J==="td"||J==="style"||J==="script"||J==="template";case"tbody":case"thead":case"tfoot":return J==="tr"||J==="style"||J==="script"||J==="template";case"colgroup":return J==="col"||J==="template";case"table":return J==="caption"||J==="colgroup"||J==="tbody"||J==="tfoot"||J==="thead"||J==="style"||J==="script"||J==="template";case"head":return J==="base"||J==="basefont"||J==="bgsound"||J==="link"||J==="meta"||J==="title"||J==="noscript"||J==="noframes"||J==="style"||J==="script"||J==="template";case"html":return J==="head"||J==="body"||J==="frameset";case"frameset":return J==="frame";case"#document":return J==="html"}switch(J){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Q!=="h1"&&Q!=="h2"&&Q!=="h3"&&Q!=="h4"&&Q!=="h5"&&Q!=="h6";case"rp":case"rt":return vI.indexOf(Q)===-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 Q==null}return!0},gI=function(J,Q){switch(J){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 Q.pTagInButtonScope;case"form":return Q.formTag||Q.pTagInButtonScope;case"li":return Q.listItemTagAutoclosing;case"dd":case"dt":return Q.dlItemTagAutoclosing;case"button":return Q.buttonTagInScope;case"a":return Q.aTagInScope;case"nobr":return Q.nobrTagInScope}return null},U2={};K0=function(J,Q,X){X=X||K2;var G=X.current,U=G&&G.tag;if(Q!=null){if(J!=null)$("validateDOMNesting: when childText is passed, childTag should be null");J="#text"}var q=uI(J,U)?null:G,O=q?null:gI(J,X),L=q||O;if(!L)return;var W=L.tag,H=!!q+"|"+J+"|"+W;if(U2[H])return;U2[H]=!0;var M=J,N="";if(J==="#text")if(/\S/.test(Q))M="Text nodes";else M="Whitespace text nodes",N=" Make sure you don't have any extra whitespace between tags on each line of your source code.";else M="<"+J+">";if(q){var P="";if(W==="table"&&J==="tr")P+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.";$("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",M,W,N,P)}else $("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",M,W)}}var MY="suppressHydrationWarning",FY="$",BY="/$",q0="$?",z0="$!",dI="style",dK=null,mK=null;function mI(J){var Q,X,G=J.nodeType;switch(G){case x8:case NG:{Q=G===x8?"#document":"#fragment";var U=J.documentElement;X=U?U.namespaceURI:PG(null,"");break}default:{var q=G===gQ?J.parentNode:J,O=q.namespaceURI||null;Q=q.tagName,X=PG(O,Q);break}}{var L=Q.toLowerCase(),W=U0(null,L);return{namespace:X,ancestorInfo:W}}}function cI(J,Q,X){{var G=J,U=PG(G.namespace,Q),q=U0(G.ancestorInfo,Q);return{namespace:U,ancestorInfo:q}}}function cK(J){return J}function pI(J){dK=dB(),mK=YI();var Q=null;return H3(!1),Q}function sI(J){GI(mK),H3(dK),dK=null,mK=null}function lI(J,Q,X,G,U){var q;{var O=G;if(K0(J,null,O.ancestorInfo),typeof Q.children==="string"||typeof Q.children==="number"){var L=""+Q.children,W=U0(O.ancestorInfo,J);K0(null,L,W)}q=O.namespace}var H=SI(J,Q,X,q);return L0(U,H),tK(H,Q),H}function iI(J,Q){J.appendChild(Q)}function rI(J,Q,X,G,U){switch(TI(J,Q,X,G),Q){case"button":case"input":case"select":case"textarea":return!!X.autoFocus;case"img":return!0;default:return!1}}function nI(J,Q,X,G,U,q){{var O=q;if(typeof G.children!==typeof X.children&&(typeof G.children==="string"||typeof G.children==="number")){var L=""+G.children,W=U0(O.ancestorInfo,Q);K0(null,L,W)}}return kI(J,Q,X,G)}function pK(J,Q){return J==="textarea"||J==="noscript"||typeof Q.children==="string"||typeof Q.children==="number"||typeof Q.dangerouslySetInnerHTML==="object"&&Q.dangerouslySetInnerHTML!==null&&Q.dangerouslySetInnerHTML.__html!=null}function oI(J,Q,X,G){{var U=X;K0(null,J,U.ancestorInfo)}var q=_I(J,Q);return L0(G,q),q}function tI(){var J=window.event;if(J===void 0)return g8;return M3(J.type)}var sK=typeof setTimeout==="function"?setTimeout:void 0,aI=typeof clearTimeout==="function"?clearTimeout:void 0,lK=-1,q2=typeof Promise==="function"?Promise:void 0,eI=typeof queueMicrotask==="function"?queueMicrotask:typeof q2<"u"?function(J){return q2.resolve(null).then(J).catch(Jj)}:sK;function Jj(J){setTimeout(function(){throw J})}function Qj(J,Q,X,G){switch(Q){case"button":case"input":case"select":case"textarea":if(X.autoFocus)J.focus();return;case"img":{if(X.src)J.src=X.src;return}}}function Zj(J,Q,X,G,U,q){EI(J,Q,X,G,U),tK(J,U)}function z2(J){y4(J,"")}function Xj(J,Q,X){J.nodeValue=X}function Yj(J,Q){J.appendChild(Q)}function Gj(J,Q){var X;if(J.nodeType===gQ)X=J.parentNode,X.insertBefore(Q,J);else X=J,X.appendChild(Q);var G=J._reactRootContainer;if((G===null||G===void 0)&&X.onclick===null)HY(X)}function Kj(J,Q,X){J.insertBefore(Q,X)}function Uj(J,Q,X){if(J.nodeType===gQ)J.parentNode.insertBefore(Q,X);else J.insertBefore(Q,X)}function qj(J,Q){J.removeChild(Q)}function zj(J,Q){if(J.nodeType===gQ)J.parentNode.removeChild(Q);else J.removeChild(Q)}function iK(J,Q){var X=Q,G=0;do{var U=X.nextSibling;if(J.removeChild(X),U&&U.nodeType===gQ){var q=U.data;if(q===BY)if(G===0){J.removeChild(U),s6(Q);return}else G--;else if(q===FY||q===q0||q===z0)G++}X=U}while(X);s6(Q)}function $j(J,Q){if(J.nodeType===gQ)iK(J.parentNode,Q);else if(J.nodeType===lZ)iK(J,Q);s6(J)}function Oj(J){J=J;var Q=J.style;if(typeof Q.setProperty==="function")Q.setProperty("display","none","important");else Q.display="none"}function Lj(J){J.nodeValue=""}function Wj(J,Q){J=J;var X=Q[dI],G=X!==void 0&&X!==null&&X.hasOwnProperty("display")?X.display:null;J.style.display=wG("display",G)}function Dj(J,Q){J.nodeValue=Q}function Hj(J){if(J.nodeType===lZ)J.textContent="";else if(J.nodeType===x8){if(J.documentElement)J.removeChild(J.documentElement)}}function Mj(J,Q,X){if(J.nodeType!==lZ||Q.toLowerCase()!==J.nodeName.toLowerCase())return null;return J}function Fj(J,Q){if(Q===""||J.nodeType!==C8)return null;return J}function Bj(J){if(J.nodeType!==gQ)return null;return J}function $2(J){return J.data===q0}function rK(J){return J.data===z0}function Aj(J){var Q=J.nextSibling&&J.nextSibling.dataset,X,G,U;if(Q)X=Q.dgst,G=Q.msg,U=Q.stck;return{message:G,digest:X,stack:U}}function Ij(J,Q){J._reactRetry=Q}function AY(J){for(;J!=null;J=J.nextSibling){var Q=J.nodeType;if(Q===lZ||Q===C8)break;if(Q===gQ){var X=J.data;if(X===FY||X===z0||X===q0)break;if(X===BY)return null}}return J}function $0(J){return AY(J.nextSibling)}function jj(J){return AY(J.firstChild)}function Pj(J){return AY(J.firstChild)}function Nj(J){return AY(J.nextSibling)}function wj(J,Q,X,G,U,q,O){L0(q,J),tK(J,X);var L;{var W=U;L=W.namespace}var H=(q.mode&dJ)!==MJ;return xI(J,Q,X,L,G,H,O)}function Vj(J,Q,X,G){L0(X,J);var U=(X.mode&dJ)!==MJ;return hI(J,Q)}function Rj(J,Q){L0(Q,J)}function Sj(J){var Q=J.nextSibling,X=0;while(Q){if(Q.nodeType===gQ){var G=Q.data;if(G===BY)if(X===0)return $0(Q);else X--;else if(G===FY||G===z0||G===q0)X++}Q=Q.nextSibling}return null}function O2(J){var Q=J.previousSibling,X=0;while(Q){if(Q.nodeType===gQ){var G=Q.data;if(G===FY||G===z0||G===q0)if(X===0)return Q;else X--;else if(G===BY)X++}Q=Q.previousSibling}return null}function _j(J){s6(J)}function Tj(J){s6(J)}function kj(J){return J!=="head"&&J!=="body"}function Ej(J,Q,X,G){var U=!0;DY(Q.nodeValue,X,G,U)}function Cj(J,Q,X,G,U,q){if(Q[MY]!==!0){var O=!0;DY(G.nodeValue,U,q,O)}}function xj(J,Q){if(Q.nodeType===lZ)fK(J,Q);else if(Q.nodeType===gQ);else vK(J,Q)}function hj(J,Q){{var X=J.parentNode;if(X!==null)if(Q.nodeType===lZ)fK(X,Q);else if(Q.nodeType===gQ);else vK(X,Q)}}function bj(J,Q,X,G,U){if(U||Q[MY]!==!0)if(G.nodeType===lZ)fK(X,G);else if(G.nodeType===gQ);else vK(X,G)}function yj(J,Q,X){uK(J,Q)}function fj(J,Q){gK(J,Q)}function vj(J,Q,X){{var G=J.parentNode;if(G!==null)uK(G,Q)}}function uj(J,Q){{var X=J.parentNode;if(X!==null)gK(X,Q)}}function gj(J,Q,X,G,U,q){if(q||Q[MY]!==!0)uK(X,G)}function dj(J,Q,X,G,U){if(U||Q[MY]!==!0)gK(X,G)}function mj(J){$("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",J.nodeName.toLowerCase())}function cj(J){Z0(J)}var H1=Math.random().toString(36).slice(2),M1="__reactFiber$"+H1,nK="__reactProps$"+H1,O0="__reactContainer$"+H1,oK="__reactEvents$"+H1,pj="__reactListeners$"+H1,sj="__reactHandles$"+H1;function lj(J){delete J[M1],delete J[nK],delete J[oK],delete J[pj],delete J[sj]}function L0(J,Q){Q[M1]=J}function IY(J,Q){Q[O0]=J}function L2(J){J[O0]=null}function W0(J){return!!J[O0]}function F9(J){var Q=J[M1];if(Q)return Q;var X=J.parentNode;while(X){if(Q=X[O0]||X[M1],Q){var G=Q.alternate;if(Q.child!==null||G!==null&&G.child!==null){var U=O2(J);while(U!==null){var q=U[M1];if(q)return q;U=O2(U)}}return Q}J=X,X=J.parentNode}return null}function SX(J){var Q=J[M1]||J[O0];if(Q)if(Q.tag===k||Q.tag===a||Q.tag===c||Q.tag===T)return Q;else return null;return null}function F1(J){if(J.tag===k||J.tag===a)return J.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function jY(J){return J[nK]||null}function tK(J,Q){J[nK]=Q}function ij(J){var Q=J[oK];if(Q===void 0)Q=J[oK]=new Set;return Q}var W2={},D2=Z.ReactDebugCurrentFrame;function PY(J){if(J){var Q=J._owner,X=MX(J.type,J._source,Q?Q.type:null);D2.setExtraStackFrame(X)}else D2.setExtraStackFrame(null)}function r7(J,Q,X,G,U){{var q=Function.call.bind(Y7);for(var O in J)if(q(J,O)){var L=void 0;try{if(typeof J[O]!=="function"){var W=Error((G||"React class")+": "+X+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof J[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw W.name="Invariant Violation",W}L=J[O](Q,O,G,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(H){L=H}if(L&&!(L instanceof Error))PY(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).",G||"React class",X,O,typeof L),PY(null);if(L instanceof Error&&!(L.message in W2))W2[L.message]=!0,PY(U),$("Failed %s type: %s",X,L.message),PY(null)}}}var aK=[],NY;NY=[];var d8=-1;function _X(J){return{current:J}}function RZ(J,Q){if(d8<0){$("Unexpected pop.");return}if(Q!==NY[d8])$("Unexpected Fiber popped.");J.current=aK[d8],aK[d8]=null,NY[d8]=null,d8--}function SZ(J,Q,X){d8++,aK[d8]=J.current,NY[d8]=X,J.current=Q}var H2={},D7={};Object.freeze(D7);var m8=_X(D7),H8=_X(!1),eK=D7;function B1(J,Q,X){{if(X&&M8(Q))return eK;return m8.current}}function M2(J,Q,X){{var G=J.stateNode;G.__reactInternalMemoizedUnmaskedChildContext=Q,G.__reactInternalMemoizedMaskedChildContext=X}}function A1(J,Q){{var X=J.type,G=X.contextTypes;if(!G)return D7;var U=J.stateNode;if(U&&U.__reactInternalMemoizedUnmaskedChildContext===Q)return U.__reactInternalMemoizedMaskedChildContext;var q={};for(var O in G)q[O]=Q[O];{var L=EJ(J)||"Unknown";r7(G,q,"context",L)}if(U)M2(J,Q,q);return q}}function wY(){return H8.current}function M8(J){{var Q=J.childContextTypes;return Q!==null&&Q!==void 0}}function VY(J){RZ(H8,J),RZ(m8,J)}function JU(J){RZ(H8,J),RZ(m8,J)}function F2(J,Q,X){{if(m8.current!==D7)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");SZ(m8,Q,J),SZ(H8,X,J)}}function B2(J,Q,X){{var G=J.stateNode,U=Q.childContextTypes;if(typeof G.getChildContext!=="function"){{var q=EJ(J)||"Unknown";if(!H2[q])H2[q]=!0,$("%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.",q,q)}return X}var O=G.getChildContext();for(var L in O)if(!(L in U))throw Error((EJ(J)||"Unknown")+'.getChildContext(): key "'+L+'" is not defined in childContextTypes.');{var W=EJ(J)||"Unknown";r7(U,O,"child context",W)}return uJ({},X,O)}}function RY(J){{var Q=J.stateNode,X=Q&&Q.__reactInternalMemoizedMergedChildContext||D7;return eK=m8.current,SZ(m8,X,J),SZ(H8,H8.current,J),!0}}function A2(J,Q,X){{var G=J.stateNode;if(!G)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(X){var U=B2(J,Q,eK);G.__reactInternalMemoizedMergedChildContext=U,RZ(H8,J),RZ(m8,J),SZ(m8,U,J),SZ(H8,X,J)}else RZ(H8,J),SZ(H8,X,J)}}function rj(J){{if(!kF(J)||J.tag!==j)throw 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 Q=J;do{switch(Q.tag){case T:return Q.stateNode.context;case j:{var X=Q.type;if(M8(X))return Q.stateNode.__reactInternalMemoizedMergedChildContext;break}}Q=Q.return}while(Q!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var TX=0,SY=1,c8=null,QU=!1,ZU=!1;function I2(J){if(c8===null)c8=[J];else c8.push(J)}function nj(J){QU=!0,I2(J)}function j2(){if(QU)kX()}function kX(){if(!ZU&&c8!==null){ZU=!0;var J=0,Q=i7();try{var X=!0,G=c8;zZ(O7);for(;J<G.length;J++){var U=G[J];do U=U(X);while(U!==null)}c8=null,QU=!1}catch(q){if(c8!==null)c8=c8.slice(J+1);throw p$(m4,kX),q}finally{zZ(Q),ZU=!1}}return null}var I1=[],j1=0,_Y=null,TY=0,R7=[],S7=0,B9=null,p8=1,s8="";function oj(J){return I9(),(J.flags&y$)!==BJ}function tj(J){return I9(),TY}function aj(){var J=s8,Q=p8,X=Q&~ej(Q);return X.toString(32)+J}function A9(J,Q){I9(),I1[j1++]=TY,I1[j1++]=_Y,_Y=J,TY=Q}function P2(J,Q,X){I9(),R7[S7++]=p8,R7[S7++]=s8,R7[S7++]=B9,B9=J;var G=p8,U=s8,q=kY(G)-1,O=G&~(1<<q),L=X+1,W=kY(Q)+q;if(W>30){var H=q-q%5,M=(1<<H)-1,N=(O&M).toString(32),P=O>>H,S=q-H,_=kY(Q)+S,E=L<<S,s=E|P,OJ=N+U;p8=1<<_|s,s8=OJ}else{var GJ=L<<q,yJ=GJ|O,fJ=U;p8=1<<W|yJ,s8=fJ}}function XU(J){I9();var Q=J.return;if(Q!==null){var X=1,G=0;A9(J,X),P2(J,X,G)}}function kY(J){return 32-o$(J)}function ej(J){return 1<<kY(J)-1}function YU(J){while(J===_Y)_Y=I1[--j1],I1[j1]=null,TY=I1[--j1],I1[j1]=null;while(J===B9)B9=R7[--S7],R7[S7]=null,s8=R7[--S7],R7[S7]=null,p8=R7[--S7],R7[S7]=null}function JP(){if(I9(),B9!==null)return{id:p8,overflow:s8};else return null}function QP(J,Q){I9(),R7[S7++]=p8,R7[S7++]=s8,R7[S7++]=B9,p8=Q.id,s8=Q.overflow,B9=J}function I9(){if(!DZ())$("Expected to be hydrating. This is a bug in React. Please file an issue.")}var WZ=null,_7=null,n7=!1,j9=!1,EX=null;function ZP(){if(n7)$("We should not be hydrating here. This is a bug in React. Please file a bug.")}function N2(){j9=!0}function XP(){return j9}function YP(J){var Q=J.stateNode.containerInfo;return _7=Pj(Q),WZ=J,n7=!0,EX=null,j9=!1,!0}function GP(J,Q,X){if(_7=Nj(Q),WZ=J,n7=!0,EX=null,j9=!1,X!==null)QP(J,X);return!0}function w2(J,Q){switch(J.tag){case T:{xj(J.stateNode.containerInfo,Q);break}case k:{var X=(J.mode&dJ)!==MJ;bj(J.type,J.memoizedProps,J.stateNode,Q,X);break}case c:{var G=J.memoizedState;if(G.dehydrated!==null)hj(G.dehydrated,Q);break}}}function V2(J,Q){w2(J,Q);var X=WV();X.stateNode=Q,X.return=J;var G=J.deletions;if(G===null)J.deletions=[X],J.flags|=Y9;else G.push(X)}function GU(J,Q){{if(j9)return;switch(J.tag){case T:{var X=J.stateNode.containerInfo;switch(Q.tag){case k:var{type:G,pendingProps:U}=Q;yj(X,G);break;case a:var q=Q.pendingProps;fj(X,q);break}break}case k:{var{type:O,memoizedProps:L,stateNode:W}=J;switch(Q.tag){case k:{var{type:H,pendingProps:M}=Q,N=(J.mode&dJ)!==MJ;gj(O,L,W,H,M,N);break}case a:{var P=Q.pendingProps,S=(J.mode&dJ)!==MJ;dj(O,L,W,P,S);break}}break}case c:{var _=J.memoizedState,E=_.dehydrated;if(E!==null)switch(Q.tag){case k:var{type:s,pendingProps:OJ}=Q;vj(E,s);break;case a:var GJ=Q.pendingProps;uj(E,GJ);break}break}default:return}}}function R2(J,Q){Q.flags=Q.flags&~b8|dQ,GU(J,Q)}function S2(J,Q){switch(J.tag){case k:{var{type:X,pendingProps:G}=J,U=Mj(Q,X);if(U!==null)return J.stateNode=U,WZ=J,_7=jj(U),!0;return!1}case a:{var q=J.pendingProps,O=Fj(Q,q);if(O!==null)return J.stateNode=O,WZ=J,_7=null,!0;return!1}case c:{var L=Bj(Q);if(L!==null){var W={dehydrated:L,treeContext:JP(),retryLane:z7};J.memoizedState=W;var H=DV(L);return H.return=J,J.child=H,WZ=J,_7=null,!0}return!1}default:return!1}}function KU(J){return(J.mode&dJ)!==MJ&&(J.flags&aJ)===BJ}function UU(J){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function qU(J){if(!n7)return;var Q=_7;if(!Q){if(KU(J))GU(WZ,J),UU();R2(WZ,J),n7=!1,WZ=J;return}var X=Q;if(!S2(J,Q)){if(KU(J))GU(WZ,J),UU();Q=$0(X);var G=WZ;if(!Q||!S2(J,Q)){R2(WZ,J),n7=!1,WZ=J;return}V2(G,X)}}function KP(J,Q,X){var G=J.stateNode,U=!j9,q=wj(G,J.type,J.memoizedProps,Q,X,J,U);if(J.updateQueue=q,q!==null)return!0;return!1}function UP(J){var{stateNode:Q,memoizedProps:X}=J,G=Vj(Q,X,J);if(G){var U=WZ;if(U!==null)switch(U.tag){case T:{var q=U.stateNode.containerInfo,O=(U.mode&dJ)!==MJ;Ej(q,Q,X,O);break}case k:{var{type:L,memoizedProps:W,stateNode:H}=U,M=(U.mode&dJ)!==MJ;Cj(L,W,H,Q,X,M);break}}}return G}function qP(J){var Q=J.memoizedState,X=Q!==null?Q.dehydrated:null;if(!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Rj(X,J)}function zP(J){var Q=J.memoizedState,X=Q!==null?Q.dehydrated:null;if(!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Sj(X)}function _2(J){var Q=J.return;while(Q!==null&&Q.tag!==k&&Q.tag!==T&&Q.tag!==c)Q=Q.return;WZ=Q}function EY(J){if(J!==WZ)return!1;if(!n7)return _2(J),n7=!0,!1;if(J.tag!==T&&(J.tag!==k||kj(J.type)&&!pK(J.type,J.memoizedProps))){var Q=_7;if(Q)if(KU(J))T2(J),UU();else while(Q)V2(J,Q),Q=$0(Q)}if(_2(J),J.tag===c)_7=zP(J);else _7=WZ?$0(J.stateNode):null;return!0}function $P(){return n7&&_7!==null}function T2(J){var Q=_7;while(Q)w2(J,Q),Q=$0(Q)}function P1(){WZ=null,_7=null,n7=!1,j9=!1}function k2(){if(EX!==null)wL(EX),EX=null}function DZ(){return n7}function zU(J){if(EX===null)EX=[J];else EX.push(J)}var OP=Z.ReactCurrentBatchConfig,LP=null;function WP(){return OP.transition}var o7={recordUnsafeLifecycleWarnings:function(J,Q){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(J,Q){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var DP=function(J){var Q=null,X=J;while(X!==null){if(X.mode&CQ)Q=X;X=X.return}return Q},P9=function(J){var Q=[];return J.forEach(function(X){Q.push(X)}),Q.sort().join(", ")},D0=[],H0=[],M0=[],F0=[],B0=[],A0=[],N9=new Set;o7.recordUnsafeLifecycleWarnings=function(J,Q){if(N9.has(J.type))return;if(typeof Q.componentWillMount==="function"&&Q.componentWillMount.__suppressDeprecationWarning!==!0)D0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillMount==="function")H0.push(J);if(typeof Q.componentWillReceiveProps==="function"&&Q.componentWillReceiveProps.__suppressDeprecationWarning!==!0)M0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillReceiveProps==="function")F0.push(J);if(typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate.__suppressDeprecationWarning!==!0)B0.push(J);if(J.mode&CQ&&typeof Q.UNSAFE_componentWillUpdate==="function")A0.push(J)},o7.flushPendingUnsafeLifecycleWarnings=function(){var J=new Set;if(D0.length>0)D0.forEach(function(P){J.add(EJ(P)||"Component"),N9.add(P.type)}),D0=[];var Q=new Set;if(H0.length>0)H0.forEach(function(P){Q.add(EJ(P)||"Component"),N9.add(P.type)}),H0=[];var X=new Set;if(M0.length>0)M0.forEach(function(P){X.add(EJ(P)||"Component"),N9.add(P.type)}),M0=[];var G=new Set;if(F0.length>0)F0.forEach(function(P){G.add(EJ(P)||"Component"),N9.add(P.type)}),F0=[];var U=new Set;if(B0.length>0)B0.forEach(function(P){U.add(EJ(P)||"Component"),N9.add(P.type)}),B0=[];var q=new Set;if(A0.length>0)A0.forEach(function(P){q.add(EJ(P)||"Component"),N9.add(P.type)}),A0=[];if(Q.size>0){var O=P9(Q);$(`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.
|
|
43
43
|
|
|
44
44
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
45
45
|
|
|
@@ -68,7 +68,7 @@ Please update the following components: %s`,M)}if(U.size>0){var N=P9(U);z(`compo
|
|
|
68
68
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
69
69
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
70
70
|
|
|
71
|
-
Please update the following components: %s`,N)}};var CY=new Map,E2=new Set;o7.recordLegacyContextWarning=function(J,Q){var X=DP(J);if(X===null){$("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(E2.has(J.type))return;var G=CY.get(X);if(J.type.contextTypes!=null||J.type.childContextTypes!=null||Q!==null&&typeof Q.getChildContext==="function"){if(G===void 0)G=[],CY.set(X,G);G.push(J)}},o7.flushLegacyContextWarning=function(){CY.forEach(function(J,Q){if(J.length===0)return;var X=J[0],G=new Set;J.forEach(function(q){G.add(EJ(q)||"Component"),E2.add(q.type)});var U=P9(G);try{
|
|
71
|
+
Please update the following components: %s`,N)}};var CY=new Map,E2=new Set;o7.recordLegacyContextWarning=function(J,Q){var X=DP(J);if(X===null){$("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(E2.has(J.type))return;var G=CY.get(X);if(J.type.contextTypes!=null||J.type.childContextTypes!=null||Q!==null&&typeof Q.getChildContext==="function"){if(G===void 0)G=[],CY.set(X,G);G.push(J)}},o7.flushLegacyContextWarning=function(){CY.forEach(function(J,Q){if(J.length===0)return;var X=J[0],G=new Set;J.forEach(function(q){G.add(EJ(q)||"Component"),E2.add(q.type)});var U=P9(G);try{_Q(X),$(`Legacy context API has been detected within a strict-mode tree.
|
|
72
72
|
|
|
73
73
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
74
74
|
|
|
@@ -78,38 +78,38 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`,U)}
|
|
|
78
78
|
1. You may be adding a ref to a function component
|
|
79
79
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
80
80
|
3. You have multiple copies of React loaded
|
|
81
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return G}function xY(J,Q){var X=Object.prototype.toString.call(Q);throw Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}function hY(J){{var Q=EJ(J)||"Component";if(DU[Q])return;DU[Q]=!0,$("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 x2(J){var{_payload:Q,_init:X}=J;return X(Q)}function h2(J){function Q(w,x){if(!J)return;var R=w.deletions;if(R===null)w.deletions=[x],w.flags|=Y9;else R.push(x)}function X(w,x){if(!J)return null;var R=x;while(R!==null)Q(w,R),R=R.sibling;return null}function G(w,x){var R=new Map,u=x;while(u!==null){if(u.key!==null)R.set(u.key,u);else R.set(u.index,u);u=u.sibling}return R}function U(w,x){var R=C9(w,x);return R.index=0,R.sibling=null,R}function q(w,x,R){if(w.index=R,!J)return w.flags|=y$,x;var u=w.alternate;if(u!==null){var e=u.index;if(e<x)return w.flags|=dQ,x;else return e}else return w.flags|=dQ,x}function O(w){if(J&&w.alternate===null)w.flags|=dQ;return w}function L(w,x,R,u){if(x===null||x.tag!==a){var e=Oz(R,w.mode,u);return e.return=w,e}else{var n=U(x,R);return n.return=w,n}}function W(w,x,R,u){var e=R.type;if(e===z8)return M(w,x,R.props.children,u,R.key);if(x!==null){if(x.elementType===e||gL(x,R)||typeof e==="object"&&e!==null&&e.$$typeof===oJ&&x2(e)===x.type){var n=U(x,R.props);return n.ref=I0(w,x,R),n.return=w,n._debugSource=R._source,n._debugOwner=R._owner,n}}var jJ=$z(R,w.mode,u);return jJ.ref=I0(w,x,R),jJ.return=w,jJ}function H(w,x,R,u){if(x===null||x.tag!==y||x.stateNode.containerInfo!==R.containerInfo||x.stateNode.implementation!==R.implementation){var e=Lz(R,w.mode,u);return e.return=w,e}else{var n=U(x,R.children||[]);return n.return=w,n}}function M(w,x,R,u,e){if(x===null||x.tag!==DJ){var n=mX(R,w.mode,u,e);return n.return=w,n}else{var jJ=U(x,R);return jJ.return=w,jJ}}function N(w,x,R){if(typeof x==="string"&&x!==""||typeof x==="number"){var u=Oz(""+x,w.mode,R);return u.return=w,u}if(typeof x==="object"&&x!==null){switch(x.$$typeof){case d7:{var e=$z(x,w.mode,R);return e.ref=I0(w,null,x),e.return=w,e}case m7:{var n=Lz(x,w.mode,R);return n.return=w,n}case oJ:{var{_payload:jJ,_init:RJ}=x;return N(w,RJ(jJ),R)}}if(tJ(x)||p7(x)){var KQ=mX(x,w.mode,R,null);return KQ.return=w,KQ}xY(w,x)}if(typeof x==="function")hY(w);return null}function P(w,x,R,u){var e=x!==null?x.key:null;if(typeof R==="string"&&R!==""||typeof R==="number"){if(e!==null)return null;return L(w,x,""+R,u)}if(typeof R==="object"&&R!==null){switch(R.$$typeof){case d7:if(R.key===e)return W(w,x,R,u);else return null;case m7:if(R.key===e)return H(w,x,R,u);else return null;case oJ:{var{_payload:n,_init:jJ}=R;return P(w,x,jJ(n),u)}}if(tJ(R)||p7(R)){if(e!==null)return null;return M(w,x,R,u,null)}xY(w,R)}if(typeof R==="function")hY(w);return null}function S(w,x,R,u,e){if(typeof u==="string"&&u!==""||typeof u==="number"){var n=w.get(R)||null;return L(x,n,""+u,e)}if(typeof u==="object"&&u!==null){switch(u.$$typeof){case d7:{var jJ=w.get(u.key===null?R:u.key)||null;return W(x,jJ,u,e)}case m7:{var RJ=w.get(u.key===null?R:u.key)||null;return H(x,RJ,u,e)}case oJ:var{_payload:KQ,_init:iJ}=u;return S(w,x,R,iJ(KQ),e)}if(tJ(u)||p7(u)){var yQ=w.get(R)||null;return M(x,yQ,u,e,null)}xY(x,u)}if(typeof u==="function")hY(x);return null}function T(w,x,R){{if(typeof w!=="object"||w===null)return x;switch(w.$$typeof){case d7:case m7:C2(w,R);var u=w.key;if(typeof u!=="string")break;if(x===null){x=new Set,x.add(u);break}if(!x.has(u)){x.add(u);break}$("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 — the behavior is unsupported and "+"could change in a future version.",u);break;case oJ:var{_payload:e,_init:n}=w;T(n(e),x,R);break}}return x}function E(w,x,R,u){{var e=null;for(var n=0;n<R.length;n++){var jJ=R[n];e=T(jJ,e,w)}}var RJ=null,KQ=null,iJ=x,yQ=0,nJ=0,xQ=null;for(;iJ!==null&&nJ<R.length;nJ++){if(iJ.index>nJ)xQ=iJ,iJ=null;else xQ=iJ.sibling;var _Z=P(w,iJ,R[nJ],u);if(_Z===null){if(iJ===null)iJ=xQ;break}if(J){if(iJ&&_Z.alternate===null)Q(w,iJ)}if(yQ=q(_Z,yQ,nJ),KQ===null)RJ=_Z;else KQ.sibling=_Z;KQ=_Z,iJ=xQ}if(nJ===R.length){if(X(w,iJ),DZ()){var jZ=nJ;A9(w,jZ)}return RJ}if(iJ===null){for(;nJ<R.length;nJ++){var M7=N(w,R[nJ],u);if(M7===null)continue;if(yQ=q(M7,yQ,nJ),KQ===null)RJ=M7;else KQ.sibling=M7;KQ=M7}if(DZ()){var yZ=nJ;A9(w,yZ)}return RJ}var fZ=G(w,iJ);for(;nJ<R.length;nJ++){var kZ=S(fZ,w,nJ,R[nJ],u);if(kZ!==null){if(J){if(kZ.alternate!==null)fZ.delete(kZ.key===null?nJ:kZ.key)}if(yQ=q(kZ,yQ,nJ),KQ===null)RJ=kZ;else KQ.sibling=kZ;KQ=kZ}}if(J)fZ.forEach(function(d1){return Q(w,d1)});if(DZ()){var a8=nJ;A9(w,a8)}return RJ}function s(w,x,R,u){var e=p7(R);if(typeof e!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{if(typeof Symbol==="function"&&R[Symbol.toStringTag]==="Generator"){if(!OU)$("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.");OU=!0}if(R.entries===e){if(!$U)$("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");$U=!0}var n=e.call(R);if(n){var jJ=null,RJ=n.next();for(;!RJ.done;RJ=n.next()){var KQ=RJ.value;jJ=T(KQ,jJ,w)}}}var iJ=e.call(R);if(iJ==null)throw Error("An iterable object provided no iterator.");var yQ=null,nJ=null,xQ=x,_Z=0,jZ=0,M7=null,yZ=iJ.next();for(;xQ!==null&&!yZ.done;jZ++,yZ=iJ.next()){if(xQ.index>jZ)M7=xQ,xQ=null;else M7=xQ.sibling;var fZ=P(w,xQ,yZ.value,u);if(fZ===null){if(xQ===null)xQ=M7;break}if(J){if(xQ&&fZ.alternate===null)Q(w,xQ)}if(_Z=q(fZ,_Z,jZ),nJ===null)yQ=fZ;else nJ.sibling=fZ;nJ=fZ,xQ=M7}if(yZ.done){if(X(w,xQ),DZ()){var kZ=jZ;A9(w,kZ)}return yQ}if(xQ===null){for(;!yZ.done;jZ++,yZ=iJ.next()){var a8=N(w,yZ.value,u);if(a8===null)continue;if(_Z=q(a8,_Z,jZ),nJ===null)yQ=a8;else nJ.sibling=a8;nJ=a8}if(DZ()){var d1=jZ;A9(w,d1)}return yQ}var a0=G(w,xQ);for(;!yZ.done;jZ++,yZ=iJ.next()){var w8=S(a0,w,jZ,yZ.value,u);if(w8!==null){if(J){if(w8.alternate!==null)a0.delete(w8.key===null?jZ:w8.key)}if(_Z=q(w8,_Z,jZ),nJ===null)yQ=w8;else nJ.sibling=w8;nJ=w8}}if(J)a0.forEach(function(sR){return Q(w,sR)});if(DZ()){var pR=jZ;A9(w,pR)}return yQ}function OJ(w,x,R,u){if(x!==null&&x.tag===a){X(w,x.sibling);var e=U(x,R);return e.return=w,e}X(w,x);var n=Oz(R,w.mode,u);return n.return=w,n}function GJ(w,x,R,u){var e=R.key,n=x;while(n!==null){if(n.key===e){var jJ=R.type;if(jJ===z8){if(n.tag===DJ){X(w,n.sibling);var RJ=U(n,R.props.children);return RJ.return=w,RJ._debugSource=R._source,RJ._debugOwner=R._owner,RJ}}else if(n.elementType===jJ||gL(n,R)||typeof jJ==="object"&&jJ!==null&&jJ.$$typeof===oJ&&x2(jJ)===n.type){X(w,n.sibling);var KQ=U(n,R.props);return KQ.ref=I0(w,n,R),KQ.return=w,KQ._debugSource=R._source,KQ._debugOwner=R._owner,KQ}X(w,n);break}else Q(w,n);n=n.sibling}if(R.type===z8){var iJ=mX(R.props.children,w.mode,u,R.key);return iJ.return=w,iJ}else{var yQ=$z(R,w.mode,u);return yQ.ref=I0(w,x,R),yQ.return=w,yQ}}function yJ(w,x,R,u){var e=R.key,n=x;while(n!==null){if(n.key===e)if(n.tag===y&&n.stateNode.containerInfo===R.containerInfo&&n.stateNode.implementation===R.implementation){X(w,n.sibling);var jJ=U(n,R.children||[]);return jJ.return=w,jJ}else{X(w,n);break}else Q(w,n);n=n.sibling}var RJ=Lz(R,w.mode,u);return RJ.return=w,RJ}function fJ(w,x,R,u){var e=typeof R==="object"&&R!==null&&R.type===z8&&R.key===null;if(e)R=R.props.children;if(typeof R==="object"&&R!==null){switch(R.$$typeof){case d7:return O(GJ(w,x,R,u));case m7:return O(yJ(w,x,R,u));case oJ:var{_payload:n,_init:jJ}=R;return fJ(w,x,jJ(n),u)}if(tJ(R))return E(w,x,R,u);if(p7(R))return s(w,x,R,u);xY(w,R)}if(typeof R==="string"&&R!==""||typeof R==="number")return O(OJ(w,x,""+R,u));if(typeof R==="function")hY(w);return X(w,x)}return fJ}var N1=h2(!0),b2=h2(!1);function MP(J,Q){if(J!==null&&Q.child!==J.child)throw Error("Resuming work not yet implemented.");if(Q.child===null)return;var X=Q.child,G=C9(X,X.pendingProps);Q.child=G,G.return=Q;while(X.sibling!==null)X=X.sibling,G=G.sibling=C9(X,X.pendingProps),G.return=Q;G.sibling=null}function FP(J,Q){var X=J.child;while(X!==null)qR(X,Q),X=X.sibling}var HU=TX(null),MU;MU={};var bY=null,w1=null,FU=null,yY=!1;function fY(){bY=null,w1=null,FU=null,yY=!1}function y2(){yY=!0}function f2(){yY=!1}function v2(J,Q,X){{SZ(HU,Q._currentValue,J),Q._currentValue=X;{if(Q._currentRenderer!==void 0&&Q._currentRenderer!==null&&Q._currentRenderer!==MU)$("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");Q._currentRenderer=MU}}}function BU(J,Q){var X=HU.current;VZ(HU,Q),J._currentValue=X}function AU(J,Q,X){var G=J;while(G!==null){var U=G.alternate;if(!q1(G.childLanes,Q)){if(G.childLanes=xJ(G.childLanes,Q),U!==null)U.childLanes=xJ(U.childLanes,Q)}else if(U!==null&&!q1(U.childLanes,Q))U.childLanes=xJ(U.childLanes,Q);if(G===X)break;G=G.return}if(G!==X)$("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 BP(J,Q,X){AP(J,Q,X)}function AP(J,Q,X){var G=J.child;if(G!==null)G.return=J;while(G!==null){var U=void 0,q=G.dependencies;if(q!==null){U=G.child;var O=q.firstContext;while(O!==null){if(O.context===Q){if(G.tag===j){var L=v6(X),W=l8(HQ,L);W.tag=uY;var H=G.updateQueue;if(H===null);else{var M=H.shared,N=M.pending;if(N===null)W.next=W;else W.next=N.next,N.next=W;M.pending=W}}G.lanes=xJ(G.lanes,X);var P=G.alternate;if(P!==null)P.lanes=xJ(P.lanes,X);AU(G.return,X,J),q.lanes=xJ(q.lanes,X);break}O=O.next}}else if(G.tag===CJ)U=G.type===J.type?null:G.child;else if(G.tag===zJ){var S=G.return;if(S===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");S.lanes=xJ(S.lanes,X);var T=S.alternate;if(T!==null)T.lanes=xJ(T.lanes,X);AU(S,X,J),U=G.sibling}else U=G.child;if(U!==null)U.return=G;else{U=G;while(U!==null){if(U===J){U=null;break}var E=U.sibling;if(E!==null){E.return=U.return,U=E;break}U=U.return}}G=U}}function R1(J,Q){bY=J,w1=null,FU=null;var X=J.dependencies;if(X!==null){var G=X.firstContext;if(G!==null){if($7(X.lanes,Q))b0();X.firstContext=null}}}function mQ(J){if(yY)$("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 Q=J._currentValue;if(FU===J);else{var X={context:J,memoizedValue:Q,next:null};if(w1===null){if(bY===null)throw 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().");w1=X,bY.dependencies={lanes:f,firstContext:X}}else w1=w1.next=X}return Q}var w9=null;function IU(J){if(w9===null)w9=[J];else w9.push(J)}function IP(){if(w9!==null){for(var J=0;J<w9.length;J++){var Q=w9[J],X=Q.interleaved;if(X!==null){Q.interleaved=null;var G=X.next,U=Q.pending;if(U!==null){var q=U.next;U.next=G,X.next=q}Q.pending=X}}w9=null}}function u2(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,IU(Q);else X.next=U.next,U.next=X;return Q.interleaved=X,vY(J,G)}function jP(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,IU(Q);else X.next=U.next,U.next=X;Q.interleaved=X}function PP(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,IU(Q);else X.next=U.next,U.next=X;return Q.interleaved=X,vY(J,G)}function nZ(J,Q){return vY(J,Q)}var NP=vY;function vY(J,Q){J.lanes=xJ(J.lanes,Q);var X=J.alternate;if(X!==null)X.lanes=xJ(X.lanes,Q);if(X===null&&(J.flags&(dQ|b8))!==BJ)yL(J);var G=J,U=J.return;while(U!==null){if(U.childLanes=xJ(U.childLanes,Q),X=U.alternate,X!==null)X.childLanes=xJ(X.childLanes,Q);else if((U.flags&(dQ|b8))!==BJ)yL(J);G=U,U=U.return}if(G.tag===_){var q=G.stateNode;return q}else return null}var g2=0,d2=1,uY=2,jU=3,gY=!1,PU,dY;PU=!1,dY=null;function NU(J){var Q={baseState:J.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:f},effects:null};J.updateQueue=Q}function m2(J,Q){var X=Q.updateQueue,G=J.updateQueue;if(X===G){var U={baseState:G.baseState,firstBaseUpdate:G.firstBaseUpdate,lastBaseUpdate:G.lastBaseUpdate,shared:G.shared,effects:G.effects};Q.updateQueue=U}}function l8(J,Q){var X={eventTime:J,lane:Q,tag:g2,payload:null,callback:null,next:null};return X}function CX(J,Q,X){var G=J.updateQueue;if(G===null)return null;var U=G.shared;if(dY===U&&!PU)$("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."),PU=!0;if(Rw()){var q=U.pending;if(q===null)Q.next=Q;else Q.next=q.next,q.next=Q;return U.pending=Q,NP(J,X)}else return PP(J,U,Q,X)}function mY(J,Q,X){var G=Q.updateQueue;if(G===null)return;var U=G.shared;if(J3(X)){var q=U.lanes;q=Z3(q,J.pendingLanes);var O=xJ(q,X);U.lanes=O,HK(J,O)}}function wU(J,Q){var{updateQueue:X,alternate:G}=J;if(G!==null){var U=G.updateQueue;if(X===U){var q=null,O=null,L=X.firstBaseUpdate;if(L!==null){var W=L;do{var H={eventTime:W.eventTime,lane:W.lane,tag:W.tag,payload:W.payload,callback:W.callback,next:null};if(O===null)q=O=H;else O.next=H,O=H;W=W.next}while(W!==null);if(O===null)q=O=Q;else O.next=Q,O=Q}else q=O=Q;X={baseState:U.baseState,firstBaseUpdate:q,lastBaseUpdate:O,shared:U.shared,effects:U.effects},J.updateQueue=X;return}}var M=X.lastBaseUpdate;if(M===null)X.firstBaseUpdate=Q;else M.next=Q;X.lastBaseUpdate=Q}function wP(J,Q,X,G,U,q){switch(X.tag){case d2:{var O=X.payload;if(typeof O==="function"){y2();var L=O.call(q,G,U);{if(J.mode&CQ){UZ(!0);try{O.call(q,G,U)}finally{UZ(!1)}}f2()}return L}return O}case jU:J.flags=J.flags&~CZ|aJ;case g2:{var W=X.payload,H;if(typeof W==="function"){y2(),H=W.call(q,G,U);{if(J.mode&CQ){UZ(!0);try{W.call(q,G,U)}finally{UZ(!1)}}f2()}}else H=W;if(H===null||H===void 0)return G;return uJ({},G,H)}case uY:return gY=!0,G}return G}function cY(J,Q,X,G){var U=J.updateQueue;gY=!1,dY=U.shared;var{firstBaseUpdate:q,lastBaseUpdate:O}=U,L=U.shared.pending;if(L!==null){U.shared.pending=null;var W=L,H=W.next;if(W.next=null,O===null)q=H;else O.next=H;O=W;var M=J.alternate;if(M!==null){var N=M.updateQueue,P=N.lastBaseUpdate;if(P!==O){if(P===null)N.firstBaseUpdate=H;else P.next=H;N.lastBaseUpdate=W}}}if(q!==null){var S=U.baseState,T=f,E=null,s=null,OJ=null,GJ=q;do{var{lane:yJ,eventTime:fJ}=GJ;if(!q1(G,yJ)){var w={eventTime:fJ,lane:yJ,tag:GJ.tag,payload:GJ.payload,callback:GJ.callback,next:null};if(OJ===null)s=OJ=w,E=S;else OJ=OJ.next=w;T=xJ(T,yJ)}else{if(OJ!==null){var x={eventTime:fJ,lane:qZ,tag:GJ.tag,payload:GJ.payload,callback:GJ.callback,next:null};OJ=OJ.next=x}S=wP(J,U,GJ,S,Q,X);var R=GJ.callback;if(R!==null&&GJ.lane!==qZ){J.flags|=yG;var u=U.effects;if(u===null)U.effects=[GJ];else u.push(GJ)}}if(GJ=GJ.next,GJ===null)if(L=U.shared.pending,L===null)break;else{var e=L,n=e.next;e.next=null,GJ=n,U.lastBaseUpdate=e,U.shared.pending=null}}while(!0);if(OJ===null)E=S;U.baseState=E,U.firstBaseUpdate=s,U.lastBaseUpdate=OJ;var jJ=U.shared.interleaved;if(jJ!==null){var RJ=jJ;do T=xJ(T,RJ.lane),RJ=RJ.next;while(RJ!==jJ)}else if(q===null)U.shared.lanes=f;i0(T),J.lanes=T,J.memoizedState=S}dY=null}function RP(J,Q){if(typeof J!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+J));J.call(Q)}function c2(){gY=!1}function pY(){return gY}function p2(J,Q,X){var G=Q.effects;if(Q.effects=null,G!==null)for(var U=0;U<G.length;U++){var q=G[U],O=q.callback;if(O!==null)q.callback=null,RP(O,X)}}var j0={},xX=TX(j0),P0=TX(j0),sY=TX(j0);function lY(J){if(J===j0)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return J}function s2(){var J=lY(sY.current);return J}function RU(J,Q){SZ(sY,Q,J),SZ(P0,J,J),SZ(xX,j0,J);var X=mI(Q);VZ(xX,J),SZ(xX,X,J)}function V1(J){VZ(xX,J),VZ(P0,J),VZ(sY,J)}function VU(){var J=lY(xX.current);return J}function l2(J){var Q=lY(sY.current),X=lY(xX.current),G=cI(X,J.type);if(X===G)return;SZ(P0,J,J),SZ(xX,G,J)}function SU(J){if(P0.current!==J)return;VZ(xX,J),VZ(P0,J)}var VP=0,i2=1,n2=1,N0=2,t7=TX(VP);function TU(J,Q){return(J&Q)!==0}function S1(J){return J&i2}function _U(J,Q){return J&i2|Q}function SP(J,Q){return J|Q}function hX(J,Q){SZ(t7,Q,J)}function T1(J){VZ(t7,J)}function TP(J,Q){var X=J.memoizedState;if(X!==null){if(X.dehydrated!==null)return!0;return!1}var G=J.memoizedProps;return!0}function iY(J){var Q=J;while(Q!==null){if(Q.tag===c){var X=Q.memoizedState;if(X!==null){var G=X.dehydrated;if(G===null||$2(G)||nK(G))return Q}}else if(Q.tag===i&&Q.memoizedProps.revealOrder!==void 0){var U=(Q.flags&aJ)!==BJ;if(U)return Q}else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===J)return null;while(Q.sibling===null){if(Q.return===null||Q.return===J)return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return null}var rZ=0,iQ=1,F8=2,nQ=4,HZ=8,kU=[];function EU(){for(var J=0;J<kU.length;J++){var Q=kU[J];Q._workInProgressVersionPrimary=null}kU.length=0}function _P(J,Q){var X=Q._getVersion,G=X(Q._source);if(J.mutableSourceEagerHydrationData==null)J.mutableSourceEagerHydrationData=[Q,G];else J.mutableSourceEagerHydrationData.push(Q,G)}var{ReactCurrentDispatcher:t,ReactCurrentBatchConfig:w0}=Z,CU,_1;CU=new Set;var R9=f,GQ=null,rQ=null,oQ=null,nY=!1,R0=!1,V0=0,kP=0,EP=25,h=null,_7=null,bX=-1,xU=!1;function QQ(){{var J=h;if(_7===null)_7=[J];else _7.push(J)}}function p(){{var J=h;if(_7!==null){if(bX++,_7[bX]!==J)CP(J)}}}function k1(J){if(J!==void 0&&J!==null&&!tJ(J))$("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",h,typeof J)}function CP(J){{var Q=EJ(GQ);if(!CU.has(Q)){if(CU.add(Q),_7!==null){var X="",G=30;for(var U=0;U<=bX;U++){var q=_7[U],O=U===bX?J:q,L=U+1+". "+q;while(L.length<G)L+=" ";L+=O+`
|
|
81
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return G}function xY(J,Q){var X=Object.prototype.toString.call(Q);throw Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}function hY(J){{var Q=EJ(J)||"Component";if(DU[Q])return;DU[Q]=!0,$("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 x2(J){var{_payload:Q,_init:X}=J;return X(Q)}function h2(J){function Q(w,x){if(!J)return;var V=w.deletions;if(V===null)w.deletions=[x],w.flags|=Y9;else V.push(x)}function X(w,x){if(!J)return null;var V=x;while(V!==null)Q(w,V),V=V.sibling;return null}function G(w,x){var V=new Map,u=x;while(u!==null){if(u.key!==null)V.set(u.key,u);else V.set(u.index,u);u=u.sibling}return V}function U(w,x){var V=C9(w,x);return V.index=0,V.sibling=null,V}function q(w,x,V){if(w.index=V,!J)return w.flags|=y$,x;var u=w.alternate;if(u!==null){var e=u.index;if(e<x)return w.flags|=dQ,x;else return e}else return w.flags|=dQ,x}function O(w){if(J&&w.alternate===null)w.flags|=dQ;return w}function L(w,x,V,u){if(x===null||x.tag!==a){var e=Oz(V,w.mode,u);return e.return=w,e}else{var r=U(x,V);return r.return=w,r}}function W(w,x,V,u){var e=V.type;if(e===z8)return M(w,x,V.props.children,u,V.key);if(x!==null){if(x.elementType===e||gL(x,V)||typeof e==="object"&&e!==null&&e.$$typeof===oJ&&x2(e)===x.type){var r=U(x,V.props);return r.ref=I0(w,x,V),r.return=w,r._debugSource=V._source,r._debugOwner=V._owner,r}}var jJ=$z(V,w.mode,u);return jJ.ref=I0(w,x,V),jJ.return=w,jJ}function H(w,x,V,u){if(x===null||x.tag!==y||x.stateNode.containerInfo!==V.containerInfo||x.stateNode.implementation!==V.implementation){var e=Lz(V,w.mode,u);return e.return=w,e}else{var r=U(x,V.children||[]);return r.return=w,r}}function M(w,x,V,u,e){if(x===null||x.tag!==DJ){var r=mX(V,w.mode,u,e);return r.return=w,r}else{var jJ=U(x,V);return jJ.return=w,jJ}}function N(w,x,V){if(typeof x==="string"&&x!==""||typeof x==="number"){var u=Oz(""+x,w.mode,V);return u.return=w,u}if(typeof x==="object"&&x!==null){switch(x.$$typeof){case d7:{var e=$z(x,w.mode,V);return e.ref=I0(w,null,x),e.return=w,e}case m7:{var r=Lz(x,w.mode,V);return r.return=w,r}case oJ:{var{_payload:jJ,_init:VJ}=x;return N(w,VJ(jJ),V)}}if(tJ(x)||p7(x)){var KQ=mX(x,w.mode,V,null);return KQ.return=w,KQ}xY(w,x)}if(typeof x==="function")hY(w);return null}function P(w,x,V,u){var e=x!==null?x.key:null;if(typeof V==="string"&&V!==""||typeof V==="number"){if(e!==null)return null;return L(w,x,""+V,u)}if(typeof V==="object"&&V!==null){switch(V.$$typeof){case d7:if(V.key===e)return W(w,x,V,u);else return null;case m7:if(V.key===e)return H(w,x,V,u);else return null;case oJ:{var{_payload:r,_init:jJ}=V;return P(w,x,jJ(r),u)}}if(tJ(V)||p7(V)){if(e!==null)return null;return M(w,x,V,u,null)}xY(w,V)}if(typeof V==="function")hY(w);return null}function S(w,x,V,u,e){if(typeof u==="string"&&u!==""||typeof u==="number"){var r=w.get(V)||null;return L(x,r,""+u,e)}if(typeof u==="object"&&u!==null){switch(u.$$typeof){case d7:{var jJ=w.get(u.key===null?V:u.key)||null;return W(x,jJ,u,e)}case m7:{var VJ=w.get(u.key===null?V:u.key)||null;return H(x,VJ,u,e)}case oJ:var{_payload:KQ,_init:iJ}=u;return S(w,x,V,iJ(KQ),e)}if(tJ(u)||p7(u)){var yQ=w.get(V)||null;return M(x,yQ,u,e,null)}xY(x,u)}if(typeof u==="function")hY(x);return null}function _(w,x,V){{if(typeof w!=="object"||w===null)return x;switch(w.$$typeof){case d7:case m7:C2(w,V);var u=w.key;if(typeof u!=="string")break;if(x===null){x=new Set,x.add(u);break}if(!x.has(u)){x.add(u);break}$("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 — the behavior is unsupported and "+"could change in a future version.",u);break;case oJ:var{_payload:e,_init:r}=w;_(r(e),x,V);break}}return x}function E(w,x,V,u){{var e=null;for(var r=0;r<V.length;r++){var jJ=V[r];e=_(jJ,e,w)}}var VJ=null,KQ=null,iJ=x,yQ=0,rJ=0,xQ=null;for(;iJ!==null&&rJ<V.length;rJ++){if(iJ.index>rJ)xQ=iJ,iJ=null;else xQ=iJ.sibling;var TZ=P(w,iJ,V[rJ],u);if(TZ===null){if(iJ===null)iJ=xQ;break}if(J){if(iJ&&TZ.alternate===null)Q(w,iJ)}if(yQ=q(TZ,yQ,rJ),KQ===null)VJ=TZ;else KQ.sibling=TZ;KQ=TZ,iJ=xQ}if(rJ===V.length){if(X(w,iJ),DZ()){var jZ=rJ;A9(w,jZ)}return VJ}if(iJ===null){for(;rJ<V.length;rJ++){var M7=N(w,V[rJ],u);if(M7===null)continue;if(yQ=q(M7,yQ,rJ),KQ===null)VJ=M7;else KQ.sibling=M7;KQ=M7}if(DZ()){var yZ=rJ;A9(w,yZ)}return VJ}var fZ=G(w,iJ);for(;rJ<V.length;rJ++){var kZ=S(fZ,w,rJ,V[rJ],u);if(kZ!==null){if(J){if(kZ.alternate!==null)fZ.delete(kZ.key===null?rJ:kZ.key)}if(yQ=q(kZ,yQ,rJ),KQ===null)VJ=kZ;else KQ.sibling=kZ;KQ=kZ}}if(J)fZ.forEach(function(d1){return Q(w,d1)});if(DZ()){var a8=rJ;A9(w,a8)}return VJ}function s(w,x,V,u){var e=p7(V);if(typeof e!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{if(typeof Symbol==="function"&&V[Symbol.toStringTag]==="Generator"){if(!OU)$("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.");OU=!0}if(V.entries===e){if(!$U)$("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");$U=!0}var r=e.call(V);if(r){var jJ=null,VJ=r.next();for(;!VJ.done;VJ=r.next()){var KQ=VJ.value;jJ=_(KQ,jJ,w)}}}var iJ=e.call(V);if(iJ==null)throw Error("An iterable object provided no iterator.");var yQ=null,rJ=null,xQ=x,TZ=0,jZ=0,M7=null,yZ=iJ.next();for(;xQ!==null&&!yZ.done;jZ++,yZ=iJ.next()){if(xQ.index>jZ)M7=xQ,xQ=null;else M7=xQ.sibling;var fZ=P(w,xQ,yZ.value,u);if(fZ===null){if(xQ===null)xQ=M7;break}if(J){if(xQ&&fZ.alternate===null)Q(w,xQ)}if(TZ=q(fZ,TZ,jZ),rJ===null)yQ=fZ;else rJ.sibling=fZ;rJ=fZ,xQ=M7}if(yZ.done){if(X(w,xQ),DZ()){var kZ=jZ;A9(w,kZ)}return yQ}if(xQ===null){for(;!yZ.done;jZ++,yZ=iJ.next()){var a8=N(w,yZ.value,u);if(a8===null)continue;if(TZ=q(a8,TZ,jZ),rJ===null)yQ=a8;else rJ.sibling=a8;rJ=a8}if(DZ()){var d1=jZ;A9(w,d1)}return yQ}var a0=G(w,xQ);for(;!yZ.done;jZ++,yZ=iJ.next()){var w8=S(a0,w,jZ,yZ.value,u);if(w8!==null){if(J){if(w8.alternate!==null)a0.delete(w8.key===null?jZ:w8.key)}if(TZ=q(w8,TZ,jZ),rJ===null)yQ=w8;else rJ.sibling=w8;rJ=w8}}if(J)a0.forEach(function(sV){return Q(w,sV)});if(DZ()){var pV=jZ;A9(w,pV)}return yQ}function OJ(w,x,V,u){if(x!==null&&x.tag===a){X(w,x.sibling);var e=U(x,V);return e.return=w,e}X(w,x);var r=Oz(V,w.mode,u);return r.return=w,r}function GJ(w,x,V,u){var e=V.key,r=x;while(r!==null){if(r.key===e){var jJ=V.type;if(jJ===z8){if(r.tag===DJ){X(w,r.sibling);var VJ=U(r,V.props.children);return VJ.return=w,VJ._debugSource=V._source,VJ._debugOwner=V._owner,VJ}}else if(r.elementType===jJ||gL(r,V)||typeof jJ==="object"&&jJ!==null&&jJ.$$typeof===oJ&&x2(jJ)===r.type){X(w,r.sibling);var KQ=U(r,V.props);return KQ.ref=I0(w,r,V),KQ.return=w,KQ._debugSource=V._source,KQ._debugOwner=V._owner,KQ}X(w,r);break}else Q(w,r);r=r.sibling}if(V.type===z8){var iJ=mX(V.props.children,w.mode,u,V.key);return iJ.return=w,iJ}else{var yQ=$z(V,w.mode,u);return yQ.ref=I0(w,x,V),yQ.return=w,yQ}}function yJ(w,x,V,u){var e=V.key,r=x;while(r!==null){if(r.key===e)if(r.tag===y&&r.stateNode.containerInfo===V.containerInfo&&r.stateNode.implementation===V.implementation){X(w,r.sibling);var jJ=U(r,V.children||[]);return jJ.return=w,jJ}else{X(w,r);break}else Q(w,r);r=r.sibling}var VJ=Lz(V,w.mode,u);return VJ.return=w,VJ}function fJ(w,x,V,u){var e=typeof V==="object"&&V!==null&&V.type===z8&&V.key===null;if(e)V=V.props.children;if(typeof V==="object"&&V!==null){switch(V.$$typeof){case d7:return O(GJ(w,x,V,u));case m7:return O(yJ(w,x,V,u));case oJ:var{_payload:r,_init:jJ}=V;return fJ(w,x,jJ(r),u)}if(tJ(V))return E(w,x,V,u);if(p7(V))return s(w,x,V,u);xY(w,V)}if(typeof V==="string"&&V!==""||typeof V==="number")return O(OJ(w,x,""+V,u));if(typeof V==="function")hY(w);return X(w,x)}return fJ}var N1=h2(!0),b2=h2(!1);function MP(J,Q){if(J!==null&&Q.child!==J.child)throw Error("Resuming work not yet implemented.");if(Q.child===null)return;var X=Q.child,G=C9(X,X.pendingProps);Q.child=G,G.return=Q;while(X.sibling!==null)X=X.sibling,G=G.sibling=C9(X,X.pendingProps),G.return=Q;G.sibling=null}function FP(J,Q){var X=J.child;while(X!==null)qV(X,Q),X=X.sibling}var HU=_X(null),MU;MU={};var bY=null,w1=null,FU=null,yY=!1;function fY(){bY=null,w1=null,FU=null,yY=!1}function y2(){yY=!0}function f2(){yY=!1}function v2(J,Q,X){{SZ(HU,Q._currentValue,J),Q._currentValue=X;{if(Q._currentRenderer!==void 0&&Q._currentRenderer!==null&&Q._currentRenderer!==MU)$("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.");Q._currentRenderer=MU}}}function BU(J,Q){var X=HU.current;RZ(HU,Q),J._currentValue=X}function AU(J,Q,X){var G=J;while(G!==null){var U=G.alternate;if(!q1(G.childLanes,Q)){if(G.childLanes=xJ(G.childLanes,Q),U!==null)U.childLanes=xJ(U.childLanes,Q)}else if(U!==null&&!q1(U.childLanes,Q))U.childLanes=xJ(U.childLanes,Q);if(G===X)break;G=G.return}if(G!==X)$("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 BP(J,Q,X){AP(J,Q,X)}function AP(J,Q,X){var G=J.child;if(G!==null)G.return=J;while(G!==null){var U=void 0,q=G.dependencies;if(q!==null){U=G.child;var O=q.firstContext;while(O!==null){if(O.context===Q){if(G.tag===j){var L=v6(X),W=l8(HQ,L);W.tag=uY;var H=G.updateQueue;if(H===null);else{var M=H.shared,N=M.pending;if(N===null)W.next=W;else W.next=N.next,N.next=W;M.pending=W}}G.lanes=xJ(G.lanes,X);var P=G.alternate;if(P!==null)P.lanes=xJ(P.lanes,X);AU(G.return,X,J),q.lanes=xJ(q.lanes,X);break}O=O.next}}else if(G.tag===CJ)U=G.type===J.type?null:G.child;else if(G.tag===zJ){var S=G.return;if(S===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");S.lanes=xJ(S.lanes,X);var _=S.alternate;if(_!==null)_.lanes=xJ(_.lanes,X);AU(S,X,J),U=G.sibling}else U=G.child;if(U!==null)U.return=G;else{U=G;while(U!==null){if(U===J){U=null;break}var E=U.sibling;if(E!==null){E.return=U.return,U=E;break}U=U.return}}G=U}}function V1(J,Q){bY=J,w1=null,FU=null;var X=J.dependencies;if(X!==null){var G=X.firstContext;if(G!==null){if($7(X.lanes,Q))b0();X.firstContext=null}}}function mQ(J){if(yY)$("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 Q=J._currentValue;if(FU===J);else{var X={context:J,memoizedValue:Q,next:null};if(w1===null){if(bY===null)throw 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().");w1=X,bY.dependencies={lanes:f,firstContext:X}}else w1=w1.next=X}return Q}var w9=null;function IU(J){if(w9===null)w9=[J];else w9.push(J)}function IP(){if(w9!==null){for(var J=0;J<w9.length;J++){var Q=w9[J],X=Q.interleaved;if(X!==null){Q.interleaved=null;var G=X.next,U=Q.pending;if(U!==null){var q=U.next;U.next=G,X.next=q}Q.pending=X}}w9=null}}function u2(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,IU(Q);else X.next=U.next,U.next=X;return Q.interleaved=X,vY(J,G)}function jP(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,IU(Q);else X.next=U.next,U.next=X;Q.interleaved=X}function PP(J,Q,X,G){var U=Q.interleaved;if(U===null)X.next=X,IU(Q);else X.next=U.next,U.next=X;return Q.interleaved=X,vY(J,G)}function rZ(J,Q){return vY(J,Q)}var NP=vY;function vY(J,Q){J.lanes=xJ(J.lanes,Q);var X=J.alternate;if(X!==null)X.lanes=xJ(X.lanes,Q);if(X===null&&(J.flags&(dQ|b8))!==BJ)yL(J);var G=J,U=J.return;while(U!==null){if(U.childLanes=xJ(U.childLanes,Q),X=U.alternate,X!==null)X.childLanes=xJ(X.childLanes,Q);else if((U.flags&(dQ|b8))!==BJ)yL(J);G=U,U=U.return}if(G.tag===T){var q=G.stateNode;return q}else return null}var g2=0,d2=1,uY=2,jU=3,gY=!1,PU,dY;PU=!1,dY=null;function NU(J){var Q={baseState:J.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:f},effects:null};J.updateQueue=Q}function m2(J,Q){var X=Q.updateQueue,G=J.updateQueue;if(X===G){var U={baseState:G.baseState,firstBaseUpdate:G.firstBaseUpdate,lastBaseUpdate:G.lastBaseUpdate,shared:G.shared,effects:G.effects};Q.updateQueue=U}}function l8(J,Q){var X={eventTime:J,lane:Q,tag:g2,payload:null,callback:null,next:null};return X}function CX(J,Q,X){var G=J.updateQueue;if(G===null)return null;var U=G.shared;if(dY===U&&!PU)$("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."),PU=!0;if(Vw()){var q=U.pending;if(q===null)Q.next=Q;else Q.next=q.next,q.next=Q;return U.pending=Q,NP(J,X)}else return PP(J,U,Q,X)}function mY(J,Q,X){var G=Q.updateQueue;if(G===null)return;var U=G.shared;if(J3(X)){var q=U.lanes;q=Z3(q,J.pendingLanes);var O=xJ(q,X);U.lanes=O,HK(J,O)}}function wU(J,Q){var{updateQueue:X,alternate:G}=J;if(G!==null){var U=G.updateQueue;if(X===U){var q=null,O=null,L=X.firstBaseUpdate;if(L!==null){var W=L;do{var H={eventTime:W.eventTime,lane:W.lane,tag:W.tag,payload:W.payload,callback:W.callback,next:null};if(O===null)q=O=H;else O.next=H,O=H;W=W.next}while(W!==null);if(O===null)q=O=Q;else O.next=Q,O=Q}else q=O=Q;X={baseState:U.baseState,firstBaseUpdate:q,lastBaseUpdate:O,shared:U.shared,effects:U.effects},J.updateQueue=X;return}}var M=X.lastBaseUpdate;if(M===null)X.firstBaseUpdate=Q;else M.next=Q;X.lastBaseUpdate=Q}function wP(J,Q,X,G,U,q){switch(X.tag){case d2:{var O=X.payload;if(typeof O==="function"){y2();var L=O.call(q,G,U);{if(J.mode&CQ){UZ(!0);try{O.call(q,G,U)}finally{UZ(!1)}}f2()}return L}return O}case jU:J.flags=J.flags&~CZ|aJ;case g2:{var W=X.payload,H;if(typeof W==="function"){y2(),H=W.call(q,G,U);{if(J.mode&CQ){UZ(!0);try{W.call(q,G,U)}finally{UZ(!1)}}f2()}}else H=W;if(H===null||H===void 0)return G;return uJ({},G,H)}case uY:return gY=!0,G}return G}function cY(J,Q,X,G){var U=J.updateQueue;gY=!1,dY=U.shared;var{firstBaseUpdate:q,lastBaseUpdate:O}=U,L=U.shared.pending;if(L!==null){U.shared.pending=null;var W=L,H=W.next;if(W.next=null,O===null)q=H;else O.next=H;O=W;var M=J.alternate;if(M!==null){var N=M.updateQueue,P=N.lastBaseUpdate;if(P!==O){if(P===null)N.firstBaseUpdate=H;else P.next=H;N.lastBaseUpdate=W}}}if(q!==null){var S=U.baseState,_=f,E=null,s=null,OJ=null,GJ=q;do{var{lane:yJ,eventTime:fJ}=GJ;if(!q1(G,yJ)){var w={eventTime:fJ,lane:yJ,tag:GJ.tag,payload:GJ.payload,callback:GJ.callback,next:null};if(OJ===null)s=OJ=w,E=S;else OJ=OJ.next=w;_=xJ(_,yJ)}else{if(OJ!==null){var x={eventTime:fJ,lane:qZ,tag:GJ.tag,payload:GJ.payload,callback:GJ.callback,next:null};OJ=OJ.next=x}S=wP(J,U,GJ,S,Q,X);var V=GJ.callback;if(V!==null&&GJ.lane!==qZ){J.flags|=yG;var u=U.effects;if(u===null)U.effects=[GJ];else u.push(GJ)}}if(GJ=GJ.next,GJ===null)if(L=U.shared.pending,L===null)break;else{var e=L,r=e.next;e.next=null,GJ=r,U.lastBaseUpdate=e,U.shared.pending=null}}while(!0);if(OJ===null)E=S;U.baseState=E,U.firstBaseUpdate=s,U.lastBaseUpdate=OJ;var jJ=U.shared.interleaved;if(jJ!==null){var VJ=jJ;do _=xJ(_,VJ.lane),VJ=VJ.next;while(VJ!==jJ)}else if(q===null)U.shared.lanes=f;i0(_),J.lanes=_,J.memoizedState=S}dY=null}function VP(J,Q){if(typeof J!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+J));J.call(Q)}function c2(){gY=!1}function pY(){return gY}function p2(J,Q,X){var G=Q.effects;if(Q.effects=null,G!==null)for(var U=0;U<G.length;U++){var q=G[U],O=q.callback;if(O!==null)q.callback=null,VP(O,X)}}var j0={},xX=_X(j0),P0=_X(j0),sY=_X(j0);function lY(J){if(J===j0)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return J}function s2(){var J=lY(sY.current);return J}function VU(J,Q){SZ(sY,Q,J),SZ(P0,J,J),SZ(xX,j0,J);var X=mI(Q);RZ(xX,J),SZ(xX,X,J)}function R1(J){RZ(xX,J),RZ(P0,J),RZ(sY,J)}function RU(){var J=lY(xX.current);return J}function l2(J){var Q=lY(sY.current),X=lY(xX.current),G=cI(X,J.type);if(X===G)return;SZ(P0,J,J),SZ(xX,G,J)}function SU(J){if(P0.current!==J)return;RZ(xX,J),RZ(P0,J)}var RP=0,i2=1,r2=1,N0=2,t7=_X(RP);function _U(J,Q){return(J&Q)!==0}function S1(J){return J&i2}function TU(J,Q){return J&i2|Q}function SP(J,Q){return J|Q}function hX(J,Q){SZ(t7,Q,J)}function _1(J){RZ(t7,J)}function _P(J,Q){var X=J.memoizedState;if(X!==null){if(X.dehydrated!==null)return!0;return!1}var G=J.memoizedProps;return!0}function iY(J){var Q=J;while(Q!==null){if(Q.tag===c){var X=Q.memoizedState;if(X!==null){var G=X.dehydrated;if(G===null||$2(G)||rK(G))return Q}}else if(Q.tag===i&&Q.memoizedProps.revealOrder!==void 0){var U=(Q.flags&aJ)!==BJ;if(U)return Q}else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===J)return null;while(Q.sibling===null){if(Q.return===null||Q.return===J)return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return null}var nZ=0,iQ=1,F8=2,rQ=4,HZ=8,kU=[];function EU(){for(var J=0;J<kU.length;J++){var Q=kU[J];Q._workInProgressVersionPrimary=null}kU.length=0}function TP(J,Q){var X=Q._getVersion,G=X(Q._source);if(J.mutableSourceEagerHydrationData==null)J.mutableSourceEagerHydrationData=[Q,G];else J.mutableSourceEagerHydrationData.push(Q,G)}var{ReactCurrentDispatcher:t,ReactCurrentBatchConfig:w0}=Z,CU,T1;CU=new Set;var V9=f,GQ=null,nQ=null,oQ=null,rY=!1,V0=!1,R0=0,kP=0,EP=25,h=null,T7=null,bX=-1,xU=!1;function QQ(){{var J=h;if(T7===null)T7=[J];else T7.push(J)}}function p(){{var J=h;if(T7!==null){if(bX++,T7[bX]!==J)CP(J)}}}function k1(J){if(J!==void 0&&J!==null&&!tJ(J))$("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",h,typeof J)}function CP(J){{var Q=EJ(GQ);if(!CU.has(Q)){if(CU.add(Q),T7!==null){var X="",G=30;for(var U=0;U<=bX;U++){var q=T7[U],O=U===bX?J:q,L=U+1+". "+q;while(L.length<G)L+=" ";L+=O+`
|
|
82
82
|
`,X+=L}$(`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
|
|
83
83
|
|
|
84
84
|
Previous render Next render
|
|
85
85
|
------------------------------------------------------
|
|
86
86
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
87
|
-
`,Q,X)}}}}function
|
|
87
|
+
`,Q,X)}}}}function _Z(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
88
88
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
89
89
|
2. You might be breaking the Rules of Hooks
|
|
90
90
|
3. You might have more than one copy of React in the same app
|
|
91
91
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function hU(J,Q){if(xU)return!1;if(Q===null)return $("%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.",h),!1;if(J.length!==Q.length)$(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
92
92
|
|
|
93
93
|
Previous: %s
|
|
94
|
-
Incoming: %s`,h,"["+Q.join(", ")+"]","["+J.join(", ")+"]");for(var X=0;X<Q.length&&X<J.length;X++){if(W7(J[X],Q[X]))continue;return!1}return!0}function E1(J,Q,X,G,U,q){if(R9=q,GQ=Q,_7=J!==null?J._debugHookTypes:null,bX=-1,xU=J!==null&&J.type!==Q.type,Q.memoizedState=null,Q.updateQueue=null,Q.lanes=f,J!==null&&J.memoizedState!==null)t.current=MO;else if(_7!==null)t.current=HO;else t.current=DO;var O=X(G,U);if(R0){var L=0;do{if(R0=!1,V0=0,L>=EP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");L+=1,xU=!1,rQ=null,oQ=null,Q.updateQueue=null,bX=-1,t.current=FO,O=X(G,U)}while(R0)}t.current=z5,Q._debugHookTypes=_7;var W=rQ!==null&&rQ.next!==null;if(R9=f,GQ=null,rQ=null,oQ=null,h=null,_7=null,bX=-1,J!==null&&(J.flags&f8)!==(Q.flags&f8)&&(J.mode&dJ)!==MJ)$("Internal React error: Expected static flag was missing. Please notify the React team.");if(nY=!1,W)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return O}function C1(){var J=V0!==0;return V0=0,J}function r2(J,Q,X){if(Q.updateQueue=J.updateQueue,(Q.mode&W8)!==MJ)Q.flags&=~(d4|y8|s7|pJ);else Q.flags&=~(s7|pJ);J.lanes=n4(J.lanes,X)}function o2(){if(t.current=z5,nY){var J=GQ.memoizedState;while(J!==null){var Q=J.queue;if(Q!==null)Q.pending=null;J=J.next}nY=!1}R9=f,GQ=null,rQ=null,oQ=null,_7=null,bX=-1,h=null,zO=!1,R0=!1,V0=0}function B8(){var J={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(oQ===null)GQ.memoizedState=oQ=J;else oQ=oQ.next=J;return oQ}function k7(){var J;if(rQ===null){var Q=GQ.alternate;if(Q!==null)J=Q.memoizedState;else J=null}else J=rQ.next;var X;if(oQ===null)X=GQ.memoizedState;else X=oQ.next;if(X!==null)oQ=X,X=oQ.next,rQ=J;else{if(J===null)throw Error("Rendered more hooks than during the previous render.");rQ=J;var G={memoizedState:rQ.memoizedState,baseState:rQ.baseState,baseQueue:rQ.baseQueue,queue:rQ.queue,next:null};if(oQ===null)GQ.memoizedState=oQ=G;else oQ=oQ.next=G}return oQ}function t2(){return{lastEffect:null,stores:null}}function bU(J,Q){return typeof Q==="function"?Q(J):Q}function yU(J,Q,X){var G=B8(),U;if(X!==void 0)U=X(Q);else U=Q;G.memoizedState=G.baseState=U;var q={pending:null,interleaved:null,lanes:f,dispatch:null,lastRenderedReducer:J,lastRenderedState:U};G.queue=q;var O=q.dispatch=bP.bind(null,GQ,q);return[G.memoizedState,O]}function fU(J,Q,X){var G=k7(),U=G.queue;if(U===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");U.lastRenderedReducer=J;var q=rQ,O=q.baseQueue,L=U.pending;if(L!==null){if(O!==null){var W=O.next,H=L.next;O.next=H,L.next=W}if(q.baseQueue!==O)$("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.");q.baseQueue=O=L,U.pending=null}if(O!==null){var M=O.next,N=q.baseState,P=null,S=null,T=null,E=M;do{var s=E.lane;if(!q1(R9,s)){var OJ={lane:s,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};if(T===null)S=T=OJ,P=N;else T=T.next=OJ;GQ.lanes=xJ(GQ.lanes,s),i0(s)}else{if(T!==null){var GJ={lane:qZ,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};T=T.next=GJ}if(E.hasEagerState)N=E.eagerState;else{var yJ=E.action;N=J(N,yJ)}}E=E.next}while(E!==null&&E!==M);if(T===null)P=N;else T.next=S;if(!W7(N,G.memoizedState))b0();G.memoizedState=N,G.baseState=P,G.baseQueue=T,U.lastRenderedState=N}var fJ=U.interleaved;if(fJ!==null){var w=fJ;do{var x=w.lane;GQ.lanes=xJ(GQ.lanes,x),i0(x),w=w.next}while(w!==fJ)}else if(O===null)U.lanes=f;var R=U.dispatch;return[G.memoizedState,R]}function vU(J,Q,X){var G=k7(),U=G.queue;if(U===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");U.lastRenderedReducer=J;var{dispatch:q,pending:O}=U,L=G.memoizedState;if(O!==null){U.pending=null;var W=O.next,H=W;do{var M=H.action;L=J(L,M),H=H.next}while(H!==W);if(!W7(L,G.memoizedState))b0();if(G.memoizedState=L,G.baseQueue===null)G.baseState=L;U.lastRenderedState=L}return[L,q]}function uU(J,Q,X){return}function rY(J,Q,X){return}function gU(J,Q,X){var G=GQ,U=B8(),q,O=DZ();if(O){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");if(q=X(),!_1){if(q!==X())$("The result of getServerSnapshot should be cached to avoid an infinite loop"),_1=!0}}else{if(q=Q(),!_1){var L=Q();if(!W7(q,L))$("The result of getSnapshot should be cached to avoid an infinite loop"),_1=!0}var W=T5();if(W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!i4(W,R9))a2(G,Q,q)}U.memoizedState=q;var H={value:q,getSnapshot:Q};return U.queue=H,J5(JO.bind(null,G,H,J),[J]),G.flags|=s7,S0(iQ|HZ,e2.bind(null,G,H,q,Q),void 0,null),q}function oY(J,Q,X){var G=GQ,U=k7(),q=Q();if(!_1){var O=Q();if(!W7(q,O))$("The result of getSnapshot should be cached to avoid an infinite loop"),_1=!0}var L=U.memoizedState,W=!W7(L,q);if(W)U.memoizedState=q,b0();var H=U.queue;if(_0(JO.bind(null,G,H,J),[J]),H.getSnapshot!==Q||W||oQ!==null&&oQ.memoizedState.tag&iQ){G.flags|=s7,S0(iQ|HZ,e2.bind(null,G,H,q,Q),void 0,null);var M=T5();if(M===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!i4(M,R9))a2(G,Q,q)}return q}function a2(J,Q,X){J.flags|=g4;var G={getSnapshot:Q,value:X},U=GQ.updateQueue;if(U===null)U=t2(),GQ.updateQueue=U,U.stores=[G];else{var q=U.stores;if(q===null)U.stores=[G];else q.push(G)}}function e2(J,Q,X,G){if(Q.value=X,Q.getSnapshot=G,QO(Q))ZO(J)}function JO(J,Q,X){var G=function(){if(QO(Q))ZO(J)};return X(G)}function QO(J){var{getSnapshot:Q,value:X}=J;try{var G=Q();return!W7(X,G)}catch(U){return!0}}function ZO(J){var Q=nZ(J,NJ);if(Q!==null)JZ(Q,J,NJ,HQ)}function tY(J){var Q=B8();if(typeof J==="function")J=J();Q.memoizedState=Q.baseState=J;var X={pending:null,interleaved:null,lanes:f,dispatch:null,lastRenderedReducer:bU,lastRenderedState:J};Q.queue=X;var G=X.dispatch=yP.bind(null,GQ,X);return[Q.memoizedState,G]}function dU(J){return fU(bU)}function mU(J){return vU(bU)}function S0(J,Q,X,G){var U={tag:J,create:Q,destroy:X,deps:G,next:null},q=GQ.updateQueue;if(q===null)q=t2(),GQ.updateQueue=q,q.lastEffect=U.next=U;else{var O=q.lastEffect;if(O===null)q.lastEffect=U.next=U;else{var L=O.next;O.next=U,U.next=L,q.lastEffect=U}}return U}function cU(J){var Q=B8();{var X={current:J};return Q.memoizedState=X,X}}function aY(J){var Q=k7();return Q.memoizedState}function T0(J,Q,X,G){var U=B8(),q=G===void 0?null:G;GQ.flags|=J,U.memoizedState=S0(iQ|Q,X,void 0,q)}function eY(J,Q,X,G){var U=k7(),q=G===void 0?null:G,O=void 0;if(rQ!==null){var L=rQ.memoizedState;if(O=L.destroy,q!==null){var W=L.deps;if(hU(q,W)){U.memoizedState=S0(Q,X,O,q);return}}}GQ.flags|=J,U.memoizedState=S0(iQ|Q,X,O,q)}function J5(J,Q){if((GQ.mode&W8)!==MJ)return T0(d4|s7|uG,HZ,J,Q);else return T0(s7|uG,HZ,J,Q)}function _0(J,Q){return eY(s7,HZ,J,Q)}function pU(J,Q){return T0(pJ,F8,J,Q)}function Q5(J,Q){return eY(pJ,F8,J,Q)}function sU(J,Q){var X=pJ;if(X|=U9,(GQ.mode&W8)!==MJ)X|=y8;return T0(X,nQ,J,Q)}function Z5(J,Q){return eY(pJ,nQ,J,Q)}function XO(J,Q){if(typeof Q==="function"){var X=Q,G=J();return X(G),function(){X(null)}}else if(Q!==null&&Q!==void 0){var U=Q;if(!U.hasOwnProperty("current"))$("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(U).join(", ")+"}");var q=J();return U.current=q,function(){U.current=null}}}function lU(J,Q,X){if(typeof Q!=="function")$("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null");var G=X!==null&&X!==void 0?X.concat([J]):null,U=pJ;if(U|=U9,(GQ.mode&W8)!==MJ)U|=y8;return T0(U,nQ,XO.bind(null,Q,J),G)}function X5(J,Q,X){if(typeof Q!=="function")$("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null");var G=X!==null&&X!==void 0?X.concat([J]):null;return eY(pJ,nQ,XO.bind(null,Q,J),G)}function Y5(J,Q){}var G5=Y5;function iU(J,Q){var X=B8(),G=Q===void 0?null:Q;return X.memoizedState=[J,G],J}function K5(J,Q){var X=k7(),G=Q===void 0?null:Q,U=X.memoizedState;if(U!==null){if(G!==null){var q=U[1];if(hU(G,q))return U[0]}}return X.memoizedState=[J,G],J}function nU(J,Q){var X=B8(),G=Q===void 0?null:Q,U=J();return X.memoizedState=[U,G],U}function U5(J,Q){var X=k7(),G=Q===void 0?null:Q,U=X.memoizedState;if(U!==null){if(G!==null){var q=U[1];if(hU(G,q))return U[0]}}var O=J();return X.memoizedState=[O,G],O}function rU(J){var Q=B8();return Q.memoizedState=J,J}function YO(J){var Q=k7(),X=rQ,G=X.memoizedState;return KO(Q,G,J)}function GO(J){var Q=k7();if(rQ===null)return Q.memoizedState=J,J;else{var X=rQ.memoizedState;return KO(Q,X,J)}}function KO(J,Q,X){var G=!BB(R9);if(G){if(!W7(X,Q)){var U=Q3();GQ.lanes=xJ(GQ.lanes,U),i0(U),J.baseState=!0}return Q}else{if(J.baseState)J.baseState=!1,b0();return J.memoizedState=X,X}}function xP(J,Q,X){var G=i7();zZ(SB(G,u8)),J(!0);var U=w0.transition;w0.transition={};var q=w0.transition;w0.transition._updatedFibers=new Set;try{J(!1),Q()}finally{if(zZ(G),w0.transition=U,U===null&&q._updatedFibers){var O=q._updatedFibers.size;if(O>10)z("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.");q._updatedFibers.clear()}}}function oU(){var J=tY(!1),Q=J[0],X=J[1],G=xP.bind(null,X),U=B8();return U.memoizedState=G,[Q,G]}function UO(){var J=dU(),Q=J[0],X=k7(),G=X.memoizedState;return[Q,G]}function qO(){var J=mU(),Q=J[0],X=k7(),G=X.memoizedState;return[Q,G]}var zO=!1;function hP(){return zO}function tU(){var J=B8(),Q=T5(),X=Q.identifierPrefix,G;if(DZ()){var U=aj();G=":"+X+"R"+U;var q=V0++;if(q>0)G+="H"+q.toString(32);G+=":"}else{var O=kP++;G=":"+X+"r"+O.toString(32)+":"}return J.memoizedState=G,G}function q5(){var J=k7(),Q=J.memoizedState;return Q}function bP(J,Q,X){if(typeof arguments[3]==="function")$("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 G=gX(J),U={lane:G,action:X,hasEagerState:!1,eagerState:null,next:null};if($O(J))OO(Q,U);else{var q=u2(J,Q,U,G);if(q!==null){var O=bZ();JZ(q,J,G,O),LO(q,Q,G)}}WO(J,G)}function yP(J,Q,X){if(typeof arguments[3]==="function")$("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 G=gX(J),U={lane:G,action:X,hasEagerState:!1,eagerState:null,next:null};if($O(J))OO(Q,U);else{var q=J.alternate;if(J.lanes===f&&(q===null||q.lanes===f)){var O=Q.lastRenderedReducer;if(O!==null){var L;L=t.current,t.current=a7;try{var W=Q.lastRenderedState,H=O(W,X);if(U.hasEagerState=!0,U.eagerState=H,W7(H,W)){jP(J,Q,U,G);return}}catch(P){}finally{t.current=L}}}var M=u2(J,Q,U,G);if(M!==null){var N=bZ();JZ(M,J,G,N),LO(M,Q,G)}}WO(J,G)}function $O(J){var Q=J.alternate;return J===GQ||Q!==null&&Q===GQ}function OO(J,Q){R0=nY=!0;var X=J.pending;if(X===null)Q.next=Q;else Q.next=X.next,X.next=Q;J.pending=Q}function LO(J,Q,X){if(J3(X)){var G=Q.lanes;G=Z3(G,J.pendingLanes);var U=xJ(G,X);Q.lanes=U,HK(J,U)}}function WO(J,Q,X){pG(J,Q)}var z5={readContext:mQ,useCallback:TZ,useContext:TZ,useEffect:TZ,useImperativeHandle:TZ,useInsertionEffect:TZ,useLayoutEffect:TZ,useMemo:TZ,useReducer:TZ,useRef:TZ,useState:TZ,useDebugValue:TZ,useDeferredValue:TZ,useTransition:TZ,useMutableSource:TZ,useSyncExternalStore:TZ,useId:TZ,unstable_isNewReconciler:AJ},DO=null,HO=null,MO=null,FO=null,A8=null,a7=null,$5=null;{var aU=function(){$("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().")},wJ=function(){$("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")};DO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",QQ(),k1(Q),iU(J,Q)},useContext:function(J){return h="useContext",QQ(),mQ(J)},useEffect:function(J,Q){return h="useEffect",QQ(),k1(Q),J5(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",QQ(),k1(X),lU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",QQ(),k1(Q),pU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",QQ(),k1(Q),sU(J,Q)},useMemo:function(J,Q){h="useMemo",QQ(),k1(Q);var X=t.current;t.current=A8;try{return nU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",QQ();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",QQ(),cU(J)},useState:function(J){h="useState",QQ();var Q=t.current;t.current=A8;try{return tY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",QQ(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",QQ(),rU(J)},useTransition:function(){return h="useTransition",QQ(),oU()},useMutableSource:function(J,Q,X){return h="useMutableSource",QQ(),uU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",QQ(),gU(J,Q,X)},useId:function(){return h="useId",QQ(),tU()},unstable_isNewReconciler:AJ},HO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),iU(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),J5(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),lU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),pU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),sU(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=A8;try{return nU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),cU(J)},useState:function(J){h="useState",p();var Q=t.current;t.current=A8;try{return tY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",p(),rU(J)},useTransition:function(){return h="useTransition",p(),oU()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),uU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),gU(J,Q,X)},useId:function(){return h="useId",p(),tU()},unstable_isNewReconciler:AJ},MO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),K5(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),_0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),X5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),Q5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),Z5(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=a7;try{return U5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=a7;try{return fU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),aY()},useState:function(J){h="useState",p();var Q=t.current;t.current=a7;try{return dU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),G5()},useDeferredValue:function(J){return h="useDeferredValue",p(),YO(J)},useTransition:function(){return h="useTransition",p(),UO()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),rY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),oY(J,Q)},useId:function(){return h="useId",p(),q5()},unstable_isNewReconciler:AJ},FO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),K5(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),_0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),X5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),Q5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),Z5(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=$5;try{return U5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=$5;try{return vU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),aY()},useState:function(J){h="useState",p();var Q=t.current;t.current=$5;try{return mU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),G5()},useDeferredValue:function(J){return h="useDeferredValue",p(),GO(J)},useTransition:function(){return h="useTransition",p(),qO()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),rY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),oY(J,Q)},useId:function(){return h="useId",p(),q5()},unstable_isNewReconciler:AJ},A8={readContext:function(J){return aU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),QQ(),iU(J,Q)},useContext:function(J){return h="useContext",wJ(),QQ(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),QQ(),J5(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),QQ(),lU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),QQ(),pU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),QQ(),sU(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),QQ();var X=t.current;t.current=A8;try{return nU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),QQ();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),QQ(),cU(J)},useState:function(J){h="useState",wJ(),QQ();var Q=t.current;t.current=A8;try{return tY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),QQ(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),QQ(),rU(J)},useTransition:function(){return h="useTransition",wJ(),QQ(),oU()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),QQ(),uU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),QQ(),gU(J,Q,X)},useId:function(){return h="useId",wJ(),QQ(),tU()},unstable_isNewReconciler:AJ},a7={readContext:function(J){return aU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),p(),K5(J,Q)},useContext:function(J){return h="useContext",wJ(),p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),p(),_0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),p(),X5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),p(),Q5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),p(),Z5(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),p();var X=t.current;t.current=a7;try{return U5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),p();var G=t.current;t.current=a7;try{return fU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),p(),aY()},useState:function(J){h="useState",wJ(),p();var Q=t.current;t.current=a7;try{return dU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),p(),G5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),p(),YO(J)},useTransition:function(){return h="useTransition",wJ(),p(),UO()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),p(),rY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),p(),oY(J,Q)},useId:function(){return h="useId",wJ(),p(),q5()},unstable_isNewReconciler:AJ},$5={readContext:function(J){return aU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),p(),K5(J,Q)},useContext:function(J){return h="useContext",wJ(),p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),p(),_0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),p(),X5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),p(),Q5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),p(),Z5(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),p();var X=t.current;t.current=a7;try{return U5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),p();var G=t.current;t.current=a7;try{return vU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),p(),aY()},useState:function(J){h="useState",wJ(),p();var Q=t.current;t.current=a7;try{return mU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),p(),G5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),p(),GO(J)},useTransition:function(){return h="useTransition",wJ(),p(),qO()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),p(),rY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),p(),oY(J,Q)},useId:function(){return h="useId",wJ(),p(),q5()},unstable_isNewReconciler:AJ}}var yX=qQ.unstable_now,BO=0,O5=-1,k0=-1,L5=-1,eU=!1,W5=!1;function AO(){return eU}function fP(){W5=!0}function vP(){eU=!1,W5=!1}function uP(){eU=W5,W5=!1}function IO(){return BO}function jO(){BO=yX()}function Jq(J){if(k0=yX(),J.actualStartTime<0)J.actualStartTime=yX()}function PO(J){k0=-1}function D5(J,Q){if(k0>=0){var X=yX()-k0;if(J.actualDuration+=X,Q)J.selfBaseDuration=X;k0=-1}}function I8(J){if(O5>=0){var Q=yX()-O5;O5=-1;var X=J.return;while(X!==null){switch(X.tag){case _:var G=X.stateNode;G.effectDuration+=Q;return;case KJ:var U=X.stateNode;U.effectDuration+=Q;return}X=X.return}}}function Qq(J){if(L5>=0){var Q=yX()-L5;L5=-1;var X=J.return;while(X!==null){switch(X.tag){case _:var G=X.stateNode;if(G!==null)G.passiveEffectDuration+=Q;return;case KJ:var U=X.stateNode;if(U!==null)U.passiveEffectDuration+=Q;return}X=X.return}}}function j8(){O5=yX()}function Zq(){L5=yX()}function Xq(J){var Q=J.child;while(Q)J.actualDuration+=Q.actualDuration,Q=Q.sibling}function e7(J,Q){if(J&&J.defaultProps){var X=uJ({},Q),G=J.defaultProps;for(var U in G)if(X[U]===void 0)X[U]=G[U];return X}return Q}var Yq={},Gq,Kq,Uq,qq,zq,NO,H5,$q,Oq,Lq,E0;{Gq=new Set,Kq=new Set,Uq=new Set,qq=new Set,$q=new Set,zq=new Set,Oq=new Set,Lq=new Set,E0=new Set;var wO=new Set;H5=function(J,Q){if(J===null||typeof J==="function")return;var X=Q+"_"+J;if(!wO.has(X))wO.add(X),$("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q,J)},NO=function(J,Q){if(Q===void 0){var X=sJ(J)||"Component";if(!zq.has(X))zq.add(X),$("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",X)}},Object.defineProperty(Yq,"_processChildContext",{enumerable:!1,value:function(){throw 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(Yq)}function Wq(J,Q,X,G){var U=J.memoizedState,q=X(G,U);{if(J.mode&CQ){UZ(!0);try{q=X(G,U)}finally{UZ(!1)}}NO(Q,q)}var O=q===null||q===void 0?U:uJ({},U,q);if(J.memoizedState=O,J.lanes===f){var L=J.updateQueue;L.baseState=O}}var Dq={isMounted:EF,enqueueSetState:function(J,Q,X){var G=Q1(J),U=bZ(),q=gX(G),O=l8(U,q);if(O.payload=Q,X!==void 0&&X!==null)H5(X,"setState"),O.callback=X;var L=CX(G,O,q);if(L!==null)JZ(L,G,q,U),mY(L,G,q);pG(G,q)},enqueueReplaceState:function(J,Q,X){var G=Q1(J),U=bZ(),q=gX(G),O=l8(U,q);if(O.tag=d2,O.payload=Q,X!==void 0&&X!==null)H5(X,"replaceState"),O.callback=X;var L=CX(G,O,q);if(L!==null)JZ(L,G,q,U),mY(L,G,q);pG(G,q)},enqueueForceUpdate:function(J,Q){var X=Q1(J),G=bZ(),U=gX(X),q=l8(G,U);if(q.tag=uY,Q!==void 0&&Q!==null)H5(Q,"forceUpdate"),q.callback=Q;var O=CX(X,q,U);if(O!==null)JZ(O,X,U,G),mY(O,X,U);qB(X,U)}};function RO(J,Q,X,G,U,q,O){var L=J.stateNode;if(typeof L.shouldComponentUpdate==="function"){var W=L.shouldComponentUpdate(G,q,O);{if(J.mode&CQ){UZ(!0);try{W=L.shouldComponentUpdate(G,q,O)}finally{UZ(!1)}}if(W===void 0)$("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",sJ(Q)||"Component")}return W}if(Q.prototype&&Q.prototype.isPureReactComponent)return!e6(X,G)||!e6(U,q);return!0}function gP(J,Q,X){var G=J.stateNode;{var U=sJ(Q)||"Component",q=G.render;if(!q)if(Q.prototype&&typeof Q.prototype.render==="function")$("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",U);else $("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",U);if(G.getInitialState&&!G.getInitialState.isReactClassApproved&&!G.state)$("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?",U);if(G.getDefaultProps&&!G.getDefaultProps.isReactClassApproved)$("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.",U);if(G.propTypes)$("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",U);if(G.contextType)$("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",U);{if(Q.childContextTypes&&!E0.has(Q)&&(J.mode&CQ)===MJ)E0.add(Q),$(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
94
|
+
Incoming: %s`,h,"["+Q.join(", ")+"]","["+J.join(", ")+"]");for(var X=0;X<Q.length&&X<J.length;X++){if(W7(J[X],Q[X]))continue;return!1}return!0}function E1(J,Q,X,G,U,q){if(V9=q,GQ=Q,T7=J!==null?J._debugHookTypes:null,bX=-1,xU=J!==null&&J.type!==Q.type,Q.memoizedState=null,Q.updateQueue=null,Q.lanes=f,J!==null&&J.memoizedState!==null)t.current=MO;else if(T7!==null)t.current=HO;else t.current=DO;var O=X(G,U);if(V0){var L=0;do{if(V0=!1,R0=0,L>=EP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");L+=1,xU=!1,nQ=null,oQ=null,Q.updateQueue=null,bX=-1,t.current=FO,O=X(G,U)}while(V0)}t.current=z5,Q._debugHookTypes=T7;var W=nQ!==null&&nQ.next!==null;if(V9=f,GQ=null,nQ=null,oQ=null,h=null,T7=null,bX=-1,J!==null&&(J.flags&f8)!==(Q.flags&f8)&&(J.mode&dJ)!==MJ)$("Internal React error: Expected static flag was missing. Please notify the React team.");if(rY=!1,W)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return O}function C1(){var J=R0!==0;return R0=0,J}function n2(J,Q,X){if(Q.updateQueue=J.updateQueue,(Q.mode&W8)!==MJ)Q.flags&=~(d4|y8|s7|pJ);else Q.flags&=~(s7|pJ);J.lanes=r4(J.lanes,X)}function o2(){if(t.current=z5,rY){var J=GQ.memoizedState;while(J!==null){var Q=J.queue;if(Q!==null)Q.pending=null;J=J.next}rY=!1}V9=f,GQ=null,nQ=null,oQ=null,T7=null,bX=-1,h=null,zO=!1,V0=!1,R0=0}function B8(){var J={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};if(oQ===null)GQ.memoizedState=oQ=J;else oQ=oQ.next=J;return oQ}function k7(){var J;if(nQ===null){var Q=GQ.alternate;if(Q!==null)J=Q.memoizedState;else J=null}else J=nQ.next;var X;if(oQ===null)X=GQ.memoizedState;else X=oQ.next;if(X!==null)oQ=X,X=oQ.next,nQ=J;else{if(J===null)throw Error("Rendered more hooks than during the previous render.");nQ=J;var G={memoizedState:nQ.memoizedState,baseState:nQ.baseState,baseQueue:nQ.baseQueue,queue:nQ.queue,next:null};if(oQ===null)GQ.memoizedState=oQ=G;else oQ=oQ.next=G}return oQ}function t2(){return{lastEffect:null,stores:null}}function bU(J,Q){return typeof Q==="function"?Q(J):Q}function yU(J,Q,X){var G=B8(),U;if(X!==void 0)U=X(Q);else U=Q;G.memoizedState=G.baseState=U;var q={pending:null,interleaved:null,lanes:f,dispatch:null,lastRenderedReducer:J,lastRenderedState:U};G.queue=q;var O=q.dispatch=bP.bind(null,GQ,q);return[G.memoizedState,O]}function fU(J,Q,X){var G=k7(),U=G.queue;if(U===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");U.lastRenderedReducer=J;var q=nQ,O=q.baseQueue,L=U.pending;if(L!==null){if(O!==null){var W=O.next,H=L.next;O.next=H,L.next=W}if(q.baseQueue!==O)$("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.");q.baseQueue=O=L,U.pending=null}if(O!==null){var M=O.next,N=q.baseState,P=null,S=null,_=null,E=M;do{var s=E.lane;if(!q1(V9,s)){var OJ={lane:s,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};if(_===null)S=_=OJ,P=N;else _=_.next=OJ;GQ.lanes=xJ(GQ.lanes,s),i0(s)}else{if(_!==null){var GJ={lane:qZ,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};_=_.next=GJ}if(E.hasEagerState)N=E.eagerState;else{var yJ=E.action;N=J(N,yJ)}}E=E.next}while(E!==null&&E!==M);if(_===null)P=N;else _.next=S;if(!W7(N,G.memoizedState))b0();G.memoizedState=N,G.baseState=P,G.baseQueue=_,U.lastRenderedState=N}var fJ=U.interleaved;if(fJ!==null){var w=fJ;do{var x=w.lane;GQ.lanes=xJ(GQ.lanes,x),i0(x),w=w.next}while(w!==fJ)}else if(O===null)U.lanes=f;var V=U.dispatch;return[G.memoizedState,V]}function vU(J,Q,X){var G=k7(),U=G.queue;if(U===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");U.lastRenderedReducer=J;var{dispatch:q,pending:O}=U,L=G.memoizedState;if(O!==null){U.pending=null;var W=O.next,H=W;do{var M=H.action;L=J(L,M),H=H.next}while(H!==W);if(!W7(L,G.memoizedState))b0();if(G.memoizedState=L,G.baseQueue===null)G.baseState=L;U.lastRenderedState=L}return[L,q]}function uU(J,Q,X){return}function nY(J,Q,X){return}function gU(J,Q,X){var G=GQ,U=B8(),q,O=DZ();if(O){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");if(q=X(),!T1){if(q!==X())$("The result of getServerSnapshot should be cached to avoid an infinite loop"),T1=!0}}else{if(q=Q(),!T1){var L=Q();if(!W7(q,L))$("The result of getSnapshot should be cached to avoid an infinite loop"),T1=!0}var W=_5();if(W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!i4(W,V9))a2(G,Q,q)}U.memoizedState=q;var H={value:q,getSnapshot:Q};return U.queue=H,J5(JO.bind(null,G,H,J),[J]),G.flags|=s7,S0(iQ|HZ,e2.bind(null,G,H,q,Q),void 0,null),q}function oY(J,Q,X){var G=GQ,U=k7(),q=Q();if(!T1){var O=Q();if(!W7(q,O))$("The result of getSnapshot should be cached to avoid an infinite loop"),T1=!0}var L=U.memoizedState,W=!W7(L,q);if(W)U.memoizedState=q,b0();var H=U.queue;if(T0(JO.bind(null,G,H,J),[J]),H.getSnapshot!==Q||W||oQ!==null&&oQ.memoizedState.tag&iQ){G.flags|=s7,S0(iQ|HZ,e2.bind(null,G,H,q,Q),void 0,null);var M=_5();if(M===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");if(!i4(M,V9))a2(G,Q,q)}return q}function a2(J,Q,X){J.flags|=g4;var G={getSnapshot:Q,value:X},U=GQ.updateQueue;if(U===null)U=t2(),GQ.updateQueue=U,U.stores=[G];else{var q=U.stores;if(q===null)U.stores=[G];else q.push(G)}}function e2(J,Q,X,G){if(Q.value=X,Q.getSnapshot=G,QO(Q))ZO(J)}function JO(J,Q,X){var G=function(){if(QO(Q))ZO(J)};return X(G)}function QO(J){var{getSnapshot:Q,value:X}=J;try{var G=Q();return!W7(X,G)}catch(U){return!0}}function ZO(J){var Q=rZ(J,NJ);if(Q!==null)JZ(Q,J,NJ,HQ)}function tY(J){var Q=B8();if(typeof J==="function")J=J();Q.memoizedState=Q.baseState=J;var X={pending:null,interleaved:null,lanes:f,dispatch:null,lastRenderedReducer:bU,lastRenderedState:J};Q.queue=X;var G=X.dispatch=yP.bind(null,GQ,X);return[Q.memoizedState,G]}function dU(J){return fU(bU)}function mU(J){return vU(bU)}function S0(J,Q,X,G){var U={tag:J,create:Q,destroy:X,deps:G,next:null},q=GQ.updateQueue;if(q===null)q=t2(),GQ.updateQueue=q,q.lastEffect=U.next=U;else{var O=q.lastEffect;if(O===null)q.lastEffect=U.next=U;else{var L=O.next;O.next=U,U.next=L,q.lastEffect=U}}return U}function cU(J){var Q=B8();{var X={current:J};return Q.memoizedState=X,X}}function aY(J){var Q=k7();return Q.memoizedState}function _0(J,Q,X,G){var U=B8(),q=G===void 0?null:G;GQ.flags|=J,U.memoizedState=S0(iQ|Q,X,void 0,q)}function eY(J,Q,X,G){var U=k7(),q=G===void 0?null:G,O=void 0;if(nQ!==null){var L=nQ.memoizedState;if(O=L.destroy,q!==null){var W=L.deps;if(hU(q,W)){U.memoizedState=S0(Q,X,O,q);return}}}GQ.flags|=J,U.memoizedState=S0(iQ|Q,X,O,q)}function J5(J,Q){if((GQ.mode&W8)!==MJ)return _0(d4|s7|uG,HZ,J,Q);else return _0(s7|uG,HZ,J,Q)}function T0(J,Q){return eY(s7,HZ,J,Q)}function pU(J,Q){return _0(pJ,F8,J,Q)}function Q5(J,Q){return eY(pJ,F8,J,Q)}function sU(J,Q){var X=pJ;if(X|=U9,(GQ.mode&W8)!==MJ)X|=y8;return _0(X,rQ,J,Q)}function Z5(J,Q){return eY(pJ,rQ,J,Q)}function XO(J,Q){if(typeof Q==="function"){var X=Q,G=J();return X(G),function(){X(null)}}else if(Q!==null&&Q!==void 0){var U=Q;if(!U.hasOwnProperty("current"))$("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(U).join(", ")+"}");var q=J();return U.current=q,function(){U.current=null}}}function lU(J,Q,X){if(typeof Q!=="function")$("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null");var G=X!==null&&X!==void 0?X.concat([J]):null,U=pJ;if(U|=U9,(GQ.mode&W8)!==MJ)U|=y8;return _0(U,rQ,XO.bind(null,Q,J),G)}function X5(J,Q,X){if(typeof Q!=="function")$("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null");var G=X!==null&&X!==void 0?X.concat([J]):null;return eY(pJ,rQ,XO.bind(null,Q,J),G)}function Y5(J,Q){}var G5=Y5;function iU(J,Q){var X=B8(),G=Q===void 0?null:Q;return X.memoizedState=[J,G],J}function K5(J,Q){var X=k7(),G=Q===void 0?null:Q,U=X.memoizedState;if(U!==null){if(G!==null){var q=U[1];if(hU(G,q))return U[0]}}return X.memoizedState=[J,G],J}function rU(J,Q){var X=B8(),G=Q===void 0?null:Q,U=J();return X.memoizedState=[U,G],U}function U5(J,Q){var X=k7(),G=Q===void 0?null:Q,U=X.memoizedState;if(U!==null){if(G!==null){var q=U[1];if(hU(G,q))return U[0]}}var O=J();return X.memoizedState=[O,G],O}function nU(J){var Q=B8();return Q.memoizedState=J,J}function YO(J){var Q=k7(),X=nQ,G=X.memoizedState;return KO(Q,G,J)}function GO(J){var Q=k7();if(nQ===null)return Q.memoizedState=J,J;else{var X=nQ.memoizedState;return KO(Q,X,J)}}function KO(J,Q,X){var G=!BB(V9);if(G){if(!W7(X,Q)){var U=Q3();GQ.lanes=xJ(GQ.lanes,U),i0(U),J.baseState=!0}return Q}else{if(J.baseState)J.baseState=!1,b0();return J.memoizedState=X,X}}function xP(J,Q,X){var G=i7();zZ(SB(G,u8)),J(!0);var U=w0.transition;w0.transition={};var q=w0.transition;w0.transition._updatedFibers=new Set;try{J(!1),Q()}finally{if(zZ(G),w0.transition=U,U===null&&q._updatedFibers){var O=q._updatedFibers.size;if(O>10)z("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.");q._updatedFibers.clear()}}}function oU(){var J=tY(!1),Q=J[0],X=J[1],G=xP.bind(null,X),U=B8();return U.memoizedState=G,[Q,G]}function UO(){var J=dU(),Q=J[0],X=k7(),G=X.memoizedState;return[Q,G]}function qO(){var J=mU(),Q=J[0],X=k7(),G=X.memoizedState;return[Q,G]}var zO=!1;function hP(){return zO}function tU(){var J=B8(),Q=_5(),X=Q.identifierPrefix,G;if(DZ()){var U=aj();G=":"+X+"R"+U;var q=R0++;if(q>0)G+="H"+q.toString(32);G+=":"}else{var O=kP++;G=":"+X+"r"+O.toString(32)+":"}return J.memoizedState=G,G}function q5(){var J=k7(),Q=J.memoizedState;return Q}function bP(J,Q,X){if(typeof arguments[3]==="function")$("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 G=gX(J),U={lane:G,action:X,hasEagerState:!1,eagerState:null,next:null};if($O(J))OO(Q,U);else{var q=u2(J,Q,U,G);if(q!==null){var O=bZ();JZ(q,J,G,O),LO(q,Q,G)}}WO(J,G)}function yP(J,Q,X){if(typeof arguments[3]==="function")$("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 G=gX(J),U={lane:G,action:X,hasEagerState:!1,eagerState:null,next:null};if($O(J))OO(Q,U);else{var q=J.alternate;if(J.lanes===f&&(q===null||q.lanes===f)){var O=Q.lastRenderedReducer;if(O!==null){var L;L=t.current,t.current=a7;try{var W=Q.lastRenderedState,H=O(W,X);if(U.hasEagerState=!0,U.eagerState=H,W7(H,W)){jP(J,Q,U,G);return}}catch(P){}finally{t.current=L}}}var M=u2(J,Q,U,G);if(M!==null){var N=bZ();JZ(M,J,G,N),LO(M,Q,G)}}WO(J,G)}function $O(J){var Q=J.alternate;return J===GQ||Q!==null&&Q===GQ}function OO(J,Q){V0=rY=!0;var X=J.pending;if(X===null)Q.next=Q;else Q.next=X.next,X.next=Q;J.pending=Q}function LO(J,Q,X){if(J3(X)){var G=Q.lanes;G=Z3(G,J.pendingLanes);var U=xJ(G,X);Q.lanes=U,HK(J,U)}}function WO(J,Q,X){pG(J,Q)}var z5={readContext:mQ,useCallback:_Z,useContext:_Z,useEffect:_Z,useImperativeHandle:_Z,useInsertionEffect:_Z,useLayoutEffect:_Z,useMemo:_Z,useReducer:_Z,useRef:_Z,useState:_Z,useDebugValue:_Z,useDeferredValue:_Z,useTransition:_Z,useMutableSource:_Z,useSyncExternalStore:_Z,useId:_Z,unstable_isNewReconciler:AJ},DO=null,HO=null,MO=null,FO=null,A8=null,a7=null,$5=null;{var aU=function(){$("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().")},wJ=function(){$("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")};DO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",QQ(),k1(Q),iU(J,Q)},useContext:function(J){return h="useContext",QQ(),mQ(J)},useEffect:function(J,Q){return h="useEffect",QQ(),k1(Q),J5(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",QQ(),k1(X),lU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",QQ(),k1(Q),pU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",QQ(),k1(Q),sU(J,Q)},useMemo:function(J,Q){h="useMemo",QQ(),k1(Q);var X=t.current;t.current=A8;try{return rU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",QQ();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",QQ(),cU(J)},useState:function(J){h="useState",QQ();var Q=t.current;t.current=A8;try{return tY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",QQ(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",QQ(),nU(J)},useTransition:function(){return h="useTransition",QQ(),oU()},useMutableSource:function(J,Q,X){return h="useMutableSource",QQ(),uU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",QQ(),gU(J,Q,X)},useId:function(){return h="useId",QQ(),tU()},unstable_isNewReconciler:AJ},HO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),iU(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),J5(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),lU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),pU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),sU(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=A8;try{return rU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),cU(J)},useState:function(J){h="useState",p();var Q=t.current;t.current=A8;try{return tY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",p(),nU(J)},useTransition:function(){return h="useTransition",p(),oU()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),uU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),gU(J,Q,X)},useId:function(){return h="useId",p(),tU()},unstable_isNewReconciler:AJ},MO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),K5(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),T0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),X5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),Q5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),Z5(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=a7;try{return U5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=a7;try{return fU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),aY()},useState:function(J){h="useState",p();var Q=t.current;t.current=a7;try{return dU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),G5()},useDeferredValue:function(J){return h="useDeferredValue",p(),YO(J)},useTransition:function(){return h="useTransition",p(),UO()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),nY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),oY(J,Q)},useId:function(){return h="useId",p(),q5()},unstable_isNewReconciler:AJ},FO={readContext:function(J){return mQ(J)},useCallback:function(J,Q){return h="useCallback",p(),K5(J,Q)},useContext:function(J){return h="useContext",p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",p(),T0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",p(),X5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",p(),Q5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",p(),Z5(J,Q)},useMemo:function(J,Q){h="useMemo",p();var X=t.current;t.current=$5;try{return U5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",p();var G=t.current;t.current=$5;try{return vU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",p(),aY()},useState:function(J){h="useState",p();var Q=t.current;t.current=$5;try{return mU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",p(),G5()},useDeferredValue:function(J){return h="useDeferredValue",p(),GO(J)},useTransition:function(){return h="useTransition",p(),qO()},useMutableSource:function(J,Q,X){return h="useMutableSource",p(),nY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",p(),oY(J,Q)},useId:function(){return h="useId",p(),q5()},unstable_isNewReconciler:AJ},A8={readContext:function(J){return aU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),QQ(),iU(J,Q)},useContext:function(J){return h="useContext",wJ(),QQ(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),QQ(),J5(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),QQ(),lU(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),QQ(),pU(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),QQ(),sU(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),QQ();var X=t.current;t.current=A8;try{return rU(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),QQ();var G=t.current;t.current=A8;try{return yU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),QQ(),cU(J)},useState:function(J){h="useState",wJ(),QQ();var Q=t.current;t.current=A8;try{return tY(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),QQ(),Y5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),QQ(),nU(J)},useTransition:function(){return h="useTransition",wJ(),QQ(),oU()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),QQ(),uU()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),QQ(),gU(J,Q,X)},useId:function(){return h="useId",wJ(),QQ(),tU()},unstable_isNewReconciler:AJ},a7={readContext:function(J){return aU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),p(),K5(J,Q)},useContext:function(J){return h="useContext",wJ(),p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),p(),T0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),p(),X5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),p(),Q5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),p(),Z5(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),p();var X=t.current;t.current=a7;try{return U5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),p();var G=t.current;t.current=a7;try{return fU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),p(),aY()},useState:function(J){h="useState",wJ(),p();var Q=t.current;t.current=a7;try{return dU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),p(),G5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),p(),YO(J)},useTransition:function(){return h="useTransition",wJ(),p(),UO()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),p(),nY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),p(),oY(J,Q)},useId:function(){return h="useId",wJ(),p(),q5()},unstable_isNewReconciler:AJ},$5={readContext:function(J){return aU(),mQ(J)},useCallback:function(J,Q){return h="useCallback",wJ(),p(),K5(J,Q)},useContext:function(J){return h="useContext",wJ(),p(),mQ(J)},useEffect:function(J,Q){return h="useEffect",wJ(),p(),T0(J,Q)},useImperativeHandle:function(J,Q,X){return h="useImperativeHandle",wJ(),p(),X5(J,Q,X)},useInsertionEffect:function(J,Q){return h="useInsertionEffect",wJ(),p(),Q5(J,Q)},useLayoutEffect:function(J,Q){return h="useLayoutEffect",wJ(),p(),Z5(J,Q)},useMemo:function(J,Q){h="useMemo",wJ(),p();var X=t.current;t.current=a7;try{return U5(J,Q)}finally{t.current=X}},useReducer:function(J,Q,X){h="useReducer",wJ(),p();var G=t.current;t.current=a7;try{return vU(J,Q,X)}finally{t.current=G}},useRef:function(J){return h="useRef",wJ(),p(),aY()},useState:function(J){h="useState",wJ(),p();var Q=t.current;t.current=a7;try{return mU(J)}finally{t.current=Q}},useDebugValue:function(J,Q){return h="useDebugValue",wJ(),p(),G5()},useDeferredValue:function(J){return h="useDeferredValue",wJ(),p(),GO(J)},useTransition:function(){return h="useTransition",wJ(),p(),qO()},useMutableSource:function(J,Q,X){return h="useMutableSource",wJ(),p(),nY()},useSyncExternalStore:function(J,Q,X){return h="useSyncExternalStore",wJ(),p(),oY(J,Q)},useId:function(){return h="useId",wJ(),p(),q5()},unstable_isNewReconciler:AJ}}var yX=qQ.unstable_now,BO=0,O5=-1,k0=-1,L5=-1,eU=!1,W5=!1;function AO(){return eU}function fP(){W5=!0}function vP(){eU=!1,W5=!1}function uP(){eU=W5,W5=!1}function IO(){return BO}function jO(){BO=yX()}function Jq(J){if(k0=yX(),J.actualStartTime<0)J.actualStartTime=yX()}function PO(J){k0=-1}function D5(J,Q){if(k0>=0){var X=yX()-k0;if(J.actualDuration+=X,Q)J.selfBaseDuration=X;k0=-1}}function I8(J){if(O5>=0){var Q=yX()-O5;O5=-1;var X=J.return;while(X!==null){switch(X.tag){case T:var G=X.stateNode;G.effectDuration+=Q;return;case KJ:var U=X.stateNode;U.effectDuration+=Q;return}X=X.return}}}function Qq(J){if(L5>=0){var Q=yX()-L5;L5=-1;var X=J.return;while(X!==null){switch(X.tag){case T:var G=X.stateNode;if(G!==null)G.passiveEffectDuration+=Q;return;case KJ:var U=X.stateNode;if(U!==null)U.passiveEffectDuration+=Q;return}X=X.return}}}function j8(){O5=yX()}function Zq(){L5=yX()}function Xq(J){var Q=J.child;while(Q)J.actualDuration+=Q.actualDuration,Q=Q.sibling}function e7(J,Q){if(J&&J.defaultProps){var X=uJ({},Q),G=J.defaultProps;for(var U in G)if(X[U]===void 0)X[U]=G[U];return X}return Q}var Yq={},Gq,Kq,Uq,qq,zq,NO,H5,$q,Oq,Lq,E0;{Gq=new Set,Kq=new Set,Uq=new Set,qq=new Set,$q=new Set,zq=new Set,Oq=new Set,Lq=new Set,E0=new Set;var wO=new Set;H5=function(J,Q){if(J===null||typeof J==="function")return;var X=Q+"_"+J;if(!wO.has(X))wO.add(X),$("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q,J)},NO=function(J,Q){if(Q===void 0){var X=sJ(J)||"Component";if(!zq.has(X))zq.add(X),$("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",X)}},Object.defineProperty(Yq,"_processChildContext",{enumerable:!1,value:function(){throw 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(Yq)}function Wq(J,Q,X,G){var U=J.memoizedState,q=X(G,U);{if(J.mode&CQ){UZ(!0);try{q=X(G,U)}finally{UZ(!1)}}NO(Q,q)}var O=q===null||q===void 0?U:uJ({},U,q);if(J.memoizedState=O,J.lanes===f){var L=J.updateQueue;L.baseState=O}}var Dq={isMounted:EF,enqueueSetState:function(J,Q,X){var G=Q1(J),U=bZ(),q=gX(G),O=l8(U,q);if(O.payload=Q,X!==void 0&&X!==null)H5(X,"setState"),O.callback=X;var L=CX(G,O,q);if(L!==null)JZ(L,G,q,U),mY(L,G,q);pG(G,q)},enqueueReplaceState:function(J,Q,X){var G=Q1(J),U=bZ(),q=gX(G),O=l8(U,q);if(O.tag=d2,O.payload=Q,X!==void 0&&X!==null)H5(X,"replaceState"),O.callback=X;var L=CX(G,O,q);if(L!==null)JZ(L,G,q,U),mY(L,G,q);pG(G,q)},enqueueForceUpdate:function(J,Q){var X=Q1(J),G=bZ(),U=gX(X),q=l8(G,U);if(q.tag=uY,Q!==void 0&&Q!==null)H5(Q,"forceUpdate"),q.callback=Q;var O=CX(X,q,U);if(O!==null)JZ(O,X,U,G),mY(O,X,U);qB(X,U)}};function VO(J,Q,X,G,U,q,O){var L=J.stateNode;if(typeof L.shouldComponentUpdate==="function"){var W=L.shouldComponentUpdate(G,q,O);{if(J.mode&CQ){UZ(!0);try{W=L.shouldComponentUpdate(G,q,O)}finally{UZ(!1)}}if(W===void 0)$("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",sJ(Q)||"Component")}return W}if(Q.prototype&&Q.prototype.isPureReactComponent)return!e6(X,G)||!e6(U,q);return!0}function gP(J,Q,X){var G=J.stateNode;{var U=sJ(Q)||"Component",q=G.render;if(!q)if(Q.prototype&&typeof Q.prototype.render==="function")$("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",U);else $("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",U);if(G.getInitialState&&!G.getInitialState.isReactClassApproved&&!G.state)$("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?",U);if(G.getDefaultProps&&!G.getDefaultProps.isReactClassApproved)$("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.",U);if(G.propTypes)$("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",U);if(G.contextType)$("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",U);{if(Q.childContextTypes&&!E0.has(Q)&&(J.mode&CQ)===MJ)E0.add(Q),$(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
95
95
|
|
|
96
96
|
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,U);if(Q.contextTypes&&!E0.has(Q)&&(J.mode&CQ)===MJ)E0.add(Q),$(`%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.
|
|
97
97
|
|
|
98
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,U);if(G.contextTypes)$("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",U);if(Q.contextType&&Q.contextTypes&&!Oq.has(Q))Oq.add(Q),$("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",U)}if(typeof G.componentShouldUpdate==="function")$("%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.",U);if(Q.prototype&&Q.prototype.isPureReactComponent&&typeof G.shouldComponentUpdate<"u")$("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",sJ(Q)||"A pure component");if(typeof G.componentDidUnmount==="function")$("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",U);if(typeof G.componentDidReceiveProps==="function")$("%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().",U);if(typeof G.componentWillRecieveProps==="function")$("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",U);if(typeof G.UNSAFE_componentWillRecieveProps==="function")$("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",U);var O=G.props!==X;if(G.props!==void 0&&O)$("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",U,U);if(G.defaultProps)$("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",U,U);if(typeof G.getSnapshotBeforeUpdate==="function"&&typeof G.componentDidUpdate!=="function"&&!Uq.has(Q))Uq.add(Q),$("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",sJ(Q));if(typeof G.getDerivedStateFromProps==="function")$("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",U);if(typeof G.getDerivedStateFromError==="function")$("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",U);if(typeof Q.getSnapshotBeforeUpdate==="function")$("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",U);var L=G.state;if(L&&(typeof L!=="object"||tJ(L)))$("%s.state: must be set to an object or null",U);if(typeof G.getChildContext==="function"&&typeof Q.childContextTypes!=="object")$("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",U)}}function
|
|
98
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,U);if(G.contextTypes)$("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",U);if(Q.contextType&&Q.contextTypes&&!Oq.has(Q))Oq.add(Q),$("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",U)}if(typeof G.componentShouldUpdate==="function")$("%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.",U);if(Q.prototype&&Q.prototype.isPureReactComponent&&typeof G.shouldComponentUpdate<"u")$("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",sJ(Q)||"A pure component");if(typeof G.componentDidUnmount==="function")$("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",U);if(typeof G.componentDidReceiveProps==="function")$("%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().",U);if(typeof G.componentWillRecieveProps==="function")$("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",U);if(typeof G.UNSAFE_componentWillRecieveProps==="function")$("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",U);var O=G.props!==X;if(G.props!==void 0&&O)$("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",U,U);if(G.defaultProps)$("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",U,U);if(typeof G.getSnapshotBeforeUpdate==="function"&&typeof G.componentDidUpdate!=="function"&&!Uq.has(Q))Uq.add(Q),$("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",sJ(Q));if(typeof G.getDerivedStateFromProps==="function")$("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",U);if(typeof G.getDerivedStateFromError==="function")$("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",U);if(typeof Q.getSnapshotBeforeUpdate==="function")$("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",U);var L=G.state;if(L&&(typeof L!=="object"||tJ(L)))$("%s.state: must be set to an object or null",U);if(typeof G.getChildContext==="function"&&typeof Q.childContextTypes!=="object")$("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",U)}}function RO(J,Q){Q.updater=Dq,J.stateNode=Q,RF(Q,J),Q._reactInternalInstance=Yq}function SO(J,Q,X){var G=!1,U=D7,q=D7,O=Q.contextType;if("contextType"in Q){var L=O===null||O!==void 0&&O.$$typeof===FJ&&O._context===void 0;if(!L&&!Lq.has(Q)){Lq.add(Q);var W="";if(O===void 0)W=" 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.";else if(typeof O!=="object")W=" However, it is set to a "+typeof O+".";else if(O.$$typeof===l)W=" Did you accidentally pass the Context.Provider instead?";else if(O._context!==void 0)W=" Did you accidentally pass the Context.Consumer instead?";else W=" However, it is set to an object with keys {"+Object.keys(O).join(", ")+"}.";$("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",sJ(Q)||"Component",W)}}if(typeof O==="object"&&O!==null)q=mQ(O);else{U=B1(J,Q,!0);var H=Q.contextTypes;G=H!==null&&H!==void 0,q=G?A1(J,U):D7}var M=new Q(X,q);if(J.mode&CQ){UZ(!0);try{M=new Q(X,q)}finally{UZ(!1)}}var N=J.memoizedState=M.state!==null&&M.state!==void 0?M.state:null;RO(J,M);{if(typeof Q.getDerivedStateFromProps==="function"&&N===null){var P=sJ(Q)||"Component";if(!Kq.has(P))Kq.add(P),$("`%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.",P,M.state===null?"null":"undefined",P)}if(typeof Q.getDerivedStateFromProps==="function"||typeof M.getSnapshotBeforeUpdate==="function"){var S=null,_=null,E=null;if(typeof M.componentWillMount==="function"&&M.componentWillMount.__suppressDeprecationWarning!==!0)S="componentWillMount";else if(typeof M.UNSAFE_componentWillMount==="function")S="UNSAFE_componentWillMount";if(typeof M.componentWillReceiveProps==="function"&&M.componentWillReceiveProps.__suppressDeprecationWarning!==!0)_="componentWillReceiveProps";else if(typeof M.UNSAFE_componentWillReceiveProps==="function")_="UNSAFE_componentWillReceiveProps";if(typeof M.componentWillUpdate==="function"&&M.componentWillUpdate.__suppressDeprecationWarning!==!0)E="componentWillUpdate";else if(typeof M.UNSAFE_componentWillUpdate==="function")E="UNSAFE_componentWillUpdate";if(S!==null||_!==null||E!==null){var s=sJ(Q)||"Component",OJ=typeof Q.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";if(!qq.has(s))qq.add(s),$(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
99
99
|
|
|
100
100
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
101
101
|
|
|
102
102
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
103
103
|
https://reactjs.org/link/unsafe-component-lifecycles`,s,OJ,S!==null?`
|
|
104
|
-
`+S:"",
|
|
105
|
-
`+
|
|
106
|
-
`+E:"")}}}if(G)M2(J,U,q);return M}function dP(J,Q){var X=Q.state;if(typeof Q.componentWillMount==="function")Q.componentWillMount();if(typeof Q.UNSAFE_componentWillMount==="function")Q.UNSAFE_componentWillMount();if(X!==Q.state)$("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",EJ(J)||"Component"),Dq.enqueueReplaceState(Q,Q.state,null)}function
|
|
104
|
+
`+S:"",_!==null?`
|
|
105
|
+
`+_:"",E!==null?`
|
|
106
|
+
`+E:"")}}}if(G)M2(J,U,q);return M}function dP(J,Q){var X=Q.state;if(typeof Q.componentWillMount==="function")Q.componentWillMount();if(typeof Q.UNSAFE_componentWillMount==="function")Q.UNSAFE_componentWillMount();if(X!==Q.state)$("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",EJ(J)||"Component"),Dq.enqueueReplaceState(Q,Q.state,null)}function _O(J,Q,X,G){var U=Q.state;if(typeof Q.componentWillReceiveProps==="function")Q.componentWillReceiveProps(X,G);if(typeof Q.UNSAFE_componentWillReceiveProps==="function")Q.UNSAFE_componentWillReceiveProps(X,G);if(Q.state!==U){{var q=EJ(J)||"Component";if(!Gq.has(q))Gq.add(q),$("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",q)}Dq.enqueueReplaceState(Q,Q.state,null)}}function Hq(J,Q,X,G){gP(J,Q,X);var U=J.stateNode;U.props=X,U.state=J.memoizedState,U.refs={},NU(J);var q=Q.contextType;if(typeof q==="object"&&q!==null)U.context=mQ(q);else{var O=B1(J,Q,!0);U.context=A1(J,O)}{if(U.state===X){var L=sJ(Q)||"Component";if(!$q.has(L))$q.add(L),$("%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.",L)}if(J.mode&CQ)o7.recordLegacyContextWarning(J,U);o7.recordUnsafeLifecycleWarnings(J,U)}U.state=J.memoizedState;var W=Q.getDerivedStateFromProps;if(typeof W==="function")Wq(J,Q,W,X),U.state=J.memoizedState;if(typeof Q.getDerivedStateFromProps!=="function"&&typeof U.getSnapshotBeforeUpdate!=="function"&&(typeof U.UNSAFE_componentWillMount==="function"||typeof U.componentWillMount==="function"))dP(J,U),cY(J,X,U,G),U.state=J.memoizedState;if(typeof U.componentDidMount==="function"){var H=pJ;if(H|=U9,(J.mode&W8)!==MJ)H|=y8;J.flags|=H}}function mP(J,Q,X,G){var{stateNode:U,memoizedProps:q}=J;U.props=q;var O=U.context,L=Q.contextType,W=D7;if(typeof L==="object"&&L!==null)W=mQ(L);else{var H=B1(J,Q,!0);W=A1(J,H)}var M=Q.getDerivedStateFromProps,N=typeof M==="function"||typeof U.getSnapshotBeforeUpdate==="function";if(!N&&(typeof U.UNSAFE_componentWillReceiveProps==="function"||typeof U.componentWillReceiveProps==="function")){if(q!==X||O!==W)_O(J,U,X,W)}c2();var P=J.memoizedState,S=U.state=P;if(cY(J,X,U,G),S=J.memoizedState,q===X&&P===S&&!wY()&&!pY()){if(typeof U.componentDidMount==="function"){var _=pJ;if(_|=U9,(J.mode&W8)!==MJ)_|=y8;J.flags|=_}return!1}if(typeof M==="function")Wq(J,Q,M,X),S=J.memoizedState;var E=pY()||VO(J,Q,q,X,P,S,W);if(E){if(!N&&(typeof U.UNSAFE_componentWillMount==="function"||typeof U.componentWillMount==="function")){if(typeof U.componentWillMount==="function")U.componentWillMount();if(typeof U.UNSAFE_componentWillMount==="function")U.UNSAFE_componentWillMount()}if(typeof U.componentDidMount==="function"){var s=pJ;if(s|=U9,(J.mode&W8)!==MJ)s|=y8;J.flags|=s}}else{if(typeof U.componentDidMount==="function"){var OJ=pJ;if(OJ|=U9,(J.mode&W8)!==MJ)OJ|=y8;J.flags|=OJ}J.memoizedProps=X,J.memoizedState=S}return U.props=X,U.state=S,U.context=W,E}function cP(J,Q,X,G,U){var q=Q.stateNode;m2(J,Q);var O=Q.memoizedProps,L=Q.type===Q.elementType?O:e7(Q.type,O);q.props=L;var W=Q.pendingProps,H=q.context,M=X.contextType,N=D7;if(typeof M==="object"&&M!==null)N=mQ(M);else{var P=B1(Q,X,!0);N=A1(Q,P)}var S=X.getDerivedStateFromProps,_=typeof S==="function"||typeof q.getSnapshotBeforeUpdate==="function";if(!_&&(typeof q.UNSAFE_componentWillReceiveProps==="function"||typeof q.componentWillReceiveProps==="function")){if(O!==W||H!==N)_O(Q,q,G,N)}c2();var E=Q.memoizedState,s=q.state=E;if(cY(Q,G,q,U),s=Q.memoizedState,O===W&&E===s&&!wY()&&!pY()&&!BQ){if(typeof q.componentDidUpdate==="function"){if(O!==J.memoizedProps||E!==J.memoizedState)Q.flags|=pJ}if(typeof q.getSnapshotBeforeUpdate==="function"){if(O!==J.memoizedProps||E!==J.memoizedState)Q.flags|=G9}return!1}if(typeof S==="function")Wq(Q,X,S,G),s=Q.memoizedState;var OJ=pY()||VO(Q,X,L,G,E,s,N)||BQ;if(OJ){if(!_&&(typeof q.UNSAFE_componentWillUpdate==="function"||typeof q.componentWillUpdate==="function")){if(typeof q.componentWillUpdate==="function")q.componentWillUpdate(G,s,N);if(typeof q.UNSAFE_componentWillUpdate==="function")q.UNSAFE_componentWillUpdate(G,s,N)}if(typeof q.componentDidUpdate==="function")Q.flags|=pJ;if(typeof q.getSnapshotBeforeUpdate==="function")Q.flags|=G9}else{if(typeof q.componentDidUpdate==="function"){if(O!==J.memoizedProps||E!==J.memoizedState)Q.flags|=pJ}if(typeof q.getSnapshotBeforeUpdate==="function"){if(O!==J.memoizedProps||E!==J.memoizedState)Q.flags|=G9}Q.memoizedProps=G,Q.memoizedState=s}return q.props=G,q.state=s,q.context=N,OJ}function R9(J,Q){return{value:J,source:Q,stack:A6(Q),digest:null}}function Mq(J,Q,X){return{value:J,source:null,stack:X!=null?X:null,digest:Q!=null?Q:null}}function pP(J,Q){return!0}function Fq(J,Q){try{var X=pP(J,Q);if(X===!1)return;var{value:G,source:U,stack:q}=Q,O=q!==null?q:"";if(G!=null&&G._suppressLogging){if(J.tag===j)return;console.error(G)}var L=U?EJ(U):null,W=L?"The above error occurred in the <"+L+"> component:":"The above error occurred in one of your React components:",H;if(J.tag===T)H=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
107
107
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var M=EJ(J)||"Anonymous";H="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+M+".")}var N=W+`
|
|
108
108
|
`+O+`
|
|
109
109
|
|
|
110
|
-
`+(""+H);console.error(N)}catch(P){setTimeout(function(){throw P})}}var sP=typeof WeakMap==="function"?WeakMap:Map;function _O(J,Q,X){var G=l8(HQ,X);G.tag=jU,G.payload={element:null};var U=Q.value;return G.callback=function(){mw(U),Fq(J,Q)},G}function Bq(J,Q,X){var G=l8(HQ,X);G.tag=jU;var U=J.type.getDerivedStateFromError;if(typeof U==="function"){var q=Q.value;G.payload=function(){return U(q)},G.callback=function(){dL(J),Fq(J,Q)}}var O=J.stateNode;if(O!==null&&typeof O.componentDidCatch==="function")G.callback=function(){if(dL(J),Fq(J,Q),typeof U!=="function")gw(this);var{value:W,stack:H}=Q;if(this.componentDidCatch(W,{componentStack:H!==null?H:""}),typeof U!=="function"){if(!$7(J.lanes,NJ))$("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",EJ(J)||"Unknown")}};return G}function kO(J,Q,X){var G=J.pingCache,U;if(G===null)G=J.pingCache=new sP,U=new Set,G.set(Q,U);else if(U=G.get(Q),U===void 0)U=new Set,G.set(Q,U);if(!U.has(X)){U.add(X);var q=cw.bind(null,J,Q,X);if(l7)n0(J,X);Q.then(q,q)}}function lP(J,Q,X,G){var U=J.updateQueue;if(U===null){var q=new Set;q.add(X),J.updateQueue=q}else U.add(X)}function iP(J,Q){var X=J.tag;if((J.mode&dJ)===MJ&&(X===B||X===g||X===d)){var G=J.alternate;if(G)J.updateQueue=G.updateQueue,J.memoizedState=G.memoizedState,J.lanes=G.lanes;else J.updateQueue=null,J.memoizedState=null}}function EO(J){var Q=J;do{if(Q.tag===c&&TP(Q))return Q;Q=Q.return}while(Q!==null);return null}function CO(J,Q,X,G,U){if((J.mode&dJ)===MJ){if(J===Q)J.flags|=CZ;else{if(J.flags|=aJ,X.flags|=fG,X.flags&=~(SF|k6),X.tag===j){var q=X.alternate;if(q===null)X.tag=SJ;else{var O=l8(HQ,NJ);O.tag=uY,CX(X,O,NJ)}}X.lanes=xJ(X.lanes,NJ)}return J}return J.flags|=CZ,J.lanes=U,J}function nP(J,Q,X,G,U){if(X.flags|=k6,l7)n0(J,U);if(G!==null&&typeof G==="object"&&typeof G.then==="function"){var q=G;if(iP(X),DZ()&&X.mode&dJ)N2();var O=EO(Q);if(O!==null){if(O.flags&=~h8,CO(O,Q,X,J,U),O.mode&dJ)kO(J,q,U);lP(O,J,q);return}else{if(!FB(U)){kO(J,q,U),aq();return}var L=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.");G=L}}else if(DZ()&&X.mode&dJ){N2();var W=EO(Q);if(W!==null){if((W.flags&CZ)===BJ)W.flags|=h8;CO(W,Q,X,J,U),zU(V9(G,X));return}}G=V9(G,X),Cw(G);var H=Q;do{switch(H.tag){case _:{var M=G;H.flags|=CZ;var N=v6(U);H.lanes=xJ(H.lanes,N);var P=_O(H,M,N);wU(H,P);return}case j:var S=G,T=H.type,E=H.stateNode;if((H.flags&aJ)===BJ&&(typeof T.getDerivedStateFromError==="function"||E!==null&&typeof E.componentDidCatch==="function"&&!CL(E))){H.flags|=CZ;var s=v6(U);H.lanes=xJ(H.lanes,s);var OJ=Bq(H,S,s);wU(H,OJ);return}break}H=H.return}while(H!==null)}function rP(){return null}var C0=Z.ReactCurrentOwner,J8=!1,Aq,x0,Iq,jq,Pq,S9,Nq,M5,h0;Aq={},x0={},Iq={},jq={},Pq={},S9=!1,Nq={},M5={},h0={};function xZ(J,Q,X,G){if(J===null)Q.child=b2(Q,null,X,G);else Q.child=N1(Q,J.child,X,G)}function oP(J,Q,X,G){Q.child=N1(Q,J.child,null,G),Q.child=N1(Q,null,X,G)}function xO(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=X.propTypes;if(q)n7(q,G,"prop",sJ(X))}var O=X.render,L=Q.ref,W,H;R1(Q,U),C6(Q);{if(C0.current=Q,q7(!0),W=E1(J,Q,O,G,L,U),H=C1(),Q.mode&CQ){UZ(!0);try{W=E1(J,Q,O,G,L,U),H=C1()}finally{UZ(!1)}}q7(!1)}if(Y1(),J!==null&&!J8)return r2(J,Q,U),i8(J,Q,U);if(DZ()&&H)XU(Q);return Q.flags|=Z1,xZ(J,Q,W,U),Q.child}function hO(J,Q,X,G,U){if(J===null){var q=X.type;if(KR(q)&&X.compare===null&&X.defaultProps===void 0){var O=q;return O=g1(q),Q.tag=d,Q.type=O,Vq(Q,q),bO(J,Q,O,G,U)}{var L=q.propTypes;if(L)n7(L,G,"prop",sJ(q));if(X.defaultProps!==void 0){var W=sJ(q)||"Unknown";if(!h0[W])$("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",W),h0[W]=!0}}var H=zz(X.type,null,G,Q,Q.mode,U);return H.ref=Q.ref,H.return=Q,Q.child=H,H}{var M=X.type,N=M.propTypes;if(N)n7(N,G,"prop",sJ(M))}var P=J.child,S=Cq(J,U);if(!S){var T=P.memoizedProps,E=X.compare;if(E=E!==null?E:e6,E(T,G)&&J.ref===Q.ref)return i8(J,Q,U)}Q.flags|=Z1;var s=C9(P,G);return s.ref=Q.ref,s.return=Q,Q.child=s,s}function bO(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=Q.elementType;if(q.$$typeof===oJ){var O=q,L=O._payload,W=O._init;try{q=W(L)}catch(N){q=null}var H=q&&q.propTypes;if(H)n7(H,G,"prop",sJ(q))}}if(J!==null){var M=J.memoizedProps;if(e6(M,G)&&J.ref===Q.ref&&Q.type===J.type){if(J8=!1,Q.pendingProps=G=M,!Cq(J,U))return Q.lanes=J.lanes,i8(J,Q,U);else if((J.flags&fG)!==BJ)J8=!0}}return wq(J,Q,X,G,U)}function yO(J,Q,X){var G=Q.pendingProps,U=G.children,q=J!==null?J.memoizedState:null;if(G.mode==="hidden"||vQ)if((Q.mode&dJ)===MJ){var O={baseLanes:f,cachePool:null,transitions:null};Q.memoizedState=O,_5(Q,X)}else if(!$7(X,z7)){var L=null,W;if(q!==null){var H=q.baseLanes;W=xJ(H,X)}else W=X;Q.lanes=Q.childLanes=r4(z7);var M={baseLanes:W,cachePool:L,transitions:null};return Q.memoizedState=M,Q.updateQueue=null,_5(Q,W),null}else{var N={baseLanes:f,cachePool:null,transitions:null};Q.memoizedState=N;var P=q!==null?q.baseLanes:X;_5(Q,P)}else{var S;if(q!==null)S=xJ(q.baseLanes,X),Q.memoizedState=null;else S=X;_5(Q,S)}return xZ(J,Q,U,X),Q.child}function tP(J,Q,X){var G=Q.pendingProps;return xZ(J,Q,G,X),Q.child}function aP(J,Q,X){var G=Q.pendingProps.children;return xZ(J,Q,G,X),Q.child}function eP(J,Q,X){{Q.flags|=pJ;{var G=Q.stateNode;G.effectDuration=0,G.passiveEffectDuration=0}}var U=Q.pendingProps,q=U.children;return xZ(J,Q,q,X),Q.child}function fO(J,Q){var X=Q.ref;if(J===null&&X!==null||J!==null&&J.ref!==X)Q.flags|=IX,Q.flags|=vG}function wq(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=X.propTypes;if(q)n7(q,G,"prop",sJ(X))}var O;{var L=B1(Q,X,!0);O=A1(Q,L)}var W,H;R1(Q,U),C6(Q);{if(C0.current=Q,q7(!0),W=E1(J,Q,X,G,O,U),H=C1(),Q.mode&CQ){UZ(!0);try{W=E1(J,Q,X,G,O,U),H=C1()}finally{UZ(!1)}}q7(!1)}if(Y1(),J!==null&&!J8)return r2(J,Q,U),i8(J,Q,U);if(DZ()&&H)XU(Q);return Q.flags|=Z1,xZ(J,Q,W,U),Q.child}function vO(J,Q,X,G,U){{switch(jR(Q)){case!1:{var{stateNode:q,type:O}=Q,L=new O(Q.memoizedProps,q.context),W=L.state;q.updater.enqueueSetState(q,W,null);break}case!0:{Q.flags|=aJ,Q.flags|=CZ;var H=Error("Simulated error coming from DevTools"),M=v6(U);Q.lanes=xJ(Q.lanes,M);var N=Bq(Q,V9(H,Q),M);wU(Q,N);break}}if(Q.type!==Q.elementType){var P=X.propTypes;if(P)n7(P,G,"prop",sJ(X))}}var S;if(M8(X))S=!0,VY(Q);else S=!1;R1(Q,U);var T=Q.stateNode,E;if(T===null)B5(J,Q),SO(Q,X,G),Hq(Q,X,G,U),E=!0;else if(J===null)E=mP(Q,X,G,U);else E=cP(J,Q,X,G,U);var s=Rq(J,Q,X,E,S,U);{var OJ=Q.stateNode;if(E&&OJ.props!==G){if(!S9)$("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",EJ(Q)||"a component");S9=!0}}return s}function Rq(J,Q,X,G,U,q){fO(J,Q);var O=(Q.flags&aJ)!==BJ;if(!G&&!O){if(U)A2(Q,X,!1);return i8(J,Q,q)}var L=Q.stateNode;C0.current=Q;var W;if(O&&typeof X.getDerivedStateFromError!=="function")W=null,PO();else{C6(Q);{if(q7(!0),W=L.render(),Q.mode&CQ){UZ(!0);try{L.render()}finally{UZ(!1)}}q7(!1)}Y1()}if(Q.flags|=Z1,J!==null&&O)oP(J,Q,W,q);else xZ(J,Q,W,q);if(Q.memoizedState=L.state,U)A2(Q,X,!0);return Q.child}function uO(J){var Q=J.stateNode;if(Q.pendingContext)F2(J,Q.pendingContext,Q.pendingContext!==Q.context);else if(Q.context)F2(J,Q.context,!1);RU(J,Q.containerInfo)}function JN(J,Q,X){if(uO(Q),J===null)throw Error("Should have a current fiber. This is a bug in React.");var{pendingProps:G,memoizedState:U}=Q,q=U.element;m2(J,Q),cY(Q,G,null,X);var{memoizedState:O,stateNode:L}=Q,W=O.element;if(U.isDehydrated){var H={element:W,isDehydrated:!1,cache:O.cache,pendingSuspenseBoundaries:O.pendingSuspenseBoundaries,transitions:O.transitions},M=Q.updateQueue;if(M.baseState=H,Q.memoizedState=H,Q.flags&h8){var N=V9(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),Q);return gO(J,Q,W,X,N)}else if(W!==q){var P=V9(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Q);return gO(J,Q,W,X,P)}else{YP(Q);var S=b2(Q,null,W,X);Q.child=S;var T=S;while(T)T.flags=T.flags&~dQ|b8,T=T.sibling}}else{if(P1(),W===q)return i8(J,Q,X);xZ(J,Q,W,X)}return Q.child}function gO(J,Q,X,G,U){return P1(),zU(U),Q.flags|=h8,xZ(J,Q,X,G),Q.child}function QN(J,Q,X){if(l2(Q),J===null)qU(Q);var{type:G,pendingProps:U}=Q,q=J!==null?J.memoizedProps:null,O=U.children,L=pK(G,U);if(L)O=null;else if(q!==null&&pK(G,q))Q.flags|=_6;return fO(J,Q),xZ(J,Q,O,X),Q.child}function ZN(J,Q){if(J===null)qU(Q);return null}function XN(J,Q,X,G){B5(J,Q);var U=Q.pendingProps,q=X,O=q._payload,L=q._init,W=L(O);Q.type=W;var H=Q.tag=UR(W),M=e7(W,U),N;switch(H){case B:return Vq(Q,W),Q.type=W=g1(W),N=wq(null,Q,W,M,G),N;case j:return Q.type=W=Xz(W),N=vO(null,Q,W,M,G),N;case g:return Q.type=W=Yz(W),N=xO(null,Q,W,M,G),N;case qJ:{if(Q.type!==Q.elementType){var P=W.propTypes;if(P)n7(P,M,"prop",sJ(W))}return N=hO(null,Q,W,e7(W.type,M),G),N}}var S="";if(W!==null&&typeof W==="object"&&W.$$typeof===oJ)S=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+W+". "+("Lazy element type must resolve to a class or function."+S))}function YN(J,Q,X,G,U){B5(J,Q),Q.tag=j;var q;if(M8(X))q=!0,VY(Q);else q=!1;return R1(Q,U),SO(Q,X,G),Hq(Q,X,G,U),Rq(null,Q,X,!0,q,U)}function GN(J,Q,X,G){B5(J,Q);var U=Q.pendingProps,q;{var O=B1(Q,X,!1);q=A1(Q,O)}R1(Q,G);var L,W;C6(Q);{if(X.prototype&&typeof X.prototype.render==="function"){var H=sJ(X)||"Unknown";if(!Aq[H])$("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.",H,H),Aq[H]=!0}if(Q.mode&CQ)o7.recordLegacyContextWarning(Q,null);q7(!0),C0.current=Q,L=E1(null,Q,X,U,q,G),W=C1(),q7(!1)}if(Y1(),Q.flags|=Z1,typeof L==="object"&&L!==null&&typeof L.render==="function"&&L.$$typeof===void 0){var M=sJ(X)||"Unknown";if(!x0[M])$("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.",M,M,M),x0[M]=!0}if(typeof L==="object"&&L!==null&&typeof L.render==="function"&&L.$$typeof===void 0){{var N=sJ(X)||"Unknown";if(!x0[N])$("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.",N,N,N),x0[N]=!0}Q.tag=j,Q.memoizedState=null,Q.updateQueue=null;var P=!1;if(M8(X))P=!0,VY(Q);else P=!1;return Q.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,NU(Q),VO(Q,L),Hq(Q,X,U,G),Rq(null,Q,X,!0,P,G)}else{if(Q.tag=B,Q.mode&CQ){UZ(!0);try{L=E1(null,Q,X,U,q,G),W=C1()}finally{UZ(!1)}}if(DZ()&&W)XU(Q);return xZ(null,Q,L,G),Vq(Q,X),Q.child}}function Vq(J,Q){{if(Q){if(Q.childContextTypes)$("%s(...): childContextTypes cannot be defined on a function component.",Q.displayName||Q.name||"Component")}if(J.ref!==null){var X="",G=FX();if(G)X+=`
|
|
110
|
+
`+(""+H);console.error(N)}catch(P){setTimeout(function(){throw P})}}var sP=typeof WeakMap==="function"?WeakMap:Map;function TO(J,Q,X){var G=l8(HQ,X);G.tag=jU,G.payload={element:null};var U=Q.value;return G.callback=function(){mw(U),Fq(J,Q)},G}function Bq(J,Q,X){var G=l8(HQ,X);G.tag=jU;var U=J.type.getDerivedStateFromError;if(typeof U==="function"){var q=Q.value;G.payload=function(){return U(q)},G.callback=function(){dL(J),Fq(J,Q)}}var O=J.stateNode;if(O!==null&&typeof O.componentDidCatch==="function")G.callback=function(){if(dL(J),Fq(J,Q),typeof U!=="function")gw(this);var{value:W,stack:H}=Q;if(this.componentDidCatch(W,{componentStack:H!==null?H:""}),typeof U!=="function"){if(!$7(J.lanes,NJ))$("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",EJ(J)||"Unknown")}};return G}function kO(J,Q,X){var G=J.pingCache,U;if(G===null)G=J.pingCache=new sP,U=new Set,G.set(Q,U);else if(U=G.get(Q),U===void 0)U=new Set,G.set(Q,U);if(!U.has(X)){U.add(X);var q=cw.bind(null,J,Q,X);if(l7)r0(J,X);Q.then(q,q)}}function lP(J,Q,X,G){var U=J.updateQueue;if(U===null){var q=new Set;q.add(X),J.updateQueue=q}else U.add(X)}function iP(J,Q){var X=J.tag;if((J.mode&dJ)===MJ&&(X===B||X===g||X===d)){var G=J.alternate;if(G)J.updateQueue=G.updateQueue,J.memoizedState=G.memoizedState,J.lanes=G.lanes;else J.updateQueue=null,J.memoizedState=null}}function EO(J){var Q=J;do{if(Q.tag===c&&_P(Q))return Q;Q=Q.return}while(Q!==null);return null}function CO(J,Q,X,G,U){if((J.mode&dJ)===MJ){if(J===Q)J.flags|=CZ;else{if(J.flags|=aJ,X.flags|=fG,X.flags&=~(SF|k6),X.tag===j){var q=X.alternate;if(q===null)X.tag=SJ;else{var O=l8(HQ,NJ);O.tag=uY,CX(X,O,NJ)}}X.lanes=xJ(X.lanes,NJ)}return J}return J.flags|=CZ,J.lanes=U,J}function rP(J,Q,X,G,U){if(X.flags|=k6,l7)r0(J,U);if(G!==null&&typeof G==="object"&&typeof G.then==="function"){var q=G;if(iP(X),DZ()&&X.mode&dJ)N2();var O=EO(Q);if(O!==null){if(O.flags&=~h8,CO(O,Q,X,J,U),O.mode&dJ)kO(J,q,U);lP(O,J,q);return}else{if(!FB(U)){kO(J,q,U),aq();return}var L=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.");G=L}}else if(DZ()&&X.mode&dJ){N2();var W=EO(Q);if(W!==null){if((W.flags&CZ)===BJ)W.flags|=h8;CO(W,Q,X,J,U),zU(R9(G,X));return}}G=R9(G,X),Cw(G);var H=Q;do{switch(H.tag){case T:{var M=G;H.flags|=CZ;var N=v6(U);H.lanes=xJ(H.lanes,N);var P=TO(H,M,N);wU(H,P);return}case j:var S=G,_=H.type,E=H.stateNode;if((H.flags&aJ)===BJ&&(typeof _.getDerivedStateFromError==="function"||E!==null&&typeof E.componentDidCatch==="function"&&!CL(E))){H.flags|=CZ;var s=v6(U);H.lanes=xJ(H.lanes,s);var OJ=Bq(H,S,s);wU(H,OJ);return}break}H=H.return}while(H!==null)}function nP(){return null}var C0=Z.ReactCurrentOwner,J8=!1,Aq,x0,Iq,jq,Pq,S9,Nq,M5,h0;Aq={},x0={},Iq={},jq={},Pq={},S9=!1,Nq={},M5={},h0={};function xZ(J,Q,X,G){if(J===null)Q.child=b2(Q,null,X,G);else Q.child=N1(Q,J.child,X,G)}function oP(J,Q,X,G){Q.child=N1(Q,J.child,null,G),Q.child=N1(Q,null,X,G)}function xO(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=X.propTypes;if(q)r7(q,G,"prop",sJ(X))}var O=X.render,L=Q.ref,W,H;V1(Q,U),C6(Q);{if(C0.current=Q,q7(!0),W=E1(J,Q,O,G,L,U),H=C1(),Q.mode&CQ){UZ(!0);try{W=E1(J,Q,O,G,L,U),H=C1()}finally{UZ(!1)}}q7(!1)}if(Y1(),J!==null&&!J8)return n2(J,Q,U),i8(J,Q,U);if(DZ()&&H)XU(Q);return Q.flags|=Z1,xZ(J,Q,W,U),Q.child}function hO(J,Q,X,G,U){if(J===null){var q=X.type;if(KV(q)&&X.compare===null&&X.defaultProps===void 0){var O=q;return O=g1(q),Q.tag=d,Q.type=O,Rq(Q,q),bO(J,Q,O,G,U)}{var L=q.propTypes;if(L)r7(L,G,"prop",sJ(q));if(X.defaultProps!==void 0){var W=sJ(q)||"Unknown";if(!h0[W])$("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",W),h0[W]=!0}}var H=zz(X.type,null,G,Q,Q.mode,U);return H.ref=Q.ref,H.return=Q,Q.child=H,H}{var M=X.type,N=M.propTypes;if(N)r7(N,G,"prop",sJ(M))}var P=J.child,S=Cq(J,U);if(!S){var _=P.memoizedProps,E=X.compare;if(E=E!==null?E:e6,E(_,G)&&J.ref===Q.ref)return i8(J,Q,U)}Q.flags|=Z1;var s=C9(P,G);return s.ref=Q.ref,s.return=Q,Q.child=s,s}function bO(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=Q.elementType;if(q.$$typeof===oJ){var O=q,L=O._payload,W=O._init;try{q=W(L)}catch(N){q=null}var H=q&&q.propTypes;if(H)r7(H,G,"prop",sJ(q))}}if(J!==null){var M=J.memoizedProps;if(e6(M,G)&&J.ref===Q.ref&&Q.type===J.type){if(J8=!1,Q.pendingProps=G=M,!Cq(J,U))return Q.lanes=J.lanes,i8(J,Q,U);else if((J.flags&fG)!==BJ)J8=!0}}return wq(J,Q,X,G,U)}function yO(J,Q,X){var G=Q.pendingProps,U=G.children,q=J!==null?J.memoizedState:null;if(G.mode==="hidden"||vQ)if((Q.mode&dJ)===MJ){var O={baseLanes:f,cachePool:null,transitions:null};Q.memoizedState=O,T5(Q,X)}else if(!$7(X,z7)){var L=null,W;if(q!==null){var H=q.baseLanes;W=xJ(H,X)}else W=X;Q.lanes=Q.childLanes=n4(z7);var M={baseLanes:W,cachePool:L,transitions:null};return Q.memoizedState=M,Q.updateQueue=null,T5(Q,W),null}else{var N={baseLanes:f,cachePool:null,transitions:null};Q.memoizedState=N;var P=q!==null?q.baseLanes:X;T5(Q,P)}else{var S;if(q!==null)S=xJ(q.baseLanes,X),Q.memoizedState=null;else S=X;T5(Q,S)}return xZ(J,Q,U,X),Q.child}function tP(J,Q,X){var G=Q.pendingProps;return xZ(J,Q,G,X),Q.child}function aP(J,Q,X){var G=Q.pendingProps.children;return xZ(J,Q,G,X),Q.child}function eP(J,Q,X){{Q.flags|=pJ;{var G=Q.stateNode;G.effectDuration=0,G.passiveEffectDuration=0}}var U=Q.pendingProps,q=U.children;return xZ(J,Q,q,X),Q.child}function fO(J,Q){var X=Q.ref;if(J===null&&X!==null||J!==null&&J.ref!==X)Q.flags|=IX,Q.flags|=vG}function wq(J,Q,X,G,U){if(Q.type!==Q.elementType){var q=X.propTypes;if(q)r7(q,G,"prop",sJ(X))}var O;{var L=B1(Q,X,!0);O=A1(Q,L)}var W,H;V1(Q,U),C6(Q);{if(C0.current=Q,q7(!0),W=E1(J,Q,X,G,O,U),H=C1(),Q.mode&CQ){UZ(!0);try{W=E1(J,Q,X,G,O,U),H=C1()}finally{UZ(!1)}}q7(!1)}if(Y1(),J!==null&&!J8)return n2(J,Q,U),i8(J,Q,U);if(DZ()&&H)XU(Q);return Q.flags|=Z1,xZ(J,Q,W,U),Q.child}function vO(J,Q,X,G,U){{switch(jV(Q)){case!1:{var{stateNode:q,type:O}=Q,L=new O(Q.memoizedProps,q.context),W=L.state;q.updater.enqueueSetState(q,W,null);break}case!0:{Q.flags|=aJ,Q.flags|=CZ;var H=Error("Simulated error coming from DevTools"),M=v6(U);Q.lanes=xJ(Q.lanes,M);var N=Bq(Q,R9(H,Q),M);wU(Q,N);break}}if(Q.type!==Q.elementType){var P=X.propTypes;if(P)r7(P,G,"prop",sJ(X))}}var S;if(M8(X))S=!0,RY(Q);else S=!1;V1(Q,U);var _=Q.stateNode,E;if(_===null)B5(J,Q),SO(Q,X,G),Hq(Q,X,G,U),E=!0;else if(J===null)E=mP(Q,X,G,U);else E=cP(J,Q,X,G,U);var s=Vq(J,Q,X,E,S,U);{var OJ=Q.stateNode;if(E&&OJ.props!==G){if(!S9)$("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",EJ(Q)||"a component");S9=!0}}return s}function Vq(J,Q,X,G,U,q){fO(J,Q);var O=(Q.flags&aJ)!==BJ;if(!G&&!O){if(U)A2(Q,X,!1);return i8(J,Q,q)}var L=Q.stateNode;C0.current=Q;var W;if(O&&typeof X.getDerivedStateFromError!=="function")W=null,PO();else{C6(Q);{if(q7(!0),W=L.render(),Q.mode&CQ){UZ(!0);try{L.render()}finally{UZ(!1)}}q7(!1)}Y1()}if(Q.flags|=Z1,J!==null&&O)oP(J,Q,W,q);else xZ(J,Q,W,q);if(Q.memoizedState=L.state,U)A2(Q,X,!0);return Q.child}function uO(J){var Q=J.stateNode;if(Q.pendingContext)F2(J,Q.pendingContext,Q.pendingContext!==Q.context);else if(Q.context)F2(J,Q.context,!1);VU(J,Q.containerInfo)}function JN(J,Q,X){if(uO(Q),J===null)throw Error("Should have a current fiber. This is a bug in React.");var{pendingProps:G,memoizedState:U}=Q,q=U.element;m2(J,Q),cY(Q,G,null,X);var{memoizedState:O,stateNode:L}=Q,W=O.element;if(U.isDehydrated){var H={element:W,isDehydrated:!1,cache:O.cache,pendingSuspenseBoundaries:O.pendingSuspenseBoundaries,transitions:O.transitions},M=Q.updateQueue;if(M.baseState=H,Q.memoizedState=H,Q.flags&h8){var N=R9(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),Q);return gO(J,Q,W,X,N)}else if(W!==q){var P=R9(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Q);return gO(J,Q,W,X,P)}else{YP(Q);var S=b2(Q,null,W,X);Q.child=S;var _=S;while(_)_.flags=_.flags&~dQ|b8,_=_.sibling}}else{if(P1(),W===q)return i8(J,Q,X);xZ(J,Q,W,X)}return Q.child}function gO(J,Q,X,G,U){return P1(),zU(U),Q.flags|=h8,xZ(J,Q,X,G),Q.child}function QN(J,Q,X){if(l2(Q),J===null)qU(Q);var{type:G,pendingProps:U}=Q,q=J!==null?J.memoizedProps:null,O=U.children,L=pK(G,U);if(L)O=null;else if(q!==null&&pK(G,q))Q.flags|=T6;return fO(J,Q),xZ(J,Q,O,X),Q.child}function ZN(J,Q){if(J===null)qU(Q);return null}function XN(J,Q,X,G){B5(J,Q);var U=Q.pendingProps,q=X,O=q._payload,L=q._init,W=L(O);Q.type=W;var H=Q.tag=UV(W),M=e7(W,U),N;switch(H){case B:return Rq(Q,W),Q.type=W=g1(W),N=wq(null,Q,W,M,G),N;case j:return Q.type=W=Xz(W),N=vO(null,Q,W,M,G),N;case g:return Q.type=W=Yz(W),N=xO(null,Q,W,M,G),N;case qJ:{if(Q.type!==Q.elementType){var P=W.propTypes;if(P)r7(P,M,"prop",sJ(W))}return N=hO(null,Q,W,e7(W.type,M),G),N}}var S="";if(W!==null&&typeof W==="object"&&W.$$typeof===oJ)S=" Did you wrap a component in React.lazy() more than once?";throw Error("Element type is invalid. Received a promise that resolves to: "+W+". "+("Lazy element type must resolve to a class or function."+S))}function YN(J,Q,X,G,U){B5(J,Q),Q.tag=j;var q;if(M8(X))q=!0,RY(Q);else q=!1;return V1(Q,U),SO(Q,X,G),Hq(Q,X,G,U),Vq(null,Q,X,!0,q,U)}function GN(J,Q,X,G){B5(J,Q);var U=Q.pendingProps,q;{var O=B1(Q,X,!1);q=A1(Q,O)}V1(Q,G);var L,W;C6(Q);{if(X.prototype&&typeof X.prototype.render==="function"){var H=sJ(X)||"Unknown";if(!Aq[H])$("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.",H,H),Aq[H]=!0}if(Q.mode&CQ)o7.recordLegacyContextWarning(Q,null);q7(!0),C0.current=Q,L=E1(null,Q,X,U,q,G),W=C1(),q7(!1)}if(Y1(),Q.flags|=Z1,typeof L==="object"&&L!==null&&typeof L.render==="function"&&L.$$typeof===void 0){var M=sJ(X)||"Unknown";if(!x0[M])$("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.",M,M,M),x0[M]=!0}if(typeof L==="object"&&L!==null&&typeof L.render==="function"&&L.$$typeof===void 0){{var N=sJ(X)||"Unknown";if(!x0[N])$("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.",N,N,N),x0[N]=!0}Q.tag=j,Q.memoizedState=null,Q.updateQueue=null;var P=!1;if(M8(X))P=!0,RY(Q);else P=!1;return Q.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,NU(Q),RO(Q,L),Hq(Q,X,U,G),Vq(null,Q,X,!0,P,G)}else{if(Q.tag=B,Q.mode&CQ){UZ(!0);try{L=E1(null,Q,X,U,q,G),W=C1()}finally{UZ(!1)}}if(DZ()&&W)XU(Q);return xZ(null,Q,L,G),Rq(Q,X),Q.child}}function Rq(J,Q){{if(Q){if(Q.childContextTypes)$("%s(...): childContextTypes cannot be defined on a function component.",Q.displayName||Q.name||"Component")}if(J.ref!==null){var X="",G=FX();if(G)X+=`
|
|
111
111
|
|
|
112
|
-
Check the render method of \``+G+"`.";var U=G||"",q=J._debugSource;if(q)U=q.fileName+":"+q.lineNumber;if(!Pq[U])Pq[U]=!0,$("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",X)}if(Q.defaultProps!==void 0){var O=sJ(Q)||"Unknown";if(!h0[O])$("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",O),h0[O]=!0}if(typeof Q.getDerivedStateFromProps==="function"){var L=sJ(Q)||"Unknown";if(!jq[L])$("%s: Function components do not support getDerivedStateFromProps.",L),jq[L]=!0}if(typeof Q.contextType==="object"&&Q.contextType!==null){var W=sJ(Q)||"Unknown";if(!Iq[W])$("%s: Function components do not support contextType.",W),Iq[W]=!0}}}var Sq={dehydrated:null,treeContext:null,retryLane:qZ};function Tq(J){return{baseLanes:J,cachePool:rP(),transitions:null}}function KN(J,Q){var X=null;return{baseLanes:xJ(J.baseLanes,Q),cachePool:X,transitions:J.transitions}}function UN(J,Q,X,G){if(Q!==null){var U=Q.memoizedState;if(U===null)return!1}return TU(J,N0)}function qN(J,Q){return n4(J.childLanes,Q)}function dO(J,Q,X){var G=Q.pendingProps;if(PR(Q))Q.flags|=aJ;var U=t7.current,q=!1,O=(Q.flags&aJ)!==BJ;if(O||UN(U,J))q=!0,Q.flags&=~aJ;else if(J===null||J.memoizedState!==null)U=SP(U,n2);if(U=S1(U),hX(Q,U),J===null){qU(Q);var L=Q.memoizedState;if(L!==null){var W=L.dehydrated;if(W!==null)return WN(Q,W)}var{children:H,fallback:M}=G;if(q){var N=zN(Q,H,M,X),P=Q.child;return P.memoizedState=Tq(X),Q.memoizedState=Sq,N}else return _q(Q,H)}else{var S=J.memoizedState;if(S!==null){var T=S.dehydrated;if(T!==null)return DN(J,Q,O,G,T,S,X)}if(q){var{fallback:E,children:s}=G,OJ=ON(J,Q,s,E,X),GJ=Q.child,yJ=J.child.memoizedState;return GJ.memoizedState=yJ===null?Tq(X):KN(yJ,X),GJ.childLanes=qN(J,X),Q.memoizedState=Sq,OJ}else{var fJ=G.children,w=$N(J,Q,fJ,X);return Q.memoizedState=null,w}}}function _q(J,Q,X){var G=J.mode,U={mode:"visible",children:Q},q=kq(U,G);return q.return=J,J.child=q,q}function zN(J,Q,X,G){var{mode:U,child:q}=J,O={mode:"hidden",children:Q},L,W;if((U&dJ)===MJ&&q!==null){if(L=q,L.childLanes=f,L.pendingProps=O,J.mode&YQ)L.actualDuration=0,L.actualStartTime=-1,L.selfBaseDuration=0,L.treeBaseDuration=0;W=mX(X,U,G,null)}else L=kq(O,U),W=mX(X,U,G,null);return L.return=J,W.return=J,L.sibling=W,J.child=L,W}function kq(J,Q,X){return cL(J,Q,f,null)}function mO(J,Q){return C9(J,Q)}function $N(J,Q,X,G){var U=J.child,q=U.sibling,O=mO(U,{mode:"visible",children:X});if((Q.mode&dJ)===MJ)O.lanes=G;if(O.return=Q,O.sibling=null,q!==null){var L=Q.deletions;if(L===null)Q.deletions=[q],Q.flags|=Y9;else L.push(q)}return Q.child=O,O}function ON(J,Q,X,G,U){var q=Q.mode,O=J.child,L=O.sibling,W={mode:"hidden",children:X},H;if((q&dJ)===MJ&&Q.child!==O){var M=Q.child;if(H=M,H.childLanes=f,H.pendingProps=W,Q.mode&YQ)H.actualDuration=0,H.actualStartTime=-1,H.selfBaseDuration=O.selfBaseDuration,H.treeBaseDuration=O.treeBaseDuration;Q.deletions=null}else H=mO(O,W),H.subtreeFlags=O.subtreeFlags&f8;var N;if(L!==null)N=C9(L,G);else N=mX(G,q,U,null),N.flags|=dQ;return N.return=Q,H.return=Q,H.sibling=N,Q.child=H,N}function F5(J,Q,X,G){if(G!==null)zU(G);N1(Q,J.child,null,X);var U=Q.pendingProps,q=U.children,O=_q(Q,q);return O.flags|=dQ,Q.memoizedState=null,O}function LN(J,Q,X,G,U){var q=Q.mode,O={mode:"visible",children:X},L=kq(O,q),W=mX(G,q,U,null);if(W.flags|=dQ,L.return=Q,W.return=Q,L.sibling=W,Q.child=L,(Q.mode&dJ)!==MJ)N1(Q,J.child,null,U);return W}function WN(J,Q,X){if((J.mode&dJ)===MJ)$("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."),J.lanes=r4(NJ);else if(nK(Q))J.lanes=r4(O9);else J.lanes=r4(z7);return null}function DN(J,Q,X,G,U,q,O){if(!X){if(ZP(),(Q.mode&dJ)===MJ)return F5(J,Q,O,null);if(nK(U)){var L,W,H;{var M=Aj(U);L=M.digest,W=M.message,H=M.stack}var N;if(W)N=Error(W);else N=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var P=Mq(N,L,H);return F5(J,Q,O,P)}var S=$7(O,J.childLanes);if(J8||S){var T=T5();if(T!==null){var E=RB(T,O);if(E!==qZ&&E!==q.retryLane){q.retryLane=E;var s=HQ;nZ(J,E),JZ(T,J,E,s)}}aq();var OJ=Mq(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 F5(J,Q,O,OJ)}else if($2(U)){Q.flags|=aJ,Q.child=J.child;var GJ=pw.bind(null,J);return Ij(U,GJ),null}else{GP(Q,U,q.treeContext);var yJ=G.children,fJ=_q(Q,yJ);return fJ.flags|=b8,fJ}}else if(Q.flags&h8){Q.flags&=~h8;var w=Mq(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return F5(J,Q,O,w)}else if(Q.memoizedState!==null)return Q.child=J.child,Q.flags|=aJ,null;else{var{children:x,fallback:R}=G,u=LN(J,Q,x,R,O),e=Q.child;return e.memoizedState=Tq(O),Q.memoizedState=Sq,u}}function cO(J,Q,X){J.lanes=xJ(J.lanes,Q);var G=J.alternate;if(G!==null)G.lanes=xJ(G.lanes,Q);AU(J.return,Q,X)}function HN(J,Q,X){var G=Q;while(G!==null){if(G.tag===c){var U=G.memoizedState;if(U!==null)cO(G,X,J)}else if(G.tag===i)cO(G,X,J);else if(G.child!==null){G.child.return=G,G=G.child;continue}if(G===J)return;while(G.sibling===null){if(G.return===null||G.return===J)return;G=G.return}G.sibling.return=G.return,G=G.sibling}}function MN(J){var Q=J,X=null;while(Q!==null){var G=Q.alternate;if(G!==null&&iY(G)===null)X=Q;Q=Q.sibling}return X}function FN(J){if(J!==void 0&&J!=="forwards"&&J!=="backwards"&&J!=="together"&&!Nq[J])if(Nq[J]=!0,typeof J==="string")switch(J.toLowerCase()){case"together":case"forwards":case"backwards":{$('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',J,J.toLowerCase());break}case"forward":case"backward":{$('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',J,J.toLowerCase());break}default:$('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',J);break}else $('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',J)}function BN(J,Q){if(J!==void 0&&!M5[J]){if(J!=="collapsed"&&J!=="hidden")M5[J]=!0,$('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',J);else if(Q!=="forwards"&&Q!=="backwards")M5[J]=!0,$('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',J)}}function pO(J,Q){{var X=tJ(J),G=!X&&typeof p7(J)==="function";if(X||G){var U=X?"array":"iterable";return $("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>",U,Q,U),!1}}return!0}function AN(J,Q){if((Q==="forwards"||Q==="backwards")&&J!==void 0&&J!==null&&J!==!1)if(tJ(J)){for(var X=0;X<J.length;X++)if(!pO(J[X],X))return}else{var G=p7(J);if(typeof G==="function"){var U=G.call(J);if(U){var q=U.next(),O=0;for(;!q.done;q=U.next()){if(!pO(q.value,O))return;O++}}}else $('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?',Q)}}function Eq(J,Q,X,G,U){var q=J.memoizedState;if(q===null)J.memoizedState={isBackwards:Q,rendering:null,renderingStartTime:0,last:G,tail:X,tailMode:U};else q.isBackwards=Q,q.rendering=null,q.renderingStartTime=0,q.last=G,q.tail=X,q.tailMode=U}function sO(J,Q,X){var G=Q.pendingProps,U=G.revealOrder,q=G.tail,O=G.children;FN(U),BN(q,U),AN(O,U),xZ(J,Q,O,X);var L=t7.current,W=TU(L,N0);if(W)L=_U(L,N0),Q.flags|=aJ;else{var H=J!==null&&(J.flags&aJ)!==BJ;if(H)HN(Q,Q.child,X);L=S1(L)}if(hX(Q,L),(Q.mode&dJ)===MJ)Q.memoizedState=null;else switch(U){case"forwards":{var M=MN(Q.child),N;if(M===null)N=Q.child,Q.child=null;else N=M.sibling,M.sibling=null;Eq(Q,!1,N,M,q);break}case"backwards":{var P=null,S=Q.child;Q.child=null;while(S!==null){var T=S.alternate;if(T!==null&&iY(T)===null){Q.child=S;break}var E=S.sibling;S.sibling=P,P=S,S=E}Eq(Q,!0,P,null,q);break}case"together":{Eq(Q,!1,null,null,void 0);break}default:Q.memoizedState=null}return Q.child}function IN(J,Q,X){RU(Q,Q.stateNode.containerInfo);var G=Q.pendingProps;if(J===null)Q.child=N1(Q,null,G,X);else xZ(J,Q,G,X);return Q.child}var lO=!1;function jN(J,Q,X){var G=Q.type,U=G._context,q=Q.pendingProps,O=Q.memoizedProps,L=q.value;{if(!("value"in q)){if(!lO)lO=!0,$("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var W=Q.type.propTypes;if(W)n7(W,q,"prop","Context.Provider")}if(v2(Q,U,L),O!==null){var H=O.value;if(W7(H,L)){if(O.children===q.children&&!wY())return i8(J,Q,X)}else BP(Q,U,X)}var M=q.children;return xZ(J,Q,M,X),Q.child}var iO=!1;function PN(J,Q,X){var G=Q.type;if(G._context===void 0){if(G!==G.Consumer){if(!iO)iO=!0,$("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")}}else G=G._context;var U=Q.pendingProps,q=U.children;if(typeof q!=="function")$("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.");R1(Q,X);var O=mQ(G);C6(Q);var L;return C0.current=Q,q7(!0),L=q(O),q7(!1),Y1(),Q.flags|=Z1,xZ(J,Q,L,X),Q.child}function b0(){J8=!0}function B5(J,Q){if((Q.mode&dJ)===MJ){if(J!==null)J.alternate=null,Q.alternate=null,Q.flags|=dQ}}function i8(J,Q,X){if(J!==null)Q.dependencies=J.dependencies;if(PO(),i0(Q.lanes),!$7(X,Q.childLanes))return null;return MP(J,Q),Q.child}function NN(J,Q,X){{var G=Q.return;if(G===null)throw Error("Cannot swap the root fiber.");if(J.alternate=null,Q.alternate=null,X.index=Q.index,X.sibling=Q.sibling,X.return=Q.return,X.ref=Q.ref,Q===G.child)G.child=X;else{var U=G.child;if(U===null)throw Error("Expected parent to have a child.");while(U.sibling!==Q)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=X}var q=G.deletions;if(q===null)G.deletions=[J],G.flags|=Y9;else q.push(J);return X.flags|=dQ,X}}function Cq(J,Q){var X=J.lanes;if($7(X,Q))return!0;return!1}function wN(J,Q,X){switch(Q.tag){case _:uO(Q);var G=Q.stateNode;P1();break;case k:l2(Q);break;case j:{var U=Q.type;if(M8(U))VY(Q);break}case y:RU(Q,Q.stateNode.containerInfo);break;case CJ:{var q=Q.memoizedProps.value,O=Q.type._context;v2(Q,O,q);break}case KJ:{var L=$7(X,Q.childLanes);if(L)Q.flags|=pJ;{var W=Q.stateNode;W.effectDuration=0,W.passiveEffectDuration=0}}break;case c:{var H=Q.memoizedState;if(H!==null){if(H.dehydrated!==null)return hX(Q,S1(t7.current)),Q.flags|=aJ,null;var M=Q.child,N=M.childLanes;if($7(X,N))return dO(J,Q,X);else{hX(Q,S1(t7.current));var P=i8(J,Q,X);if(P!==null)return P.sibling;else return null}}else hX(Q,S1(t7.current));break}case i:{var S=(J.flags&aJ)!==BJ,T=$7(X,Q.childLanes);if(S){if(T)return sO(J,Q,X);Q.flags|=aJ}var E=Q.memoizedState;if(E!==null)E.rendering=null,E.tail=null,E.lastEffect=null;if(hX(Q,t7.current),T)break;else return null}case LJ:case JJ:return Q.lanes=f,yO(J,Q,X)}return i8(J,Q,X)}function nO(J,Q,X){if(Q._debugNeedsRemount&&J!==null)return NN(J,Q,zz(Q.type,Q.key,Q.pendingProps,Q._debugOwner||null,Q.mode,Q.lanes));if(J!==null){var G=J.memoizedProps,U=Q.pendingProps;if(G!==U||wY()||Q.type!==J.type)J8=!0;else{var q=Cq(J,X);if(!q&&(Q.flags&aJ)===BJ)return J8=!1,wN(J,Q,X);if((J.flags&fG)!==BJ)J8=!0;else J8=!1}}else if(J8=!1,DZ()&&oj(Q)){var O=Q.index,L=tj();P2(Q,L,O)}switch(Q.lanes=f,Q.tag){case b:return GN(J,Q,Q.type,X);case UJ:{var W=Q.elementType;return XN(J,Q,W,X)}case B:{var{type:H,pendingProps:M}=Q,N=Q.elementType===H?M:e7(H,M);return wq(J,Q,H,N,X)}case j:{var{type:P,pendingProps:S}=Q,T=Q.elementType===P?S:e7(P,S);return vO(J,Q,P,T,X)}case _:return JN(J,Q,X);case k:return QN(J,Q,X);case a:return ZN(J,Q);case c:return dO(J,Q,X);case y:return IN(J,Q,X);case g:{var{type:E,pendingProps:s}=Q,OJ=Q.elementType===E?s:e7(E,s);return xO(J,Q,E,OJ,X)}case DJ:return tP(J,Q,X);case _J:return aP(J,Q,X);case KJ:return eP(J,Q,X);case CJ:return jN(J,Q,X);case bJ:return PN(J,Q,X);case qJ:{var{type:GJ,pendingProps:yJ}=Q,fJ=e7(GJ,yJ);if(Q.type!==Q.elementType){var w=GJ.propTypes;if(w)n7(w,fJ,"prop",sJ(GJ))}return fJ=e7(GJ.type,fJ),hO(J,Q,GJ,fJ,X)}case d:return bO(J,Q,Q.type,Q.pendingProps,X);case SJ:{var{type:x,pendingProps:R}=Q,u=Q.elementType===x?R:e7(x,R);return YN(J,Q,x,u,X)}case i:return sO(J,Q,X);case $J:break;case LJ:return yO(J,Q,X)}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function x1(J){J.flags|=pJ}function rO(J){J.flags|=IX,J.flags|=vG}var oO,xq,tO,aO;oO=function(J,Q,X,G){var U=Q.child;while(U!==null){if(U.tag===k||U.tag===a)iI(J,U.stateNode);else if(U.tag===y);else if(U.child!==null){U.child.return=U,U=U.child;continue}if(U===Q)return;while(U.sibling===null){if(U.return===null||U.return===Q)return;U=U.return}U.sibling.return=U.return,U=U.sibling}},xq=function(J,Q){},tO=function(J,Q,X,G,U){var q=J.memoizedProps;if(q===G)return;var O=Q.stateNode,L=VU(),W=rI(O,X,q,G,U,L);if(Q.updateQueue=W,W)x1(Q)},aO=function(J,Q,X,G){if(X!==G)x1(Q)};function y0(J,Q){if(DZ())return;switch(J.tailMode){case"hidden":{var X=J.tail,G=null;while(X!==null){if(X.alternate!==null)G=X;X=X.sibling}if(G===null)J.tail=null;else G.sibling=null;break}case"collapsed":{var U=J.tail,q=null;while(U!==null){if(U.alternate!==null)q=U;U=U.sibling}if(q===null)if(!Q&&J.tail!==null)J.tail.sibling=null;else J.tail=null;else q.sibling=null;break}}}function MZ(J){var Q=J.alternate!==null&&J.alternate.child===J.child,X=f,G=BJ;if(!Q){if((J.mode&YQ)!==MJ){var{actualDuration:U,selfBaseDuration:q,child:O}=J;while(O!==null)X=xJ(X,xJ(O.lanes,O.childLanes)),G|=O.subtreeFlags,G|=O.flags,U+=O.actualDuration,q+=O.treeBaseDuration,O=O.sibling;J.actualDuration=U,J.treeBaseDuration=q}else{var L=J.child;while(L!==null)X=xJ(X,xJ(L.lanes,L.childLanes)),G|=L.subtreeFlags,G|=L.flags,L.return=J,L=L.sibling}J.subtreeFlags|=G}else{if((J.mode&YQ)!==MJ){var{selfBaseDuration:W,child:H}=J;while(H!==null)X=xJ(X,xJ(H.lanes,H.childLanes)),G|=H.subtreeFlags&f8,G|=H.flags&f8,W+=H.treeBaseDuration,H=H.sibling;J.treeBaseDuration=W}else{var M=J.child;while(M!==null)X=xJ(X,xJ(M.lanes,M.childLanes)),G|=M.subtreeFlags&f8,G|=M.flags&f8,M.return=J,M=M.sibling}J.subtreeFlags|=G}return J.childLanes=X,Q}function RN(J,Q,X){if($P()&&(Q.mode&dJ)!==MJ&&(Q.flags&aJ)===BJ)return _2(Q),P1(),Q.flags|=h8|k6|CZ,!1;var G=EY(Q);if(X!==null&&X.dehydrated!==null)if(J===null){if(!G)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(qP(Q),MZ(Q),(Q.mode&YQ)!==MJ){var U=X!==null;if(U){var q=Q.child;if(q!==null)Q.treeBaseDuration-=q.treeBaseDuration}}return!1}else{if(P1(),(Q.flags&aJ)===BJ)Q.memoizedState=null;if(Q.flags|=pJ,MZ(Q),(Q.mode&YQ)!==MJ){var O=X!==null;if(O){var L=Q.child;if(L!==null)Q.treeBaseDuration-=L.treeBaseDuration}}return!1}else return k2(),!0}function eO(J,Q,X){var G=Q.pendingProps;switch(YU(Q),Q.tag){case b:case UJ:case d:case B:case g:case DJ:case _J:case KJ:case bJ:case qJ:return MZ(Q),null;case j:{var U=Q.type;if(M8(U))RY(Q);return MZ(Q),null}case _:{var q=Q.stateNode;if(V1(Q),JU(Q),EU(),q.pendingContext)q.context=q.pendingContext,q.pendingContext=null;if(J===null||J.child===null){var O=EY(Q);if(O)x1(Q);else if(J!==null){var L=J.memoizedState;if(!L.isDehydrated||(Q.flags&h8)!==BJ)Q.flags|=G9,k2()}}return xq(J,Q),MZ(Q),null}case k:{SU(Q);var W=s2(),H=Q.type;if(J!==null&&Q.stateNode!=null){if(tO(J,Q,H,G,W),J.ref!==Q.ref)rO(Q)}else{if(!G){if(Q.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return MZ(Q),null}var M=VU(),N=EY(Q);if(N){if(KP(Q,W,M))x1(Q)}else{var P=lI(H,G,W,M,Q);if(oO(P,Q,!1,!1),Q.stateNode=P,nI(P,H,G,W))x1(Q)}if(Q.ref!==null)rO(Q)}return MZ(Q),null}case a:{var S=G;if(J&&Q.stateNode!=null){var T=J.memoizedProps;aO(J,Q,T,S)}else{if(typeof S!=="string"){if(Q.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.")}var E=s2(),s=VU(),OJ=EY(Q);if(OJ){if(UP(Q))x1(Q)}else Q.stateNode=oI(S,E,s,Q)}return MZ(Q),null}case c:{T1(Q);var GJ=Q.memoizedState;if(J===null||J.memoizedState!==null&&J.memoizedState.dehydrated!==null){var yJ=RN(J,Q,GJ);if(!yJ)if(Q.flags&CZ)return Q;else return null}if((Q.flags&aJ)!==BJ){if(Q.lanes=X,(Q.mode&YQ)!==MJ)Xq(Q);return Q}var fJ=GJ!==null,w=J!==null&&J.memoizedState!==null;if(fJ!==w){if(fJ){var x=Q.child;if(x.flags|=K9,(Q.mode&dJ)!==MJ){var R=J===null&&(Q.memoizedProps.unstable_avoidThisFallback!==!0||!mZ);if(R||TU(t7.current,n2))Ew();else aq()}}}var u=Q.updateQueue;if(u!==null)Q.flags|=pJ;if(MZ(Q),(Q.mode&YQ)!==MJ){if(fJ){var e=Q.child;if(e!==null)Q.treeBaseDuration-=e.treeBaseDuration}}return null}case y:if(V1(Q),xq(J,Q),J===null)cj(Q.stateNode.containerInfo);return MZ(Q),null;case CJ:var n=Q.type._context;return BU(n,Q),MZ(Q),null;case SJ:{var jJ=Q.type;if(M8(jJ))RY(Q);return MZ(Q),null}case i:{T1(Q);var RJ=Q.memoizedState;if(RJ===null)return MZ(Q),null;var KQ=(Q.flags&aJ)!==BJ,iJ=RJ.rendering;if(iJ===null)if(!KQ){var yQ=xw()&&(J===null||(J.flags&aJ)===BJ);if(!yQ){var nJ=Q.child;while(nJ!==null){var xQ=iY(nJ);if(xQ!==null){KQ=!0,Q.flags|=aJ,y0(RJ,!1);var _Z=xQ.updateQueue;if(_Z!==null)Q.updateQueue=_Z,Q.flags|=pJ;return Q.subtreeFlags=BJ,FP(Q,X),hX(Q,_U(t7.current,N0)),Q.child}nJ=nJ.sibling}}if(RJ.tail!==null&&KZ()>jL())Q.flags|=aJ,KQ=!0,y0(RJ,!1),Q.lanes=t$}else y0(RJ,!1);else{if(!KQ){var jZ=iY(iJ);if(jZ!==null){Q.flags|=aJ,KQ=!0;var M7=jZ.updateQueue;if(M7!==null)Q.updateQueue=M7,Q.flags|=pJ;if(y0(RJ,!0),RJ.tail===null&&RJ.tailMode==="hidden"&&!iJ.alternate&&!DZ())return MZ(Q),null}else if(KZ()*2-RJ.renderingStartTime>jL()&&X!==z7)Q.flags|=aJ,KQ=!0,y0(RJ,!1),Q.lanes=t$}if(RJ.isBackwards)iJ.sibling=Q.child,Q.child=iJ;else{var yZ=RJ.last;if(yZ!==null)yZ.sibling=iJ;else Q.child=iJ;RJ.last=iJ}}if(RJ.tail!==null){var fZ=RJ.tail;RJ.rendering=fZ,RJ.tail=fZ.sibling,RJ.renderingStartTime=KZ(),fZ.sibling=null;var kZ=t7.current;if(KQ)kZ=_U(kZ,N0);else kZ=S1(kZ);return hX(Q,kZ),fZ}return MZ(Q),null}case $J:break;case LJ:case JJ:{tq(Q);var a8=Q.memoizedState,d1=a8!==null;if(J!==null){var a0=J.memoizedState,w8=a0!==null;if(w8!==d1&&!vQ)Q.flags|=K9}if(!d1||(Q.mode&dJ)===MJ)MZ(Q);else if($7(N8,z7)){if(MZ(Q),Q.subtreeFlags&(dQ|pJ))Q.flags|=K9}return null}case YJ:return null;case TJ:return null}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function VN(J,Q,X){switch(YU(Q),Q.tag){case j:{var G=Q.type;if(M8(G))RY(Q);var U=Q.flags;if(U&CZ){if(Q.flags=U&~CZ|aJ,(Q.mode&YQ)!==MJ)Xq(Q);return Q}return null}case _:{var q=Q.stateNode;V1(Q),JU(Q),EU();var O=Q.flags;if((O&CZ)!==BJ&&(O&aJ)===BJ)return Q.flags=O&~CZ|aJ,Q;return null}case k:return SU(Q),null;case c:{T1(Q);var L=Q.memoizedState;if(L!==null&&L.dehydrated!==null){if(Q.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");P1()}var W=Q.flags;if(W&CZ){if(Q.flags=W&~CZ|aJ,(Q.mode&YQ)!==MJ)Xq(Q);return Q}return null}case i:return T1(Q),null;case y:return V1(Q),null;case CJ:var H=Q.type._context;return BU(H,Q),null;case LJ:case JJ:return tq(Q),null;case YJ:return null;default:return null}}function JL(J,Q,X){switch(YU(Q),Q.tag){case j:{var G=Q.type.childContextTypes;if(G!==null&&G!==void 0)RY(Q);break}case _:{var U=Q.stateNode;V1(Q),JU(Q),EU();break}case k:{SU(Q);break}case y:V1(Q);break;case c:T1(Q);break;case i:T1(Q);break;case CJ:var q=Q.type._context;BU(q,Q);break;case LJ:case JJ:tq(Q);break}}var QL=null;QL=new Set;var A5=!1,FZ=!1,SN=typeof WeakSet==="function"?WeakSet:Set,ZJ=null,h1=null,b1=null;function TN(J){hG(null,function(){throw J}),bG()}var _N=function(J,Q){if(Q.props=J.memoizedProps,Q.state=J.memoizedState,J.mode&YQ)try{j8(),Q.componentWillUnmount()}finally{I8(J)}else Q.componentWillUnmount()};function ZL(J,Q){try{fX(nQ,J)}catch(X){DQ(J,Q,X)}}function hq(J,Q,X){try{_N(J,X)}catch(G){DQ(J,Q,G)}}function kN(J,Q,X){try{X.componentDidMount()}catch(G){DQ(J,Q,G)}}function XL(J,Q){try{KL(J)}catch(X){DQ(J,Q,X)}}function y1(J,Q){var X=J.ref;if(X!==null)if(typeof X==="function"){var G;try{if(Z7&&f7&&J.mode&YQ)try{j8(),G=X(null)}finally{I8(J)}else G=X(null)}catch(U){DQ(J,Q,U)}if(typeof G==="function")$("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",EJ(J))}else X.current=null}function I5(J,Q,X){try{X()}catch(G){DQ(J,Q,G)}}var YL=null,GL=!1;function EN(J,Q){YL=pI(J.containerInfo),ZJ=Q,CN();var X=GL;return GL=!1,YL=null,X}function CN(){while(ZJ!==null){var J=ZJ,Q=J.child;if((J.subtreeFlags&gG)!==BJ&&Q!==null)Q.return=J,ZJ=Q;else xN()}}function xN(){while(ZJ!==null){var J=ZJ;TQ(J);try{hN(J)}catch(X){DQ(J,J.return,X)}GZ();var Q=J.sibling;if(Q!==null){Q.return=J.return,ZJ=Q;return}ZJ=J.return}}function hN(J){var{alternate:Q,flags:X}=J;if((X&G9)!==BJ){switch(TQ(J),J.tag){case B:case g:case d:break;case j:{if(Q!==null){var{memoizedProps:G,memoizedState:U}=Q,q=J.stateNode;if(J.type===J.elementType&&!S9){if(q.props!==J.memoizedProps)$("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.",EJ(J)||"instance");if(q.state!==J.memoizedState)$("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.",EJ(J)||"instance")}var O=q.getSnapshotBeforeUpdate(J.elementType===J.type?G:e7(J.type,G),U);{var L=QL;if(O===void 0&&!L.has(J.type))L.add(J.type),$("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",EJ(J))}q.__reactInternalSnapshotBeforeUpdate=O}break}case _:{{var W=J.stateNode;Hj(W.containerInfo)}break}case k:case a:case y:case SJ:break;default:throw 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.")}GZ()}}function Q8(J,Q,X){var G=Q.updateQueue,U=G!==null?G.lastEffect:null;if(U!==null){var q=U.next,O=q;do{if((O.tag&J)===J){var L=O.destroy;if(O.destroy=void 0,L!==void 0){if((J&HZ)!==rZ)oF(Q);else if((J&nQ)!==rZ)l$(Q);if((J&F8)!==rZ)r0(!0);if(I5(Q,X,L),(J&F8)!==rZ)r0(!1);if((J&HZ)!==rZ)tF();else if((J&nQ)!==rZ)i$()}}O=O.next}while(O!==q)}}function fX(J,Q){var X=Q.updateQueue,G=X!==null?X.lastEffect:null;if(G!==null){var U=G.next,q=U;do{if((q.tag&J)===J){if((J&HZ)!==rZ)nF(Q);else if((J&nQ)!==rZ)aF(Q);var O=q.create;if((J&F8)!==rZ)r0(!0);if(q.destroy=O(),(J&F8)!==rZ)r0(!1);if((J&HZ)!==rZ)rF();else if((J&nQ)!==rZ)eF();{var L=q.destroy;if(L!==void 0&&typeof L!=="function"){var W=void 0;if((q.tag&nQ)!==BJ)W="useLayoutEffect";else if((q.tag&F8)!==BJ)W="useInsertionEffect";else W="useEffect";var H=void 0;if(L===null)H=" You returned null. If your effect does not require clean up, return undefined (or nothing).";else if(typeof L.then==="function")H=`
|
|
112
|
+
Check the render method of \``+G+"`.";var U=G||"",q=J._debugSource;if(q)U=q.fileName+":"+q.lineNumber;if(!Pq[U])Pq[U]=!0,$("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",X)}if(Q.defaultProps!==void 0){var O=sJ(Q)||"Unknown";if(!h0[O])$("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",O),h0[O]=!0}if(typeof Q.getDerivedStateFromProps==="function"){var L=sJ(Q)||"Unknown";if(!jq[L])$("%s: Function components do not support getDerivedStateFromProps.",L),jq[L]=!0}if(typeof Q.contextType==="object"&&Q.contextType!==null){var W=sJ(Q)||"Unknown";if(!Iq[W])$("%s: Function components do not support contextType.",W),Iq[W]=!0}}}var Sq={dehydrated:null,treeContext:null,retryLane:qZ};function _q(J){return{baseLanes:J,cachePool:nP(),transitions:null}}function KN(J,Q){var X=null;return{baseLanes:xJ(J.baseLanes,Q),cachePool:X,transitions:J.transitions}}function UN(J,Q,X,G){if(Q!==null){var U=Q.memoizedState;if(U===null)return!1}return _U(J,N0)}function qN(J,Q){return r4(J.childLanes,Q)}function dO(J,Q,X){var G=Q.pendingProps;if(PV(Q))Q.flags|=aJ;var U=t7.current,q=!1,O=(Q.flags&aJ)!==BJ;if(O||UN(U,J))q=!0,Q.flags&=~aJ;else if(J===null||J.memoizedState!==null)U=SP(U,r2);if(U=S1(U),hX(Q,U),J===null){qU(Q);var L=Q.memoizedState;if(L!==null){var W=L.dehydrated;if(W!==null)return WN(Q,W)}var{children:H,fallback:M}=G;if(q){var N=zN(Q,H,M,X),P=Q.child;return P.memoizedState=_q(X),Q.memoizedState=Sq,N}else return Tq(Q,H)}else{var S=J.memoizedState;if(S!==null){var _=S.dehydrated;if(_!==null)return DN(J,Q,O,G,_,S,X)}if(q){var{fallback:E,children:s}=G,OJ=ON(J,Q,s,E,X),GJ=Q.child,yJ=J.child.memoizedState;return GJ.memoizedState=yJ===null?_q(X):KN(yJ,X),GJ.childLanes=qN(J,X),Q.memoizedState=Sq,OJ}else{var fJ=G.children,w=$N(J,Q,fJ,X);return Q.memoizedState=null,w}}}function Tq(J,Q,X){var G=J.mode,U={mode:"visible",children:Q},q=kq(U,G);return q.return=J,J.child=q,q}function zN(J,Q,X,G){var{mode:U,child:q}=J,O={mode:"hidden",children:Q},L,W;if((U&dJ)===MJ&&q!==null){if(L=q,L.childLanes=f,L.pendingProps=O,J.mode&YQ)L.actualDuration=0,L.actualStartTime=-1,L.selfBaseDuration=0,L.treeBaseDuration=0;W=mX(X,U,G,null)}else L=kq(O,U),W=mX(X,U,G,null);return L.return=J,W.return=J,L.sibling=W,J.child=L,W}function kq(J,Q,X){return cL(J,Q,f,null)}function mO(J,Q){return C9(J,Q)}function $N(J,Q,X,G){var U=J.child,q=U.sibling,O=mO(U,{mode:"visible",children:X});if((Q.mode&dJ)===MJ)O.lanes=G;if(O.return=Q,O.sibling=null,q!==null){var L=Q.deletions;if(L===null)Q.deletions=[q],Q.flags|=Y9;else L.push(q)}return Q.child=O,O}function ON(J,Q,X,G,U){var q=Q.mode,O=J.child,L=O.sibling,W={mode:"hidden",children:X},H;if((q&dJ)===MJ&&Q.child!==O){var M=Q.child;if(H=M,H.childLanes=f,H.pendingProps=W,Q.mode&YQ)H.actualDuration=0,H.actualStartTime=-1,H.selfBaseDuration=O.selfBaseDuration,H.treeBaseDuration=O.treeBaseDuration;Q.deletions=null}else H=mO(O,W),H.subtreeFlags=O.subtreeFlags&f8;var N;if(L!==null)N=C9(L,G);else N=mX(G,q,U,null),N.flags|=dQ;return N.return=Q,H.return=Q,H.sibling=N,Q.child=H,N}function F5(J,Q,X,G){if(G!==null)zU(G);N1(Q,J.child,null,X);var U=Q.pendingProps,q=U.children,O=Tq(Q,q);return O.flags|=dQ,Q.memoizedState=null,O}function LN(J,Q,X,G,U){var q=Q.mode,O={mode:"visible",children:X},L=kq(O,q),W=mX(G,q,U,null);if(W.flags|=dQ,L.return=Q,W.return=Q,L.sibling=W,Q.child=L,(Q.mode&dJ)!==MJ)N1(Q,J.child,null,U);return W}function WN(J,Q,X){if((J.mode&dJ)===MJ)$("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."),J.lanes=n4(NJ);else if(rK(Q))J.lanes=n4(O9);else J.lanes=n4(z7);return null}function DN(J,Q,X,G,U,q,O){if(!X){if(ZP(),(Q.mode&dJ)===MJ)return F5(J,Q,O,null);if(rK(U)){var L,W,H;{var M=Aj(U);L=M.digest,W=M.message,H=M.stack}var N;if(W)N=Error(W);else N=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var P=Mq(N,L,H);return F5(J,Q,O,P)}var S=$7(O,J.childLanes);if(J8||S){var _=_5();if(_!==null){var E=VB(_,O);if(E!==qZ&&E!==q.retryLane){q.retryLane=E;var s=HQ;rZ(J,E),JZ(_,J,E,s)}}aq();var OJ=Mq(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 F5(J,Q,O,OJ)}else if($2(U)){Q.flags|=aJ,Q.child=J.child;var GJ=pw.bind(null,J);return Ij(U,GJ),null}else{GP(Q,U,q.treeContext);var yJ=G.children,fJ=Tq(Q,yJ);return fJ.flags|=b8,fJ}}else if(Q.flags&h8){Q.flags&=~h8;var w=Mq(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return F5(J,Q,O,w)}else if(Q.memoizedState!==null)return Q.child=J.child,Q.flags|=aJ,null;else{var{children:x,fallback:V}=G,u=LN(J,Q,x,V,O),e=Q.child;return e.memoizedState=_q(O),Q.memoizedState=Sq,u}}function cO(J,Q,X){J.lanes=xJ(J.lanes,Q);var G=J.alternate;if(G!==null)G.lanes=xJ(G.lanes,Q);AU(J.return,Q,X)}function HN(J,Q,X){var G=Q;while(G!==null){if(G.tag===c){var U=G.memoizedState;if(U!==null)cO(G,X,J)}else if(G.tag===i)cO(G,X,J);else if(G.child!==null){G.child.return=G,G=G.child;continue}if(G===J)return;while(G.sibling===null){if(G.return===null||G.return===J)return;G=G.return}G.sibling.return=G.return,G=G.sibling}}function MN(J){var Q=J,X=null;while(Q!==null){var G=Q.alternate;if(G!==null&&iY(G)===null)X=Q;Q=Q.sibling}return X}function FN(J){if(J!==void 0&&J!=="forwards"&&J!=="backwards"&&J!=="together"&&!Nq[J])if(Nq[J]=!0,typeof J==="string")switch(J.toLowerCase()){case"together":case"forwards":case"backwards":{$('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',J,J.toLowerCase());break}case"forward":case"backward":{$('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',J,J.toLowerCase());break}default:$('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',J);break}else $('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',J)}function BN(J,Q){if(J!==void 0&&!M5[J]){if(J!=="collapsed"&&J!=="hidden")M5[J]=!0,$('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',J);else if(Q!=="forwards"&&Q!=="backwards")M5[J]=!0,$('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',J)}}function pO(J,Q){{var X=tJ(J),G=!X&&typeof p7(J)==="function";if(X||G){var U=X?"array":"iterable";return $("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>",U,Q,U),!1}}return!0}function AN(J,Q){if((Q==="forwards"||Q==="backwards")&&J!==void 0&&J!==null&&J!==!1)if(tJ(J)){for(var X=0;X<J.length;X++)if(!pO(J[X],X))return}else{var G=p7(J);if(typeof G==="function"){var U=G.call(J);if(U){var q=U.next(),O=0;for(;!q.done;q=U.next()){if(!pO(q.value,O))return;O++}}}else $('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?',Q)}}function Eq(J,Q,X,G,U){var q=J.memoizedState;if(q===null)J.memoizedState={isBackwards:Q,rendering:null,renderingStartTime:0,last:G,tail:X,tailMode:U};else q.isBackwards=Q,q.rendering=null,q.renderingStartTime=0,q.last=G,q.tail=X,q.tailMode=U}function sO(J,Q,X){var G=Q.pendingProps,U=G.revealOrder,q=G.tail,O=G.children;FN(U),BN(q,U),AN(O,U),xZ(J,Q,O,X);var L=t7.current,W=_U(L,N0);if(W)L=TU(L,N0),Q.flags|=aJ;else{var H=J!==null&&(J.flags&aJ)!==BJ;if(H)HN(Q,Q.child,X);L=S1(L)}if(hX(Q,L),(Q.mode&dJ)===MJ)Q.memoizedState=null;else switch(U){case"forwards":{var M=MN(Q.child),N;if(M===null)N=Q.child,Q.child=null;else N=M.sibling,M.sibling=null;Eq(Q,!1,N,M,q);break}case"backwards":{var P=null,S=Q.child;Q.child=null;while(S!==null){var _=S.alternate;if(_!==null&&iY(_)===null){Q.child=S;break}var E=S.sibling;S.sibling=P,P=S,S=E}Eq(Q,!0,P,null,q);break}case"together":{Eq(Q,!1,null,null,void 0);break}default:Q.memoizedState=null}return Q.child}function IN(J,Q,X){VU(Q,Q.stateNode.containerInfo);var G=Q.pendingProps;if(J===null)Q.child=N1(Q,null,G,X);else xZ(J,Q,G,X);return Q.child}var lO=!1;function jN(J,Q,X){var G=Q.type,U=G._context,q=Q.pendingProps,O=Q.memoizedProps,L=q.value;{if(!("value"in q)){if(!lO)lO=!0,$("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")}var W=Q.type.propTypes;if(W)r7(W,q,"prop","Context.Provider")}if(v2(Q,U,L),O!==null){var H=O.value;if(W7(H,L)){if(O.children===q.children&&!wY())return i8(J,Q,X)}else BP(Q,U,X)}var M=q.children;return xZ(J,Q,M,X),Q.child}var iO=!1;function PN(J,Q,X){var G=Q.type;if(G._context===void 0){if(G!==G.Consumer){if(!iO)iO=!0,$("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")}}else G=G._context;var U=Q.pendingProps,q=U.children;if(typeof q!=="function")$("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.");V1(Q,X);var O=mQ(G);C6(Q);var L;return C0.current=Q,q7(!0),L=q(O),q7(!1),Y1(),Q.flags|=Z1,xZ(J,Q,L,X),Q.child}function b0(){J8=!0}function B5(J,Q){if((Q.mode&dJ)===MJ){if(J!==null)J.alternate=null,Q.alternate=null,Q.flags|=dQ}}function i8(J,Q,X){if(J!==null)Q.dependencies=J.dependencies;if(PO(),i0(Q.lanes),!$7(X,Q.childLanes))return null;return MP(J,Q),Q.child}function NN(J,Q,X){{var G=Q.return;if(G===null)throw Error("Cannot swap the root fiber.");if(J.alternate=null,Q.alternate=null,X.index=Q.index,X.sibling=Q.sibling,X.return=Q.return,X.ref=Q.ref,Q===G.child)G.child=X;else{var U=G.child;if(U===null)throw Error("Expected parent to have a child.");while(U.sibling!==Q)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=X}var q=G.deletions;if(q===null)G.deletions=[J],G.flags|=Y9;else q.push(J);return X.flags|=dQ,X}}function Cq(J,Q){var X=J.lanes;if($7(X,Q))return!0;return!1}function wN(J,Q,X){switch(Q.tag){case T:uO(Q);var G=Q.stateNode;P1();break;case k:l2(Q);break;case j:{var U=Q.type;if(M8(U))RY(Q);break}case y:VU(Q,Q.stateNode.containerInfo);break;case CJ:{var q=Q.memoizedProps.value,O=Q.type._context;v2(Q,O,q);break}case KJ:{var L=$7(X,Q.childLanes);if(L)Q.flags|=pJ;{var W=Q.stateNode;W.effectDuration=0,W.passiveEffectDuration=0}}break;case c:{var H=Q.memoizedState;if(H!==null){if(H.dehydrated!==null)return hX(Q,S1(t7.current)),Q.flags|=aJ,null;var M=Q.child,N=M.childLanes;if($7(X,N))return dO(J,Q,X);else{hX(Q,S1(t7.current));var P=i8(J,Q,X);if(P!==null)return P.sibling;else return null}}else hX(Q,S1(t7.current));break}case i:{var S=(J.flags&aJ)!==BJ,_=$7(X,Q.childLanes);if(S){if(_)return sO(J,Q,X);Q.flags|=aJ}var E=Q.memoizedState;if(E!==null)E.rendering=null,E.tail=null,E.lastEffect=null;if(hX(Q,t7.current),_)break;else return null}case LJ:case JJ:return Q.lanes=f,yO(J,Q,X)}return i8(J,Q,X)}function rO(J,Q,X){if(Q._debugNeedsRemount&&J!==null)return NN(J,Q,zz(Q.type,Q.key,Q.pendingProps,Q._debugOwner||null,Q.mode,Q.lanes));if(J!==null){var G=J.memoizedProps,U=Q.pendingProps;if(G!==U||wY()||Q.type!==J.type)J8=!0;else{var q=Cq(J,X);if(!q&&(Q.flags&aJ)===BJ)return J8=!1,wN(J,Q,X);if((J.flags&fG)!==BJ)J8=!0;else J8=!1}}else if(J8=!1,DZ()&&oj(Q)){var O=Q.index,L=tj();P2(Q,L,O)}switch(Q.lanes=f,Q.tag){case b:return GN(J,Q,Q.type,X);case UJ:{var W=Q.elementType;return XN(J,Q,W,X)}case B:{var{type:H,pendingProps:M}=Q,N=Q.elementType===H?M:e7(H,M);return wq(J,Q,H,N,X)}case j:{var{type:P,pendingProps:S}=Q,_=Q.elementType===P?S:e7(P,S);return vO(J,Q,P,_,X)}case T:return JN(J,Q,X);case k:return QN(J,Q,X);case a:return ZN(J,Q);case c:return dO(J,Q,X);case y:return IN(J,Q,X);case g:{var{type:E,pendingProps:s}=Q,OJ=Q.elementType===E?s:e7(E,s);return xO(J,Q,E,OJ,X)}case DJ:return tP(J,Q,X);case TJ:return aP(J,Q,X);case KJ:return eP(J,Q,X);case CJ:return jN(J,Q,X);case bJ:return PN(J,Q,X);case qJ:{var{type:GJ,pendingProps:yJ}=Q,fJ=e7(GJ,yJ);if(Q.type!==Q.elementType){var w=GJ.propTypes;if(w)r7(w,fJ,"prop",sJ(GJ))}return fJ=e7(GJ.type,fJ),hO(J,Q,GJ,fJ,X)}case d:return bO(J,Q,Q.type,Q.pendingProps,X);case SJ:{var{type:x,pendingProps:V}=Q,u=Q.elementType===x?V:e7(x,V);return YN(J,Q,x,u,X)}case i:return sO(J,Q,X);case $J:break;case LJ:return yO(J,Q,X)}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function x1(J){J.flags|=pJ}function nO(J){J.flags|=IX,J.flags|=vG}var oO,xq,tO,aO;oO=function(J,Q,X,G){var U=Q.child;while(U!==null){if(U.tag===k||U.tag===a)iI(J,U.stateNode);else if(U.tag===y);else if(U.child!==null){U.child.return=U,U=U.child;continue}if(U===Q)return;while(U.sibling===null){if(U.return===null||U.return===Q)return;U=U.return}U.sibling.return=U.return,U=U.sibling}},xq=function(J,Q){},tO=function(J,Q,X,G,U){var q=J.memoizedProps;if(q===G)return;var O=Q.stateNode,L=RU(),W=nI(O,X,q,G,U,L);if(Q.updateQueue=W,W)x1(Q)},aO=function(J,Q,X,G){if(X!==G)x1(Q)};function y0(J,Q){if(DZ())return;switch(J.tailMode){case"hidden":{var X=J.tail,G=null;while(X!==null){if(X.alternate!==null)G=X;X=X.sibling}if(G===null)J.tail=null;else G.sibling=null;break}case"collapsed":{var U=J.tail,q=null;while(U!==null){if(U.alternate!==null)q=U;U=U.sibling}if(q===null)if(!Q&&J.tail!==null)J.tail.sibling=null;else J.tail=null;else q.sibling=null;break}}}function MZ(J){var Q=J.alternate!==null&&J.alternate.child===J.child,X=f,G=BJ;if(!Q){if((J.mode&YQ)!==MJ){var{actualDuration:U,selfBaseDuration:q,child:O}=J;while(O!==null)X=xJ(X,xJ(O.lanes,O.childLanes)),G|=O.subtreeFlags,G|=O.flags,U+=O.actualDuration,q+=O.treeBaseDuration,O=O.sibling;J.actualDuration=U,J.treeBaseDuration=q}else{var L=J.child;while(L!==null)X=xJ(X,xJ(L.lanes,L.childLanes)),G|=L.subtreeFlags,G|=L.flags,L.return=J,L=L.sibling}J.subtreeFlags|=G}else{if((J.mode&YQ)!==MJ){var{selfBaseDuration:W,child:H}=J;while(H!==null)X=xJ(X,xJ(H.lanes,H.childLanes)),G|=H.subtreeFlags&f8,G|=H.flags&f8,W+=H.treeBaseDuration,H=H.sibling;J.treeBaseDuration=W}else{var M=J.child;while(M!==null)X=xJ(X,xJ(M.lanes,M.childLanes)),G|=M.subtreeFlags&f8,G|=M.flags&f8,M.return=J,M=M.sibling}J.subtreeFlags|=G}return J.childLanes=X,Q}function VN(J,Q,X){if($P()&&(Q.mode&dJ)!==MJ&&(Q.flags&aJ)===BJ)return T2(Q),P1(),Q.flags|=h8|k6|CZ,!1;var G=EY(Q);if(X!==null&&X.dehydrated!==null)if(J===null){if(!G)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(qP(Q),MZ(Q),(Q.mode&YQ)!==MJ){var U=X!==null;if(U){var q=Q.child;if(q!==null)Q.treeBaseDuration-=q.treeBaseDuration}}return!1}else{if(P1(),(Q.flags&aJ)===BJ)Q.memoizedState=null;if(Q.flags|=pJ,MZ(Q),(Q.mode&YQ)!==MJ){var O=X!==null;if(O){var L=Q.child;if(L!==null)Q.treeBaseDuration-=L.treeBaseDuration}}return!1}else return k2(),!0}function eO(J,Q,X){var G=Q.pendingProps;switch(YU(Q),Q.tag){case b:case UJ:case d:case B:case g:case DJ:case TJ:case KJ:case bJ:case qJ:return MZ(Q),null;case j:{var U=Q.type;if(M8(U))VY(Q);return MZ(Q),null}case T:{var q=Q.stateNode;if(R1(Q),JU(Q),EU(),q.pendingContext)q.context=q.pendingContext,q.pendingContext=null;if(J===null||J.child===null){var O=EY(Q);if(O)x1(Q);else if(J!==null){var L=J.memoizedState;if(!L.isDehydrated||(Q.flags&h8)!==BJ)Q.flags|=G9,k2()}}return xq(J,Q),MZ(Q),null}case k:{SU(Q);var W=s2(),H=Q.type;if(J!==null&&Q.stateNode!=null){if(tO(J,Q,H,G,W),J.ref!==Q.ref)nO(Q)}else{if(!G){if(Q.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return MZ(Q),null}var M=RU(),N=EY(Q);if(N){if(KP(Q,W,M))x1(Q)}else{var P=lI(H,G,W,M,Q);if(oO(P,Q,!1,!1),Q.stateNode=P,rI(P,H,G,W))x1(Q)}if(Q.ref!==null)nO(Q)}return MZ(Q),null}case a:{var S=G;if(J&&Q.stateNode!=null){var _=J.memoizedProps;aO(J,Q,_,S)}else{if(typeof S!=="string"){if(Q.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.")}var E=s2(),s=RU(),OJ=EY(Q);if(OJ){if(UP(Q))x1(Q)}else Q.stateNode=oI(S,E,s,Q)}return MZ(Q),null}case c:{_1(Q);var GJ=Q.memoizedState;if(J===null||J.memoizedState!==null&&J.memoizedState.dehydrated!==null){var yJ=VN(J,Q,GJ);if(!yJ)if(Q.flags&CZ)return Q;else return null}if((Q.flags&aJ)!==BJ){if(Q.lanes=X,(Q.mode&YQ)!==MJ)Xq(Q);return Q}var fJ=GJ!==null,w=J!==null&&J.memoizedState!==null;if(fJ!==w){if(fJ){var x=Q.child;if(x.flags|=K9,(Q.mode&dJ)!==MJ){var V=J===null&&(Q.memoizedProps.unstable_avoidThisFallback!==!0||!mZ);if(V||_U(t7.current,r2))Ew();else aq()}}}var u=Q.updateQueue;if(u!==null)Q.flags|=pJ;if(MZ(Q),(Q.mode&YQ)!==MJ){if(fJ){var e=Q.child;if(e!==null)Q.treeBaseDuration-=e.treeBaseDuration}}return null}case y:if(R1(Q),xq(J,Q),J===null)cj(Q.stateNode.containerInfo);return MZ(Q),null;case CJ:var r=Q.type._context;return BU(r,Q),MZ(Q),null;case SJ:{var jJ=Q.type;if(M8(jJ))VY(Q);return MZ(Q),null}case i:{_1(Q);var VJ=Q.memoizedState;if(VJ===null)return MZ(Q),null;var KQ=(Q.flags&aJ)!==BJ,iJ=VJ.rendering;if(iJ===null)if(!KQ){var yQ=xw()&&(J===null||(J.flags&aJ)===BJ);if(!yQ){var rJ=Q.child;while(rJ!==null){var xQ=iY(rJ);if(xQ!==null){KQ=!0,Q.flags|=aJ,y0(VJ,!1);var TZ=xQ.updateQueue;if(TZ!==null)Q.updateQueue=TZ,Q.flags|=pJ;return Q.subtreeFlags=BJ,FP(Q,X),hX(Q,TU(t7.current,N0)),Q.child}rJ=rJ.sibling}}if(VJ.tail!==null&&KZ()>jL())Q.flags|=aJ,KQ=!0,y0(VJ,!1),Q.lanes=t$}else y0(VJ,!1);else{if(!KQ){var jZ=iY(iJ);if(jZ!==null){Q.flags|=aJ,KQ=!0;var M7=jZ.updateQueue;if(M7!==null)Q.updateQueue=M7,Q.flags|=pJ;if(y0(VJ,!0),VJ.tail===null&&VJ.tailMode==="hidden"&&!iJ.alternate&&!DZ())return MZ(Q),null}else if(KZ()*2-VJ.renderingStartTime>jL()&&X!==z7)Q.flags|=aJ,KQ=!0,y0(VJ,!1),Q.lanes=t$}if(VJ.isBackwards)iJ.sibling=Q.child,Q.child=iJ;else{var yZ=VJ.last;if(yZ!==null)yZ.sibling=iJ;else Q.child=iJ;VJ.last=iJ}}if(VJ.tail!==null){var fZ=VJ.tail;VJ.rendering=fZ,VJ.tail=fZ.sibling,VJ.renderingStartTime=KZ(),fZ.sibling=null;var kZ=t7.current;if(KQ)kZ=TU(kZ,N0);else kZ=S1(kZ);return hX(Q,kZ),fZ}return MZ(Q),null}case $J:break;case LJ:case JJ:{tq(Q);var a8=Q.memoizedState,d1=a8!==null;if(J!==null){var a0=J.memoizedState,w8=a0!==null;if(w8!==d1&&!vQ)Q.flags|=K9}if(!d1||(Q.mode&dJ)===MJ)MZ(Q);else if($7(N8,z7)){if(MZ(Q),Q.subtreeFlags&(dQ|pJ))Q.flags|=K9}return null}case YJ:return null;case _J:return null}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function RN(J,Q,X){switch(YU(Q),Q.tag){case j:{var G=Q.type;if(M8(G))VY(Q);var U=Q.flags;if(U&CZ){if(Q.flags=U&~CZ|aJ,(Q.mode&YQ)!==MJ)Xq(Q);return Q}return null}case T:{var q=Q.stateNode;R1(Q),JU(Q),EU();var O=Q.flags;if((O&CZ)!==BJ&&(O&aJ)===BJ)return Q.flags=O&~CZ|aJ,Q;return null}case k:return SU(Q),null;case c:{_1(Q);var L=Q.memoizedState;if(L!==null&&L.dehydrated!==null){if(Q.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");P1()}var W=Q.flags;if(W&CZ){if(Q.flags=W&~CZ|aJ,(Q.mode&YQ)!==MJ)Xq(Q);return Q}return null}case i:return _1(Q),null;case y:return R1(Q),null;case CJ:var H=Q.type._context;return BU(H,Q),null;case LJ:case JJ:return tq(Q),null;case YJ:return null;default:return null}}function JL(J,Q,X){switch(YU(Q),Q.tag){case j:{var G=Q.type.childContextTypes;if(G!==null&&G!==void 0)VY(Q);break}case T:{var U=Q.stateNode;R1(Q),JU(Q),EU();break}case k:{SU(Q);break}case y:R1(Q);break;case c:_1(Q);break;case i:_1(Q);break;case CJ:var q=Q.type._context;BU(q,Q);break;case LJ:case JJ:tq(Q);break}}var QL=null;QL=new Set;var A5=!1,FZ=!1,SN=typeof WeakSet==="function"?WeakSet:Set,ZJ=null,h1=null,b1=null;function _N(J){hG(null,function(){throw J}),bG()}var TN=function(J,Q){if(Q.props=J.memoizedProps,Q.state=J.memoizedState,J.mode&YQ)try{j8(),Q.componentWillUnmount()}finally{I8(J)}else Q.componentWillUnmount()};function ZL(J,Q){try{fX(rQ,J)}catch(X){DQ(J,Q,X)}}function hq(J,Q,X){try{TN(J,X)}catch(G){DQ(J,Q,G)}}function kN(J,Q,X){try{X.componentDidMount()}catch(G){DQ(J,Q,G)}}function XL(J,Q){try{KL(J)}catch(X){DQ(J,Q,X)}}function y1(J,Q){var X=J.ref;if(X!==null)if(typeof X==="function"){var G;try{if(Z7&&f7&&J.mode&YQ)try{j8(),G=X(null)}finally{I8(J)}else G=X(null)}catch(U){DQ(J,Q,U)}if(typeof G==="function")$("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",EJ(J))}else X.current=null}function I5(J,Q,X){try{X()}catch(G){DQ(J,Q,G)}}var YL=null,GL=!1;function EN(J,Q){YL=pI(J.containerInfo),ZJ=Q,CN();var X=GL;return GL=!1,YL=null,X}function CN(){while(ZJ!==null){var J=ZJ,Q=J.child;if((J.subtreeFlags&gG)!==BJ&&Q!==null)Q.return=J,ZJ=Q;else xN()}}function xN(){while(ZJ!==null){var J=ZJ;_Q(J);try{hN(J)}catch(X){DQ(J,J.return,X)}GZ();var Q=J.sibling;if(Q!==null){Q.return=J.return,ZJ=Q;return}ZJ=J.return}}function hN(J){var{alternate:Q,flags:X}=J;if((X&G9)!==BJ){switch(_Q(J),J.tag){case B:case g:case d:break;case j:{if(Q!==null){var{memoizedProps:G,memoizedState:U}=Q,q=J.stateNode;if(J.type===J.elementType&&!S9){if(q.props!==J.memoizedProps)$("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.",EJ(J)||"instance");if(q.state!==J.memoizedState)$("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.",EJ(J)||"instance")}var O=q.getSnapshotBeforeUpdate(J.elementType===J.type?G:e7(J.type,G),U);{var L=QL;if(O===void 0&&!L.has(J.type))L.add(J.type),$("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",EJ(J))}q.__reactInternalSnapshotBeforeUpdate=O}break}case T:{{var W=J.stateNode;Hj(W.containerInfo)}break}case k:case a:case y:case SJ:break;default:throw 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.")}GZ()}}function Q8(J,Q,X){var G=Q.updateQueue,U=G!==null?G.lastEffect:null;if(U!==null){var q=U.next,O=q;do{if((O.tag&J)===J){var L=O.destroy;if(O.destroy=void 0,L!==void 0){if((J&HZ)!==nZ)oF(Q);else if((J&rQ)!==nZ)l$(Q);if((J&F8)!==nZ)n0(!0);if(I5(Q,X,L),(J&F8)!==nZ)n0(!1);if((J&HZ)!==nZ)tF();else if((J&rQ)!==nZ)i$()}}O=O.next}while(O!==q)}}function fX(J,Q){var X=Q.updateQueue,G=X!==null?X.lastEffect:null;if(G!==null){var U=G.next,q=U;do{if((q.tag&J)===J){if((J&HZ)!==nZ)rF(Q);else if((J&rQ)!==nZ)aF(Q);var O=q.create;if((J&F8)!==nZ)n0(!0);if(q.destroy=O(),(J&F8)!==nZ)n0(!1);if((J&HZ)!==nZ)nF();else if((J&rQ)!==nZ)eF();{var L=q.destroy;if(L!==void 0&&typeof L!=="function"){var W=void 0;if((q.tag&rQ)!==BJ)W="useLayoutEffect";else if((q.tag&F8)!==BJ)W="useInsertionEffect";else W="useEffect";var H=void 0;if(L===null)H=" You returned null. If your effect does not require clean up, return undefined (or nothing).";else if(typeof L.then==="function")H=`
|
|
113
113
|
|
|
114
114
|
It looks like you wrote `+W+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
115
115
|
|
|
@@ -122,11 +122,11 @@ It looks like you wrote `+W+`(async () => ...) or returned a Promise. Instead, w
|
|
|
122
122
|
fetchData();
|
|
123
123
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
124
124
|
|
|
125
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`;else H=" You returned: "+L;$("%s must not return anything besides a function, which is used for clean-up.%s",W,H)}}}q=q.next}while(q!==U)}}function bN(J,Q){if((Q.flags&pJ)!==BJ)switch(Q.tag){case KJ:{var X=Q.stateNode.passiveEffectDuration,G=Q.memoizedProps,U=G.id,q=G.onPostCommit,O=IO(),L=Q.alternate===null?"mount":"update";if(AO())L="nested-update";if(typeof q==="function")q(U,L,X,O);var W=Q.return;J:while(W!==null){switch(W.tag){case _:var H=W.stateNode;H.passiveEffectDuration+=X;break J;case KJ:var M=W.stateNode;M.passiveEffectDuration+=X;break J}W=W.return}break}}}function yN(J,Q,X,G){if((X.flags&E6)!==BJ)switch(X.tag){case B:case g:case d:{if(!FZ)if(X.mode&YQ)try{j8(),fX(nQ|iQ,X)}finally{I8(X)}else fX(nQ|iQ,X);break}case j:{var U=X.stateNode;if(X.flags&pJ){if(!FZ)if(Q===null){if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}if(X.mode&YQ)try{j8(),U.componentDidMount()}finally{I8(X)}else U.componentDidMount()}else{var q=X.elementType===X.type?Q.memoizedProps:e7(X.type,Q.memoizedProps),O=Q.memoizedState;if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}if(X.mode&YQ)try{j8(),U.componentDidUpdate(q,O,U.__reactInternalSnapshotBeforeUpdate)}finally{I8(X)}else U.componentDidUpdate(q,O,U.__reactInternalSnapshotBeforeUpdate)}}var L=X.updateQueue;if(L!==null){if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}p2(X,L,U)}break}case _:{var W=X.updateQueue;if(W!==null){var H=null;if(X.child!==null)switch(X.child.tag){case k:H=cK(X.child.stateNode);break;case j:H=X.child.stateNode;break}p2(X,W,H)}break}case k:{var M=X.stateNode;if(Q===null&&X.flags&pJ){var{type:N,memoizedProps:P}=X;Qj(M,N,P)}break}case a:break;case y:break;case KJ:{{var S=X.memoizedProps,T=S.onCommit,E=S.onRender,s=X.stateNode.effectDuration,OJ=IO(),GJ=Q===null?"mount":"update";if(AO())GJ="nested-update";if(typeof E==="function")E(X.memoizedProps.id,GJ,X.actualDuration,X.treeBaseDuration,X.actualStartTime,OJ);{if(typeof T==="function")T(X.memoizedProps.id,GJ,s,OJ);vw(X);var yJ=X.return;J:while(yJ!==null){switch(yJ.tag){case _:var fJ=yJ.stateNode;fJ.effectDuration+=s;break J;case KJ:var w=yJ.stateNode;w.effectDuration+=s;break J}yJ=yJ.return}}}break}case c:{pN(J,X);break}case i:case SJ:case $J:case LJ:case JJ:case TJ:break;default:throw 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.")}if(!FZ){if(X.flags&IX)KL(X)}}function fN(J){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)try{j8(),ZL(J,J.return)}finally{I8(J)}else ZL(J,J.return);break}case j:{var Q=J.stateNode;if(typeof Q.componentDidMount==="function")kN(J,J.return,Q);XL(J,J.return);break}case k:{XL(J,J.return);break}}}function vN(J,Q){var X=null;{var G=J;while(!0){if(G.tag===k){if(X===null){X=G;try{var U=G.stateNode;if(Q)Oj(U);else Wj(G.stateNode,G.memoizedProps)}catch(O){DQ(J,J.return,O)}}}else if(G.tag===a){if(X===null)try{var q=G.stateNode;if(Q)Lj(q);else Dj(q,G.memoizedProps)}catch(O){DQ(J,J.return,O)}}else if((G.tag===LJ||G.tag===JJ)&&G.memoizedState!==null&&G!==J);else if(G.child!==null){G.child.return=G,G=G.child;continue}if(G===J)return;while(G.sibling===null){if(G.return===null||G.return===J)return;if(X===G)X=null;G=G.return}if(X===G)X=null;G.sibling.return=G.return,G=G.sibling}}}function KL(J){var Q=J.ref;if(Q!==null){var X=J.stateNode,G;switch(J.tag){case k:G=cK(X);break;default:G=X}if(typeof Q==="function"){var U;if(J.mode&YQ)try{j8(),U=Q(G)}finally{I8(J)}else U=Q(G);if(typeof U==="function")$("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",EJ(J))}else{if(!Q.hasOwnProperty("current"))$("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",EJ(J));Q.current=G}}}function uN(J){var Q=J.alternate;if(Q!==null)Q.return=null;J.return=null}function UL(J){var Q=J.alternate;if(Q!==null)J.alternate=null,UL(Q);{if(J.child=null,J.deletions=null,J.sibling=null,J.tag===k){var X=J.stateNode;if(X!==null)lj(X)}J.stateNode=null,J._debugOwner=null,J.return=null,J.dependencies=null,J.memoizedProps=null,J.memoizedState=null,J.pendingProps=null,J.stateNode=null,J.updateQueue=null}}function gN(J){var Q=J.return;while(Q!==null){if(qL(Q))return Q;Q=Q.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function qL(J){return J.tag===k||J.tag===_||J.tag===y}function zL(J){var Q=J;J:while(!0){while(Q.sibling===null){if(Q.return===null||qL(Q.return))return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling;while(Q.tag!==k&&Q.tag!==a&&Q.tag!==zJ){if(Q.flags&dQ)continue J;if(Q.child===null||Q.tag===y)continue J;else Q.child.return=Q,Q=Q.child}if(!(Q.flags&dQ))return Q.stateNode}}function dN(J){var Q=gN(J);switch(Q.tag){case k:{var X=Q.stateNode;if(Q.flags&_6)z2(X),Q.flags&=~_6;var G=zL(J);yq(J,G,X);break}case _:case y:{var U=Q.stateNode.containerInfo,q=zL(J);bq(J,q,U);break}default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function bq(J,Q,X){var G=J.tag,U=G===k||G===a;if(U){var q=J.stateNode;if(Q)Uj(X,q,Q);else Gj(X,q)}else if(G===y);else{var O=J.child;if(O!==null){bq(O,Q,X);var L=O.sibling;while(L!==null)bq(L,Q,X),L=L.sibling}}}function yq(J,Q,X){var G=J.tag,U=G===k||G===a;if(U){var q=J.stateNode;if(Q)Kj(X,q,Q);else Yj(X,q)}else if(G===y);else{var O=J.child;if(O!==null){yq(O,Q,X);var L=O.sibling;while(L!==null)yq(L,Q,X),L=L.sibling}}}var BZ=null,Z8=!1;function mN(J,Q,X){{var G=Q;J:while(G!==null){switch(G.tag){case k:{BZ=G.stateNode,Z8=!1;break J}case _:{BZ=G.stateNode.containerInfo,Z8=!0;break J}case y:{BZ=G.stateNode.containerInfo,Z8=!0;break J}}G=G.return}if(BZ===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");$L(J,Q,X),BZ=null,Z8=!1}uN(X)}function vX(J,Q,X){var G=X.child;while(G!==null)$L(J,Q,G),G=G.sibling}function $L(J,Q,X){switch(pF(X),X.tag){case k:if(!FZ)y1(X,Q);case a:{{var G=BZ,U=Z8;if(BZ=null,vX(J,Q,X),BZ=G,Z8=U,BZ!==null)if(Z8)zj(BZ,X.stateNode);else qj(BZ,X.stateNode)}return}case zJ:{if(BZ!==null)if(Z8)$j(BZ,X.stateNode);else iK(BZ,X.stateNode);return}case y:{{var q=BZ,O=Z8;BZ=X.stateNode.containerInfo,Z8=!0,vX(J,Q,X),BZ=q,Z8=O}return}case B:case g:case qJ:case d:{if(!FZ){var L=X.updateQueue;if(L!==null){var W=L.lastEffect;if(W!==null){var H=W.next,M=H;do{var N=M,P=N.destroy,S=N.tag;if(P!==void 0){if((S&F8)!==rZ)I5(X,Q,P);else if((S&nQ)!==rZ){if(l$(X),X.mode&YQ)j8(),I5(X,Q,P),I8(X);else I5(X,Q,P);i$()}}M=M.next}while(M!==H)}}}vX(J,Q,X);return}case j:{if(!FZ){y1(X,Q);var T=X.stateNode;if(typeof T.componentWillUnmount==="function")hq(X,Q,T)}vX(J,Q,X);return}case $J:{vX(J,Q,X);return}case LJ:{if(X.mode&dJ){var E=FZ;FZ=E||X.memoizedState!==null,vX(J,Q,X),FZ=E}else vX(J,Q,X);break}default:{vX(J,Q,X);return}}}function cN(J){var Q=J.memoizedState}function pN(J,Q){var X=Q.memoizedState;if(X===null){var G=Q.alternate;if(G!==null){var U=G.memoizedState;if(U!==null){var q=U.dehydrated;if(q!==null)_j(q)}}}}function OL(J){var Q=J.updateQueue;if(Q!==null){J.updateQueue=null;var X=J.stateNode;if(X===null)X=J.stateNode=new SN;Q.forEach(function(G){var U=sw.bind(null,J,G);if(!X.has(G)){if(X.add(G),l7)if(h1!==null&&b1!==null)n0(b1,h1);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");G.then(U,U)}})}}function sN(J,Q,X){h1=X,b1=J,TQ(Q),LL(Q,J),TQ(Q),h1=null,b1=null}function X8(J,Q,X){var G=Q.deletions;if(G!==null)for(var U=0;U<G.length;U++){var q=G[U];try{mN(J,Q,q)}catch(W){DQ(q,Q,W)}}var O=S4();if(Q.subtreeFlags&dG){var L=Q.child;while(L!==null)TQ(L),LL(L,J),L=L.sibling}TQ(O)}function LL(J,Q,X){var{alternate:G,flags:U}=J;switch(J.tag){case B:case g:case qJ:case d:{if(X8(Q,J),P8(J),U&pJ){try{Q8(F8|iQ,J,J.return),fX(F8|iQ,J)}catch(jJ){DQ(J,J.return,jJ)}if(J.mode&YQ){try{j8(),Q8(nQ|iQ,J,J.return)}catch(jJ){DQ(J,J.return,jJ)}I8(J)}else try{Q8(nQ|iQ,J,J.return)}catch(jJ){DQ(J,J.return,jJ)}}return}case j:{if(X8(Q,J),P8(J),U&IX){if(G!==null)y1(G,G.return)}return}case k:{if(X8(Q,J),P8(J),U&IX){if(G!==null)y1(G,G.return)}{if(J.flags&_6){var q=J.stateNode;try{z2(q)}catch(jJ){DQ(J,J.return,jJ)}}if(U&pJ){var O=J.stateNode;if(O!=null){var L=J.memoizedProps,W=G!==null?G.memoizedProps:L,H=J.type,M=J.updateQueue;if(J.updateQueue=null,M!==null)try{Zj(O,M,H,W,L,J)}catch(jJ){DQ(J,J.return,jJ)}}}}return}case a:{if(X8(Q,J),P8(J),U&pJ){if(J.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var{stateNode:N,memoizedProps:P}=J,S=G!==null?G.memoizedProps:P;try{Xj(N,S,P)}catch(jJ){DQ(J,J.return,jJ)}}return}case _:{if(X8(Q,J),P8(J),U&pJ){if(G!==null){var T=G.memoizedState;if(T.isDehydrated)try{Tj(Q.containerInfo)}catch(jJ){DQ(J,J.return,jJ)}}}return}case y:{X8(Q,J),P8(J);return}case c:{X8(Q,J),P8(J);var E=J.child;if(E.flags&K9){var{stateNode:s,memoizedState:OJ}=E,GJ=OJ!==null;if(s.isHidden=GJ,GJ){var yJ=E.alternate!==null&&E.alternate.memoizedState!==null;if(!yJ)kw()}}if(U&pJ){try{cN(J)}catch(jJ){DQ(J,J.return,jJ)}OL(J)}return}case LJ:{var fJ=G!==null&&G.memoizedState!==null;if(J.mode&dJ){var w=FZ;FZ=w||fJ,X8(Q,J),FZ=w}else X8(Q,J);if(P8(J),U&K9){var{stateNode:x,memoizedState:R}=J,u=R!==null,e=J;if(x.isHidden=u,u){if(!fJ){if((e.mode&dJ)!==MJ){ZJ=e;var n=e.child;while(n!==null)ZJ=n,iN(n),n=n.sibling}}}vN(e,u)}return}case i:{if(X8(Q,J),P8(J),U&pJ)OL(J);return}case $J:return;default:{X8(Q,J),P8(J);return}}}function P8(J){var Q=J.flags;if(Q&dQ){try{dN(J)}catch(X){DQ(J,J.return,X)}J.flags&=~dQ}if(Q&b8)J.flags&=~b8}function lN(J,Q,X){h1=X,b1=Q,ZJ=J,WL(J,Q,X),h1=null,b1=null}function WL(J,Q,X){var G=(J.mode&dJ)!==MJ;while(ZJ!==null){var U=ZJ,q=U.child;if(U.tag===LJ&&G){var O=U.memoizedState!==null,L=O||A5;if(L){fq(J,Q,X);continue}else{var W=U.alternate,H=W!==null&&W.memoizedState!==null,M=H||FZ,N=A5,P=FZ;if(A5=L,FZ=M,FZ&&!P)ZJ=U,nN(U);var S=q;while(S!==null)ZJ=S,WL(S,Q,X),S=S.sibling;ZJ=U,A5=N,FZ=P,fq(J,Q,X);continue}}if((U.subtreeFlags&E6)!==BJ&&q!==null)q.return=U,ZJ=q;else fq(J,Q,X)}}function fq(J,Q,X){while(ZJ!==null){var G=ZJ;if((G.flags&E6)!==BJ){var U=G.alternate;TQ(G);try{yN(Q,U,G,X)}catch(O){DQ(G,G.return,O)}GZ()}if(G===J){ZJ=null;return}var q=G.sibling;if(q!==null){q.return=G.return,ZJ=q;return}ZJ=G.return}}function iN(J){while(ZJ!==null){var Q=ZJ,X=Q.child;switch(Q.tag){case B:case g:case qJ:case d:{if(Q.mode&YQ)try{j8(),Q8(nQ,Q,Q.return)}finally{I8(Q)}else Q8(nQ,Q,Q.return);break}case j:{y1(Q,Q.return);var G=Q.stateNode;if(typeof G.componentWillUnmount==="function")hq(Q,Q.return,G);break}case k:{y1(Q,Q.return);break}case LJ:{var U=Q.memoizedState!==null;if(U){DL(J);continue}break}}if(X!==null)X.return=Q,ZJ=X;else DL(J)}}function DL(J){while(ZJ!==null){var Q=ZJ;if(Q===J){ZJ=null;return}var X=Q.sibling;if(X!==null){X.return=Q.return,ZJ=X;return}ZJ=Q.return}}function nN(J){while(ZJ!==null){var Q=ZJ,X=Q.child;if(Q.tag===LJ){var G=Q.memoizedState!==null;if(G){HL(J);continue}}if(X!==null)X.return=Q,ZJ=X;else HL(J)}}function HL(J){while(ZJ!==null){var Q=ZJ;TQ(Q);try{fN(Q)}catch(G){DQ(Q,Q.return,G)}if(GZ(),Q===J){ZJ=null;return}var X=Q.sibling;if(X!==null){X.return=Q.return,ZJ=X;return}ZJ=Q.return}}function rN(J,Q,X,G){ZJ=Q,oN(Q,J,X,G)}function oN(J,Q,X,G){while(ZJ!==null){var U=ZJ,q=U.child;if((U.subtreeFlags&X1)!==BJ&&q!==null)q.return=U,ZJ=q;else tN(J,Q,X,G)}}function tN(J,Q,X,G){while(ZJ!==null){var U=ZJ;if((U.flags&s7)!==BJ){TQ(U);try{aN(Q,U,X,G)}catch(O){DQ(U,U.return,O)}GZ()}if(U===J){ZJ=null;return}var q=U.sibling;if(q!==null){q.return=U.return,ZJ=q;return}ZJ=U.return}}function aN(J,Q,X,G){switch(Q.tag){case B:case g:case d:{if(Q.mode&YQ){Zq();try{fX(HZ|iQ,Q)}finally{Qq(Q)}}else fX(HZ|iQ,Q);break}}}function eN(J){ZJ=J,Jw()}function Jw(){while(ZJ!==null){var J=ZJ,Q=J.child;if((ZJ.flags&Y9)!==BJ){var X=J.deletions;if(X!==null){for(var G=0;G<X.length;G++){var U=X[G];ZJ=U,Xw(U,J)}{var q=J.alternate;if(q!==null){var O=q.child;if(O!==null){q.child=null;do{var L=O.sibling;O.sibling=null,O=L}while(O!==null)}}}ZJ=J}}if((J.subtreeFlags&X1)!==BJ&&Q!==null)Q.return=J,ZJ=Q;else Qw()}}function Qw(){while(ZJ!==null){var J=ZJ;if((J.flags&s7)!==BJ)TQ(J),Zw(J),GZ();var Q=J.sibling;if(Q!==null){Q.return=J.return,ZJ=Q;return}ZJ=J.return}}function Zw(J){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)Zq(),Q8(HZ|iQ,J,J.return),Qq(J);else Q8(HZ|iQ,J,J.return);break}}}function Xw(J,Q){while(ZJ!==null){var X=ZJ;TQ(X),Gw(X,Q),GZ();var G=X.child;if(G!==null)G.return=X,ZJ=G;else Yw(J)}}function Yw(J){while(ZJ!==null){var Q=ZJ,X=Q.sibling,G=Q.return;if(UL(Q),Q===J){ZJ=null;return}if(X!==null){X.return=G,ZJ=X;return}ZJ=G}}function Gw(J,Q){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)Zq(),Q8(HZ,J,Q),Qq(J);else Q8(HZ,J,Q);break}}}function Kw(J){switch(J.tag){case B:case g:case d:{try{fX(nQ|iQ,J)}catch(X){DQ(J,J.return,X)}break}case j:{var Q=J.stateNode;try{Q.componentDidMount()}catch(X){DQ(J,J.return,X)}break}}}function Uw(J){switch(J.tag){case B:case g:case d:{try{fX(HZ|iQ,J)}catch(Q){DQ(J,J.return,Q)}break}}}function qw(J){switch(J.tag){case B:case g:case d:{try{Q8(nQ|iQ,J,J.return)}catch(X){DQ(J,J.return,X)}break}case j:{var Q=J.stateNode;if(typeof Q.componentWillUnmount==="function")hq(J,J.return,Q);break}}}function zw(J){switch(J.tag){case B:case g:case d:try{Q8(HZ|iQ,J,J.return)}catch(Q){DQ(J,J.return,Q)}}}var $w=0,Ow=1,Lw=2,Ww=3,Dw=4;if(typeof Symbol==="function"&&Symbol.for){var f0=Symbol.for;$w=f0("selector.component"),Ow=f0("selector.has_pseudo_class"),Lw=f0("selector.role"),Ww=f0("selector.test_id"),Dw=f0("selector.text")}var Hw=[];function Mw(){Hw.forEach(function(J){return J()})}var Fw=Z.ReactCurrentActQueue;function Bw(J){{var Q=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,X=typeof jest<"u";return X&&Q!==!1}}function ML(){{var J=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!J&&Fw.current!==null)$("The current testing environment is not configured to support act(...)");return J}}var Aw=Math.ceil,vq=Z.ReactCurrentDispatcher,uq=Z.ReactCurrentOwner,AZ=Z.ReactCurrentBatchConfig,Y8=Z.ReactCurrentActQueue,tQ=0,FL=1,IZ=2,E7=4,n8=0,v0=1,T9=2,j5=3,u0=4,BL=5,gq=6,mJ=tQ,hZ=null,_Q=null,aQ=f,N8=f,dq=TX(f),eQ=n8,g0=null,mq=f,P5=f,d0=f,N5=f,m0=null,oZ=null,cq=0,AL=500,IL=1/0,Iw=500,r8=null;function c0(){IL=KZ()+Iw}function jL(){return IL}var w5=!1,pq=null,f1=null,_9=!1,uX=null,p0=f,sq=[],lq=null,jw=50,s0=0,iq=null,nq=!1,R5=!1,Pw=50,v1=0,V5=null,l0=HQ,S5=f,PL=!1;function T5(){return hZ}function bZ(){if((mJ&(IZ|E7))!==tQ)return KZ();if(l0!==HQ)return l0;return l0=KZ(),l0}function gX(J){var Q=J.mode;if((Q&dJ)===MJ)return NJ;else if((mJ&IZ)!==tQ&&aQ!==f)return v6(aQ);var X=WP()!==LP;if(X){if(AZ.transition!==null){var G=AZ.transition;if(!G._updatedFibers)G._updatedFibers=new Set;G._updatedFibers.add(J)}if(S5===qZ)S5=Q3();return S5}var U=i7();if(U!==qZ)return U;var q=tI();return q}function Nw(J){var Q=J.mode;if((Q&dJ)===MJ)return NJ;return jB()}function JZ(J,Q,X,G){if(iw(),PL)$("useInsertionEffect must not schedule updates.");if(nq)R5=!0;if(u6(J,X,G),(mJ&IZ)!==f&&J===hZ)ow(Q);else{if(l7)Y3(J,Q,X);if(tw(Q),J===hZ){if((mJ&IZ)===tQ)d0=xJ(d0,X);if(eQ===u0)dX(J,aQ)}if(tZ(J,G),X===NJ&&mJ===tQ&&(Q.mode&dJ)===MJ&&!Y8.isBatchingLegacy)c0(),j2()}}function ww(J,Q,X){var G=J.current;G.lanes=Q,u6(J,Q,X),tZ(J,X)}function Rw(J){return(mJ&IZ)!==tQ}function tZ(J,Q){var X=J.callbackNode;HB(J,Q);var G=l4(J,J===hZ?aQ:f);if(G===f){if(X!==null)vL(X);J.callbackNode=null,J.callbackPriority=qZ;return}var U=W9(G),q=J.callbackPriority;if(q===U&&!(Y8.current!==null&&X!==Qz)){if(X==null&&q!==NJ)$("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}if(X!=null)vL(X);var O;if(U===NJ){if(J.tag===_X){if(Y8.isBatchingLegacy!==null)Y8.didScheduleLegacyUpdate=!0;rj(RL.bind(null,J))}else I2(RL.bind(null,J));if(Y8.current!==null)Y8.current.push(kX);else eI(function(){if((mJ&(IZ|E7))===tQ)kX()});O=null}else{var L;switch(U3(G)){case O7:L=m4;break;case u8:L=mG;break;case g8:L=z9;break;case o4:L=cG;break;default:L=z9;break}O=Zz(L,NL.bind(null,J))}J.callbackPriority=U,J.callbackNode=O}function NL(J,Q){if(vP(),l0=HQ,S5=f,(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");var X=J.callbackNode,G=t8();if(G){if(J.callbackNode!==X)return null}var U=l4(J,J===hZ?aQ:f);if(U===f)return null;var q=!i4(J,U)&&!IB(J,U)&&!Q,O=q?bw(J,U):k5(J,U);if(O!==n8){if(O===T9){var L=OK(J);if(L!==f)U=L,O=rq(J,L)}if(O===v0){var W=g0;throw k9(J,f),dX(J,U),tZ(J,KZ()),W}if(O===gq)dX(J,U);else{var H=!i4(J,U),M=J.current.alternate;if(H&&!Sw(M)){if(O=k5(J,U),O===T9){var N=OK(J);if(N!==f)U=N,O=rq(J,N)}if(O===v0){var P=g0;throw k9(J,f),dX(J,U),tZ(J,KZ()),P}}J.finishedWork=M,J.finishedLanes=U,Vw(J,O,U)}}if(tZ(J,KZ()),J.callbackNode===X)return NL.bind(null,J);return null}function rq(J,Q){var X=m0;if(t4(J)){var G=k9(J,Q);G.flags|=h8,mj(J.containerInfo)}var U=k5(J,Q);if(U!==T9){var q=oZ;if(oZ=X,q!==null)wL(q)}return U}function wL(J){if(oZ===null)oZ=J;else oZ.push.apply(oZ,J)}function Vw(J,Q,X){switch(Q){case n8:case v0:throw Error("Root did not complete. This is a bug in React.");case T9:{E9(J,oZ,r8);break}case j5:{if(dX(J,X),e$(X)&&!uL()){var G=cq+AL-KZ();if(G>10){var U=l4(J,f);if(U!==f)break;var q=J.suspendedLanes;if(!q1(q,X)){var O=bZ();X3(J,q);break}J.timeoutHandle=sK(E9.bind(null,J,oZ,r8),G);break}}E9(J,oZ,r8);break}case u0:{if(dX(J,X),AB(X))break;if(!uL()){var L=WB(J,X),W=L,H=KZ()-W,M=lw(H)-H;if(M>10){J.timeoutHandle=sK(E9.bind(null,J,oZ,r8),M);break}}E9(J,oZ,r8);break}case BL:{E9(J,oZ,r8);break}default:throw Error("Unknown root exit status.")}}function Sw(J){var Q=J;while(!0){if(Q.flags&g4){var X=Q.updateQueue;if(X!==null){var G=X.stores;if(G!==null)for(var U=0;U<G.length;U++){var q=G[U],O=q.getSnapshot,L=q.value;try{if(!W7(O(),L))return!1}catch(H){return!1}}}}var W=Q.child;if(Q.subtreeFlags&g4&&W!==null){W.return=Q,Q=W;continue}if(Q===J)return!0;while(Q.sibling===null){if(Q.return===null||Q.return===J)return!0;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return!0}function dX(J,Q){Q=n4(Q,N5),Q=n4(Q,d0),NB(J,Q)}function RL(J){if(uP(),(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");t8();var Q=l4(J,f);if(!$7(Q,NJ))return tZ(J,KZ()),null;var X=k5(J,Q);if(J.tag!==_X&&X===T9){var G=OK(J);if(G!==f)Q=G,X=rq(J,G)}if(X===v0){var U=g0;throw k9(J,f),dX(J,Q),tZ(J,KZ()),U}if(X===gq)throw Error("Root did not complete. This is a bug in React.");var q=J.current.alternate;return J.finishedWork=q,J.finishedLanes=Q,E9(J,oZ,r8),tZ(J,KZ()),null}function Tw(J,Q){if(Q!==f){if(HK(J,xJ(Q,NJ)),tZ(J,KZ()),(mJ&(IZ|E7))===tQ)c0(),kX()}}function oq(J,Q){var X=mJ;mJ|=FL;try{return J(Q)}finally{if(mJ=X,mJ===tQ&&!Y8.isBatchingLegacy)c0(),j2()}}function _w(J,Q,X,G,U){var q=i7(),O=AZ.transition;try{return AZ.transition=null,zZ(O7),J(Q,X,G,U)}finally{if(zZ(q),AZ.transition=O,mJ===tQ)c0()}}function o8(J){if(uX!==null&&uX.tag===_X&&(mJ&(IZ|E7))===tQ)t8();var Q=mJ;mJ|=FL;var X=AZ.transition,G=i7();try{if(AZ.transition=null,zZ(O7),J)return J();else return}finally{if(zZ(G),AZ.transition=X,mJ=Q,(mJ&(IZ|E7))===tQ)kX()}}function VL(){return(mJ&(IZ|E7))!==tQ}function _5(J,Q){SZ(dq,N8,J),N8=xJ(N8,Q),mq=xJ(mq,Q)}function tq(J){N8=dq.current,VZ(dq,J)}function k9(J,Q){J.finishedWork=null,J.finishedLanes=f;var X=J.timeoutHandle;if(X!==lK)J.timeoutHandle=lK,aI(X);if(_Q!==null){var G=_Q.return;while(G!==null){var U=G.alternate;JL(U,G),G=G.return}}hZ=J;var q=C9(J.current,null);return _Q=q,aQ=N8=mq=Q,eQ=n8,g0=null,P5=f,d0=f,N5=f,m0=null,oZ=null,IP(),o7.discardPendingWarnings(),q}function SL(J,Q){do{var X=_Q;try{if(fY(),o2(),GZ(),uq.current=null,X===null||X.return===null){eQ=v0,g0=Q,_Q=null;return}if(Z7&&X.mode&YQ)D5(X,!0);if(cZ)if(Y1(),Q!==null&&typeof Q==="object"&&typeof Q.then==="function"){var G=Q;QB(X,G,aQ)}else JB(X,Q,aQ);nP(J,X.return,X,Q,aQ),EL(X)}catch(U){if(Q=U,_Q===X&&X!==null)X=X.return,_Q=X;else X=_Q;continue}return}while(!0)}function TL(){var J=vq.current;if(vq.current=z5,J===null)return z5;else return J}function _L(J){vq.current=J}function kw(){cq=KZ()}function i0(J){P5=xJ(J,P5)}function Ew(){if(eQ===n8)eQ=j5}function aq(){if(eQ===n8||eQ===j5||eQ===T9)eQ=u0;if(hZ!==null&&(LK(P5)||LK(d0)))dX(hZ,aQ)}function Cw(J){if(eQ!==u0)eQ=T9;if(m0===null)m0=[J];else m0.push(J)}function xw(){return eQ===n8}function k5(J,Q){var X=mJ;mJ|=IZ;var G=TL();if(hZ!==J||aQ!==Q){if(l7){var U=J.memoizedUpdaters;if(U.size>0)n0(J,aQ),U.clear();G3(J,Q)}r8=K3(),k9(J,Q)}n$(Q);do try{hw();break}catch(q){SL(J,q)}while(!0);if(fY(),mJ=X,_L(G),_Q!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return r$(),hZ=null,aQ=f,eQ}function hw(){while(_Q!==null)kL(_Q)}function bw(J,Q){var X=mJ;mJ|=IZ;var G=TL();if(hZ!==J||aQ!==Q){if(l7){var U=J.memoizedUpdaters;if(U.size>0)n0(J,aQ),U.clear();G3(J,Q)}r8=K3(),c0(),k9(J,Q)}n$(Q);do try{yw();break}catch(q){SL(J,q)}while(!0);if(fY(),_L(G),mJ=X,_Q!==null)return KB(),n8;else return r$(),hZ=null,aQ=f,eQ}function yw(){while(_Q!==null&&!hF())kL(_Q)}function kL(J){var Q=J.alternate;TQ(J);var X;if((J.mode&YQ)!==MJ)Jq(J),X=eq(Q,J,N8),D5(J,!0);else X=eq(Q,J,N8);if(GZ(),J.memoizedProps=J.pendingProps,X===null)EL(J);else _Q=X;uq.current=null}function EL(J){var Q=J;do{var{alternate:X,return:G}=Q;if((Q.flags&k6)===BJ){TQ(Q);var U=void 0;if((Q.mode&YQ)===MJ)U=eO(X,Q,N8);else Jq(Q),U=eO(X,Q,N8),D5(Q,!1);if(GZ(),U!==null){_Q=U;return}}else{var q=VN(X,Q);if(q!==null){q.flags&=TF,_Q=q;return}if((Q.mode&YQ)!==MJ){D5(Q,!1);var{actualDuration:O,child:L}=Q;while(L!==null)O+=L.actualDuration,L=L.sibling;Q.actualDuration=O}if(G!==null)G.flags|=k6,G.subtreeFlags=BJ,G.deletions=null;else{eQ=gq,_Q=null;return}}var W=Q.sibling;if(W!==null){_Q=W;return}Q=G,_Q=Q}while(Q!==null);if(eQ===n8)eQ=BL}function E9(J,Q,X){var G=i7(),U=AZ.transition;try{AZ.transition=null,zZ(O7),fw(J,Q,X,G)}finally{AZ.transition=U,zZ(G)}return null}function fw(J,Q,X,G){do t8();while(uX!==null);if(nw(),(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");var{finishedWork:U,finishedLanes:q}=J;if(iF(q),U===null)return s$(),null;else if(q===f)$("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(J.finishedWork=null,J.finishedLanes=f,U===J.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");J.callbackNode=null,J.callbackPriority=qZ;var O=xJ(U.lanes,U.childLanes);if(wB(J,O),J===hZ)hZ=null,_Q=null,aQ=f;if((U.subtreeFlags&X1)!==BJ||(U.flags&X1)!==BJ){if(!_9)_9=!0,lq=X,Zz(z9,function(){return t8(),null})}var L=(U.subtreeFlags&(gG|dG|E6|X1))!==BJ,W=(U.flags&(gG|dG|E6|X1))!==BJ;if(L||W){var H=AZ.transition;AZ.transition=null;var M=i7();zZ(O7);var N=mJ;mJ|=E7,uq.current=null;var P=EN(J,U);jO(),sN(J,U,q),sI(J.containerInfo),J.current=U,ZB(q),lN(U,J,q),XB(),bF(),mJ=N,zZ(M),AZ.transition=H}else J.current=U,jO();var S=_9;if(_9)_9=!1,uX=J,p0=q;else v1=0,V5=null;if(O=J.pendingLanes,O===f)f1=null;if(!S)bL(J.current,!1);if(mF(U.stateNode,G),l7)J.memoizedUpdaters.clear();if(Mw(),tZ(J,KZ()),Q!==null){var T=J.onRecoverableError;for(var E=0;E<Q.length;E++){var s=Q[E],OJ=s.stack,GJ=s.digest;T(s.value,{componentStack:OJ,digest:GJ})}}if(w5){w5=!1;var yJ=pq;throw pq=null,yJ}if($7(p0,NJ)&&J.tag!==_X)t8();if(O=J.pendingLanes,$7(O,NJ))if(fP(),J===iq)s0++;else s0=0,iq=J;else s0=0;return kX(),s$(),null}function t8(){if(uX!==null){var J=U3(p0),Q=TB(g8,J),X=AZ.transition,G=i7();try{return AZ.transition=null,zZ(Q),uw()}finally{zZ(G),AZ.transition=X}}return!1}function vw(J){if(sq.push(J),!_9)_9=!0,Zz(z9,function(){return t8(),null})}function uw(){if(uX===null)return!1;var J=lq;lq=null;var Q=uX,X=p0;if(uX=null,p0=f,(mJ&(IZ|E7))!==tQ)throw Error("Cannot flush passive effects while already rendering.");nq=!0,R5=!1,YB(X);var G=mJ;mJ|=E7,eN(Q.current),rN(Q,Q.current,X,J);{var U=sq;sq=[];for(var q=0;q<U.length;q++){var O=U[q];bN(Q,O)}}GB(),bL(Q.current,!0),mJ=G,kX();{if(R5)if(Q===V5)v1++;else v1=0,V5=Q;else v1=0;nq=!1,R5=!1}cF(Q);{var L=Q.current.stateNode;L.effectDuration=0,L.passiveEffectDuration=0}return!0}function CL(J){return f1!==null&&f1.has(J)}function gw(J){if(f1===null)f1=new Set([J]);else f1.add(J)}function dw(J){if(!w5)w5=!0,pq=J}var mw=dw;function xL(J,Q,X){var G=V9(X,Q),U=_O(J,G,NJ),q=CX(J,U,NJ),O=bZ();if(q!==null)u6(q,NJ,O),tZ(q,O)}function DQ(J,Q,X){if(TN(X),r0(!1),J.tag===_){xL(J,J,X);return}var G=null;G=Q;while(G!==null){if(G.tag===_){xL(G,J,X);return}else if(G.tag===j){var{type:U,stateNode:q}=G;if(typeof U.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&!CL(q)){var O=V9(X,J),L=Bq(G,O,NJ),W=CX(G,L,NJ),H=bZ();if(W!==null)u6(W,NJ,H),tZ(W,H);return}}G=G.return}$(`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.
|
|
125
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`;else H=" You returned: "+L;$("%s must not return anything besides a function, which is used for clean-up.%s",W,H)}}}q=q.next}while(q!==U)}}function bN(J,Q){if((Q.flags&pJ)!==BJ)switch(Q.tag){case KJ:{var X=Q.stateNode.passiveEffectDuration,G=Q.memoizedProps,U=G.id,q=G.onPostCommit,O=IO(),L=Q.alternate===null?"mount":"update";if(AO())L="nested-update";if(typeof q==="function")q(U,L,X,O);var W=Q.return;J:while(W!==null){switch(W.tag){case T:var H=W.stateNode;H.passiveEffectDuration+=X;break J;case KJ:var M=W.stateNode;M.passiveEffectDuration+=X;break J}W=W.return}break}}}function yN(J,Q,X,G){if((X.flags&E6)!==BJ)switch(X.tag){case B:case g:case d:{if(!FZ)if(X.mode&YQ)try{j8(),fX(rQ|iQ,X)}finally{I8(X)}else fX(rQ|iQ,X);break}case j:{var U=X.stateNode;if(X.flags&pJ){if(!FZ)if(Q===null){if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}if(X.mode&YQ)try{j8(),U.componentDidMount()}finally{I8(X)}else U.componentDidMount()}else{var q=X.elementType===X.type?Q.memoizedProps:e7(X.type,Q.memoizedProps),O=Q.memoizedState;if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}if(X.mode&YQ)try{j8(),U.componentDidUpdate(q,O,U.__reactInternalSnapshotBeforeUpdate)}finally{I8(X)}else U.componentDidUpdate(q,O,U.__reactInternalSnapshotBeforeUpdate)}}var L=X.updateQueue;if(L!==null){if(X.type===X.elementType&&!S9){if(U.props!==X.memoizedProps)$("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.",EJ(X)||"instance");if(U.state!==X.memoizedState)$("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.",EJ(X)||"instance")}p2(X,L,U)}break}case T:{var W=X.updateQueue;if(W!==null){var H=null;if(X.child!==null)switch(X.child.tag){case k:H=cK(X.child.stateNode);break;case j:H=X.child.stateNode;break}p2(X,W,H)}break}case k:{var M=X.stateNode;if(Q===null&&X.flags&pJ){var{type:N,memoizedProps:P}=X;Qj(M,N,P)}break}case a:break;case y:break;case KJ:{{var S=X.memoizedProps,_=S.onCommit,E=S.onRender,s=X.stateNode.effectDuration,OJ=IO(),GJ=Q===null?"mount":"update";if(AO())GJ="nested-update";if(typeof E==="function")E(X.memoizedProps.id,GJ,X.actualDuration,X.treeBaseDuration,X.actualStartTime,OJ);{if(typeof _==="function")_(X.memoizedProps.id,GJ,s,OJ);vw(X);var yJ=X.return;J:while(yJ!==null){switch(yJ.tag){case T:var fJ=yJ.stateNode;fJ.effectDuration+=s;break J;case KJ:var w=yJ.stateNode;w.effectDuration+=s;break J}yJ=yJ.return}}}break}case c:{pN(J,X);break}case i:case SJ:case $J:case LJ:case JJ:case _J:break;default:throw 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.")}if(!FZ){if(X.flags&IX)KL(X)}}function fN(J){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)try{j8(),ZL(J,J.return)}finally{I8(J)}else ZL(J,J.return);break}case j:{var Q=J.stateNode;if(typeof Q.componentDidMount==="function")kN(J,J.return,Q);XL(J,J.return);break}case k:{XL(J,J.return);break}}}function vN(J,Q){var X=null;{var G=J;while(!0){if(G.tag===k){if(X===null){X=G;try{var U=G.stateNode;if(Q)Oj(U);else Wj(G.stateNode,G.memoizedProps)}catch(O){DQ(J,J.return,O)}}}else if(G.tag===a){if(X===null)try{var q=G.stateNode;if(Q)Lj(q);else Dj(q,G.memoizedProps)}catch(O){DQ(J,J.return,O)}}else if((G.tag===LJ||G.tag===JJ)&&G.memoizedState!==null&&G!==J);else if(G.child!==null){G.child.return=G,G=G.child;continue}if(G===J)return;while(G.sibling===null){if(G.return===null||G.return===J)return;if(X===G)X=null;G=G.return}if(X===G)X=null;G.sibling.return=G.return,G=G.sibling}}}function KL(J){var Q=J.ref;if(Q!==null){var X=J.stateNode,G;switch(J.tag){case k:G=cK(X);break;default:G=X}if(typeof Q==="function"){var U;if(J.mode&YQ)try{j8(),U=Q(G)}finally{I8(J)}else U=Q(G);if(typeof U==="function")$("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",EJ(J))}else{if(!Q.hasOwnProperty("current"))$("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",EJ(J));Q.current=G}}}function uN(J){var Q=J.alternate;if(Q!==null)Q.return=null;J.return=null}function UL(J){var Q=J.alternate;if(Q!==null)J.alternate=null,UL(Q);{if(J.child=null,J.deletions=null,J.sibling=null,J.tag===k){var X=J.stateNode;if(X!==null)lj(X)}J.stateNode=null,J._debugOwner=null,J.return=null,J.dependencies=null,J.memoizedProps=null,J.memoizedState=null,J.pendingProps=null,J.stateNode=null,J.updateQueue=null}}function gN(J){var Q=J.return;while(Q!==null){if(qL(Q))return Q;Q=Q.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function qL(J){return J.tag===k||J.tag===T||J.tag===y}function zL(J){var Q=J;J:while(!0){while(Q.sibling===null){if(Q.return===null||qL(Q.return))return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling;while(Q.tag!==k&&Q.tag!==a&&Q.tag!==zJ){if(Q.flags&dQ)continue J;if(Q.child===null||Q.tag===y)continue J;else Q.child.return=Q,Q=Q.child}if(!(Q.flags&dQ))return Q.stateNode}}function dN(J){var Q=gN(J);switch(Q.tag){case k:{var X=Q.stateNode;if(Q.flags&T6)z2(X),Q.flags&=~T6;var G=zL(J);yq(J,G,X);break}case T:case y:{var U=Q.stateNode.containerInfo,q=zL(J);bq(J,q,U);break}default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function bq(J,Q,X){var G=J.tag,U=G===k||G===a;if(U){var q=J.stateNode;if(Q)Uj(X,q,Q);else Gj(X,q)}else if(G===y);else{var O=J.child;if(O!==null){bq(O,Q,X);var L=O.sibling;while(L!==null)bq(L,Q,X),L=L.sibling}}}function yq(J,Q,X){var G=J.tag,U=G===k||G===a;if(U){var q=J.stateNode;if(Q)Kj(X,q,Q);else Yj(X,q)}else if(G===y);else{var O=J.child;if(O!==null){yq(O,Q,X);var L=O.sibling;while(L!==null)yq(L,Q,X),L=L.sibling}}}var BZ=null,Z8=!1;function mN(J,Q,X){{var G=Q;J:while(G!==null){switch(G.tag){case k:{BZ=G.stateNode,Z8=!1;break J}case T:{BZ=G.stateNode.containerInfo,Z8=!0;break J}case y:{BZ=G.stateNode.containerInfo,Z8=!0;break J}}G=G.return}if(BZ===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");$L(J,Q,X),BZ=null,Z8=!1}uN(X)}function vX(J,Q,X){var G=X.child;while(G!==null)$L(J,Q,G),G=G.sibling}function $L(J,Q,X){switch(pF(X),X.tag){case k:if(!FZ)y1(X,Q);case a:{{var G=BZ,U=Z8;if(BZ=null,vX(J,Q,X),BZ=G,Z8=U,BZ!==null)if(Z8)zj(BZ,X.stateNode);else qj(BZ,X.stateNode)}return}case zJ:{if(BZ!==null)if(Z8)$j(BZ,X.stateNode);else iK(BZ,X.stateNode);return}case y:{{var q=BZ,O=Z8;BZ=X.stateNode.containerInfo,Z8=!0,vX(J,Q,X),BZ=q,Z8=O}return}case B:case g:case qJ:case d:{if(!FZ){var L=X.updateQueue;if(L!==null){var W=L.lastEffect;if(W!==null){var H=W.next,M=H;do{var N=M,P=N.destroy,S=N.tag;if(P!==void 0){if((S&F8)!==nZ)I5(X,Q,P);else if((S&rQ)!==nZ){if(l$(X),X.mode&YQ)j8(),I5(X,Q,P),I8(X);else I5(X,Q,P);i$()}}M=M.next}while(M!==H)}}}vX(J,Q,X);return}case j:{if(!FZ){y1(X,Q);var _=X.stateNode;if(typeof _.componentWillUnmount==="function")hq(X,Q,_)}vX(J,Q,X);return}case $J:{vX(J,Q,X);return}case LJ:{if(X.mode&dJ){var E=FZ;FZ=E||X.memoizedState!==null,vX(J,Q,X),FZ=E}else vX(J,Q,X);break}default:{vX(J,Q,X);return}}}function cN(J){var Q=J.memoizedState}function pN(J,Q){var X=Q.memoizedState;if(X===null){var G=Q.alternate;if(G!==null){var U=G.memoizedState;if(U!==null){var q=U.dehydrated;if(q!==null)Tj(q)}}}}function OL(J){var Q=J.updateQueue;if(Q!==null){J.updateQueue=null;var X=J.stateNode;if(X===null)X=J.stateNode=new SN;Q.forEach(function(G){var U=sw.bind(null,J,G);if(!X.has(G)){if(X.add(G),l7)if(h1!==null&&b1!==null)r0(b1,h1);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");G.then(U,U)}})}}function sN(J,Q,X){h1=X,b1=J,_Q(Q),LL(Q,J),_Q(Q),h1=null,b1=null}function X8(J,Q,X){var G=Q.deletions;if(G!==null)for(var U=0;U<G.length;U++){var q=G[U];try{mN(J,Q,q)}catch(W){DQ(q,Q,W)}}var O=S4();if(Q.subtreeFlags&dG){var L=Q.child;while(L!==null)_Q(L),LL(L,J),L=L.sibling}_Q(O)}function LL(J,Q,X){var{alternate:G,flags:U}=J;switch(J.tag){case B:case g:case qJ:case d:{if(X8(Q,J),P8(J),U&pJ){try{Q8(F8|iQ,J,J.return),fX(F8|iQ,J)}catch(jJ){DQ(J,J.return,jJ)}if(J.mode&YQ){try{j8(),Q8(rQ|iQ,J,J.return)}catch(jJ){DQ(J,J.return,jJ)}I8(J)}else try{Q8(rQ|iQ,J,J.return)}catch(jJ){DQ(J,J.return,jJ)}}return}case j:{if(X8(Q,J),P8(J),U&IX){if(G!==null)y1(G,G.return)}return}case k:{if(X8(Q,J),P8(J),U&IX){if(G!==null)y1(G,G.return)}{if(J.flags&T6){var q=J.stateNode;try{z2(q)}catch(jJ){DQ(J,J.return,jJ)}}if(U&pJ){var O=J.stateNode;if(O!=null){var L=J.memoizedProps,W=G!==null?G.memoizedProps:L,H=J.type,M=J.updateQueue;if(J.updateQueue=null,M!==null)try{Zj(O,M,H,W,L,J)}catch(jJ){DQ(J,J.return,jJ)}}}}return}case a:{if(X8(Q,J),P8(J),U&pJ){if(J.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var{stateNode:N,memoizedProps:P}=J,S=G!==null?G.memoizedProps:P;try{Xj(N,S,P)}catch(jJ){DQ(J,J.return,jJ)}}return}case T:{if(X8(Q,J),P8(J),U&pJ){if(G!==null){var _=G.memoizedState;if(_.isDehydrated)try{_j(Q.containerInfo)}catch(jJ){DQ(J,J.return,jJ)}}}return}case y:{X8(Q,J),P8(J);return}case c:{X8(Q,J),P8(J);var E=J.child;if(E.flags&K9){var{stateNode:s,memoizedState:OJ}=E,GJ=OJ!==null;if(s.isHidden=GJ,GJ){var yJ=E.alternate!==null&&E.alternate.memoizedState!==null;if(!yJ)kw()}}if(U&pJ){try{cN(J)}catch(jJ){DQ(J,J.return,jJ)}OL(J)}return}case LJ:{var fJ=G!==null&&G.memoizedState!==null;if(J.mode&dJ){var w=FZ;FZ=w||fJ,X8(Q,J),FZ=w}else X8(Q,J);if(P8(J),U&K9){var{stateNode:x,memoizedState:V}=J,u=V!==null,e=J;if(x.isHidden=u,u){if(!fJ){if((e.mode&dJ)!==MJ){ZJ=e;var r=e.child;while(r!==null)ZJ=r,iN(r),r=r.sibling}}}vN(e,u)}return}case i:{if(X8(Q,J),P8(J),U&pJ)OL(J);return}case $J:return;default:{X8(Q,J),P8(J);return}}}function P8(J){var Q=J.flags;if(Q&dQ){try{dN(J)}catch(X){DQ(J,J.return,X)}J.flags&=~dQ}if(Q&b8)J.flags&=~b8}function lN(J,Q,X){h1=X,b1=Q,ZJ=J,WL(J,Q,X),h1=null,b1=null}function WL(J,Q,X){var G=(J.mode&dJ)!==MJ;while(ZJ!==null){var U=ZJ,q=U.child;if(U.tag===LJ&&G){var O=U.memoizedState!==null,L=O||A5;if(L){fq(J,Q,X);continue}else{var W=U.alternate,H=W!==null&&W.memoizedState!==null,M=H||FZ,N=A5,P=FZ;if(A5=L,FZ=M,FZ&&!P)ZJ=U,rN(U);var S=q;while(S!==null)ZJ=S,WL(S,Q,X),S=S.sibling;ZJ=U,A5=N,FZ=P,fq(J,Q,X);continue}}if((U.subtreeFlags&E6)!==BJ&&q!==null)q.return=U,ZJ=q;else fq(J,Q,X)}}function fq(J,Q,X){while(ZJ!==null){var G=ZJ;if((G.flags&E6)!==BJ){var U=G.alternate;_Q(G);try{yN(Q,U,G,X)}catch(O){DQ(G,G.return,O)}GZ()}if(G===J){ZJ=null;return}var q=G.sibling;if(q!==null){q.return=G.return,ZJ=q;return}ZJ=G.return}}function iN(J){while(ZJ!==null){var Q=ZJ,X=Q.child;switch(Q.tag){case B:case g:case qJ:case d:{if(Q.mode&YQ)try{j8(),Q8(rQ,Q,Q.return)}finally{I8(Q)}else Q8(rQ,Q,Q.return);break}case j:{y1(Q,Q.return);var G=Q.stateNode;if(typeof G.componentWillUnmount==="function")hq(Q,Q.return,G);break}case k:{y1(Q,Q.return);break}case LJ:{var U=Q.memoizedState!==null;if(U){DL(J);continue}break}}if(X!==null)X.return=Q,ZJ=X;else DL(J)}}function DL(J){while(ZJ!==null){var Q=ZJ;if(Q===J){ZJ=null;return}var X=Q.sibling;if(X!==null){X.return=Q.return,ZJ=X;return}ZJ=Q.return}}function rN(J){while(ZJ!==null){var Q=ZJ,X=Q.child;if(Q.tag===LJ){var G=Q.memoizedState!==null;if(G){HL(J);continue}}if(X!==null)X.return=Q,ZJ=X;else HL(J)}}function HL(J){while(ZJ!==null){var Q=ZJ;_Q(Q);try{fN(Q)}catch(G){DQ(Q,Q.return,G)}if(GZ(),Q===J){ZJ=null;return}var X=Q.sibling;if(X!==null){X.return=Q.return,ZJ=X;return}ZJ=Q.return}}function nN(J,Q,X,G){ZJ=Q,oN(Q,J,X,G)}function oN(J,Q,X,G){while(ZJ!==null){var U=ZJ,q=U.child;if((U.subtreeFlags&X1)!==BJ&&q!==null)q.return=U,ZJ=q;else tN(J,Q,X,G)}}function tN(J,Q,X,G){while(ZJ!==null){var U=ZJ;if((U.flags&s7)!==BJ){_Q(U);try{aN(Q,U,X,G)}catch(O){DQ(U,U.return,O)}GZ()}if(U===J){ZJ=null;return}var q=U.sibling;if(q!==null){q.return=U.return,ZJ=q;return}ZJ=U.return}}function aN(J,Q,X,G){switch(Q.tag){case B:case g:case d:{if(Q.mode&YQ){Zq();try{fX(HZ|iQ,Q)}finally{Qq(Q)}}else fX(HZ|iQ,Q);break}}}function eN(J){ZJ=J,Jw()}function Jw(){while(ZJ!==null){var J=ZJ,Q=J.child;if((ZJ.flags&Y9)!==BJ){var X=J.deletions;if(X!==null){for(var G=0;G<X.length;G++){var U=X[G];ZJ=U,Xw(U,J)}{var q=J.alternate;if(q!==null){var O=q.child;if(O!==null){q.child=null;do{var L=O.sibling;O.sibling=null,O=L}while(O!==null)}}}ZJ=J}}if((J.subtreeFlags&X1)!==BJ&&Q!==null)Q.return=J,ZJ=Q;else Qw()}}function Qw(){while(ZJ!==null){var J=ZJ;if((J.flags&s7)!==BJ)_Q(J),Zw(J),GZ();var Q=J.sibling;if(Q!==null){Q.return=J.return,ZJ=Q;return}ZJ=J.return}}function Zw(J){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)Zq(),Q8(HZ|iQ,J,J.return),Qq(J);else Q8(HZ|iQ,J,J.return);break}}}function Xw(J,Q){while(ZJ!==null){var X=ZJ;_Q(X),Gw(X,Q),GZ();var G=X.child;if(G!==null)G.return=X,ZJ=G;else Yw(J)}}function Yw(J){while(ZJ!==null){var Q=ZJ,X=Q.sibling,G=Q.return;if(UL(Q),Q===J){ZJ=null;return}if(X!==null){X.return=G,ZJ=X;return}ZJ=G}}function Gw(J,Q){switch(J.tag){case B:case g:case d:{if(J.mode&YQ)Zq(),Q8(HZ,J,Q),Qq(J);else Q8(HZ,J,Q);break}}}function Kw(J){switch(J.tag){case B:case g:case d:{try{fX(rQ|iQ,J)}catch(X){DQ(J,J.return,X)}break}case j:{var Q=J.stateNode;try{Q.componentDidMount()}catch(X){DQ(J,J.return,X)}break}}}function Uw(J){switch(J.tag){case B:case g:case d:{try{fX(HZ|iQ,J)}catch(Q){DQ(J,J.return,Q)}break}}}function qw(J){switch(J.tag){case B:case g:case d:{try{Q8(rQ|iQ,J,J.return)}catch(X){DQ(J,J.return,X)}break}case j:{var Q=J.stateNode;if(typeof Q.componentWillUnmount==="function")hq(J,J.return,Q);break}}}function zw(J){switch(J.tag){case B:case g:case d:try{Q8(HZ|iQ,J,J.return)}catch(Q){DQ(J,J.return,Q)}}}var $w=0,Ow=1,Lw=2,Ww=3,Dw=4;if(typeof Symbol==="function"&&Symbol.for){var f0=Symbol.for;$w=f0("selector.component"),Ow=f0("selector.has_pseudo_class"),Lw=f0("selector.role"),Ww=f0("selector.test_id"),Dw=f0("selector.text")}var Hw=[];function Mw(){Hw.forEach(function(J){return J()})}var Fw=Z.ReactCurrentActQueue;function Bw(J){{var Q=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,X=typeof jest<"u";return X&&Q!==!1}}function ML(){{var J=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;if(!J&&Fw.current!==null)$("The current testing environment is not configured to support act(...)");return J}}var Aw=Math.ceil,vq=Z.ReactCurrentDispatcher,uq=Z.ReactCurrentOwner,AZ=Z.ReactCurrentBatchConfig,Y8=Z.ReactCurrentActQueue,tQ=0,FL=1,IZ=2,E7=4,r8=0,v0=1,_9=2,j5=3,u0=4,BL=5,gq=6,mJ=tQ,hZ=null,TQ=null,aQ=f,N8=f,dq=_X(f),eQ=r8,g0=null,mq=f,P5=f,d0=f,N5=f,m0=null,oZ=null,cq=0,AL=500,IL=1/0,Iw=500,n8=null;function c0(){IL=KZ()+Iw}function jL(){return IL}var w5=!1,pq=null,f1=null,T9=!1,uX=null,p0=f,sq=[],lq=null,jw=50,s0=0,iq=null,rq=!1,V5=!1,Pw=50,v1=0,R5=null,l0=HQ,S5=f,PL=!1;function _5(){return hZ}function bZ(){if((mJ&(IZ|E7))!==tQ)return KZ();if(l0!==HQ)return l0;return l0=KZ(),l0}function gX(J){var Q=J.mode;if((Q&dJ)===MJ)return NJ;else if((mJ&IZ)!==tQ&&aQ!==f)return v6(aQ);var X=WP()!==LP;if(X){if(AZ.transition!==null){var G=AZ.transition;if(!G._updatedFibers)G._updatedFibers=new Set;G._updatedFibers.add(J)}if(S5===qZ)S5=Q3();return S5}var U=i7();if(U!==qZ)return U;var q=tI();return q}function Nw(J){var Q=J.mode;if((Q&dJ)===MJ)return NJ;return jB()}function JZ(J,Q,X,G){if(iw(),PL)$("useInsertionEffect must not schedule updates.");if(rq)V5=!0;if(u6(J,X,G),(mJ&IZ)!==f&&J===hZ)ow(Q);else{if(l7)Y3(J,Q,X);if(tw(Q),J===hZ){if((mJ&IZ)===tQ)d0=xJ(d0,X);if(eQ===u0)dX(J,aQ)}if(tZ(J,G),X===NJ&&mJ===tQ&&(Q.mode&dJ)===MJ&&!Y8.isBatchingLegacy)c0(),j2()}}function ww(J,Q,X){var G=J.current;G.lanes=Q,u6(J,Q,X),tZ(J,X)}function Vw(J){return(mJ&IZ)!==tQ}function tZ(J,Q){var X=J.callbackNode;HB(J,Q);var G=l4(J,J===hZ?aQ:f);if(G===f){if(X!==null)vL(X);J.callbackNode=null,J.callbackPriority=qZ;return}var U=W9(G),q=J.callbackPriority;if(q===U&&!(Y8.current!==null&&X!==Qz)){if(X==null&&q!==NJ)$("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}if(X!=null)vL(X);var O;if(U===NJ){if(J.tag===TX){if(Y8.isBatchingLegacy!==null)Y8.didScheduleLegacyUpdate=!0;nj(VL.bind(null,J))}else I2(VL.bind(null,J));if(Y8.current!==null)Y8.current.push(kX);else eI(function(){if((mJ&(IZ|E7))===tQ)kX()});O=null}else{var L;switch(U3(G)){case O7:L=m4;break;case u8:L=mG;break;case g8:L=z9;break;case o4:L=cG;break;default:L=z9;break}O=Zz(L,NL.bind(null,J))}J.callbackPriority=U,J.callbackNode=O}function NL(J,Q){if(vP(),l0=HQ,S5=f,(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");var X=J.callbackNode,G=t8();if(G){if(J.callbackNode!==X)return null}var U=l4(J,J===hZ?aQ:f);if(U===f)return null;var q=!i4(J,U)&&!IB(J,U)&&!Q,O=q?bw(J,U):k5(J,U);if(O!==r8){if(O===_9){var L=OK(J);if(L!==f)U=L,O=nq(J,L)}if(O===v0){var W=g0;throw k9(J,f),dX(J,U),tZ(J,KZ()),W}if(O===gq)dX(J,U);else{var H=!i4(J,U),M=J.current.alternate;if(H&&!Sw(M)){if(O=k5(J,U),O===_9){var N=OK(J);if(N!==f)U=N,O=nq(J,N)}if(O===v0){var P=g0;throw k9(J,f),dX(J,U),tZ(J,KZ()),P}}J.finishedWork=M,J.finishedLanes=U,Rw(J,O,U)}}if(tZ(J,KZ()),J.callbackNode===X)return NL.bind(null,J);return null}function nq(J,Q){var X=m0;if(t4(J)){var G=k9(J,Q);G.flags|=h8,mj(J.containerInfo)}var U=k5(J,Q);if(U!==_9){var q=oZ;if(oZ=X,q!==null)wL(q)}return U}function wL(J){if(oZ===null)oZ=J;else oZ.push.apply(oZ,J)}function Rw(J,Q,X){switch(Q){case r8:case v0:throw Error("Root did not complete. This is a bug in React.");case _9:{E9(J,oZ,n8);break}case j5:{if(dX(J,X),e$(X)&&!uL()){var G=cq+AL-KZ();if(G>10){var U=l4(J,f);if(U!==f)break;var q=J.suspendedLanes;if(!q1(q,X)){var O=bZ();X3(J,q);break}J.timeoutHandle=sK(E9.bind(null,J,oZ,n8),G);break}}E9(J,oZ,n8);break}case u0:{if(dX(J,X),AB(X))break;if(!uL()){var L=WB(J,X),W=L,H=KZ()-W,M=lw(H)-H;if(M>10){J.timeoutHandle=sK(E9.bind(null,J,oZ,n8),M);break}}E9(J,oZ,n8);break}case BL:{E9(J,oZ,n8);break}default:throw Error("Unknown root exit status.")}}function Sw(J){var Q=J;while(!0){if(Q.flags&g4){var X=Q.updateQueue;if(X!==null){var G=X.stores;if(G!==null)for(var U=0;U<G.length;U++){var q=G[U],O=q.getSnapshot,L=q.value;try{if(!W7(O(),L))return!1}catch(H){return!1}}}}var W=Q.child;if(Q.subtreeFlags&g4&&W!==null){W.return=Q,Q=W;continue}if(Q===J)return!0;while(Q.sibling===null){if(Q.return===null||Q.return===J)return!0;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return!0}function dX(J,Q){Q=r4(Q,N5),Q=r4(Q,d0),NB(J,Q)}function VL(J){if(uP(),(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");t8();var Q=l4(J,f);if(!$7(Q,NJ))return tZ(J,KZ()),null;var X=k5(J,Q);if(J.tag!==TX&&X===_9){var G=OK(J);if(G!==f)Q=G,X=nq(J,G)}if(X===v0){var U=g0;throw k9(J,f),dX(J,Q),tZ(J,KZ()),U}if(X===gq)throw Error("Root did not complete. This is a bug in React.");var q=J.current.alternate;return J.finishedWork=q,J.finishedLanes=Q,E9(J,oZ,n8),tZ(J,KZ()),null}function _w(J,Q){if(Q!==f){if(HK(J,xJ(Q,NJ)),tZ(J,KZ()),(mJ&(IZ|E7))===tQ)c0(),kX()}}function oq(J,Q){var X=mJ;mJ|=FL;try{return J(Q)}finally{if(mJ=X,mJ===tQ&&!Y8.isBatchingLegacy)c0(),j2()}}function Tw(J,Q,X,G,U){var q=i7(),O=AZ.transition;try{return AZ.transition=null,zZ(O7),J(Q,X,G,U)}finally{if(zZ(q),AZ.transition=O,mJ===tQ)c0()}}function o8(J){if(uX!==null&&uX.tag===TX&&(mJ&(IZ|E7))===tQ)t8();var Q=mJ;mJ|=FL;var X=AZ.transition,G=i7();try{if(AZ.transition=null,zZ(O7),J)return J();else return}finally{if(zZ(G),AZ.transition=X,mJ=Q,(mJ&(IZ|E7))===tQ)kX()}}function RL(){return(mJ&(IZ|E7))!==tQ}function T5(J,Q){SZ(dq,N8,J),N8=xJ(N8,Q),mq=xJ(mq,Q)}function tq(J){N8=dq.current,RZ(dq,J)}function k9(J,Q){J.finishedWork=null,J.finishedLanes=f;var X=J.timeoutHandle;if(X!==lK)J.timeoutHandle=lK,aI(X);if(TQ!==null){var G=TQ.return;while(G!==null){var U=G.alternate;JL(U,G),G=G.return}}hZ=J;var q=C9(J.current,null);return TQ=q,aQ=N8=mq=Q,eQ=r8,g0=null,P5=f,d0=f,N5=f,m0=null,oZ=null,IP(),o7.discardPendingWarnings(),q}function SL(J,Q){do{var X=TQ;try{if(fY(),o2(),GZ(),uq.current=null,X===null||X.return===null){eQ=v0,g0=Q,TQ=null;return}if(Z7&&X.mode&YQ)D5(X,!0);if(cZ)if(Y1(),Q!==null&&typeof Q==="object"&&typeof Q.then==="function"){var G=Q;QB(X,G,aQ)}else JB(X,Q,aQ);rP(J,X.return,X,Q,aQ),EL(X)}catch(U){if(Q=U,TQ===X&&X!==null)X=X.return,TQ=X;else X=TQ;continue}return}while(!0)}function _L(){var J=vq.current;if(vq.current=z5,J===null)return z5;else return J}function TL(J){vq.current=J}function kw(){cq=KZ()}function i0(J){P5=xJ(J,P5)}function Ew(){if(eQ===r8)eQ=j5}function aq(){if(eQ===r8||eQ===j5||eQ===_9)eQ=u0;if(hZ!==null&&(LK(P5)||LK(d0)))dX(hZ,aQ)}function Cw(J){if(eQ!==u0)eQ=_9;if(m0===null)m0=[J];else m0.push(J)}function xw(){return eQ===r8}function k5(J,Q){var X=mJ;mJ|=IZ;var G=_L();if(hZ!==J||aQ!==Q){if(l7){var U=J.memoizedUpdaters;if(U.size>0)r0(J,aQ),U.clear();G3(J,Q)}n8=K3(),k9(J,Q)}r$(Q);do try{hw();break}catch(q){SL(J,q)}while(!0);if(fY(),mJ=X,TL(G),TQ!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return n$(),hZ=null,aQ=f,eQ}function hw(){while(TQ!==null)kL(TQ)}function bw(J,Q){var X=mJ;mJ|=IZ;var G=_L();if(hZ!==J||aQ!==Q){if(l7){var U=J.memoizedUpdaters;if(U.size>0)r0(J,aQ),U.clear();G3(J,Q)}n8=K3(),c0(),k9(J,Q)}r$(Q);do try{yw();break}catch(q){SL(J,q)}while(!0);if(fY(),TL(G),mJ=X,TQ!==null)return KB(),r8;else return n$(),hZ=null,aQ=f,eQ}function yw(){while(TQ!==null&&!hF())kL(TQ)}function kL(J){var Q=J.alternate;_Q(J);var X;if((J.mode&YQ)!==MJ)Jq(J),X=eq(Q,J,N8),D5(J,!0);else X=eq(Q,J,N8);if(GZ(),J.memoizedProps=J.pendingProps,X===null)EL(J);else TQ=X;uq.current=null}function EL(J){var Q=J;do{var{alternate:X,return:G}=Q;if((Q.flags&k6)===BJ){_Q(Q);var U=void 0;if((Q.mode&YQ)===MJ)U=eO(X,Q,N8);else Jq(Q),U=eO(X,Q,N8),D5(Q,!1);if(GZ(),U!==null){TQ=U;return}}else{var q=RN(X,Q);if(q!==null){q.flags&=_F,TQ=q;return}if((Q.mode&YQ)!==MJ){D5(Q,!1);var{actualDuration:O,child:L}=Q;while(L!==null)O+=L.actualDuration,L=L.sibling;Q.actualDuration=O}if(G!==null)G.flags|=k6,G.subtreeFlags=BJ,G.deletions=null;else{eQ=gq,TQ=null;return}}var W=Q.sibling;if(W!==null){TQ=W;return}Q=G,TQ=Q}while(Q!==null);if(eQ===r8)eQ=BL}function E9(J,Q,X){var G=i7(),U=AZ.transition;try{AZ.transition=null,zZ(O7),fw(J,Q,X,G)}finally{AZ.transition=U,zZ(G)}return null}function fw(J,Q,X,G){do t8();while(uX!==null);if(rw(),(mJ&(IZ|E7))!==tQ)throw Error("Should not already be working.");var{finishedWork:U,finishedLanes:q}=J;if(iF(q),U===null)return s$(),null;else if(q===f)$("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(J.finishedWork=null,J.finishedLanes=f,U===J.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");J.callbackNode=null,J.callbackPriority=qZ;var O=xJ(U.lanes,U.childLanes);if(wB(J,O),J===hZ)hZ=null,TQ=null,aQ=f;if((U.subtreeFlags&X1)!==BJ||(U.flags&X1)!==BJ){if(!T9)T9=!0,lq=X,Zz(z9,function(){return t8(),null})}var L=(U.subtreeFlags&(gG|dG|E6|X1))!==BJ,W=(U.flags&(gG|dG|E6|X1))!==BJ;if(L||W){var H=AZ.transition;AZ.transition=null;var M=i7();zZ(O7);var N=mJ;mJ|=E7,uq.current=null;var P=EN(J,U);jO(),sN(J,U,q),sI(J.containerInfo),J.current=U,ZB(q),lN(U,J,q),XB(),bF(),mJ=N,zZ(M),AZ.transition=H}else J.current=U,jO();var S=T9;if(T9)T9=!1,uX=J,p0=q;else v1=0,R5=null;if(O=J.pendingLanes,O===f)f1=null;if(!S)bL(J.current,!1);if(mF(U.stateNode,G),l7)J.memoizedUpdaters.clear();if(Mw(),tZ(J,KZ()),Q!==null){var _=J.onRecoverableError;for(var E=0;E<Q.length;E++){var s=Q[E],OJ=s.stack,GJ=s.digest;_(s.value,{componentStack:OJ,digest:GJ})}}if(w5){w5=!1;var yJ=pq;throw pq=null,yJ}if($7(p0,NJ)&&J.tag!==TX)t8();if(O=J.pendingLanes,$7(O,NJ))if(fP(),J===iq)s0++;else s0=0,iq=J;else s0=0;return kX(),s$(),null}function t8(){if(uX!==null){var J=U3(p0),Q=_B(g8,J),X=AZ.transition,G=i7();try{return AZ.transition=null,zZ(Q),uw()}finally{zZ(G),AZ.transition=X}}return!1}function vw(J){if(sq.push(J),!T9)T9=!0,Zz(z9,function(){return t8(),null})}function uw(){if(uX===null)return!1;var J=lq;lq=null;var Q=uX,X=p0;if(uX=null,p0=f,(mJ&(IZ|E7))!==tQ)throw Error("Cannot flush passive effects while already rendering.");rq=!0,V5=!1,YB(X);var G=mJ;mJ|=E7,eN(Q.current),nN(Q,Q.current,X,J);{var U=sq;sq=[];for(var q=0;q<U.length;q++){var O=U[q];bN(Q,O)}}GB(),bL(Q.current,!0),mJ=G,kX();{if(V5)if(Q===R5)v1++;else v1=0,R5=Q;else v1=0;rq=!1,V5=!1}cF(Q);{var L=Q.current.stateNode;L.effectDuration=0,L.passiveEffectDuration=0}return!0}function CL(J){return f1!==null&&f1.has(J)}function gw(J){if(f1===null)f1=new Set([J]);else f1.add(J)}function dw(J){if(!w5)w5=!0,pq=J}var mw=dw;function xL(J,Q,X){var G=R9(X,Q),U=TO(J,G,NJ),q=CX(J,U,NJ),O=bZ();if(q!==null)u6(q,NJ,O),tZ(q,O)}function DQ(J,Q,X){if(_N(X),n0(!1),J.tag===T){xL(J,J,X);return}var G=null;G=Q;while(G!==null){if(G.tag===T){xL(G,J,X);return}else if(G.tag===j){var{type:U,stateNode:q}=G;if(typeof U.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&!CL(q)){var O=R9(X,J),L=Bq(G,O,NJ),W=CX(G,L,NJ),H=bZ();if(W!==null)u6(W,NJ,H),tZ(W,H);return}}G=G.return}$(`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.
|
|
126
126
|
|
|
127
127
|
Error message:
|
|
128
128
|
|
|
129
|
-
%s`,X)}function cw(J,Q,X){var G=J.pingCache;if(G!==null)G.delete(Q);var U=bZ();if(X3(J,X),aw(J),hZ===J&&q1(aQ,X))if(eQ===u0||eQ===j5&&e$(aQ)&&KZ()-cq<AL)k9(J,f);else N5=xJ(N5,X);tZ(J,U)}function hL(J,Q){if(Q===qZ)Q=Nw(J);var X=bZ(),G=
|
|
129
|
+
%s`,X)}function cw(J,Q,X){var G=J.pingCache;if(G!==null)G.delete(Q);var U=bZ();if(X3(J,X),aw(J),hZ===J&&q1(aQ,X))if(eQ===u0||eQ===j5&&e$(aQ)&&KZ()-cq<AL)k9(J,f);else N5=xJ(N5,X);tZ(J,U)}function hL(J,Q){if(Q===qZ)Q=Nw(J);var X=bZ(),G=rZ(J,Q);if(G!==null)u6(G,Q,X),tZ(G,X)}function pw(J){var Q=J.memoizedState,X=qZ;if(Q!==null)X=Q.retryLane;hL(J,X)}function sw(J,Q){var X=qZ,G;switch(J.tag){case c:G=J.stateNode;var U=J.memoizedState;if(U!==null)X=U.retryLane;break;case i:G=J.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}if(G!==null)G.delete(Q);hL(J,X)}function lw(J){return J<120?120:J<480?480:J<1080?1080:J<1920?1920:J<3000?3000:J<4320?4320:Aw(J/1960)*1960}function iw(){if(s0>jw)throw s0=0,iq=null,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.");if(v1>Pw)v1=0,R5=null,$("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 rw(){o7.flushLegacyContextWarning(),o7.flushPendingUnsafeLifecycleWarnings()}function bL(J,Q){{if(_Q(J),E5(J,y8,qw),Q)E5(J,d4,zw);if(E5(J,y8,Kw),Q)E5(J,d4,Uw);GZ()}}function E5(J,Q,X){{var G=J,U=null;while(G!==null){var q=G.subtreeFlags&Q;if(G!==U&&G.child!==null&&q!==BJ)G=G.child;else{if((G.flags&Q)!==BJ)X(G);if(G.sibling!==null)G=G.sibling;else G=U=G.return}}}}var C5=null;function yL(J){{if((mJ&IZ)!==tQ)return;if(!(J.mode&dJ))return;var Q=J.tag;if(Q!==b&&Q!==T&&Q!==j&&Q!==B&&Q!==g&&Q!==qJ&&Q!==d)return;var X=EJ(J)||"ReactComponent";if(C5!==null){if(C5.has(X))return;C5.add(X)}else C5=new Set([X]);var G=VZ;try{_Q(J),$("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{if(G)_Q(J);else GZ()}}}var eq;{var nw=null;eq=function(J,Q,X){var G=pL(nw,Q);try{return rO(J,Q,X)}catch(q){if(XP()||q!==null&&typeof q==="object"&&typeof q.then==="function")throw q;if(fY(),o2(),JL(J,Q),pL(Q,G),Q.mode&YQ)Jq(Q);if(hG(null,rO,null,J,Q,X),wF()){var U=bG();if(typeof U==="object"&&U!==null&&U._suppressLogging&&typeof q==="object"&&q!==null&&!q._suppressLogging)q._suppressLogging=!0}throw q}}}var fL=!1,Jz;Jz=new Set;function ow(J){if(J9&&!hP())switch(J.tag){case B:case g:case d:{var Q=TQ&&EJ(TQ)||"Unknown",X=Q;if(!Jz.has(X)){Jz.add(X);var G=EJ(J)||"Unknown";$("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",G,Q,Q)}break}case j:{if(!fL)$("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),fL=!0;break}}}function r0(J,Q){if(l7){var X=J.memoizedUpdaters;X.forEach(function(G){Y3(J,G,Q)})}}var Qz={};function Zz(J,Q){{var X=Y8.current;if(X!==null)return X.push(Q),Qz;else return p$(J,Q)}}function vL(J){if(J===Qz)return;return xF(J)}function uL(){return Y8.current!==null}function tw(J){{if(J.mode&dJ){if(!ML())return}else{if(!Bw())return;if(mJ!==tQ)return;if(J.tag!==B&&J.tag!==g&&J.tag!==d)return}if(Y8.current===null){var Q=VZ;try{_Q(J),$(`An update to %s inside a test was not wrapped in act(...).
|
|
130
130
|
|
|
131
131
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
132
132
|
|
|
@@ -135,7 +135,7 @@ act(() => {
|
|
|
135
135
|
});
|
|
136
136
|
/* assert on the output */
|
|
137
137
|
|
|
138
|
-
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`,EJ(J))}finally{if(Q)
|
|
138
|
+
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`,EJ(J))}finally{if(Q)_Q(J);else GZ()}}}}function aw(J){if(J.tag!==TX&&ML()&&Y8.current===null)$(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
139
139
|
|
|
140
140
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
141
141
|
|
|
@@ -144,32 +144,32 @@ act(() => {
|
|
|
144
144
|
});
|
|
145
145
|
/* assert on the output */
|
|
146
146
|
|
|
147
|
-
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
|
|
147
|
+
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 n0(J){PL=J}var C7=null,u1=null,ew=function(J){C7=J};function g1(J){{if(C7===null)return J;var Q=C7(J);if(Q===void 0)return J;return Q.current}}function Xz(J){return g1(J)}function Yz(J){{if(C7===null)return J;var Q=C7(J);if(Q===void 0){if(J!==null&&J!==void 0&&typeof J.render==="function"){var X=g1(J.render);if(J.render!==X){var G={$$typeof:HJ,render:X};if(J.displayName!==void 0)G.displayName=J.displayName;return G}}return J}return Q.current}}function gL(J,Q){{if(C7===null)return!1;var X=J.elementType,G=Q.type,U=!1,q=typeof G==="object"&&G!==null?G.$$typeof:null;switch(J.tag){case j:{if(typeof G==="function")U=!0;break}case B:{if(typeof G==="function")U=!0;else if(q===oJ)U=!0;break}case g:{if(q===HJ)U=!0;else if(q===oJ)U=!0;break}case qJ:case d:{if(q===kJ)U=!0;else if(q===oJ)U=!0;break}default:return!1}if(U){var O=C7(X);if(O!==void 0&&O===C7(G))return!0}return!1}}function dL(J){{if(C7===null)return;if(typeof WeakSet!=="function")return;if(u1===null)u1=new WeakSet;u1.add(J)}}var JV=function(J,Q){{if(C7===null)return;var{staleFamilies:X,updatedFamilies:G}=Q;t8(),o8(function(){Gz(J.current,G,X)})}},QV=function(J,Q){{if(J.context!==D7)return;t8(),o8(function(){o0(Q,J,null,null)})}};function Gz(J,Q,X){{var{alternate:G,child:U,sibling:q,tag:O,type:L}=J,W=null;switch(O){case B:case d:case j:W=L;break;case g:W=L.render;break}if(C7===null)throw Error("Expected resolveFamily to be set during hot reload.");var H=!1,M=!1;if(W!==null){var N=C7(W);if(N!==void 0){if(X.has(N))M=!0;else if(Q.has(N))if(O===j)M=!0;else H=!0}}if(u1!==null){if(u1.has(J)||G!==null&&u1.has(G))M=!0}if(M)J._debugNeedsRemount=!0;if(M||H){var P=rZ(J,NJ);if(P!==null)JZ(P,J,NJ,HQ)}if(U!==null&&!M)Gz(U,Q,X);if(q!==null)Gz(q,Q,X)}}var ZV=function(J,Q){{var X=new Set,G=new Set(Q.map(function(U){return U.current}));return Kz(J.current,G,X),X}};function Kz(J,Q,X){{var{child:G,sibling:U,tag:q,type:O}=J,L=null;switch(q){case B:case d:case j:L=O;break;case g:L=O.render;break}var W=!1;if(L!==null){if(Q.has(L))W=!0}if(W)XV(J,X);else if(G!==null)Kz(G,Q,X);if(U!==null)Kz(U,Q,X)}}function XV(J,Q){{var X=YV(J,Q);if(X)return;var G=J;while(!0){switch(G.tag){case k:Q.add(G.stateNode);return;case y:Q.add(G.stateNode.containerInfo);return;case T:Q.add(G.stateNode.containerInfo);return}if(G.return===null)throw Error("Expected to reach root first.");G=G.return}}}function YV(J,Q){{var X=J,G=!1;while(!0){if(X.tag===k)G=!0,Q.add(X.stateNode);else if(X.child!==null){X.child.return=X,X=X.child;continue}if(X===J)return G;while(X.sibling===null){if(X.return===null||X.return===J)return G;X=X.return}X.sibling.return=X.return,X=X.sibling}}return!1}var Uz;{Uz=!1;try{var mL=Object.preventExtensions({});}catch(J){Uz=!0}}function GV(J,Q,X,G){if(this.tag=J,this.key=X,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=Q,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=G,this.flags=BJ,this.subtreeFlags=BJ,this.deletions=null,this.lanes=f,this.childLanes=f,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,!Uz&&typeof Object.preventExtensions==="function")Object.preventExtensions(this)}var H7=function(J,Q,X,G){return new GV(J,Q,X,G)};function qz(J){var Q=J.prototype;return!!(Q&&Q.isReactComponent)}function KV(J){return typeof J==="function"&&!qz(J)&&J.defaultProps===void 0}function UV(J){if(typeof J==="function")return qz(J)?j:B;else if(J!==void 0&&J!==null){var Q=J.$$typeof;if(Q===HJ)return g;if(Q===kJ)return qJ}return b}function C9(J,Q){var X=J.alternate;if(X===null)X=H7(J.tag,Q,J.key,J.mode),X.elementType=J.elementType,X.type=J.type,X.stateNode=J.stateNode,X._debugSource=J._debugSource,X._debugOwner=J._debugOwner,X._debugHookTypes=J._debugHookTypes,X.alternate=J,J.alternate=X;else X.pendingProps=Q,X.type=J.type,X.flags=BJ,X.subtreeFlags=BJ,X.deletions=null,X.actualDuration=0,X.actualStartTime=-1;X.flags=J.flags&f8,X.childLanes=J.childLanes,X.lanes=J.lanes,X.child=J.child,X.memoizedProps=J.memoizedProps,X.memoizedState=J.memoizedState,X.updateQueue=J.updateQueue;var G=J.dependencies;switch(X.dependencies=G===null?null:{lanes:G.lanes,firstContext:G.firstContext},X.sibling=J.sibling,X.index=J.index,X.ref=J.ref,X.selfBaseDuration=J.selfBaseDuration,X.treeBaseDuration=J.treeBaseDuration,X._debugNeedsRemount=J._debugNeedsRemount,X.tag){case b:case B:case d:X.type=g1(J.type);break;case j:X.type=Xz(J.type);break;case g:X.type=Yz(J.type);break}return X}function qV(J,Q){J.flags&=f8|dQ;var X=J.alternate;if(X===null)J.childLanes=f,J.lanes=Q,J.child=null,J.subtreeFlags=BJ,J.memoizedProps=null,J.memoizedState=null,J.updateQueue=null,J.dependencies=null,J.stateNode=null,J.selfBaseDuration=0,J.treeBaseDuration=0;else{J.childLanes=X.childLanes,J.lanes=X.lanes,J.child=X.child,J.subtreeFlags=BJ,J.deletions=null,J.memoizedProps=X.memoizedProps,J.memoizedState=X.memoizedState,J.updateQueue=X.updateQueue,J.type=X.type;var G=X.dependencies;J.dependencies=G===null?null:{lanes:G.lanes,firstContext:G.firstContext},J.selfBaseDuration=X.selfBaseDuration,J.treeBaseDuration=X.treeBaseDuration}return J}function zV(J,Q,X){var G;if(J===SY){if(G=dJ,Q===!0)G|=CQ,G|=W8}else G=MJ;if(l7)G|=YQ;return H7(T,null,null,G)}function zz(J,Q,X,G,U,q){var O=b,L=J;if(typeof J==="function")if(qz(J))O=j,L=Xz(L);else L=g1(L);else if(typeof J==="string")O=k;else J:switch(J){case z8:return mX(X.children,U,q,Q);case I:if(O=TJ,U|=CQ,(U&dJ)!==MJ)U|=W8;break;case v:return $V(X,U,q,Q);case lJ:return OV(X,U,q,Q);case hJ:return LV(X,U,q,Q);case OZ:return cL(X,U,q,Q);case $8:case IQ:case c7:case YZ:case VQ:default:{if(typeof J==="object"&&J!==null)switch(J.$$typeof){case l:O=CJ;break J;case FJ:O=bJ;break J;case HJ:O=g,L=Yz(L);break J;case kJ:O=qJ;break J;case oJ:O=UJ,L=null;break J}var W="";{if(J===void 0||typeof J==="object"&&J!==null&&Object.keys(J).length===0)W+=" 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 H=G?EJ(G):null;if(H)W+=`
|
|
148
148
|
|
|
149
|
-
Check the render method of \``+H+"`."}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(J==null?J:typeof J)+"."+W))}}var M=H7(O,X,Q,U);return M.elementType=J,M.type=L,M.lanes=q,M._debugOwner=G,M}function $z(J,Q,X){var G=null;G=J._owner;var{type:U,key:q,props:O}=J,L=zz(U,q,O,G,Q,X);return L._debugSource=J._source,L._debugOwner=J._owner,L}function mX(J,Q,X,G){var U=H7(DJ,J,G,Q);return U.lanes=X,U}function $
|
|
149
|
+
Check the render method of \``+H+"`."}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(J==null?J:typeof J)+"."+W))}}var M=H7(O,X,Q,U);return M.elementType=J,M.type=L,M.lanes=q,M._debugOwner=G,M}function $z(J,Q,X){var G=null;G=J._owner;var{type:U,key:q,props:O}=J,L=zz(U,q,O,G,Q,X);return L._debugSource=J._source,L._debugOwner=J._owner,L}function mX(J,Q,X,G){var U=H7(DJ,J,G,Q);return U.lanes=X,U}function $V(J,Q,X,G){if(typeof J.id!=="string")$('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof J.id);var U=H7(KJ,J,G,Q|YQ);return U.elementType=v,U.lanes=X,U.stateNode={effectDuration:0,passiveEffectDuration:0},U}function OV(J,Q,X,G){var U=H7(c,J,G,Q);return U.elementType=lJ,U.lanes=X,U}function LV(J,Q,X,G){var U=H7(i,J,G,Q);return U.elementType=hJ,U.lanes=X,U}function cL(J,Q,X,G){var U=H7(LJ,J,G,Q);U.elementType=OZ,U.lanes=X;var q={isHidden:!1};return U.stateNode=q,U}function Oz(J,Q,X){var G=H7(a,J,null,Q);return G.lanes=X,G}function WV(){var J=H7(k,null,null,MJ);return J.elementType="DELETED",J}function DV(J){var Q=H7(zJ,null,null,MJ);return Q.stateNode=J,Q}function Lz(J,Q,X){var G=J.children!==null?J.children:[],U=H7(y,G,J.key,Q);return U.lanes=X,U.stateNode={containerInfo:J.containerInfo,pendingChildren:null,implementation:J.implementation},U}function pL(J,Q){if(J===null)J=H7(b,null,null,MJ);return J.tag=Q.tag,J.key=Q.key,J.elementType=Q.elementType,J.type=Q.type,J.stateNode=Q.stateNode,J.return=Q.return,J.child=Q.child,J.sibling=Q.sibling,J.index=Q.index,J.ref=Q.ref,J.pendingProps=Q.pendingProps,J.memoizedProps=Q.memoizedProps,J.updateQueue=Q.updateQueue,J.memoizedState=Q.memoizedState,J.dependencies=Q.dependencies,J.mode=Q.mode,J.flags=Q.flags,J.subtreeFlags=Q.subtreeFlags,J.deletions=Q.deletions,J.lanes=Q.lanes,J.childLanes=Q.childLanes,J.alternate=Q.alternate,J.actualDuration=Q.actualDuration,J.actualStartTime=Q.actualStartTime,J.selfBaseDuration=Q.selfBaseDuration,J.treeBaseDuration=Q.treeBaseDuration,J._debugSource=Q._debugSource,J._debugOwner=Q._debugOwner,J._debugNeedsRemount=Q._debugNeedsRemount,J._debugHookTypes=Q._debugHookTypes,J}function HV(J,Q,X,G,U){this.tag=Q,this.containerInfo=J,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=lK,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=qZ,this.eventTimes=DK(f),this.expirationTimes=DK(HQ),this.pendingLanes=f,this.suspendedLanes=f,this.pingedLanes=f,this.expiredLanes=f,this.mutableReadLanes=f,this.finishedLanes=f,this.entangledLanes=f,this.entanglements=DK(f),this.identifierPrefix=G,this.onRecoverableError=U,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;var q=this.pendingUpdatersLaneMap=[];for(var O=0;O<sG;O++)q.push(new Set)}switch(Q){case SY:this._debugRootType=X?"hydrateRoot()":"createRoot()";break;case TX:this._debugRootType=X?"hydrate()":"render()";break}}function sL(J,Q,X,G,U,q,O,L,W,H){var M=new HV(J,Q,X,L,W),N=zV(Q,q);M.current=N,N.stateNode=M;{var P={element:G,isDehydrated:X,cache:null,transitions:null,pendingSuspenseBoundaries:null};N.memoizedState=P}return NU(N),M}var Wz="18.3.1";function MV(J,Q,X){var G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return u7(G),{$$typeof:m7,key:G==null?null:""+G,children:J,containerInfo:Q,implementation:X}}var Dz,Hz;Dz=!1,Hz={};function lL(J){if(!J)return D7;var Q=Q1(J),X=rj(Q);if(Q.tag===j){var G=Q.type;if(M8(G))return B2(Q,G,X)}return X}function FV(J,Q){{var X=Q1(J);if(X===void 0)if(typeof J.render==="function")throw Error("Unable to find node on an unmounted component.");else{var G=Object.keys(J).join(",");throw Error("Argument appears to not be a ReactComponent. Keys: "+G)}var U=d$(X);if(U===null)return null;if(U.mode&CQ){var q=EJ(X)||"Component";if(!Hz[q]){Hz[q]=!0;var O=VZ;try{if(_Q(U),X.mode&CQ)$("%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",Q,Q,q);else $("%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",Q,Q,q)}finally{if(O)_Q(O);else GZ()}}}return U.stateNode}}function iL(J,Q,X,G,U,q,O,L){var W=!1,H=null;return sL(J,Q,W,H,X,G,U,q,O)}function rL(J,Q,X,G,U,q,O,L,W,H){var M=!0,N=sL(X,G,M,J,U,q,O,L,W);N.context=lL(null);var P=N.current,S=bZ(),_=gX(P),E=l8(S,_);return E.callback=Q!==void 0&&Q!==null?Q:null,CX(P,E,_),ww(N,_,S),N}function o0(J,Q,X,G){dF(Q,J);var U=Q.current,q=bZ(),O=gX(U);UB(O);var L=lL(X);if(Q.context===null)Q.context=L;else Q.pendingContext=L;if(J9&&VZ!==null&&!Dz)Dz=!0,$(`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.
|
|
150
150
|
|
|
151
|
-
Check the render method of %s.`,EJ(
|
|
151
|
+
Check the render method of %s.`,EJ(VZ)||"Unknown");var W=l8(q,O);if(W.payload={element:J},G=G===void 0?null:G,G!==null){if(typeof G!=="function")$("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",G);W.callback=G}var H=CX(U,W,O);if(H!==null)JZ(H,U,O,q),mY(H,U,O);return O}function x5(J){var Q=J.current;if(!Q.child)return null;switch(Q.child.tag){case k:return cK(Q.child.stateNode);default:return Q.child.stateNode}}function BV(J){switch(J.tag){case T:{var Q=J.stateNode;if(t4(Q)){var X=MB(Q);_w(Q,X)}break}case c:{o8(function(){var U=rZ(J,NJ);if(U!==null){var q=bZ();JZ(U,J,NJ,q)}});var G=NJ;Mz(J,G);break}}}function nL(J,Q){var X=J.memoizedState;if(X!==null&&X.dehydrated!==null)X.retryLane=PB(X.retryLane,Q)}function Mz(J,Q){nL(J,Q);var X=J.alternate;if(X)nL(X,Q)}function AV(J){if(J.tag!==c)return;var Q=b6,X=rZ(J,Q);if(X!==null){var G=bZ();JZ(X,J,Q,G)}Mz(J,Q)}function IV(J){if(J.tag!==c)return;var Q=gX(J),X=rZ(J,Q);if(X!==null){var G=bZ();JZ(X,J,Q,G)}Mz(J,Q)}function oL(J){var Q=CF(J);if(Q===null)return null;return Q.stateNode}var tL=function(J){return null};function jV(J){return tL(J)}var aL=function(J){return!1};function PV(J){return aL(J)}var eL=null,JW=null,QW=null,ZW=null,XW=null,YW=null,GW=null,KW=null,UW=null;{var qW=function(J,Q,X){var G=Q[X],U=tJ(J)?J.slice():uJ({},J);if(X+1===Q.length){if(tJ(U))U.splice(G,1);else delete U[G];return U}return U[G]=qW(J[G],Q,X+1),U},zW=function(J,Q){return qW(J,Q,0)},$W=function(J,Q,X,G){var U=Q[G],q=tJ(J)?J.slice():uJ({},J);if(G+1===Q.length){var O=X[G];if(q[O]=q[U],tJ(q))q.splice(U,1);else delete q[U]}else q[U]=$W(J[U],Q,X,G+1);return q},OW=function(J,Q,X){if(Q.length!==X.length){z("copyWithRename() expects paths of the same length");return}else for(var G=0;G<X.length-1;G++)if(Q[G]!==X[G]){z("copyWithRename() expects paths to be the same except for the deepest key");return}return $W(J,Q,X,0)},LW=function(J,Q,X,G){if(X>=Q.length)return G;var U=Q[X],q=tJ(J)?J.slice():uJ({},J);return q[U]=LW(J[U],Q,X+1,G),q},WW=function(J,Q,X){return LW(J,Q,0,X)},Fz=function(J,Q){var X=J.memoizedState;while(X!==null&&Q>0)X=X.next,Q--;return X};eL=function(J,Q,X,G){var U=Fz(J,Q);if(U!==null){var q=WW(U.memoizedState,X,G);U.memoizedState=q,U.baseState=q,J.memoizedProps=uJ({},J.memoizedProps);var O=rZ(J,NJ);if(O!==null)JZ(O,J,NJ,HQ)}},JW=function(J,Q,X){var G=Fz(J,Q);if(G!==null){var U=zW(G.memoizedState,X);G.memoizedState=U,G.baseState=U,J.memoizedProps=uJ({},J.memoizedProps);var q=rZ(J,NJ);if(q!==null)JZ(q,J,NJ,HQ)}},QW=function(J,Q,X,G){var U=Fz(J,Q);if(U!==null){var q=OW(U.memoizedState,X,G);U.memoizedState=q,U.baseState=q,J.memoizedProps=uJ({},J.memoizedProps);var O=rZ(J,NJ);if(O!==null)JZ(O,J,NJ,HQ)}},ZW=function(J,Q,X){if(J.pendingProps=WW(J.memoizedProps,Q,X),J.alternate)J.alternate.pendingProps=J.pendingProps;var G=rZ(J,NJ);if(G!==null)JZ(G,J,NJ,HQ)},XW=function(J,Q){if(J.pendingProps=zW(J.memoizedProps,Q),J.alternate)J.alternate.pendingProps=J.pendingProps;var X=rZ(J,NJ);if(X!==null)JZ(X,J,NJ,HQ)},YW=function(J,Q,X){if(J.pendingProps=OW(J.memoizedProps,Q,X),J.alternate)J.alternate.pendingProps=J.pendingProps;var G=rZ(J,NJ);if(G!==null)JZ(G,J,NJ,HQ)},GW=function(J){var Q=rZ(J,NJ);if(Q!==null)JZ(Q,J,NJ,HQ)},KW=function(J){tL=J},UW=function(J){aL=J}}function NV(J){var Q=d$(J);if(Q===null)return null;return Q.stateNode}function wV(J){return null}function VV(){return VZ}function RV(J){var Q=J.findFiberByHostInstance,X=Z.ReactCurrentDispatcher;return gF({bundleType:J.bundleType,version:J.version,rendererPackageName:J.rendererPackageName,rendererConfig:J.rendererConfig,overrideHookState:eL,overrideHookStateDeletePath:JW,overrideHookStateRenamePath:QW,overrideProps:ZW,overridePropsDeletePath:XW,overridePropsRenamePath:YW,setErrorHandler:KW,setSuspenseHandler:UW,scheduleUpdate:GW,currentDispatcherRef:X,findHostInstanceByFiber:NV,findFiberByHostInstance:Q||wV,findHostInstancesForRefresh:ZV,scheduleRefresh:JV,scheduleRoot:QV,setRefreshHandler:ew,getCurrentFiber:VV,reconcilerVersion:Wz})}var DW=typeof reportError==="function"?reportError:function(J){console.error(J)};function Bz(J){this._internalRoot=J}h5.prototype.render=Bz.prototype.render=function(J){var Q=this._internalRoot;if(Q===null)throw Error("Cannot update an unmounted root.");{if(typeof arguments[1]==="function")$("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");else if(b5(arguments[1]))$("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.");else if(typeof arguments[1]<"u")$("You passed a second argument to root.render(...) but it only accepts one argument.");var X=Q.containerInfo;if(X.nodeType!==gQ){var G=oL(Q.current);if(G){if(G.parentNode!==X)$("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.")}}}o0(J,Q,null,null)},h5.prototype.unmount=Bz.prototype.unmount=function(){if(typeof arguments[0]==="function")$("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var J=this._internalRoot;if(J!==null){this._internalRoot=null;var Q=J.containerInfo;if(RL())$("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.");o8(function(){o0(null,J,null,null)}),L2(Q)}};function SV(J,Q){if(!b5(J))throw Error("createRoot(...): Target container is not a DOM element.");HW(J);var X=!1,G=!1,U="",q=DW,O=null;if(Q!==null&&Q!==void 0){if(Q.hydrate)z("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.");else if(typeof Q==="object"&&Q!==null&&Q.$$typeof===d7)$(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
152
152
|
|
|
153
153
|
let root = createRoot(domContainer);
|
|
154
|
-
root.render(<App />);`);if(Q.unstable_strictMode===!0)X=!0;if(Q.identifierPrefix!==void 0)U=Q.identifierPrefix;if(Q.onRecoverableError!==void 0)q=Q.onRecoverableError;if(Q.transitionCallbacks!==void 0)O=Q.transitionCallbacks}var L=iL(J,SY,null,X,G,U,q);IY(L.current,J);var W=J.nodeType===gQ?J.parentNode:J;return Z0(W),new Bz(L)}function h5(J){this._internalRoot=J}function
|
|
155
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}}if(
|
|
154
|
+
root.render(<App />);`);if(Q.unstable_strictMode===!0)X=!0;if(Q.identifierPrefix!==void 0)U=Q.identifierPrefix;if(Q.onRecoverableError!==void 0)q=Q.onRecoverableError;if(Q.transitionCallbacks!==void 0)O=Q.transitionCallbacks}var L=iL(J,SY,null,X,G,U,q);IY(L.current,J);var W=J.nodeType===gQ?J.parentNode:J;return Z0(W),new Bz(L)}function h5(J){this._internalRoot=J}function _V(J){if(J)uB(J)}h5.prototype.unstable_scheduleHydration=_V;function TV(J,Q,X){if(!b5(J))throw Error("hydrateRoot(...): Target container is not a DOM element.");if(HW(J),Q===void 0)$("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var G=X!=null?X:null,U=X!=null&&X.hydratedSources||null,q=!1,O=!1,L="",W=DW;if(X!==null&&X!==void 0){if(X.unstable_strictMode===!0)q=!0;if(X.identifierPrefix!==void 0)L=X.identifierPrefix;if(X.onRecoverableError!==void 0)W=X.onRecoverableError}var H=rL(Q,null,J,SY,G,q,O,L,W);if(IY(H.current,J),Z0(J),U)for(var M=0;M<U.length;M++){var N=U[M];TP(H,N)}return new h5(H)}function b5(J){return!!(J&&(J.nodeType===lZ||J.nodeType===x8||J.nodeType===NG||!cQ))}function t0(J){return!!(J&&(J.nodeType===lZ||J.nodeType===x8||J.nodeType===NG||J.nodeType===gQ&&J.nodeValue===" react-mount-point-unstable "))}function HW(J){{if(J.nodeType===lZ&&J.tagName&&J.tagName.toUpperCase()==="BODY")$("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.");if(W0(J))if(J._reactRootContainer)$("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.");else $("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 kV=Z.ReactCurrentOwner,MW;MW=function(J){if(J._reactRootContainer&&J.nodeType!==gQ){var Q=oL(J._reactRootContainer.current);if(Q){if(Q.parentNode!==J)$("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 X=!!J._reactRootContainer,G=Az(J),U=!!(G&&SX(G));if(U&&!X)$("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.");if(J.nodeType===lZ&&J.tagName&&J.tagName.toUpperCase()==="BODY")$("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 Az(J){if(!J)return null;if(J.nodeType===x8)return J.documentElement;else return J.firstChild}function FW(){}function EV(J,Q,X,G,U){if(U){if(typeof G==="function"){var q=G;G=function(){var P=x5(O);q.call(P)}}var O=rL(Q,G,J,TX,null,!1,!1,"",FW);J._reactRootContainer=O,IY(O.current,J);var L=J.nodeType===gQ?J.parentNode:J;return Z0(L),o8(),O}else{var W;while(W=J.lastChild)J.removeChild(W);if(typeof G==="function"){var H=G;G=function(){var P=x5(M);H.call(P)}}var M=iL(J,TX,null,!1,!1,"",FW);J._reactRootContainer=M,IY(M.current,J);var N=J.nodeType===gQ?J.parentNode:J;return Z0(N),o8(function(){o0(Q,M,X,G)}),M}}function CV(J,Q){if(J!==null&&typeof J!=="function")$("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",Q,J)}function y5(J,Q,X,G,U){MW(X),CV(U===void 0?null:U,"render");var q=X._reactRootContainer,O;if(!q)O=EV(X,Q,J,U,G);else{if(O=q,typeof U==="function"){var L=U;U=function(){var W=x5(O);L.call(W)}}o0(Q,O,J,U)}return x5(O)}var BW=!1;function xV(J){{if(!BW)BW=!0,$("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 Q=kV.current;if(Q!==null&&Q.stateNode!==null){var X=Q.stateNode._warnedAboutRefsInRender;if(!X)$("%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.",sJ(Q.type)||"A component");Q.stateNode._warnedAboutRefsInRender=!0}}if(J==null)return null;if(J.nodeType===lZ)return J;return FV(J,"findDOMNode")}function hV(J,Q,X){if($("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"),!t0(Q))throw Error("Target container is not a DOM element.");{var G=W0(Q)&&Q._reactRootContainer===void 0;if(G)$("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 y5(null,J,Q,!0,X)}function bV(J,Q,X){if($("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"),!t0(Q))throw Error("Target container is not a DOM element.");{var G=W0(Q)&&Q._reactRootContainer===void 0;if(G)$("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 y5(null,J,Q,!1,X)}function yV(J,Q,X,G){if($("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"),!t0(X))throw Error("Target container is not a DOM element.");if(J==null||!VF(J))throw Error("parentComponent must be a valid React Component");return y5(J,Q,X,!1,G)}var AW=!1;function fV(J){if(!AW)AW=!0,$("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");if(!t0(J))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var Q=W0(J)&&J._reactRootContainer===void 0;if(Q)$("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(J._reactRootContainer){{var X=Az(J),G=X&&!SX(X);if(G)$("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return o8(function(){y5(null,null,J,!1,function(){J._reactRootContainer=null,L2(J)})}),!0}else{{var U=Az(J),q=!!(U&&SX(U)),O=J.nodeType===lZ&&t0(J.parentNode)&&!!J.parentNode._reactRootContainer;if(q)$("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",O?"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}}if(TB(BV),EB(AV),CB(IV),xB(i7),hB(RB),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")$("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");DF(bI),FF(oq,Tw,o8);function vV(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!b5(Q))throw Error("Target container is not a DOM element.");return MV(J,Q,null,X)}function uV(J,Q,X,G){return yV(J,Q,X,G)}var Iz={usingClientEntryPoint:!1,Events:[SX,F1,jY,T$,k$,oq]};function gV(J,Q){if(!Iz.usingClientEntryPoint)$('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return SV(J,Q)}function dV(J,Q,X){if(!Iz.usingClientEntryPoint)$('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".');return TV(J,Q,X)}function mV(J){if(RL())$("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.");return o8(J)}var cV=RV({findFiberByHostInstance:F9,bundleType:1,version:Wz,rendererPackageName:"react-dom"});if(!cV&&bQ&&window.top===window.self){if(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1){var IW=window.location.protocol;if(/^(https?|file):$/.test(IW))console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(IW==="file:"?`
|
|
155
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}}if(a_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Iz,a_.createPortal=vV,a_.createRoot=gV,a_.findDOMNode=xV,a_.flushSync=mV,a_.hydrate=hV,a_.hydrateRoot=dV,a_.render=bV,a_.unmountComponentAtNode=fV,a_.unstable_batchedUpdates=oq,a_.unstable_renderSubtreeIntoContainer=uV,a_.version=Wz,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function")__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var zM=m1((sk,qM)=>{var e_=zQ(UM());qM.exports=e_});var $M=m1((JT)=>{var G6=zQ(zM());Y6=G6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,JT.createRoot=function(Z,Y){Y6.usingClientEntryPoint=!0;try{return G6.createRoot(Z,Y)}finally{Y6.usingClientEntryPoint=!1}},JT.hydrateRoot=function(Z,Y,K){Y6.usingClientEntryPoint=!0;try{return G6.hydrateRoot(Z,Y,K)}finally{Y6.usingClientEntryPoint=!1}};var Y6});var gZ=m1((QT)=>{var O$=zQ(G8());(function(){var Z=Symbol.for("react.element"),Y=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),B=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),a=Symbol.for("react.offscreen"),DJ=Symbol.iterator,TJ="@@iterator";function bJ(I){if(I===null||typeof I!=="object")return null;var v=DJ&&I[DJ]||I[TJ];if(typeof v==="function")return v;return null}var CJ=O$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(I){{for(var v=arguments.length,l=Array(v>1?v-1:0),FJ=1;FJ<v;FJ++)l[FJ-1]=arguments[FJ];KJ("error",I,l)}}function KJ(I,v,l){{var FJ=CJ.ReactDebugCurrentFrame,HJ=FJ.getStackAddendum();if(HJ!=="")v+="%s",l=l.concat([HJ]);var lJ=l.map(function(hJ){return String(hJ)});lJ.unshift("Warning: "+v),Function.prototype.apply.call(console[I],console,lJ)}}var c=!1,qJ=!1,d=!1,UJ=!1,SJ=!1,zJ;zJ=Symbol.for("react.module.reference");function i(I){if(typeof I==="string"||typeof I==="function")return!0;if(I===K||I===$||SJ||I===z||I===b||I===T||UJ||I===a||c||qJ||d)return!0;if(typeof I==="object"&&I!==null){if(I.$$typeof===k||I.$$typeof===y||I.$$typeof===F||I.$$typeof===B||I.$$typeof===j||I.$$typeof===zJ||I.getModuleId!==void 0)return!0}return!1}function $J(I,v,l){var FJ=I.displayName;if(FJ)return FJ;var HJ=v.displayName||v.name||"";return HJ!==""?l+"("+HJ+")":l}function LJ(I){return I.displayName||"Context"}function JJ(I){if(I==null)return null;if(typeof I.tag==="number")g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");if(typeof I==="function")return I.displayName||I.name||null;if(typeof I==="string")return I;switch(I){case K:return"Fragment";case Y:return"Portal";case $:return"Profiler";case z:return"StrictMode";case b:return"Suspense";case T:return"SuspenseList"}if(typeof I==="object")switch(I.$$typeof){case B:var v=I;return LJ(v)+".Consumer";case F:var l=I;return LJ(l._context)+".Provider";case j:return $J(I,I.render,"ForwardRef");case y:var FJ=I.displayName||null;if(FJ!==null)return FJ;return JJ(I.type)||"Memo";case k:{var HJ=I,lJ=HJ._payload,hJ=HJ._init;try{return JJ(hJ(lJ))}catch(kJ){return null}}}return null}var YJ=Object.assign,_J=0,QJ,AJ,BQ,vQ,mZ,cQ,$Q;function uQ(){}uQ.__reactDisabledLog=!0;function cZ(){{if(_J===0){QJ=console.log,AJ=console.info,BQ=console.warn,vQ=console.error,mZ=console.group,cQ=console.groupCollapsed,$Q=console.groupEnd;var I={configurable:!0,enumerable:!0,value:uQ,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}_J++}}function Z7(){{if(_J--,_J===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:YJ({},I,{value:QJ}),info:YJ({},I,{value:AJ}),warn:YJ({},I,{value:BQ}),error:YJ({},I,{value:vQ}),group:YJ({},I,{value:mZ}),groupCollapsed:YJ({},I,{value:cQ}),groupEnd:YJ({},I,{value:$Q})})}if(_J<0)g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var f7=CJ.ReactCurrentDispatcher,v7;function ZZ(I,v,l){{if(v7===void 0)try{throw Error()}catch(HJ){var FJ=HJ.stack.trim().match(/\n( *(at )?)/);v7=FJ&&FJ[1]||""}return`
|
|
156
156
|
`+v7+I}}var X7=!1,PZ;{var I7=typeof WeakMap==="function"?WeakMap:Map;PZ=new I7}function bQ(I,v){if(!I||X7)return"";{var l=PZ.get(I);if(l!==void 0)return l}var FJ;X7=!0;var HJ=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var lJ;lJ=f7.current,f7.current=null,cZ();try{if(v){var hJ=function(){throw Error()};if(Object.defineProperty(hJ.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(hJ,[])}catch(YZ){FJ=YZ}Reflect.construct(I,[],hJ)}else{try{hJ.call()}catch(YZ){FJ=YZ}I.call(hJ.prototype)}}else{try{throw Error()}catch(YZ){FJ=YZ}I()}}catch(YZ){if(YZ&&FJ&&typeof YZ.stack==="string"){var kJ=YZ.stack.split(`
|
|
157
157
|
`),oJ=FJ.stack.split(`
|
|
158
|
-
`),IQ=kJ.length-1,
|
|
159
|
-
`+kJ[IQ].replace(" at new "," at ");if(I.displayName&&OZ.includes("<anonymous>"))OZ=OZ.replace("<anonymous>",I.displayName);if(typeof I==="function")PZ.set(I,OZ);return OZ}while(IQ>=1&&
|
|
158
|
+
`),IQ=kJ.length-1,VQ=oJ.length-1;while(IQ>=1&&VQ>=0&&kJ[IQ]!==oJ[VQ])VQ--;for(;IQ>=1&&VQ>=0;IQ--,VQ--)if(kJ[IQ]!==oJ[VQ]){if(IQ!==1||VQ!==1)do if(IQ--,VQ--,VQ<0||kJ[IQ]!==oJ[VQ]){var OZ=`
|
|
159
|
+
`+kJ[IQ].replace(" at new "," at ");if(I.displayName&&OZ.includes("<anonymous>"))OZ=OZ.replace("<anonymous>",I.displayName);if(typeof I==="function")PZ.set(I,OZ);return OZ}while(IQ>=1&&VQ>=0);break}}}finally{X7=!1,f7.current=lJ,Z7(),Error.prepareStackTrace=HJ}var $8=I?I.displayName||I.name:"",c7=$8?ZZ($8):"";if(typeof I==="function")PZ.set(I,c7);return c7}function Y7(I,v,l){return bQ(I,!1)}function j7(I){var v=I.prototype;return!!(v&&v.isReactComponent)}function pQ(I,v,l){if(I==null)return"";if(typeof I==="function")return bQ(I,j7(I));if(typeof I==="string")return ZZ(I);switch(I){case b:return ZZ("Suspense");case T:return ZZ("SuspenseList")}if(typeof I==="object")switch(I.$$typeof){case j:return Y7(I.render);case y:return pQ(I.type,v,l);case k:{var FJ=I,HJ=FJ._payload,lJ=FJ._init;try{return pQ(lJ(HJ),v,l)}catch(hJ){}}}return""}var SQ=Object.prototype.hasOwnProperty,pZ={},u7=CJ.ReactDebugCurrentFrame;function XZ(I){if(I){var v=I._owner,l=pQ(I.type,I._source,v?v.type:null);u7.setExtraStackFrame(l)}else u7.setExtraStackFrame(null)}function P7(I,v,l,FJ,HJ){{var lJ=Function.call.bind(SQ);for(var hJ in I)if(lJ(I,hJ)){var kJ=void 0;try{if(typeof I[hJ]!=="function"){var oJ=Error((FJ||"React class")+": "+l+" type `"+hJ+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[hJ]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oJ.name="Invariant Violation",oJ}kJ=I[hJ](v,hJ,FJ,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(IQ){kJ=IQ}if(kJ&&!(kJ instanceof Error))XZ(HJ),g("%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).",FJ||"React class",l,hJ,typeof kJ),XZ(null);if(kJ instanceof Error&&!(kJ.message in pZ))pZ[kJ.message]=!0,XZ(HJ),g("Failed %s type: %s",l,kJ.message),XZ(null)}}}var qX=Array.isArray;function G7(I){return qX(I)}function K7(I){{var v=typeof Symbol==="function"&&Symbol.toStringTag,l=v&&I[Symbol.toStringTag]||I.constructor.name||"Object";return l}}function sQ(I){try{return N7(I),!1}catch(v){return!0}}function N7(I){return""+I}function NZ(I){if(sQ(I))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",K7(I)),N7(I)}var $Z=CJ.ReactCurrentOwner,K8={key:!0,ref:!0,__self:!0,__source:!0},U8,g7,U7;U7={};function n(I){if(SQ.call(I,"ref")){var v=Object.getOwnPropertyDescriptor(I,"ref").get;if(v&&v.isReactWarning)return!1}return I.ref!==void 0}function WJ(I){if(SQ.call(I,"key")){var v=Object.getOwnPropertyDescriptor(I,"key").get;if(v&&v.isReactWarning)return!1}return I.key!==void 0}function RJ(I,v){if(typeof I.ref==="string"&&$Z.current&&v&&$Z.current.stateNode!==v){var l=JJ($Z.current.type);if(!U7[l])g('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',JJ($Z.current.type),I.ref),U7[l]=!0}}function JQ(I,v){{var l=function(){if(!U8)U8=!0,g("%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)",v)};l.isReactWarning=!0,Object.defineProperty(I,"key",{get:l,configurable:!0})}}function OQ(I,v){{var l=function(){if(!g7)g7=!0,g("%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)",v)};l.isReactWarning=!0,Object.defineProperty(I,"ref",{get:l,configurable:!0})}}var lQ=function(I,v,l,FJ,HJ,lJ,hJ){var kJ={$$typeof:Z,type:I,key:v,ref:l,props:hJ,_owner:lJ};if(kJ._store={},Object.defineProperty(kJ._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(kJ,"_self",{configurable:!1,enumerable:!1,writable:!1,value:FJ}),Object.defineProperty(kJ,"_source",{configurable:!1,enumerable:!1,writable:!1,value:HJ}),Object.freeze)Object.freeze(kJ.props),Object.freeze(kJ);return kJ};function AQ(I,v,l,FJ,HJ){{var lJ,hJ={},kJ=null,oJ=null;if(l!==void 0)NZ(l),kJ=""+l;if(WJ(v))NZ(v.key),kJ=""+v.key;if(n(v))oJ=v.ref,RJ(v,HJ);for(lJ in v)if(SQ.call(v,lJ)&&!K8.hasOwnProperty(lJ))hJ[lJ]=v[lJ];if(I&&I.defaultProps){var IQ=I.defaultProps;for(lJ in IQ)if(hJ[lJ]===void 0)hJ[lJ]=IQ[lJ]}if(kJ||oJ){var VQ=typeof I==="function"?I.displayName||I.name||"Unknown":I;if(kJ)JQ(hJ,VQ);if(oJ)OQ(hJ,VQ)}return lQ(I,kJ,oJ,HJ,FJ,$Z.current,hJ)}}var{ReactCurrentOwner:wZ,ReactDebugCurrentFrame:cJ}=CJ;function nJ(I){if(I){var v=I._owner,l=pQ(I.type,I._source,v?v.type:null);cJ.setExtraStackFrame(l)}else cJ.setExtraStackFrame(null)}var _8=!1;function w7(I){return typeof I==="object"&&I!==null&&I.$$typeof===Z}function zX(){{if(wZ.current){var I=JJ(wZ.current.type);if(I)return`
|
|
160
160
|
|
|
161
161
|
Check the render method of \``+I+"`."}return""}}function U6(I){{if(I!==void 0){var v=I.fileName.replace(/^.*[\\\/]/,""),l=I.lineNumber;return`
|
|
162
162
|
|
|
163
163
|
Check your code at `+v+":"+l+"."}return""}}var m9={};function c9(I){{var v=zX();if(!v){var l=typeof I==="string"?I:I.displayName||I.name;if(l)v=`
|
|
164
164
|
|
|
165
|
-
Check the top-level render call using <`+l+">."}return v}}function tX(I,v){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var l=c9(v);if(m9[l])return;m9[l]=!0;var FJ="";if(I&&I._owner&&I._owner!==wZ.current)FJ=" It was passed a child from "+JJ(I._owner.type)+".";
|
|
165
|
+
Check the top-level render call using <`+l+">."}return v}}function tX(I,v){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var l=c9(v);if(m9[l])return;m9[l]=!0;var FJ="";if(I&&I._owner&&I._owner!==wZ.current)FJ=" It was passed a child from "+JJ(I._owner.type)+".";nJ(I),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,FJ),nJ(null)}}function q8(I,v){{if(typeof I!=="object")return;if(G7(I))for(var l=0;l<I.length;l++){var FJ=I[l];if(w7(FJ))tX(FJ,v)}else if(w7(I)){if(I._store)I._store.validated=!0}else if(I){var HJ=bJ(I);if(typeof HJ==="function"){if(HJ!==I.entries){var lJ=HJ.call(I),hJ;while(!(hJ=lJ.next()).done)if(w7(hJ.value))tX(hJ.value,v)}}}}}function $X(I){{var v=I.type;if(v===null||v===void 0||typeof v==="string")return;var l;if(typeof v==="function")l=v.propTypes;else if(typeof v==="object"&&(v.$$typeof===j||v.$$typeof===y))l=v.propTypes;else return;if(l){var FJ=JJ(v);P7(l,I.props,"prop",FJ,I)}else if(v.PropTypes!==void 0&&!_8){_8=!0;var HJ=JJ(v);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",HJ||"Unknown")}if(typeof v.getDefaultProps==="function"&&!v.getDefaultProps.isReactClassApproved)g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function OX(I){{var v=Object.keys(I.props);for(var l=0;l<v.length;l++){var FJ=v[l];if(FJ!=="children"&&FJ!=="key"){nJ(I),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",FJ),nJ(null);break}}if(I.ref!==null)nJ(I),g("Invalid attribute `ref` supplied to `React.Fragment`."),nJ(null)}}var d7={};function m7(I,v,l,FJ,HJ,lJ){{var hJ=i(I);if(!hJ){var kJ="";if(I===void 0||typeof I==="object"&&I!==null&&Object.keys(I).length===0)kJ+=" 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 oJ=U6(HJ);if(oJ)kJ+=oJ;else kJ+=zX();var IQ;if(I===null)IQ="null";else if(G7(I))IQ="array";else if(I!==void 0&&I.$$typeof===Z)IQ="<"+(JJ(I.type)||"Unknown")+" />",kJ=" Did you accidentally export a JSX literal instead of a component?";else IQ=typeof I;g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",IQ,kJ)}var VQ=AQ(I,v,l,HJ,lJ);if(VQ==null)return VQ;if(hJ){var OZ=v.children;if(OZ!==void 0)if(FJ)if(G7(OZ)){for(var $8=0;$8<OZ.length;$8++)q8(OZ[$8],I);if(Object.freeze)Object.freeze(OZ)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else q8(OZ,I)}if(SQ.call(v,"key")){var c7=JJ(I),YZ=Object.keys(v).filter(function(p7){return p7!=="key"}),LX=YZ.length>0?"{key: someKey, "+YZ.join(": ..., ")+": ...}":"{key: someKey}";if(!d7[c7+LX]){var q6=YZ.length>0?"{"+YZ.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
|
|
166
166
|
let props = %s;
|
|
167
167
|
<%s {...props} />
|
|
168
168
|
React keys must be passed directly to JSX without using spread:
|
|
169
169
|
let props = %s;
|
|
170
|
-
<%s key={someKey} {...props} />`,LX,c7,q6,c7),d7[c7+LX]=!0}}if(I===K)OX(RQ);else $X(RQ);return RQ}}var z8=m7;Q_.Fragment=K,Q_.jsxDEV=z8})()});class c1{_handlers=new Map;on(Z,Y){if(!this._handlers.has(Z))this._handlers.set(Z,new Set);return this._handlers.get(Z).add(Y),()=>this.off(Z,Y)}once(Z,Y){let K=(z)=>{this.off(Z,K),Y(z)};return this.on(Z,K)}off(Z,Y){let K=this._handlers.get(Z);if(K)K.delete(Y)}emit(Z){let Y=this._handlers.get(Z.type);if(!Y)return;for(let K of Y)try{K(Z)}catch(z){console.error(`[EventEmitter] Handler error for ${Z.type}:`,z)}}removeAllListeners(Z){if(Z)this._handlers.delete(Z);else this._handlers.clear()}listenerCount(Z){return this._handlers.get(Z)?.size??0}}class f5{_definitions;_values;_listeners;_proxy;constructor(Z,Y){this._definitions=Z,this._listeners=new Set,this._values={};for(let[K,z]of Object.entries(Z))this._values[K]=z.value;if(Y){for(let[K,z]of Object.entries(Y))if(K in this._definitions)this._values[K]=this._validate(K,z)}this._proxy=this._createProxy()}_createProxy(){let Z=this;return new Proxy(this._values,{get(Y,K){return Y[K]},set(Y,K,z){if(!(K in Z._definitions))return console.warn(`[ParamStore] Unknown parameter: ${K}`),!1;let $=Z._validate(K,z),F=Y[K];if($!==F)Y[K]=$,Z._notify(K,$,F);return!0},has(Y,K){return K in Y},ownKeys(Y){return Object.keys(Y)},getOwnPropertyDescriptor(Y,K){if(K in Y)return{enumerable:!0,configurable:!0,value:Y[K]};return}})}_validate(Z,Y){let K=this._definitions[Z];if(!K)return Y;switch(K.type){case"number":{let z=typeof Y==="number"?Y:parseFloat(String(Y));if(isNaN(z))z=K.value;if(K.min!==void 0)z=Math.max(K.min,z);if(K.max!==void 0)z=Math.min(K.max,z);if(K.step!==void 0)z=Math.round(z/K.step)*K.step;return z}case"color":{let z=String(Y);if(/^#[0-9A-Fa-f]{6}$/.test(z))return z;if(/^#[0-9A-Fa-f]{3}$/.test(z))return z;if(/^#[0-9A-Fa-f]{8}$/.test(z))return z;if(/^rgb\(/.test(z))return z;if(/^rgba\(/.test(z))return z;if(/^hsl\(/.test(z))return z;if(/^hsla\(/.test(z))return z;return K.value}case"boolean":if(typeof Y==="boolean")return Y;if(Y==="true"||Y==="1")return!0;if(Y==="false"||Y==="0")return!1;return Boolean(Y);case"string":return String(Y);case"select":{let z=String(Y);return(K.options||[]).some((B)=>typeof B==="object"?B.value===z:B===z)?z:K.value}case"point2d":{if(typeof Y==="object"&&Y!==null&&"x"in Y&&"y"in Y)return{x:Number(Y.x),y:Number(Y.y)};return K.value}case"point3d":{if(typeof Y==="object"&&Y!==null&&"x"in Y&&"y"in Y&&"z"in Y)return{x:Number(Y.x),y:Number(Y.y),z:Number(Y.z)};return K.value}default:return Y}}_notify(Z,Y,K){for(let z of this._listeners)try{z(Z,Y,K)}catch($){console.error("[ParamStore] Listener error:",$)}}getProxy(){return this._proxy}getSnapshot(){return{...this._values}}getDefinitions(){return{...this._definitions}}set(Z,Y){this._proxy[Z]=Y}setMultiple(Z){for(let[Y,K]of Object.entries(Z))this._proxy[Y]=K}reset(){for(let[Z,Y]of Object.entries(this._definitions))this._proxy[Z]=Y.value}subscribe(Z){return this._listeners.add(Z),()=>this._listeners.delete(Z)}addDefinition(Z,Y){this._definitions[Z]=Y,this._values[Z]=Y.value}}class v5{_byName=new Map;_byId=new Map;_onRegister=new Set;_onUnregister=new Set;register(Z,Y,K){if(this._byName.has(Z))this.unregister(Z);let z=this._generateId(),$={name:Z,id:z,object:Y,metadata:K};this._byName.set(Z,$),this._byId.set(z,$);for(let F of this._onRegister)try{F(Z,z,Y)}catch(B){console.error("[ObjectRegistry] onRegister callback error:",B)}return z}unregister(Z){let Y=this._byName.get(Z);if(!Y)return!1;this._byName.delete(Z),this._byId.delete(Y.id);for(let K of this._onUnregister)try{K(Z)}catch(z){console.error("[ObjectRegistry] onUnregister callback error:",z)}return!0}findByName(Z){return this._byName.get(Z)?.object}findById(Z){return this._byId.get(Z)?.object}getInfo(Z){return this._byName.get(Z)}has(Z){return this._byName.has(Z)}getNames(){return Array.from(this._byName.keys())}getAll(){let Z=new Map;for(let[Y,K]of this._byName)Z.set(Y,K.object);return Z}query(Z){let Y=[];for(let K of this._byName.values())if(Z(K))Y.push(K);return Y}findByType(Z){return this.query((Y)=>Y.metadata?.type===Z).map((Y)=>Y.object)}clear(){let Z=Array.from(this._byName.keys());for(let Y of Z)this.unregister(Y)}onRegister(Z){return this._onRegister.add(Z),()=>this._onRegister.delete(Z)}onUnregister(Z){return this._onUnregister.add(Z),()=>this._onUnregister.delete(Z)}get size(){return this._byName.size}_generateId(){return`obj_${Date.now()}_${Math.random().toString(36).slice(2,9)}`}}class u5{_isReady=!1;_isPlaying=!1;_isDestroyed=!1;_currentFrame=0;_paramStore;_events;_objects;_mount;_frameRate;_filename="capture";_cleanups=[];_userCleanup;_animationFrameId;_lastFrameTime=0;_resizeObserver;_captureHandler;constructor(Z){if(this._mount=Z.mount,this._frameRate=Z.frameRate??60,Z.background)this._mount.style.background=Z.background;this._paramStore=new f5(Z.paramDefs??{},Z.initialParams),this._events=new c1,this._objects=new v5,this._paramStore.subscribe((Y,K,z)=>{this._events.emit({type:"paramChange",timestamp:Date.now(),key:Y,value:K,previousValue:z})}),this._setupResizeObserver(),this._runSetup(Z.setup,Z.autoplay??!0)}get isReady(){return this._isReady}get isPlaying(){return this._isPlaying}get isDestroyed(){return this._isDestroyed}get currentFrame(){return this._currentFrame}get mount(){return this._mount}get params(){return this._paramStore.getProxy()}get events(){return this._events}get objects(){return this._objects}setParam(Z,Y){this._paramStore.set(Z,Y)}setParams(Z){this._paramStore.setMultiple(Z)}getParams(){return this._paramStore.getSnapshot()}getParamDefs(){return this._paramStore.getDefinitions()}resetParams(){this._paramStore.reset()}registerObject(Z,Y,K){return this._objects.register(Z,Y,K)}findObjectByName(Z){return this._objects.findByName(Z)}findObjectById(Z){return this._objects.findById(Z)}getAllObjects(){return this._objects.getAll()}play(){if(this._isPlaying||this._isDestroyed)return;this._isPlaying=!0,this._lastFrameTime=performance.now(),this._tick(),this._events.emit({type:"play",timestamp:Date.now()})}pause(){if(!this._isPlaying)return;if(this._isPlaying=!1,this._animationFrameId)cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0;this._events.emit({type:"pause",timestamp:Date.now()})}toggle(){if(this._isPlaying)this.pause();else this.play()}on(Z,Y){return this._events.on(Z,Y)}once(Z,Y){return this._events.once(Z,Y)}off(Z,Y){this._events.off(Z,Y)}async captureImage(Z="png"){if(this._captureHandler)return this._captureHandler(Z);let Y=this._mount.querySelector("canvas");if(!Y)return console.warn("[Experience] No canvas found for capture"),null;return new Promise((K)=>{let z=`image/${Z}`,$=Z==="jpeg"?0.92:void 0;Y.toBlob((F)=>K(F),z,$)})}getFilename(){return this._filename}addCleanup(Z){if(typeof Z==="function")this._cleanups.push(Z)}destroy(){if(this._isDestroyed)return;if(this._isDestroyed=!0,this.pause(),this._userCleanup)try{this._userCleanup()}catch(Z){console.error("[Experience] User cleanup error:",Z)}while(this._cleanups.length>0){let Z=this._cleanups.pop();if(Z)try{Z()}catch(Y){console.error("[Experience] Cleanup error:",Y)}}this._resizeObserver?.disconnect(),this._objects.clear(),this._events.removeAllListeners(),this._events.emit({type:"destroyed",timestamp:Date.now()})}async _runSetup(Z,Y){try{let K=this._createContext(),z=await Z(K);if(typeof z==="function")this._userCleanup=z;if(this._isReady=!0,this._events.emit({type:"ready",timestamp:Date.now()}),Y)this.play()}catch(K){console.error("[Experience] Setup error:",K),this._events.emit({type:"error",timestamp:Date.now(),error:K instanceof Error?K:Error(String(K))})}}_createContext(){return{mount:this._mount,params:this._paramStore.getProxy(),exports:this._createExportsApi(),environment:this._createEnvironmentApi(),registerObject:(Z,Y,K)=>this._objects.register(Z,Y,K),findObjectByName:(Z)=>this._objects.findByName(Z),experience:this}}_createExportsApi(){return{captureImage:(Z)=>this.captureImage(Z),setFilename:(Z)=>{this._filename=Z},registerCaptureHandler:(Z)=>{this._captureHandler=Z}}}_createEnvironmentApi(){return{window,document,onResize:(Z)=>{let Y=()=>{Z(this._mount.clientWidth,this._mount.clientHeight)};Y();let K=new ResizeObserver(Y);K.observe(this._mount);let z=()=>K.disconnect();return this._cleanups.push(z),z},addCleanup:(Z)=>this.addCleanup(Z)}}_setupResizeObserver(){this._resizeObserver=new ResizeObserver((Z)=>{for(let Y of Z){let{width:K,height:z}=Y.contentRect;this._events.emit({type:"resize",timestamp:Date.now(),width:K,height:z})}}),this._resizeObserver.observe(this._mount)}_tick(){if(!this._isPlaying)return;let Z=performance.now(),Y=Z-this._lastFrameTime,K=1000/this._frameRate;if(Y>=K)this._currentFrame++,this._lastFrameTime=Z-Y%K,this._events.emit({type:"frame",timestamp:Date.now(),frame:this._currentFrame,deltaTime:Y});this._animationFrameId=requestAnimationFrame(()=>this._tick())}}class g5{_element;_events;_isConnected=!1;_isDestroyed=!1;_boundReadyHandler;_boundParamChangeHandler;constructor(Z){let Y=Z instanceof HTMLElement?{element:Z}:Z;if(this._element=Y.element,this._events=new c1,this._boundReadyHandler=this._handleReady.bind(this),this._boundParamChangeHandler=this._handleParamChange.bind(this),Y.autoConnect!==!1){if(this.connect(),Y.initialParams)this.setParams(Y.initialParams)}}connect(){if(this._isConnected||this._isDestroyed)return;this._element.addEventListener("ready",this._boundReadyHandler),this._element.addEventListener("paramchange",this._boundParamChangeHandler),this._isConnected=!0,this._events.emit({type:"connected",timestamp:Date.now()})}disconnect(){if(!this._isConnected)return;this._element.removeEventListener("ready",this._boundReadyHandler),this._element.removeEventListener("paramchange",this._boundParamChangeHandler),this._isConnected=!1,this._events.emit({type:"disconnected",timestamp:Date.now()})}get element(){return this._element}get isConnected(){return this._isConnected}get isDestroyed(){return this._isDestroyed}setParam(Z,Y){this._element.setParam(Z,Y)}setParams(Z){this._element.setParams(Z)}getParams(){return this._element.getParams()}getParamDefs(){return this._element.getParamDefs()}resetParams(){let Z=this.getParamDefs(),Y={};for(let[K,z]of Object.entries(Z))Y[K]=z.value;this.setParams(Y)}on(Z,Y){return this._events.on(Z,Y)}once(Z,Y){return this._events.once(Z,Y)}off(Z,Y){this._events.off(Z,Y)}destroy(){if(this._isDestroyed)return;this.disconnect(),this._events.removeAllListeners(),this._isDestroyed=!0,this._events.emit({type:"destroyed",timestamp:Date.now()})}_handleReady(Z){this._events.emit({type:"ready",timestamp:Date.now()})}_handleParamChange(Z){let Y=Z;this._events.emit({type:"paramChange",timestamp:Date.now(),key:Y.detail.key,value:Y.detail.value,previousValue:Y.detail.previousValue})}static fromSelector(Z,Y){let K=document.querySelector(Z);if(!K)throw Error(`[ExperienceController] Element not found: ${Z}`);return new g5({element:K,initialParams:Y})}static async whenDefined(Z,Y){await customElements.whenDefined(Z);let K=document.querySelector(Z);if(!K)K=document.createElement(Z);return new g5({element:K,initialParams:Y})}}/*! Tweakpane 4.0.5 (c) 2016 cocopon, licensed under the MIT license. */function J7(Z){return Z}function MQ(Z){return Z===null||Z===void 0}function fz(Z){return Z!==null&&typeof Z==="object"}function _z(Z){return Z!==null&&typeof Z==="object"}function oR(Z,Y){if(Z.length!==Y.length)return!1;for(let K=0;K<Z.length;K++)if(Z[K]!==Y[K])return!1;return!0}function f9(Z,Y){return Array.from(new Set([...Object.keys(Z),...Object.keys(Y)])).reduce((z,$)=>{let F=Z[$],B=Y[$];return _z(F)&&_z(B)?Object.assign(Object.assign({},z),{[$]:f9(F,B)}):Object.assign(Object.assign({},z),{[$]:$ in Y?B:F})},{})}function vz(Z){if(!fz(Z))return!1;return"target"in Z}var tR={alreadydisposed:()=>"View has been already disposed",invalidparams:(Z)=>`Invalid parameters for '${Z.name}'`,nomatchingcontroller:(Z)=>`No matching controller for '${Z.key}'`,nomatchingview:(Z)=>`No matching view for '${JSON.stringify(Z.params)}'`,notbindable:()=>"Value is not bindable",notcompatible:(Z)=>`Not compatible with plugin '${Z.id}'`,propertynotfound:(Z)=>`Property '${Z.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class hQ{static alreadyDisposed(){return new hQ({type:"alreadydisposed"})}static notBindable(){return new hQ({type:"notbindable"})}static notCompatible(Z,Y){return new hQ({type:"notcompatible",context:{id:`${Z}.${Y}`}})}static propertyNotFound(Z){return new hQ({type:"propertynotfound",context:{name:Z}})}static shouldNeverHappen(){return new hQ({type:"shouldneverhappen"})}constructor(Z){var Y;this.message=(Y=tR[Z.type](J7(Z.context)))!==null&&Y!==void 0?Y:"Unexpected error",this.name=this.constructor.name,this.stack=Error(this.message).stack,this.type=Z.type}toString(){return this.message}}class p5{constructor(Z,Y){this.obj_=Z,this.key=Y}static isBindable(Z){if(Z===null)return!1;if(typeof Z!=="object"&&typeof Z!=="function")return!1;return!0}read(){return this.obj_[this.key]}write(Z){this.obj_[this.key]=Z}writeProperty(Z,Y){let K=this.read();if(!p5.isBindable(K))throw hQ.notBindable();if(!(Z in K))throw hQ.propertyNotFound(Z);K[Z]=Y}}class fQ{constructor(){this.observers_={}}on(Z,Y,K){var z;let $=this.observers_[Z];if(!$)$=this.observers_[Z]=[];return $.push({handler:Y,key:(z=K===null||K===void 0?void 0:K.key)!==null&&z!==void 0?z:Y}),this}off(Z,Y){let K=this.observers_[Z];if(K)this.observers_[Z]=K.filter((z)=>{return z.key!==Y});return this}emit(Z,Y){let K=this.observers_[Z];if(!K)return;K.forEach((z)=>{z.handler(Y)})}}class lW{constructor(Z,Y){var K;this.constraint_=Y===null||Y===void 0?void 0:Y.constraint,this.equals_=(K=Y===null||Y===void 0?void 0:Y.equals)!==null&&K!==void 0?K:(z,$)=>z===$,this.emitter=new fQ,this.rawValue_=Z}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(Z){this.setRawValue(Z,{forceEmit:!1,last:!0})}setRawValue(Z,Y){let K=Y!==null&&Y!==void 0?Y:{forceEmit:!1,last:!0},z=this.constraint_?this.constraint_.constrain(Z):Z,$=this.rawValue_;if(!!this.equals_($,z)&&!K.forceEmit)return;this.emitter.emit("beforechange",{sender:this}),this.rawValue_=z,this.emitter.emit("change",{options:K,previousRawValue:$,rawValue:z,sender:this})}}class iW{constructor(Z){this.emitter=new fQ,this.value_=Z}get rawValue(){return this.value_}set rawValue(Z){this.setRawValue(Z,{forceEmit:!1,last:!0})}setRawValue(Z,Y){let K=Y!==null&&Y!==void 0?Y:{forceEmit:!1,last:!0},z=this.value_;if(z===Z&&!K.forceEmit)return;this.emitter.emit("beforechange",{sender:this}),this.value_=Z,this.emitter.emit("change",{options:K,previousRawValue:z,rawValue:this.value_,sender:this})}}class nW{constructor(Z){this.emitter=new fQ,this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.value_=Z,this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_)}get rawValue(){return this.value_.rawValue}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function VQ(Z,Y){let K=Y===null||Y===void 0?void 0:Y.constraint,z=Y===null||Y===void 0?void 0:Y.equals;if(!K&&!z)return new iW(Z);return new lW(Z,Y)}function aR(Z){return[new nW(Z),(Y,K)=>{Z.setRawValue(Y,K)}]}class vJ{constructor(Z){this.emitter=new fQ,this.valMap_=Z;for(let Y in this.valMap_)this.valMap_[Y].emitter.on("change",()=>{this.emitter.emit("change",{key:Y,sender:this})})}static createCore(Z){return Object.keys(Z).reduce((K,z)=>{return Object.assign(K,{[z]:VQ(Z[z])})},{})}static fromObject(Z){let Y=this.createCore(Z);return new vJ(Y)}get(Z){return this.valMap_[Z].rawValue}set(Z,Y){this.valMap_[Z].rawValue=Y}value(Z){return this.valMap_[Z]}}class r1{constructor(Z){this.values=vJ.fromObject({max:Z.max,min:Z.min})}constrain(Z){let Y=this.values.get("max"),K=this.values.get("min");return Math.min(Math.max(Z,K),Y)}}class rW{constructor(Z){this.values=vJ.fromObject({max:Z.max,min:Z.min})}constrain(Z){let Y=this.values.get("max"),K=this.values.get("min"),z=Z;if(!MQ(K))z=Math.max(z,K);if(!MQ(Y))z=Math.min(z,Y);return z}}class oW{constructor(Z,Y=0){this.step=Z,this.origin=Y}constrain(Z){let Y=this.origin%this.step,K=Math.round((Z-Y)/this.step);return Y+K*this.step}}class tW{constructor(Z){this.text=Z}evaluate(){return Number(this.text)}toString(){return this.text}}var eR={"**":(Z,Y)=>Math.pow(Z,Y),"*":(Z,Y)=>Z*Y,"/":(Z,Y)=>Z/Y,"%":(Z,Y)=>Z%Y,"+":(Z,Y)=>Z+Y,"-":(Z,Y)=>Z-Y,"<<":(Z,Y)=>Z<<Y,">>":(Z,Y)=>Z>>Y,">>>":(Z,Y)=>Z>>>Y,"&":(Z,Y)=>Z&Y,"^":(Z,Y)=>Z^Y,"|":(Z,Y)=>Z|Y};class aW{constructor(Z,Y,K){this.left=Y,this.operator=Z,this.right=K}evaluate(){let Z=eR[this.operator];if(!Z)throw Error(`unexpected binary operator: '${this.operator}`);return Z(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}var JV={"+":(Z)=>Z,"-":(Z)=>-Z,"~":(Z)=>~Z};class eW{constructor(Z,Y){this.operator=Z,this.expression=Y}evaluate(){let Z=JV[this.operator];if(!Z)throw Error(`unexpected unary operator: '${this.operator}`);return Z(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function uz(Z){return(Y,K)=>{for(let z=0;z<Z.length;z++){let $=Z[z](Y,K);if($!=="")return $}return""}}function X4(Z,Y){var K;let z=Z.substr(Y).match(/^\s+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function QV(Z,Y){let K=Z.substr(Y,1);return K.match(/^[1-9]$/)?K:""}function Y4(Z,Y){var K;let z=Z.substr(Y).match(/^[0-9]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function ZV(Z,Y){let K=Y4(Z,Y);if(K!=="")return K;let z=Z.substr(Y,1);if(Y+=1,z!=="-"&&z!=="+")return"";let $=Y4(Z,Y);if($==="")return"";return z+$}function gz(Z,Y){let K=Z.substr(Y,1);if(Y+=1,K.toLowerCase()!=="e")return"";let z=ZV(Z,Y);if(z==="")return"";return K+z}function JD(Z,Y){let K=Z.substr(Y,1);if(K==="0")return K;let z=QV(Z,Y);if(Y+=z.length,z==="")return"";return z+Y4(Z,Y)}function XV(Z,Y){let K=JD(Z,Y);if(Y+=K.length,K==="")return"";let z=Z.substr(Y,1);if(Y+=z.length,z!==".")return"";let $=Y4(Z,Y);return Y+=$.length,K+z+$+gz(Z,Y)}function YV(Z,Y){let K=Z.substr(Y,1);if(Y+=K.length,K!==".")return"";let z=Y4(Z,Y);if(Y+=z.length,z==="")return"";return K+z+gz(Z,Y)}function GV(Z,Y){let K=JD(Z,Y);if(Y+=K.length,K==="")return"";return K+gz(Z,Y)}var KV=uz([XV,YV,GV]);function UV(Z,Y){var K;let z=Z.substr(Y).match(/^[01]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function qV(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0b")return"";let z=UV(Z,Y);if(z==="")return"";return K+z}function zV(Z,Y){var K;let z=Z.substr(Y).match(/^[0-7]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function $V(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0o")return"";let z=zV(Z,Y);if(z==="")return"";return K+z}function OV(Z,Y){var K;let z=Z.substr(Y).match(/^[0-9a-f]+/i);return(K=z&&z[0])!==null&&K!==void 0?K:""}function LV(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0x")return"";let z=OV(Z,Y);if(z==="")return"";return K+z}var WV=uz([qV,$V,LV]),DV=uz([WV,KV]);function HV(Z,Y){let K=DV(Z,Y);if(Y+=K.length,K==="")return null;return{evaluable:new tW(K),cursor:Y}}function MV(Z,Y){let K=Z.substr(Y,1);if(Y+=K.length,K!=="(")return null;let z=ZD(Z,Y);if(!z)return null;Y=z.cursor,Y+=X4(Z,Y).length;let $=Z.substr(Y,1);if(Y+=$.length,$!==")")return null;return{evaluable:z.evaluable,cursor:Y}}function FV(Z,Y){var K;return(K=HV(Z,Y))!==null&&K!==void 0?K:MV(Z,Y)}function QD(Z,Y){let K=FV(Z,Y);if(K)return K;let z=Z.substr(Y,1);if(Y+=z.length,z!=="+"&&z!=="-"&&z!=="~")return null;let $=QD(Z,Y);if(!$)return null;return Y=$.cursor,{cursor:Y,evaluable:new eW(z,$.evaluable)}}function BV(Z,Y,K){K+=X4(Y,K).length;let z=Z.filter(($)=>Y.startsWith($,K))[0];if(!z)return null;return K+=z.length,K+=X4(Y,K).length,{cursor:K,operator:z}}function AV(Z,Y){return(K,z)=>{let $=Z(K,z);if(!$)return null;z=$.cursor;let F=$.evaluable;for(;;){let B=BV(Y,K,z);if(!B)break;z=B.cursor;let j=Z(K,z);if(!j)return null;z=j.cursor,F=new aW(B.operator,F,j.evaluable)}return F?{cursor:z,evaluable:F}:null}}var IV=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((Z,Y)=>{return AV(Z,Y)},QD);function ZD(Z,Y){return Y+=X4(Z,Y).length,IV(Z,Y)}function jV(Z){let Y=ZD(Z,0);if(!Y)return null;if(Y.cursor+X4(Z,Y.cursor).length!==Z.length)return null;return Y.evaluable}function XX(Z){var Y;let K=jV(Z);return(Y=K===null||K===void 0?void 0:K.evaluate())!==null&&Y!==void 0?Y:null}function XD(Z){if(typeof Z==="number")return Z;if(typeof Z==="string"){let Y=XX(Z);if(!MQ(Y))return Y}return 0}function PV(Z){return String(Z)}function eZ(Z){return(Y)=>{return Y.toFixed(Math.max(Math.min(Z,20),0))}}function UQ(Z,Y,K,z,$){let F=(Z-Y)/(K-Y);return z+F*($-z)}function PW(Z){return String(Z.toFixed(10)).split(".")[1].replace(/0+$/,"").length}function QZ(Z,Y,K){return Math.min(Math.max(Z,Y),K)}function YD(Z,Y){return(Z%Y+Y)%Y}function NV(Z,Y){return!MQ(Z.step)?PW(Z.step):Math.max(PW(Y),2)}function GD(Z){var Y;return(Y=Z.step)!==null&&Y!==void 0?Y:1}function KD(Z,Y){var K;let z=Math.abs((K=Z.step)!==null&&K!==void 0?K:Y);return z===0?0.1:Math.pow(10,Math.floor(Math.log10(z))-1)}function UD(Z,Y){if(!MQ(Z.step))return new oW(Z.step,Y);return null}function qD(Z){if(!MQ(Z.max)&&!MQ(Z.min))return new r1({max:Z.max,min:Z.min});if(!MQ(Z.max)||!MQ(Z.min))return new rW({max:Z.max,min:Z.min});return null}function zD(Z,Y){var K,z,$;return{formatter:(K=Z.format)!==null&&K!==void 0?K:eZ(NV(Z,Y)),keyScale:(z=Z.keyScale)!==null&&z!==void 0?z:GD(Z),pointerScale:($=Z.pointerScale)!==null&&$!==void 0?$:KD(Z,Y)}}function $D(Z){return{format:Z.optional.function,keyScale:Z.optional.number,max:Z.optional.number,min:Z.optional.number,pointerScale:Z.optional.number,step:Z.optional.number}}function dz(Z){return{constraint:Z.constraint,textProps:vJ.fromObject(zD(Z.params,Z.initialValue))}}class nX{constructor(Z){this.controller=Z}get element(){return this.controller.view.element}get disabled(){return this.controller.viewProps.get("disabled")}set disabled(Z){this.controller.viewProps.set("disabled",Z)}get hidden(){return this.controller.viewProps.get("hidden")}set hidden(Z){this.controller.viewProps.set("hidden",Z)}dispose(){this.controller.viewProps.set("disposed",!0)}importState(Z){return this.controller.importState(Z)}exportState(){return this.controller.exportState()}}class q4{constructor(Z){this.target=Z}}class o1 extends q4{constructor(Z,Y,K){super(Z);this.value=Y,this.last=K!==null&&K!==void 0?K:!0}}class OD extends q4{constructor(Z,Y){super(Z);this.expanded=Y}}class LD extends q4{constructor(Z,Y){super(Z);this.index=Y}}class WD extends q4{constructor(Z,Y){super(Z);this.native=Y}}class l1 extends nX{constructor(Z){super(Z);this.onValueChange_=this.onValueChange_.bind(this),this.emitter_=new fQ,this.controller.value.emitter.on("change",this.onValueChange_)}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get key(){return this.controller.value.binding.target.key}get tag(){return this.controller.tag}set tag(Z){this.controller.tag=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}refresh(){this.controller.value.fetch()}onValueChange_(Z){let Y=this.controller.value;this.emitter_.emit("change",new o1(this,J7(Y.binding.target.read()),Z.options.last))}}class DD{constructor(Z,Y){this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.binding=Y,this.value_=Z,this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_),this.emitter=new fQ}get rawValue(){return this.value_.rawValue}set rawValue(Z){this.value_.rawValue=Z}setRawValue(Z,Y){this.value_.setRawValue(Z,Y)}fetch(){this.value_.rawValue=this.binding.read()}push(){this.binding.write(this.value_.rawValue)}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.push(),this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function wV(Z){if(!("binding"in Z))return!1;let Y=Z.binding;return vz(Y)&&"read"in Y&&"write"in Y}function RV(Z,Y){let z=Object.keys(Y).reduce(($,F)=>{if($===void 0)return;let B=Y[F],j=B(Z[F]);return j.succeeded?Object.assign(Object.assign({},$),{[F]:j.value}):void 0},{});return J7(z)}function VV(Z,Y){return Z.reduce((K,z)=>{if(K===void 0)return;let $=Y(z);if(!$.succeeded||$.value===void 0)return;return[...K,$.value]},[])}function SV(Z){if(Z===null)return!1;return typeof Z==="object"}function e8(Z){return(Y)=>(K)=>{if(!Y&&K===void 0)return{succeeded:!1,value:void 0};if(Y&&K===void 0)return{succeeded:!0,value:void 0};let z=Z(K);return z!==void 0?{succeeded:!0,value:z}:{succeeded:!1,value:void 0}}}function NW(Z){return{custom:(Y)=>e8(Y)(Z),boolean:e8((Y)=>typeof Y==="boolean"?Y:void 0)(Z),number:e8((Y)=>typeof Y==="number"?Y:void 0)(Z),string:e8((Y)=>typeof Y==="string"?Y:void 0)(Z),function:e8((Y)=>typeof Y==="function"?Y:void 0)(Z),constant:(Y)=>e8((K)=>K===Y?Y:void 0)(Z),raw:e8((Y)=>Y)(Z),object:(Y)=>e8((K)=>{if(!SV(K))return;return RV(K,Y)})(Z),array:(Y)=>e8((K)=>{if(!Array.isArray(K))return;return VV(K,Y)})(Z)}}var kz={optional:NW(!0),required:NW(!1)};function kQ(Z,Y){let K=Y(kz),z=kz.required.object(K)(Z);return z.succeeded?z.value:void 0}function F7(Z,Y,K,z){if(Y&&!Y(Z))return!1;let $=kQ(Z,K);return $?z($):!1}function B7(Z,Y){var K;return f9((K=Z===null||Z===void 0?void 0:Z())!==null&&K!==void 0?K:{},Y)}function h9(Z){return"value"in Z}function HD(Z){if(!fz(Z)||!("binding"in Z))return!1;let Y=Z.binding;return vz(Y)}var R8="http://www.w3.org/2000/svg";function s5(Z){Z.offsetHeight}function TV(Z,Y){let K=Z.style.transition;Z.style.transition="none",Y(),Z.style.transition=K}function mz(Z){return Z.ontouchstart!==void 0}function _V(){return globalThis}function kV(){return J7(_V()).document}function EV(Z){let Y=Z.ownerDocument.defaultView;if(!Y)return null;return"document"in Y?Z.getContext("2d",{willReadFrequently:!0}):null}var CV={check:'<path d="M2 8l4 4l8 -8"/>',dropdown:'<path d="M5 7h6l-3 3 z"/>',p2dpad:'<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'};function o5(Z,Y){let K=Z.createElementNS(R8,"svg");return K.innerHTML=CV[Y],K}function MD(Z,Y,K){Z.insertBefore(Y,Z.children[K])}function cz(Z){if(Z.parentElement)Z.parentElement.removeChild(Z)}function FD(Z){while(Z.children.length>0)Z.removeChild(Z.children[0])}function xV(Z){while(Z.childNodes.length>0)Z.removeChild(Z.childNodes[0])}function BD(Z){if(Z.relatedTarget)return J7(Z.relatedTarget);if("explicitOriginalTarget"in Z)return Z.explicitOriginalTarget;return null}function QX(Z,Y){Z.emitter.on("change",(K)=>{Y(K.rawValue)}),Y(Z.rawValue)}function V8(Z,Y,K){QX(Z.value(Y),K)}var hV="tp";function eJ(Z){return(K,z)=>{return[hV,"-",Z,"v",K?`_${K}`:"",z?`-${z}`:""].join("")}}var e0=eJ("lbl");function bV(Z,Y){let K=Z.createDocumentFragment();return Y.split(`
|
|
171
|
-
`).map(($)=>{return Z.createTextNode($)}).forEach(($,F)=>{if(F>0)K.appendChild(Z.createElement("br"));K.appendChild($)}),K}class pz{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(e0()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(e0("l")),V8(Y.props,"label",($)=>{if(MQ($))this.element.classList.add(e0(void 0,"nol"));else this.element.classList.remove(e0(void 0,"nol")),xV(K),K.appendChild(bV(Z,$))}),this.element.appendChild(K),this.labelElement=K;let z=Z.createElement("div");z.classList.add(e0("v")),this.element.appendChild(z),this.valueElement=z}}class sz{constructor(Z,Y){this.props=Y.props,this.valueController=Y.valueController,this.viewProps=Y.valueController.viewProps,this.view=new pz(Z,{props:Y.props,viewProps:this.viewProps}),this.view.valueElement.appendChild(this.valueController.view.element)}importProps(Z){return F7(Z,null,(Y)=>({label:Y.optional.string}),(Y)=>{return this.props.set("label",Y.label),!0})}exportProps(){return B7(null,{label:this.props.get("label")})}}function yV(){return["veryfirst","first","last","verylast"]}var wW=eJ(""),RW={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class z4{constructor(Z){this.parent_=null,this.blade=Z.blade,this.view=Z.view,this.viewProps=Z.viewProps;let Y=this.view.element;this.blade.value("positions").emitter.on("change",()=>{yV().forEach((K)=>{Y.classList.remove(wW(void 0,RW[K]))}),this.blade.get("positions").forEach((K)=>{Y.classList.add(wW(void 0,RW[K]))})}),this.viewProps.handleDispose(()=>{cz(Y)})}get parent(){return this.parent_}set parent(Z){this.parent_=Z,this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null)}importState(Z){return F7(Z,null,(Y)=>({disabled:Y.required.boolean,hidden:Y.required.boolean}),(Y)=>{return this.viewProps.importState(Y),!0})}exportState(){return B7(null,Object.assign({},this.viewProps.exportState()))}}class iX extends z4{constructor(Z,Y){if(Y.value!==Y.valueController.value)throw hQ.shouldNeverHappen();let K=Y.valueController.viewProps,z=new sz(Z,{blade:Y.blade,props:Y.props,valueController:Y.valueController});super(Object.assign(Object.assign({},Y),{view:new pz(Z,{props:Y.props,viewProps:K}),viewProps:K}));this.labelController=z,this.value=Y.value,this.valueController=Y.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}importState(Z){return F7(Z,(Y)=>{var K,z,$;return super.importState(Y)&&this.labelController.importProps(Y)&&(($=(z=(K=this.valueController).importProps)===null||z===void 0?void 0:z.call(K,Z))!==null&&$!==void 0?$:!0)},(Y)=>({value:Y.optional.raw}),(Y)=>{if(Y.value)this.value.rawValue=Y.value;return!0})}exportState(){var Z,Y,K;return B7(()=>super.exportState(),Object.assign(Object.assign({value:this.value.rawValue},this.labelController.exportProps()),(K=(Y=(Z=this.valueController).exportProps)===null||Y===void 0?void 0:Y.call(Z))!==null&&K!==void 0?K:{}))}}function VW(Z){let Y=Object.assign({},Z);return delete Y.value,Y}class lz extends iX{constructor(Z,Y){super(Z,Y);this.tag=Y.tag}importState(Z){return F7(Z,(Y)=>super.importState(VW(Z)),(Y)=>({tag:Y.optional.string}),(Y)=>{return this.tag=Y.tag,!0})}exportState(){return B7(()=>VW(super.exportState()),{binding:{key:this.value.binding.target.key,value:this.value.binding.target.read()},tag:this.tag})}}function fV(Z){return h9(Z)&&HD(Z.value)}class AD extends lz{importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({binding:Y.required.object({value:Y.required.raw})}),(Y)=>{return this.value.binding.inject(Y.binding.value),this.value.fetch(),!0})}}function vV(Z){return h9(Z)&&wV(Z.value)}function ID(Z,Y){while(Z.length<Y)Z.push(void 0)}function uV(Z){let Y=[];return ID(Y,Z),Y}function gV(Z){let Y=Z.indexOf(void 0);return J7(Y<0?Z:Z.slice(0,Y))}function dV(Z,Y){let K=[...gV(Z),Y];if(K.length>Z.length)K.splice(0,K.length-Z.length);else ID(K,Z.length);return K}class jD{constructor(Z){this.emitter=new fQ,this.onTick_=this.onTick_.bind(this),this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.binding=Z.binding,this.value_=VQ(uV(Z.bufferSize)),this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_),this.ticker=Z.ticker,this.ticker.emitter.on("tick",this.onTick_),this.fetch()}get rawValue(){return this.value_.rawValue}set rawValue(Z){this.value_.rawValue=Z}setRawValue(Z,Y){this.value_.setRawValue(Z,Y)}fetch(){this.value_.rawValue=dV(this.value_.rawValue,this.binding.read())}onTick_(){this.fetch()}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function mV(Z){if(!("binding"in Z))return!1;let Y=Z.binding;return vz(Y)&&"read"in Y&&!("write"in Y)}class PD extends lz{exportState(){return B7(()=>super.exportState(),{binding:{readonly:!0}})}}function cV(Z){return h9(Z)&&mV(Z.value)}class ND extends nX{get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get title(){var Z;return(Z=this.controller.buttonController.props.get("title"))!==null&&Z!==void 0?Z:""}set title(Z){this.controller.buttonController.props.set("title",Z)}on(Z,Y){let K=Y.bind(this);return this.controller.buttonController.emitter.on(Z,($)=>{K(new WD(this,$.nativeEvent))}),this}off(Z,Y){return this.controller.buttonController.emitter.off(Z,Y),this}}function pV(Z,Y,K){if(K)Z.classList.add(Y);else Z.classList.remove(Y)}function t1(Z,Y){return(K)=>{pV(Z,Y,K)}}function iz(Z,Y){QX(Z,(K)=>{Y.textContent=K!==null&&K!==void 0?K:""})}var jz=eJ("btn");class wD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(jz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("button");K.classList.add(jz("b")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.buttonElement=K;let z=Z.createElement("div");z.classList.add(jz("t")),iz(Y.props.value("title"),z),this.buttonElement.appendChild(z)}}class RD{constructor(Z,Y){this.emitter=new fQ,this.onClick_=this.onClick_.bind(this),this.props=Y.props,this.viewProps=Y.viewProps,this.view=new wD(Z,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}importProps(Z){return F7(Z,null,(Y)=>({title:Y.optional.string}),(Y)=>{return this.props.set("title",Y.title),!0})}exportProps(){return B7(null,{title:this.props.get("title")})}onClick_(Z){this.emitter.emit("click",{nativeEvent:Z,sender:this})}}class Ez extends z4{constructor(Z,Y){let K=new RD(Z,{props:Y.buttonProps,viewProps:Y.viewProps}),z=new sz(Z,{blade:Y.blade,props:Y.labelProps,valueController:K});super({blade:Y.blade,view:z.view,viewProps:Y.viewProps});this.buttonController=K,this.labelController=z}importState(Z){return F7(Z,(Y)=>super.importState(Y)&&this.buttonController.importProps(Y)&&this.labelController.importProps(Y),()=>({}),()=>!0)}exportState(){return B7(()=>super.exportState(),Object.assign(Object.assign({},this.buttonController.exportProps()),this.labelController.exportProps()))}}class nz{constructor(Z){let[Y,K]=Z.split("-"),z=Y.split(".");this.major=parseInt(z[0],10),this.minor=parseInt(z[1],10),this.patch=parseInt(z[2],10),this.prerelease=K!==null&&K!==void 0?K:null}toString(){let Z=[this.major,this.minor,this.patch].join(".");return this.prerelease!==null?[Z,this.prerelease].join("-"):Z}}var a1=new nz("2.0.5");function uZ(Z){return Object.assign({core:a1},Z)}var sV=uZ({id:"button",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({title:K.required.string,view:K.required.constant("button"),label:K.optional.string}));return Y?{params:Y}:null},controller(Z){return new Ez(Z.document,{blade:Z.blade,buttonProps:vJ.fromObject({title:Z.params.title}),labelProps:vJ.fromObject({label:Z.params.label}),viewProps:Z.viewProps})},api(Z){if(Z.controller instanceof Ez)return new ND(Z.controller);return null}});function lV(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"button"}))}function iV(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"folder"}))}function nV(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"tab"}))}function rV(Z){if(!fz(Z))return!1;return"refresh"in Z&&typeof Z.refresh==="function"}function oV(Z,Y){if(!p5.isBindable(Z))throw hQ.notBindable();return new p5(Z,Y)}class VD{constructor(Z,Y){this.onRackValueChange_=this.onRackValueChange_.bind(this),this.controller_=Z,this.emitter_=new fQ,this.pool_=Y,this.controller_.rack.emitter.on("valuechange",this.onRackValueChange_)}get children(){return this.controller_.rack.children.map((Z)=>this.pool_.createApi(Z))}addBinding(Z,Y,K){let z=K!==null&&K!==void 0?K:{},$=this.controller_.element.ownerDocument,F=this.pool_.createBinding($,oV(Z,Y),z),B=this.pool_.createBindingApi(F);return this.add(B,z.index)}addFolder(Z){return iV(this,Z)}addButton(Z){return lV(this,Z)}addTab(Z){return nV(this,Z)}add(Z,Y){let K=Z.controller;return this.controller_.rack.add(K,Y),Z}remove(Z){this.controller_.rack.remove(Z.controller)}addBlade(Z){let Y=this.controller_.element.ownerDocument,K=this.pool_.createBlade(Y,Z),z=this.pool_.createApi(K);return this.add(z,Z.index)}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}refresh(){this.children.forEach((Z)=>{if(rV(Z))Z.refresh()})}onRackValueChange_(Z){let Y=Z.bladeController,K=this.pool_.createApi(Y),z=HD(Y.value)?Y.value.binding:null;this.emitter_.emit("change",new o1(K,z?z.target.read():Y.value.rawValue,Z.options.last))}}class t5 extends nX{constructor(Z,Y){super(Z);this.rackApi_=new VD(Z.rackController,Y)}refresh(){this.rackApi_.refresh()}}class a5 extends z4{constructor(Z){super({blade:Z.blade,view:Z.view,viewProps:Z.rackController.viewProps});this.rackController=Z.rackController}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({children:Y.required.array(Y.required.raw)}),(Y)=>{return this.rackController.rack.children.every((K,z)=>{return K.importState(Y.children[z])})})}exportState(){return B7(()=>super.exportState(),{children:this.rackController.rack.children.map((Z)=>Z.exportState())})}}function Cz(Z){return"rackController"in Z}class SD{constructor(Z){this.emitter=new fQ,this.items_=[],this.cache_=new Set,this.onSubListAdd_=this.onSubListAdd_.bind(this),this.onSubListRemove_=this.onSubListRemove_.bind(this),this.extract_=Z}get items(){return this.items_}allItems(){return Array.from(this.cache_)}find(Z){for(let Y of this.allItems())if(Z(Y))return Y;return null}includes(Z){return this.cache_.has(Z)}add(Z,Y){if(this.includes(Z))throw hQ.shouldNeverHappen();let K=Y!==void 0?Y:this.items_.length;this.items_.splice(K,0,Z),this.cache_.add(Z);let z=this.extract_(Z);if(z)z.emitter.on("add",this.onSubListAdd_),z.emitter.on("remove",this.onSubListRemove_),z.allItems().forEach(($)=>{this.cache_.add($)});this.emitter.emit("add",{index:K,item:Z,root:this,target:this})}remove(Z){let Y=this.items_.indexOf(Z);if(Y<0)return;this.items_.splice(Y,1),this.cache_.delete(Z);let K=this.extract_(Z);if(K)K.allItems().forEach((z)=>{this.cache_.delete(z)}),K.emitter.off("add",this.onSubListAdd_),K.emitter.off("remove",this.onSubListRemove_);this.emitter.emit("remove",{index:Y,item:Z,root:this,target:this})}onSubListAdd_(Z){this.cache_.add(Z.item),this.emitter.emit("add",{index:Z.index,item:Z.item,root:this,target:Z.target})}onSubListRemove_(Z){this.cache_.delete(Z.item),this.emitter.emit("remove",{index:Z.index,item:Z.item,root:this,target:Z.target})}}function tV(Z,Y){for(let K=0;K<Z.length;K++){let z=Z[K];if(h9(z)&&z.value===Y)return z}return null}function aV(Z){return Cz(Z)?Z.rackController.rack.bcSet_:null}class TD{constructor(Z){var Y,K;this.emitter=new fQ,this.onBladePositionsChange_=this.onBladePositionsChange_.bind(this),this.onSetAdd_=this.onSetAdd_.bind(this),this.onSetRemove_=this.onSetRemove_.bind(this),this.onChildDispose_=this.onChildDispose_.bind(this),this.onChildPositionsChange_=this.onChildPositionsChange_.bind(this),this.onChildValueChange_=this.onChildValueChange_.bind(this),this.onChildViewPropsChange_=this.onChildViewPropsChange_.bind(this),this.onRackLayout_=this.onRackLayout_.bind(this),this.onRackValueChange_=this.onRackValueChange_.bind(this),this.blade_=(Y=Z.blade)!==null&&Y!==void 0?Y:null,(K=this.blade_)===null||K===void 0||K.value("positions").emitter.on("change",this.onBladePositionsChange_),this.viewProps=Z.viewProps,this.bcSet_=new SD(aV),this.bcSet_.emitter.on("add",this.onSetAdd_),this.bcSet_.emitter.on("remove",this.onSetRemove_)}get children(){return this.bcSet_.items}add(Z,Y){var K;(K=Z.parent)===null||K===void 0||K.remove(Z),Z.parent=this,this.bcSet_.add(Z,Y)}remove(Z){Z.parent=null,this.bcSet_.remove(Z)}find(Z){return this.bcSet_.allItems().filter(Z)}onSetAdd_(Z){this.updatePositions_();let Y=Z.target===Z.root;if(this.emitter.emit("add",{bladeController:Z.item,index:Z.index,root:Y,sender:this}),!Y)return;let K=Z.item;if(K.viewProps.emitter.on("change",this.onChildViewPropsChange_),K.blade.value("positions").emitter.on("change",this.onChildPositionsChange_),K.viewProps.handleDispose(this.onChildDispose_),h9(K))K.value.emitter.on("change",this.onChildValueChange_);else if(Cz(K)){let z=K.rackController.rack;if(z){let $=z.emitter;$.on("layout",this.onRackLayout_),$.on("valuechange",this.onRackValueChange_)}}}onSetRemove_(Z){this.updatePositions_();let Y=Z.target===Z.root;if(this.emitter.emit("remove",{bladeController:Z.item,root:Y,sender:this}),!Y)return;let K=Z.item;if(h9(K))K.value.emitter.off("change",this.onChildValueChange_);else if(Cz(K)){let z=K.rackController.rack;if(z){let $=z.emitter;$.off("layout",this.onRackLayout_),$.off("valuechange",this.onRackValueChange_)}}}updatePositions_(){let Z=this.bcSet_.items.filter((z)=>!z.viewProps.get("hidden")),Y=Z[0],K=Z[Z.length-1];this.bcSet_.items.forEach((z)=>{let $=[];if(z===Y){if($.push("first"),!this.blade_||this.blade_.get("positions").includes("veryfirst"))$.push("veryfirst")}if(z===K){if($.push("last"),!this.blade_||this.blade_.get("positions").includes("verylast"))$.push("verylast")}z.blade.set("positions",$)})}onChildPositionsChange_(){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildViewPropsChange_(Z){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildDispose_(){this.bcSet_.items.filter((Y)=>{return Y.viewProps.get("disposed")}).forEach((Y)=>{this.bcSet_.remove(Y)})}onChildValueChange_(Z){let Y=tV(this.find(h9),Z.sender);if(!Y)throw hQ.alreadyDisposed();this.emitter.emit("valuechange",{bladeController:Y,options:Z.options,sender:this})}onRackLayout_(Z){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onRackValueChange_(Z){this.emitter.emit("valuechange",{bladeController:Z.bladeController,options:Z.options,sender:this})}onBladePositionsChange_(){this.updatePositions_()}}class e5{constructor(Z){this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this),this.element=Z.element,this.viewProps=Z.viewProps;let Y=new TD({blade:Z.root?void 0:Z.blade,viewProps:Z.viewProps});Y.emitter.on("add",this.onRackAdd_),Y.emitter.on("remove",this.onRackRemove_),this.rack=Y,this.viewProps.handleDispose(()=>{for(let K=this.rack.children.length-1;K>=0;K--)this.rack.children[K].viewProps.set("disposed",!0)})}onRackAdd_(Z){if(!Z.root)return;MD(this.element,Z.bladeController.view.element,Z.index)}onRackRemove_(Z){if(!Z.root)return;cz(Z.bladeController.view.element)}}function e1(){return new vJ({positions:VQ([],{equals:oR})})}class $4 extends vJ{constructor(Z){super(Z)}static create(Z){let Y={completed:!0,expanded:Z,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},K=vJ.createCore(Y);return new $4(K)}get styleExpanded(){var Z;return(Z=this.get("temporaryExpanded"))!==null&&Z!==void 0?Z:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";let Z=this.get("expandedHeight");if(this.get("shouldFixHeight")&&!MQ(Z))return`${Z}px`;return"auto"}bindExpandedClass(Z,Y){let K=()=>{if(this.styleExpanded)Z.classList.add(Y);else Z.classList.remove(Y)};V8(this,"expanded",K),V8(this,"temporaryExpanded",K)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function eV(Z,Y){let K=0;return TV(Y,()=>{Z.set("expandedHeight",null),Z.set("temporaryExpanded",!0),s5(Y),K=Y.clientHeight,Z.set("temporaryExpanded",null),s5(Y)}),K}function SW(Z,Y){Y.style.height=Z.styleHeight}function rz(Z,Y){Z.value("expanded").emitter.on("beforechange",()=>{if(Z.set("completed",!1),MQ(Z.get("expandedHeight"))){let K=eV(Z,Y);if(K>0)Z.set("expandedHeight",K)}Z.set("shouldFixHeight",!0),s5(Y)}),Z.emitter.on("change",()=>{SW(Z,Y)}),SW(Z,Y),Y.addEventListener("transitionend",(K)=>{if(K.propertyName!=="height")return;Z.cleanUpTransition()})}class oz extends t5{constructor(Z,Y){super(Z,Y);this.emitter_=new fQ,this.controller.foldable.value("expanded").emitter.on("change",(K)=>{this.emitter_.emit("fold",new OD(this,K.sender.rawValue))}),this.rackApi_.on("change",(K)=>{this.emitter_.emit("change",K)})}get expanded(){return this.controller.foldable.get("expanded")}set expanded(Z){this.controller.foldable.set("expanded",Z)}get title(){return this.controller.props.get("title")}set title(Z){this.controller.props.set("title",Z)}get children(){return this.rackApi_.children}addBinding(Z,Y,K){return this.rackApi_.addBinding(Z,Y,K)}addFolder(Z){return this.rackApi_.addFolder(Z)}addButton(Z){return this.rackApi_.addButton(Z)}addTab(Z){return this.rackApi_.addTab(Z)}add(Z,Y){return this.rackApi_.add(Z,Y)}remove(Z){this.rackApi_.remove(Z)}addBlade(Z){return this.rackApi_.addBlade(Z)}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}var _D=eJ("cnt");class kD{constructor(Z,Y){var K;this.className_=eJ((K=Y.viewName)!==null&&K!==void 0?K:"fld"),this.element=Z.createElement("div"),this.element.classList.add(this.className_(),_D()),Y.viewProps.bindClassModifiers(this.element),this.foldable_=Y.foldable,this.foldable_.bindExpandedClass(this.element,this.className_(void 0,"expanded")),V8(this.foldable_,"completed",t1(this.element,this.className_(void 0,"cpl")));let z=Z.createElement("button");z.classList.add(this.className_("b")),V8(Y.props,"title",(b)=>{if(MQ(b))this.element.classList.add(this.className_(void 0,"not"));else this.element.classList.remove(this.className_(void 0,"not"))}),Y.viewProps.bindDisabled(z),this.element.appendChild(z),this.buttonElement=z;let $=Z.createElement("div");$.classList.add(this.className_("i")),this.element.appendChild($);let F=Z.createElement("div");F.classList.add(this.className_("t")),iz(Y.props.value("title"),F),this.buttonElement.appendChild(F),this.titleElement=F;let B=Z.createElement("div");B.classList.add(this.className_("m")),this.buttonElement.appendChild(B);let j=Z.createElement("div");j.classList.add(this.className_("c")),this.element.appendChild(j),this.containerElement=j}}class l5 extends a5{constructor(Z,Y){var K;let z=$4.create((K=Y.expanded)!==null&&K!==void 0?K:!0),$=new kD(Z,{foldable:z,props:Y.props,viewName:Y.root?"rot":void 0,viewProps:Y.viewProps});super(Object.assign(Object.assign({},Y),{rackController:new e5({blade:Y.blade,element:$.containerElement,root:Y.root,viewProps:Y.viewProps}),view:$}));this.onTitleClick_=this.onTitleClick_.bind(this),this.props=Y.props,this.foldable=z,rz(this.foldable,this.view.containerElement),this.rackController.rack.emitter.on("add",()=>{this.foldable.cleanUpTransition()}),this.rackController.rack.emitter.on("remove",()=>{this.foldable.cleanUpTransition()}),this.view.buttonElement.addEventListener("click",this.onTitleClick_)}get document(){return this.view.element.ownerDocument}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({expanded:Y.required.boolean,title:Y.optional.string}),(Y)=>{return this.foldable.set("expanded",Y.expanded),this.props.set("title",Y.title),!0})}exportState(){return B7(()=>super.exportState(),{expanded:this.foldable.get("expanded"),title:this.props.get("title")})}onTitleClick_(){this.foldable.set("expanded",!this.foldable.get("expanded"))}}var JS=uZ({id:"folder",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({title:K.required.string,view:K.required.constant("folder"),expanded:K.optional.boolean}));return Y?{params:Y}:null},controller(Z){return new l5(Z.document,{blade:Z.blade,expanded:Z.params.expanded,props:vJ.fromObject({title:Z.params.title}),viewProps:Z.viewProps})},api(Z){if(!(Z.controller instanceof l5))return null;return new oz(Z.controller,Z.pool)}}),QS=eJ("");function TW(Z,Y){return t1(Z,QS(void 0,Y))}class KX extends vJ{constructor(Z){var Y;super(Z);this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=aR(VQ(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),(Y=this.get("parent"))===null||Y===void 0||Y.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(Z){var Y,K,z;let $=Z!==null&&Z!==void 0?Z:{};return new KX(vJ.createCore({disabled:(Y=$.disabled)!==null&&Y!==void 0?Y:!1,disposed:!1,hidden:(K=$.hidden)!==null&&K!==void 0?K:!1,parent:(z=$.parent)!==null&&z!==void 0?z:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(Z){QX(this.globalDisabled_,TW(Z,"disabled")),V8(this,"hidden",TW(Z,"hidden"))}bindDisabled(Z){QX(this.globalDisabled_,(Y)=>{Z.disabled=Y})}bindTabIndex(Z){QX(this.globalDisabled_,(Y)=>{Z.tabIndex=Y?-1:0})}handleDispose(Z){this.value("disposed").emitter.on("change",(Y)=>{if(Y)Z()})}importState(Z){this.set("disabled",Z.disabled),this.set("hidden",Z.hidden)}exportState(){return{disabled:this.get("disabled"),hidden:this.get("hidden")}}getGlobalDisabled_(){let Z=this.get("parent");return(Z?Z.globalDisabled.rawValue:!1)||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(Z){var Y;let K=Z.previousRawValue;K===null||K===void 0||K.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),(Y=this.get("parent"))===null||Y===void 0||Y.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}var _W=eJ("tbp");class ED{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(_W()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(_W("c")),this.element.appendChild(K),this.containerElement=K}}var J4=eJ("tbi");class CD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(J4()),Y.viewProps.bindClassModifiers(this.element),V8(Y.props,"selected",($)=>{if($)this.element.classList.add(J4(void 0,"sel"));else this.element.classList.remove(J4(void 0,"sel"))});let K=Z.createElement("button");K.classList.add(J4("b")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.buttonElement=K;let z=Z.createElement("div");z.classList.add(J4("t")),iz(Y.props.value("title"),z),this.buttonElement.appendChild(z),this.titleElement=z}}class xD{constructor(Z,Y){this.emitter=new fQ,this.onClick_=this.onClick_.bind(this),this.props=Y.props,this.viewProps=Y.viewProps,this.view=new CD(Z,{props:Y.props,viewProps:Y.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class i5 extends a5{constructor(Z,Y){let K=new ED(Z,{viewProps:Y.viewProps});super(Object.assign(Object.assign({},Y),{rackController:new e5({blade:Y.blade,element:K.containerElement,viewProps:Y.viewProps}),view:K}));this.onItemClick_=this.onItemClick_.bind(this),this.ic_=new xD(Z,{props:Y.itemProps,viewProps:KX.create()}),this.ic_.emitter.on("click",this.onItemClick_),this.props=Y.props,V8(this.props,"selected",(z)=>{this.itemController.props.set("selected",z),this.viewProps.set("hidden",!z)})}get itemController(){return this.ic_}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({selected:Y.required.boolean,title:Y.required.string}),(Y)=>{return this.ic_.props.set("selected",Y.selected),this.ic_.props.set("title",Y.title),!0})}exportState(){return B7(()=>super.exportState(),{selected:this.ic_.props.get("selected"),title:this.ic_.props.get("title")})}onItemClick_(){this.props.set("selected",!0)}}class hD extends t5{constructor(Z,Y){super(Z,Y);this.emitter_=new fQ,this.onSelect_=this.onSelect_.bind(this),this.pool_=Y,this.rackApi_.on("change",(K)=>{this.emitter_.emit("change",K)}),this.controller.tab.selectedIndex.emitter.on("change",this.onSelect_)}get pages(){return this.rackApi_.children}addPage(Z){let Y=this.controller.view.element.ownerDocument,K=new i5(Y,{blade:e1(),itemProps:vJ.fromObject({selected:!1,title:Z.title}),props:vJ.fromObject({selected:!1}),viewProps:KX.create()}),z=this.pool_.createApi(K);return this.rackApi_.add(z,Z.index)}removePage(Z){this.rackApi_.remove(this.rackApi_.children[Z])}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}onSelect_(Z){this.emitter_.emit("select",new LD(this,Z.rawValue))}}class bD extends t5{get title(){var Z;return(Z=this.controller.itemController.props.get("title"))!==null&&Z!==void 0?Z:""}set title(Z){this.controller.itemController.props.set("title",Z)}get selected(){return this.controller.props.get("selected")}set selected(Z){this.controller.props.set("selected",Z)}get children(){return this.rackApi_.children}addButton(Z){return this.rackApi_.addButton(Z)}addFolder(Z){return this.rackApi_.addFolder(Z)}addTab(Z){return this.rackApi_.addTab(Z)}add(Z,Y){this.rackApi_.add(Z,Y)}remove(Z){this.rackApi_.remove(Z)}addBinding(Z,Y,K){return this.rackApi_.addBinding(Z,Y,K)}addBlade(Z){return this.rackApi_.addBlade(Z)}}var kW=-1;class yD{constructor(){this.onItemSelectedChange_=this.onItemSelectedChange_.bind(this),this.empty=VQ(!0),this.selectedIndex=VQ(kW),this.items_=[]}add(Z,Y){let K=Y!==null&&Y!==void 0?Y:this.items_.length;this.items_.splice(K,0,Z),Z.emitter.on("change",this.onItemSelectedChange_),this.keepSelection_()}remove(Z){let Y=this.items_.indexOf(Z);if(Y<0)return;this.items_.splice(Y,1),Z.emitter.off("change",this.onItemSelectedChange_),this.keepSelection_()}keepSelection_(){if(this.items_.length===0){this.selectedIndex.rawValue=kW,this.empty.rawValue=!0;return}let Z=this.items_.findIndex((Y)=>Y.rawValue);if(Z<0)this.items_.forEach((Y,K)=>{Y.rawValue=K===0}),this.selectedIndex.rawValue=0;else this.items_.forEach((Y,K)=>{Y.rawValue=K===Z}),this.selectedIndex.rawValue=Z;this.empty.rawValue=!1}onItemSelectedChange_(Z){if(Z.rawValue){let Y=this.items_.findIndex((K)=>K===Z.sender);this.items_.forEach((K,z)=>{K.rawValue=z===Y}),this.selectedIndex.rawValue=Y}else this.keepSelection_()}}var Q4=eJ("tab");class fD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(Q4(),_D()),Y.viewProps.bindClassModifiers(this.element),QX(Y.empty,t1(this.element,Q4(void 0,"nop")));let K=Z.createElement("div");K.classList.add(Q4("t")),this.element.appendChild(K),this.itemsElement=K;let z=Z.createElement("div");z.classList.add(Q4("i")),this.element.appendChild(z);let $=Z.createElement("div");$.classList.add(Q4("c")),this.element.appendChild($),this.contentsElement=$}}class xz extends a5{constructor(Z,Y){let K=new yD,z=new fD(Z,{empty:K.empty,viewProps:Y.viewProps});super({blade:Y.blade,rackController:new e5({blade:Y.blade,element:z.contentsElement,viewProps:Y.viewProps}),view:z});this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this);let $=this.rackController.rack;$.emitter.on("add",this.onRackAdd_),$.emitter.on("remove",this.onRackRemove_),this.tab=K}add(Z,Y){this.rackController.rack.add(Z,Y)}remove(Z){this.rackController.rack.remove(this.rackController.rack.children[Z])}onRackAdd_(Z){if(!Z.root)return;let Y=Z.bladeController;MD(this.view.itemsElement,Y.itemController.view.element,Z.index),Y.itemController.viewProps.set("parent",this.viewProps),this.tab.add(Y.props.value("selected"))}onRackRemove_(Z){if(!Z.root)return;let Y=Z.bladeController;cz(Y.itemController.view.element),Y.itemController.viewProps.set("parent",null),this.tab.remove(Y.props.value("selected"))}}var vD=uZ({id:"tab",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({pages:K.required.array(K.required.object({title:K.required.string})),view:K.required.constant("tab")}));if(!Y||Y.pages.length===0)return null;return{params:Y}},controller(Z){let Y=new xz(Z.document,{blade:Z.blade,viewProps:Z.viewProps});return Z.params.pages.forEach((K)=>{let z=new i5(Z.document,{blade:e1(),itemProps:vJ.fromObject({selected:!1,title:K.title}),props:vJ.fromObject({selected:!1}),viewProps:KX.create()});Y.add(z)}),Y},api(Z){if(Z.controller instanceof xz)return new hD(Z.controller,Z.pool);if(Z.controller instanceof i5)return new bD(Z.controller,Z.pool);return null}});function ZS(Z,Y){let K=Z.accept(Y.params);if(!K)return null;let z=kQ(Y.params,($)=>({disabled:$.optional.boolean,hidden:$.optional.boolean}));return Z.controller({blade:e1(),document:Y.document,params:J7(Object.assign(Object.assign({},K.params),{disabled:z===null||z===void 0?void 0:z.disabled,hidden:z===null||z===void 0?void 0:z.hidden})),viewProps:KX.create({disabled:z===null||z===void 0?void 0:z.disabled,hidden:z===null||z===void 0?void 0:z.hidden})})}class JG extends l1{get options(){return this.controller.valueController.props.get("options")}set options(Z){this.controller.valueController.props.set("options",Z)}}class uD{constructor(){this.disabled=!1,this.emitter=new fQ}dispose(){}tick(){if(this.disabled)return;this.emitter.emit("tick",{sender:this})}}class gD{constructor(Z,Y){this.disabled_=!1,this.timerId_=null,this.onTick_=this.onTick_.bind(this),this.doc_=Z,this.emitter=new fQ,this.interval_=Y,this.setTimer_()}get disabled(){return this.disabled_}set disabled(Z){if(this.disabled_=Z,this.disabled_)this.clearTimer_();else this.setTimer_()}dispose(){this.clearTimer_()}clearTimer_(){if(this.timerId_===null)return;let Z=this.doc_.defaultView;if(Z)Z.clearInterval(this.timerId_);this.timerId_=null}setTimer_(){if(this.clearTimer_(),this.interval_<=0)return;let Z=this.doc_.defaultView;if(Z)this.timerId_=Z.setInterval(this.onTick_,this.interval_)}onTick_(){if(this.disabled_)return;this.emitter.emit("tick",{sender:this})}}class J6{constructor(Z){this.constraints=Z}constrain(Z){return this.constraints.reduce((Y,K)=>{return K.constrain(Y)},Z)}}function n5(Z,Y){if(Z instanceof Y)return Z;if(Z instanceof J6){let K=Z.constraints.reduce((z,$)=>{if(z)return z;return $ instanceof Y?$:null},null);if(K)return K}return null}class Q6{constructor(Z){this.values=vJ.fromObject({options:Z})}constrain(Z){let Y=this.values.get("options");if(Y.length===0)return Z;return Y.filter((z)=>{return z.value===Z}).length>0?Z:Y[0].value}}function O4(Z){var Y;let K=kz;if(Array.isArray(Z))return(Y=kQ({items:Z},(z)=>({items:z.required.array(z.required.object({text:z.required.string,value:z.required.raw}))})))===null||Y===void 0?void 0:Y.items;if(typeof Z==="object")return K.required.raw(Z).value;return}function tz(Z){if(Array.isArray(Z))return Z;let Y=[];return Object.keys(Z).forEach((K)=>{Y.push({text:K,value:Z[K]})}),Y}function az(Z){return!MQ(Z)?new Q6(tz(J7(Z))):null}var Pz=eJ("lst");class dD{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.props_=Y.props,this.element=Z.createElement("div"),this.element.classList.add(Pz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("select");K.classList.add(Pz("s")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.selectElement=K;let z=Z.createElement("div");z.classList.add(Pz("m")),z.appendChild(o5(Z,"dropdown")),this.element.appendChild(z),Y.value.emitter.on("change",this.onValueChange_),this.value_=Y.value,V8(this.props_,"options",($)=>{FD(this.selectElement),$.forEach((F)=>{let B=Z.createElement("option");B.textContent=F.text,this.selectElement.appendChild(B)}),this.update_()})}update_(){let Z=this.props_.get("options").map((Y)=>Y.value);this.selectElement.selectedIndex=Z.indexOf(this.value_.rawValue)}onValueChange_(){this.update_()}}class YX{constructor(Z,Y){this.onSelectChange_=this.onSelectChange_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new dD(Z,{props:this.props,value:this.value,viewProps:this.viewProps}),this.view.selectElement.addEventListener("change",this.onSelectChange_)}onSelectChange_(Z){let Y=J7(Z.currentTarget);this.value.rawValue=this.props.get("options")[Y.selectedIndex].value}importProps(Z){return F7(Z,null,(Y)=>({options:Y.required.custom(O4)}),(Y)=>{return this.props.set("options",tz(Y.options)),!0})}exportProps(){return B7(null,{options:this.props.get("options")})}}var EW=eJ("pop");class mD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(EW()),Y.viewProps.bindClassModifiers(this.element),QX(Y.shows,t1(this.element,EW(void 0,"v")))}}class ez{constructor(Z,Y){this.shows=VQ(!1),this.viewProps=Y.viewProps,this.view=new mD(Z,{shows:this.shows,viewProps:this.viewProps})}}var CW=eJ("txt");class cD{constructor(Z,Y){this.onChange_=this.onChange_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(CW()),Y.viewProps.bindClassModifiers(this.element),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_);let K=Z.createElement("input");K.classList.add(CW("i")),K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,Y.value.emitter.on("change",this.onChange_),this.value_=Y.value,this.refresh()}refresh(){let Z=this.props_.get("formatter");this.inputElement.value=Z(this.value_.rawValue)}onChange_(){this.refresh()}}class i1{constructor(Z,Y){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=Y.parser,this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new cD(Z,{props:Y.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(Z){let K=J7(Z.currentTarget).value,z=this.parser_(K);if(!MQ(z))this.value.rawValue=z;this.view.refresh()}}function XS(Z){return String(Z)}function pD(Z){if(Z==="false")return!1;return!!Z}function xW(Z){return XS(Z)}function YS(Z){return(Y)=>{return Z.reduce((K,z)=>{if(K!==null)return K;return z(Y)},null)}}var GS=eZ(0);function r5(Z){return GS(Z)+"%"}function sD(Z){return String(Z)}function hz(Z){return Z}function Z6({primary:Z,secondary:Y,forward:K,backward:z}){let $=!1;function F(B){if($)return;$=!0,B(),$=!1}Z.emitter.on("change",(B)=>{F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),B.options)})}),Y.emitter.on("change",(B)=>{F(()=>{Z.setRawValue(z(Z.rawValue,Y.rawValue),B.options)}),F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),B.options)})}),F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),{forceEmit:!1,last:!0})})}function aZ(Z,Y){let K=Z*(Y.altKey?0.1:1)*(Y.shiftKey?10:1);if(Y.upKey)return+K;else if(Y.downKey)return-K;return 0}function G4(Z){return{altKey:Z.altKey,downKey:Z.key==="ArrowDown",shiftKey:Z.shiftKey,upKey:Z.key==="ArrowUp"}}function GX(Z){return{altKey:Z.altKey,downKey:Z.key==="ArrowLeft",shiftKey:Z.shiftKey,upKey:Z.key==="ArrowRight"}}function KS(Z){return Z==="ArrowUp"||Z==="ArrowDown"}function lD(Z){return KS(Z)||Z==="ArrowLeft"||Z==="ArrowRight"}function Nz(Z,Y){var K,z;let $=Y.ownerDocument.defaultView,F=Y.getBoundingClientRect();return{x:Z.pageX-(((K=$&&$.scrollX)!==null&&K!==void 0?K:0)+F.left),y:Z.pageY-(((z=$&&$.scrollY)!==null&&z!==void 0?z:0)+F.top)}}class rX{constructor(Z){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=Z,this.emitter=new fQ,Z.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),Z.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),Z.addEventListener("touchend",this.onTouchEnd_),Z.addEventListener("mousedown",this.onMouseDown_)}computePosition_(Z){let Y=this.elem_.getBoundingClientRect();return{bounds:{width:Y.width,height:Y.height},point:Z?{x:Z.x,y:Z.y}:null}}onMouseDown_(Z){var Y;Z.preventDefault(),(Y=Z.currentTarget)===null||Y===void 0||Y.focus();let K=this.elem_.ownerDocument;K.addEventListener("mousemove",this.onDocumentMouseMove_),K.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:Z.altKey,data:this.computePosition_(Nz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onDocumentMouseMove_(Z){this.emitter.emit("move",{altKey:Z.altKey,data:this.computePosition_(Nz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onDocumentMouseUp_(Z){let Y=this.elem_.ownerDocument;Y.removeEventListener("mousemove",this.onDocumentMouseMove_),Y.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:Z.altKey,data:this.computePosition_(Nz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onTouchStart_(Z){Z.preventDefault();let Y=Z.targetTouches.item(0),K=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:Z.altKey,data:this.computePosition_(Y?{x:Y.clientX-K.left,y:Y.clientY-K.top}:void 0),sender:this,shiftKey:Z.shiftKey}),this.lastTouch_=Y}onTouchMove_(Z){let Y=Z.targetTouches.item(0),K=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:Z.altKey,data:this.computePosition_(Y?{x:Y.clientX-K.left,y:Y.clientY-K.top}:void 0),sender:this,shiftKey:Z.shiftKey}),this.lastTouch_=Y}onTouchEnd_(Z){var Y;let K=(Y=Z.targetTouches.item(0))!==null&&Y!==void 0?Y:this.lastTouch_,z=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:Z.altKey,data:this.computePosition_(K?{x:K.clientX-z.left,y:K.clientY-z.top}:void 0),sender:this,shiftKey:Z.shiftKey})}}var x7=eJ("txt");class iD{constructor(Z,Y){if(this.onChange_=this.onChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_),this.element=Z.createElement("div"),this.element.classList.add(x7(),x7(void 0,"num")),Y.arrayPosition)this.element.classList.add(x7(void 0,Y.arrayPosition));Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("input");K.classList.add(x7("i")),K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=Y.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(x7()),this.inputElement.classList.add(x7("i"));let z=Z.createElement("div");z.classList.add(x7("k")),this.element.appendChild(z),this.knobElement=z;let $=Z.createElementNS(R8,"svg");$.classList.add(x7("g")),this.knobElement.appendChild($);let F=Z.createElementNS(R8,"path");F.classList.add(x7("gb")),$.appendChild(F),this.guideBodyElem_=F;let B=Z.createElementNS(R8,"path");B.classList.add(x7("gh")),$.appendChild(B),this.guideHeadElem_=B;let j=Z.createElement("div");j.classList.add(eJ("tt")()),this.knobElement.appendChild(j),this.tooltipElem_=j,Y.value.emitter.on("change",this.onChange_),this.value=Y.value,this.refresh()}onDraggingChange_(Z){if(Z.rawValue===null){this.element.classList.remove(x7(void 0,"drg"));return}this.element.classList.add(x7(void 0,"drg"));let Y=Z.rawValue/this.props_.get("pointerScale"),K=Y+(Y>0?-1:Y<0?1:0),z=QZ(-K,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${K+z},0 L${K},4 L${K+z},8`,`M ${Y},-1 L${Y},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${Y},4`);let $=this.props_.get("formatter");this.tooltipElem_.textContent=$(this.value.rawValue),this.tooltipElem_.style.left=`${Y}px`}refresh(){let Z=this.props_.get("formatter");this.inputElement.value=Z(this.value.rawValue)}onChange_(){this.refresh()}}class X6{constructor(Z,Y){var K;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.parser_=Y.parser,this.props=Y.props,this.sliderProps_=(K=Y.sliderProps)!==null&&K!==void 0?K:null,this.value=Y.value,this.viewProps=Y.viewProps,this.dragging_=VQ(null),this.view=new iD(Z,{arrayPosition:Y.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);let z=new rX(this.view.knobElement);z.emitter.on("down",this.onPointerDown_),z.emitter.on("move",this.onPointerMove_),z.emitter.on("up",this.onPointerUp_)}constrainValue_(Z){var Y,K;let z=(Y=this.sliderProps_)===null||Y===void 0?void 0:Y.get("min"),$=(K=this.sliderProps_)===null||K===void 0?void 0:K.get("max"),F=Z;if(z!==void 0)F=Math.max(F,z);if($!==void 0)F=Math.min(F,$);return F}onInputChange_(Z){let K=J7(Z.currentTarget).value,z=this.parser_(K);if(!MQ(z))this.value.rawValue=this.constrainValue_(z);this.view.refresh()}onInputKeyDown_(Z){let Y=aZ(this.props.get("keyScale"),G4(Z));if(Y===0)return;this.value.setRawValue(this.constrainValue_(this.value.rawValue+Y),{forceEmit:!1,last:!1})}onInputKeyUp_(Z){if(aZ(this.props.get("keyScale"),G4(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(Z){if(!Z.point)return null;let Y=Z.point.x-Z.bounds.width/2;return this.constrainValue_(this.originRawValue_+Y*this.props.get("pointerScale"))}onPointerMove_(Z){let Y=this.computeDraggingValue_(Z.data);if(Y===null)return;this.value.setRawValue(Y,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_}onPointerUp_(Z){let Y=this.computeDraggingValue_(Z.data);if(Y===null)return;this.value.setRawValue(Y,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null}}var wz=eJ("sld");class nD{constructor(Z,Y){this.onChange_=this.onChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_),this.element=Z.createElement("div"),this.element.classList.add(wz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(wz("t")),Y.viewProps.bindTabIndex(K),this.element.appendChild(K),this.trackElement=K;let z=Z.createElement("div");z.classList.add(wz("k")),this.trackElement.appendChild(z),this.knobElement=z,Y.value.emitter.on("change",this.onChange_),this.value=Y.value,this.update_()}update_(){let Z=QZ(UQ(this.value.rawValue,this.props_.get("min"),this.props_.get("max"),0,100),0,100);this.knobElement.style.width=`${Z}%`}onChange_(){this.update_()}}class rD{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDownOrMove_=this.onPointerDownOrMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.props=Y.props,this.view=new nD(Z,{props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.trackElement),this.ptHandler_.emitter.on("down",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("move",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.trackElement.addEventListener("keydown",this.onKeyDown_),this.view.trackElement.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;this.value.setRawValue(UQ(QZ(Z.point.x,0,Z.bounds.width),0,Z.bounds.width,this.props.get("min"),this.props.get("max")),Y)}onPointerDownOrMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(this.props.get("keyScale"),GX(Z));if(Y===0)return;this.value.setRawValue(this.value.rawValue+Y,{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(this.props.get("keyScale"),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var Rz=eJ("sldtxt");class oD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(Rz());let K=Z.createElement("div");K.classList.add(Rz("s")),this.sliderView_=Y.sliderView,K.appendChild(this.sliderView_.element),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(Rz("t")),this.textView_=Y.textView,z.appendChild(this.textView_.element),this.element.appendChild(z)}}class K4{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.sliderC_=new rD(Z,{props:Y.sliderProps,value:Y.value,viewProps:this.viewProps}),this.textC_=new X6(Z,{parser:Y.parser,props:Y.textProps,sliderProps:Y.sliderProps,value:Y.value,viewProps:Y.viewProps}),this.view=new oD(Z,{sliderView:this.sliderC_.view,textView:this.textC_.view})}get sliderController(){return this.sliderC_}get textController(){return this.textC_}importProps(Z){return F7(Z,null,(Y)=>({max:Y.required.number,min:Y.required.number}),(Y)=>{let K=this.sliderC_.props;return K.set("max",Y.max),K.set("min",Y.min),!0})}exportProps(){let Z=this.sliderC_.props;return B7(null,{max:Z.get("max"),min:Z.get("min")})}}function tD(Z){return{sliderProps:new vJ({keyScale:Z.keyScale,max:Z.max,min:Z.min}),textProps:new vJ({formatter:VQ(Z.formatter),keyScale:Z.keyScale,pointerScale:VQ(Z.pointerScale)})}}var US={containerUnitSize:"cnt-usz"};function aD(Z){return`--${US[Z]}`}function U4(Z){return $D(Z)}function lX(Z){if(!_z(Z))return;return kQ(Z,U4)}function JX(Z,Y){if(!Z)return;let K=[],z=UD(Z,Y);if(z)K.push(z);let $=qD(Z);if($)K.push($);return new J6(K)}function qS(Z){if(!Z)return!1;return Z.major===a1.major}function eD(Z){if(Z==="inline"||Z==="popup")return Z;return}function L4(Z,Y){Z.write(Y)}var d5=eJ("ckb");class JH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(d5()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("label");K.classList.add(d5("l")),this.element.appendChild(K),this.labelElement=K;let z=Z.createElement("input");z.classList.add(d5("i")),z.type="checkbox",this.labelElement.appendChild(z),this.inputElement=z,Y.viewProps.bindDisabled(this.inputElement);let $=Z.createElement("div");$.classList.add(d5("w")),this.labelElement.appendChild($);let F=o5(Z,"check");$.appendChild(F),Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.update_()}update_(){this.inputElement.checked=this.value.rawValue}onValueChange_(){this.update_()}}class QH{constructor(Z,Y){this.onInputChange_=this.onInputChange_.bind(this),this.onLabelMouseDown_=this.onLabelMouseDown_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new JH(Z,{value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.labelElement.addEventListener("mousedown",this.onLabelMouseDown_)}onInputChange_(Z){let Y=J7(Z.currentTarget);this.value.rawValue=Y.checked,Z.preventDefault(),Z.stopPropagation()}onLabelMouseDown_(Z){Z.preventDefault()}}function zS(Z){let Y=[],K=az(Z.options);if(K)Y.push(K);return new J6(Y)}var $S=uZ({id:"input-bool",type:"input",accept:(Z,Y)=>{if(typeof Z!=="boolean")return null;let K=kQ(Y,(z)=>({options:z.optional.custom(O4),readonly:z.optional.constant(!1)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>pD,constraint:(Z)=>zS(Z.params),writer:(Z)=>L4},controller:(Z)=>{let{document:Y,value:K,constraint:z}=Z,$=z&&n5(z,Q6);if($)return new YX(Y,{props:new vJ({options:$.values.value("options")}),value:K,viewProps:Z.viewProps});return new QH(Y,{value:K,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="boolean")return null;if(Z.controller.valueController instanceof YX)return new JG(Z.controller);return null}}),x9=eJ("col");class ZH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(x9()),Y.foldable.bindExpandedClass(this.element,x9(void 0,"expanded")),V8(Y.foldable,"completed",t1(this.element,x9(void 0,"cpl")));let K=Z.createElement("div");K.classList.add(x9("h")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(x9("s")),K.appendChild(z),this.swatchElement=z;let $=Z.createElement("div");if($.classList.add(x9("t")),K.appendChild($),this.textElement=$,Y.pickerLayout==="inline"){let F=Z.createElement("div");F.classList.add(x9("p")),this.element.appendChild(F),this.pickerElement=F}else this.pickerElement=null}}function OS(Z,Y,K){let z=QZ(Z/255,0,1),$=QZ(Y/255,0,1),F=QZ(K/255,0,1),B=Math.max(z,$,F),j=Math.min(z,$,F),b=B-j,_=0,y=0,k=(j+B)/2;if(b!==0){if(y=b/(1-Math.abs(B+j-1)),z===B)_=($-F)/b;else if($===B)_=2+(F-z)/b;else _=4+(z-$)/b;_=_/6+(_<0?1:0)}return[_*360,y*100,k*100]}function LS(Z,Y,K){let z=(Z%360+360)%360,$=QZ(Y/100,0,1),F=QZ(K/100,0,1),B=(1-Math.abs(2*F-1))*$,j=B*(1-Math.abs(z/60%2-1)),b=F-B/2,_,y,k;if(z>=0&&z<60)[_,y,k]=[B,j,0];else if(z>=60&&z<120)[_,y,k]=[j,B,0];else if(z>=120&&z<180)[_,y,k]=[0,B,j];else if(z>=180&&z<240)[_,y,k]=[0,j,B];else if(z>=240&&z<300)[_,y,k]=[j,0,B];else[_,y,k]=[B,0,j];return[(_+b)*255,(y+b)*255,(k+b)*255]}function WS(Z,Y,K){let z=QZ(Z/255,0,1),$=QZ(Y/255,0,1),F=QZ(K/255,0,1),B=Math.max(z,$,F),j=Math.min(z,$,F),b=B-j,_;if(b===0)_=0;else if(B===z)_=60*((($-F)/b%6+6)%6);else if(B===$)_=60*((F-z)/b+2);else _=60*((z-$)/b+4);let y=B===0?0:b/B,k=B;return[_,y*100,k*100]}function XH(Z,Y,K){let z=YD(Z,360),$=QZ(Y/100,0,1),F=QZ(K/100,0,1),B=F*$,j=B*(1-Math.abs(z/60%2-1)),b=F-B,_,y,k;if(z>=0&&z<60)[_,y,k]=[B,j,0];else if(z>=60&&z<120)[_,y,k]=[j,B,0];else if(z>=120&&z<180)[_,y,k]=[0,B,j];else if(z>=180&&z<240)[_,y,k]=[0,j,B];else if(z>=240&&z<300)[_,y,k]=[j,0,B];else[_,y,k]=[B,0,j];return[(_+b)*255,(y+b)*255,(k+b)*255]}function DS(Z,Y,K){let z=K+Y*(100-Math.abs(2*K-100))/200;return[Z,z!==0?Y*(100-Math.abs(2*K-100))/z:0,K+Y*(100-Math.abs(2*K-100))/200]}function HS(Z,Y,K){let z=100-Math.abs(K*(200-Y)/100-100);return[Z,z!==0?Y*K/z:0,K*(200-Y)/200]}function S8(Z){return[Z[0],Z[1],Z[2]]}function QG(Z,Y){return[Z[0],Z[1],Z[2],Y]}var MS={hsl:{hsl:(Z,Y,K)=>[Z,Y,K],hsv:DS,rgb:LS},hsv:{hsl:HS,hsv:(Z,Y,K)=>[Z,Y,K],rgb:XH},rgb:{hsl:OS,hsv:WS,rgb:(Z,Y,K)=>[Z,Y,K]}};function n1(Z,Y){return[Y==="float"?1:Z==="rgb"?255:360,Y==="float"?1:Z==="rgb"?255:100,Y==="float"?1:Z==="rgb"?255:100]}function FS(Z,Y){return Z===Y?Y:YD(Z,Y)}function YH(Z,Y,K){var z;let $=n1(Y,K);return[Y==="rgb"?QZ(Z[0],0,$[0]):FS(Z[0],$[0]),QZ(Z[1],0,$[1]),QZ(Z[2],0,$[2]),QZ((z=Z[3])!==null&&z!==void 0?z:1,0,1)]}function hW(Z,Y,K,z){let $=n1(Y,K),F=n1(Y,z);return Z.map((B,j)=>B/$[j]*F[j])}function GH(Z,Y,K){let z=hW(Z,Y.mode,Y.type,"int"),$=MS[Y.mode][K.mode](...z);return hW($,K.mode,"int",K.type)}class ZQ{static black(){return new ZQ([0,0,0],"rgb")}constructor(Z,Y){this.type="int",this.mode=Y,this.comps_=YH(Z,Y,this.type)}getComponents(Z){return QG(GH(S8(this.comps_),{mode:this.mode,type:this.type},{mode:Z!==null&&Z!==void 0?Z:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let Z=this.getComponents("rgb");return{r:Z[0],g:Z[1],b:Z[2],a:Z[3]}}}var cX=eJ("colp");class KH{constructor(Z,Y){this.alphaViews_=null,this.element=Z.createElement("div"),this.element.classList.add(cX()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(cX("hsv"));let z=Z.createElement("div");z.classList.add(cX("sv")),this.svPaletteView_=Y.svPaletteView,z.appendChild(this.svPaletteView_.element),K.appendChild(z);let $=Z.createElement("div");$.classList.add(cX("h")),this.hPaletteView_=Y.hPaletteView,$.appendChild(this.hPaletteView_.element),K.appendChild($),this.element.appendChild(K);let F=Z.createElement("div");if(F.classList.add(cX("rgb")),this.textsView_=Y.textsView,F.appendChild(this.textsView_.element),this.element.appendChild(F),Y.alphaViews){this.alphaViews_={palette:Y.alphaViews.palette,text:Y.alphaViews.text};let B=Z.createElement("div");B.classList.add(cX("a"));let j=Z.createElement("div");j.classList.add(cX("ap")),j.appendChild(this.alphaViews_.palette.element),B.appendChild(j);let b=Z.createElement("div");b.classList.add(cX("at")),b.appendChild(this.alphaViews_.text.element),B.appendChild(b),this.element.appendChild(B)}}get allFocusableElements(){let Z=[this.svPaletteView_.element,this.hPaletteView_.element,this.textsView_.modeSelectElement,...this.textsView_.inputViews.map((Y)=>Y.inputElement)];if(this.alphaViews_)Z.push(this.alphaViews_.palette.element,this.alphaViews_.text.inputElement);return Z}}function BS(Z){return Z==="int"?"int":Z==="float"?"float":void 0}function J$(Z){return kQ(Z,(Y)=>({color:Y.optional.object({alpha:Y.optional.boolean,type:Y.optional.custom(BS)}),expanded:Y.optional.boolean,picker:Y.optional.custom(eD),readonly:Y.optional.constant(!1)}))}function v9(Z){return Z?0.1:1}function UH(Z){var Y;return(Y=Z.color)===null||Y===void 0?void 0:Y.type}class ZG{constructor(Z,Y){this.type="float",this.mode=Y,this.comps_=YH(Z,Y,this.type)}getComponents(Z){return QG(GH(S8(this.comps_),{mode:this.mode,type:this.type},{mode:Z!==null&&Z!==void 0?Z:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let Z=this.getComponents("rgb");return{r:Z[0],g:Z[1],b:Z[2],a:Z[3]}}}var AS={int:(Z,Y)=>new ZQ(Z,Y),float:(Z,Y)=>new ZG(Z,Y)};function Q$(Z,Y,K){return AS[K](Z,Y)}function IS(Z){return Z.type==="float"}function jS(Z){return Z.type==="int"}function PS(Z){let Y=Z.getComponents(),K=n1(Z.mode,"int");return new ZQ([Math.round(UQ(Y[0],0,1,0,K[0])),Math.round(UQ(Y[1],0,1,0,K[1])),Math.round(UQ(Y[2],0,1,0,K[2])),Y[3]],Z.mode)}function NS(Z){let Y=Z.getComponents(),K=n1(Z.mode,"int");return new ZG([UQ(Y[0],0,K[0],0,1),UQ(Y[1],0,K[1],0,1),UQ(Y[2],0,K[2],0,1),Y[3]],Z.mode)}function vZ(Z,Y){if(Z.type===Y)return Z;if(jS(Z)&&Y==="float")return NS(Z);if(IS(Z)&&Y==="int")return PS(Z);throw hQ.shouldNeverHappen()}function wS(Z,Y){return Z.alpha===Y.alpha&&Z.mode===Y.mode&&Z.notation===Y.notation&&Z.type===Y.type}function h7(Z,Y){let K=Z.match(/^(.+)%$/);if(!K)return Math.min(parseFloat(Z),Y);return Math.min(parseFloat(K[1])*0.01*Y,Y)}var RS={deg:(Z)=>Z,grad:(Z)=>Z*360/400,rad:(Z)=>Z*360/(2*Math.PI),turn:(Z)=>Z*360};function qH(Z){let Y=Z.match(/^([0-9.]+?)(deg|grad|rad|turn)$/);if(!Y)return parseFloat(Z);let K=parseFloat(Y[1]),z=Y[2];return RS[z](K)}function zH(Z){let Y=Z.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[h7(Y[1],255),h7(Y[2],255),h7(Y[3],255)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function VS(Z){let Y=zH(Z);return Y?new ZQ(Y,"rgb"):null}function $H(Z){let Y=Z.match(/^rgba\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[h7(Y[1],255),h7(Y[2],255),h7(Y[3],255),h7(Y[4],1)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function SS(Z){let Y=$H(Z);return Y?new ZQ(Y,"rgb"):null}function OH(Z){let Y=Z.match(/^hsl\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[qH(Y[1]),h7(Y[2],100),h7(Y[3],100)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function TS(Z){let Y=OH(Z);return Y?new ZQ(Y,"hsl"):null}function LH(Z){let Y=Z.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[qH(Y[1]),h7(Y[2],100),h7(Y[3],100),h7(Y[4],1)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function _S(Z){let Y=LH(Z);return Y?new ZQ(Y,"hsl"):null}function WH(Z){let Y=Z.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(Y)return[parseInt(Y[1]+Y[1],16),parseInt(Y[2]+Y[2],16),parseInt(Y[3]+Y[3],16)];let K=Z.match(/^(?:#|0x)([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);if(K)return[parseInt(K[1],16),parseInt(K[2],16),parseInt(K[3],16)];return null}function kS(Z){let Y=WH(Z);return Y?new ZQ(Y,"rgb"):null}function DH(Z){let Y=Z.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(Y)return[parseInt(Y[1]+Y[1],16),parseInt(Y[2]+Y[2],16),parseInt(Y[3]+Y[3],16),UQ(parseInt(Y[4]+Y[4],16),0,255,0,1)];let K=Z.match(/^(?:#|0x)?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);if(K)return[parseInt(K[1],16),parseInt(K[2],16),parseInt(K[3],16),UQ(parseInt(K[4],16),0,255,0,1)];return null}function ES(Z){let Y=DH(Z);return Y?new ZQ(Y,"rgb"):null}function HH(Z){let Y=Z.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!Y)return null;let K=[parseFloat(Y[1]),parseFloat(Y[2]),parseFloat(Y[3])];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function bW(Z){return(Y)=>{let K=HH(Y);return K?Q$(K,"rgb",Z):null}}function MH(Z){let Y=Z.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*a\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!Y)return null;let K=[parseFloat(Y[1]),parseFloat(Y[2]),parseFloat(Y[3]),parseFloat(Y[4])];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function yW(Z){return(Y)=>{let K=MH(Y);return K?Q$(K,"rgb",Z):null}}var CS=[{parser:WH,result:{alpha:!1,mode:"rgb",notation:"hex"}},{parser:DH,result:{alpha:!0,mode:"rgb",notation:"hex"}},{parser:zH,result:{alpha:!1,mode:"rgb",notation:"func"}},{parser:$H,result:{alpha:!0,mode:"rgb",notation:"func"}},{parser:OH,result:{alpha:!1,mode:"hsl",notation:"func"}},{parser:LH,result:{alpha:!0,mode:"hsl",notation:"func"}},{parser:HH,result:{alpha:!1,mode:"rgb",notation:"object"}},{parser:MH,result:{alpha:!0,mode:"rgb",notation:"object"}}];function xS(Z){return CS.reduce((Y,{parser:K,result:z})=>{if(Y)return Y;return K(Z)?z:null},null)}function hS(Z,Y="int"){let K=xS(Z);if(!K)return null;if(K.notation==="hex"&&Y!=="float")return Object.assign(Object.assign({},K),{type:"int"});if(K.notation==="func")return Object.assign(Object.assign({},K),{type:Y});return null}function W4(Z){let Y=[kS,ES,VS,SS,TS,_S];if(Z==="int")Y.push(bW("int"),yW("int"));if(Z==="float")Y.push(bW("float"),yW("float"));let K=YS(Y);return(z)=>{let $=K(z);return $?vZ($,Z):null}}function bS(Z){let Y=W4("int");if(typeof Z!=="string")return ZQ.black();let K=Y(Z);return K!==null&&K!==void 0?K:ZQ.black()}function FH(Z){let Y=QZ(Math.floor(Z),0,255).toString(16);return Y.length===1?`0${Y}`:Y}function Z$(Z,Y="#"){let K=S8(Z.getComponents("rgb")).map(FH).join("");return`${Y}${K}`}function X$(Z,Y="#"){let K=Z.getComponents("rgb"),z=[K[0],K[1],K[2],K[3]*255].map(FH).join("");return`${Y}${z}`}function BH(Z){let Y=eZ(0),K=vZ(Z,"int");return`rgb(${S8(K.getComponents("rgb")).map(($)=>Y($)).join(", ")})`}function m5(Z){let Y=eZ(2),K=eZ(0);return`rgba(${vZ(Z,"int").getComponents("rgb").map((F,B)=>{return(B===3?Y:K)(F)}).join(", ")})`}function yS(Z){let Y=[eZ(0),r5,r5],K=vZ(Z,"int");return`hsl(${S8(K.getComponents("hsl")).map(($,F)=>Y[F]($)).join(", ")})`}function fS(Z){let Y=[eZ(0),r5,r5,eZ(2)];return`hsla(${vZ(Z,"int").getComponents("hsl").map(($,F)=>Y[F]($)).join(", ")})`}function AH(Z,Y){let K=eZ(Y==="float"?2:0),z=["r","g","b"],$=vZ(Z,Y);return`{${S8($.getComponents("rgb")).map((B,j)=>`${z[j]}: ${K(B)}`).join(", ")}}`}function vS(Z){return(Y)=>AH(Y,Z)}function IH(Z,Y){let K=eZ(2),z=eZ(Y==="float"?2:0),$=["r","g","b","a"];return`{${vZ(Z,Y).getComponents("rgb").map((j,b)=>{let _=b===3?K:z;return`${$[b]}: ${_(j)}`}).join(", ")}}`}function uS(Z){return(Y)=>IH(Y,Z)}var gS=[{format:{alpha:!1,mode:"rgb",notation:"hex",type:"int"},stringifier:Z$},{format:{alpha:!0,mode:"rgb",notation:"hex",type:"int"},stringifier:X$},{format:{alpha:!1,mode:"rgb",notation:"func",type:"int"},stringifier:BH},{format:{alpha:!0,mode:"rgb",notation:"func",type:"int"},stringifier:m5},{format:{alpha:!1,mode:"hsl",notation:"func",type:"int"},stringifier:yS},{format:{alpha:!0,mode:"hsl",notation:"func",type:"int"},stringifier:fS},...["int","float"].reduce((Z,Y)=>{return[...Z,{format:{alpha:!1,mode:"rgb",notation:"object",type:Y},stringifier:vS(Y)},{format:{alpha:!0,mode:"rgb",notation:"object",type:Y},stringifier:uS(Y)}]},[])];function jH(Z){return gS.reduce((Y,K)=>{if(Y)return Y;return wS(K.format,Z)?K.stringifier:null},null)}var Z4=eJ("apl");class PH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Z4()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("div");K.classList.add(Z4("b")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(Z4("c")),K.appendChild(z),this.colorElem_=z;let $=Z.createElement("div");$.classList.add(Z4("m")),this.element.appendChild($),this.markerElem_=$;let F=Z.createElement("div");F.classList.add(Z4("p")),this.markerElem_.appendChild(F),this.previewElem_=F,this.update_()}update_(){let Z=this.value.rawValue,Y=Z.getComponents("rgb"),K=new ZQ([Y[0],Y[1],Y[2],0],"rgb"),z=new ZQ([Y[0],Y[1],Y[2],255],"rgb"),$=["to right",m5(K),m5(z)];this.colorElem_.style.background=`linear-gradient(${$.join(",")})`,this.previewElem_.style.backgroundColor=m5(Z);let F=UQ(Y[3],0,1,0,100);this.markerElem_.style.left=`${F}%`}onValueChange_(){this.update_()}}class NH{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new PH(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=Z.point.x/Z.bounds.width,z=this.value.rawValue,[$,F,B]=z.getComponents("hsv");this.value.setRawValue(new ZQ([$,F,B,K],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(v9(!0),GX(Z));if(Y===0)return;let K=this.value.rawValue,[z,$,F,B]=K.getComponents("hsv");this.value.setRawValue(new ZQ([z,$,F,B+Y],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(v9(!0),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var p1=eJ("coltxt");function dS(Z){let Y=Z.createElement("select"),K=[{text:"RGB",value:"rgb"},{text:"HSL",value:"hsl"},{text:"HSV",value:"hsv"},{text:"HEX",value:"hex"}];return Y.appendChild(K.reduce((z,$)=>{let F=Z.createElement("option");return F.textContent=$.text,F.value=$.value,z.appendChild(F),z},Z.createDocumentFragment())),Y}class wH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(p1()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(p1("m")),this.modeElem_=dS(Z),this.modeElem_.classList.add(p1("ms")),K.appendChild(this.modeSelectElement),Y.viewProps.bindDisabled(this.modeElem_);let z=Z.createElement("div");z.classList.add(p1("mm")),z.appendChild(o5(Z,"dropdown")),K.appendChild(z),this.element.appendChild(K);let $=Z.createElement("div");$.classList.add(p1("w")),this.element.appendChild($),this.inputsElem_=$,this.inputViews_=Y.inputViews,this.applyInputViews_(),QX(Y.mode,(F)=>{this.modeElem_.value=F})}get modeSelectElement(){return this.modeElem_}get inputViews(){return this.inputViews_}set inputViews(Z){this.inputViews_=Z,this.applyInputViews_()}applyInputViews_(){FD(this.inputsElem_);let Z=this.element.ownerDocument;this.inputViews_.forEach((Y)=>{let K=Z.createElement("div");K.classList.add(p1("c")),K.appendChild(Y.element),this.inputsElem_.appendChild(K)})}}function mS(Z){return eZ(Z==="float"?2:0)}function cS(Z,Y,K){let z=n1(Z,Y)[K];return new r1({min:0,max:z})}function pS(Z,Y,K){return new X6(Z,{arrayPosition:K===0?"fst":K===2?"lst":"mid",parser:Y.parser,props:vJ.fromObject({formatter:mS(Y.colorType),keyScale:v9(!1),pointerScale:Y.colorType==="float"?0.01:1}),value:VQ(0,{constraint:cS(Y.colorMode,Y.colorType,K)}),viewProps:Y.viewProps})}function sS(Z,Y){let K={colorMode:Y.colorMode,colorType:Y.colorType,parser:XX,viewProps:Y.viewProps};return[0,1,2].map((z)=>{let $=pS(Z,K,z);return Z6({primary:Y.value,secondary:$.value,forward(F){return vZ(F,Y.colorType).getComponents(Y.colorMode)[z]},backward(F,B){let j=Y.colorMode,_=vZ(F,Y.colorType).getComponents(j);_[z]=B;let y=Q$(QG(S8(_),_[3]),j,Y.colorType);return vZ(y,"int")}}),$})}function lS(Z,Y){let K=new i1(Z,{parser:W4("int"),props:vJ.fromObject({formatter:Z$}),value:VQ(ZQ.black()),viewProps:Y.viewProps});return Z6({primary:Y.value,secondary:K.value,forward:(z)=>new ZQ(S8(z.getComponents()),z.mode),backward:(z,$)=>new ZQ(QG(S8($.getComponents(z.mode)),z.getComponents()[3]),z.mode)}),[K]}function iS(Z){return Z!=="hex"}class RH{constructor(Z,Y){this.onModeSelectChange_=this.onModeSelectChange_.bind(this),this.colorType_=Y.colorType,this.value=Y.value,this.viewProps=Y.viewProps,this.colorMode=VQ(this.value.rawValue.mode),this.ccs_=this.createComponentControllers_(Z),this.view=new wH(Z,{mode:this.colorMode,inputViews:[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view],viewProps:this.viewProps}),this.view.modeSelectElement.addEventListener("change",this.onModeSelectChange_)}createComponentControllers_(Z){let Y=this.colorMode.rawValue;if(iS(Y))return sS(Z,{colorMode:Y,colorType:this.colorType_,value:this.value,viewProps:this.viewProps});return lS(Z,{value:this.value,viewProps:this.viewProps})}onModeSelectChange_(Z){let Y=Z.currentTarget;this.colorMode.rawValue=Y.value,this.ccs_=this.createComponentControllers_(this.view.element.ownerDocument),this.view.inputViews=this.ccs_.map((K)=>K.view)}}var Vz=eJ("hpl");class VH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Vz()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("div");K.classList.add(Vz("c")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(Vz("m")),this.element.appendChild(z),this.markerElem_=z,this.update_()}update_(){let Z=this.value.rawValue,[Y]=Z.getComponents("hsv");this.markerElem_.style.backgroundColor=BH(new ZQ([Y,100,100],"hsv"));let K=UQ(Y,0,360,0,100);this.markerElem_.style.left=`${K}%`}onValueChange_(){this.update_()}}class SH{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new VH(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=UQ(QZ(Z.point.x,0,Z.bounds.width),0,Z.bounds.width,0,360),z=this.value.rawValue,[,$,F,B]=z.getComponents("hsv");this.value.setRawValue(new ZQ([K,$,F,B],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(v9(!1),GX(Z));if(Y===0)return;let K=this.value.rawValue,[z,$,F,B]=K.getComponents("hsv");this.value.setRawValue(new ZQ([z+Y,$,F,B],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(v9(!1),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var Sz=eJ("svp"),fW=64;class TH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Sz()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("canvas");K.height=fW,K.width=fW,K.classList.add(Sz("c")),this.element.appendChild(K),this.canvasElement=K;let z=Z.createElement("div");z.classList.add(Sz("m")),this.element.appendChild(z),this.markerElem_=z,this.update_()}update_(){let Z=EV(this.canvasElement);if(!Z)return;let K=this.value.rawValue.getComponents("hsv"),z=this.canvasElement.width,$=this.canvasElement.height,F=Z.getImageData(0,0,z,$),B=F.data;for(let _=0;_<$;_++)for(let y=0;y<z;y++){let k=UQ(y,0,z,0,100),a=UQ(_,0,$,100,0),DJ=XH(K[0],k,a),_J=(_*z+y)*4;B[_J]=DJ[0],B[_J+1]=DJ[1],B[_J+2]=DJ[2],B[_J+3]=255}Z.putImageData(F,0,0);let j=UQ(K[1],0,100,0,100);this.markerElem_.style.left=`${j}%`;let b=UQ(K[2],0,100,100,0);this.markerElem_.style.top=`${b}%`}onValueChange_(){this.update_()}}class _H{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new TH(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=UQ(Z.point.x,0,Z.bounds.width,0,100),z=UQ(Z.point.y,0,Z.bounds.height,100,0),[$,,,F]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new ZQ([$,K,z,F],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){if(lD(Z.key))Z.preventDefault();let[Y,K,z,$]=this.value.rawValue.getComponents("hsv"),F=v9(!1),B=aZ(F,GX(Z)),j=aZ(F,G4(Z));if(B===0&&j===0)return;this.value.setRawValue(new ZQ([Y,K+B,z+j,$],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){let Y=v9(!1),K=aZ(Y,GX(Z)),z=aZ(Y,G4(Z));if(K===0&&z===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class kH{constructor(Z,Y){if(this.value=Y.value,this.viewProps=Y.viewProps,this.hPaletteC_=new SH(Z,{value:this.value,viewProps:this.viewProps}),this.svPaletteC_=new _H(Z,{value:this.value,viewProps:this.viewProps}),this.alphaIcs_=Y.supportsAlpha?{palette:new NH(Z,{value:this.value,viewProps:this.viewProps}),text:new X6(Z,{parser:XX,props:vJ.fromObject({pointerScale:0.01,keyScale:0.1,formatter:eZ(2)}),value:VQ(0,{constraint:new r1({min:0,max:1})}),viewProps:this.viewProps})}:null,this.alphaIcs_)Z6({primary:this.value,secondary:this.alphaIcs_.text.value,forward:(K)=>K.getComponents()[3],backward:(K,z)=>{let $=K.getComponents();return $[3]=z,new ZQ($,K.mode)}});this.textsC_=new RH(Z,{colorType:Y.colorType,value:this.value,viewProps:this.viewProps}),this.view=new KH(Z,{alphaViews:this.alphaIcs_?{palette:this.alphaIcs_.palette.view,text:this.alphaIcs_.text.view}:null,hPaletteView:this.hPaletteC_.view,supportsAlpha:Y.supportsAlpha,svPaletteView:this.svPaletteC_.view,textsView:this.textsC_.view,viewProps:this.viewProps})}get textsController(){return this.textsC_}}var Tz=eJ("colsw");class EH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.element=Z.createElement("div"),this.element.classList.add(Tz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(Tz("sw")),this.element.appendChild(K),this.swatchElem_=K;let z=Z.createElement("button");z.classList.add(Tz("b")),Y.viewProps.bindDisabled(z),this.element.appendChild(z),this.buttonElement=z,this.update_()}update_(){let Z=this.value.rawValue;this.swatchElem_.style.backgroundColor=X$(Z)}onValueChange_(){this.update_()}}class CH{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new EH(Z,{value:this.value,viewProps:this.viewProps})}}class XG{constructor(Z,Y){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.foldable_=$4.create(Y.expanded),this.swatchC_=new CH(Z,{value:this.value,viewProps:this.viewProps});let K=this.swatchC_.view.buttonElement;K.addEventListener("blur",this.onButtonBlur_),K.addEventListener("click",this.onButtonClick_),this.textC_=new i1(Z,{parser:Y.parser,props:vJ.fromObject({formatter:Y.formatter}),value:this.value,viewProps:this.viewProps}),this.view=new ZH(Z,{foldable:this.foldable_,pickerLayout:Y.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_=Y.pickerLayout==="popup"?new ez(Z,{viewProps:this.viewProps}):null;let z=new kH(Z,{colorType:Y.colorType,supportsAlpha:Y.supportsAlpha,value:this.value,viewProps:this.viewProps});if(z.view.allFocusableElements.forEach(($)=>{$.addEventListener("blur",this.onPopupChildBlur_),$.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=z,this.popC_)this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(z.view.element),Z6({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:($)=>$,backward:($,F)=>F});else if(this.view.pickerElement)this.view.pickerElement.appendChild(this.pickerC_.view.element),rz(this.foldable_,this.view.pickerElement)}get textController(){return this.textC_}onButtonBlur_(Z){if(!this.popC_)return;let Y=this.view.element,K=J7(Z.relatedTarget);if(!K||!Y.contains(K))this.popC_.shows.rawValue=!1}onButtonClick_(){if(this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded"))this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(Z){if(!this.popC_)return;let Y=this.popC_.view.element,K=BD(Z);if(K&&Y.contains(K))return;if(K&&K===this.swatchC_.view.buttonElement&&!mz(Y.ownerDocument))return;this.popC_.shows.rawValue=!1}onPopupChildKeydown_(Z){if(this.popC_){if(Z.key==="Escape")this.popC_.shows.rawValue=!1}else if(this.view.pickerElement){if(Z.key==="Escape")this.swatchC_.view.buttonElement.focus()}}}function nS(Z){return S8(Z.getComponents("rgb")).reduce((Y,K)=>{return Y<<8|Math.floor(K)&255},0)}function rS(Z){return Z.getComponents("rgb").reduce((Y,K,z)=>{let $=Math.floor(z===3?K*255:K)&255;return Y<<8|$},0)>>>0}function oS(Z){return new ZQ([Z>>16&255,Z>>8&255,Z&255],"rgb")}function tS(Z){return new ZQ([Z>>24&255,Z>>16&255,Z>>8&255,UQ(Z&255,0,255,0,1)],"rgb")}function aS(Z){if(typeof Z!=="number")return ZQ.black();return oS(Z)}function eS(Z){if(typeof Z!=="number")return ZQ.black();return tS(Z)}function c5(Z,Y){if(typeof Z!=="object"||MQ(Z))return!1;return Y in Z&&typeof Z[Y]==="number"}function xH(Z){return c5(Z,"r")&&c5(Z,"g")&&c5(Z,"b")}function hH(Z){return xH(Z)&&c5(Z,"a")}function bH(Z){return xH(Z)}function Y$(Z,Y){if(Z.mode!==Y.mode)return!1;if(Z.type!==Y.type)return!1;let K=Z.getComponents(),z=Y.getComponents();for(let $=0;$<K.length;$++)if(K[$]!==z[$])return!1;return!0}function vW(Z){return"a"in Z?[Z.r,Z.g,Z.b,Z.a]:[Z.r,Z.g,Z.b]}function JT(Z){let Y=jH(Z);return Y?(K,z)=>{L4(K,Y(z))}:null}function QT(Z){let Y=Z?rS:nS;return(K,z)=>{L4(K,Y(z))}}function ZT(Z,Y,K){let $=vZ(Y,K).toRgbaObject();Z.writeProperty("r",$.r),Z.writeProperty("g",$.g),Z.writeProperty("b",$.b),Z.writeProperty("a",$.a)}function XT(Z,Y,K){let $=vZ(Y,K).toRgbaObject();Z.writeProperty("r",$.r),Z.writeProperty("g",$.g),Z.writeProperty("b",$.b)}function YT(Z,Y){return(K,z)=>{if(Z)ZT(K,z,Y);else XT(K,z,Y)}}function GT(Z){var Y;if((Y=Z===null||Z===void 0?void 0:Z.color)===null||Y===void 0?void 0:Y.alpha)return!0;return!1}function KT(Z){return Z?(Y)=>X$(Y,"0x"):(Y)=>Z$(Y,"0x")}function UT(Z){if("color"in Z)return!0;if(Z.view==="color")return!0;return!1}var qT=uZ({id:"input-color-number",type:"input",accept:(Z,Y)=>{if(typeof Z!=="number")return null;if(!UT(Y))return null;let K=J$(Y);return K?{initialValue:Z,params:Object.assign(Object.assign({},K),{supportsAlpha:GT(Y)})}:null},binding:{reader:(Z)=>{return Z.params.supportsAlpha?eS:aS},equals:Y$,writer:(Z)=>{return QT(Z.params.supportsAlpha)}},controller:(Z)=>{var Y,K;return new XG(Z.document,{colorType:"int",expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:KT(Z.params.supportsAlpha),parser:W4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:Z.params.supportsAlpha,value:Z.value,viewProps:Z.viewProps})}});function zT(Z,Y){if(!bH(Z))return vZ(ZQ.black(),Y);if(Y==="int"){let K=vW(Z);return new ZQ(K,"rgb")}if(Y==="float"){let K=vW(Z);return new ZG(K,"rgb")}return vZ(ZQ.black(),"int")}function $T(Z){return hH(Z)}function OT(Z){return(Y)=>{let K=zT(Y,Z);return vZ(K,"int")}}function LT(Z,Y){return(K)=>{if(Z)return IH(K,Y);return AH(K,Y)}}var WT=uZ({id:"input-color-object",type:"input",accept:(Z,Y)=>{var K;if(!bH(Z))return null;let z=J$(Y);return z?{initialValue:Z,params:Object.assign(Object.assign({},z),{colorType:(K=UH(Y))!==null&&K!==void 0?K:"int"})}:null},binding:{reader:(Z)=>OT(Z.params.colorType),equals:Y$,writer:(Z)=>YT($T(Z.initialValue),Z.params.colorType)},controller:(Z)=>{var Y,K;let z=hH(Z.initialValue);return new XG(Z.document,{colorType:Z.params.colorType,expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:LT(z,Z.params.colorType),parser:W4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:z,value:Z.value,viewProps:Z.viewProps})}}),DT=uZ({id:"input-color-string",type:"input",accept:(Z,Y)=>{if(typeof Z!=="string")return null;if(Y.view==="text")return null;let K=hS(Z,UH(Y));if(!K)return null;let z=jH(K);if(!z)return null;let $=J$(Y);return $?{initialValue:Z,params:Object.assign(Object.assign({},$),{format:K,stringifier:z})}:null},binding:{reader:()=>bS,equals:Y$,writer:(Z)=>{let Y=JT(Z.params.format);if(!Y)throw hQ.notBindable();return Y}},controller:(Z)=>{var Y,K;return new XG(Z.document,{colorType:Z.params.format.type,expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:Z.params.stringifier,parser:W4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:Z.params.format.alpha,value:Z.value,viewProps:Z.viewProps})}});class YG{constructor(Z){this.components=Z.components,this.asm_=Z.assembly}constrain(Z){let Y=this.asm_.toComponents(Z).map((K,z)=>{var $,F;return(F=($=this.components[z])===null||$===void 0?void 0:$.constrain(K))!==null&&F!==void 0?F:K});return this.asm_.fromComponents(Y)}}var uW=eJ("pndtxt");class yH{constructor(Z,Y){this.textViews=Y.textViews,this.element=Z.createElement("div"),this.element.classList.add(uW()),this.textViews.forEach((K)=>{let z=Z.createElement("div");z.classList.add(uW("a")),z.appendChild(K.element),this.element.appendChild(z)})}}function HT(Z,Y,K){return new X6(Z,{arrayPosition:K===0?"fst":K===Y.axes.length-1?"lst":"mid",parser:Y.parser,props:Y.axes[K].textProps,value:VQ(0,{constraint:Y.axes[K].constraint}),viewProps:Y.viewProps})}class GG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.acs_=Y.axes.map((K,z)=>HT(Z,Y,z)),this.acs_.forEach((K,z)=>{Z6({primary:this.value,secondary:K.value,forward:($)=>Y.assembly.toComponents($)[z],backward:($,F)=>{let B=Y.assembly.toComponents($);return B[z]=F,Y.assembly.fromComponents(B)}})}),this.view=new yH(Z,{textViews:this.acs_.map((K)=>K.view)})}get textControllers(){return this.acs_}}class fH extends l1{get max(){return this.controller.valueController.sliderController.props.get("max")}set max(Z){this.controller.valueController.sliderController.props.set("max",Z)}get min(){return this.controller.valueController.sliderController.props.get("min")}set min(Z){this.controller.valueController.sliderController.props.set("min",Z)}}function MT(Z,Y){let K=[],z=UD(Z,Y);if(z)K.push(z);let $=qD(Z);if($)K.push($);let F=az(Z.options);if(F)K.push(F);return new J6(K)}var FT=uZ({id:"input-number",type:"input",accept:(Z,Y)=>{if(typeof Z!=="number")return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},$D(z)),{options:z.optional.custom(O4),readonly:z.optional.constant(!1)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>XD,constraint:(Z)=>MT(Z.params,Z.initialValue),writer:(Z)=>L4},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=K&&n5(K,Q6);if(z)return new YX(Z.document,{props:new vJ({options:z.values.value("options")}),value:Y,viewProps:Z.viewProps});let $=zD(Z.params,Y.rawValue),F=K&&n5(K,r1);if(F)return new K4(Z.document,Object.assign(Object.assign({},tD(Object.assign(Object.assign({},$),{keyScale:VQ($.keyScale),max:F.values.value("max"),min:F.values.value("min")}))),{parser:XX,value:Y,viewProps:Z.viewProps}));return new X6(Z.document,{parser:XX,props:vJ.fromObject($),value:Y,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="number")return null;if(Z.controller.valueController instanceof K4)return new fH(Z.controller);if(Z.controller.valueController instanceof YX)return new JG(Z.controller);return null}});class ZX{constructor(Z=0,Y=0){this.x=Z,this.y=Y}getComponents(){return[this.x,this.y]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K}=Z;if(typeof Y!=="number"||typeof K!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y}toObject(){return{x:this.x,y:this.y}}}var vH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new ZX(...Z)},s1=eJ("p2d");class uH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(s1()),Y.viewProps.bindClassModifiers(this.element),QX(Y.expanded,t1(this.element,s1(void 0,"expanded")));let K=Z.createElement("div");K.classList.add(s1("h")),this.element.appendChild(K);let z=Z.createElement("button");z.classList.add(s1("b")),z.appendChild(o5(Z,"p2dpad")),Y.viewProps.bindDisabled(z),K.appendChild(z),this.buttonElement=z;let $=Z.createElement("div");if($.classList.add(s1("t")),K.appendChild($),this.textElement=$,Y.pickerLayout==="inline"){let F=Z.createElement("div");F.classList.add(s1("p")),this.element.appendChild(F),this.pickerElement=F}else this.pickerElement=null}}var pX=eJ("p2dp");class gH{constructor(Z,Y){if(this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onPropsChange_=this.onPropsChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onPropsChange_),this.element=Z.createElement("div"),this.element.classList.add(pX()),Y.layout==="popup")this.element.classList.add(pX(void 0,"p"));Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(pX("p")),Y.viewProps.bindTabIndex(K),this.element.appendChild(K),this.padElement=K;let z=Z.createElementNS(R8,"svg");z.classList.add(pX("g")),this.padElement.appendChild(z),this.svgElem_=z;let $=Z.createElementNS(R8,"line");$.classList.add(pX("ax")),$.setAttributeNS(null,"x1","0"),$.setAttributeNS(null,"y1","50%"),$.setAttributeNS(null,"x2","100%"),$.setAttributeNS(null,"y2","50%"),this.svgElem_.appendChild($);let F=Z.createElementNS(R8,"line");F.classList.add(pX("ax")),F.setAttributeNS(null,"x1","50%"),F.setAttributeNS(null,"y1","0"),F.setAttributeNS(null,"x2","50%"),F.setAttributeNS(null,"y2","100%"),this.svgElem_.appendChild(F);let B=Z.createElementNS(R8,"line");B.classList.add(pX("l")),B.setAttributeNS(null,"x1","50%"),B.setAttributeNS(null,"y1","50%"),this.svgElem_.appendChild(B),this.lineElem_=B;let j=Z.createElement("div");j.classList.add(pX("m")),this.padElement.appendChild(j),this.markerElem_=j,Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.update_()}get allFocusableElements(){return[this.padElement]}update_(){let[Z,Y]=this.value.rawValue.getComponents(),K=this.props_.get("max"),z=UQ(Z,-K,+K,0,100),$=UQ(Y,-K,+K,0,100),F=this.props_.get("invertsY")?100-$:$;this.lineElem_.setAttributeNS(null,"x2",`${z}%`),this.lineElem_.setAttributeNS(null,"y2",`${F}%`),this.markerElem_.style.left=`${z}%`,this.markerElem_.style.top=`${F}%`}onValueChange_(){this.update_()}onPropsChange_(){this.update_()}onFoldableChange_(){this.update_()}}function gW(Z,Y,K){return[aZ(Y[0],GX(Z)),aZ(Y[1],G4(Z))*(K?1:-1)]}class dH{constructor(Z,Y){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPadKeyUp_=this.onPadKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new gH(Z,{layout:Y.layout,props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new rX(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_),this.view.padElement.addEventListener("keyup",this.onPadKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=this.props.get("max"),z=UQ(Z.point.x,0,Z.bounds.width,-K,+K),$=UQ(this.props.get("invertsY")?Z.bounds.height-Z.point.y:Z.point.y,0,Z.bounds.height,-K,+K);this.value.setRawValue(new ZX(z,$),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onPadKeyDown_(Z){if(lD(Z.key))Z.preventDefault();let[Y,K]=gW(Z,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));if(Y===0&&K===0)return;this.value.setRawValue(new ZX(this.value.rawValue.x+Y,this.value.rawValue.y+K),{forceEmit:!1,last:!1})}onPadKeyUp_(Z){let[Y,K]=gW(Z,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));if(Y===0&&K===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class mH{constructor(Z,Y){var K,z;this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.onPadButtonBlur_=this.onPadButtonBlur_.bind(this),this.onPadButtonClick_=this.onPadButtonClick_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.foldable_=$4.create(Y.expanded),this.popC_=Y.pickerLayout==="popup"?new ez(Z,{viewProps:this.viewProps}):null;let $=new dH(Z,{layout:Y.pickerLayout,props:new vJ({invertsY:VQ(Y.invertsY),max:VQ(Y.max),xKeyScale:Y.axes[0].textProps.value("keyScale"),yKeyScale:Y.axes[1].textProps.value("keyScale")}),value:this.value,viewProps:this.viewProps});if($.view.allFocusableElements.forEach((F)=>{F.addEventListener("blur",this.onPopupChildBlur_),F.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=$,this.textC_=new GG(Z,{assembly:vH,axes:Y.axes,parser:Y.parser,value:this.value,viewProps:this.viewProps}),this.view=new uH(Z,{expanded:this.foldable_.value("expanded"),pickerLayout:Y.pickerLayout,viewProps:this.viewProps}),this.view.textElement.appendChild(this.textC_.view.element),(K=this.view.buttonElement)===null||K===void 0||K.addEventListener("blur",this.onPadButtonBlur_),(z=this.view.buttonElement)===null||z===void 0||z.addEventListener("click",this.onPadButtonClick_),this.popC_)this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),Z6({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:(F)=>F,backward:(F,B)=>B});else if(this.view.pickerElement)this.view.pickerElement.appendChild(this.pickerC_.view.element),rz(this.foldable_,this.view.pickerElement)}get textController(){return this.textC_}onPadButtonBlur_(Z){if(!this.popC_)return;let Y=this.view.element,K=J7(Z.relatedTarget);if(!K||!Y.contains(K))this.popC_.shows.rawValue=!1}onPadButtonClick_(){if(this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded"))this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(Z){if(!this.popC_)return;let Y=this.popC_.view.element,K=BD(Z);if(K&&Y.contains(K))return;if(K&&K===this.view.buttonElement&&!mz(Y.ownerDocument))return;this.popC_.shows.rawValue=!1}onPopupChildKeydown_(Z){if(this.popC_){if(Z.key==="Escape")this.popC_.shows.rawValue=!1}else if(this.view.pickerElement){if(Z.key==="Escape")this.view.buttonElement.focus()}}}function BT(Z){return ZX.isObject(Z)?new ZX(Z.x,Z.y):new ZX}function AT(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y)}function IT(Z,Y){return new YG({assembly:vH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y)]})}function dW(Z,Y){var K,z;if(!MQ(Z.min)||!MQ(Z.max))return Math.max(Math.abs((K=Z.min)!==null&&K!==void 0?K:0),Math.abs((z=Z.max)!==null&&z!==void 0?z:0));let $=GD(Z);return Math.max(Math.abs($)*10,Math.abs(Y)*10)}function jT(Z,Y){var K,z;let $=dW(f9(Z,(K=Z.x)!==null&&K!==void 0?K:{}),Y.x),F=dW(f9(Z,(z=Z.y)!==null&&z!==void 0?z:{}),Y.y);return Math.max($,F)}function PT(Z){if(!("y"in Z))return!1;let Y=Z.y;if(!Y)return!1;return"inverted"in Y?!!Y.inverted:!1}var NT=uZ({id:"input-point2d",type:"input",accept:(Z,Y)=>{if(!ZX.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},U4(z)),{expanded:z.optional.boolean,picker:z.optional.custom(eD),readonly:z.optional.constant(!1),x:z.optional.custom(lX),y:z.optional.object(Object.assign(Object.assign({},U4(z)),{inverted:z.optional.boolean}))}));return K?{initialValue:Z,params:K}:null},binding:{reader:()=>BT,constraint:(Z)=>IT(Z.params,Z.initialValue),equals:ZX.equals,writer:()=>AT},controller:(Z)=>{var Y,K;let{document:z,value:$,constraint:F}=Z,B=[Z.params.x,Z.params.y];return new mH(z,{axes:$.rawValue.getComponents().map((j,b)=>{var _;return dz({constraint:F.components[b],initialValue:j,params:f9(Z.params,(_=B[b])!==null&&_!==void 0?_:{})})}),expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,invertsY:PT(Z.params),max:jT(Z.params,$.rawValue),parser:XX,pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",value:$,viewProps:Z.viewProps})}});class b9{constructor(Z=0,Y=0,K=0){this.x=Z,this.y=Y,this.z=K}getComponents(){return[this.x,this.y,this.z]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K,z}=Z;if(typeof Y!=="number"||typeof K!=="number"||typeof z!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y&&Z.z===Y.z}toObject(){return{x:this.x,y:this.y,z:this.z}}}var cH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new b9(...Z)};function wT(Z){return b9.isObject(Z)?new b9(Z.x,Z.y,Z.z):new b9}function RT(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y),Z.writeProperty("z",Y.z)}function VT(Z,Y){return new YG({assembly:cH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y),JX(Object.assign(Object.assign({},Z),Z.z),Y.z)]})}var ST=uZ({id:"input-point3d",type:"input",accept:(Z,Y)=>{if(!b9.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},U4(z)),{readonly:z.optional.constant(!1),x:z.optional.custom(lX),y:z.optional.custom(lX),z:z.optional.custom(lX)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>wT,constraint:(Z)=>VT(Z.params,Z.initialValue),equals:b9.equals,writer:(Z)=>RT},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=[Z.params.x,Z.params.y,Z.params.z];return new GG(Z.document,{assembly:cH,axes:Y.rawValue.getComponents().map(($,F)=>{var B;return dz({constraint:K.components[F],initialValue:$,params:f9(Z.params,(B=z[F])!==null&&B!==void 0?B:{})})}),parser:XX,value:Y,viewProps:Z.viewProps})}});class y9{constructor(Z=0,Y=0,K=0,z=0){this.x=Z,this.y=Y,this.z=K,this.w=z}getComponents(){return[this.x,this.y,this.z,this.w]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K,z,w:$}=Z;if(typeof Y!=="number"||typeof K!=="number"||typeof z!=="number"||typeof $!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y&&Z.z===Y.z&&Z.w===Y.w}toObject(){return{x:this.x,y:this.y,z:this.z,w:this.w}}}var pH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new y9(...Z)};function TT(Z){return y9.isObject(Z)?new y9(Z.x,Z.y,Z.z,Z.w):new y9}function _T(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y),Z.writeProperty("z",Y.z),Z.writeProperty("w",Y.w)}function kT(Z,Y){return new YG({assembly:pH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y),JX(Object.assign(Object.assign({},Z),Z.z),Y.z),JX(Object.assign(Object.assign({},Z),Z.w),Y.w)]})}var ET=uZ({id:"input-point4d",type:"input",accept:(Z,Y)=>{if(!y9.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},U4(z)),{readonly:z.optional.constant(!1),w:z.optional.custom(lX),x:z.optional.custom(lX),y:z.optional.custom(lX),z:z.optional.custom(lX)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>TT,constraint:(Z)=>kT(Z.params,Z.initialValue),equals:y9.equals,writer:(Z)=>_T},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=[Z.params.x,Z.params.y,Z.params.z,Z.params.w];return new GG(Z.document,{assembly:pH,axes:Y.rawValue.getComponents().map(($,F)=>{var B;return dz({constraint:K.components[F],initialValue:$,params:f9(Z.params,(B=z[F])!==null&&B!==void 0?B:{})})}),parser:XX,value:Y,viewProps:Z.viewProps})}});function CT(Z){let Y=[],K=az(Z.options);if(K)Y.push(K);return new J6(Y)}var xT=uZ({id:"input-string",type:"input",accept:(Z,Y)=>{if(typeof Z!=="string")return null;let K=kQ(Y,(z)=>({readonly:z.optional.constant(!1),options:z.optional.custom(O4)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>sD,constraint:(Z)=>CT(Z.params),writer:(Z)=>L4},controller:(Z)=>{let{document:Y,value:K,constraint:z}=Z,$=z&&n5(z,Q6);if($)return new YX(Y,{props:new vJ({options:$.values.value("options")}),value:K,viewProps:Z.viewProps});return new i1(Y,{parser:(F)=>F,props:vJ.fromObject({formatter:hz}),value:K,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="string")return null;if(Z.controller.valueController instanceof YX)return new JG(Z.controller);return null}}),D4={monitor:{defaultInterval:200,defaultRows:3}},mW=eJ("mll");class sH{constructor(Z,Y){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=Y.formatter,this.element=Z.createElement("div"),this.element.classList.add(mW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("textarea");K.classList.add(mW("i")),K.style.height=`calc(var(${aD("containerUnitSize")}) * ${Y.rows})`,K.readOnly=!0,Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.textareaElem_=K,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}update_(){let Z=this.textareaElem_,Y=Z.scrollTop===Z.scrollHeight-Z.clientHeight,K=[];if(this.value.rawValue.forEach((z)=>{if(z!==void 0)K.push(this.formatter_(z))}),Z.textContent=K.join(`
|
|
172
|
-
`),Y)Z.scrollTop=Z.scrollHeight}onValueUpdate_(){this.update_()}}class KG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new sH(Z,{formatter:Y.formatter,rows:Y.rows,value:this.value,viewProps:this.viewProps})}}var cW=eJ("sgl");class lH{constructor(Z,Y){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=Y.formatter,this.element=Z.createElement("div"),this.element.classList.add(cW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("input");K.classList.add(cW("i")),K.readOnly=!0,K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}update_(){let Z=this.value.rawValue,Y=Z[Z.length-1];this.inputElement.value=Y!==void 0?this.formatter_(Y):""}onValueUpdate_(){this.update_()}}class UG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new lH(Z,{formatter:Y.formatter,value:this.value,viewProps:this.viewProps})}}var hT=uZ({id:"monitor-bool",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="boolean")return null;let K=kQ(Y,(z)=>({readonly:z.required.constant(!0),rows:z.optional.number}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>pD},controller:(Z)=>{var Y;if(Z.value.rawValue.length===1)return new UG(Z.document,{formatter:xW,value:Z.value,viewProps:Z.viewProps});return new KG(Z.document,{formatter:xW,rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:D4.monitor.defaultRows,value:Z.value,viewProps:Z.viewProps})}});class iH extends l1{get max(){return this.controller.valueController.props.get("max")}set max(Z){this.controller.valueController.props.set("max",Z)}get min(){return this.controller.valueController.props.get("min")}set min(Z){this.controller.valueController.props.set("min",Z)}}var sX=eJ("grl");class nH{constructor(Z,Y){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(sX()),Y.viewProps.bindClassModifiers(this.element),this.formatter_=Y.formatter,this.props_=Y.props,this.cursor_=Y.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);let K=Z.createElementNS(R8,"svg");K.classList.add(sX("g")),K.style.height=`calc(var(${aD("containerUnitSize")}) * ${Y.rows})`,this.element.appendChild(K),this.svgElem_=K;let z=Z.createElementNS(R8,"polyline");this.svgElem_.appendChild(z),this.lineElem_=z;let $=Z.createElement("div");$.classList.add(sX("t"),eJ("tt")()),this.element.appendChild($),this.tooltipElem_=$,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}get graphElement(){return this.svgElem_}update_(){let{clientWidth:Z,clientHeight:Y}=this.element,K=this.value.rawValue.length-1,z=this.props_.get("min"),$=this.props_.get("max"),F=[];this.value.rawValue.forEach((y,k)=>{if(y===void 0)return;let a=UQ(k,0,K,0,Z),DJ=UQ(y,z,$,Y,0);F.push([a,DJ].join(","))}),this.lineElem_.setAttributeNS(null,"points",F.join(" "));let B=this.tooltipElem_,j=this.value.rawValue[this.cursor_.rawValue];if(j===void 0){B.classList.remove(sX("t","a"));return}let b=UQ(this.cursor_.rawValue,0,K,0,Z),_=UQ(j,z,$,Y,0);if(B.style.left=`${b}px`,B.style.top=`${_}px`,B.textContent=`${this.formatter_(j)}`,!B.classList.contains(sX("t","a")))B.classList.add(sX("t","a"),sX("t","in")),s5(B),B.classList.remove(sX("t","in"))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class G${constructor(Z,Y){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.cursor_=VQ(-1),this.view=new nH(Z,{cursor:this.cursor_,formatter:Y.formatter,rows:Y.rows,props:this.props,value:this.value,viewProps:this.viewProps}),!mz(Z))this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_);else{let K=new rX(this.view.element);K.emitter.on("down",this.onGraphPointerDown_),K.emitter.on("move",this.onGraphPointerMove_),K.emitter.on("up",this.onGraphPointerUp_)}}importProps(Z){return F7(Z,null,(Y)=>({max:Y.required.number,min:Y.required.number}),(Y)=>{return this.props.set("max",Y.max),this.props.set("min",Y.min),!0})}exportProps(){return B7(null,{max:this.props.get("max"),min:this.props.get("min")})}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(Z){let{clientWidth:Y}=this.view.element;this.cursor_.rawValue=Math.floor(UQ(Z.offsetX,0,Y,0,this.value.rawValue.length))}onGraphPointerDown_(Z){this.onGraphPointerMove_(Z)}onGraphPointerMove_(Z){if(!Z.data.point){this.cursor_.rawValue=-1;return}this.cursor_.rawValue=Math.floor(UQ(Z.data.point.x,0,Z.data.bounds.width,0,this.value.rawValue.length))}onGraphPointerUp_(){this.cursor_.rawValue=-1}}function bz(Z){return!MQ(Z.format)?Z.format:eZ(2)}function bT(Z){var Y;if(Z.value.rawValue.length===1)return new UG(Z.document,{formatter:bz(Z.params),value:Z.value,viewProps:Z.viewProps});return new KG(Z.document,{formatter:bz(Z.params),rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:D4.monitor.defaultRows,value:Z.value,viewProps:Z.viewProps})}function yT(Z){var Y,K,z;return new G$(Z.document,{formatter:bz(Z.params),rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:D4.monitor.defaultRows,props:vJ.fromObject({max:(K=Z.params.max)!==null&&K!==void 0?K:100,min:(z=Z.params.min)!==null&&z!==void 0?z:0}),value:Z.value,viewProps:Z.viewProps})}function pW(Z){return Z.view==="graph"}var fT=uZ({id:"monitor-number",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="number")return null;let K=kQ(Y,(z)=>({format:z.optional.function,max:z.optional.number,min:z.optional.number,readonly:z.required.constant(!0),rows:z.optional.number,view:z.optional.string}));return K?{initialValue:Z,params:K}:null},binding:{defaultBufferSize:(Z)=>pW(Z)?64:1,reader:(Z)=>XD},controller:(Z)=>{if(pW(Z.params))return yT(Z);return bT(Z)},api:(Z)=>{if(Z.controller.valueController instanceof G$)return new iH(Z.controller);return null}}),vT=uZ({id:"monitor-string",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="string")return null;let K=kQ(Y,(z)=>({multiline:z.optional.boolean,readonly:z.required.constant(!0),rows:z.optional.number}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>sD},controller:(Z)=>{var Y;let K=Z.value;if(K.rawValue.length>1||Z.params.multiline)return new KG(Z.document,{formatter:hz,rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:D4.monitor.defaultRows,value:K,viewProps:Z.viewProps});return new UG(Z.document,{formatter:hz,value:K,viewProps:Z.viewProps})}});class rH{constructor(){this.map_=new Map}get(Z){var Y;return(Y=this.map_.get(Z))!==null&&Y!==void 0?Y:null}has(Z){return this.map_.has(Z)}add(Z,Y){return this.map_.set(Z,Y),Z.viewProps.handleDispose(()=>{this.map_.delete(Z)}),Y}}class oH{constructor(Z){this.target=Z.target,this.reader_=Z.reader,this.writer_=Z.writer}read(){return this.reader_(this.target.read())}write(Z){this.writer_(this.target,Z)}inject(Z){this.write(this.reader_(Z))}}function uT(Z,Y){var K;let z=Z.accept(Y.target.read(),Y.params);if(MQ(z))return null;let $={target:Y.target,initialValue:z.initialValue,params:z.params},F=kQ(Y.params,(k)=>({disabled:k.optional.boolean,hidden:k.optional.boolean,label:k.optional.string,tag:k.optional.string})),B=Z.binding.reader($),j=Z.binding.constraint?Z.binding.constraint($):void 0,b=new oH({reader:B,target:Y.target,writer:Z.binding.writer($)}),_=new DD(VQ(B(z.initialValue),{constraint:j,equals:Z.binding.equals}),b),y=Z.controller({constraint:j,document:Y.document,initialValue:z.initialValue,params:z.params,value:_,viewProps:KX.create({disabled:F===null||F===void 0?void 0:F.disabled,hidden:F===null||F===void 0?void 0:F.hidden})});return new AD(Y.document,{blade:e1(),props:vJ.fromObject({label:"label"in Y.params?(K=F===null||F===void 0?void 0:F.label)!==null&&K!==void 0?K:null:Y.target.key}),tag:F===null||F===void 0?void 0:F.tag,value:_,valueController:y})}class tH{constructor(Z){this.target=Z.target,this.reader_=Z.reader}read(){return this.reader_(this.target.read())}}function gT(Z,Y){return Y===0?new uD:new gD(Z,Y!==null&&Y!==void 0?Y:D4.monitor.defaultInterval)}function dT(Z,Y){var K,z,$;let F=Z.accept(Y.target.read(),Y.params);if(MQ(F))return null;let B={target:Y.target,initialValue:F.initialValue,params:F.params},j=kQ(Y.params,(a)=>({bufferSize:a.optional.number,disabled:a.optional.boolean,hidden:a.optional.boolean,interval:a.optional.number,label:a.optional.string})),b=Z.binding.reader(B),_=(z=(K=j===null||j===void 0?void 0:j.bufferSize)!==null&&K!==void 0?K:Z.binding.defaultBufferSize&&Z.binding.defaultBufferSize(F.params))!==null&&z!==void 0?z:1,y=new jD({binding:new tH({reader:b,target:Y.target}),bufferSize:_,ticker:gT(Y.document,j===null||j===void 0?void 0:j.interval)}),k=Z.controller({document:Y.document,params:F.params,value:y,viewProps:KX.create({disabled:j===null||j===void 0?void 0:j.disabled,hidden:j===null||j===void 0?void 0:j.hidden})});return k.viewProps.bindDisabled(y.ticker),k.viewProps.handleDispose(()=>{y.ticker.dispose()}),new PD(Y.document,{blade:e1(),props:vJ.fromObject({label:"label"in Y.params?($=j===null||j===void 0?void 0:j.label)!==null&&$!==void 0?$:null:Y.target.key}),value:y,valueController:k})}class aH{constructor(Z){this.pluginsMap_={blades:[],inputs:[],monitors:[]},this.apiCache_=Z}getAll(){return[...this.pluginsMap_.blades,...this.pluginsMap_.inputs,...this.pluginsMap_.monitors]}register(Z,Y){if(!qS(Y.core))throw hQ.notCompatible(Z,Y.id);if(Y.type==="blade")this.pluginsMap_.blades.unshift(Y);else if(Y.type==="input")this.pluginsMap_.inputs.unshift(Y);else if(Y.type==="monitor")this.pluginsMap_.monitors.unshift(Y)}createInput_(Z,Y,K){return this.pluginsMap_.inputs.reduce((z,$)=>z!==null&&z!==void 0?z:uT($,{document:Z,target:Y,params:K}),null)}createMonitor_(Z,Y,K){return this.pluginsMap_.monitors.reduce((z,$)=>z!==null&&z!==void 0?z:dT($,{document:Z,params:K,target:Y}),null)}createBinding(Z,Y,K){let z=Y.read();if(MQ(z))throw new hQ({context:{key:Y.key},type:"nomatchingcontroller"});let $=this.createInput_(Z,Y,K);if($)return $;let F=this.createMonitor_(Z,Y,K);if(F)return F;throw new hQ({context:{key:Y.key},type:"nomatchingcontroller"})}createBlade(Z,Y){let K=this.pluginsMap_.blades.reduce((z,$)=>z!==null&&z!==void 0?z:ZS($,{document:Z,params:Y}),null);if(!K)throw new hQ({type:"nomatchingview",context:{params:Y}});return K}createInputBindingApi_(Z){let Y=this.pluginsMap_.inputs.reduce((K,z)=>{var $,F;if(K)return K;return(F=($=z.api)===null||$===void 0?void 0:$.call(z,{controller:Z}))!==null&&F!==void 0?F:null},null);return this.apiCache_.add(Z,Y!==null&&Y!==void 0?Y:new l1(Z))}createMonitorBindingApi_(Z){let Y=this.pluginsMap_.monitors.reduce((K,z)=>{var $,F;if(K)return K;return(F=($=z.api)===null||$===void 0?void 0:$.call(z,{controller:Z}))!==null&&F!==void 0?F:null},null);return this.apiCache_.add(Z,Y!==null&&Y!==void 0?Y:new l1(Z))}createBindingApi(Z){if(this.apiCache_.has(Z))return this.apiCache_.get(Z);if(vV(Z))return this.createInputBindingApi_(Z);if(cV(Z))return this.createMonitorBindingApi_(Z);throw hQ.shouldNeverHappen()}createApi(Z){if(this.apiCache_.has(Z))return this.apiCache_.get(Z);if(fV(Z))return this.createBindingApi(Z);let Y=this.pluginsMap_.blades.reduce((K,z)=>K!==null&&K!==void 0?K:z.api({controller:Z,pool:this}),null);if(!Y)throw hQ.shouldNeverHappen();return this.apiCache_.add(Z,Y)}}var mT=new rH;function cT(){let Z=new aH(mT);return[NT,ST,ET,xT,FT,DT,WT,qT,$S,hT,vT,fT,sV,JS,vD].forEach((Y)=>{Z.register("core",Y)}),Z}class eH extends nX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new o1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get options(){return this.controller.valueController.props.get("options")}set options(Z){this.controller.valueController.props.set("options",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}class JM extends nX{}class QM extends nX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new o1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get max(){return this.controller.valueController.sliderController.props.get("max")}set max(Z){this.controller.valueController.sliderController.props.set("max",Z)}get min(){return this.controller.valueController.sliderController.props.get("min")}set min(Z){this.controller.valueController.sliderController.props.set("min",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}class ZM extends nX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new o1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get formatter(){return this.controller.valueController.props.get("formatter")}set formatter(Z){this.controller.valueController.props.set("formatter",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}var pT=function(){return{id:"list",type:"blade",core:a1,accept(Z){let Y=kQ(Z,(K)=>({options:K.required.custom(O4),value:K.required.raw,view:K.required.constant("list"),label:K.optional.string}));return Y?{params:Y}:null},controller(Z){let Y=new Q6(tz(Z.params.options)),K=VQ(Z.params.value,{constraint:Y}),z=new YX(Z.document,{props:new vJ({options:Y.values.value("options")}),value:K,viewProps:Z.viewProps});return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:K,valueController:z})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof YX))return null;return new eH(Z.controller)}}}();class XM extends oz{constructor(Z,Y){super(Z,Y)}get element(){return this.controller.view.element}}class YM extends l5{constructor(Z,Y){super(Z,{expanded:Y.expanded,blade:Y.blade,props:Y.props,root:!0,viewProps:Y.viewProps})}}var sW=eJ("spr");class GM{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(sW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("hr");K.classList.add(sW("r")),this.element.appendChild(K)}}class yz extends z4{constructor(Z,Y){super(Object.assign(Object.assign({},Y),{view:new GM(Z,{viewProps:Y.viewProps})}))}}var sT={id:"separator",type:"blade",core:a1,accept(Z){let Y=kQ(Z,(K)=>({view:K.required.constant("separator")}));return Y?{params:Y}:null},controller(Z){return new yz(Z.document,{blade:Z.blade,viewProps:Z.viewProps})},api(Z){if(!(Z.controller instanceof yz))return null;return new JM(Z.controller)}},lT={id:"slider",type:"blade",core:a1,accept(Z){let Y=kQ(Z,(K)=>({max:K.required.number,min:K.required.number,view:K.required.constant("slider"),format:K.optional.function,label:K.optional.string,value:K.optional.number}));return Y?{params:Y}:null},controller(Z){var Y,K;let z=(Y=Z.params.value)!==null&&Y!==void 0?Y:0,$=new r1({max:Z.params.max,min:Z.params.min}),F=VQ(z,{constraint:$}),B=new K4(Z.document,Object.assign(Object.assign({},tD({formatter:(K=Z.params.format)!==null&&K!==void 0?K:PV,keyScale:VQ(1),max:$.values.value("max"),min:$.values.value("min"),pointerScale:KD(Z.params,z)})),{parser:XX,value:F,viewProps:Z.viewProps}));return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:F,valueController:B})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof K4))return null;return new QM(Z.controller)}},iT=function(){return{id:"text",type:"blade",core:a1,accept(Z){let Y=kQ(Z,(K)=>({parse:K.required.function,value:K.required.raw,view:K.required.constant("text"),format:K.optional.function,label:K.optional.string}));return Y?{params:Y}:null},controller(Z){var Y;let K=VQ(Z.params.value),z=new i1(Z.document,{parser:Z.params.parse,props:vJ.fromObject({formatter:(Y=Z.params.format)!==null&&Y!==void 0?Y:($)=>String($)}),value:K,viewProps:Z.viewProps});return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:K,valueController:z})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof i1))return null;return new ZM(Z.controller)}}}();function nT(Z){let Y=Z.createElement("div");if(Y.classList.add(eJ("dfw")()),Z.body)Z.body.appendChild(Y);return Y}function rT(Z,Y,K){if(Z.querySelector(`style[data-tp-style=${Y}]`))return;let z=Z.createElement("style");z.dataset.tpStyle=Y,z.textContent=K,Z.head.appendChild(z)}class K$ extends XM{constructor(Z){var Y,K;let z=Z!==null&&Z!==void 0?Z:{},$=(Y=z.document)!==null&&Y!==void 0?Y:kV(),F=cT(),B=new YM($,{expanded:z.expanded,blade:e1(),props:vJ.fromObject({title:z.title}),viewProps:KX.create()});super(B,F);this.pool_=F,this.containerElem_=(K=z.container)!==null&&K!==void 0?K:nT($),this.containerElem_.appendChild(this.element),this.doc_=$,this.usesDefaultWrapper_=!z.container,this.setUpDefaultPlugins_()}get document(){if(!this.doc_)throw hQ.alreadyDisposed();return this.doc_}dispose(){let Z=this.containerElem_;if(!Z)throw hQ.alreadyDisposed();if(this.usesDefaultWrapper_){let Y=Z.parentElement;if(Y)Y.removeChild(Z)}this.containerElem_=null,this.doc_=null,super.dispose()}registerPlugin(Z){if(Z.css)rT(this.document,`plugin-${Z.id}`,Z.css);("plugin"in Z?[Z.plugin]:("plugins"in Z)?Z.plugins:[]).forEach((K)=>{this.pool_.register(Z.id,K)})}setUpDefaultPlugins_(){this.registerPlugin({id:"default",css:".tp-tbiv_b,.tp-coltxtv_ms,.tp-colswv_b,.tp-ckbv_i,.tp-sglv_i,.tp-mllv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-rotv_b,.tp-fldv_b,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--bld-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--cnt-usz);line-height:var(--cnt-usz);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tbpv_c>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-vp))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tbpv_c>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--cnt-usp)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tbpv_c>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tbpv_c>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tbpv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tbpv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tbpv_c>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tbpv_c>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--bld-br);border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tbpv_c .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-cntv+.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-cntv+.tp-fldv>.tp-fldv_b{border-top-left-radius:0}.tp-tbpv_c>.tp-cntv+.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-cntv+.tp-tabv>.tp-tabv_t{border-top-left-radius:0}.tp-tbpv_c>.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-tabv>.tp-tabv_t{border-top-left-radius:var(--bld-br)}.tp-tbpv_c .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--bld-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);overflow:hidden;padding-left:var(--cnt-hp);padding-right:calc(4px + var(--cnt-usz) + var(--cnt-hp));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:\"\";display:block;height:6px;right:calc(var(--cnt-hp) + (var(--cnt-usz) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-vp);padding-top:var(--cnt-vp);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--cnt-usz);line-height:var(--cnt-usz);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-sglv_i,.tp-mllv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--mo-fg);height:var(--cnt-usz);scrollbar-color:currentColor rgba(0,0,0,0);scrollbar-width:thin;width:100%}.tp-sglv_i::-webkit-scrollbar,.tp-mllv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-sglv_i::-webkit-scrollbar-corner,.tp-mllv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:rgba(0,0,0,0)}.tp-sglv_i::-webkit-scrollbar-thumb,.tp-mllv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:rgba(0,0,0,0) solid 2px;border-radius:4px}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-rotv{--bs-bg: var(--tp-base-background-color, hsl(230, 7%, 17%));--bs-br: var(--tp-base-border-radius, 6px);--bs-ff: var(--tp-base-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--bld-br: var(--tp-blade-border-radius, 2px);--bld-hp: var(--tp-blade-horizontal-padding, 4px);--bld-vw: var(--tp-blade-value-width, 160px);--btn-bg: var(--tp-button-background-color, hsl(230, 7%, 70%));--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, hsl(230, 7%, 17%));--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, hsl(230, 7%, 75%));--cnt-hp: var(--tp-container-horizontal-padding, 4px);--cnt-vp: var(--tp-container-vertical-padding, 4px);--cnt-usp: var(--tp-container-unit-spacing, 4px);--cnt-usz: var(--tp-container-unit-size, 20px);--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, hsl(230, 7%, 75%));--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--bld-br);cursor:pointer;display:block;height:var(--cnt-usz);position:relative;width:var(--cnt-usz)}.tp-ckbv_w svg{display:block;height:16px;inset:0;margin:auto;opacity:0;position:absolute;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--cnt-usz)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-expanded.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--cnt-usp);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--cnt-usp)}.tp-colpv_rgb{display:flex;margin-top:var(--cnt-usp);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-vp);padding-top:calc(var(--cnt-vp) + 2px);position:relative}.tp-colpv_a::before{background-color:var(--grv-fg);content:\"\";height:2px;left:calc(-1*var(--cnt-hp));position:absolute;right:calc(-1*var(--cnt-hp));top:0}.tp-colpv.tp-v-disabled .tp-colpv_a::before{opacity:.5}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--bld-br);outline:none;overflow:hidden;position:relative}.tp-svpv.tp-v-disabled{opacity:.5}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--cnt-usz)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative}.tp-hplv.tp-v-disabled{opacity:.5}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative;width:100%}.tp-aplv.tp-v-disabled{opacity:.5}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{inset:0;position:absolute}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--bld-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;inset:0;position:absolute}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--bld-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{cursor:pointer;display:block;height:var(--cnt-usz);left:0;position:absolute;top:0;width:var(--cnt-usz)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--bld-br);content:\"\";display:block;inset:0;position:absolute}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--bld-br);color:var(--lbl-fg);cursor:pointer;height:var(--cnt-usz);line-height:var(--cnt-usz);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv.tp-v-disabled .tp-coltxtv_mm{opacity:.5}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv{position:relative}.tp-fldv_t{padding-left:4px}.tp-fldv_b:disabled .tp-fldv_m{display:none}.tp-fldv_c{padding-left:4px}.tp-fldv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-fldv_i::before{background-color:currentColor;bottom:0;content:\"\";left:0;position:absolute;top:0;width:4px}.tp-fldv_b:hover+.tp-fldv_i{color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_i{color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_i{color:var(--cnt-bg-a)}.tp-fldv.tp-v-disabled>.tp-fldv_i{opacity:.5}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--cnt-usz)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-hp);padding-right:var(--cnt-hp)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:var(--bld-vw)}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 var(--bld-hp);width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--cnt-usz)*3);line-height:var(--cnt-usz);padding-left:var(--bld-hp);padding-right:var(--bld-hp);resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--cnt-usz);margin-right:4px;position:relative;width:var(--cnt-usz)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--cnt-usp);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-p2dpv{padding-left:calc(var(--cnt-usz) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv.tp-v-disabled .tp-p2dpv_p{opacity:.5}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:var(--bld-vw);padding:var(--cnt-vp) var(--cnt-hp);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--cnt-usz);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;content:\"\";display:block;height:2px;inset:0;margin:auto;position:absolute}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;content:\"\";display:block;height:2px;inset:0;margin-bottom:auto;margin-top:auto;position:absolute}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--bld-br);bottom:0;content:\"\";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv{position:relative}.tp-tabv_t{align-items:flex-end;color:var(--cnt-bg);display:flex;overflow:hidden;position:relative}.tp-tabv_t:hover{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus){color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active){color:var(--cnt-bg-a)}.tp-tabv_t::before{background-color:currentColor;bottom:0;content:\"\";height:2px;left:0;pointer-events:none;position:absolute;right:0}.tp-tabv.tp-v-disabled .tp-tabv_t::before{opacity:.5}.tp-tabv.tp-tabv-nop .tp-tabv_t{height:calc(var(--cnt-usz) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_t::before{background-color:var(--cnt-bg);bottom:0;content:\"\";height:2px;left:0;position:absolute;right:0}.tp-tabv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-tabv_i::before{background-color:currentColor;bottom:0;content:\"\";left:0;position:absolute;top:0;width:4px}.tp-tabv_t:hover+.tp-tabv_i{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus)+.tp-tabv_i{color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active)+.tp-tabv_i{color:var(--cnt-bg-a)}.tp-tabv.tp-v-disabled>.tp-tabv_i{opacity:.5}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv.tp-v-disabled::before{opacity:.5}.tp-tbiv_b{display:block;padding-left:calc(var(--cnt-hp) + 4px);padding-right:calc(var(--cnt-hp) + 4px);position:relative;width:100%}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_b::before{background-color:var(--cnt-bg);content:\"\";inset:0 0 2px;pointer-events:none;position:absolute}.tp-tbiv_b:hover::before{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus::before{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active::before{background-color:var(--cnt-bg-a)}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);opacity:.5;overflow:hidden;position:relative;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-tbpv_c{padding-bottom:var(--cnt-vp);padding-left:4px;padding-top:var(--cnt-vp)}.tp-txtv{position:relative}.tp-txtv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:calc(var(--bld-hp) - 5px);position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:\"\";height:calc(var(--cnt-usz) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--bld-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:2px;box-sizing:border-box;content:\"\";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--bs-ff);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--cnt-usz) + var(--cnt-hp));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0;transition-delay:0s;transition-duration:0s}.tp-rotv.tp-rotv-not>.tp-rotv_b{display:none}.tp-rotv_b:disabled .tp-rotv_m{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst.tp-fldv-expanded>.tp-fldv_b{transition-delay:0s;transition-duration:0s}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_t{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sprv.tp-v-disabled .tp-sprv_r{opacity:.5}",plugins:[pT,sT,lT,vD,iT]})}}var F_=new nz("4.0.5");var H4={cssVariables:{"--bg":"#0a0e14","--bg-elevated":"#0f1419","--muted":"#1a2332","--text":"#e6edf3","--text-secondary":"#8b949e","--accent":"#58d5ff","--accent-2":"#42a5cc","--border":"#21262d","--border-hover":"#30363d","--success":"#3fb950","--error":"#f85149","--ht-text-color-main-200":"#00ffd4","--ht-text-color-main-300":"#6ff3dd","--ht-text-color-main-500":"#4b8e85","--ht-text-color-grey-200":"#8c8d8f","--ht-bg-color-200":"#8c8d8f","--ht-bg-color-200-active":"#7a7b7d","--ht-bg-color-200-focus":"#7e7f81","--ht-bg-color-200-hover":"#828384","--ht-bg-color-300":"#5e6068","--ht-bg-color-300-active":"#4c4e56","--ht-bg-color-300-focus":"#55575f","--ht-bg-color-300-hover":"#595b63","--ht-bg-color-400":"#cccccc","--ht-bg-color-400-active":"#b3b3b3","--ht-bg-color-400-focus":"#c0c0c0","--ht-bg-color-400-hover":"#c6c6c6","--ht-bg-color-500":"#1C1D20","--ht-bg-color-500-active":"#0a0b0e","--ht-bg-color-500-focus":"#131417","--ht-bg-color-500-hover":"#16171a","--ht-bg-color-600":"#37383D","--ht-bg-color-600-active":"#25262b","--ht-bg-color-600-focus":"#2e2f34","--ht-bg-color-600-hover":"#323338","--ht-bg-color-700":"#0f1419","--ht-bg-color-700-active":"#16171c","--ht-bg-color-700-focus":"#1f2025","--ht-bg-color-700-hover":"#232429","--ht-border-radius":"8px","--ht-base-font-family-base":'"HydrogenType400", ui-sans-serif, system-ui, sans-serif',"--ht-base-font-family-display":'"Departure Mono", Roboto Mono, Source Code Pro, Menlo, Courier, monospace',"--ht-base-font-family-sans":'"Routed Gothic", ui-sans-serif, system-ui, sans-serif',"--ht-base-font-family-mono":'"Routed Gothic Narrow", ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace'},tweakpane:{"--tp-base-background-color":"var(--ht-bg-color-700)","--tp-base-shadow-color":"hsla(0, 0%, 0%, 0.2)","--tp-container-background-color":"var(--ht-bg-color-600)","--tp-container-background-color-active":"var(--ht-bg-color-600-active)","--tp-container-background-color-focus":"var(--ht-bg-color-600-focus)","--tp-container-background-color-hover":"var(--ht-bg-color-600-hover)","--tp-container-foreground-color":"var(--ht-text-color-main-300)","--tp-button-background-color":"var(--ht-bg-color-400)","--tp-button-background-color-active":"color-mix(in srgb, var(--ht-bg-color-400-active) 80%, white)","--tp-button-background-color-focus":"color-mix(in srgb, var(--ht-bg-color-400-focus) 85%, white)","--tp-button-background-color-hover":"color-mix(in srgb, var(--ht-bg-color-400-hover) 90%, white)","--tp-button-foreground-color":"var(--ht-text-color-main-300)","--tp-groove-foreground-color":"var(--ht-bg-color-300)","--tp-input-background-color":"var(--ht-bg-color-500)","--tp-input-background-color-active":"var(--ht-bg-color-500-active)","--tp-input-background-color-focus":"var(--ht-bg-color-500-focus)","--tp-input-background-color-hover":"var(--ht-bg-color-500-hover)","--tp-input-foreground-color":"var(--ht-text-color-main-300)","--tp-label-foreground-color":"var(--ht-text-color-main-300)","--tp-monitor-background-color":"var(--ht-bg-color-500)","--tp-monitor-foreground-color":"var(--ht-text-color-main-300)"}};function M4(){let Z=document.createElement("style");Z.id="hypertool-theme";let Y=Object.entries({...H4.cssVariables,...H4.tweakpane}).map(([K,z])=>` ${K}: ${z};`).join(`
|
|
170
|
+
<%s key={someKey} {...props} />`,LX,c7,q6,c7),d7[c7+LX]=!0}}if(I===K)OX(VQ);else $X(VQ);return VQ}}var z8=m7;QT.Fragment=K,QT.jsxDEV=z8})()});class c1{_handlers=new Map;on(Z,Y){if(!this._handlers.has(Z))this._handlers.set(Z,new Set);return this._handlers.get(Z).add(Y),()=>this.off(Z,Y)}once(Z,Y){let K=(z)=>{this.off(Z,K),Y(z)};return this.on(Z,K)}off(Z,Y){let K=this._handlers.get(Z);if(K)K.delete(Y)}emit(Z){let Y=this._handlers.get(Z.type);if(!Y)return;for(let K of Y)try{K(Z)}catch(z){console.error(`[EventEmitter] Handler error for ${Z.type}:`,z)}}removeAllListeners(Z){if(Z)this._handlers.delete(Z);else this._handlers.clear()}listenerCount(Z){return this._handlers.get(Z)?.size??0}}class f5{_definitions;_values;_listeners;_proxy;constructor(Z,Y){this._definitions=Z,this._listeners=new Set,this._values={};for(let[K,z]of Object.entries(Z))this._values[K]=z.value;if(Y){for(let[K,z]of Object.entries(Y))if(K in this._definitions)this._values[K]=this._validate(K,z)}this._proxy=this._createProxy()}_createProxy(){let Z=this;return new Proxy(this._values,{get(Y,K){return Y[K]},set(Y,K,z){if(!(K in Z._definitions))return console.warn(`[ParamStore] Unknown parameter: ${K}`),!1;let $=Z._validate(K,z),F=Y[K];if($!==F)Y[K]=$,Z._notify(K,$,F);return!0},has(Y,K){return K in Y},ownKeys(Y){return Object.keys(Y)},getOwnPropertyDescriptor(Y,K){if(K in Y)return{enumerable:!0,configurable:!0,value:Y[K]};return}})}_validate(Z,Y){let K=this._definitions[Z];if(!K)return Y;switch(K.type){case"number":{let z=typeof Y==="number"?Y:parseFloat(String(Y));if(isNaN(z))z=K.value;if(K.min!==void 0)z=Math.max(K.min,z);if(K.max!==void 0)z=Math.min(K.max,z);if(K.step!==void 0)z=Math.round(z/K.step)*K.step;return z}case"color":{let z=String(Y);if(/^#[0-9A-Fa-f]{6}$/.test(z))return z;if(/^#[0-9A-Fa-f]{3}$/.test(z))return z;if(/^#[0-9A-Fa-f]{8}$/.test(z))return z;if(/^rgb\(/.test(z))return z;if(/^rgba\(/.test(z))return z;if(/^hsl\(/.test(z))return z;if(/^hsla\(/.test(z))return z;return K.value}case"boolean":if(typeof Y==="boolean")return Y;if(Y==="true"||Y==="1")return!0;if(Y==="false"||Y==="0")return!1;return Boolean(Y);case"string":return String(Y);case"select":{let z=String(Y);return(K.options||[]).some((B)=>typeof B==="object"?B.value===z:B===z)?z:K.value}case"point2d":{if(typeof Y==="object"&&Y!==null&&"x"in Y&&"y"in Y)return{x:Number(Y.x),y:Number(Y.y)};return K.value}case"point3d":{if(typeof Y==="object"&&Y!==null&&"x"in Y&&"y"in Y&&"z"in Y)return{x:Number(Y.x),y:Number(Y.y),z:Number(Y.z)};return K.value}default:return Y}}_notify(Z,Y,K){for(let z of this._listeners)try{z(Z,Y,K)}catch($){console.error("[ParamStore] Listener error:",$)}}getProxy(){return this._proxy}getSnapshot(){return{...this._values}}getDefinitions(){return{...this._definitions}}set(Z,Y){this._proxy[Z]=Y}setMultiple(Z){for(let[Y,K]of Object.entries(Z))this._proxy[Y]=K}reset(){for(let[Z,Y]of Object.entries(this._definitions))this._proxy[Z]=Y.value}subscribe(Z){return this._listeners.add(Z),()=>this._listeners.delete(Z)}addDefinition(Z,Y){this._definitions[Z]=Y,this._values[Z]=Y.value}}class v5{_byName=new Map;_byId=new Map;_onRegister=new Set;_onUnregister=new Set;register(Z,Y,K){if(this._byName.has(Z))this.unregister(Z);let z=this._generateId(),$={name:Z,id:z,object:Y,metadata:K};this._byName.set(Z,$),this._byId.set(z,$);for(let F of this._onRegister)try{F(Z,z,Y)}catch(B){console.error("[ObjectRegistry] onRegister callback error:",B)}return z}unregister(Z){let Y=this._byName.get(Z);if(!Y)return!1;this._byName.delete(Z),this._byId.delete(Y.id);for(let K of this._onUnregister)try{K(Z)}catch(z){console.error("[ObjectRegistry] onUnregister callback error:",z)}return!0}findByName(Z){return this._byName.get(Z)?.object}findById(Z){return this._byId.get(Z)?.object}getInfo(Z){return this._byName.get(Z)}has(Z){return this._byName.has(Z)}getNames(){return Array.from(this._byName.keys())}getAll(){let Z=new Map;for(let[Y,K]of this._byName)Z.set(Y,K.object);return Z}query(Z){let Y=[];for(let K of this._byName.values())if(Z(K))Y.push(K);return Y}findByType(Z){return this.query((Y)=>Y.metadata?.type===Z).map((Y)=>Y.object)}clear(){let Z=Array.from(this._byName.keys());for(let Y of Z)this.unregister(Y)}onRegister(Z){return this._onRegister.add(Z),()=>this._onRegister.delete(Z)}onUnregister(Z){return this._onUnregister.add(Z),()=>this._onUnregister.delete(Z)}get size(){return this._byName.size}_generateId(){return`obj_${Date.now()}_${Math.random().toString(36).slice(2,9)}`}}class u5{_isReady=!1;_isPlaying=!1;_isDestroyed=!1;_currentFrame=0;_paramStore;_events;_objects;_mount;_frameRate;_filename="capture";_cleanups=[];_userCleanup;_animationFrameId;_lastFrameTime=0;_resizeObserver;_captureHandler;constructor(Z){if(this._mount=Z.mount,this._frameRate=Z.frameRate??60,Z.background)this._mount.style.background=Z.background;this._paramStore=new f5(Z.paramDefs??{},Z.initialParams),this._events=new c1,this._objects=new v5,this._paramStore.subscribe((Y,K,z)=>{this._events.emit({type:"paramChange",timestamp:Date.now(),key:Y,value:K,previousValue:z})}),this._setupResizeObserver(),this._runSetup(Z.setup,Z.autoplay??!0)}get isReady(){return this._isReady}get isPlaying(){return this._isPlaying}get isDestroyed(){return this._isDestroyed}get currentFrame(){return this._currentFrame}get mount(){return this._mount}get params(){return this._paramStore.getProxy()}get events(){return this._events}get objects(){return this._objects}setParam(Z,Y){this._paramStore.set(Z,Y)}setParams(Z){this._paramStore.setMultiple(Z)}getParams(){return this._paramStore.getSnapshot()}getParamDefs(){return this._paramStore.getDefinitions()}resetParams(){this._paramStore.reset()}registerObject(Z,Y,K){return this._objects.register(Z,Y,K)}findObjectByName(Z){return this._objects.findByName(Z)}findObjectById(Z){return this._objects.findById(Z)}getAllObjects(){return this._objects.getAll()}play(){if(this._isPlaying||this._isDestroyed)return;this._isPlaying=!0,this._lastFrameTime=performance.now(),this._tick(),this._events.emit({type:"play",timestamp:Date.now()})}pause(){if(!this._isPlaying)return;if(this._isPlaying=!1,this._animationFrameId)cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0;this._events.emit({type:"pause",timestamp:Date.now()})}toggle(){if(this._isPlaying)this.pause();else this.play()}on(Z,Y){return this._events.on(Z,Y)}once(Z,Y){return this._events.once(Z,Y)}off(Z,Y){this._events.off(Z,Y)}async captureImage(Z="png"){if(this._captureHandler)return this._captureHandler(Z);let Y=this._mount.querySelector("canvas");if(!Y)return console.warn("[Experience] No canvas found for capture"),null;return new Promise((K)=>{let z=`image/${Z}`,$=Z==="jpeg"?0.92:void 0;Y.toBlob((F)=>K(F),z,$)})}getFilename(){return this._filename}addCleanup(Z){if(typeof Z==="function")this._cleanups.push(Z)}destroy(){if(this._isDestroyed)return;if(this._isDestroyed=!0,this.pause(),this._userCleanup)try{this._userCleanup()}catch(Z){console.error("[Experience] User cleanup error:",Z)}while(this._cleanups.length>0){let Z=this._cleanups.pop();if(Z)try{Z()}catch(Y){console.error("[Experience] Cleanup error:",Y)}}this._resizeObserver?.disconnect(),this._objects.clear(),this._events.removeAllListeners(),this._events.emit({type:"destroyed",timestamp:Date.now()})}async _runSetup(Z,Y){try{let K=this._createContext(),z=await Z(K);if(typeof z==="function")this._userCleanup=z;if(this._isReady=!0,this._events.emit({type:"ready",timestamp:Date.now()}),Y)this.play()}catch(K){console.error("[Experience] Setup error:",K),this._events.emit({type:"error",timestamp:Date.now(),error:K instanceof Error?K:Error(String(K))})}}_createContext(){return{mount:this._mount,params:this._paramStore.getProxy(),exports:this._createExportsApi(),environment:this._createEnvironmentApi(),registerObject:(Z,Y,K)=>this._objects.register(Z,Y,K),findObjectByName:(Z)=>this._objects.findByName(Z),experience:this}}_createExportsApi(){return{captureImage:(Z)=>this.captureImage(Z),setFilename:(Z)=>{this._filename=Z},registerCaptureHandler:(Z)=>{this._captureHandler=Z}}}_createEnvironmentApi(){return{window,document,onResize:(Z)=>{let Y=()=>{Z(this._mount.clientWidth,this._mount.clientHeight)};Y();let K=new ResizeObserver(Y);K.observe(this._mount);let z=()=>K.disconnect();return this._cleanups.push(z),z},addCleanup:(Z)=>this.addCleanup(Z)}}_setupResizeObserver(){this._resizeObserver=new ResizeObserver((Z)=>{for(let Y of Z){let{width:K,height:z}=Y.contentRect;this._events.emit({type:"resize",timestamp:Date.now(),width:K,height:z})}}),this._resizeObserver.observe(this._mount)}_tick(){if(!this._isPlaying)return;let Z=performance.now(),Y=Z-this._lastFrameTime,K=1000/this._frameRate;if(Y>=K)this._currentFrame++,this._lastFrameTime=Z-Y%K,this._events.emit({type:"frame",timestamp:Date.now(),frame:this._currentFrame,deltaTime:Y});this._animationFrameId=requestAnimationFrame(()=>this._tick())}}class g5{_element;_events;_isConnected=!1;_isDestroyed=!1;_boundReadyHandler;_boundParamChangeHandler;constructor(Z){let Y=Z instanceof HTMLElement?{element:Z}:Z;if(this._element=Y.element,this._events=new c1,this._boundReadyHandler=this._handleReady.bind(this),this._boundParamChangeHandler=this._handleParamChange.bind(this),Y.autoConnect!==!1){if(this.connect(),Y.initialParams)this.setParams(Y.initialParams)}}connect(){if(this._isConnected||this._isDestroyed)return;this._element.addEventListener("ready",this._boundReadyHandler),this._element.addEventListener("paramchange",this._boundParamChangeHandler),this._isConnected=!0,this._events.emit({type:"connected",timestamp:Date.now()})}disconnect(){if(!this._isConnected)return;this._element.removeEventListener("ready",this._boundReadyHandler),this._element.removeEventListener("paramchange",this._boundParamChangeHandler),this._isConnected=!1,this._events.emit({type:"disconnected",timestamp:Date.now()})}get element(){return this._element}get isConnected(){return this._isConnected}get isDestroyed(){return this._isDestroyed}setParam(Z,Y){this._element.setParam(Z,Y)}setParams(Z){this._element.setParams(Z)}getParams(){return this._element.getParams()}getParamDefs(){return this._element.getParamDefs()}resetParams(){let Z=this.getParamDefs(),Y={};for(let[K,z]of Object.entries(Z))Y[K]=z.value;this.setParams(Y)}on(Z,Y){return this._events.on(Z,Y)}once(Z,Y){return this._events.once(Z,Y)}off(Z,Y){this._events.off(Z,Y)}dispatchToCanvas(Z,Y){let K=this._findCanvas();if(!K)return console.warn("[ExperienceController] No canvas found in experience"),!1;let z=this._createEvent(Z,Y);return K.dispatchEvent(z)}dispatchToElement(Z,Y){let K=this._createEvent(Z,Y);return this._element.dispatchEvent(K)}dispatchCustomEvent(Z,Y){let K=new CustomEvent(Z,{detail:Y,bubbles:!0,cancelable:!0});return this._element.dispatchEvent(K)}getCanvas(){return this._findCanvas()}getMount(){return this._element.shadowRoot?.querySelector(".mount")}destroy(){if(this._isDestroyed)return;this.disconnect(),this._events.removeAllListeners(),this._isDestroyed=!0,this._events.emit({type:"destroyed",timestamp:Date.now()})}_handleReady(Z){this._events.emit({type:"ready",timestamp:Date.now()})}_handleParamChange(Z){let Y=Z;this._events.emit({type:"paramChange",timestamp:Date.now(),key:Y.detail.key,value:Y.detail.value,previousValue:Y.detail.previousValue})}_findCanvas(){let Z=this._element.shadowRoot;if(Z){let Y=Z.querySelector("canvas");if(Y)return Y}return this._element.querySelector("canvas")}_createEvent(Z,Y){let K={bubbles:!0,cancelable:!0,...Y};if(Z.startsWith("mouse")||Z==="click"||Z==="dblclick")return new MouseEvent(Z,K);if(Z.startsWith("key"))return new KeyboardEvent(Z,K);if(Z.startsWith("pointer"))return new PointerEvent(Z,K);if(Z.startsWith("touch"))return new TouchEvent(Z,K);if(Z==="wheel")return new WheelEvent(Z,K);if("detail"in(Y||{}))return new CustomEvent(Z,K);return new Event(Z,K)}static fromSelector(Z,Y){let K=document.querySelector(Z);if(!K)throw Error(`[ExperienceController] Element not found: ${Z}`);return new g5({element:K,initialParams:Y})}static async whenDefined(Z,Y){await customElements.whenDefined(Z);let K=document.querySelector(Z);if(!K)K=document.createElement(Z);return new g5({element:K,initialParams:Y})}}/*! Tweakpane 4.0.5 (c) 2016 cocopon, licensed under the MIT license. */function J7(Z){return Z}function MQ(Z){return Z===null||Z===void 0}function fz(Z){return Z!==null&&typeof Z==="object"}function Tz(Z){return Z!==null&&typeof Z==="object"}function oV(Z,Y){if(Z.length!==Y.length)return!1;for(let K=0;K<Z.length;K++)if(Z[K]!==Y[K])return!1;return!0}function f9(Z,Y){return Array.from(new Set([...Object.keys(Z),...Object.keys(Y)])).reduce((z,$)=>{let F=Z[$],B=Y[$];return Tz(F)&&Tz(B)?Object.assign(Object.assign({},z),{[$]:f9(F,B)}):Object.assign(Object.assign({},z),{[$]:$ in Y?B:F})},{})}function vz(Z){if(!fz(Z))return!1;return"target"in Z}var tV={alreadydisposed:()=>"View has been already disposed",invalidparams:(Z)=>`Invalid parameters for '${Z.name}'`,nomatchingcontroller:(Z)=>`No matching controller for '${Z.key}'`,nomatchingview:(Z)=>`No matching view for '${JSON.stringify(Z.params)}'`,notbindable:()=>"Value is not bindable",notcompatible:(Z)=>`Not compatible with plugin '${Z.id}'`,propertynotfound:(Z)=>`Property '${Z.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class hQ{static alreadyDisposed(){return new hQ({type:"alreadydisposed"})}static notBindable(){return new hQ({type:"notbindable"})}static notCompatible(Z,Y){return new hQ({type:"notcompatible",context:{id:`${Z}.${Y}`}})}static propertyNotFound(Z){return new hQ({type:"propertynotfound",context:{name:Z}})}static shouldNeverHappen(){return new hQ({type:"shouldneverhappen"})}constructor(Z){var Y;this.message=(Y=tV[Z.type](J7(Z.context)))!==null&&Y!==void 0?Y:"Unexpected error",this.name=this.constructor.name,this.stack=Error(this.message).stack,this.type=Z.type}toString(){return this.message}}class p5{constructor(Z,Y){this.obj_=Z,this.key=Y}static isBindable(Z){if(Z===null)return!1;if(typeof Z!=="object"&&typeof Z!=="function")return!1;return!0}read(){return this.obj_[this.key]}write(Z){this.obj_[this.key]=Z}writeProperty(Z,Y){let K=this.read();if(!p5.isBindable(K))throw hQ.notBindable();if(!(Z in K))throw hQ.propertyNotFound(Z);K[Z]=Y}}class fQ{constructor(){this.observers_={}}on(Z,Y,K){var z;let $=this.observers_[Z];if(!$)$=this.observers_[Z]=[];return $.push({handler:Y,key:(z=K===null||K===void 0?void 0:K.key)!==null&&z!==void 0?z:Y}),this}off(Z,Y){let K=this.observers_[Z];if(K)this.observers_[Z]=K.filter((z)=>{return z.key!==Y});return this}emit(Z,Y){let K=this.observers_[Z];if(!K)return;K.forEach((z)=>{z.handler(Y)})}}class lW{constructor(Z,Y){var K;this.constraint_=Y===null||Y===void 0?void 0:Y.constraint,this.equals_=(K=Y===null||Y===void 0?void 0:Y.equals)!==null&&K!==void 0?K:(z,$)=>z===$,this.emitter=new fQ,this.rawValue_=Z}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(Z){this.setRawValue(Z,{forceEmit:!1,last:!0})}setRawValue(Z,Y){let K=Y!==null&&Y!==void 0?Y:{forceEmit:!1,last:!0},z=this.constraint_?this.constraint_.constrain(Z):Z,$=this.rawValue_;if(!!this.equals_($,z)&&!K.forceEmit)return;this.emitter.emit("beforechange",{sender:this}),this.rawValue_=z,this.emitter.emit("change",{options:K,previousRawValue:$,rawValue:z,sender:this})}}class iW{constructor(Z){this.emitter=new fQ,this.value_=Z}get rawValue(){return this.value_}set rawValue(Z){this.setRawValue(Z,{forceEmit:!1,last:!0})}setRawValue(Z,Y){let K=Y!==null&&Y!==void 0?Y:{forceEmit:!1,last:!0},z=this.value_;if(z===Z&&!K.forceEmit)return;this.emitter.emit("beforechange",{sender:this}),this.value_=Z,this.emitter.emit("change",{options:K,previousRawValue:z,rawValue:this.value_,sender:this})}}class rW{constructor(Z){this.emitter=new fQ,this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.value_=Z,this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_)}get rawValue(){return this.value_.rawValue}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function RQ(Z,Y){let K=Y===null||Y===void 0?void 0:Y.constraint,z=Y===null||Y===void 0?void 0:Y.equals;if(!K&&!z)return new iW(Z);return new lW(Z,Y)}function aV(Z){return[new rW(Z),(Y,K)=>{Z.setRawValue(Y,K)}]}class vJ{constructor(Z){this.emitter=new fQ,this.valMap_=Z;for(let Y in this.valMap_)this.valMap_[Y].emitter.on("change",()=>{this.emitter.emit("change",{key:Y,sender:this})})}static createCore(Z){return Object.keys(Z).reduce((K,z)=>{return Object.assign(K,{[z]:RQ(Z[z])})},{})}static fromObject(Z){let Y=this.createCore(Z);return new vJ(Y)}get(Z){return this.valMap_[Z].rawValue}set(Z,Y){this.valMap_[Z].rawValue=Y}value(Z){return this.valMap_[Z]}}class n1{constructor(Z){this.values=vJ.fromObject({max:Z.max,min:Z.min})}constrain(Z){let Y=this.values.get("max"),K=this.values.get("min");return Math.min(Math.max(Z,K),Y)}}class nW{constructor(Z){this.values=vJ.fromObject({max:Z.max,min:Z.min})}constrain(Z){let Y=this.values.get("max"),K=this.values.get("min"),z=Z;if(!MQ(K))z=Math.max(z,K);if(!MQ(Y))z=Math.min(z,Y);return z}}class oW{constructor(Z,Y=0){this.step=Z,this.origin=Y}constrain(Z){let Y=this.origin%this.step,K=Math.round((Z-Y)/this.step);return Y+K*this.step}}class tW{constructor(Z){this.text=Z}evaluate(){return Number(this.text)}toString(){return this.text}}var eV={"**":(Z,Y)=>Math.pow(Z,Y),"*":(Z,Y)=>Z*Y,"/":(Z,Y)=>Z/Y,"%":(Z,Y)=>Z%Y,"+":(Z,Y)=>Z+Y,"-":(Z,Y)=>Z-Y,"<<":(Z,Y)=>Z<<Y,">>":(Z,Y)=>Z>>Y,">>>":(Z,Y)=>Z>>>Y,"&":(Z,Y)=>Z&Y,"^":(Z,Y)=>Z^Y,"|":(Z,Y)=>Z|Y};class aW{constructor(Z,Y,K){this.left=Y,this.operator=Z,this.right=K}evaluate(){let Z=eV[this.operator];if(!Z)throw Error(`unexpected binary operator: '${this.operator}`);return Z(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}var JR={"+":(Z)=>Z,"-":(Z)=>-Z,"~":(Z)=>~Z};class eW{constructor(Z,Y){this.operator=Z,this.expression=Y}evaluate(){let Z=JR[this.operator];if(!Z)throw Error(`unexpected unary operator: '${this.operator}`);return Z(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function uz(Z){return(Y,K)=>{for(let z=0;z<Z.length;z++){let $=Z[z](Y,K);if($!=="")return $}return""}}function X4(Z,Y){var K;let z=Z.substr(Y).match(/^\s+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function QR(Z,Y){let K=Z.substr(Y,1);return K.match(/^[1-9]$/)?K:""}function Y4(Z,Y){var K;let z=Z.substr(Y).match(/^[0-9]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function ZR(Z,Y){let K=Y4(Z,Y);if(K!=="")return K;let z=Z.substr(Y,1);if(Y+=1,z!=="-"&&z!=="+")return"";let $=Y4(Z,Y);if($==="")return"";return z+$}function gz(Z,Y){let K=Z.substr(Y,1);if(Y+=1,K.toLowerCase()!=="e")return"";let z=ZR(Z,Y);if(z==="")return"";return K+z}function JD(Z,Y){let K=Z.substr(Y,1);if(K==="0")return K;let z=QR(Z,Y);if(Y+=z.length,z==="")return"";return z+Y4(Z,Y)}function XR(Z,Y){let K=JD(Z,Y);if(Y+=K.length,K==="")return"";let z=Z.substr(Y,1);if(Y+=z.length,z!==".")return"";let $=Y4(Z,Y);return Y+=$.length,K+z+$+gz(Z,Y)}function YR(Z,Y){let K=Z.substr(Y,1);if(Y+=K.length,K!==".")return"";let z=Y4(Z,Y);if(Y+=z.length,z==="")return"";return K+z+gz(Z,Y)}function GR(Z,Y){let K=JD(Z,Y);if(Y+=K.length,K==="")return"";return K+gz(Z,Y)}var KR=uz([XR,YR,GR]);function UR(Z,Y){var K;let z=Z.substr(Y).match(/^[01]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function qR(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0b")return"";let z=UR(Z,Y);if(z==="")return"";return K+z}function zR(Z,Y){var K;let z=Z.substr(Y).match(/^[0-7]+/);return(K=z&&z[0])!==null&&K!==void 0?K:""}function $R(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0o")return"";let z=zR(Z,Y);if(z==="")return"";return K+z}function OR(Z,Y){var K;let z=Z.substr(Y).match(/^[0-9a-f]+/i);return(K=z&&z[0])!==null&&K!==void 0?K:""}function LR(Z,Y){let K=Z.substr(Y,2);if(Y+=K.length,K.toLowerCase()!=="0x")return"";let z=OR(Z,Y);if(z==="")return"";return K+z}var WR=uz([qR,$R,LR]),DR=uz([WR,KR]);function HR(Z,Y){let K=DR(Z,Y);if(Y+=K.length,K==="")return null;return{evaluable:new tW(K),cursor:Y}}function MR(Z,Y){let K=Z.substr(Y,1);if(Y+=K.length,K!=="(")return null;let z=ZD(Z,Y);if(!z)return null;Y=z.cursor,Y+=X4(Z,Y).length;let $=Z.substr(Y,1);if(Y+=$.length,$!==")")return null;return{evaluable:z.evaluable,cursor:Y}}function FR(Z,Y){var K;return(K=HR(Z,Y))!==null&&K!==void 0?K:MR(Z,Y)}function QD(Z,Y){let K=FR(Z,Y);if(K)return K;let z=Z.substr(Y,1);if(Y+=z.length,z!=="+"&&z!=="-"&&z!=="~")return null;let $=QD(Z,Y);if(!$)return null;return Y=$.cursor,{cursor:Y,evaluable:new eW(z,$.evaluable)}}function BR(Z,Y,K){K+=X4(Y,K).length;let z=Z.filter(($)=>Y.startsWith($,K))[0];if(!z)return null;return K+=z.length,K+=X4(Y,K).length,{cursor:K,operator:z}}function AR(Z,Y){return(K,z)=>{let $=Z(K,z);if(!$)return null;z=$.cursor;let F=$.evaluable;for(;;){let B=BR(Y,K,z);if(!B)break;z=B.cursor;let j=Z(K,z);if(!j)return null;z=j.cursor,F=new aW(B.operator,F,j.evaluable)}return F?{cursor:z,evaluable:F}:null}}var IR=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((Z,Y)=>{return AR(Z,Y)},QD);function ZD(Z,Y){return Y+=X4(Z,Y).length,IR(Z,Y)}function jR(Z){let Y=ZD(Z,0);if(!Y)return null;if(Y.cursor+X4(Z,Y.cursor).length!==Z.length)return null;return Y.evaluable}function XX(Z){var Y;let K=jR(Z);return(Y=K===null||K===void 0?void 0:K.evaluate())!==null&&Y!==void 0?Y:null}function XD(Z){if(typeof Z==="number")return Z;if(typeof Z==="string"){let Y=XX(Z);if(!MQ(Y))return Y}return 0}function PR(Z){return String(Z)}function eZ(Z){return(Y)=>{return Y.toFixed(Math.max(Math.min(Z,20),0))}}function UQ(Z,Y,K,z,$){let F=(Z-Y)/(K-Y);return z+F*($-z)}function PW(Z){return String(Z.toFixed(10)).split(".")[1].replace(/0+$/,"").length}function QZ(Z,Y,K){return Math.min(Math.max(Z,Y),K)}function YD(Z,Y){return(Z%Y+Y)%Y}function NR(Z,Y){return!MQ(Z.step)?PW(Z.step):Math.max(PW(Y),2)}function GD(Z){var Y;return(Y=Z.step)!==null&&Y!==void 0?Y:1}function KD(Z,Y){var K;let z=Math.abs((K=Z.step)!==null&&K!==void 0?K:Y);return z===0?0.1:Math.pow(10,Math.floor(Math.log10(z))-1)}function UD(Z,Y){if(!MQ(Z.step))return new oW(Z.step,Y);return null}function qD(Z){if(!MQ(Z.max)&&!MQ(Z.min))return new n1({max:Z.max,min:Z.min});if(!MQ(Z.max)||!MQ(Z.min))return new nW({max:Z.max,min:Z.min});return null}function zD(Z,Y){var K,z,$;return{formatter:(K=Z.format)!==null&&K!==void 0?K:eZ(NR(Z,Y)),keyScale:(z=Z.keyScale)!==null&&z!==void 0?z:GD(Z),pointerScale:($=Z.pointerScale)!==null&&$!==void 0?$:KD(Z,Y)}}function $D(Z){return{format:Z.optional.function,keyScale:Z.optional.number,max:Z.optional.number,min:Z.optional.number,pointerScale:Z.optional.number,step:Z.optional.number}}function dz(Z){return{constraint:Z.constraint,textProps:vJ.fromObject(zD(Z.params,Z.initialValue))}}class rX{constructor(Z){this.controller=Z}get element(){return this.controller.view.element}get disabled(){return this.controller.viewProps.get("disabled")}set disabled(Z){this.controller.viewProps.set("disabled",Z)}get hidden(){return this.controller.viewProps.get("hidden")}set hidden(Z){this.controller.viewProps.set("hidden",Z)}dispose(){this.controller.viewProps.set("disposed",!0)}importState(Z){return this.controller.importState(Z)}exportState(){return this.controller.exportState()}}class q4{constructor(Z){this.target=Z}}class o1 extends q4{constructor(Z,Y,K){super(Z);this.value=Y,this.last=K!==null&&K!==void 0?K:!0}}class OD extends q4{constructor(Z,Y){super(Z);this.expanded=Y}}class LD extends q4{constructor(Z,Y){super(Z);this.index=Y}}class WD extends q4{constructor(Z,Y){super(Z);this.native=Y}}class l1 extends rX{constructor(Z){super(Z);this.onValueChange_=this.onValueChange_.bind(this),this.emitter_=new fQ,this.controller.value.emitter.on("change",this.onValueChange_)}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get key(){return this.controller.value.binding.target.key}get tag(){return this.controller.tag}set tag(Z){this.controller.tag=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}refresh(){this.controller.value.fetch()}onValueChange_(Z){let Y=this.controller.value;this.emitter_.emit("change",new o1(this,J7(Y.binding.target.read()),Z.options.last))}}class DD{constructor(Z,Y){this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.binding=Y,this.value_=Z,this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_),this.emitter=new fQ}get rawValue(){return this.value_.rawValue}set rawValue(Z){this.value_.rawValue=Z}setRawValue(Z,Y){this.value_.setRawValue(Z,Y)}fetch(){this.value_.rawValue=this.binding.read()}push(){this.binding.write(this.value_.rawValue)}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.push(),this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function wR(Z){if(!("binding"in Z))return!1;let Y=Z.binding;return vz(Y)&&"read"in Y&&"write"in Y}function VR(Z,Y){let z=Object.keys(Y).reduce(($,F)=>{if($===void 0)return;let B=Y[F],j=B(Z[F]);return j.succeeded?Object.assign(Object.assign({},$),{[F]:j.value}):void 0},{});return J7(z)}function RR(Z,Y){return Z.reduce((K,z)=>{if(K===void 0)return;let $=Y(z);if(!$.succeeded||$.value===void 0)return;return[...K,$.value]},[])}function SR(Z){if(Z===null)return!1;return typeof Z==="object"}function e8(Z){return(Y)=>(K)=>{if(!Y&&K===void 0)return{succeeded:!1,value:void 0};if(Y&&K===void 0)return{succeeded:!0,value:void 0};let z=Z(K);return z!==void 0?{succeeded:!0,value:z}:{succeeded:!1,value:void 0}}}function NW(Z){return{custom:(Y)=>e8(Y)(Z),boolean:e8((Y)=>typeof Y==="boolean"?Y:void 0)(Z),number:e8((Y)=>typeof Y==="number"?Y:void 0)(Z),string:e8((Y)=>typeof Y==="string"?Y:void 0)(Z),function:e8((Y)=>typeof Y==="function"?Y:void 0)(Z),constant:(Y)=>e8((K)=>K===Y?Y:void 0)(Z),raw:e8((Y)=>Y)(Z),object:(Y)=>e8((K)=>{if(!SR(K))return;return VR(K,Y)})(Z),array:(Y)=>e8((K)=>{if(!Array.isArray(K))return;return RR(K,Y)})(Z)}}var kz={optional:NW(!0),required:NW(!1)};function kQ(Z,Y){let K=Y(kz),z=kz.required.object(K)(Z);return z.succeeded?z.value:void 0}function F7(Z,Y,K,z){if(Y&&!Y(Z))return!1;let $=kQ(Z,K);return $?z($):!1}function B7(Z,Y){var K;return f9((K=Z===null||Z===void 0?void 0:Z())!==null&&K!==void 0?K:{},Y)}function h9(Z){return"value"in Z}function HD(Z){if(!fz(Z)||!("binding"in Z))return!1;let Y=Z.binding;return vz(Y)}var V8="http://www.w3.org/2000/svg";function s5(Z){Z.offsetHeight}function _R(Z,Y){let K=Z.style.transition;Z.style.transition="none",Y(),Z.style.transition=K}function mz(Z){return Z.ontouchstart!==void 0}function TR(){return globalThis}function kR(){return J7(TR()).document}function ER(Z){let Y=Z.ownerDocument.defaultView;if(!Y)return null;return"document"in Y?Z.getContext("2d",{willReadFrequently:!0}):null}var CR={check:'<path d="M2 8l4 4l8 -8"/>',dropdown:'<path d="M5 7h6l-3 3 z"/>',p2dpad:'<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'};function o5(Z,Y){let K=Z.createElementNS(V8,"svg");return K.innerHTML=CR[Y],K}function MD(Z,Y,K){Z.insertBefore(Y,Z.children[K])}function cz(Z){if(Z.parentElement)Z.parentElement.removeChild(Z)}function FD(Z){while(Z.children.length>0)Z.removeChild(Z.children[0])}function xR(Z){while(Z.childNodes.length>0)Z.removeChild(Z.childNodes[0])}function BD(Z){if(Z.relatedTarget)return J7(Z.relatedTarget);if("explicitOriginalTarget"in Z)return Z.explicitOriginalTarget;return null}function QX(Z,Y){Z.emitter.on("change",(K)=>{Y(K.rawValue)}),Y(Z.rawValue)}function R8(Z,Y,K){QX(Z.value(Y),K)}var hR="tp";function eJ(Z){return(K,z)=>{return[hR,"-",Z,"v",K?`_${K}`:"",z?`-${z}`:""].join("")}}var e0=eJ("lbl");function bR(Z,Y){let K=Z.createDocumentFragment();return Y.split(`
|
|
171
|
+
`).map(($)=>{return Z.createTextNode($)}).forEach(($,F)=>{if(F>0)K.appendChild(Z.createElement("br"));K.appendChild($)}),K}class pz{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(e0()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(e0("l")),R8(Y.props,"label",($)=>{if(MQ($))this.element.classList.add(e0(void 0,"nol"));else this.element.classList.remove(e0(void 0,"nol")),xR(K),K.appendChild(bR(Z,$))}),this.element.appendChild(K),this.labelElement=K;let z=Z.createElement("div");z.classList.add(e0("v")),this.element.appendChild(z),this.valueElement=z}}class sz{constructor(Z,Y){this.props=Y.props,this.valueController=Y.valueController,this.viewProps=Y.valueController.viewProps,this.view=new pz(Z,{props:Y.props,viewProps:this.viewProps}),this.view.valueElement.appendChild(this.valueController.view.element)}importProps(Z){return F7(Z,null,(Y)=>({label:Y.optional.string}),(Y)=>{return this.props.set("label",Y.label),!0})}exportProps(){return B7(null,{label:this.props.get("label")})}}function yR(){return["veryfirst","first","last","verylast"]}var wW=eJ(""),VW={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class z4{constructor(Z){this.parent_=null,this.blade=Z.blade,this.view=Z.view,this.viewProps=Z.viewProps;let Y=this.view.element;this.blade.value("positions").emitter.on("change",()=>{yR().forEach((K)=>{Y.classList.remove(wW(void 0,VW[K]))}),this.blade.get("positions").forEach((K)=>{Y.classList.add(wW(void 0,VW[K]))})}),this.viewProps.handleDispose(()=>{cz(Y)})}get parent(){return this.parent_}set parent(Z){this.parent_=Z,this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null)}importState(Z){return F7(Z,null,(Y)=>({disabled:Y.required.boolean,hidden:Y.required.boolean}),(Y)=>{return this.viewProps.importState(Y),!0})}exportState(){return B7(null,Object.assign({},this.viewProps.exportState()))}}class iX extends z4{constructor(Z,Y){if(Y.value!==Y.valueController.value)throw hQ.shouldNeverHappen();let K=Y.valueController.viewProps,z=new sz(Z,{blade:Y.blade,props:Y.props,valueController:Y.valueController});super(Object.assign(Object.assign({},Y),{view:new pz(Z,{props:Y.props,viewProps:K}),viewProps:K}));this.labelController=z,this.value=Y.value,this.valueController=Y.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}importState(Z){return F7(Z,(Y)=>{var K,z,$;return super.importState(Y)&&this.labelController.importProps(Y)&&(($=(z=(K=this.valueController).importProps)===null||z===void 0?void 0:z.call(K,Z))!==null&&$!==void 0?$:!0)},(Y)=>({value:Y.optional.raw}),(Y)=>{if(Y.value)this.value.rawValue=Y.value;return!0})}exportState(){var Z,Y,K;return B7(()=>super.exportState(),Object.assign(Object.assign({value:this.value.rawValue},this.labelController.exportProps()),(K=(Y=(Z=this.valueController).exportProps)===null||Y===void 0?void 0:Y.call(Z))!==null&&K!==void 0?K:{}))}}function RW(Z){let Y=Object.assign({},Z);return delete Y.value,Y}class lz extends iX{constructor(Z,Y){super(Z,Y);this.tag=Y.tag}importState(Z){return F7(Z,(Y)=>super.importState(RW(Z)),(Y)=>({tag:Y.optional.string}),(Y)=>{return this.tag=Y.tag,!0})}exportState(){return B7(()=>RW(super.exportState()),{binding:{key:this.value.binding.target.key,value:this.value.binding.target.read()},tag:this.tag})}}function fR(Z){return h9(Z)&&HD(Z.value)}class AD extends lz{importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({binding:Y.required.object({value:Y.required.raw})}),(Y)=>{return this.value.binding.inject(Y.binding.value),this.value.fetch(),!0})}}function vR(Z){return h9(Z)&&wR(Z.value)}function ID(Z,Y){while(Z.length<Y)Z.push(void 0)}function uR(Z){let Y=[];return ID(Y,Z),Y}function gR(Z){let Y=Z.indexOf(void 0);return J7(Y<0?Z:Z.slice(0,Y))}function dR(Z,Y){let K=[...gR(Z),Y];if(K.length>Z.length)K.splice(0,K.length-Z.length);else ID(K,Z.length);return K}class jD{constructor(Z){this.emitter=new fQ,this.onTick_=this.onTick_.bind(this),this.onValueBeforeChange_=this.onValueBeforeChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.binding=Z.binding,this.value_=RQ(uR(Z.bufferSize)),this.value_.emitter.on("beforechange",this.onValueBeforeChange_),this.value_.emitter.on("change",this.onValueChange_),this.ticker=Z.ticker,this.ticker.emitter.on("tick",this.onTick_),this.fetch()}get rawValue(){return this.value_.rawValue}set rawValue(Z){this.value_.rawValue=Z}setRawValue(Z,Y){this.value_.setRawValue(Z,Y)}fetch(){this.value_.rawValue=dR(this.value_.rawValue,this.binding.read())}onTick_(){this.fetch()}onValueBeforeChange_(Z){this.emitter.emit("beforechange",Object.assign(Object.assign({},Z),{sender:this}))}onValueChange_(Z){this.emitter.emit("change",Object.assign(Object.assign({},Z),{sender:this}))}}function mR(Z){if(!("binding"in Z))return!1;let Y=Z.binding;return vz(Y)&&"read"in Y&&!("write"in Y)}class PD extends lz{exportState(){return B7(()=>super.exportState(),{binding:{readonly:!0}})}}function cR(Z){return h9(Z)&&mR(Z.value)}class ND extends rX{get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get title(){var Z;return(Z=this.controller.buttonController.props.get("title"))!==null&&Z!==void 0?Z:""}set title(Z){this.controller.buttonController.props.set("title",Z)}on(Z,Y){let K=Y.bind(this);return this.controller.buttonController.emitter.on(Z,($)=>{K(new WD(this,$.nativeEvent))}),this}off(Z,Y){return this.controller.buttonController.emitter.off(Z,Y),this}}function pR(Z,Y,K){if(K)Z.classList.add(Y);else Z.classList.remove(Y)}function t1(Z,Y){return(K)=>{pR(Z,Y,K)}}function iz(Z,Y){QX(Z,(K)=>{Y.textContent=K!==null&&K!==void 0?K:""})}var jz=eJ("btn");class wD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(jz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("button");K.classList.add(jz("b")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.buttonElement=K;let z=Z.createElement("div");z.classList.add(jz("t")),iz(Y.props.value("title"),z),this.buttonElement.appendChild(z)}}class VD{constructor(Z,Y){this.emitter=new fQ,this.onClick_=this.onClick_.bind(this),this.props=Y.props,this.viewProps=Y.viewProps,this.view=new wD(Z,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}importProps(Z){return F7(Z,null,(Y)=>({title:Y.optional.string}),(Y)=>{return this.props.set("title",Y.title),!0})}exportProps(){return B7(null,{title:this.props.get("title")})}onClick_(Z){this.emitter.emit("click",{nativeEvent:Z,sender:this})}}class Ez extends z4{constructor(Z,Y){let K=new VD(Z,{props:Y.buttonProps,viewProps:Y.viewProps}),z=new sz(Z,{blade:Y.blade,props:Y.labelProps,valueController:K});super({blade:Y.blade,view:z.view,viewProps:Y.viewProps});this.buttonController=K,this.labelController=z}importState(Z){return F7(Z,(Y)=>super.importState(Y)&&this.buttonController.importProps(Y)&&this.labelController.importProps(Y),()=>({}),()=>!0)}exportState(){return B7(()=>super.exportState(),Object.assign(Object.assign({},this.buttonController.exportProps()),this.labelController.exportProps()))}}class rz{constructor(Z){let[Y,K]=Z.split("-"),z=Y.split(".");this.major=parseInt(z[0],10),this.minor=parseInt(z[1],10),this.patch=parseInt(z[2],10),this.prerelease=K!==null&&K!==void 0?K:null}toString(){let Z=[this.major,this.minor,this.patch].join(".");return this.prerelease!==null?[Z,this.prerelease].join("-"):Z}}var a1=new rz("2.0.5");function uZ(Z){return Object.assign({core:a1},Z)}var sR=uZ({id:"button",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({title:K.required.string,view:K.required.constant("button"),label:K.optional.string}));return Y?{params:Y}:null},controller(Z){return new Ez(Z.document,{blade:Z.blade,buttonProps:vJ.fromObject({title:Z.params.title}),labelProps:vJ.fromObject({label:Z.params.label}),viewProps:Z.viewProps})},api(Z){if(Z.controller instanceof Ez)return new ND(Z.controller);return null}});function lR(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"button"}))}function iR(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"folder"}))}function rR(Z,Y){return Z.addBlade(Object.assign(Object.assign({},Y),{view:"tab"}))}function nR(Z){if(!fz(Z))return!1;return"refresh"in Z&&typeof Z.refresh==="function"}function oR(Z,Y){if(!p5.isBindable(Z))throw hQ.notBindable();return new p5(Z,Y)}class RD{constructor(Z,Y){this.onRackValueChange_=this.onRackValueChange_.bind(this),this.controller_=Z,this.emitter_=new fQ,this.pool_=Y,this.controller_.rack.emitter.on("valuechange",this.onRackValueChange_)}get children(){return this.controller_.rack.children.map((Z)=>this.pool_.createApi(Z))}addBinding(Z,Y,K){let z=K!==null&&K!==void 0?K:{},$=this.controller_.element.ownerDocument,F=this.pool_.createBinding($,oR(Z,Y),z),B=this.pool_.createBindingApi(F);return this.add(B,z.index)}addFolder(Z){return iR(this,Z)}addButton(Z){return lR(this,Z)}addTab(Z){return rR(this,Z)}add(Z,Y){let K=Z.controller;return this.controller_.rack.add(K,Y),Z}remove(Z){this.controller_.rack.remove(Z.controller)}addBlade(Z){let Y=this.controller_.element.ownerDocument,K=this.pool_.createBlade(Y,Z),z=this.pool_.createApi(K);return this.add(z,Z.index)}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}refresh(){this.children.forEach((Z)=>{if(nR(Z))Z.refresh()})}onRackValueChange_(Z){let Y=Z.bladeController,K=this.pool_.createApi(Y),z=HD(Y.value)?Y.value.binding:null;this.emitter_.emit("change",new o1(K,z?z.target.read():Y.value.rawValue,Z.options.last))}}class t5 extends rX{constructor(Z,Y){super(Z);this.rackApi_=new RD(Z.rackController,Y)}refresh(){this.rackApi_.refresh()}}class a5 extends z4{constructor(Z){super({blade:Z.blade,view:Z.view,viewProps:Z.rackController.viewProps});this.rackController=Z.rackController}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({children:Y.required.array(Y.required.raw)}),(Y)=>{return this.rackController.rack.children.every((K,z)=>{return K.importState(Y.children[z])})})}exportState(){return B7(()=>super.exportState(),{children:this.rackController.rack.children.map((Z)=>Z.exportState())})}}function Cz(Z){return"rackController"in Z}class SD{constructor(Z){this.emitter=new fQ,this.items_=[],this.cache_=new Set,this.onSubListAdd_=this.onSubListAdd_.bind(this),this.onSubListRemove_=this.onSubListRemove_.bind(this),this.extract_=Z}get items(){return this.items_}allItems(){return Array.from(this.cache_)}find(Z){for(let Y of this.allItems())if(Z(Y))return Y;return null}includes(Z){return this.cache_.has(Z)}add(Z,Y){if(this.includes(Z))throw hQ.shouldNeverHappen();let K=Y!==void 0?Y:this.items_.length;this.items_.splice(K,0,Z),this.cache_.add(Z);let z=this.extract_(Z);if(z)z.emitter.on("add",this.onSubListAdd_),z.emitter.on("remove",this.onSubListRemove_),z.allItems().forEach(($)=>{this.cache_.add($)});this.emitter.emit("add",{index:K,item:Z,root:this,target:this})}remove(Z){let Y=this.items_.indexOf(Z);if(Y<0)return;this.items_.splice(Y,1),this.cache_.delete(Z);let K=this.extract_(Z);if(K)K.allItems().forEach((z)=>{this.cache_.delete(z)}),K.emitter.off("add",this.onSubListAdd_),K.emitter.off("remove",this.onSubListRemove_);this.emitter.emit("remove",{index:Y,item:Z,root:this,target:this})}onSubListAdd_(Z){this.cache_.add(Z.item),this.emitter.emit("add",{index:Z.index,item:Z.item,root:this,target:Z.target})}onSubListRemove_(Z){this.cache_.delete(Z.item),this.emitter.emit("remove",{index:Z.index,item:Z.item,root:this,target:Z.target})}}function tR(Z,Y){for(let K=0;K<Z.length;K++){let z=Z[K];if(h9(z)&&z.value===Y)return z}return null}function aR(Z){return Cz(Z)?Z.rackController.rack.bcSet_:null}class _D{constructor(Z){var Y,K;this.emitter=new fQ,this.onBladePositionsChange_=this.onBladePositionsChange_.bind(this),this.onSetAdd_=this.onSetAdd_.bind(this),this.onSetRemove_=this.onSetRemove_.bind(this),this.onChildDispose_=this.onChildDispose_.bind(this),this.onChildPositionsChange_=this.onChildPositionsChange_.bind(this),this.onChildValueChange_=this.onChildValueChange_.bind(this),this.onChildViewPropsChange_=this.onChildViewPropsChange_.bind(this),this.onRackLayout_=this.onRackLayout_.bind(this),this.onRackValueChange_=this.onRackValueChange_.bind(this),this.blade_=(Y=Z.blade)!==null&&Y!==void 0?Y:null,(K=this.blade_)===null||K===void 0||K.value("positions").emitter.on("change",this.onBladePositionsChange_),this.viewProps=Z.viewProps,this.bcSet_=new SD(aR),this.bcSet_.emitter.on("add",this.onSetAdd_),this.bcSet_.emitter.on("remove",this.onSetRemove_)}get children(){return this.bcSet_.items}add(Z,Y){var K;(K=Z.parent)===null||K===void 0||K.remove(Z),Z.parent=this,this.bcSet_.add(Z,Y)}remove(Z){Z.parent=null,this.bcSet_.remove(Z)}find(Z){return this.bcSet_.allItems().filter(Z)}onSetAdd_(Z){this.updatePositions_();let Y=Z.target===Z.root;if(this.emitter.emit("add",{bladeController:Z.item,index:Z.index,root:Y,sender:this}),!Y)return;let K=Z.item;if(K.viewProps.emitter.on("change",this.onChildViewPropsChange_),K.blade.value("positions").emitter.on("change",this.onChildPositionsChange_),K.viewProps.handleDispose(this.onChildDispose_),h9(K))K.value.emitter.on("change",this.onChildValueChange_);else if(Cz(K)){let z=K.rackController.rack;if(z){let $=z.emitter;$.on("layout",this.onRackLayout_),$.on("valuechange",this.onRackValueChange_)}}}onSetRemove_(Z){this.updatePositions_();let Y=Z.target===Z.root;if(this.emitter.emit("remove",{bladeController:Z.item,root:Y,sender:this}),!Y)return;let K=Z.item;if(h9(K))K.value.emitter.off("change",this.onChildValueChange_);else if(Cz(K)){let z=K.rackController.rack;if(z){let $=z.emitter;$.off("layout",this.onRackLayout_),$.off("valuechange",this.onRackValueChange_)}}}updatePositions_(){let Z=this.bcSet_.items.filter((z)=>!z.viewProps.get("hidden")),Y=Z[0],K=Z[Z.length-1];this.bcSet_.items.forEach((z)=>{let $=[];if(z===Y){if($.push("first"),!this.blade_||this.blade_.get("positions").includes("veryfirst"))$.push("veryfirst")}if(z===K){if($.push("last"),!this.blade_||this.blade_.get("positions").includes("verylast"))$.push("verylast")}z.blade.set("positions",$)})}onChildPositionsChange_(){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildViewPropsChange_(Z){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildDispose_(){this.bcSet_.items.filter((Y)=>{return Y.viewProps.get("disposed")}).forEach((Y)=>{this.bcSet_.remove(Y)})}onChildValueChange_(Z){let Y=tR(this.find(h9),Z.sender);if(!Y)throw hQ.alreadyDisposed();this.emitter.emit("valuechange",{bladeController:Y,options:Z.options,sender:this})}onRackLayout_(Z){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onRackValueChange_(Z){this.emitter.emit("valuechange",{bladeController:Z.bladeController,options:Z.options,sender:this})}onBladePositionsChange_(){this.updatePositions_()}}class e5{constructor(Z){this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this),this.element=Z.element,this.viewProps=Z.viewProps;let Y=new _D({blade:Z.root?void 0:Z.blade,viewProps:Z.viewProps});Y.emitter.on("add",this.onRackAdd_),Y.emitter.on("remove",this.onRackRemove_),this.rack=Y,this.viewProps.handleDispose(()=>{for(let K=this.rack.children.length-1;K>=0;K--)this.rack.children[K].viewProps.set("disposed",!0)})}onRackAdd_(Z){if(!Z.root)return;MD(this.element,Z.bladeController.view.element,Z.index)}onRackRemove_(Z){if(!Z.root)return;cz(Z.bladeController.view.element)}}function e1(){return new vJ({positions:RQ([],{equals:oV})})}class $4 extends vJ{constructor(Z){super(Z)}static create(Z){let Y={completed:!0,expanded:Z,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},K=vJ.createCore(Y);return new $4(K)}get styleExpanded(){var Z;return(Z=this.get("temporaryExpanded"))!==null&&Z!==void 0?Z:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";let Z=this.get("expandedHeight");if(this.get("shouldFixHeight")&&!MQ(Z))return`${Z}px`;return"auto"}bindExpandedClass(Z,Y){let K=()=>{if(this.styleExpanded)Z.classList.add(Y);else Z.classList.remove(Y)};R8(this,"expanded",K),R8(this,"temporaryExpanded",K)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function eR(Z,Y){let K=0;return _R(Y,()=>{Z.set("expandedHeight",null),Z.set("temporaryExpanded",!0),s5(Y),K=Y.clientHeight,Z.set("temporaryExpanded",null),s5(Y)}),K}function SW(Z,Y){Y.style.height=Z.styleHeight}function nz(Z,Y){Z.value("expanded").emitter.on("beforechange",()=>{if(Z.set("completed",!1),MQ(Z.get("expandedHeight"))){let K=eR(Z,Y);if(K>0)Z.set("expandedHeight",K)}Z.set("shouldFixHeight",!0),s5(Y)}),Z.emitter.on("change",()=>{SW(Z,Y)}),SW(Z,Y),Y.addEventListener("transitionend",(K)=>{if(K.propertyName!=="height")return;Z.cleanUpTransition()})}class oz extends t5{constructor(Z,Y){super(Z,Y);this.emitter_=new fQ,this.controller.foldable.value("expanded").emitter.on("change",(K)=>{this.emitter_.emit("fold",new OD(this,K.sender.rawValue))}),this.rackApi_.on("change",(K)=>{this.emitter_.emit("change",K)})}get expanded(){return this.controller.foldable.get("expanded")}set expanded(Z){this.controller.foldable.set("expanded",Z)}get title(){return this.controller.props.get("title")}set title(Z){this.controller.props.set("title",Z)}get children(){return this.rackApi_.children}addBinding(Z,Y,K){return this.rackApi_.addBinding(Z,Y,K)}addFolder(Z){return this.rackApi_.addFolder(Z)}addButton(Z){return this.rackApi_.addButton(Z)}addTab(Z){return this.rackApi_.addTab(Z)}add(Z,Y){return this.rackApi_.add(Z,Y)}remove(Z){this.rackApi_.remove(Z)}addBlade(Z){return this.rackApi_.addBlade(Z)}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}var TD=eJ("cnt");class kD{constructor(Z,Y){var K;this.className_=eJ((K=Y.viewName)!==null&&K!==void 0?K:"fld"),this.element=Z.createElement("div"),this.element.classList.add(this.className_(),TD()),Y.viewProps.bindClassModifiers(this.element),this.foldable_=Y.foldable,this.foldable_.bindExpandedClass(this.element,this.className_(void 0,"expanded")),R8(this.foldable_,"completed",t1(this.element,this.className_(void 0,"cpl")));let z=Z.createElement("button");z.classList.add(this.className_("b")),R8(Y.props,"title",(b)=>{if(MQ(b))this.element.classList.add(this.className_(void 0,"not"));else this.element.classList.remove(this.className_(void 0,"not"))}),Y.viewProps.bindDisabled(z),this.element.appendChild(z),this.buttonElement=z;let $=Z.createElement("div");$.classList.add(this.className_("i")),this.element.appendChild($);let F=Z.createElement("div");F.classList.add(this.className_("t")),iz(Y.props.value("title"),F),this.buttonElement.appendChild(F),this.titleElement=F;let B=Z.createElement("div");B.classList.add(this.className_("m")),this.buttonElement.appendChild(B);let j=Z.createElement("div");j.classList.add(this.className_("c")),this.element.appendChild(j),this.containerElement=j}}class l5 extends a5{constructor(Z,Y){var K;let z=$4.create((K=Y.expanded)!==null&&K!==void 0?K:!0),$=new kD(Z,{foldable:z,props:Y.props,viewName:Y.root?"rot":void 0,viewProps:Y.viewProps});super(Object.assign(Object.assign({},Y),{rackController:new e5({blade:Y.blade,element:$.containerElement,root:Y.root,viewProps:Y.viewProps}),view:$}));this.onTitleClick_=this.onTitleClick_.bind(this),this.props=Y.props,this.foldable=z,nz(this.foldable,this.view.containerElement),this.rackController.rack.emitter.on("add",()=>{this.foldable.cleanUpTransition()}),this.rackController.rack.emitter.on("remove",()=>{this.foldable.cleanUpTransition()}),this.view.buttonElement.addEventListener("click",this.onTitleClick_)}get document(){return this.view.element.ownerDocument}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({expanded:Y.required.boolean,title:Y.optional.string}),(Y)=>{return this.foldable.set("expanded",Y.expanded),this.props.set("title",Y.title),!0})}exportState(){return B7(()=>super.exportState(),{expanded:this.foldable.get("expanded"),title:this.props.get("title")})}onTitleClick_(){this.foldable.set("expanded",!this.foldable.get("expanded"))}}var JS=uZ({id:"folder",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({title:K.required.string,view:K.required.constant("folder"),expanded:K.optional.boolean}));return Y?{params:Y}:null},controller(Z){return new l5(Z.document,{blade:Z.blade,expanded:Z.params.expanded,props:vJ.fromObject({title:Z.params.title}),viewProps:Z.viewProps})},api(Z){if(!(Z.controller instanceof l5))return null;return new oz(Z.controller,Z.pool)}}),QS=eJ("");function _W(Z,Y){return t1(Z,QS(void 0,Y))}class KX extends vJ{constructor(Z){var Y;super(Z);this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=aV(RQ(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),(Y=this.get("parent"))===null||Y===void 0||Y.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(Z){var Y,K,z;let $=Z!==null&&Z!==void 0?Z:{};return new KX(vJ.createCore({disabled:(Y=$.disabled)!==null&&Y!==void 0?Y:!1,disposed:!1,hidden:(K=$.hidden)!==null&&K!==void 0?K:!1,parent:(z=$.parent)!==null&&z!==void 0?z:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(Z){QX(this.globalDisabled_,_W(Z,"disabled")),R8(this,"hidden",_W(Z,"hidden"))}bindDisabled(Z){QX(this.globalDisabled_,(Y)=>{Z.disabled=Y})}bindTabIndex(Z){QX(this.globalDisabled_,(Y)=>{Z.tabIndex=Y?-1:0})}handleDispose(Z){this.value("disposed").emitter.on("change",(Y)=>{if(Y)Z()})}importState(Z){this.set("disabled",Z.disabled),this.set("hidden",Z.hidden)}exportState(){return{disabled:this.get("disabled"),hidden:this.get("hidden")}}getGlobalDisabled_(){let Z=this.get("parent");return(Z?Z.globalDisabled.rawValue:!1)||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(Z){var Y;let K=Z.previousRawValue;K===null||K===void 0||K.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),(Y=this.get("parent"))===null||Y===void 0||Y.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}var TW=eJ("tbp");class ED{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(TW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(TW("c")),this.element.appendChild(K),this.containerElement=K}}var J4=eJ("tbi");class CD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(J4()),Y.viewProps.bindClassModifiers(this.element),R8(Y.props,"selected",($)=>{if($)this.element.classList.add(J4(void 0,"sel"));else this.element.classList.remove(J4(void 0,"sel"))});let K=Z.createElement("button");K.classList.add(J4("b")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.buttonElement=K;let z=Z.createElement("div");z.classList.add(J4("t")),iz(Y.props.value("title"),z),this.buttonElement.appendChild(z),this.titleElement=z}}class xD{constructor(Z,Y){this.emitter=new fQ,this.onClick_=this.onClick_.bind(this),this.props=Y.props,this.viewProps=Y.viewProps,this.view=new CD(Z,{props:Y.props,viewProps:Y.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class i5 extends a5{constructor(Z,Y){let K=new ED(Z,{viewProps:Y.viewProps});super(Object.assign(Object.assign({},Y),{rackController:new e5({blade:Y.blade,element:K.containerElement,viewProps:Y.viewProps}),view:K}));this.onItemClick_=this.onItemClick_.bind(this),this.ic_=new xD(Z,{props:Y.itemProps,viewProps:KX.create()}),this.ic_.emitter.on("click",this.onItemClick_),this.props=Y.props,R8(this.props,"selected",(z)=>{this.itemController.props.set("selected",z),this.viewProps.set("hidden",!z)})}get itemController(){return this.ic_}importState(Z){return F7(Z,(Y)=>super.importState(Y),(Y)=>({selected:Y.required.boolean,title:Y.required.string}),(Y)=>{return this.ic_.props.set("selected",Y.selected),this.ic_.props.set("title",Y.title),!0})}exportState(){return B7(()=>super.exportState(),{selected:this.ic_.props.get("selected"),title:this.ic_.props.get("title")})}onItemClick_(){this.props.set("selected",!0)}}class hD extends t5{constructor(Z,Y){super(Z,Y);this.emitter_=new fQ,this.onSelect_=this.onSelect_.bind(this),this.pool_=Y,this.rackApi_.on("change",(K)=>{this.emitter_.emit("change",K)}),this.controller.tab.selectedIndex.emitter.on("change",this.onSelect_)}get pages(){return this.rackApi_.children}addPage(Z){let Y=this.controller.view.element.ownerDocument,K=new i5(Y,{blade:e1(),itemProps:vJ.fromObject({selected:!1,title:Z.title}),props:vJ.fromObject({selected:!1}),viewProps:KX.create()}),z=this.pool_.createApi(K);return this.rackApi_.add(z,Z.index)}removePage(Z){this.rackApi_.remove(this.rackApi_.children[Z])}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}onSelect_(Z){this.emitter_.emit("select",new LD(this,Z.rawValue))}}class bD extends t5{get title(){var Z;return(Z=this.controller.itemController.props.get("title"))!==null&&Z!==void 0?Z:""}set title(Z){this.controller.itemController.props.set("title",Z)}get selected(){return this.controller.props.get("selected")}set selected(Z){this.controller.props.set("selected",Z)}get children(){return this.rackApi_.children}addButton(Z){return this.rackApi_.addButton(Z)}addFolder(Z){return this.rackApi_.addFolder(Z)}addTab(Z){return this.rackApi_.addTab(Z)}add(Z,Y){this.rackApi_.add(Z,Y)}remove(Z){this.rackApi_.remove(Z)}addBinding(Z,Y,K){return this.rackApi_.addBinding(Z,Y,K)}addBlade(Z){return this.rackApi_.addBlade(Z)}}var kW=-1;class yD{constructor(){this.onItemSelectedChange_=this.onItemSelectedChange_.bind(this),this.empty=RQ(!0),this.selectedIndex=RQ(kW),this.items_=[]}add(Z,Y){let K=Y!==null&&Y!==void 0?Y:this.items_.length;this.items_.splice(K,0,Z),Z.emitter.on("change",this.onItemSelectedChange_),this.keepSelection_()}remove(Z){let Y=this.items_.indexOf(Z);if(Y<0)return;this.items_.splice(Y,1),Z.emitter.off("change",this.onItemSelectedChange_),this.keepSelection_()}keepSelection_(){if(this.items_.length===0){this.selectedIndex.rawValue=kW,this.empty.rawValue=!0;return}let Z=this.items_.findIndex((Y)=>Y.rawValue);if(Z<0)this.items_.forEach((Y,K)=>{Y.rawValue=K===0}),this.selectedIndex.rawValue=0;else this.items_.forEach((Y,K)=>{Y.rawValue=K===Z}),this.selectedIndex.rawValue=Z;this.empty.rawValue=!1}onItemSelectedChange_(Z){if(Z.rawValue){let Y=this.items_.findIndex((K)=>K===Z.sender);this.items_.forEach((K,z)=>{K.rawValue=z===Y}),this.selectedIndex.rawValue=Y}else this.keepSelection_()}}var Q4=eJ("tab");class fD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(Q4(),TD()),Y.viewProps.bindClassModifiers(this.element),QX(Y.empty,t1(this.element,Q4(void 0,"nop")));let K=Z.createElement("div");K.classList.add(Q4("t")),this.element.appendChild(K),this.itemsElement=K;let z=Z.createElement("div");z.classList.add(Q4("i")),this.element.appendChild(z);let $=Z.createElement("div");$.classList.add(Q4("c")),this.element.appendChild($),this.contentsElement=$}}class xz extends a5{constructor(Z,Y){let K=new yD,z=new fD(Z,{empty:K.empty,viewProps:Y.viewProps});super({blade:Y.blade,rackController:new e5({blade:Y.blade,element:z.contentsElement,viewProps:Y.viewProps}),view:z});this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this);let $=this.rackController.rack;$.emitter.on("add",this.onRackAdd_),$.emitter.on("remove",this.onRackRemove_),this.tab=K}add(Z,Y){this.rackController.rack.add(Z,Y)}remove(Z){this.rackController.rack.remove(this.rackController.rack.children[Z])}onRackAdd_(Z){if(!Z.root)return;let Y=Z.bladeController;MD(this.view.itemsElement,Y.itemController.view.element,Z.index),Y.itemController.viewProps.set("parent",this.viewProps),this.tab.add(Y.props.value("selected"))}onRackRemove_(Z){if(!Z.root)return;let Y=Z.bladeController;cz(Y.itemController.view.element),Y.itemController.viewProps.set("parent",null),this.tab.remove(Y.props.value("selected"))}}var vD=uZ({id:"tab",type:"blade",accept(Z){let Y=kQ(Z,(K)=>({pages:K.required.array(K.required.object({title:K.required.string})),view:K.required.constant("tab")}));if(!Y||Y.pages.length===0)return null;return{params:Y}},controller(Z){let Y=new xz(Z.document,{blade:Z.blade,viewProps:Z.viewProps});return Z.params.pages.forEach((K)=>{let z=new i5(Z.document,{blade:e1(),itemProps:vJ.fromObject({selected:!1,title:K.title}),props:vJ.fromObject({selected:!1}),viewProps:KX.create()});Y.add(z)}),Y},api(Z){if(Z.controller instanceof xz)return new hD(Z.controller,Z.pool);if(Z.controller instanceof i5)return new bD(Z.controller,Z.pool);return null}});function ZS(Z,Y){let K=Z.accept(Y.params);if(!K)return null;let z=kQ(Y.params,($)=>({disabled:$.optional.boolean,hidden:$.optional.boolean}));return Z.controller({blade:e1(),document:Y.document,params:J7(Object.assign(Object.assign({},K.params),{disabled:z===null||z===void 0?void 0:z.disabled,hidden:z===null||z===void 0?void 0:z.hidden})),viewProps:KX.create({disabled:z===null||z===void 0?void 0:z.disabled,hidden:z===null||z===void 0?void 0:z.hidden})})}class JG extends l1{get options(){return this.controller.valueController.props.get("options")}set options(Z){this.controller.valueController.props.set("options",Z)}}class uD{constructor(){this.disabled=!1,this.emitter=new fQ}dispose(){}tick(){if(this.disabled)return;this.emitter.emit("tick",{sender:this})}}class gD{constructor(Z,Y){this.disabled_=!1,this.timerId_=null,this.onTick_=this.onTick_.bind(this),this.doc_=Z,this.emitter=new fQ,this.interval_=Y,this.setTimer_()}get disabled(){return this.disabled_}set disabled(Z){if(this.disabled_=Z,this.disabled_)this.clearTimer_();else this.setTimer_()}dispose(){this.clearTimer_()}clearTimer_(){if(this.timerId_===null)return;let Z=this.doc_.defaultView;if(Z)Z.clearInterval(this.timerId_);this.timerId_=null}setTimer_(){if(this.clearTimer_(),this.interval_<=0)return;let Z=this.doc_.defaultView;if(Z)this.timerId_=Z.setInterval(this.onTick_,this.interval_)}onTick_(){if(this.disabled_)return;this.emitter.emit("tick",{sender:this})}}class J6{constructor(Z){this.constraints=Z}constrain(Z){return this.constraints.reduce((Y,K)=>{return K.constrain(Y)},Z)}}function r5(Z,Y){if(Z instanceof Y)return Z;if(Z instanceof J6){let K=Z.constraints.reduce((z,$)=>{if(z)return z;return $ instanceof Y?$:null},null);if(K)return K}return null}class Q6{constructor(Z){this.values=vJ.fromObject({options:Z})}constrain(Z){let Y=this.values.get("options");if(Y.length===0)return Z;return Y.filter((z)=>{return z.value===Z}).length>0?Z:Y[0].value}}function O4(Z){var Y;let K=kz;if(Array.isArray(Z))return(Y=kQ({items:Z},(z)=>({items:z.required.array(z.required.object({text:z.required.string,value:z.required.raw}))})))===null||Y===void 0?void 0:Y.items;if(typeof Z==="object")return K.required.raw(Z).value;return}function tz(Z){if(Array.isArray(Z))return Z;let Y=[];return Object.keys(Z).forEach((K)=>{Y.push({text:K,value:Z[K]})}),Y}function az(Z){return!MQ(Z)?new Q6(tz(J7(Z))):null}var Pz=eJ("lst");class dD{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.props_=Y.props,this.element=Z.createElement("div"),this.element.classList.add(Pz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("select");K.classList.add(Pz("s")),Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.selectElement=K;let z=Z.createElement("div");z.classList.add(Pz("m")),z.appendChild(o5(Z,"dropdown")),this.element.appendChild(z),Y.value.emitter.on("change",this.onValueChange_),this.value_=Y.value,R8(this.props_,"options",($)=>{FD(this.selectElement),$.forEach((F)=>{let B=Z.createElement("option");B.textContent=F.text,this.selectElement.appendChild(B)}),this.update_()})}update_(){let Z=this.props_.get("options").map((Y)=>Y.value);this.selectElement.selectedIndex=Z.indexOf(this.value_.rawValue)}onValueChange_(){this.update_()}}class YX{constructor(Z,Y){this.onSelectChange_=this.onSelectChange_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new dD(Z,{props:this.props,value:this.value,viewProps:this.viewProps}),this.view.selectElement.addEventListener("change",this.onSelectChange_)}onSelectChange_(Z){let Y=J7(Z.currentTarget);this.value.rawValue=this.props.get("options")[Y.selectedIndex].value}importProps(Z){return F7(Z,null,(Y)=>({options:Y.required.custom(O4)}),(Y)=>{return this.props.set("options",tz(Y.options)),!0})}exportProps(){return B7(null,{options:this.props.get("options")})}}var EW=eJ("pop");class mD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(EW()),Y.viewProps.bindClassModifiers(this.element),QX(Y.shows,t1(this.element,EW(void 0,"v")))}}class ez{constructor(Z,Y){this.shows=RQ(!1),this.viewProps=Y.viewProps,this.view=new mD(Z,{shows:this.shows,viewProps:this.viewProps})}}var CW=eJ("txt");class cD{constructor(Z,Y){this.onChange_=this.onChange_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(CW()),Y.viewProps.bindClassModifiers(this.element),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_);let K=Z.createElement("input");K.classList.add(CW("i")),K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,Y.value.emitter.on("change",this.onChange_),this.value_=Y.value,this.refresh()}refresh(){let Z=this.props_.get("formatter");this.inputElement.value=Z(this.value_.rawValue)}onChange_(){this.refresh()}}class i1{constructor(Z,Y){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=Y.parser,this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new cD(Z,{props:Y.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(Z){let K=J7(Z.currentTarget).value,z=this.parser_(K);if(!MQ(z))this.value.rawValue=z;this.view.refresh()}}function XS(Z){return String(Z)}function pD(Z){if(Z==="false")return!1;return!!Z}function xW(Z){return XS(Z)}function YS(Z){return(Y)=>{return Z.reduce((K,z)=>{if(K!==null)return K;return z(Y)},null)}}var GS=eZ(0);function n5(Z){return GS(Z)+"%"}function sD(Z){return String(Z)}function hz(Z){return Z}function Z6({primary:Z,secondary:Y,forward:K,backward:z}){let $=!1;function F(B){if($)return;$=!0,B(),$=!1}Z.emitter.on("change",(B)=>{F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),B.options)})}),Y.emitter.on("change",(B)=>{F(()=>{Z.setRawValue(z(Z.rawValue,Y.rawValue),B.options)}),F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),B.options)})}),F(()=>{Y.setRawValue(K(Z.rawValue,Y.rawValue),{forceEmit:!1,last:!0})})}function aZ(Z,Y){let K=Z*(Y.altKey?0.1:1)*(Y.shiftKey?10:1);if(Y.upKey)return+K;else if(Y.downKey)return-K;return 0}function G4(Z){return{altKey:Z.altKey,downKey:Z.key==="ArrowDown",shiftKey:Z.shiftKey,upKey:Z.key==="ArrowUp"}}function GX(Z){return{altKey:Z.altKey,downKey:Z.key==="ArrowLeft",shiftKey:Z.shiftKey,upKey:Z.key==="ArrowRight"}}function KS(Z){return Z==="ArrowUp"||Z==="ArrowDown"}function lD(Z){return KS(Z)||Z==="ArrowLeft"||Z==="ArrowRight"}function Nz(Z,Y){var K,z;let $=Y.ownerDocument.defaultView,F=Y.getBoundingClientRect();return{x:Z.pageX-(((K=$&&$.scrollX)!==null&&K!==void 0?K:0)+F.left),y:Z.pageY-(((z=$&&$.scrollY)!==null&&z!==void 0?z:0)+F.top)}}class nX{constructor(Z){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=Z,this.emitter=new fQ,Z.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),Z.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),Z.addEventListener("touchend",this.onTouchEnd_),Z.addEventListener("mousedown",this.onMouseDown_)}computePosition_(Z){let Y=this.elem_.getBoundingClientRect();return{bounds:{width:Y.width,height:Y.height},point:Z?{x:Z.x,y:Z.y}:null}}onMouseDown_(Z){var Y;Z.preventDefault(),(Y=Z.currentTarget)===null||Y===void 0||Y.focus();let K=this.elem_.ownerDocument;K.addEventListener("mousemove",this.onDocumentMouseMove_),K.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:Z.altKey,data:this.computePosition_(Nz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onDocumentMouseMove_(Z){this.emitter.emit("move",{altKey:Z.altKey,data:this.computePosition_(Nz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onDocumentMouseUp_(Z){let Y=this.elem_.ownerDocument;Y.removeEventListener("mousemove",this.onDocumentMouseMove_),Y.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:Z.altKey,data:this.computePosition_(Nz(Z,this.elem_)),sender:this,shiftKey:Z.shiftKey})}onTouchStart_(Z){Z.preventDefault();let Y=Z.targetTouches.item(0),K=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:Z.altKey,data:this.computePosition_(Y?{x:Y.clientX-K.left,y:Y.clientY-K.top}:void 0),sender:this,shiftKey:Z.shiftKey}),this.lastTouch_=Y}onTouchMove_(Z){let Y=Z.targetTouches.item(0),K=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:Z.altKey,data:this.computePosition_(Y?{x:Y.clientX-K.left,y:Y.clientY-K.top}:void 0),sender:this,shiftKey:Z.shiftKey}),this.lastTouch_=Y}onTouchEnd_(Z){var Y;let K=(Y=Z.targetTouches.item(0))!==null&&Y!==void 0?Y:this.lastTouch_,z=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:Z.altKey,data:this.computePosition_(K?{x:K.clientX-z.left,y:K.clientY-z.top}:void 0),sender:this,shiftKey:Z.shiftKey})}}var x7=eJ("txt");class iD{constructor(Z,Y){if(this.onChange_=this.onChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_),this.element=Z.createElement("div"),this.element.classList.add(x7(),x7(void 0,"num")),Y.arrayPosition)this.element.classList.add(x7(void 0,Y.arrayPosition));Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("input");K.classList.add(x7("i")),K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=Y.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(x7()),this.inputElement.classList.add(x7("i"));let z=Z.createElement("div");z.classList.add(x7("k")),this.element.appendChild(z),this.knobElement=z;let $=Z.createElementNS(V8,"svg");$.classList.add(x7("g")),this.knobElement.appendChild($);let F=Z.createElementNS(V8,"path");F.classList.add(x7("gb")),$.appendChild(F),this.guideBodyElem_=F;let B=Z.createElementNS(V8,"path");B.classList.add(x7("gh")),$.appendChild(B),this.guideHeadElem_=B;let j=Z.createElement("div");j.classList.add(eJ("tt")()),this.knobElement.appendChild(j),this.tooltipElem_=j,Y.value.emitter.on("change",this.onChange_),this.value=Y.value,this.refresh()}onDraggingChange_(Z){if(Z.rawValue===null){this.element.classList.remove(x7(void 0,"drg"));return}this.element.classList.add(x7(void 0,"drg"));let Y=Z.rawValue/this.props_.get("pointerScale"),K=Y+(Y>0?-1:Y<0?1:0),z=QZ(-K,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${K+z},0 L${K},4 L${K+z},8`,`M ${Y},-1 L${Y},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${Y},4`);let $=this.props_.get("formatter");this.tooltipElem_.textContent=$(this.value.rawValue),this.tooltipElem_.style.left=`${Y}px`}refresh(){let Z=this.props_.get("formatter");this.inputElement.value=Z(this.value.rawValue)}onChange_(){this.refresh()}}class X6{constructor(Z,Y){var K;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.parser_=Y.parser,this.props=Y.props,this.sliderProps_=(K=Y.sliderProps)!==null&&K!==void 0?K:null,this.value=Y.value,this.viewProps=Y.viewProps,this.dragging_=RQ(null),this.view=new iD(Z,{arrayPosition:Y.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);let z=new nX(this.view.knobElement);z.emitter.on("down",this.onPointerDown_),z.emitter.on("move",this.onPointerMove_),z.emitter.on("up",this.onPointerUp_)}constrainValue_(Z){var Y,K;let z=(Y=this.sliderProps_)===null||Y===void 0?void 0:Y.get("min"),$=(K=this.sliderProps_)===null||K===void 0?void 0:K.get("max"),F=Z;if(z!==void 0)F=Math.max(F,z);if($!==void 0)F=Math.min(F,$);return F}onInputChange_(Z){let K=J7(Z.currentTarget).value,z=this.parser_(K);if(!MQ(z))this.value.rawValue=this.constrainValue_(z);this.view.refresh()}onInputKeyDown_(Z){let Y=aZ(this.props.get("keyScale"),G4(Z));if(Y===0)return;this.value.setRawValue(this.constrainValue_(this.value.rawValue+Y),{forceEmit:!1,last:!1})}onInputKeyUp_(Z){if(aZ(this.props.get("keyScale"),G4(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(Z){if(!Z.point)return null;let Y=Z.point.x-Z.bounds.width/2;return this.constrainValue_(this.originRawValue_+Y*this.props.get("pointerScale"))}onPointerMove_(Z){let Y=this.computeDraggingValue_(Z.data);if(Y===null)return;this.value.setRawValue(Y,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_}onPointerUp_(Z){let Y=this.computeDraggingValue_(Z.data);if(Y===null)return;this.value.setRawValue(Y,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null}}var wz=eJ("sld");class rD{constructor(Z,Y){this.onChange_=this.onChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onChange_),this.element=Z.createElement("div"),this.element.classList.add(wz()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(wz("t")),Y.viewProps.bindTabIndex(K),this.element.appendChild(K),this.trackElement=K;let z=Z.createElement("div");z.classList.add(wz("k")),this.trackElement.appendChild(z),this.knobElement=z,Y.value.emitter.on("change",this.onChange_),this.value=Y.value,this.update_()}update_(){let Z=QZ(UQ(this.value.rawValue,this.props_.get("min"),this.props_.get("max"),0,100),0,100);this.knobElement.style.width=`${Z}%`}onChange_(){this.update_()}}class nD{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDownOrMove_=this.onPointerDownOrMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.props=Y.props,this.view=new rD(Z,{props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new nX(this.view.trackElement),this.ptHandler_.emitter.on("down",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("move",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.trackElement.addEventListener("keydown",this.onKeyDown_),this.view.trackElement.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;this.value.setRawValue(UQ(QZ(Z.point.x,0,Z.bounds.width),0,Z.bounds.width,this.props.get("min"),this.props.get("max")),Y)}onPointerDownOrMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(this.props.get("keyScale"),GX(Z));if(Y===0)return;this.value.setRawValue(this.value.rawValue+Y,{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(this.props.get("keyScale"),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var Vz=eJ("sldtxt");class oD{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(Vz());let K=Z.createElement("div");K.classList.add(Vz("s")),this.sliderView_=Y.sliderView,K.appendChild(this.sliderView_.element),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(Vz("t")),this.textView_=Y.textView,z.appendChild(this.textView_.element),this.element.appendChild(z)}}class K4{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.sliderC_=new nD(Z,{props:Y.sliderProps,value:Y.value,viewProps:this.viewProps}),this.textC_=new X6(Z,{parser:Y.parser,props:Y.textProps,sliderProps:Y.sliderProps,value:Y.value,viewProps:Y.viewProps}),this.view=new oD(Z,{sliderView:this.sliderC_.view,textView:this.textC_.view})}get sliderController(){return this.sliderC_}get textController(){return this.textC_}importProps(Z){return F7(Z,null,(Y)=>({max:Y.required.number,min:Y.required.number}),(Y)=>{let K=this.sliderC_.props;return K.set("max",Y.max),K.set("min",Y.min),!0})}exportProps(){let Z=this.sliderC_.props;return B7(null,{max:Z.get("max"),min:Z.get("min")})}}function tD(Z){return{sliderProps:new vJ({keyScale:Z.keyScale,max:Z.max,min:Z.min}),textProps:new vJ({formatter:RQ(Z.formatter),keyScale:Z.keyScale,pointerScale:RQ(Z.pointerScale)})}}var US={containerUnitSize:"cnt-usz"};function aD(Z){return`--${US[Z]}`}function U4(Z){return $D(Z)}function lX(Z){if(!Tz(Z))return;return kQ(Z,U4)}function JX(Z,Y){if(!Z)return;let K=[],z=UD(Z,Y);if(z)K.push(z);let $=qD(Z);if($)K.push($);return new J6(K)}function qS(Z){if(!Z)return!1;return Z.major===a1.major}function eD(Z){if(Z==="inline"||Z==="popup")return Z;return}function L4(Z,Y){Z.write(Y)}var d5=eJ("ckb");class JH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(d5()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("label");K.classList.add(d5("l")),this.element.appendChild(K),this.labelElement=K;let z=Z.createElement("input");z.classList.add(d5("i")),z.type="checkbox",this.labelElement.appendChild(z),this.inputElement=z,Y.viewProps.bindDisabled(this.inputElement);let $=Z.createElement("div");$.classList.add(d5("w")),this.labelElement.appendChild($);let F=o5(Z,"check");$.appendChild(F),Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.update_()}update_(){this.inputElement.checked=this.value.rawValue}onValueChange_(){this.update_()}}class QH{constructor(Z,Y){this.onInputChange_=this.onInputChange_.bind(this),this.onLabelMouseDown_=this.onLabelMouseDown_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new JH(Z,{value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.labelElement.addEventListener("mousedown",this.onLabelMouseDown_)}onInputChange_(Z){let Y=J7(Z.currentTarget);this.value.rawValue=Y.checked,Z.preventDefault(),Z.stopPropagation()}onLabelMouseDown_(Z){Z.preventDefault()}}function zS(Z){let Y=[],K=az(Z.options);if(K)Y.push(K);return new J6(Y)}var $S=uZ({id:"input-bool",type:"input",accept:(Z,Y)=>{if(typeof Z!=="boolean")return null;let K=kQ(Y,(z)=>({options:z.optional.custom(O4),readonly:z.optional.constant(!1)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>pD,constraint:(Z)=>zS(Z.params),writer:(Z)=>L4},controller:(Z)=>{let{document:Y,value:K,constraint:z}=Z,$=z&&r5(z,Q6);if($)return new YX(Y,{props:new vJ({options:$.values.value("options")}),value:K,viewProps:Z.viewProps});return new QH(Y,{value:K,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="boolean")return null;if(Z.controller.valueController instanceof YX)return new JG(Z.controller);return null}}),x9=eJ("col");class ZH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(x9()),Y.foldable.bindExpandedClass(this.element,x9(void 0,"expanded")),R8(Y.foldable,"completed",t1(this.element,x9(void 0,"cpl")));let K=Z.createElement("div");K.classList.add(x9("h")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(x9("s")),K.appendChild(z),this.swatchElement=z;let $=Z.createElement("div");if($.classList.add(x9("t")),K.appendChild($),this.textElement=$,Y.pickerLayout==="inline"){let F=Z.createElement("div");F.classList.add(x9("p")),this.element.appendChild(F),this.pickerElement=F}else this.pickerElement=null}}function OS(Z,Y,K){let z=QZ(Z/255,0,1),$=QZ(Y/255,0,1),F=QZ(K/255,0,1),B=Math.max(z,$,F),j=Math.min(z,$,F),b=B-j,T=0,y=0,k=(j+B)/2;if(b!==0){if(y=b/(1-Math.abs(B+j-1)),z===B)T=($-F)/b;else if($===B)T=2+(F-z)/b;else T=4+(z-$)/b;T=T/6+(T<0?1:0)}return[T*360,y*100,k*100]}function LS(Z,Y,K){let z=(Z%360+360)%360,$=QZ(Y/100,0,1),F=QZ(K/100,0,1),B=(1-Math.abs(2*F-1))*$,j=B*(1-Math.abs(z/60%2-1)),b=F-B/2,T,y,k;if(z>=0&&z<60)[T,y,k]=[B,j,0];else if(z>=60&&z<120)[T,y,k]=[j,B,0];else if(z>=120&&z<180)[T,y,k]=[0,B,j];else if(z>=180&&z<240)[T,y,k]=[0,j,B];else if(z>=240&&z<300)[T,y,k]=[j,0,B];else[T,y,k]=[B,0,j];return[(T+b)*255,(y+b)*255,(k+b)*255]}function WS(Z,Y,K){let z=QZ(Z/255,0,1),$=QZ(Y/255,0,1),F=QZ(K/255,0,1),B=Math.max(z,$,F),j=Math.min(z,$,F),b=B-j,T;if(b===0)T=0;else if(B===z)T=60*((($-F)/b%6+6)%6);else if(B===$)T=60*((F-z)/b+2);else T=60*((z-$)/b+4);let y=B===0?0:b/B,k=B;return[T,y*100,k*100]}function XH(Z,Y,K){let z=YD(Z,360),$=QZ(Y/100,0,1),F=QZ(K/100,0,1),B=F*$,j=B*(1-Math.abs(z/60%2-1)),b=F-B,T,y,k;if(z>=0&&z<60)[T,y,k]=[B,j,0];else if(z>=60&&z<120)[T,y,k]=[j,B,0];else if(z>=120&&z<180)[T,y,k]=[0,B,j];else if(z>=180&&z<240)[T,y,k]=[0,j,B];else if(z>=240&&z<300)[T,y,k]=[j,0,B];else[T,y,k]=[B,0,j];return[(T+b)*255,(y+b)*255,(k+b)*255]}function DS(Z,Y,K){let z=K+Y*(100-Math.abs(2*K-100))/200;return[Z,z!==0?Y*(100-Math.abs(2*K-100))/z:0,K+Y*(100-Math.abs(2*K-100))/200]}function HS(Z,Y,K){let z=100-Math.abs(K*(200-Y)/100-100);return[Z,z!==0?Y*K/z:0,K*(200-Y)/200]}function S8(Z){return[Z[0],Z[1],Z[2]]}function QG(Z,Y){return[Z[0],Z[1],Z[2],Y]}var MS={hsl:{hsl:(Z,Y,K)=>[Z,Y,K],hsv:DS,rgb:LS},hsv:{hsl:HS,hsv:(Z,Y,K)=>[Z,Y,K],rgb:XH},rgb:{hsl:OS,hsv:WS,rgb:(Z,Y,K)=>[Z,Y,K]}};function r1(Z,Y){return[Y==="float"?1:Z==="rgb"?255:360,Y==="float"?1:Z==="rgb"?255:100,Y==="float"?1:Z==="rgb"?255:100]}function FS(Z,Y){return Z===Y?Y:YD(Z,Y)}function YH(Z,Y,K){var z;let $=r1(Y,K);return[Y==="rgb"?QZ(Z[0],0,$[0]):FS(Z[0],$[0]),QZ(Z[1],0,$[1]),QZ(Z[2],0,$[2]),QZ((z=Z[3])!==null&&z!==void 0?z:1,0,1)]}function hW(Z,Y,K,z){let $=r1(Y,K),F=r1(Y,z);return Z.map((B,j)=>B/$[j]*F[j])}function GH(Z,Y,K){let z=hW(Z,Y.mode,Y.type,"int"),$=MS[Y.mode][K.mode](...z);return hW($,K.mode,"int",K.type)}class ZQ{static black(){return new ZQ([0,0,0],"rgb")}constructor(Z,Y){this.type="int",this.mode=Y,this.comps_=YH(Z,Y,this.type)}getComponents(Z){return QG(GH(S8(this.comps_),{mode:this.mode,type:this.type},{mode:Z!==null&&Z!==void 0?Z:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let Z=this.getComponents("rgb");return{r:Z[0],g:Z[1],b:Z[2],a:Z[3]}}}var cX=eJ("colp");class KH{constructor(Z,Y){this.alphaViews_=null,this.element=Z.createElement("div"),this.element.classList.add(cX()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(cX("hsv"));let z=Z.createElement("div");z.classList.add(cX("sv")),this.svPaletteView_=Y.svPaletteView,z.appendChild(this.svPaletteView_.element),K.appendChild(z);let $=Z.createElement("div");$.classList.add(cX("h")),this.hPaletteView_=Y.hPaletteView,$.appendChild(this.hPaletteView_.element),K.appendChild($),this.element.appendChild(K);let F=Z.createElement("div");if(F.classList.add(cX("rgb")),this.textsView_=Y.textsView,F.appendChild(this.textsView_.element),this.element.appendChild(F),Y.alphaViews){this.alphaViews_={palette:Y.alphaViews.palette,text:Y.alphaViews.text};let B=Z.createElement("div");B.classList.add(cX("a"));let j=Z.createElement("div");j.classList.add(cX("ap")),j.appendChild(this.alphaViews_.palette.element),B.appendChild(j);let b=Z.createElement("div");b.classList.add(cX("at")),b.appendChild(this.alphaViews_.text.element),B.appendChild(b),this.element.appendChild(B)}}get allFocusableElements(){let Z=[this.svPaletteView_.element,this.hPaletteView_.element,this.textsView_.modeSelectElement,...this.textsView_.inputViews.map((Y)=>Y.inputElement)];if(this.alphaViews_)Z.push(this.alphaViews_.palette.element,this.alphaViews_.text.inputElement);return Z}}function BS(Z){return Z==="int"?"int":Z==="float"?"float":void 0}function J$(Z){return kQ(Z,(Y)=>({color:Y.optional.object({alpha:Y.optional.boolean,type:Y.optional.custom(BS)}),expanded:Y.optional.boolean,picker:Y.optional.custom(eD),readonly:Y.optional.constant(!1)}))}function v9(Z){return Z?0.1:1}function UH(Z){var Y;return(Y=Z.color)===null||Y===void 0?void 0:Y.type}class ZG{constructor(Z,Y){this.type="float",this.mode=Y,this.comps_=YH(Z,Y,this.type)}getComponents(Z){return QG(GH(S8(this.comps_),{mode:this.mode,type:this.type},{mode:Z!==null&&Z!==void 0?Z:this.mode,type:this.type}),this.comps_[3])}toRgbaObject(){let Z=this.getComponents("rgb");return{r:Z[0],g:Z[1],b:Z[2],a:Z[3]}}}var AS={int:(Z,Y)=>new ZQ(Z,Y),float:(Z,Y)=>new ZG(Z,Y)};function Q$(Z,Y,K){return AS[K](Z,Y)}function IS(Z){return Z.type==="float"}function jS(Z){return Z.type==="int"}function PS(Z){let Y=Z.getComponents(),K=r1(Z.mode,"int");return new ZQ([Math.round(UQ(Y[0],0,1,0,K[0])),Math.round(UQ(Y[1],0,1,0,K[1])),Math.round(UQ(Y[2],0,1,0,K[2])),Y[3]],Z.mode)}function NS(Z){let Y=Z.getComponents(),K=r1(Z.mode,"int");return new ZG([UQ(Y[0],0,K[0],0,1),UQ(Y[1],0,K[1],0,1),UQ(Y[2],0,K[2],0,1),Y[3]],Z.mode)}function vZ(Z,Y){if(Z.type===Y)return Z;if(jS(Z)&&Y==="float")return NS(Z);if(IS(Z)&&Y==="int")return PS(Z);throw hQ.shouldNeverHappen()}function wS(Z,Y){return Z.alpha===Y.alpha&&Z.mode===Y.mode&&Z.notation===Y.notation&&Z.type===Y.type}function h7(Z,Y){let K=Z.match(/^(.+)%$/);if(!K)return Math.min(parseFloat(Z),Y);return Math.min(parseFloat(K[1])*0.01*Y,Y)}var VS={deg:(Z)=>Z,grad:(Z)=>Z*360/400,rad:(Z)=>Z*360/(2*Math.PI),turn:(Z)=>Z*360};function qH(Z){let Y=Z.match(/^([0-9.]+?)(deg|grad|rad|turn)$/);if(!Y)return parseFloat(Z);let K=parseFloat(Y[1]),z=Y[2];return VS[z](K)}function zH(Z){let Y=Z.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[h7(Y[1],255),h7(Y[2],255),h7(Y[3],255)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function RS(Z){let Y=zH(Z);return Y?new ZQ(Y,"rgb"):null}function $H(Z){let Y=Z.match(/^rgba\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[h7(Y[1],255),h7(Y[2],255),h7(Y[3],255),h7(Y[4],1)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function SS(Z){let Y=$H(Z);return Y?new ZQ(Y,"rgb"):null}function OH(Z){let Y=Z.match(/^hsl\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[qH(Y[1]),h7(Y[2],100),h7(Y[3],100)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function _S(Z){let Y=OH(Z);return Y?new ZQ(Y,"hsl"):null}function LH(Z){let Y=Z.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!Y)return null;let K=[qH(Y[1]),h7(Y[2],100),h7(Y[3],100),h7(Y[4],1)];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function TS(Z){let Y=LH(Z);return Y?new ZQ(Y,"hsl"):null}function WH(Z){let Y=Z.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(Y)return[parseInt(Y[1]+Y[1],16),parseInt(Y[2]+Y[2],16),parseInt(Y[3]+Y[3],16)];let K=Z.match(/^(?:#|0x)([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);if(K)return[parseInt(K[1],16),parseInt(K[2],16),parseInt(K[3],16)];return null}function kS(Z){let Y=WH(Z);return Y?new ZQ(Y,"rgb"):null}function DH(Z){let Y=Z.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(Y)return[parseInt(Y[1]+Y[1],16),parseInt(Y[2]+Y[2],16),parseInt(Y[3]+Y[3],16),UQ(parseInt(Y[4]+Y[4],16),0,255,0,1)];let K=Z.match(/^(?:#|0x)?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);if(K)return[parseInt(K[1],16),parseInt(K[2],16),parseInt(K[3],16),UQ(parseInt(K[4],16),0,255,0,1)];return null}function ES(Z){let Y=DH(Z);return Y?new ZQ(Y,"rgb"):null}function HH(Z){let Y=Z.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!Y)return null;let K=[parseFloat(Y[1]),parseFloat(Y[2]),parseFloat(Y[3])];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2]))return null;return K}function bW(Z){return(Y)=>{let K=HH(Y);return K?Q$(K,"rgb",Z):null}}function MH(Z){let Y=Z.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*a\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!Y)return null;let K=[parseFloat(Y[1]),parseFloat(Y[2]),parseFloat(Y[3]),parseFloat(Y[4])];if(isNaN(K[0])||isNaN(K[1])||isNaN(K[2])||isNaN(K[3]))return null;return K}function yW(Z){return(Y)=>{let K=MH(Y);return K?Q$(K,"rgb",Z):null}}var CS=[{parser:WH,result:{alpha:!1,mode:"rgb",notation:"hex"}},{parser:DH,result:{alpha:!0,mode:"rgb",notation:"hex"}},{parser:zH,result:{alpha:!1,mode:"rgb",notation:"func"}},{parser:$H,result:{alpha:!0,mode:"rgb",notation:"func"}},{parser:OH,result:{alpha:!1,mode:"hsl",notation:"func"}},{parser:LH,result:{alpha:!0,mode:"hsl",notation:"func"}},{parser:HH,result:{alpha:!1,mode:"rgb",notation:"object"}},{parser:MH,result:{alpha:!0,mode:"rgb",notation:"object"}}];function xS(Z){return CS.reduce((Y,{parser:K,result:z})=>{if(Y)return Y;return K(Z)?z:null},null)}function hS(Z,Y="int"){let K=xS(Z);if(!K)return null;if(K.notation==="hex"&&Y!=="float")return Object.assign(Object.assign({},K),{type:"int"});if(K.notation==="func")return Object.assign(Object.assign({},K),{type:Y});return null}function W4(Z){let Y=[kS,ES,RS,SS,_S,TS];if(Z==="int")Y.push(bW("int"),yW("int"));if(Z==="float")Y.push(bW("float"),yW("float"));let K=YS(Y);return(z)=>{let $=K(z);return $?vZ($,Z):null}}function bS(Z){let Y=W4("int");if(typeof Z!=="string")return ZQ.black();let K=Y(Z);return K!==null&&K!==void 0?K:ZQ.black()}function FH(Z){let Y=QZ(Math.floor(Z),0,255).toString(16);return Y.length===1?`0${Y}`:Y}function Z$(Z,Y="#"){let K=S8(Z.getComponents("rgb")).map(FH).join("");return`${Y}${K}`}function X$(Z,Y="#"){let K=Z.getComponents("rgb"),z=[K[0],K[1],K[2],K[3]*255].map(FH).join("");return`${Y}${z}`}function BH(Z){let Y=eZ(0),K=vZ(Z,"int");return`rgb(${S8(K.getComponents("rgb")).map(($)=>Y($)).join(", ")})`}function m5(Z){let Y=eZ(2),K=eZ(0);return`rgba(${vZ(Z,"int").getComponents("rgb").map((F,B)=>{return(B===3?Y:K)(F)}).join(", ")})`}function yS(Z){let Y=[eZ(0),n5,n5],K=vZ(Z,"int");return`hsl(${S8(K.getComponents("hsl")).map(($,F)=>Y[F]($)).join(", ")})`}function fS(Z){let Y=[eZ(0),n5,n5,eZ(2)];return`hsla(${vZ(Z,"int").getComponents("hsl").map(($,F)=>Y[F]($)).join(", ")})`}function AH(Z,Y){let K=eZ(Y==="float"?2:0),z=["r","g","b"],$=vZ(Z,Y);return`{${S8($.getComponents("rgb")).map((B,j)=>`${z[j]}: ${K(B)}`).join(", ")}}`}function vS(Z){return(Y)=>AH(Y,Z)}function IH(Z,Y){let K=eZ(2),z=eZ(Y==="float"?2:0),$=["r","g","b","a"];return`{${vZ(Z,Y).getComponents("rgb").map((j,b)=>{let T=b===3?K:z;return`${$[b]}: ${T(j)}`}).join(", ")}}`}function uS(Z){return(Y)=>IH(Y,Z)}var gS=[{format:{alpha:!1,mode:"rgb",notation:"hex",type:"int"},stringifier:Z$},{format:{alpha:!0,mode:"rgb",notation:"hex",type:"int"},stringifier:X$},{format:{alpha:!1,mode:"rgb",notation:"func",type:"int"},stringifier:BH},{format:{alpha:!0,mode:"rgb",notation:"func",type:"int"},stringifier:m5},{format:{alpha:!1,mode:"hsl",notation:"func",type:"int"},stringifier:yS},{format:{alpha:!0,mode:"hsl",notation:"func",type:"int"},stringifier:fS},...["int","float"].reduce((Z,Y)=>{return[...Z,{format:{alpha:!1,mode:"rgb",notation:"object",type:Y},stringifier:vS(Y)},{format:{alpha:!0,mode:"rgb",notation:"object",type:Y},stringifier:uS(Y)}]},[])];function jH(Z){return gS.reduce((Y,K)=>{if(Y)return Y;return wS(K.format,Z)?K.stringifier:null},null)}var Z4=eJ("apl");class PH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Z4()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("div");K.classList.add(Z4("b")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(Z4("c")),K.appendChild(z),this.colorElem_=z;let $=Z.createElement("div");$.classList.add(Z4("m")),this.element.appendChild($),this.markerElem_=$;let F=Z.createElement("div");F.classList.add(Z4("p")),this.markerElem_.appendChild(F),this.previewElem_=F,this.update_()}update_(){let Z=this.value.rawValue,Y=Z.getComponents("rgb"),K=new ZQ([Y[0],Y[1],Y[2],0],"rgb"),z=new ZQ([Y[0],Y[1],Y[2],255],"rgb"),$=["to right",m5(K),m5(z)];this.colorElem_.style.background=`linear-gradient(${$.join(",")})`,this.previewElem_.style.backgroundColor=m5(Z);let F=UQ(Y[3],0,1,0,100);this.markerElem_.style.left=`${F}%`}onValueChange_(){this.update_()}}class NH{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new PH(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new nX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=Z.point.x/Z.bounds.width,z=this.value.rawValue,[$,F,B]=z.getComponents("hsv");this.value.setRawValue(new ZQ([$,F,B,K],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(v9(!0),GX(Z));if(Y===0)return;let K=this.value.rawValue,[z,$,F,B]=K.getComponents("hsv");this.value.setRawValue(new ZQ([z,$,F,B+Y],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(v9(!0),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var p1=eJ("coltxt");function dS(Z){let Y=Z.createElement("select"),K=[{text:"RGB",value:"rgb"},{text:"HSL",value:"hsl"},{text:"HSV",value:"hsv"},{text:"HEX",value:"hex"}];return Y.appendChild(K.reduce((z,$)=>{let F=Z.createElement("option");return F.textContent=$.text,F.value=$.value,z.appendChild(F),z},Z.createDocumentFragment())),Y}class wH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(p1()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(p1("m")),this.modeElem_=dS(Z),this.modeElem_.classList.add(p1("ms")),K.appendChild(this.modeSelectElement),Y.viewProps.bindDisabled(this.modeElem_);let z=Z.createElement("div");z.classList.add(p1("mm")),z.appendChild(o5(Z,"dropdown")),K.appendChild(z),this.element.appendChild(K);let $=Z.createElement("div");$.classList.add(p1("w")),this.element.appendChild($),this.inputsElem_=$,this.inputViews_=Y.inputViews,this.applyInputViews_(),QX(Y.mode,(F)=>{this.modeElem_.value=F})}get modeSelectElement(){return this.modeElem_}get inputViews(){return this.inputViews_}set inputViews(Z){this.inputViews_=Z,this.applyInputViews_()}applyInputViews_(){FD(this.inputsElem_);let Z=this.element.ownerDocument;this.inputViews_.forEach((Y)=>{let K=Z.createElement("div");K.classList.add(p1("c")),K.appendChild(Y.element),this.inputsElem_.appendChild(K)})}}function mS(Z){return eZ(Z==="float"?2:0)}function cS(Z,Y,K){let z=r1(Z,Y)[K];return new n1({min:0,max:z})}function pS(Z,Y,K){return new X6(Z,{arrayPosition:K===0?"fst":K===2?"lst":"mid",parser:Y.parser,props:vJ.fromObject({formatter:mS(Y.colorType),keyScale:v9(!1),pointerScale:Y.colorType==="float"?0.01:1}),value:RQ(0,{constraint:cS(Y.colorMode,Y.colorType,K)}),viewProps:Y.viewProps})}function sS(Z,Y){let K={colorMode:Y.colorMode,colorType:Y.colorType,parser:XX,viewProps:Y.viewProps};return[0,1,2].map((z)=>{let $=pS(Z,K,z);return Z6({primary:Y.value,secondary:$.value,forward(F){return vZ(F,Y.colorType).getComponents(Y.colorMode)[z]},backward(F,B){let j=Y.colorMode,T=vZ(F,Y.colorType).getComponents(j);T[z]=B;let y=Q$(QG(S8(T),T[3]),j,Y.colorType);return vZ(y,"int")}}),$})}function lS(Z,Y){let K=new i1(Z,{parser:W4("int"),props:vJ.fromObject({formatter:Z$}),value:RQ(ZQ.black()),viewProps:Y.viewProps});return Z6({primary:Y.value,secondary:K.value,forward:(z)=>new ZQ(S8(z.getComponents()),z.mode),backward:(z,$)=>new ZQ(QG(S8($.getComponents(z.mode)),z.getComponents()[3]),z.mode)}),[K]}function iS(Z){return Z!=="hex"}class VH{constructor(Z,Y){this.onModeSelectChange_=this.onModeSelectChange_.bind(this),this.colorType_=Y.colorType,this.value=Y.value,this.viewProps=Y.viewProps,this.colorMode=RQ(this.value.rawValue.mode),this.ccs_=this.createComponentControllers_(Z),this.view=new wH(Z,{mode:this.colorMode,inputViews:[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view],viewProps:this.viewProps}),this.view.modeSelectElement.addEventListener("change",this.onModeSelectChange_)}createComponentControllers_(Z){let Y=this.colorMode.rawValue;if(iS(Y))return sS(Z,{colorMode:Y,colorType:this.colorType_,value:this.value,viewProps:this.viewProps});return lS(Z,{value:this.value,viewProps:this.viewProps})}onModeSelectChange_(Z){let Y=Z.currentTarget;this.colorMode.rawValue=Y.value,this.ccs_=this.createComponentControllers_(this.view.element.ownerDocument),this.view.inputViews=this.ccs_.map((K)=>K.view)}}var Rz=eJ("hpl");class RH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Rz()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("div");K.classList.add(Rz("c")),this.element.appendChild(K);let z=Z.createElement("div");z.classList.add(Rz("m")),this.element.appendChild(z),this.markerElem_=z,this.update_()}update_(){let Z=this.value.rawValue,[Y]=Z.getComponents("hsv");this.markerElem_.style.backgroundColor=BH(new ZQ([Y,100,100],"hsv"));let K=UQ(Y,0,360,0,100);this.markerElem_.style.left=`${K}%`}onValueChange_(){this.update_()}}class SH{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new RH(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new nX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=UQ(QZ(Z.point.x,0,Z.bounds.width),0,Z.bounds.width,0,360),z=this.value.rawValue,[,$,F,B]=z.getComponents("hsv");this.value.setRawValue(new ZQ([K,$,F,B],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){let Y=aZ(v9(!1),GX(Z));if(Y===0)return;let K=this.value.rawValue,[z,$,F,B]=K.getComponents("hsv");this.value.setRawValue(new ZQ([z+Y,$,F,B],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){if(aZ(v9(!1),GX(Z))===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}var Sz=eJ("svp"),fW=64;class _H{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),this.value=Y.value,this.value.emitter.on("change",this.onValueChange_),this.element=Z.createElement("div"),this.element.classList.add(Sz()),Y.viewProps.bindClassModifiers(this.element),Y.viewProps.bindTabIndex(this.element);let K=Z.createElement("canvas");K.height=fW,K.width=fW,K.classList.add(Sz("c")),this.element.appendChild(K),this.canvasElement=K;let z=Z.createElement("div");z.classList.add(Sz("m")),this.element.appendChild(z),this.markerElem_=z,this.update_()}update_(){let Z=ER(this.canvasElement);if(!Z)return;let K=this.value.rawValue.getComponents("hsv"),z=this.canvasElement.width,$=this.canvasElement.height,F=Z.getImageData(0,0,z,$),B=F.data;for(let T=0;T<$;T++)for(let y=0;y<z;y++){let k=UQ(y,0,z,0,100),a=UQ(T,0,$,100,0),DJ=XH(K[0],k,a),TJ=(T*z+y)*4;B[TJ]=DJ[0],B[TJ+1]=DJ[1],B[TJ+2]=DJ[2],B[TJ+3]=255}Z.putImageData(F,0,0);let j=UQ(K[1],0,100,0,100);this.markerElem_.style.left=`${j}%`;let b=UQ(K[2],0,100,100,0);this.markerElem_.style.top=`${b}%`}onValueChange_(){this.update_()}}class TH{constructor(Z,Y){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.view=new _H(Z,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new nX(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=UQ(Z.point.x,0,Z.bounds.width,0,100),z=UQ(Z.point.y,0,Z.bounds.height,100,0),[$,,,F]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new ZQ([$,K,z,F],"hsv"),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onKeyDown_(Z){if(lD(Z.key))Z.preventDefault();let[Y,K,z,$]=this.value.rawValue.getComponents("hsv"),F=v9(!1),B=aZ(F,GX(Z)),j=aZ(F,G4(Z));if(B===0&&j===0)return;this.value.setRawValue(new ZQ([Y,K+B,z+j,$],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(Z){let Y=v9(!1),K=aZ(Y,GX(Z)),z=aZ(Y,G4(Z));if(K===0&&z===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class kH{constructor(Z,Y){if(this.value=Y.value,this.viewProps=Y.viewProps,this.hPaletteC_=new SH(Z,{value:this.value,viewProps:this.viewProps}),this.svPaletteC_=new TH(Z,{value:this.value,viewProps:this.viewProps}),this.alphaIcs_=Y.supportsAlpha?{palette:new NH(Z,{value:this.value,viewProps:this.viewProps}),text:new X6(Z,{parser:XX,props:vJ.fromObject({pointerScale:0.01,keyScale:0.1,formatter:eZ(2)}),value:RQ(0,{constraint:new n1({min:0,max:1})}),viewProps:this.viewProps})}:null,this.alphaIcs_)Z6({primary:this.value,secondary:this.alphaIcs_.text.value,forward:(K)=>K.getComponents()[3],backward:(K,z)=>{let $=K.getComponents();return $[3]=z,new ZQ($,K.mode)}});this.textsC_=new VH(Z,{colorType:Y.colorType,value:this.value,viewProps:this.viewProps}),this.view=new KH(Z,{alphaViews:this.alphaIcs_?{palette:this.alphaIcs_.palette.view,text:this.alphaIcs_.text.view}:null,hPaletteView:this.hPaletteC_.view,supportsAlpha:Y.supportsAlpha,svPaletteView:this.svPaletteC_.view,textsView:this.textsC_.view,viewProps:this.viewProps})}get textsController(){return this.textsC_}}var _z=eJ("colsw");class EH{constructor(Z,Y){this.onValueChange_=this.onValueChange_.bind(this),Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.element=Z.createElement("div"),this.element.classList.add(_z()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(_z("sw")),this.element.appendChild(K),this.swatchElem_=K;let z=Z.createElement("button");z.classList.add(_z("b")),Y.viewProps.bindDisabled(z),this.element.appendChild(z),this.buttonElement=z,this.update_()}update_(){let Z=this.value.rawValue;this.swatchElem_.style.backgroundColor=X$(Z)}onValueChange_(){this.update_()}}class CH{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new EH(Z,{value:this.value,viewProps:this.viewProps})}}class XG{constructor(Z,Y){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.foldable_=$4.create(Y.expanded),this.swatchC_=new CH(Z,{value:this.value,viewProps:this.viewProps});let K=this.swatchC_.view.buttonElement;K.addEventListener("blur",this.onButtonBlur_),K.addEventListener("click",this.onButtonClick_),this.textC_=new i1(Z,{parser:Y.parser,props:vJ.fromObject({formatter:Y.formatter}),value:this.value,viewProps:this.viewProps}),this.view=new ZH(Z,{foldable:this.foldable_,pickerLayout:Y.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_=Y.pickerLayout==="popup"?new ez(Z,{viewProps:this.viewProps}):null;let z=new kH(Z,{colorType:Y.colorType,supportsAlpha:Y.supportsAlpha,value:this.value,viewProps:this.viewProps});if(z.view.allFocusableElements.forEach(($)=>{$.addEventListener("blur",this.onPopupChildBlur_),$.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=z,this.popC_)this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(z.view.element),Z6({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:($)=>$,backward:($,F)=>F});else if(this.view.pickerElement)this.view.pickerElement.appendChild(this.pickerC_.view.element),nz(this.foldable_,this.view.pickerElement)}get textController(){return this.textC_}onButtonBlur_(Z){if(!this.popC_)return;let Y=this.view.element,K=J7(Z.relatedTarget);if(!K||!Y.contains(K))this.popC_.shows.rawValue=!1}onButtonClick_(){if(this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded"))this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(Z){if(!this.popC_)return;let Y=this.popC_.view.element,K=BD(Z);if(K&&Y.contains(K))return;if(K&&K===this.swatchC_.view.buttonElement&&!mz(Y.ownerDocument))return;this.popC_.shows.rawValue=!1}onPopupChildKeydown_(Z){if(this.popC_){if(Z.key==="Escape")this.popC_.shows.rawValue=!1}else if(this.view.pickerElement){if(Z.key==="Escape")this.swatchC_.view.buttonElement.focus()}}}function rS(Z){return S8(Z.getComponents("rgb")).reduce((Y,K)=>{return Y<<8|Math.floor(K)&255},0)}function nS(Z){return Z.getComponents("rgb").reduce((Y,K,z)=>{let $=Math.floor(z===3?K*255:K)&255;return Y<<8|$},0)>>>0}function oS(Z){return new ZQ([Z>>16&255,Z>>8&255,Z&255],"rgb")}function tS(Z){return new ZQ([Z>>24&255,Z>>16&255,Z>>8&255,UQ(Z&255,0,255,0,1)],"rgb")}function aS(Z){if(typeof Z!=="number")return ZQ.black();return oS(Z)}function eS(Z){if(typeof Z!=="number")return ZQ.black();return tS(Z)}function c5(Z,Y){if(typeof Z!=="object"||MQ(Z))return!1;return Y in Z&&typeof Z[Y]==="number"}function xH(Z){return c5(Z,"r")&&c5(Z,"g")&&c5(Z,"b")}function hH(Z){return xH(Z)&&c5(Z,"a")}function bH(Z){return xH(Z)}function Y$(Z,Y){if(Z.mode!==Y.mode)return!1;if(Z.type!==Y.type)return!1;let K=Z.getComponents(),z=Y.getComponents();for(let $=0;$<K.length;$++)if(K[$]!==z[$])return!1;return!0}function vW(Z){return"a"in Z?[Z.r,Z.g,Z.b,Z.a]:[Z.r,Z.g,Z.b]}function J_(Z){let Y=jH(Z);return Y?(K,z)=>{L4(K,Y(z))}:null}function Q_(Z){let Y=Z?nS:rS;return(K,z)=>{L4(K,Y(z))}}function Z_(Z,Y,K){let $=vZ(Y,K).toRgbaObject();Z.writeProperty("r",$.r),Z.writeProperty("g",$.g),Z.writeProperty("b",$.b),Z.writeProperty("a",$.a)}function X_(Z,Y,K){let $=vZ(Y,K).toRgbaObject();Z.writeProperty("r",$.r),Z.writeProperty("g",$.g),Z.writeProperty("b",$.b)}function Y_(Z,Y){return(K,z)=>{if(Z)Z_(K,z,Y);else X_(K,z,Y)}}function G_(Z){var Y;if((Y=Z===null||Z===void 0?void 0:Z.color)===null||Y===void 0?void 0:Y.alpha)return!0;return!1}function K_(Z){return Z?(Y)=>X$(Y,"0x"):(Y)=>Z$(Y,"0x")}function U_(Z){if("color"in Z)return!0;if(Z.view==="color")return!0;return!1}var q_=uZ({id:"input-color-number",type:"input",accept:(Z,Y)=>{if(typeof Z!=="number")return null;if(!U_(Y))return null;let K=J$(Y);return K?{initialValue:Z,params:Object.assign(Object.assign({},K),{supportsAlpha:G_(Y)})}:null},binding:{reader:(Z)=>{return Z.params.supportsAlpha?eS:aS},equals:Y$,writer:(Z)=>{return Q_(Z.params.supportsAlpha)}},controller:(Z)=>{var Y,K;return new XG(Z.document,{colorType:"int",expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:K_(Z.params.supportsAlpha),parser:W4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:Z.params.supportsAlpha,value:Z.value,viewProps:Z.viewProps})}});function z_(Z,Y){if(!bH(Z))return vZ(ZQ.black(),Y);if(Y==="int"){let K=vW(Z);return new ZQ(K,"rgb")}if(Y==="float"){let K=vW(Z);return new ZG(K,"rgb")}return vZ(ZQ.black(),"int")}function $_(Z){return hH(Z)}function O_(Z){return(Y)=>{let K=z_(Y,Z);return vZ(K,"int")}}function L_(Z,Y){return(K)=>{if(Z)return IH(K,Y);return AH(K,Y)}}var W_=uZ({id:"input-color-object",type:"input",accept:(Z,Y)=>{var K;if(!bH(Z))return null;let z=J$(Y);return z?{initialValue:Z,params:Object.assign(Object.assign({},z),{colorType:(K=UH(Y))!==null&&K!==void 0?K:"int"})}:null},binding:{reader:(Z)=>O_(Z.params.colorType),equals:Y$,writer:(Z)=>Y_($_(Z.initialValue),Z.params.colorType)},controller:(Z)=>{var Y,K;let z=hH(Z.initialValue);return new XG(Z.document,{colorType:Z.params.colorType,expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:L_(z,Z.params.colorType),parser:W4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:z,value:Z.value,viewProps:Z.viewProps})}}),D_=uZ({id:"input-color-string",type:"input",accept:(Z,Y)=>{if(typeof Z!=="string")return null;if(Y.view==="text")return null;let K=hS(Z,UH(Y));if(!K)return null;let z=jH(K);if(!z)return null;let $=J$(Y);return $?{initialValue:Z,params:Object.assign(Object.assign({},$),{format:K,stringifier:z})}:null},binding:{reader:()=>bS,equals:Y$,writer:(Z)=>{let Y=J_(Z.params.format);if(!Y)throw hQ.notBindable();return Y}},controller:(Z)=>{var Y,K;return new XG(Z.document,{colorType:Z.params.format.type,expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,formatter:Z.params.stringifier,parser:W4("int"),pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",supportsAlpha:Z.params.format.alpha,value:Z.value,viewProps:Z.viewProps})}});class YG{constructor(Z){this.components=Z.components,this.asm_=Z.assembly}constrain(Z){let Y=this.asm_.toComponents(Z).map((K,z)=>{var $,F;return(F=($=this.components[z])===null||$===void 0?void 0:$.constrain(K))!==null&&F!==void 0?F:K});return this.asm_.fromComponents(Y)}}var uW=eJ("pndtxt");class yH{constructor(Z,Y){this.textViews=Y.textViews,this.element=Z.createElement("div"),this.element.classList.add(uW()),this.textViews.forEach((K)=>{let z=Z.createElement("div");z.classList.add(uW("a")),z.appendChild(K.element),this.element.appendChild(z)})}}function H_(Z,Y,K){return new X6(Z,{arrayPosition:K===0?"fst":K===Y.axes.length-1?"lst":"mid",parser:Y.parser,props:Y.axes[K].textProps,value:RQ(0,{constraint:Y.axes[K].constraint}),viewProps:Y.viewProps})}class GG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.acs_=Y.axes.map((K,z)=>H_(Z,Y,z)),this.acs_.forEach((K,z)=>{Z6({primary:this.value,secondary:K.value,forward:($)=>Y.assembly.toComponents($)[z],backward:($,F)=>{let B=Y.assembly.toComponents($);return B[z]=F,Y.assembly.fromComponents(B)}})}),this.view=new yH(Z,{textViews:this.acs_.map((K)=>K.view)})}get textControllers(){return this.acs_}}class fH extends l1{get max(){return this.controller.valueController.sliderController.props.get("max")}set max(Z){this.controller.valueController.sliderController.props.set("max",Z)}get min(){return this.controller.valueController.sliderController.props.get("min")}set min(Z){this.controller.valueController.sliderController.props.set("min",Z)}}function M_(Z,Y){let K=[],z=UD(Z,Y);if(z)K.push(z);let $=qD(Z);if($)K.push($);let F=az(Z.options);if(F)K.push(F);return new J6(K)}var F_=uZ({id:"input-number",type:"input",accept:(Z,Y)=>{if(typeof Z!=="number")return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},$D(z)),{options:z.optional.custom(O4),readonly:z.optional.constant(!1)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>XD,constraint:(Z)=>M_(Z.params,Z.initialValue),writer:(Z)=>L4},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=K&&r5(K,Q6);if(z)return new YX(Z.document,{props:new vJ({options:z.values.value("options")}),value:Y,viewProps:Z.viewProps});let $=zD(Z.params,Y.rawValue),F=K&&r5(K,n1);if(F)return new K4(Z.document,Object.assign(Object.assign({},tD(Object.assign(Object.assign({},$),{keyScale:RQ($.keyScale),max:F.values.value("max"),min:F.values.value("min")}))),{parser:XX,value:Y,viewProps:Z.viewProps}));return new X6(Z.document,{parser:XX,props:vJ.fromObject($),value:Y,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="number")return null;if(Z.controller.valueController instanceof K4)return new fH(Z.controller);if(Z.controller.valueController instanceof YX)return new JG(Z.controller);return null}});class ZX{constructor(Z=0,Y=0){this.x=Z,this.y=Y}getComponents(){return[this.x,this.y]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K}=Z;if(typeof Y!=="number"||typeof K!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y}toObject(){return{x:this.x,y:this.y}}}var vH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new ZX(...Z)},s1=eJ("p2d");class uH{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(s1()),Y.viewProps.bindClassModifiers(this.element),QX(Y.expanded,t1(this.element,s1(void 0,"expanded")));let K=Z.createElement("div");K.classList.add(s1("h")),this.element.appendChild(K);let z=Z.createElement("button");z.classList.add(s1("b")),z.appendChild(o5(Z,"p2dpad")),Y.viewProps.bindDisabled(z),K.appendChild(z),this.buttonElement=z;let $=Z.createElement("div");if($.classList.add(s1("t")),K.appendChild($),this.textElement=$,Y.pickerLayout==="inline"){let F=Z.createElement("div");F.classList.add(s1("p")),this.element.appendChild(F),this.pickerElement=F}else this.pickerElement=null}}var pX=eJ("p2dp");class gH{constructor(Z,Y){if(this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onPropsChange_=this.onPropsChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.props_=Y.props,this.props_.emitter.on("change",this.onPropsChange_),this.element=Z.createElement("div"),this.element.classList.add(pX()),Y.layout==="popup")this.element.classList.add(pX(void 0,"p"));Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("div");K.classList.add(pX("p")),Y.viewProps.bindTabIndex(K),this.element.appendChild(K),this.padElement=K;let z=Z.createElementNS(V8,"svg");z.classList.add(pX("g")),this.padElement.appendChild(z),this.svgElem_=z;let $=Z.createElementNS(V8,"line");$.classList.add(pX("ax")),$.setAttributeNS(null,"x1","0"),$.setAttributeNS(null,"y1","50%"),$.setAttributeNS(null,"x2","100%"),$.setAttributeNS(null,"y2","50%"),this.svgElem_.appendChild($);let F=Z.createElementNS(V8,"line");F.classList.add(pX("ax")),F.setAttributeNS(null,"x1","50%"),F.setAttributeNS(null,"y1","0"),F.setAttributeNS(null,"x2","50%"),F.setAttributeNS(null,"y2","100%"),this.svgElem_.appendChild(F);let B=Z.createElementNS(V8,"line");B.classList.add(pX("l")),B.setAttributeNS(null,"x1","50%"),B.setAttributeNS(null,"y1","50%"),this.svgElem_.appendChild(B),this.lineElem_=B;let j=Z.createElement("div");j.classList.add(pX("m")),this.padElement.appendChild(j),this.markerElem_=j,Y.value.emitter.on("change",this.onValueChange_),this.value=Y.value,this.update_()}get allFocusableElements(){return[this.padElement]}update_(){let[Z,Y]=this.value.rawValue.getComponents(),K=this.props_.get("max"),z=UQ(Z,-K,+K,0,100),$=UQ(Y,-K,+K,0,100),F=this.props_.get("invertsY")?100-$:$;this.lineElem_.setAttributeNS(null,"x2",`${z}%`),this.lineElem_.setAttributeNS(null,"y2",`${F}%`),this.markerElem_.style.left=`${z}%`,this.markerElem_.style.top=`${F}%`}onValueChange_(){this.update_()}onPropsChange_(){this.update_()}onFoldableChange_(){this.update_()}}function gW(Z,Y,K){return[aZ(Y[0],GX(Z)),aZ(Y[1],G4(Z))*(K?1:-1)]}class dH{constructor(Z,Y){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPadKeyUp_=this.onPadKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.view=new gH(Z,{layout:Y.layout,props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new nX(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_),this.view.padElement.addEventListener("keyup",this.onPadKeyUp_)}handlePointerEvent_(Z,Y){if(!Z.point)return;let K=this.props.get("max"),z=UQ(Z.point.x,0,Z.bounds.width,-K,+K),$=UQ(this.props.get("invertsY")?Z.bounds.height-Z.point.y:Z.point.y,0,Z.bounds.height,-K,+K);this.value.setRawValue(new ZX(z,$),Y)}onPointerDown_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerMove_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!1,last:!1})}onPointerUp_(Z){this.handlePointerEvent_(Z.data,{forceEmit:!0,last:!0})}onPadKeyDown_(Z){if(lD(Z.key))Z.preventDefault();let[Y,K]=gW(Z,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));if(Y===0&&K===0)return;this.value.setRawValue(new ZX(this.value.rawValue.x+Y,this.value.rawValue.y+K),{forceEmit:!1,last:!1})}onPadKeyUp_(Z){let[Y,K]=gW(Z,[this.props.get("xKeyScale"),this.props.get("yKeyScale")],this.props.get("invertsY"));if(Y===0&&K===0)return;this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class mH{constructor(Z,Y){var K,z;this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.onPadButtonBlur_=this.onPadButtonBlur_.bind(this),this.onPadButtonClick_=this.onPadButtonClick_.bind(this),this.value=Y.value,this.viewProps=Y.viewProps,this.foldable_=$4.create(Y.expanded),this.popC_=Y.pickerLayout==="popup"?new ez(Z,{viewProps:this.viewProps}):null;let $=new dH(Z,{layout:Y.pickerLayout,props:new vJ({invertsY:RQ(Y.invertsY),max:RQ(Y.max),xKeyScale:Y.axes[0].textProps.value("keyScale"),yKeyScale:Y.axes[1].textProps.value("keyScale")}),value:this.value,viewProps:this.viewProps});if($.view.allFocusableElements.forEach((F)=>{F.addEventListener("blur",this.onPopupChildBlur_),F.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=$,this.textC_=new GG(Z,{assembly:vH,axes:Y.axes,parser:Y.parser,value:this.value,viewProps:this.viewProps}),this.view=new uH(Z,{expanded:this.foldable_.value("expanded"),pickerLayout:Y.pickerLayout,viewProps:this.viewProps}),this.view.textElement.appendChild(this.textC_.view.element),(K=this.view.buttonElement)===null||K===void 0||K.addEventListener("blur",this.onPadButtonBlur_),(z=this.view.buttonElement)===null||z===void 0||z.addEventListener("click",this.onPadButtonClick_),this.popC_)this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),Z6({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:(F)=>F,backward:(F,B)=>B});else if(this.view.pickerElement)this.view.pickerElement.appendChild(this.pickerC_.view.element),nz(this.foldable_,this.view.pickerElement)}get textController(){return this.textC_}onPadButtonBlur_(Z){if(!this.popC_)return;let Y=this.view.element,K=J7(Z.relatedTarget);if(!K||!Y.contains(K))this.popC_.shows.rawValue=!1}onPadButtonClick_(){if(this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded"))this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(Z){if(!this.popC_)return;let Y=this.popC_.view.element,K=BD(Z);if(K&&Y.contains(K))return;if(K&&K===this.view.buttonElement&&!mz(Y.ownerDocument))return;this.popC_.shows.rawValue=!1}onPopupChildKeydown_(Z){if(this.popC_){if(Z.key==="Escape")this.popC_.shows.rawValue=!1}else if(this.view.pickerElement){if(Z.key==="Escape")this.view.buttonElement.focus()}}}function B_(Z){return ZX.isObject(Z)?new ZX(Z.x,Z.y):new ZX}function A_(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y)}function I_(Z,Y){return new YG({assembly:vH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y)]})}function dW(Z,Y){var K,z;if(!MQ(Z.min)||!MQ(Z.max))return Math.max(Math.abs((K=Z.min)!==null&&K!==void 0?K:0),Math.abs((z=Z.max)!==null&&z!==void 0?z:0));let $=GD(Z);return Math.max(Math.abs($)*10,Math.abs(Y)*10)}function j_(Z,Y){var K,z;let $=dW(f9(Z,(K=Z.x)!==null&&K!==void 0?K:{}),Y.x),F=dW(f9(Z,(z=Z.y)!==null&&z!==void 0?z:{}),Y.y);return Math.max($,F)}function P_(Z){if(!("y"in Z))return!1;let Y=Z.y;if(!Y)return!1;return"inverted"in Y?!!Y.inverted:!1}var N_=uZ({id:"input-point2d",type:"input",accept:(Z,Y)=>{if(!ZX.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},U4(z)),{expanded:z.optional.boolean,picker:z.optional.custom(eD),readonly:z.optional.constant(!1),x:z.optional.custom(lX),y:z.optional.object(Object.assign(Object.assign({},U4(z)),{inverted:z.optional.boolean}))}));return K?{initialValue:Z,params:K}:null},binding:{reader:()=>B_,constraint:(Z)=>I_(Z.params,Z.initialValue),equals:ZX.equals,writer:()=>A_},controller:(Z)=>{var Y,K;let{document:z,value:$,constraint:F}=Z,B=[Z.params.x,Z.params.y];return new mH(z,{axes:$.rawValue.getComponents().map((j,b)=>{var T;return dz({constraint:F.components[b],initialValue:j,params:f9(Z.params,(T=B[b])!==null&&T!==void 0?T:{})})}),expanded:(Y=Z.params.expanded)!==null&&Y!==void 0?Y:!1,invertsY:P_(Z.params),max:j_(Z.params,$.rawValue),parser:XX,pickerLayout:(K=Z.params.picker)!==null&&K!==void 0?K:"popup",value:$,viewProps:Z.viewProps})}});class b9{constructor(Z=0,Y=0,K=0){this.x=Z,this.y=Y,this.z=K}getComponents(){return[this.x,this.y,this.z]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K,z}=Z;if(typeof Y!=="number"||typeof K!=="number"||typeof z!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y&&Z.z===Y.z}toObject(){return{x:this.x,y:this.y,z:this.z}}}var cH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new b9(...Z)};function w_(Z){return b9.isObject(Z)?new b9(Z.x,Z.y,Z.z):new b9}function V_(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y),Z.writeProperty("z",Y.z)}function R_(Z,Y){return new YG({assembly:cH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y),JX(Object.assign(Object.assign({},Z),Z.z),Y.z)]})}var S_=uZ({id:"input-point3d",type:"input",accept:(Z,Y)=>{if(!b9.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},U4(z)),{readonly:z.optional.constant(!1),x:z.optional.custom(lX),y:z.optional.custom(lX),z:z.optional.custom(lX)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>w_,constraint:(Z)=>R_(Z.params,Z.initialValue),equals:b9.equals,writer:(Z)=>V_},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=[Z.params.x,Z.params.y,Z.params.z];return new GG(Z.document,{assembly:cH,axes:Y.rawValue.getComponents().map(($,F)=>{var B;return dz({constraint:K.components[F],initialValue:$,params:f9(Z.params,(B=z[F])!==null&&B!==void 0?B:{})})}),parser:XX,value:Y,viewProps:Z.viewProps})}});class y9{constructor(Z=0,Y=0,K=0,z=0){this.x=Z,this.y=Y,this.z=K,this.w=z}getComponents(){return[this.x,this.y,this.z,this.w]}static isObject(Z){if(MQ(Z))return!1;let{x:Y,y:K,z,w:$}=Z;if(typeof Y!=="number"||typeof K!=="number"||typeof z!=="number"||typeof $!=="number")return!1;return!0}static equals(Z,Y){return Z.x===Y.x&&Z.y===Y.y&&Z.z===Y.z&&Z.w===Y.w}toObject(){return{x:this.x,y:this.y,z:this.z,w:this.w}}}var pH={toComponents:(Z)=>Z.getComponents(),fromComponents:(Z)=>new y9(...Z)};function __(Z){return y9.isObject(Z)?new y9(Z.x,Z.y,Z.z,Z.w):new y9}function T_(Z,Y){Z.writeProperty("x",Y.x),Z.writeProperty("y",Y.y),Z.writeProperty("z",Y.z),Z.writeProperty("w",Y.w)}function k_(Z,Y){return new YG({assembly:pH,components:[JX(Object.assign(Object.assign({},Z),Z.x),Y.x),JX(Object.assign(Object.assign({},Z),Z.y),Y.y),JX(Object.assign(Object.assign({},Z),Z.z),Y.z),JX(Object.assign(Object.assign({},Z),Z.w),Y.w)]})}var E_=uZ({id:"input-point4d",type:"input",accept:(Z,Y)=>{if(!y9.isObject(Z))return null;let K=kQ(Y,(z)=>Object.assign(Object.assign({},U4(z)),{readonly:z.optional.constant(!1),w:z.optional.custom(lX),x:z.optional.custom(lX),y:z.optional.custom(lX),z:z.optional.custom(lX)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>__,constraint:(Z)=>k_(Z.params,Z.initialValue),equals:y9.equals,writer:(Z)=>T_},controller:(Z)=>{let{value:Y,constraint:K}=Z,z=[Z.params.x,Z.params.y,Z.params.z,Z.params.w];return new GG(Z.document,{assembly:pH,axes:Y.rawValue.getComponents().map(($,F)=>{var B;return dz({constraint:K.components[F],initialValue:$,params:f9(Z.params,(B=z[F])!==null&&B!==void 0?B:{})})}),parser:XX,value:Y,viewProps:Z.viewProps})}});function C_(Z){let Y=[],K=az(Z.options);if(K)Y.push(K);return new J6(Y)}var x_=uZ({id:"input-string",type:"input",accept:(Z,Y)=>{if(typeof Z!=="string")return null;let K=kQ(Y,(z)=>({readonly:z.optional.constant(!1),options:z.optional.custom(O4)}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>sD,constraint:(Z)=>C_(Z.params),writer:(Z)=>L4},controller:(Z)=>{let{document:Y,value:K,constraint:z}=Z,$=z&&r5(z,Q6);if($)return new YX(Y,{props:new vJ({options:$.values.value("options")}),value:K,viewProps:Z.viewProps});return new i1(Y,{parser:(F)=>F,props:vJ.fromObject({formatter:hz}),value:K,viewProps:Z.viewProps})},api(Z){if(typeof Z.controller.value.rawValue!=="string")return null;if(Z.controller.valueController instanceof YX)return new JG(Z.controller);return null}}),D4={monitor:{defaultInterval:200,defaultRows:3}},mW=eJ("mll");class sH{constructor(Z,Y){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=Y.formatter,this.element=Z.createElement("div"),this.element.classList.add(mW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("textarea");K.classList.add(mW("i")),K.style.height=`calc(var(${aD("containerUnitSize")}) * ${Y.rows})`,K.readOnly=!0,Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.textareaElem_=K,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}update_(){let Z=this.textareaElem_,Y=Z.scrollTop===Z.scrollHeight-Z.clientHeight,K=[];if(this.value.rawValue.forEach((z)=>{if(z!==void 0)K.push(this.formatter_(z))}),Z.textContent=K.join(`
|
|
172
|
+
`),Y)Z.scrollTop=Z.scrollHeight}onValueUpdate_(){this.update_()}}class KG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new sH(Z,{formatter:Y.formatter,rows:Y.rows,value:this.value,viewProps:this.viewProps})}}var cW=eJ("sgl");class lH{constructor(Z,Y){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=Y.formatter,this.element=Z.createElement("div"),this.element.classList.add(cW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("input");K.classList.add(cW("i")),K.readOnly=!0,K.type="text",Y.viewProps.bindDisabled(K),this.element.appendChild(K),this.inputElement=K,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}update_(){let Z=this.value.rawValue,Y=Z[Z.length-1];this.inputElement.value=Y!==void 0?this.formatter_(Y):""}onValueUpdate_(){this.update_()}}class UG{constructor(Z,Y){this.value=Y.value,this.viewProps=Y.viewProps,this.view=new lH(Z,{formatter:Y.formatter,value:this.value,viewProps:this.viewProps})}}var h_=uZ({id:"monitor-bool",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="boolean")return null;let K=kQ(Y,(z)=>({readonly:z.required.constant(!0),rows:z.optional.number}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>pD},controller:(Z)=>{var Y;if(Z.value.rawValue.length===1)return new UG(Z.document,{formatter:xW,value:Z.value,viewProps:Z.viewProps});return new KG(Z.document,{formatter:xW,rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:D4.monitor.defaultRows,value:Z.value,viewProps:Z.viewProps})}});class iH extends l1{get max(){return this.controller.valueController.props.get("max")}set max(Z){this.controller.valueController.props.set("max",Z)}get min(){return this.controller.valueController.props.get("min")}set min(Z){this.controller.valueController.props.set("min",Z)}}var sX=eJ("grl");class rH{constructor(Z,Y){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=Z.createElement("div"),this.element.classList.add(sX()),Y.viewProps.bindClassModifiers(this.element),this.formatter_=Y.formatter,this.props_=Y.props,this.cursor_=Y.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);let K=Z.createElementNS(V8,"svg");K.classList.add(sX("g")),K.style.height=`calc(var(${aD("containerUnitSize")}) * ${Y.rows})`,this.element.appendChild(K),this.svgElem_=K;let z=Z.createElementNS(V8,"polyline");this.svgElem_.appendChild(z),this.lineElem_=z;let $=Z.createElement("div");$.classList.add(sX("t"),eJ("tt")()),this.element.appendChild($),this.tooltipElem_=$,Y.value.emitter.on("change",this.onValueUpdate_),this.value=Y.value,this.update_()}get graphElement(){return this.svgElem_}update_(){let{clientWidth:Z,clientHeight:Y}=this.element,K=this.value.rawValue.length-1,z=this.props_.get("min"),$=this.props_.get("max"),F=[];this.value.rawValue.forEach((y,k)=>{if(y===void 0)return;let a=UQ(k,0,K,0,Z),DJ=UQ(y,z,$,Y,0);F.push([a,DJ].join(","))}),this.lineElem_.setAttributeNS(null,"points",F.join(" "));let B=this.tooltipElem_,j=this.value.rawValue[this.cursor_.rawValue];if(j===void 0){B.classList.remove(sX("t","a"));return}let b=UQ(this.cursor_.rawValue,0,K,0,Z),T=UQ(j,z,$,Y,0);if(B.style.left=`${b}px`,B.style.top=`${T}px`,B.textContent=`${this.formatter_(j)}`,!B.classList.contains(sX("t","a")))B.classList.add(sX("t","a"),sX("t","in")),s5(B),B.classList.remove(sX("t","in"))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class G${constructor(Z,Y){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props=Y.props,this.value=Y.value,this.viewProps=Y.viewProps,this.cursor_=RQ(-1),this.view=new rH(Z,{cursor:this.cursor_,formatter:Y.formatter,rows:Y.rows,props:this.props,value:this.value,viewProps:this.viewProps}),!mz(Z))this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_);else{let K=new nX(this.view.element);K.emitter.on("down",this.onGraphPointerDown_),K.emitter.on("move",this.onGraphPointerMove_),K.emitter.on("up",this.onGraphPointerUp_)}}importProps(Z){return F7(Z,null,(Y)=>({max:Y.required.number,min:Y.required.number}),(Y)=>{return this.props.set("max",Y.max),this.props.set("min",Y.min),!0})}exportProps(){return B7(null,{max:this.props.get("max"),min:this.props.get("min")})}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(Z){let{clientWidth:Y}=this.view.element;this.cursor_.rawValue=Math.floor(UQ(Z.offsetX,0,Y,0,this.value.rawValue.length))}onGraphPointerDown_(Z){this.onGraphPointerMove_(Z)}onGraphPointerMove_(Z){if(!Z.data.point){this.cursor_.rawValue=-1;return}this.cursor_.rawValue=Math.floor(UQ(Z.data.point.x,0,Z.data.bounds.width,0,this.value.rawValue.length))}onGraphPointerUp_(){this.cursor_.rawValue=-1}}function bz(Z){return!MQ(Z.format)?Z.format:eZ(2)}function b_(Z){var Y;if(Z.value.rawValue.length===1)return new UG(Z.document,{formatter:bz(Z.params),value:Z.value,viewProps:Z.viewProps});return new KG(Z.document,{formatter:bz(Z.params),rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:D4.monitor.defaultRows,value:Z.value,viewProps:Z.viewProps})}function y_(Z){var Y,K,z;return new G$(Z.document,{formatter:bz(Z.params),rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:D4.monitor.defaultRows,props:vJ.fromObject({max:(K=Z.params.max)!==null&&K!==void 0?K:100,min:(z=Z.params.min)!==null&&z!==void 0?z:0}),value:Z.value,viewProps:Z.viewProps})}function pW(Z){return Z.view==="graph"}var f_=uZ({id:"monitor-number",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="number")return null;let K=kQ(Y,(z)=>({format:z.optional.function,max:z.optional.number,min:z.optional.number,readonly:z.required.constant(!0),rows:z.optional.number,view:z.optional.string}));return K?{initialValue:Z,params:K}:null},binding:{defaultBufferSize:(Z)=>pW(Z)?64:1,reader:(Z)=>XD},controller:(Z)=>{if(pW(Z.params))return y_(Z);return b_(Z)},api:(Z)=>{if(Z.controller.valueController instanceof G$)return new iH(Z.controller);return null}}),v_=uZ({id:"monitor-string",type:"monitor",accept:(Z,Y)=>{if(typeof Z!=="string")return null;let K=kQ(Y,(z)=>({multiline:z.optional.boolean,readonly:z.required.constant(!0),rows:z.optional.number}));return K?{initialValue:Z,params:K}:null},binding:{reader:(Z)=>sD},controller:(Z)=>{var Y;let K=Z.value;if(K.rawValue.length>1||Z.params.multiline)return new KG(Z.document,{formatter:hz,rows:(Y=Z.params.rows)!==null&&Y!==void 0?Y:D4.monitor.defaultRows,value:K,viewProps:Z.viewProps});return new UG(Z.document,{formatter:hz,value:K,viewProps:Z.viewProps})}});class nH{constructor(){this.map_=new Map}get(Z){var Y;return(Y=this.map_.get(Z))!==null&&Y!==void 0?Y:null}has(Z){return this.map_.has(Z)}add(Z,Y){return this.map_.set(Z,Y),Z.viewProps.handleDispose(()=>{this.map_.delete(Z)}),Y}}class oH{constructor(Z){this.target=Z.target,this.reader_=Z.reader,this.writer_=Z.writer}read(){return this.reader_(this.target.read())}write(Z){this.writer_(this.target,Z)}inject(Z){this.write(this.reader_(Z))}}function u_(Z,Y){var K;let z=Z.accept(Y.target.read(),Y.params);if(MQ(z))return null;let $={target:Y.target,initialValue:z.initialValue,params:z.params},F=kQ(Y.params,(k)=>({disabled:k.optional.boolean,hidden:k.optional.boolean,label:k.optional.string,tag:k.optional.string})),B=Z.binding.reader($),j=Z.binding.constraint?Z.binding.constraint($):void 0,b=new oH({reader:B,target:Y.target,writer:Z.binding.writer($)}),T=new DD(RQ(B(z.initialValue),{constraint:j,equals:Z.binding.equals}),b),y=Z.controller({constraint:j,document:Y.document,initialValue:z.initialValue,params:z.params,value:T,viewProps:KX.create({disabled:F===null||F===void 0?void 0:F.disabled,hidden:F===null||F===void 0?void 0:F.hidden})});return new AD(Y.document,{blade:e1(),props:vJ.fromObject({label:"label"in Y.params?(K=F===null||F===void 0?void 0:F.label)!==null&&K!==void 0?K:null:Y.target.key}),tag:F===null||F===void 0?void 0:F.tag,value:T,valueController:y})}class tH{constructor(Z){this.target=Z.target,this.reader_=Z.reader}read(){return this.reader_(this.target.read())}}function g_(Z,Y){return Y===0?new uD:new gD(Z,Y!==null&&Y!==void 0?Y:D4.monitor.defaultInterval)}function d_(Z,Y){var K,z,$;let F=Z.accept(Y.target.read(),Y.params);if(MQ(F))return null;let B={target:Y.target,initialValue:F.initialValue,params:F.params},j=kQ(Y.params,(a)=>({bufferSize:a.optional.number,disabled:a.optional.boolean,hidden:a.optional.boolean,interval:a.optional.number,label:a.optional.string})),b=Z.binding.reader(B),T=(z=(K=j===null||j===void 0?void 0:j.bufferSize)!==null&&K!==void 0?K:Z.binding.defaultBufferSize&&Z.binding.defaultBufferSize(F.params))!==null&&z!==void 0?z:1,y=new jD({binding:new tH({reader:b,target:Y.target}),bufferSize:T,ticker:g_(Y.document,j===null||j===void 0?void 0:j.interval)}),k=Z.controller({document:Y.document,params:F.params,value:y,viewProps:KX.create({disabled:j===null||j===void 0?void 0:j.disabled,hidden:j===null||j===void 0?void 0:j.hidden})});return k.viewProps.bindDisabled(y.ticker),k.viewProps.handleDispose(()=>{y.ticker.dispose()}),new PD(Y.document,{blade:e1(),props:vJ.fromObject({label:"label"in Y.params?($=j===null||j===void 0?void 0:j.label)!==null&&$!==void 0?$:null:Y.target.key}),value:y,valueController:k})}class aH{constructor(Z){this.pluginsMap_={blades:[],inputs:[],monitors:[]},this.apiCache_=Z}getAll(){return[...this.pluginsMap_.blades,...this.pluginsMap_.inputs,...this.pluginsMap_.monitors]}register(Z,Y){if(!qS(Y.core))throw hQ.notCompatible(Z,Y.id);if(Y.type==="blade")this.pluginsMap_.blades.unshift(Y);else if(Y.type==="input")this.pluginsMap_.inputs.unshift(Y);else if(Y.type==="monitor")this.pluginsMap_.monitors.unshift(Y)}createInput_(Z,Y,K){return this.pluginsMap_.inputs.reduce((z,$)=>z!==null&&z!==void 0?z:u_($,{document:Z,target:Y,params:K}),null)}createMonitor_(Z,Y,K){return this.pluginsMap_.monitors.reduce((z,$)=>z!==null&&z!==void 0?z:d_($,{document:Z,params:K,target:Y}),null)}createBinding(Z,Y,K){let z=Y.read();if(MQ(z))throw new hQ({context:{key:Y.key},type:"nomatchingcontroller"});let $=this.createInput_(Z,Y,K);if($)return $;let F=this.createMonitor_(Z,Y,K);if(F)return F;throw new hQ({context:{key:Y.key},type:"nomatchingcontroller"})}createBlade(Z,Y){let K=this.pluginsMap_.blades.reduce((z,$)=>z!==null&&z!==void 0?z:ZS($,{document:Z,params:Y}),null);if(!K)throw new hQ({type:"nomatchingview",context:{params:Y}});return K}createInputBindingApi_(Z){let Y=this.pluginsMap_.inputs.reduce((K,z)=>{var $,F;if(K)return K;return(F=($=z.api)===null||$===void 0?void 0:$.call(z,{controller:Z}))!==null&&F!==void 0?F:null},null);return this.apiCache_.add(Z,Y!==null&&Y!==void 0?Y:new l1(Z))}createMonitorBindingApi_(Z){let Y=this.pluginsMap_.monitors.reduce((K,z)=>{var $,F;if(K)return K;return(F=($=z.api)===null||$===void 0?void 0:$.call(z,{controller:Z}))!==null&&F!==void 0?F:null},null);return this.apiCache_.add(Z,Y!==null&&Y!==void 0?Y:new l1(Z))}createBindingApi(Z){if(this.apiCache_.has(Z))return this.apiCache_.get(Z);if(vR(Z))return this.createInputBindingApi_(Z);if(cR(Z))return this.createMonitorBindingApi_(Z);throw hQ.shouldNeverHappen()}createApi(Z){if(this.apiCache_.has(Z))return this.apiCache_.get(Z);if(fR(Z))return this.createBindingApi(Z);let Y=this.pluginsMap_.blades.reduce((K,z)=>K!==null&&K!==void 0?K:z.api({controller:Z,pool:this}),null);if(!Y)throw hQ.shouldNeverHappen();return this.apiCache_.add(Z,Y)}}var m_=new nH;function c_(){let Z=new aH(m_);return[N_,S_,E_,x_,F_,D_,W_,q_,$S,h_,v_,f_,sR,JS,vD].forEach((Y)=>{Z.register("core",Y)}),Z}class eH extends rX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new o1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get options(){return this.controller.valueController.props.get("options")}set options(Z){this.controller.valueController.props.set("options",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}class JM extends rX{}class QM extends rX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new o1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get max(){return this.controller.valueController.sliderController.props.get("max")}set max(Z){this.controller.valueController.sliderController.props.set("max",Z)}get min(){return this.controller.valueController.sliderController.props.get("min")}set min(Z){this.controller.valueController.sliderController.props.set("min",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}class ZM extends rX{constructor(Z){super(Z);this.emitter_=new fQ,this.controller.value.emitter.on("change",(Y)=>{this.emitter_.emit("change",new o1(this,Y.rawValue))})}get label(){return this.controller.labelController.props.get("label")}set label(Z){this.controller.labelController.props.set("label",Z)}get formatter(){return this.controller.valueController.props.get("formatter")}set formatter(Z){this.controller.valueController.props.set("formatter",Z)}get value(){return this.controller.value.rawValue}set value(Z){this.controller.value.rawValue=Z}on(Z,Y){let K=Y.bind(this);return this.emitter_.on(Z,(z)=>{K(z)},{key:Y}),this}off(Z,Y){return this.emitter_.off(Z,Y),this}}var p_=function(){return{id:"list",type:"blade",core:a1,accept(Z){let Y=kQ(Z,(K)=>({options:K.required.custom(O4),value:K.required.raw,view:K.required.constant("list"),label:K.optional.string}));return Y?{params:Y}:null},controller(Z){let Y=new Q6(tz(Z.params.options)),K=RQ(Z.params.value,{constraint:Y}),z=new YX(Z.document,{props:new vJ({options:Y.values.value("options")}),value:K,viewProps:Z.viewProps});return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:K,valueController:z})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof YX))return null;return new eH(Z.controller)}}}();class XM extends oz{constructor(Z,Y){super(Z,Y)}get element(){return this.controller.view.element}}class YM extends l5{constructor(Z,Y){super(Z,{expanded:Y.expanded,blade:Y.blade,props:Y.props,root:!0,viewProps:Y.viewProps})}}var sW=eJ("spr");class GM{constructor(Z,Y){this.element=Z.createElement("div"),this.element.classList.add(sW()),Y.viewProps.bindClassModifiers(this.element);let K=Z.createElement("hr");K.classList.add(sW("r")),this.element.appendChild(K)}}class yz extends z4{constructor(Z,Y){super(Object.assign(Object.assign({},Y),{view:new GM(Z,{viewProps:Y.viewProps})}))}}var s_={id:"separator",type:"blade",core:a1,accept(Z){let Y=kQ(Z,(K)=>({view:K.required.constant("separator")}));return Y?{params:Y}:null},controller(Z){return new yz(Z.document,{blade:Z.blade,viewProps:Z.viewProps})},api(Z){if(!(Z.controller instanceof yz))return null;return new JM(Z.controller)}},l_={id:"slider",type:"blade",core:a1,accept(Z){let Y=kQ(Z,(K)=>({max:K.required.number,min:K.required.number,view:K.required.constant("slider"),format:K.optional.function,label:K.optional.string,value:K.optional.number}));return Y?{params:Y}:null},controller(Z){var Y,K;let z=(Y=Z.params.value)!==null&&Y!==void 0?Y:0,$=new n1({max:Z.params.max,min:Z.params.min}),F=RQ(z,{constraint:$}),B=new K4(Z.document,Object.assign(Object.assign({},tD({formatter:(K=Z.params.format)!==null&&K!==void 0?K:PR,keyScale:RQ(1),max:$.values.value("max"),min:$.values.value("min"),pointerScale:KD(Z.params,z)})),{parser:XX,value:F,viewProps:Z.viewProps}));return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:F,valueController:B})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof K4))return null;return new QM(Z.controller)}},i_=function(){return{id:"text",type:"blade",core:a1,accept(Z){let Y=kQ(Z,(K)=>({parse:K.required.function,value:K.required.raw,view:K.required.constant("text"),format:K.optional.function,label:K.optional.string}));return Y?{params:Y}:null},controller(Z){var Y;let K=RQ(Z.params.value),z=new i1(Z.document,{parser:Z.params.parse,props:vJ.fromObject({formatter:(Y=Z.params.format)!==null&&Y!==void 0?Y:($)=>String($)}),value:K,viewProps:Z.viewProps});return new iX(Z.document,{blade:Z.blade,props:vJ.fromObject({label:Z.params.label}),value:K,valueController:z})},api(Z){if(!(Z.controller instanceof iX))return null;if(!(Z.controller.valueController instanceof i1))return null;return new ZM(Z.controller)}}}();function r_(Z){let Y=Z.createElement("div");if(Y.classList.add(eJ("dfw")()),Z.body)Z.body.appendChild(Y);return Y}function n_(Z,Y,K){if(Z.querySelector(`style[data-tp-style=${Y}]`))return;let z=Z.createElement("style");z.dataset.tpStyle=Y,z.textContent=K,Z.head.appendChild(z)}class K$ extends XM{constructor(Z){var Y,K;let z=Z!==null&&Z!==void 0?Z:{},$=(Y=z.document)!==null&&Y!==void 0?Y:kR(),F=c_(),B=new YM($,{expanded:z.expanded,blade:e1(),props:vJ.fromObject({title:z.title}),viewProps:KX.create()});super(B,F);this.pool_=F,this.containerElem_=(K=z.container)!==null&&K!==void 0?K:r_($),this.containerElem_.appendChild(this.element),this.doc_=$,this.usesDefaultWrapper_=!z.container,this.setUpDefaultPlugins_()}get document(){if(!this.doc_)throw hQ.alreadyDisposed();return this.doc_}dispose(){let Z=this.containerElem_;if(!Z)throw hQ.alreadyDisposed();if(this.usesDefaultWrapper_){let Y=Z.parentElement;if(Y)Y.removeChild(Z)}this.containerElem_=null,this.doc_=null,super.dispose()}registerPlugin(Z){if(Z.css)n_(this.document,`plugin-${Z.id}`,Z.css);("plugin"in Z?[Z.plugin]:("plugins"in Z)?Z.plugins:[]).forEach((K)=>{this.pool_.register(Z.id,K)})}setUpDefaultPlugins_(){this.registerPlugin({id:"default",css:".tp-tbiv_b,.tp-coltxtv_ms,.tp-colswv_b,.tp-ckbv_i,.tp-sglv_i,.tp-mllv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-rotv_b,.tp-fldv_b,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--bld-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--cnt-usz);line-height:var(--cnt-usz);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tbpv_c>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-vp))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tbpv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tbpv_c>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--cnt-usp)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tbpv_c>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tbpv_c>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tbpv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-vp)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tbpv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tbpv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tbpv_c>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tbpv_c>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--bld-br);border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tbpv_c .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--bld-br)}.tp-tbpv_c>.tp-cntv+.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-cntv+.tp-fldv>.tp-fldv_b{border-top-left-radius:0}.tp-tbpv_c>.tp-cntv+.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-cntv+.tp-tabv>.tp-tabv_t{border-top-left-radius:0}.tp-tbpv_c>.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-tabv>.tp-tabv_t{border-top-left-radius:var(--bld-br)}.tp-tbpv_c .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--bld-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);overflow:hidden;padding-left:var(--cnt-hp);padding-right:calc(4px + var(--cnt-usz) + var(--cnt-hp));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:\"\";display:block;height:6px;right:calc(var(--cnt-hp) + (var(--cnt-usz) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-vp);padding-top:var(--cnt-vp);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--cnt-usz);line-height:var(--cnt-usz);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-sglv_i,.tp-mllv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--bld-br);box-sizing:border-box;color:var(--mo-fg);height:var(--cnt-usz);scrollbar-color:currentColor rgba(0,0,0,0);scrollbar-width:thin;width:100%}.tp-sglv_i::-webkit-scrollbar,.tp-mllv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-sglv_i::-webkit-scrollbar-corner,.tp-mllv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:rgba(0,0,0,0)}.tp-sglv_i::-webkit-scrollbar-thumb,.tp-mllv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:rgba(0,0,0,0) solid 2px;border-radius:4px}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-rotv{--bs-bg: var(--tp-base-background-color, hsl(230, 7%, 17%));--bs-br: var(--tp-base-border-radius, 6px);--bs-ff: var(--tp-base-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--bld-br: var(--tp-blade-border-radius, 2px);--bld-hp: var(--tp-blade-horizontal-padding, 4px);--bld-vw: var(--tp-blade-value-width, 160px);--btn-bg: var(--tp-button-background-color, hsl(230, 7%, 70%));--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, hsl(230, 7%, 17%));--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, hsl(230, 7%, 75%));--cnt-hp: var(--tp-container-horizontal-padding, 4px);--cnt-vp: var(--tp-container-vertical-padding, 4px);--cnt-usp: var(--tp-container-unit-spacing, 4px);--cnt-usz: var(--tp-container-unit-size, 20px);--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, hsl(230, 7%, 75%));--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--bld-br);cursor:pointer;display:block;height:var(--cnt-usz);position:relative;width:var(--cnt-usz)}.tp-ckbv_w svg{display:block;height:16px;inset:0;margin:auto;opacity:0;position:absolute;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--cnt-usz)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-expanded.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--cnt-usp);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--cnt-usp)}.tp-colpv_rgb{display:flex;margin-top:var(--cnt-usp);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-vp);padding-top:calc(var(--cnt-vp) + 2px);position:relative}.tp-colpv_a::before{background-color:var(--grv-fg);content:\"\";height:2px;left:calc(-1*var(--cnt-hp));position:absolute;right:calc(-1*var(--cnt-hp));top:0}.tp-colpv.tp-v-disabled .tp-colpv_a::before{opacity:.5}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--bld-br);outline:none;overflow:hidden;position:relative}.tp-svpv.tp-v-disabled{opacity:.5}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--cnt-usz)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative}.tp-hplv.tp-v-disabled{opacity:.5}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--cnt-usz);outline:none;position:relative;width:100%}.tp-aplv.tp-v-disabled{opacity:.5}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{inset:0;position:absolute}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--bld-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--bld-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;inset:0;position:absolute}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--bld-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{cursor:pointer;display:block;height:var(--cnt-usz);left:0;position:absolute;top:0;width:var(--cnt-usz)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--bld-br);content:\"\";display:block;inset:0;position:absolute}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--bld-br);color:var(--lbl-fg);cursor:pointer;height:var(--cnt-usz);line-height:var(--cnt-usz);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv.tp-v-disabled .tp-coltxtv_mm{opacity:.5}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv{position:relative}.tp-fldv_t{padding-left:4px}.tp-fldv_b:disabled .tp-fldv_m{display:none}.tp-fldv_c{padding-left:4px}.tp-fldv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-fldv_i::before{background-color:currentColor;bottom:0;content:\"\";left:0;position:absolute;top:0;width:4px}.tp-fldv_b:hover+.tp-fldv_i{color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_i{color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_i{color:var(--cnt-bg-a)}.tp-fldv.tp-v-disabled>.tp-fldv_i{opacity:.5}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--cnt-usz)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-hp);padding-right:var(--cnt-hp)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:var(--bld-vw)}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 var(--bld-hp);width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--cnt-usz)*3);line-height:var(--cnt-usz);padding-left:var(--bld-hp);padding-right:var(--bld-hp);resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--cnt-usz);margin-right:4px;position:relative;width:var(--cnt-usz)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--cnt-usp);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-hp));right:calc(-1*var(--cnt-hp));top:var(--cnt-usz)}.tp-p2dpv{padding-left:calc(var(--cnt-usz) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv.tp-v-disabled .tp-p2dpv_p{opacity:.5}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:var(--bld-vw);padding:var(--cnt-vp) var(--cnt-hp);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--cnt-usz);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;content:\"\";display:block;height:2px;inset:0;margin:auto;position:absolute}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;content:\"\";display:block;height:2px;inset:0;margin-bottom:auto;margin-top:auto;position:absolute}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--bld-br);bottom:0;content:\"\";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv{position:relative}.tp-tabv_t{align-items:flex-end;color:var(--cnt-bg);display:flex;overflow:hidden;position:relative}.tp-tabv_t:hover{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus){color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active){color:var(--cnt-bg-a)}.tp-tabv_t::before{background-color:currentColor;bottom:0;content:\"\";height:2px;left:0;pointer-events:none;position:absolute;right:0}.tp-tabv.tp-v-disabled .tp-tabv_t::before{opacity:.5}.tp-tabv.tp-tabv-nop .tp-tabv_t{height:calc(var(--cnt-usz) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_t::before{background-color:var(--cnt-bg);bottom:0;content:\"\";height:2px;left:0;position:absolute;right:0}.tp-tabv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--cnt-usz) + 4px);width:max(var(--bs-br),4px)}.tp-tabv_i::before{background-color:currentColor;bottom:0;content:\"\";left:0;position:absolute;top:0;width:4px}.tp-tabv_t:hover+.tp-tabv_i{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus)+.tp-tabv_i{color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active)+.tp-tabv_i{color:var(--cnt-bg-a)}.tp-tabv.tp-v-disabled>.tp-tabv_i{opacity:.5}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv.tp-v-disabled::before{opacity:.5}.tp-tbiv_b{display:block;padding-left:calc(var(--cnt-hp) + 4px);padding-right:calc(var(--cnt-hp) + 4px);position:relative;width:100%}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_b::before{background-color:var(--cnt-bg);content:\"\";inset:0 0 2px;pointer-events:none;position:absolute}.tp-tbiv_b:hover::before{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus::before{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active::before{background-color:var(--cnt-bg-a)}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--cnt-usz) + 4px);line-height:calc(var(--cnt-usz) + 4px);opacity:.5;overflow:hidden;position:relative;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-tbpv_c{padding-bottom:var(--cnt-vp);padding-left:4px;padding-top:var(--cnt-vp)}.tp-txtv{position:relative}.tp-txtv_i{padding-left:var(--bld-hp);padding-right:var(--bld-hp)}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:calc(var(--bld-hp) - 5px);position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:\"\";height:calc(var(--cnt-usz) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--bld-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:2px;box-sizing:border-box;content:\"\";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--bs-ff);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--cnt-usz) + var(--cnt-hp));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0;transition-delay:0s;transition-duration:0s}.tp-rotv.tp-rotv-not>.tp-rotv_b{display:none}.tp-rotv_b:disabled .tp-rotv_m{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst.tp-fldv-expanded>.tp-fldv_b{transition-delay:0s;transition-duration:0s}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-vp))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_t{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sprv.tp-v-disabled .tp-sprv_r{opacity:.5}",plugins:[p_,s_,l_,vD,i_]})}}var FT=new rz("4.0.5");var H4={cssVariables:{"--bg":"#0a0e14","--bg-elevated":"#0f1419","--muted":"#1a2332","--text":"#e6edf3","--text-secondary":"#8b949e","--accent":"#58d5ff","--accent-2":"#42a5cc","--border":"#21262d","--border-hover":"#30363d","--success":"#3fb950","--error":"#f85149","--ht-text-color-main-200":"#00ffd4","--ht-text-color-main-300":"#6ff3dd","--ht-text-color-main-500":"#4b8e85","--ht-text-color-grey-200":"#8c8d8f","--ht-bg-color-200":"#8c8d8f","--ht-bg-color-200-active":"#7a7b7d","--ht-bg-color-200-focus":"#7e7f81","--ht-bg-color-200-hover":"#828384","--ht-bg-color-300":"#5e6068","--ht-bg-color-300-active":"#4c4e56","--ht-bg-color-300-focus":"#55575f","--ht-bg-color-300-hover":"#595b63","--ht-bg-color-400":"#cccccc","--ht-bg-color-400-active":"#b3b3b3","--ht-bg-color-400-focus":"#c0c0c0","--ht-bg-color-400-hover":"#c6c6c6","--ht-bg-color-500":"#1C1D20","--ht-bg-color-500-active":"#0a0b0e","--ht-bg-color-500-focus":"#131417","--ht-bg-color-500-hover":"#16171a","--ht-bg-color-600":"#37383D","--ht-bg-color-600-active":"#25262b","--ht-bg-color-600-focus":"#2e2f34","--ht-bg-color-600-hover":"#323338","--ht-bg-color-700":"#0f1419","--ht-bg-color-700-active":"#16171c","--ht-bg-color-700-focus":"#1f2025","--ht-bg-color-700-hover":"#232429","--ht-border-radius":"8px","--ht-base-font-family-base":'"HydrogenType400", ui-sans-serif, system-ui, sans-serif',"--ht-base-font-family-display":'"Departure Mono", Roboto Mono, Source Code Pro, Menlo, Courier, monospace',"--ht-base-font-family-sans":'"Routed Gothic", ui-sans-serif, system-ui, sans-serif',"--ht-base-font-family-mono":'"Routed Gothic Narrow", ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace'},tweakpane:{"--tp-base-background-color":"var(--ht-bg-color-700)","--tp-base-shadow-color":"hsla(0, 0%, 0%, 0.2)","--tp-container-background-color":"var(--ht-bg-color-600)","--tp-container-background-color-active":"var(--ht-bg-color-600-active)","--tp-container-background-color-focus":"var(--ht-bg-color-600-focus)","--tp-container-background-color-hover":"var(--ht-bg-color-600-hover)","--tp-container-foreground-color":"var(--ht-text-color-main-300)","--tp-button-background-color":"var(--ht-bg-color-400)","--tp-button-background-color-active":"color-mix(in srgb, var(--ht-bg-color-400-active) 80%, white)","--tp-button-background-color-focus":"color-mix(in srgb, var(--ht-bg-color-400-focus) 85%, white)","--tp-button-background-color-hover":"color-mix(in srgb, var(--ht-bg-color-400-hover) 90%, white)","--tp-button-foreground-color":"var(--ht-text-color-main-300)","--tp-groove-foreground-color":"var(--ht-bg-color-300)","--tp-input-background-color":"var(--ht-bg-color-500)","--tp-input-background-color-active":"var(--ht-bg-color-500-active)","--tp-input-background-color-focus":"var(--ht-bg-color-500-focus)","--tp-input-background-color-hover":"var(--ht-bg-color-500-hover)","--tp-input-foreground-color":"var(--ht-text-color-main-300)","--tp-label-foreground-color":"var(--ht-text-color-main-300)","--tp-monitor-background-color":"var(--ht-bg-color-500)","--tp-monitor-foreground-color":"var(--ht-text-color-main-300)"}};function M4(){let Z=document.createElement("style");Z.id="hypertool-theme";let Y=Object.entries({...H4.cssVariables,...H4.tweakpane}).map(([K,z])=>` ${K}: ${z};`).join(`
|
|
173
173
|
`);Z.textContent=`
|
|
174
174
|
body {
|
|
175
175
|
margin: 0;
|
|
@@ -194,9 +194,9 @@ ${Y}
|
|
|
194
194
|
.tp-dfwv {
|
|
195
195
|
background-color: var(--tp-base-background-color, #0f1419) !important;
|
|
196
196
|
}
|
|
197
|
-
`,document.head.appendChild(Z)}class u9{constructor(Z,Y={}){this.pane=null,this.definitions=Z,this.options={title:Y.title||"Controls",position:Y.position||"top-right",expanded:Y.expanded!==void 0?Y.expanded:!0,container:Y.container!==void 0?Y.container:null,onChange:Y.onChange||(()=>{}),onReady:Y.onReady||(()=>{})},this.params=this.extractInitialValues(Z),this.init()}isFolder(Z){return Z&&typeof Z==="object"&&(Z.type==="folder"||Z.type==="group")}isButton(Z){return Z&&typeof Z==="object"&&Z.type==="button"}isTab(Z){return Z&&typeof Z==="object"&&Z.type==="tab"}isFile(Z){return Z&&typeof Z==="object"&&Z.type==="file"}extractInitialValues(Z){let Y={};for(let[K,z]of Object.entries(Z)){let $=z;if(this.isFolder($))Y[K]=this.extractInitialValues($.controls);else if(this.isTab($))Y[K]=$.pages.map((F)=>this.extractInitialValues(F.controls));else if(this.isButton($))continue;else Y[K]=$.value}return Y}async init(){try{M4(),await new Promise((Z)=>setTimeout(Z,50)),this.createPane(),this.addControls(),this.options.onReady()}catch(Z){console.error("[HypertoolControls] Initialization error:",Z)}}createPane(){let Z=this.resolveContainer(),Y={title:this.options.title,expanded:this.options.expanded};if(Z)Y.container=Z;this.pane=new K$(Y),this.pane.element.parentElement?.classList.add("controls-container")}resolveContainer(){if(typeof document>"u")return null;let Z=this.options.container;if(!Z)return null;if(Z instanceof HTMLElement)return Z;let Y=document.querySelector(Z);if(!Y)return console.warn(`[HypertoolControls] Container selector "${Z}" did not match any elements`),null;return Y}addControls(){if(!this.pane)return;this.addControlsToTarget(this.pane,this.definitions,this.params)}addControlsToTarget(Z,Y,K){for(let[z,$]of Object.entries(Y))try{if(this.isFolder($)){let F={title:$.label||z};if($.expanded!==void 0)F.expanded=$.expanded;let B=Z.addFolder(F);this.addControlsToTarget(B,$.controls,K[z])}else if(this.isButton($)){let F={title:$.title};if($.label)F.label=$.label;let B=Z.addButton(F);if($.onClick)B.on("click",$.onClick)}else if(this.isTab($)){let F={pages:$.pages.map((j)=>({title:j.title}))},B=Z.addTab(F);$.pages.forEach((j,b)=>{this.addControlsToTarget(B.pages[b],j.controls,K[z][b])})}else if(this.isFile($))this.addFileControl(Z,z,$,K);else this.addControlToTarget(Z,z,$,K)}catch(F){console.error(`[HypertoolControls] Error adding control/folder/button/tab "${z}":`,F)}}addControlToTarget(Z,Y,K,z){if(this.isFolder(K))return;let $={label:K.label||Y};if(K.readonly!==void 0)$.readonly=K.readonly;if(K.interval!==void 0)$.interval=K.interval;if(K.bufferSize!==void 0)$.bufferSize=K.bufferSize;if(K.multiline!==void 0)$.multiline=K.multiline;if(K.rows!==void 0)$.rows=K.rows;if(K.view!==void 0)$.view=K.view;switch(K.type){case"number":if(K.min!==void 0)$.min=K.min;if(K.max!==void 0)$.max=K.max;if(K.step!==void 0)$.step=K.step;break;case"point":case"point2d":case"point3d":case"point4d":if(K.min!==void 0)$.min=K.min;if(K.max!==void 0)$.max=K.max;if(K.step!==void 0)$.step=K.step;let B=["x","y","z","w"];for(let j of B)if(K[j]&&typeof K[j]==="object")$[j]=K[j];break;case"select":case"selector":if(Array.isArray(K.options))$.options=K.options.map((j)=>{if(typeof j==="object"&&j!==null)return{text:j.label||j.text||String(j.value),value:j.value};return{text:String(j),value:j}});else $.options=Object.entries(K.options).map(([j,b])=>({text:j,value:b}));break;case"color":case"boolean":case"string":case"text":break;case"folder":case"group":console.warn("[HypertoolControls] Folder/Group encountered in addControlToTarget (should be handled earlier)");return;case"button":console.warn("[HypertoolControls] Button encountered in addControlToTarget (should be handled earlier)");return;case"tab":console.warn("[HypertoolControls] Tab encountered in addControlToTarget (should be handled earlier)");return;default:console.warn(`[HypertoolControls] Unknown control type: ${K.type}`);return}Z.addBinding(z,Y,$).on("change",(B)=>{z[Y]=B.value;let j={key:Y,value:B.value,event:B};this.options.onChange(this.values,j)})}addFileControl(Z,Y,K,z){let $=K.label||Y,F=K.accept||"*/*",B=K.placeholder||"Choose file...",j=K.preview!==!1,b=document.createElement("div");b.className="tp-lblv ht-file-control-row";let _=document.createElement("div");_.className="tp-lblv_l ht-file-control-label",_.textContent=$;let y=document.createElement("div");y.className="tp-lblv_v ht-file-control-value";let k=document.createElement("input");k.type="file",k.accept=F,k.style.display="none";let a=document.createElement("div");a.className="ht-file-control-buttons";let DJ=document.createElement("button");DJ.className="tp-btnv_b ht-file-control-button",DJ.textContent=z[Y]?"Change":"Upload",DJ.style.display=z[Y]?"none":"inline-flex";let _J=document.createElement("button");_J.className="tp-btnv_b ht-file-control-button ht-file-control-button--muted",_J.textContent="✕",_J.style.display="none";let bJ=document.createElement("div");bJ.className="ht-file-control-preview",bJ.style.display=z[Y]&&j?"block":"none";let CJ=document.createElement("div");CJ.className="ht-file-control-preview-bar";let g=document.createElement("span");g.className="ht-file-control-preview-name",g.textContent=z[Y]?"File":"No file selected";let KJ=document.createElement("div");KJ.className="ht-file-control-preview-actions";let c=document.createElement("button");c.type="button",c.className="ht-file-control-preview-action",c.title="Replace file",c.textContent="↻",c.onclick=(i)=>{i.preventDefault(),k.click()};let qJ=document.createElement("button");qJ.type="button",qJ.className="ht-file-control-preview-action",qJ.title="Remove file",qJ.textContent="✕",qJ.onclick=(i)=>{i.preventDefault(),_J.click()},KJ.appendChild(c),KJ.appendChild(qJ),CJ.appendChild(g),CJ.appendChild(KJ);let d=document.createElement("img");d.className="ht-file-control-preview-img";let UJ=document.createElement("div");UJ.className="ht-file-control-placeholder",UJ.style.display="none",k.onchange=async()=>{let i=k.files?.[0];if(!i)return;if(K.maxSize&&i.size>K.maxSize){console.warn(`[HypertoolControls] File size exceeds limit: ${i.size} > ${K.maxSize}`);return}DJ.textContent="Uploading...",DJ.disabled=!0;let $J=`file-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`,LJ=new Promise((TJ)=>{let QJ=(AJ)=>{if(AJ.data?.type!=="UPLOAD_CONTROL_FILE_RESULT")return;if(AJ.data?.requestId!==$J)return;if(window.removeEventListener("message",QJ),AJ.data.error)console.error("[HypertoolControls] File upload failed:",AJ.data.error),TJ(null);else TJ({url:AJ.data.url,originalUrl:AJ.data.originalUrl||AJ.data.url})};window.addEventListener("message",QJ),setTimeout(()=>{window.removeEventListener("message",QJ),console.warn("[HypertoolControls] File upload timed out"),TJ(null)},30000)}),JJ=null;if(j&&i.type.startsWith("image/")){let TJ=new FileReader;TJ.onload=(QJ)=>{JJ=QJ.target?.result},TJ.readAsDataURL(i)}let YJ=new FileReader;YJ.onload=async(TJ)=>{let QJ=TJ.target?.result;window.parent.postMessage({type:"UPLOAD_CONTROL_FILE",source:"hypertool-iframe",requestId:$J,data:{fileName:i.name,fileType:i.type,fileSize:i.size,fileData:QJ,controlKey:Y}},"*",[QJ]);let AJ=await LJ;if(DJ.disabled=!1,AJ){if(z[Y]=AJ.url,DJ.textContent="Change",DJ.style.display="none",g.textContent=i.name||"File",j&&i.type.startsWith("image/")&&JJ)UJ.style.display="none",d.src=JJ,bJ.style.display="flex";let BQ={key:Y,value:AJ.originalUrl,event:{value:AJ.originalUrl,proxyUrl:AJ.url,file:i}};this.options.onChange(this.values,BQ)}else DJ.textContent=z[Y]?"Change":"Upload",console.error("[HypertoolControls] Failed to upload file to storage")},YJ.readAsArrayBuffer(i)},DJ.onclick=()=>{k.click()},_J.onclick=()=>{z[Y]=null,k.value="",DJ.textContent="Upload",DJ.style.display="inline-flex",_J.style.display="none",bJ.style.display="none",UJ.style.display="none",g.textContent="No file selected";let i={key:Y,value:null,event:{value:null}};this.options.onChange(this.values,i)},a.appendChild(DJ),a.appendChild(_J),bJ.appendChild(d),bJ.appendChild(CJ),y.appendChild(k),y.appendChild(a),y.appendChild(UJ),y.appendChild(bJ),b.appendChild(_),b.appendChild(y);let SJ=Z.element;(SJ.querySelector(".tp-rotv_c")||SJ).appendChild(b)}addFolder(Z){if(!this.pane)return null;return this.pane.addFolder({title:Z})}set(Z,Y){if(Z in this.params){if(this.params[Z]=Y,this.pane)this.pane.refresh()}}get values(){return{...this.params}}destroy(){if(this.pane)this.pane.dispose(),this.pane=null;let Z=document.getElementById("hypertool-theme");if(Z)Z.remove()}setVisible(Z){if(!this.pane)return;this.pane.element.style.display=Z?"block":"none"}refresh(){if(this.pane)this.pane.refresh()}}function U$(Z,Y){return new u9(Z,Y).params}function q$(Z,Y){return new u9(Z,Y)}var PM=zQ(G8(),1),NM=zQ($M(),1);var z$=new Set(["STYLE","LINK"]);class $${source;target;observer=null;nodeMap=new WeakMap;active=!1;messageListener=null;usePostMessage=!1;cssNodesById=new Map;constructor(Z={}){let Y=null;if(Z.sourceDocument)Y=Z.sourceDocument;else if(typeof window<"u")try{Y=window.parent?.document??null}catch(K){console.debug("[hyper-frame] Using postMessage for CSS sync (cross-origin)"),this.usePostMessage=!0,Y=null}this.source=Y,this.target=Z.targetDocument??(typeof document<"u"?document:null),this.active=Boolean(Z.mirror??!0)}start(){if(!this.active)return;if(this.usePostMessage)this.startPostMessageMode();else if(this.source&&this.target)this.cleanupPreviousClones(),this.syncAll(),this.attachObserver();else console.warn("[hyper-frame] Unable to mirror CSS – missing source or target document.")}stop(){if(this.observer?.disconnect(),this.observer=null,this.nodeMap=new WeakMap,this.cleanupPreviousClones(),this.messageListener&&typeof window<"u")window.removeEventListener("message",this.messageListener),this.messageListener=null;this.cssNodesById.clear()}startPostMessageMode(){if(!this.target||typeof window>"u")return;this.cleanupPreviousClones(),this.messageListener=(Z)=>{if(!Z.data||Z.data.type!=="hyper-frame:css-sync")return;this.handleCssMessage(Z.data)},window.addEventListener("message",this.messageListener),console.debug("[hyper-frame] CSS postMessage receiver ready")}handleCssMessage(Z){if(!this.target)return;switch(Z.action){case"init":this.cleanupPreviousClones(),this.cssNodesById.clear();break;case"add":if(Z.id&&Z.tagName)this.addCssNode(Z.id,Z.tagName,Z.attributes,Z.textContent);break;case"remove":if(Z.id)this.removeCssNode(Z.id);break;case"update":if(Z.id)this.updateCssNode(Z.id,Z.attributes,Z.textContent);break}}addCssNode(Z,Y,K,z){if(!this.target)return;if(this.cssNodesById.has(Z))return;let $=document.createElement(Y);if($.setAttribute("data-hyper-frame-clone","true"),$.setAttribute("data-css-id",Z),K)for(let[F,B]of Object.entries(K))$.setAttribute(F,B);if(z)$.textContent=z;this.target.head.appendChild($),this.cssNodesById.set(Z,$)}removeCssNode(Z){let Y=this.cssNodesById.get(Z);if(Y&&Y.parentNode)Y.parentNode.removeChild(Y),this.cssNodesById.delete(Z)}updateCssNode(Z,Y,K){let z=this.cssNodesById.get(Z);if(!z)return;if(Y){for(let $ of Array.from(z.attributes))if(!$.name.startsWith("data-"))z.removeAttribute($.name);for(let[$,F]of Object.entries(Y))z.setAttribute($,F)}if(K!==void 0)z.textContent=K}cleanupPreviousClones(){if(!this.target)return;this.target.querySelectorAll('[data-hyper-frame-clone="true"]').forEach((Z)=>Z.parentNode?.removeChild(Z))}async syncAll(){if(!this.source||!this.target)return;let Z=this.source.head,Y=Array.from(Z.children).filter((K)=>z$.has(K.nodeName));for(let K of Y){let z=await this.cloneNode(K);if(!z)continue;this.target?.head.appendChild(z),this.nodeMap.set(K,z)}}attachObserver(){if(!this.source||!this.target)return;if(this.observer)return;this.observer=new MutationObserver((Z)=>{Z.forEach((Y)=>{switch(Y.type){case"childList":this.handleChildListMutation(Y);break;case"characterData":this.handleCharacterDataMutation(Y);break;case"attributes":this.handleAttributeMutation(Y);break}})}),this.observer.observe(this.source.head,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}handleChildListMutation(Z){if(!this.target)return;Z.removedNodes.forEach((Y)=>{let K=this.nodeMap.get(Y);if(K&&K.parentNode)K.parentNode.removeChild(K),this.nodeMap.delete(Y)}),Z.addedNodes.forEach(async(Y)=>{if(!(Y instanceof HTMLElement))return;if(!z$.has(Y.nodeName))return;try{let K=await this.cloneNode(Y);if(!K)return;let z=Z.nextSibling?this.nodeMap.get(Z.nextSibling):null;if(z&&z.parentNode)z.parentNode.insertBefore(K,z);else this.target?.head.appendChild(K);this.nodeMap.set(Y,K)}catch(K){console.error("[CssBridge] Failed to clone node:",K)}})}handleCharacterDataMutation(Z){let K=Z.target.parentNode;if(!K)return;let z=this.nodeMap.get(K);if(!z)return;z.textContent=K.textContent}handleAttributeMutation(Z){let Y=Z.target,K=this.nodeMap.get(Y);if(!K||!(K instanceof Element))return;if(Z.attributeName){let z=Y.getAttribute(Z.attributeName);if(z===null)K.removeAttribute(Z.attributeName);else K.setAttribute(Z.attributeName,z)}}async cloneNode(Z){if(!(Z instanceof HTMLElement))return null;if(!z$.has(Z.nodeName))return null;if(Z.nodeName==="LINK"&&Z instanceof HTMLLinkElement){let K=Z.getAttribute("href"),z=Z.getAttribute("rel");if(K){if(z==="stylesheet")try{let F=await this.fetchCssContent(K),B=document.createElement("STYLE");return B.textContent=F,B.setAttribute("data-hyper-frame-clone","true"),B}catch(F){console.error(`[CssBridge] Failed to fetch CSS from ${K}:`,F)}let $=Z.cloneNode(!0);try{let F=this.source?new URL(this.source.location.href):new URL(window.location.href),B=new URL(K,F).href;$.setAttribute("href",B)}catch(F){console.error(`[CssBridge] Failed to convert URL to absolute: ${K}`,F)}return $.setAttribute("data-hyper-frame-clone","true"),$}}let Y=Z.cloneNode(!0);return Y.setAttribute("data-hyper-frame-clone","true"),Y}async fetchCssContent(Z){let Y=this.source?new URL(this.source.location.href):new URL(window.location.href),K=new URL(Z,Y).href,z=await fetch(K);if(!z.ok)throw Error(`HTTP ${z.status}: ${z.statusText}`);return await z.text()}}function OM(Z={}){let Y=Z.documentRef??document;if(!Y)throw Error("[hyper-frame] document is not available");let K=Z.containerClassName||"hyper-frame",z=Z.target;if(z instanceof HTMLElement)return z.classList.add(K),{element:z,createdInternally:!1};if(typeof z==="string"&&z.trim().length>0){let F=Y.querySelector(z);if(F)return F.classList.add(K),{element:F,createdInternally:!1};console.warn(`[hyper-frame] Could not find container for selector "${z}", creating one instead.`)}let $=Y.createElement("div");return $.classList.add(K),$.classList.add("hyper-frame-container"),Y.body.appendChild($),{element:$,createdInternally:!0}}var $G=zQ(G8(),1);var NQ=zQ(G8(),1),b7=zQ(gZ(),1),LM=({definitions:Z,options:Y,onChange:K,onReady:z})=>{let $=NQ.useRef(null),F=NQ.useRef(null),B=NQ.useRef(null),j=NQ.useRef(null),b=NQ.useRef(z),[_,y]=NQ.useState(!1),[k,a]=NQ.useState(!1),[DJ,_J]=NQ.useState(!1),bJ=NQ.useMemo(()=>{let d=[{type:"number",label:"Number",description:"Slider with min/max/step"},{type:"color",label:"Color",description:"Color picker"},{type:"boolean",label:"Toggle",description:"On/off switch"},{type:"string",label:"Text",description:"Single-line string"},{type:"text",label:"Textarea",description:"Multiline string"},{type:"select",label:"Select",description:"Dropdown options"},{type:"point2d",label:"Point 2D",description:"Vector {x,y}"},{type:"point3d",label:"Point 3D",description:"Vector {x,y,z}"},{type:"file",label:"File",description:"Upload image/audio/etc"}],UJ=Y?.controlTypes;if(!UJ||UJ.length===0)return d;return d.filter((SJ)=>UJ.includes(SJ.type))},[Y?.controlTypes]),CJ=NQ.useCallback(()=>y(!1),[]),g=NQ.useCallback(()=>{let d=$.current,UJ=F.current;if(!d||!UJ)return;let SJ=d.getBoundingClientRect(),zJ=window.innerHeight-SJ.top-12,i=UJ.scrollHeight;_J(i>zJ)},[]);NQ.useEffect(()=>{let d=(UJ)=>{if(!(UJ.target instanceof HTMLElement))return;if(!UJ.target.closest(".hyper-frame-controls-panel"))CJ()};if(_)document.addEventListener("click",d);return()=>{document.removeEventListener("click",d)}},[_,CJ]),NQ.useEffect(()=>{g()},[_,g,bJ.length]),NQ.useEffect(()=>{let d=()=>g();return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[g]);let KJ=NQ.useCallback((d)=>{let UJ=Math.random().toString(36).slice(2,6);return`${d}-control-${UJ}`},[]),c=NQ.useCallback((d,UJ)=>{return[`Add a new ${d} control named "${UJ}" to the existing controls definitions.`,"Do NOT regenerate files; only patch the controls definitions object.",`Use sensible defaults for ${d} (e.g., 0/1 for numbers, "#00ff88" for colors).`,"Return a search-replace JSON patch that only touches the controls definitions section.","Keep all other code intact."].join(" ")},[]),qJ=NQ.useCallback((d)=>{let UJ=KJ(d),SJ=c(d,UJ),zJ={source:"hypertool-controls",type:"ADD_CONTROL_REQUEST",controlType:d,name:UJ,prompt:SJ,timestamp:Date.now()};if(Y?.onAddControlRequest);if(Y?.onAddControlRequest?.({type:d,name:UJ,prompt:SJ}),window.dispatchEvent(new CustomEvent("hypertool:add-control-request",{detail:zJ})),window.parent&&window.parent!==window)window.parent.postMessage(zJ,"*")},[c,KJ,Y]);return NQ.useEffect(()=>{b.current=z},[z]),NQ.useEffect(()=>{let d=(UJ)=>{let SJ=UJ;if(!SJ.detail||typeof SJ.detail.loading!=="boolean")return;a(Boolean(SJ.detail.loading))};return window.addEventListener("hypertool:add-control-status",d),()=>{window.removeEventListener("hypertool:add-control-status",d)}},[]),NQ.useEffect(()=>{if(!B.current)return;let d=()=>g(),UJ=()=>g(),SJ=null,zJ=window;if(!zJ.hypertoolControls){console.warn("[ControlsPanel] hypertoolControls not available on window");return}try{let i=zJ.hypertoolControls.createControlPanel(Z,{title:Y?.title,position:Y?.position,expanded:Y?.expanded,container:B.current,onChange:($J,LJ)=>{if(K)K({key:LJ.key,value:LJ.value,event:LJ.event})}});if(j.current=i,SJ=document.querySelector(".hyper-frame-controls-panel__add-btn"),SJ?.addEventListener("click",d),window.addEventListener("resize",UJ),g(),b.current)b.current(i)}catch(i){console.error("[ControlsPanel] Failed to create controls:",i)}return()=>{if(j.current){if(typeof j.current.dispose==="function")j.current.dispose();else if(typeof j.current.destroy==="function")j.current.destroy();j.current=null}SJ?.removeEventListener("click",d),window.removeEventListener("resize",UJ)}},[Z,Y,K]),b7.jsxDEV("div",{className:"hyper-frame-controls-panel",ref:$,children:b7.jsxDEV("div",{ref:F,className:DJ?"hyper-frame-controls-panel__scroll hyper-frame-controls-panel__scroll--overflow":"hyper-frame-controls-panel__scroll",children:[b7.jsxDEV("div",{ref:B,className:"hyper-frame-controls-panel__pane"},void 0,!1,void 0,this),Y?.showAddControlActions!==!1&&bJ.length>0&&b7.jsxDEV("div",{className:"hyper-frame-controls-panel__actions",children:[b7.jsxDEV("button",{type:"button",className:"hyper-frame-controls-panel__add-btn",onClick:()=>y((d)=>!d),"aria-expanded":_,"aria-haspopup":"true",disabled:k,children:[k?b7.jsxDEV("span",{className:"hyper-frame-controls-panel__spinner"},void 0,!1,void 0,this):"+",b7.jsxDEV("span",{children:k?"Adding…":"Add control"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&b7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu",role:"menu",children:bJ.map((d)=>b7.jsxDEV("button",{className:"hyper-frame-controls-panel__menu-item",onClick:()=>{a(!0),qJ(d.type),CJ()},role:"menuitem",children:[b7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu-title",children:[d.label,": "]},void 0,!0,void 0,this),b7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu-desc",children:d.description},void 0,!1,void 0,this)]},d.type,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var dZ=zQ(G8(),1);var wQ=zQ(G8(),1),HM=zQ(gZ(),1),WM=wQ.createContext(null),zG=()=>{let{innerWidth:Z,innerHeight:Y}=window;return{width:Math.max(100,Math.round(Z)),height:Math.max(100,Math.round(Y))}},DM=({children:Z})=>{let Y=wQ.useMemo(()=>{let $J=zG(),LJ=window.devicePixelRatio||1,JJ=Math.round($J.width*LJ),YJ=Math.round($J.height*LJ);return{canvasWidth:Math.max(100,Math.round(JJ*0.9)),canvasHeight:Math.max(100,Math.round(YJ*0.9)),maxWidth:JJ,maxHeight:YJ}},[]),[K,z]=wQ.useState(Y.canvasWidth),[$,F]=wQ.useState(Y.canvasHeight),[B,j]=wQ.useState(Y.maxWidth),[b,_]=wQ.useState(Y.maxHeight),[y,k]=wQ.useState(!1),[a,DJ]=wQ.useState(!1),[_J,bJ]=wQ.useState(null),[CJ,g]=wQ.useState(null),KJ=wQ.useMemo(()=>{let $J=window.devicePixelRatio||1,LJ=K/$J,JJ=$/$J;if(LJ===0||JJ===0)return 1;let YJ=B/$J,TJ=b/$J,QJ=YJ/LJ,AJ=TJ/JJ;return Math.min(QJ,AJ,1)},[K,$,B,b]);wQ.useEffect(()=>{let $J=()=>{let LJ=zG(),JJ=window.devicePixelRatio||1,YJ=Math.round(LJ.width*JJ),TJ=Math.round(LJ.height*JJ);if(j(YJ),_(TJ),y)z(YJ),F(TJ);else if(_J!==null){let QJ,AJ;if(YJ/TJ>_J)AJ=TJ,QJ=Math.round(AJ*_J);else QJ=YJ,AJ=Math.round(QJ/_J);z(QJ),F(AJ)}};return window.addEventListener("resize",$J),()=>window.removeEventListener("resize",$J)},[y,_J]);let c=wQ.useCallback(($J)=>{let LJ=Math.max(100,Math.round($J));z(LJ),k(!1),bJ(null)},[]),qJ=wQ.useCallback(($J)=>{let LJ=Math.max(100,Math.round($J));F(LJ),k(!1),bJ(null)},[]),d=wQ.useCallback(($J,LJ)=>{let JJ=Math.max(100,Math.round($J)),YJ=Math.max(100,Math.round(LJ));z(JJ),F(YJ),k(!1),bJ(null)},[]),UJ=wQ.useCallback(($J,LJ)=>{let JJ=zG(),YJ=window.devicePixelRatio||1,TJ=$J/LJ,QJ=Math.round(JJ.width*YJ),AJ=Math.round(JJ.height*YJ),BQ,vQ;if(QJ/AJ>TJ)vQ=AJ,BQ=Math.round(vQ*TJ);else BQ=QJ,vQ=Math.round(BQ/TJ);z(BQ),F(vQ),bJ(TJ),k(!1)},[]),SJ=wQ.useCallback(($J)=>{let{width:LJ,height:JJ}=$J;if(LJ>0&&JJ>0)console.log("[CanvasContext] Syncing with actual canvas:",{actual:{width:LJ,height:JJ},current:{width:K,height:$}}),z(LJ),F(JJ),k(!1),bJ(null)},[K,$]),zJ=wQ.useCallback(()=>{if(y&&CJ)z(CJ.width),F(CJ.height),k(!1),g(null);else{g({width:K,height:$});let $J=zG(),LJ=window.devicePixelRatio||1,JJ=Math.round($J.width*LJ),YJ=Math.round($J.height*LJ);z(JJ),F(YJ),bJ(null),k(!0)}},[y,CJ,K,$]),i={canvasWidth:K,canvasHeight:$,maxCanvasWidth:B,maxCanvasHeight:b,scale:KJ,isFittedToScreen:y,isRecording:a,setIsRecording:DJ,setCanvasWidth:c,setCanvasHeight:qJ,setCanvasSize:d,setAspectRatio:UJ,syncWithCanvas:SJ,fitToScreen:zJ};return HM.jsxDEV(WM.Provider,{value:i,children:Z},void 0,!1,void 0,this)},oX=()=>{let Z=wQ.useContext(WM);if(!Z)throw Error("useCanvas must be used within a CanvasProvider");return Z};var A7=zQ(gZ(),1),MM=({getContainer:Z,filename:Y="hyperframe-export",useCanvasCapture:K=!0})=>{let{setIsRecording:z}=oX(),[$,F]=dZ.useState(!1),[B,j]=dZ.useState(!1),[b,_]=dZ.useState(!1),y=dZ.useRef(null),k=dZ.useRef([]);dZ.useEffect(()=>{let g=()=>{let c=Z();if(c&&K){if(c.querySelector("canvas"))return F(!0),j(!0),!0}return!1};if(g())return;let KJ=setInterval(()=>{if(g())clearInterval(KJ)},100);return()=>clearInterval(KJ)},[Z,K]);let a=dZ.useCallback((g,KJ)=>{let c=URL.createObjectURL(g),qJ=document.createElement("a");qJ.href=c,qJ.download=KJ,qJ.rel="noopener",qJ.style.display="none",document.body.appendChild(qJ),qJ.click(),document.body.removeChild(qJ),URL.revokeObjectURL(c)},[]),DJ=dZ.useCallback(async()=>{try{let g=Z();if(!g)throw Error("Container not available.");let KJ=g.querySelector("canvas");if(!KJ||!(KJ instanceof HTMLCanvasElement))throw Error("No canvas element available for capture.");let c=await new Promise((qJ,d)=>{KJ.toBlob((UJ)=>{if(UJ)qJ(UJ);else d(Error("Canvas capture returned an empty blob."))})});if(c)a(c,`${Y}.png`),console.log("PNG captured")}catch(g){console.error("[ExportWidget] Failed to capture image:",g)}},[Z,Y,a]),_J=dZ.useCallback(()=>{if(!y.current){console.warn("[ExportWidget] No active recorder to stop");return}console.log("Stopping recording"),y.current.stop()},[]),bJ=dZ.useCallback(async()=>{try{let g=Z();if(!g)throw Error("Container not available.");let KJ=g.querySelector("canvas");if(!KJ||!(KJ instanceof HTMLCanvasElement))throw Error("No canvas element available for recording.");if(typeof KJ.captureStream!=="function")throw Error("Canvas captureStream API is not supported in this browser.");let c=KJ.captureStream(60),d=[{mimeType:"video/mp4;codecs=avc1",extension:"mp4"},{mimeType:"video/mp4;codecs=h264",extension:"mp4"},{mimeType:"video/mp4;codecs=avc1.42E01E",extension:"mp4"},{mimeType:"video/mp4",extension:"mp4"},{mimeType:"video/webm;codecs=h264",extension:"webm"},{mimeType:"video/webm;codecs=vp9",extension:"webm"},{mimeType:"video/webm;codecs=vp8",extension:"webm"},{mimeType:"video/webm",extension:"webm"}].find((i)=>MediaRecorder.isTypeSupported(i.mimeType));if(!d)d={mimeType:"",extension:"webm"};console.log("[ExportWidget] Using video format:",d.mimeType||"browser default");let UJ={videoBitsPerSecond:5000000};if(d.mimeType)UJ.mimeType=d.mimeType;let SJ=new MediaRecorder(c,UJ),zJ=[];k.current=zJ,SJ.addEventListener("dataavailable",(i)=>{if(i.data?.size)zJ.push(i.data)}),SJ.addEventListener("stop",()=>{let i=d.mimeType||SJ.mimeType||"video/webm",$J=new Blob(zJ,{type:i});console.log("[ExportWidget] Recording complete:",{size:$J.size,type:$J.type,chunks:zJ.length}),a($J,`${Y}.${d.extension}`),c.getTracks().forEach((LJ)=>LJ.stop()),_(!1),z(!1),y.current=null,k.current=[]}),SJ.start(),y.current=SJ,_(!0),z(!0),console.log("Recording started")}catch(g){console.error("[ExportWidget] Failed to start recording:",g),_(!1),z(!1),y.current=null}},[Z,Y,a,z]),CJ=dZ.useCallback(async()=>{if(b)_J();else await bJ()},[b,_J,bJ]);return A7.jsxDEV("div",{className:"export-widget-container absolute top-0 left-0 py-2 px-2 z-[9999]",children:A7.jsxDEV("div",{className:"flex items-center gap-2",children:[A7.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-2 rounded-lg border border-border bg-background px-2 py-1 text-sm text-text transition hover:bg-muted/80 whitespace-nowrap ${!$?"opacity-60 cursor-not-allowed":""}`,onClick:DJ,disabled:!$,title:"Screenshot",children:[A7.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[A7.jsxDEV("path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"},void 0,!1,void 0,this),A7.jsxDEV("circle",{cx:"12",cy:"13",r:"3"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("span",{children:"Screenshot"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-2 rounded-lg border transition hover:bg-muted/80 whitespace-nowrap px-2 py-1 text-sm ${b?"bg-red-500/20 text-red-400 border-red-500/30":"bg-background text-text border-border"} ${!B?"opacity-60 cursor-not-allowed":""}`,onClick:CJ,disabled:!B,title:b?"Stop Recording":"Record Video",children:[A7.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[A7.jsxDEV("path",{d:"m22 8-6 4 6 4V8Z"},void 0,!1,void 0,this),A7.jsxDEV("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",ry:"2"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("span",{children:b?"Stop":"Rec"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var UX=zQ(G8(),1);var y7=zQ(G8(),1);var Q7=zQ(gZ(),1),FM=({canvasWidth:Z,canvasHeight:Y,scale:K,onResize:z})=>{let{isRecording:$}=oX(),[F,B]=y7.useState(!1),[j,b]=y7.useState(null),[_,y]=y7.useState({x:0,y:0}),[k,a]=y7.useState({width:0,height:0}),DJ=window.devicePixelRatio||1,_J=y7.useRef(K),bJ=1;y7.useEffect(()=>{_J.current=K},[K]);let CJ=y7.useCallback((KJ,c)=>{if($)return;c.preventDefault(),c.stopPropagation(),B(!0),b(KJ),y({x:c.clientX,y:c.clientY}),a({width:Z,height:Y})},[Z,Y,$]);y7.useEffect(()=>{if(!F||!j)return;let KJ=(d)=>{let UJ=d.clientX-_.x,SJ=d.clientY-_.y,zJ=_J.current||1,i=j.length===2,$J=j==="e"||j==="w",LJ=j==="n"||j==="s",JJ=k.width,YJ=k.height,TJ=j.includes("e")?UJ*DJ/zJ:j.includes("w")?-UJ*DJ/zJ:0,QJ=j.includes("s")?SJ*DJ/zJ:j.includes("n")?-SJ*DJ/zJ:0;if(JJ=k.width+TJ,YJ=k.height+QJ,d.shiftKey){let AJ=Math.max(1,k.width),BQ=Math.max(1,k.height),vQ=TJ/AJ,mZ=QJ/BQ,cQ=($Q,uQ)=>{if(!Number.isFinite($Q)||$Q<=0)return 1/uQ;return $Q};if($J&&!LJ){let $Q=cQ(1+vQ,AJ);JJ=AJ*$Q,YJ=BQ*$Q}else if(LJ&&!$J){let $Q=cQ(1+mZ,BQ);JJ=AJ*$Q,YJ=BQ*$Q}else if(i){let $Q=Math.abs(vQ)>=Math.abs(mZ),uQ=$Q?vQ:mZ,cZ=$Q?AJ:BQ,Z7=cQ(1+uQ,cZ);JJ=AJ*Z7,YJ=BQ*Z7}}JJ=Math.max(1,JJ),YJ=Math.max(1,YJ),z(JJ,YJ)},c=()=>{B(!1),b(null)},qJ=()=>{B(!1),b(null)};return document.addEventListener("mousemove",KJ),document.addEventListener("mouseup",c),document.addEventListener("mouseleave",qJ),()=>{document.removeEventListener("mousemove",KJ),document.removeEventListener("mouseup",c),document.removeEventListener("mouseleave",qJ)}},[F,j,_,k,DJ,z]);let g=({handle:KJ,className:c})=>Q7.jsxDEV("div",{className:`absolute ${c} group ${$?"cursor-not-allowed opacity-0":""}`,onMouseDown:(qJ)=>CJ(KJ,qJ),style:{zIndex:10},title:$?"Canvas resizing is locked during recording":void 0,children:Q7.jsxDEV("div",{className:`w-full h-full transition-opacity bg-accent/20 ${$?"opacity-0":"opacity-0 group-hover:opacity-100"}`},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Q7.jsxDEV(Q7.Fragment,{children:[Q7.jsxDEV(g,{handle:"nw",className:"top-0 left-0 w-3 h-3 cursor-nw-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"ne",className:"top-0 right-0 w-3 h-3 cursor-ne-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"sw",className:"bottom-0 left-0 w-3 h-3 cursor-sw-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"se",className:"bottom-0 right-0 w-3 h-3 cursor-se-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"n",className:"top-0 left-3 right-3 h-1 cursor-n-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"s",className:"bottom-0 left-3 right-3 h-1 cursor-s-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"w",className:"left-0 top-3 bottom-3 w-1 cursor-w-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"e",className:"right-0 top-3 bottom-3 w-1 cursor-e-resize"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var B4=zQ(gZ(),1),BM=({onReady:Z})=>{let Y=UX.useRef(null),K=UX.useRef(null),{canvasWidth:z,canvasHeight:$,scale:F,setCanvasSize:B,syncWithCanvas:j}=oX(),[b,_]=UX.useState(!1),y=window.devicePixelRatio||1,k=Math.max(1,Math.round(z/y)),a=Math.max(1,Math.round($/y)),DJ=Math.max(1,Math.round(k*F)),_J=Math.max(1,Math.round(a*F));return UX.useEffect(()=>{if(Y.current)Z(Y.current)},[Z]),UX.useEffect(()=>{if(!Y.current||b)return;let bJ=()=>{let KJ=Y.current?.querySelector("canvas");if(KJ&&KJ instanceof HTMLCanvasElement){let{width:c,height:qJ}=KJ;if(c>100&&qJ>100){let d=Math.abs(c-z),UJ=Math.abs(qJ-$);if(d>z*0.1||UJ>$*0.1)console.log("[SandboxContainer] Canvas detected, syncing dimensions"),j(KJ),_(!0)}}};bJ();let CJ=setInterval(bJ,100),g=setTimeout(()=>{clearInterval(CJ),_(!0)},3000);return()=>{clearInterval(CJ),clearTimeout(g)}},[Y,z,$,b,j]),UX.useEffect(()=>{let bJ=new Event("resize");window.dispatchEvent(bJ),console.log("[SandboxContainer] Dispatched resize event:",{canvas:{width:z,height:$},container:{width:k,height:a},display:{width:DJ,height:_J},scale:F})},[z,$,k,a,DJ,_J,F]),B4.jsxDEV("div",{className:"hyper-frame-sandbox-wrapper absolute inset-0 flex items-center justify-center pointer-events-none",children:B4.jsxDEV("div",{ref:K,className:"hyper-frame-sandbox-display-container relative pointer-events-auto",style:{width:`${DJ}px`,height:`${_J}px`,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"},children:[B4.jsxDEV(FM,{canvasWidth:z,canvasHeight:$,scale:F,onResize:B},void 0,!1,void 0,this),B4.jsxDEV("div",{ref:Y,className:"hyper-frame-sandbox-container absolute top-0 left-0 flex items-center justify-center",style:{width:`${k}px`,height:`${a}px`,overflow:"hidden",transform:`scale(${F})`,transformOrigin:"top left"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var K6=zQ(G8(),1);var FQ=zQ(gZ(),1),AM=[{label:"16:9 Landscape",width:1920,height:1080},{label:"9:16 Portrait",width:1080,height:1920},{label:"4:3 Standard",width:1024,height:768},{label:"1:1 Square",width:1080,height:1080},{label:"21:9 Ultrawide",width:2560,height:1080},{label:"3:2 Classic",width:1440,height:960},{label:"---",width:0,height:0},{label:"iPhone 15 Pro",width:1179,height:2556},{label:"iPhone 15 Pro Max",width:1290,height:2796},{label:"iPhone SE",width:750,height:1334},{label:"iPhone 15",width:1170,height:2532},{label:"---",width:0,height:0},{label:'MacBook Air 13"',width:2560,height:1664},{label:'MacBook Pro 14"',width:3024,height:1964},{label:'MacBook Pro 16"',width:3456,height:2234},{label:'iMac 24"',width:4480,height:2520},{label:"Studio Display",width:5120,height:2880}],IM=()=>{let{canvasWidth:Z,canvasHeight:Y,scale:K,isRecording:z,setCanvasWidth:$,setCanvasHeight:F,setAspectRatio:B,fitToScreen:j}=oX(),[b,_]=K6.useState(Z.toString()),[y,k]=K6.useState(Y.toString());K6.useEffect(()=>{_(Z.toString())},[Z]),K6.useEffect(()=>{k(Y.toString())},[Y]);let a=()=>{if(z)return;let zJ=Math.round(parseFloat(b));if(!isNaN(zJ)&&zJ>=100)$(zJ),_(zJ.toString());else _(Z.toString())},DJ=()=>{if(z)return;let zJ=Math.round(parseFloat(y));if(!isNaN(zJ)&&zJ>=100)F(zJ),k(zJ.toString());else k(Y.toString())},_J=(zJ)=>{if(zJ.key==="Enter")a(),zJ.currentTarget.blur()},bJ=(zJ)=>{if(zJ.key==="Enter")DJ(),zJ.currentTarget.blur()},CJ=(zJ)=>{if(z)return;let i=AM.find(($J)=>$J.label===zJ.target.value);if(i&&i.width>0&&i.height>0)B(i.width,i.height)},g=window.devicePixelRatio||1,KJ=Math.round(Z/g*K),c=Math.round(Y/g*K),qJ=`${Z}×${Y}`,d=`${KJ}×${c}`,UJ=K<1,SJ=Math.round(K*100);return FQ.jsxDEV("div",{className:"canvas-size-widget-container absolute top-0 center px-2 py-2 z-[9999] flex items-center gap-2",children:[FQ.jsxDEV("select",{onChange:CJ,className:`rounded border border-border w-[90px] bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,defaultValue:"",disabled:z,title:z?"Canvas resizing is locked during recording":"Choose a preset size",children:[FQ.jsxDEV("option",{value:"",disabled:!0,children:"Presets"},void 0,!1,void 0,this),AM.map((zJ,i)=>zJ.label==="---"?FQ.jsxDEV("option",{disabled:!0,children:"────────"},i,!1,void 0,this):FQ.jsxDEV("option",{value:zJ.label,children:zJ.label},i,!1,void 0,this))]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:[FQ.jsxDEV("label",{className:"text-sm text-accent",children:"W:"},void 0,!1,void 0,this),FQ.jsxDEV("input",{value:b,onChange:(zJ)=>_(zJ.target.value),onBlur:a,onKeyDown:_J,className:`rounded border border-border bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":""}`,style:{width:`${Math.max(b.length*8+16,55)}px`},min:"60",step:"1",disabled:z,title:z?"Canvas resizing is locked during recording":"Canvas width"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:[FQ.jsxDEV("label",{className:"text-sm text-accent",children:"H:"},void 0,!1,void 0,this),FQ.jsxDEV("input",{value:y,onChange:(zJ)=>k(zJ.target.value),onBlur:DJ,onKeyDown:bJ,className:`rounded border border-border bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":""}`,style:{width:`${Math.max(y.length*8+16,55)}px`},min:"60",step:"1",disabled:z,title:z?"Canvas resizing is locked during recording":"Canvas height"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded border border-border bg-background/50",title:UJ?`Canvas: ${qJ} → Display: ${d} (scaled to ${SJ}%)`:`Canvas: ${qJ} = Display: ${d} (no scaling)`,style:{display:UJ?"flex":"none"},children:[FQ.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:UJ?"text-accent":"text-muted",children:[FQ.jsxDEV("circle",{cx:"11",cy:"11",r:"8"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"m21 21-4.3-4.3"},void 0,!1,void 0,this),FQ.jsxDEV("line",{x1:"11",y1:"8",x2:"11",y2:"14"},void 0,!1,void 0,this),FQ.jsxDEV("line",{x1:"8",y1:"11",x2:"14",y2:"11"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:FQ.jsxDEV("span",{className:`text-xs ${UJ?"text-accent":"text-muted"}`,children:[SJ,"%"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-1 h-[30px] rounded-lg border border-border bg-background px-3 py-2 text-sm text-text transition whitespace-nowrap ${z?"opacity-50 cursor-not-allowed":"hover:bg-muted/80"}`,onClick:j,disabled:z,title:z?"Canvas resizing is locked during recording":"Fit to screen",children:FQ.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[FQ.jsxDEV("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var d9=zQ(gZ(),1),jM=({onContainerReady:Z,controls:Y,exportWidget:K})=>{let[z,$]=$G.useState(null),F=$G.useCallback((B)=>{$(B),Z(B)},[Z]);return d9.jsxDEV(DM,{children:d9.jsxDEV("div",{className:"hyper-container flex flex-col items-center justify-center",children:[K&&K.enabled&&d9.jsxDEV(MM,{getContainer:()=>z,filename:K.filename,useCanvasCapture:K.useCanvasCapture},void 0,!1,void 0,this),d9.jsxDEV(IM,{},void 0,!1,void 0,this),d9.jsxDEV(BM,{onReady:F},void 0,!1,void 0,this),Y&&d9.jsxDEV(LM,{definitions:Y.definitions,options:Y.options,onChange:Y.onChange,onReady:Y.onReady},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};class OG{cssBridge=null;config;currentExperience=null;constructor(Z={}){this.config=Z,this.setupMessageHandlers()}setupMessageHandlers(){if(typeof window>"u")return;window.addEventListener("message",(Z)=>{let{type:Y,data:K}=Z.data||{};switch(Y){case"CAPTURE_SCREENSHOT":this.handleCaptureScreenshot(Z.data?.requestId);break;case"HYPERTOOL_SET_PARAMS":this.handleSetParams(K?.params);break;case"HYPERTOOL_GET_PARAMS":this.handleGetParams();break}})}handleCaptureScreenshot(Z){let Y=null;if(this.currentExperience)Y=this.currentExperience.mount.querySelector("canvas");if(!Y){let K=document.querySelectorAll("canvas");if(K.length>0){let z=K[0],$=z.width*z.height;K.forEach((F)=>{let B=F,j=B.width*B.height;if(j>$)z=B,$=j}),Y=z}}if(!Y){this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,noCanvas:!0,error:"No canvas found"});return}try{let K=this.createOptimizedThumbnail(Y,400,0.8);this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,dataUrl:K})}catch(K){this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,error:K instanceof Error?K.message:"Unknown error"})}}handleSetParams(Z){if(!Z||!this.currentExperience)return;this.currentExperience.setParams(Z)}handleGetParams(){let Z=this.currentExperience?.getParams()??{};this.sendToParent("HYPERTOOL_PARAMS_RESPONSE",{params:Z})}sendToParent(Z,Y){window.parent.postMessage({type:Z,...Y},"*")}notifyParamChange(Z){let Y={};for(let[K,z]of Object.entries(Z))if(z===null||typeof z==="string"||typeof z==="number"||typeof z==="boolean")Y[K]=z;else if(typeof z==="object")try{Y[K]=JSON.parse(JSON.stringify(z))}catch{}window.parent.postMessage({type:"HYPERTOOL_PARAMS_CHANGED",source:"hypertool-iframe",data:{params:Y}},"*")}createOptimizedThumbnail(Z,Y,K){let{width:z,height:$}=Z,F=z,B=$;if(z>Y){let _=Y/z;F=Y,B=Math.round($*_)}let j=document.createElement("canvas");j.width=F,j.height=B;let b=j.getContext("2d");if(!b)return Z.toDataURL("image/jpeg",K);return b.imageSmoothingEnabled=!0,b.imageSmoothingQuality="high",b.drawImage(Z,0,0,F,B),j.toDataURL("image/jpeg",K)}mirrorCss(){if(this.cssBridge)return;this.cssBridge=new $$({mirror:this.config.mirrorCss!==!1}),this.cssBridge.start()}async createSandbox(Z){if(this.config.mirrorCss!==!1&&Z.mirrorCss!==!1)this.mirrorCss();let Y=await this.createReactMount(Z),K=new u5({mount:Y.sandboxContainer,paramDefs:Z.controls?.definitions,autoplay:!0,setup:($)=>this.wrapUserSetup(Z.setup,$,Z)});if(this.currentExperience=K,K.on("paramChange",()=>{this.notifyParamChange(K.getParams())}),Z.controls?.definitions)this.wireControlsToExperience(K,Y);if(typeof globalThis.__hypertool_registerParams==="function")globalThis.__hypertool_registerParams(K.params);return this.notifyParamChange(K.getParams()),{container:Y.sandboxContainer,controls:null,params:K.params,destroy:()=>{K.destroy(),Y.destroy()}}}wrapUserSetup(Z,Y,K){let z={mount:Y.mount,params:Y.params,controls:null,exports:{registerImageCapture:()=>{},registerVideoCapture:()=>{},setFilename:Y.exports.setFilename,setVisible:()=>{},useDefaultCanvasCapture:()=>{},destroy:()=>{}},runtime:this,environment:{window:Y.environment.window,document:Y.environment.document,addCleanup:Y.environment.addCleanup,onResize:($,F)=>{Y.environment.window.addEventListener("resize",$,F);let B=()=>Y.environment.window.removeEventListener("resize",$,F);return Y.environment.addCleanup(B),B}}};return Z(z)}wireControlsToExperience(Z,Y){}async createReactMount(Z){let Y=Z.mount,K=OM({target:Y?.target,containerClassName:Y?.containerClassName}),z=NM.createRoot(K.element),$=Z.controls?.definitions?{definitions:Z.controls.definitions,options:Z.controls.options,onChange:(j)=>{if(this.currentExperience&&j?.key!==void 0)this.currentExperience.setParam(j.key,j.value);Z.controls?.onChange?.(j,{})},onReady:(j)=>{if(this.currentExperience){let b=j.params;this.currentExperience.setParams(b)}if(typeof globalThis.__hypertool_registerControls==="function")globalThis.__hypertool_registerControls(j)}}:null,B=await new Promise((j)=>{z.render(PM.default.createElement(jM,{onContainerReady:j,controls:$,exportWidget:{enabled:Z.exportWidget?.enabled!==!1,filename:Z.exportWidget?.filename,position:Z.exportWidget?.position,useCanvasCapture:Z.exportWidget?.useCanvasCapture!==!1}}))});if(typeof Y?.onReady==="function")Y.onReady({container:B});return{sandboxContainer:B,destroy:()=>{if(z.unmount(),K.createdInternally)K.element.remove()}}}}var Z_={mirrorCss:!0},LG=new OG(Z_);function X_(Z){return new OG(Z)}function wM(Z){return LG.createSandbox(Z)}function RM(){LG.mirrorCss()}if(typeof window<"u"){window.hypertoolControls={createControls:U$,createControlPanel:q$,HypertoolControls:u9,injectThemeVariables:M4,studioTheme:H4};let Z=window.hyperFrame||{};window.hyperFrame={...Z,version:"universal",runtime:LG,createSandbox:wM,mirrorCss:RM},K_()}var A4=null,WG=null;function Y_(Z){A4=Z}function G_(Z){WG=Z}if(typeof globalThis<"u")globalThis.__hypertool_registerParams=Y_,globalThis.__hypertool_registerControls=G_;function K_(){if(typeof window>"u")return;let Z={isRecording:!1,recorder:null,recordedChunks:[]};window.addEventListener("message",(B)=>{if(B.data?.source!=="hypertool-main")return;let{type:j}=B.data;switch(j){case"HYPERTOOL_CAPTURE_PNG":z();break;case"HYPERTOOL_START_RECORDING":$();break;case"HYPERTOOL_STOP_RECORDING":F();break;case"HYPERTOOL_GET_PARAMS":Y();break;case"HYPERTOOL_SET_PARAMS":K(B.data.data?.params);break}});function Y(){window.parent.postMessage({type:"HYPERTOOL_PARAMS_RESPONSE",data:{params:A4?{...A4}:{}}},"*")}function K(B){if(!B||typeof B!=="object"){console.warn("[Runtime] Invalid params received in SET_PARAMS");return}if(console.log("[Runtime] Received SET_PARAMS from parent:",Object.keys(B).length,"values"),A4){for(let[j,b]of Object.entries(B))if(b!==void 0)A4[j]=b}if(WG){for(let[j,b]of Object.entries(B))if(b!==void 0)try{WG.set(j,b)}catch(_){}WG.refresh(),console.log("[Runtime] Controls updated with saved values")}}function z(){let B=document.querySelector("canvas");if(B)B.toBlob((j)=>{if(j)window.parent.postMessage({type:"HYPERTOOL_CAPTURE_RESPONSE",data:{blob:j,filename:"hypertool-capture.png"}},"*")},"image/png");else console.warn("No canvas found for capture")}function $(){console.log("Starting recording...");let B=document.querySelector("canvas");if(B&&typeof B.captureStream==="function"){let j=B.captureStream(60),b=new MediaRecorder(j,{mimeType:"video/webm;codecs=vp9"});Z.recordedChunks=[],b.ondataavailable=(_)=>{if(_.data.size>0)Z.recordedChunks.push(_.data),console.log("Recording data available:",_.data.size,"bytes")},b.onstop=()=>{console.log("Recording stopped, processing...");let _=new Blob(Z.recordedChunks,{type:"video/webm"});console.log("Recording blob size:",_.size,"bytes"),window.parent.postMessage({type:"HYPERTOOL_RECORDING_RESPONSE",data:{blob:_,filename:"hypertool-recording.webm"}},"*"),Z.isRecording=!1,Z.recorder=null},b.start(),Z.recorder=b,Z.isRecording=!0,console.log("Recording started successfully")}else console.warn("Canvas not found or captureStream not supported")}function F(){if(console.log("Stopping recording..."),Z.recorder)Z.recorder.stop(),window.parent.postMessage({type:"HYPERTOOL_RECORDING_STOPPED",data:{}},"*"),console.log("Stop recording message sent");else console.warn("No active recorder to stop")}}export{H4 as studioTheme,LG as runtime,Y_ as registerSandboxParams,G_ as registerControlsInstance,RM as mirrorCss,M4 as injectThemeVariables,wM as createSandbox,U$ as createControls,q$ as createControlPanel,X_ as configureRuntime,f5 as ParamStore,v5 as ObjectRegistry,u9 as HypertoolControls,g5 as ExperienceController,u5 as Experience,c1 as EventEmitter};
|
|
197
|
+
`,document.head.appendChild(Z)}class u9{constructor(Z,Y={}){this.pane=null,this.definitions=Z,this.options={title:Y.title||"Controls",position:Y.position||"top-right",expanded:Y.expanded!==void 0?Y.expanded:!0,container:Y.container!==void 0?Y.container:null,onChange:Y.onChange||(()=>{}),onReady:Y.onReady||(()=>{})},this.params=this.extractInitialValues(Z),this.init()}isFolder(Z){return Z&&typeof Z==="object"&&(Z.type==="folder"||Z.type==="group")}isButton(Z){return Z&&typeof Z==="object"&&Z.type==="button"}isTab(Z){return Z&&typeof Z==="object"&&Z.type==="tab"}isFile(Z){return Z&&typeof Z==="object"&&Z.type==="file"}extractInitialValues(Z){let Y={};for(let[K,z]of Object.entries(Z)){let $=z;if(this.isFolder($))Y[K]=this.extractInitialValues($.controls);else if(this.isTab($))Y[K]=$.pages.map((F)=>this.extractInitialValues(F.controls));else if(this.isButton($))continue;else Y[K]=$.value}return Y}async init(){try{M4(),await new Promise((Z)=>setTimeout(Z,50)),this.createPane(),this.addControls(),this.options.onReady()}catch(Z){console.error("[HypertoolControls] Initialization error:",Z)}}createPane(){let Z=this.resolveContainer(),Y={title:this.options.title,expanded:this.options.expanded};if(Z)Y.container=Z;this.pane=new K$(Y),this.pane.element.parentElement?.classList.add("controls-container")}resolveContainer(){if(typeof document>"u")return null;let Z=this.options.container;if(!Z)return null;if(Z instanceof HTMLElement)return Z;let Y=document.querySelector(Z);if(!Y)return console.warn(`[HypertoolControls] Container selector "${Z}" did not match any elements`),null;return Y}addControls(){if(!this.pane)return;this.addControlsToTarget(this.pane,this.definitions,this.params)}addControlsToTarget(Z,Y,K){for(let[z,$]of Object.entries(Y))try{if(this.isFolder($)){let F={title:$.label||z};if($.expanded!==void 0)F.expanded=$.expanded;let B=Z.addFolder(F);this.addControlsToTarget(B,$.controls,K[z])}else if(this.isButton($)){let F={title:$.title};if($.label)F.label=$.label;let B=Z.addButton(F);if($.onClick)B.on("click",$.onClick)}else if(this.isTab($)){let F={pages:$.pages.map((j)=>({title:j.title}))},B=Z.addTab(F);$.pages.forEach((j,b)=>{this.addControlsToTarget(B.pages[b],j.controls,K[z][b])})}else if(this.isFile($))this.addFileControl(Z,z,$,K);else this.addControlToTarget(Z,z,$,K)}catch(F){console.error(`[HypertoolControls] Error adding control/folder/button/tab "${z}":`,F)}}addControlToTarget(Z,Y,K,z){if(this.isFolder(K))return;let $={label:K.label||Y};if(K.readonly!==void 0)$.readonly=K.readonly;if(K.interval!==void 0)$.interval=K.interval;if(K.bufferSize!==void 0)$.bufferSize=K.bufferSize;if(K.multiline!==void 0)$.multiline=K.multiline;if(K.rows!==void 0)$.rows=K.rows;if(K.view!==void 0)$.view=K.view;switch(K.type){case"number":if(K.min!==void 0)$.min=K.min;if(K.max!==void 0)$.max=K.max;if(K.step!==void 0)$.step=K.step;break;case"point":case"point2d":case"point3d":case"point4d":if(K.min!==void 0)$.min=K.min;if(K.max!==void 0)$.max=K.max;if(K.step!==void 0)$.step=K.step;let B=["x","y","z","w"];for(let j of B)if(K[j]&&typeof K[j]==="object")$[j]=K[j];break;case"select":case"selector":if(Array.isArray(K.options))$.options=K.options.map((j)=>{if(typeof j==="object"&&j!==null)return{text:j.label||j.text||String(j.value),value:j.value};return{text:String(j),value:j}});else $.options=Object.entries(K.options).map(([j,b])=>({text:j,value:b}));break;case"color":case"boolean":case"string":case"text":break;case"folder":case"group":console.warn("[HypertoolControls] Folder/Group encountered in addControlToTarget (should be handled earlier)");return;case"button":console.warn("[HypertoolControls] Button encountered in addControlToTarget (should be handled earlier)");return;case"tab":console.warn("[HypertoolControls] Tab encountered in addControlToTarget (should be handled earlier)");return;default:console.warn(`[HypertoolControls] Unknown control type: ${K.type}`);return}Z.addBinding(z,Y,$).on("change",(B)=>{z[Y]=B.value;let j={key:Y,value:B.value,event:B};this.options.onChange(this.values,j)})}addFileControl(Z,Y,K,z){let $=K.label||Y,F=K.accept||"*/*",B=K.placeholder||"Choose file...",j=K.preview!==!1,b=document.createElement("div");b.className="tp-lblv ht-file-control-row";let T=document.createElement("div");T.className="tp-lblv_l ht-file-control-label",T.textContent=$;let y=document.createElement("div");y.className="tp-lblv_v ht-file-control-value";let k=document.createElement("input");k.type="file",k.accept=F,k.style.display="none";let a=document.createElement("div");a.className="ht-file-control-buttons";let DJ=document.createElement("button");DJ.className="tp-btnv_b ht-file-control-button",DJ.textContent=z[Y]?"Change":"Upload",DJ.style.display=z[Y]?"none":"inline-flex";let TJ=document.createElement("button");TJ.className="tp-btnv_b ht-file-control-button ht-file-control-button--muted",TJ.textContent="✕",TJ.style.display="none";let bJ=document.createElement("div");bJ.className="ht-file-control-preview",bJ.style.display=z[Y]&&j?"block":"none";let CJ=document.createElement("div");CJ.className="ht-file-control-preview-bar";let g=document.createElement("span");g.className="ht-file-control-preview-name",g.textContent=z[Y]?"File":"No file selected";let KJ=document.createElement("div");KJ.className="ht-file-control-preview-actions";let c=document.createElement("button");c.type="button",c.className="ht-file-control-preview-action",c.title="Replace file",c.textContent="↻",c.onclick=(i)=>{i.preventDefault(),k.click()};let qJ=document.createElement("button");qJ.type="button",qJ.className="ht-file-control-preview-action",qJ.title="Remove file",qJ.textContent="✕",qJ.onclick=(i)=>{i.preventDefault(),TJ.click()},KJ.appendChild(c),KJ.appendChild(qJ),CJ.appendChild(g),CJ.appendChild(KJ);let d=document.createElement("img");d.className="ht-file-control-preview-img";let UJ=document.createElement("div");UJ.className="ht-file-control-placeholder",UJ.style.display="none",k.onchange=async()=>{let i=k.files?.[0];if(!i)return;if(K.maxSize&&i.size>K.maxSize){console.warn(`[HypertoolControls] File size exceeds limit: ${i.size} > ${K.maxSize}`);return}DJ.textContent="Uploading...",DJ.disabled=!0;let $J=`file-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`,LJ=new Promise((_J)=>{let QJ=(AJ)=>{if(AJ.data?.type!=="UPLOAD_CONTROL_FILE_RESULT")return;if(AJ.data?.requestId!==$J)return;if(window.removeEventListener("message",QJ),AJ.data.error)console.error("[HypertoolControls] File upload failed:",AJ.data.error),_J(null);else _J({url:AJ.data.url,originalUrl:AJ.data.originalUrl||AJ.data.url})};window.addEventListener("message",QJ),setTimeout(()=>{window.removeEventListener("message",QJ),console.warn("[HypertoolControls] File upload timed out"),_J(null)},30000)}),JJ=null;if(j&&i.type.startsWith("image/")){let _J=new FileReader;_J.onload=(QJ)=>{JJ=QJ.target?.result},_J.readAsDataURL(i)}let YJ=new FileReader;YJ.onload=async(_J)=>{let QJ=_J.target?.result;window.parent.postMessage({type:"UPLOAD_CONTROL_FILE",source:"hypertool-iframe",requestId:$J,data:{fileName:i.name,fileType:i.type,fileSize:i.size,fileData:QJ,controlKey:Y}},"*",[QJ]);let AJ=await LJ;if(DJ.disabled=!1,AJ){if(z[Y]=AJ.url,DJ.textContent="Change",DJ.style.display="none",g.textContent=i.name||"File",j&&i.type.startsWith("image/")&&JJ)UJ.style.display="none",d.src=JJ,bJ.style.display="flex";let BQ={key:Y,value:AJ.originalUrl,event:{value:AJ.originalUrl,proxyUrl:AJ.url,file:i}};this.options.onChange(this.values,BQ)}else DJ.textContent=z[Y]?"Change":"Upload",console.error("[HypertoolControls] Failed to upload file to storage")},YJ.readAsArrayBuffer(i)},DJ.onclick=()=>{k.click()},TJ.onclick=()=>{z[Y]=null,k.value="",DJ.textContent="Upload",DJ.style.display="inline-flex",TJ.style.display="none",bJ.style.display="none",UJ.style.display="none",g.textContent="No file selected";let i={key:Y,value:null,event:{value:null}};this.options.onChange(this.values,i)},a.appendChild(DJ),a.appendChild(TJ),bJ.appendChild(d),bJ.appendChild(CJ),y.appendChild(k),y.appendChild(a),y.appendChild(UJ),y.appendChild(bJ),b.appendChild(T),b.appendChild(y);let SJ=Z.element;(SJ.querySelector(".tp-rotv_c")||SJ).appendChild(b)}addFolder(Z){if(!this.pane)return null;return this.pane.addFolder({title:Z})}set(Z,Y){if(Z in this.params){if(this.params[Z]=Y,this.pane)this.pane.refresh()}}get values(){return{...this.params}}destroy(){if(this.pane)this.pane.dispose(),this.pane=null;let Z=document.getElementById("hypertool-theme");if(Z)Z.remove()}setVisible(Z){if(!this.pane)return;this.pane.element.style.display=Z?"block":"none"}refresh(){if(this.pane)this.pane.refresh()}}function U$(Z,Y){return new u9(Z,Y).params}function q$(Z,Y){return new u9(Z,Y)}var PM=zQ(G8(),1),NM=zQ($M(),1);var z$=new Set(["STYLE","LINK"]);class $${source;target;observer=null;nodeMap=new WeakMap;active=!1;messageListener=null;usePostMessage=!1;cssNodesById=new Map;constructor(Z={}){let Y=null;if(Z.sourceDocument)Y=Z.sourceDocument;else if(typeof window<"u")try{Y=window.parent?.document??null}catch(K){console.debug("[hyper-frame] Using postMessage for CSS sync (cross-origin)"),this.usePostMessage=!0,Y=null}this.source=Y,this.target=Z.targetDocument??(typeof document<"u"?document:null),this.active=Boolean(Z.mirror??!0)}start(){if(!this.active)return;if(this.usePostMessage)this.startPostMessageMode();else if(this.source&&this.target)this.cleanupPreviousClones(),this.syncAll(),this.attachObserver();else console.warn("[hyper-frame] Unable to mirror CSS – missing source or target document.")}stop(){if(this.observer?.disconnect(),this.observer=null,this.nodeMap=new WeakMap,this.cleanupPreviousClones(),this.messageListener&&typeof window<"u")window.removeEventListener("message",this.messageListener),this.messageListener=null;this.cssNodesById.clear()}startPostMessageMode(){if(!this.target||typeof window>"u")return;this.cleanupPreviousClones(),this.messageListener=(Z)=>{if(!Z.data||Z.data.type!=="hyper-frame:css-sync")return;this.handleCssMessage(Z.data)},window.addEventListener("message",this.messageListener),console.debug("[hyper-frame] CSS postMessage receiver ready")}handleCssMessage(Z){if(!this.target)return;switch(Z.action){case"init":this.cleanupPreviousClones(),this.cssNodesById.clear();break;case"add":if(Z.id&&Z.tagName)this.addCssNode(Z.id,Z.tagName,Z.attributes,Z.textContent);break;case"remove":if(Z.id)this.removeCssNode(Z.id);break;case"update":if(Z.id)this.updateCssNode(Z.id,Z.attributes,Z.textContent);break}}addCssNode(Z,Y,K,z){if(!this.target)return;if(this.cssNodesById.has(Z))return;let $=document.createElement(Y);if($.setAttribute("data-hyper-frame-clone","true"),$.setAttribute("data-css-id",Z),K)for(let[F,B]of Object.entries(K))$.setAttribute(F,B);if(z)$.textContent=z;this.target.head.appendChild($),this.cssNodesById.set(Z,$)}removeCssNode(Z){let Y=this.cssNodesById.get(Z);if(Y&&Y.parentNode)Y.parentNode.removeChild(Y),this.cssNodesById.delete(Z)}updateCssNode(Z,Y,K){let z=this.cssNodesById.get(Z);if(!z)return;if(Y){for(let $ of Array.from(z.attributes))if(!$.name.startsWith("data-"))z.removeAttribute($.name);for(let[$,F]of Object.entries(Y))z.setAttribute($,F)}if(K!==void 0)z.textContent=K}cleanupPreviousClones(){if(!this.target)return;this.target.querySelectorAll('[data-hyper-frame-clone="true"]').forEach((Z)=>Z.parentNode?.removeChild(Z))}async syncAll(){if(!this.source||!this.target)return;let Z=this.source.head,Y=Array.from(Z.children).filter((K)=>z$.has(K.nodeName));for(let K of Y){let z=await this.cloneNode(K);if(!z)continue;this.target?.head.appendChild(z),this.nodeMap.set(K,z)}}attachObserver(){if(!this.source||!this.target)return;if(this.observer)return;this.observer=new MutationObserver((Z)=>{Z.forEach((Y)=>{switch(Y.type){case"childList":this.handleChildListMutation(Y);break;case"characterData":this.handleCharacterDataMutation(Y);break;case"attributes":this.handleAttributeMutation(Y);break}})}),this.observer.observe(this.source.head,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}handleChildListMutation(Z){if(!this.target)return;Z.removedNodes.forEach((Y)=>{let K=this.nodeMap.get(Y);if(K&&K.parentNode)K.parentNode.removeChild(K),this.nodeMap.delete(Y)}),Z.addedNodes.forEach(async(Y)=>{if(!(Y instanceof HTMLElement))return;if(!z$.has(Y.nodeName))return;try{let K=await this.cloneNode(Y);if(!K)return;let z=Z.nextSibling?this.nodeMap.get(Z.nextSibling):null;if(z&&z.parentNode)z.parentNode.insertBefore(K,z);else this.target?.head.appendChild(K);this.nodeMap.set(Y,K)}catch(K){console.error("[CssBridge] Failed to clone node:",K)}})}handleCharacterDataMutation(Z){let K=Z.target.parentNode;if(!K)return;let z=this.nodeMap.get(K);if(!z)return;z.textContent=K.textContent}handleAttributeMutation(Z){let Y=Z.target,K=this.nodeMap.get(Y);if(!K||!(K instanceof Element))return;if(Z.attributeName){let z=Y.getAttribute(Z.attributeName);if(z===null)K.removeAttribute(Z.attributeName);else K.setAttribute(Z.attributeName,z)}}async cloneNode(Z){if(!(Z instanceof HTMLElement))return null;if(!z$.has(Z.nodeName))return null;if(Z.nodeName==="LINK"&&Z instanceof HTMLLinkElement){let K=Z.getAttribute("href"),z=Z.getAttribute("rel");if(K){if(z==="stylesheet")try{let F=await this.fetchCssContent(K),B=document.createElement("STYLE");return B.textContent=F,B.setAttribute("data-hyper-frame-clone","true"),B}catch(F){console.error(`[CssBridge] Failed to fetch CSS from ${K}:`,F)}let $=Z.cloneNode(!0);try{let F=this.source?new URL(this.source.location.href):new URL(window.location.href),B=new URL(K,F).href;$.setAttribute("href",B)}catch(F){console.error(`[CssBridge] Failed to convert URL to absolute: ${K}`,F)}return $.setAttribute("data-hyper-frame-clone","true"),$}}let Y=Z.cloneNode(!0);return Y.setAttribute("data-hyper-frame-clone","true"),Y}async fetchCssContent(Z){let Y=this.source?new URL(this.source.location.href):new URL(window.location.href),K=new URL(Z,Y).href,z=await fetch(K);if(!z.ok)throw Error(`HTTP ${z.status}: ${z.statusText}`);return await z.text()}}function OM(Z={}){let Y=Z.documentRef??document;if(!Y)throw Error("[hyper-frame] document is not available");let K=Z.containerClassName||"hyper-frame",z=Z.target;if(z instanceof HTMLElement)return z.classList.add(K),{element:z,createdInternally:!1};if(typeof z==="string"&&z.trim().length>0){let F=Y.querySelector(z);if(F)return F.classList.add(K),{element:F,createdInternally:!1};console.warn(`[hyper-frame] Could not find container for selector "${z}", creating one instead.`)}let $=Y.createElement("div");return $.classList.add(K),$.classList.add("hyper-frame-container"),Y.body.appendChild($),{element:$,createdInternally:!0}}var $G=zQ(G8(),1);var NQ=zQ(G8(),1),b7=zQ(gZ(),1),LM=({definitions:Z,options:Y,onChange:K,onReady:z})=>{let $=NQ.useRef(null),F=NQ.useRef(null),B=NQ.useRef(null),j=NQ.useRef(null),b=NQ.useRef(z),[T,y]=NQ.useState(!1),[k,a]=NQ.useState(!1),[DJ,TJ]=NQ.useState(!1),bJ=NQ.useMemo(()=>{let d=[{type:"number",label:"Number",description:"Slider with min/max/step"},{type:"color",label:"Color",description:"Color picker"},{type:"boolean",label:"Toggle",description:"On/off switch"},{type:"string",label:"Text",description:"Single-line string"},{type:"text",label:"Textarea",description:"Multiline string"},{type:"select",label:"Select",description:"Dropdown options"},{type:"point2d",label:"Point 2D",description:"Vector {x,y}"},{type:"point3d",label:"Point 3D",description:"Vector {x,y,z}"},{type:"file",label:"File",description:"Upload image/audio/etc"}],UJ=Y?.controlTypes;if(!UJ||UJ.length===0)return d;return d.filter((SJ)=>UJ.includes(SJ.type))},[Y?.controlTypes]),CJ=NQ.useCallback(()=>y(!1),[]),g=NQ.useCallback(()=>{let d=$.current,UJ=F.current;if(!d||!UJ)return;let SJ=d.getBoundingClientRect(),zJ=window.innerHeight-SJ.top-12,i=UJ.scrollHeight;TJ(i>zJ)},[]);NQ.useEffect(()=>{let d=(UJ)=>{if(!(UJ.target instanceof HTMLElement))return;if(!UJ.target.closest(".hyper-frame-controls-panel"))CJ()};if(T)document.addEventListener("click",d);return()=>{document.removeEventListener("click",d)}},[T,CJ]),NQ.useEffect(()=>{g()},[T,g,bJ.length]),NQ.useEffect(()=>{let d=()=>g();return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[g]);let KJ=NQ.useCallback((d)=>{let UJ=Math.random().toString(36).slice(2,6);return`${d}-control-${UJ}`},[]),c=NQ.useCallback((d,UJ)=>{return[`Add a new ${d} control named "${UJ}" to the existing controls definitions.`,"Do NOT regenerate files; only patch the controls definitions object.",`Use sensible defaults for ${d} (e.g., 0/1 for numbers, "#00ff88" for colors).`,"Return a search-replace JSON patch that only touches the controls definitions section.","Keep all other code intact."].join(" ")},[]),qJ=NQ.useCallback((d)=>{let UJ=KJ(d),SJ=c(d,UJ),zJ={source:"hypertool-controls",type:"ADD_CONTROL_REQUEST",controlType:d,name:UJ,prompt:SJ,timestamp:Date.now()};if(Y?.onAddControlRequest);if(Y?.onAddControlRequest?.({type:d,name:UJ,prompt:SJ}),window.dispatchEvent(new CustomEvent("hypertool:add-control-request",{detail:zJ})),window.parent&&window.parent!==window)window.parent.postMessage(zJ,"*")},[c,KJ,Y]);return NQ.useEffect(()=>{b.current=z},[z]),NQ.useEffect(()=>{let d=(UJ)=>{let SJ=UJ;if(!SJ.detail||typeof SJ.detail.loading!=="boolean")return;a(Boolean(SJ.detail.loading))};return window.addEventListener("hypertool:add-control-status",d),()=>{window.removeEventListener("hypertool:add-control-status",d)}},[]),NQ.useEffect(()=>{if(!B.current)return;let d=()=>g(),UJ=()=>g(),SJ=null,zJ=window;if(!zJ.hypertoolControls){console.warn("[ControlsPanel] hypertoolControls not available on window");return}try{let i=zJ.hypertoolControls.createControlPanel(Z,{title:Y?.title,position:Y?.position,expanded:Y?.expanded,container:B.current,onChange:($J,LJ)=>{if(K)K({key:LJ.key,value:LJ.value,event:LJ.event})}});if(j.current=i,SJ=document.querySelector(".hyper-frame-controls-panel__add-btn"),SJ?.addEventListener("click",d),window.addEventListener("resize",UJ),g(),b.current)b.current(i)}catch(i){console.error("[ControlsPanel] Failed to create controls:",i)}return()=>{if(j.current){if(typeof j.current.dispose==="function")j.current.dispose();else if(typeof j.current.destroy==="function")j.current.destroy();j.current=null}SJ?.removeEventListener("click",d),window.removeEventListener("resize",UJ)}},[Z,Y,K]),b7.jsxDEV("div",{className:"hyper-frame-controls-panel",ref:$,children:b7.jsxDEV("div",{ref:F,className:DJ?"hyper-frame-controls-panel__scroll hyper-frame-controls-panel__scroll--overflow":"hyper-frame-controls-panel__scroll",children:[b7.jsxDEV("div",{ref:B,className:"hyper-frame-controls-panel__pane"},void 0,!1,void 0,this),Y?.showAddControlActions!==!1&&bJ.length>0&&b7.jsxDEV("div",{className:"hyper-frame-controls-panel__actions",children:[b7.jsxDEV("button",{type:"button",className:"hyper-frame-controls-panel__add-btn",onClick:()=>y((d)=>!d),"aria-expanded":T,"aria-haspopup":"true",disabled:k,children:[k?b7.jsxDEV("span",{className:"hyper-frame-controls-panel__spinner"},void 0,!1,void 0,this):"+",b7.jsxDEV("span",{children:k?"Adding…":"Add control"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T&&b7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu",role:"menu",children:bJ.map((d)=>b7.jsxDEV("button",{className:"hyper-frame-controls-panel__menu-item",onClick:()=>{a(!0),qJ(d.type),CJ()},role:"menuitem",children:[b7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu-title",children:[d.label,": "]},void 0,!0,void 0,this),b7.jsxDEV("div",{className:"hyper-frame-controls-panel__menu-desc",children:d.description},void 0,!1,void 0,this)]},d.type,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var dZ=zQ(G8(),1);var wQ=zQ(G8(),1),HM=zQ(gZ(),1),WM=wQ.createContext(null),zG=()=>{let{innerWidth:Z,innerHeight:Y}=window;return{width:Math.max(100,Math.round(Z)),height:Math.max(100,Math.round(Y))}},DM=({children:Z})=>{let Y=wQ.useMemo(()=>{let $J=zG(),LJ=window.devicePixelRatio||1,JJ=Math.round($J.width*LJ),YJ=Math.round($J.height*LJ);return{canvasWidth:Math.max(100,Math.round(JJ*0.9)),canvasHeight:Math.max(100,Math.round(YJ*0.9)),maxWidth:JJ,maxHeight:YJ}},[]),[K,z]=wQ.useState(Y.canvasWidth),[$,F]=wQ.useState(Y.canvasHeight),[B,j]=wQ.useState(Y.maxWidth),[b,T]=wQ.useState(Y.maxHeight),[y,k]=wQ.useState(!1),[a,DJ]=wQ.useState(!1),[TJ,bJ]=wQ.useState(null),[CJ,g]=wQ.useState(null),KJ=wQ.useMemo(()=>{let $J=window.devicePixelRatio||1,LJ=K/$J,JJ=$/$J;if(LJ===0||JJ===0)return 1;let YJ=B/$J,_J=b/$J,QJ=YJ/LJ,AJ=_J/JJ;return Math.min(QJ,AJ,1)},[K,$,B,b]);wQ.useEffect(()=>{let $J=()=>{let LJ=zG(),JJ=window.devicePixelRatio||1,YJ=Math.round(LJ.width*JJ),_J=Math.round(LJ.height*JJ);if(j(YJ),T(_J),y)z(YJ),F(_J);else if(TJ!==null){let QJ,AJ;if(YJ/_J>TJ)AJ=_J,QJ=Math.round(AJ*TJ);else QJ=YJ,AJ=Math.round(QJ/TJ);z(QJ),F(AJ)}};return window.addEventListener("resize",$J),()=>window.removeEventListener("resize",$J)},[y,TJ]);let c=wQ.useCallback(($J)=>{let LJ=Math.max(100,Math.round($J));z(LJ),k(!1),bJ(null)},[]),qJ=wQ.useCallback(($J)=>{let LJ=Math.max(100,Math.round($J));F(LJ),k(!1),bJ(null)},[]),d=wQ.useCallback(($J,LJ)=>{let JJ=Math.max(100,Math.round($J)),YJ=Math.max(100,Math.round(LJ));z(JJ),F(YJ),k(!1),bJ(null)},[]),UJ=wQ.useCallback(($J,LJ)=>{let JJ=zG(),YJ=window.devicePixelRatio||1,_J=$J/LJ,QJ=Math.round(JJ.width*YJ),AJ=Math.round(JJ.height*YJ),BQ,vQ;if(QJ/AJ>_J)vQ=AJ,BQ=Math.round(vQ*_J);else BQ=QJ,vQ=Math.round(BQ/_J);z(BQ),F(vQ),bJ(_J),k(!1)},[]),SJ=wQ.useCallback(($J)=>{let{width:LJ,height:JJ}=$J;if(LJ>0&&JJ>0)console.log("[CanvasContext] Syncing with actual canvas:",{actual:{width:LJ,height:JJ},current:{width:K,height:$}}),z(LJ),F(JJ),k(!1),bJ(null)},[K,$]),zJ=wQ.useCallback(()=>{if(y&&CJ)z(CJ.width),F(CJ.height),k(!1),g(null);else{g({width:K,height:$});let $J=zG(),LJ=window.devicePixelRatio||1,JJ=Math.round($J.width*LJ),YJ=Math.round($J.height*LJ);z(JJ),F(YJ),bJ(null),k(!0)}},[y,CJ,K,$]),i={canvasWidth:K,canvasHeight:$,maxCanvasWidth:B,maxCanvasHeight:b,scale:KJ,isFittedToScreen:y,isRecording:a,setIsRecording:DJ,setCanvasWidth:c,setCanvasHeight:qJ,setCanvasSize:d,setAspectRatio:UJ,syncWithCanvas:SJ,fitToScreen:zJ};return HM.jsxDEV(WM.Provider,{value:i,children:Z},void 0,!1,void 0,this)},oX=()=>{let Z=wQ.useContext(WM);if(!Z)throw Error("useCanvas must be used within a CanvasProvider");return Z};var A7=zQ(gZ(),1),MM=({getContainer:Z,filename:Y="hyperframe-export",useCanvasCapture:K=!0})=>{let{setIsRecording:z}=oX(),[$,F]=dZ.useState(!1),[B,j]=dZ.useState(!1),[b,T]=dZ.useState(!1),y=dZ.useRef(null),k=dZ.useRef([]);dZ.useEffect(()=>{let g=()=>{let c=Z();if(c&&K){if(c.querySelector("canvas"))return F(!0),j(!0),!0}return!1};if(g())return;let KJ=setInterval(()=>{if(g())clearInterval(KJ)},100);return()=>clearInterval(KJ)},[Z,K]);let a=dZ.useCallback((g,KJ)=>{let c=URL.createObjectURL(g),qJ=document.createElement("a");qJ.href=c,qJ.download=KJ,qJ.rel="noopener",qJ.style.display="none",document.body.appendChild(qJ),qJ.click(),document.body.removeChild(qJ),URL.revokeObjectURL(c)},[]),DJ=dZ.useCallback(async()=>{try{let g=Z();if(!g)throw Error("Container not available.");let KJ=g.querySelector("canvas");if(!KJ||!(KJ instanceof HTMLCanvasElement))throw Error("No canvas element available for capture.");let c=await new Promise((qJ,d)=>{KJ.toBlob((UJ)=>{if(UJ)qJ(UJ);else d(Error("Canvas capture returned an empty blob."))})});if(c)a(c,`${Y}.png`),console.log("PNG captured")}catch(g){console.error("[ExportWidget] Failed to capture image:",g)}},[Z,Y,a]),TJ=dZ.useCallback(()=>{if(!y.current){console.warn("[ExportWidget] No active recorder to stop");return}console.log("Stopping recording"),y.current.stop()},[]),bJ=dZ.useCallback(async()=>{try{let g=Z();if(!g)throw Error("Container not available.");let KJ=g.querySelector("canvas");if(!KJ||!(KJ instanceof HTMLCanvasElement))throw Error("No canvas element available for recording.");if(typeof KJ.captureStream!=="function")throw Error("Canvas captureStream API is not supported in this browser.");let c=KJ.captureStream(60),d=[{mimeType:"video/mp4;codecs=avc1",extension:"mp4"},{mimeType:"video/mp4;codecs=h264",extension:"mp4"},{mimeType:"video/mp4;codecs=avc1.42E01E",extension:"mp4"},{mimeType:"video/mp4",extension:"mp4"},{mimeType:"video/webm;codecs=h264",extension:"webm"},{mimeType:"video/webm;codecs=vp9",extension:"webm"},{mimeType:"video/webm;codecs=vp8",extension:"webm"},{mimeType:"video/webm",extension:"webm"}].find((i)=>MediaRecorder.isTypeSupported(i.mimeType));if(!d)d={mimeType:"",extension:"webm"};console.log("[ExportWidget] Using video format:",d.mimeType||"browser default");let UJ={videoBitsPerSecond:5000000};if(d.mimeType)UJ.mimeType=d.mimeType;let SJ=new MediaRecorder(c,UJ),zJ=[];k.current=zJ,SJ.addEventListener("dataavailable",(i)=>{if(i.data?.size)zJ.push(i.data)}),SJ.addEventListener("stop",()=>{let i=d.mimeType||SJ.mimeType||"video/webm",$J=new Blob(zJ,{type:i});console.log("[ExportWidget] Recording complete:",{size:$J.size,type:$J.type,chunks:zJ.length}),a($J,`${Y}.${d.extension}`),c.getTracks().forEach((LJ)=>LJ.stop()),T(!1),z(!1),y.current=null,k.current=[]}),SJ.start(),y.current=SJ,T(!0),z(!0),console.log("Recording started")}catch(g){console.error("[ExportWidget] Failed to start recording:",g),T(!1),z(!1),y.current=null}},[Z,Y,a,z]),CJ=dZ.useCallback(async()=>{if(b)TJ();else await bJ()},[b,TJ,bJ]);return A7.jsxDEV("div",{className:"export-widget-container absolute top-0 left-0 py-2 px-2 z-[9999]",children:A7.jsxDEV("div",{className:"flex items-center gap-2",children:[A7.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-2 rounded-lg border border-border bg-background px-2 py-1 text-sm text-text transition hover:bg-muted/80 whitespace-nowrap ${!$?"opacity-60 cursor-not-allowed":""}`,onClick:DJ,disabled:!$,title:"Screenshot",children:[A7.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[A7.jsxDEV("path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"},void 0,!1,void 0,this),A7.jsxDEV("circle",{cx:"12",cy:"13",r:"3"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("span",{children:"Screenshot"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-2 rounded-lg border transition hover:bg-muted/80 whitespace-nowrap px-2 py-1 text-sm ${b?"bg-red-500/20 text-red-400 border-red-500/30":"bg-background text-text border-border"} ${!B?"opacity-60 cursor-not-allowed":""}`,onClick:CJ,disabled:!B,title:b?"Stop Recording":"Record Video",children:[A7.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[A7.jsxDEV("path",{d:"m22 8-6 4 6 4V8Z"},void 0,!1,void 0,this),A7.jsxDEV("rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",ry:"2"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A7.jsxDEV("span",{children:b?"Stop":"Rec"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var UX=zQ(G8(),1);var y7=zQ(G8(),1);var Q7=zQ(gZ(),1),FM=({canvasWidth:Z,canvasHeight:Y,scale:K,onResize:z})=>{let{isRecording:$}=oX(),[F,B]=y7.useState(!1),[j,b]=y7.useState(null),[T,y]=y7.useState({x:0,y:0}),[k,a]=y7.useState({width:0,height:0}),DJ=window.devicePixelRatio||1,TJ=y7.useRef(K),bJ=1;y7.useEffect(()=>{TJ.current=K},[K]);let CJ=y7.useCallback((KJ,c)=>{if($)return;c.preventDefault(),c.stopPropagation(),B(!0),b(KJ),y({x:c.clientX,y:c.clientY}),a({width:Z,height:Y})},[Z,Y,$]);y7.useEffect(()=>{if(!F||!j)return;let KJ=(d)=>{let UJ=d.clientX-T.x,SJ=d.clientY-T.y,zJ=TJ.current||1,i=j.length===2,$J=j==="e"||j==="w",LJ=j==="n"||j==="s",JJ=k.width,YJ=k.height,_J=j.includes("e")?UJ*DJ/zJ:j.includes("w")?-UJ*DJ/zJ:0,QJ=j.includes("s")?SJ*DJ/zJ:j.includes("n")?-SJ*DJ/zJ:0;if(JJ=k.width+_J,YJ=k.height+QJ,d.shiftKey){let AJ=Math.max(1,k.width),BQ=Math.max(1,k.height),vQ=_J/AJ,mZ=QJ/BQ,cQ=($Q,uQ)=>{if(!Number.isFinite($Q)||$Q<=0)return 1/uQ;return $Q};if($J&&!LJ){let $Q=cQ(1+vQ,AJ);JJ=AJ*$Q,YJ=BQ*$Q}else if(LJ&&!$J){let $Q=cQ(1+mZ,BQ);JJ=AJ*$Q,YJ=BQ*$Q}else if(i){let $Q=Math.abs(vQ)>=Math.abs(mZ),uQ=$Q?vQ:mZ,cZ=$Q?AJ:BQ,Z7=cQ(1+uQ,cZ);JJ=AJ*Z7,YJ=BQ*Z7}}JJ=Math.max(1,JJ),YJ=Math.max(1,YJ),z(JJ,YJ)},c=()=>{B(!1),b(null)},qJ=()=>{B(!1),b(null)};return document.addEventListener("mousemove",KJ),document.addEventListener("mouseup",c),document.addEventListener("mouseleave",qJ),()=>{document.removeEventListener("mousemove",KJ),document.removeEventListener("mouseup",c),document.removeEventListener("mouseleave",qJ)}},[F,j,T,k,DJ,z]);let g=({handle:KJ,className:c})=>Q7.jsxDEV("div",{className:`absolute ${c} group ${$?"cursor-not-allowed opacity-0":""}`,onMouseDown:(qJ)=>CJ(KJ,qJ),style:{zIndex:10},title:$?"Canvas resizing is locked during recording":void 0,children:Q7.jsxDEV("div",{className:`w-full h-full transition-opacity bg-accent/20 ${$?"opacity-0":"opacity-0 group-hover:opacity-100"}`},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Q7.jsxDEV(Q7.Fragment,{children:[Q7.jsxDEV(g,{handle:"nw",className:"top-0 left-0 w-3 h-3 cursor-nw-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"ne",className:"top-0 right-0 w-3 h-3 cursor-ne-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"sw",className:"bottom-0 left-0 w-3 h-3 cursor-sw-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"se",className:"bottom-0 right-0 w-3 h-3 cursor-se-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"n",className:"top-0 left-3 right-3 h-1 cursor-n-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"s",className:"bottom-0 left-3 right-3 h-1 cursor-s-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"w",className:"left-0 top-3 bottom-3 w-1 cursor-w-resize"},void 0,!1,void 0,this),Q7.jsxDEV(g,{handle:"e",className:"right-0 top-3 bottom-3 w-1 cursor-e-resize"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var B4=zQ(gZ(),1),BM=({onReady:Z})=>{let Y=UX.useRef(null),K=UX.useRef(null),{canvasWidth:z,canvasHeight:$,scale:F,setCanvasSize:B,syncWithCanvas:j}=oX(),[b,T]=UX.useState(!1),y=window.devicePixelRatio||1,k=Math.max(1,Math.round(z/y)),a=Math.max(1,Math.round($/y)),DJ=Math.max(1,Math.round(k*F)),TJ=Math.max(1,Math.round(a*F));return UX.useEffect(()=>{if(Y.current)Z(Y.current)},[Z]),UX.useEffect(()=>{if(!Y.current||b)return;let bJ=()=>{let KJ=Y.current?.querySelector("canvas");if(KJ&&KJ instanceof HTMLCanvasElement){let{width:c,height:qJ}=KJ;if(c>100&&qJ>100){let d=Math.abs(c-z),UJ=Math.abs(qJ-$);if(d>z*0.1||UJ>$*0.1)console.log("[SandboxContainer] Canvas detected, syncing dimensions"),j(KJ),T(!0)}}};bJ();let CJ=setInterval(bJ,100),g=setTimeout(()=>{clearInterval(CJ),T(!0)},3000);return()=>{clearInterval(CJ),clearTimeout(g)}},[Y,z,$,b,j]),UX.useEffect(()=>{let bJ=new Event("resize");window.dispatchEvent(bJ),console.log("[SandboxContainer] Dispatched resize event:",{canvas:{width:z,height:$},container:{width:k,height:a},display:{width:DJ,height:TJ},scale:F})},[z,$,k,a,DJ,TJ,F]),B4.jsxDEV("div",{className:"hyper-frame-sandbox-wrapper absolute inset-0 flex items-center justify-center pointer-events-none",children:B4.jsxDEV("div",{ref:K,className:"hyper-frame-sandbox-display-container relative pointer-events-auto",style:{width:`${DJ}px`,height:`${TJ}px`,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)"},children:[B4.jsxDEV(FM,{canvasWidth:z,canvasHeight:$,scale:F,onResize:B},void 0,!1,void 0,this),B4.jsxDEV("div",{ref:Y,className:"hyper-frame-sandbox-container absolute top-0 left-0 flex items-center justify-center",style:{width:`${k}px`,height:`${a}px`,overflow:"hidden",transform:`scale(${F})`,transformOrigin:"top left"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};var K6=zQ(G8(),1);var FQ=zQ(gZ(),1),AM=[{label:"16:9 Landscape",width:1920,height:1080},{label:"9:16 Portrait",width:1080,height:1920},{label:"4:3 Standard",width:1024,height:768},{label:"1:1 Square",width:1080,height:1080},{label:"21:9 Ultrawide",width:2560,height:1080},{label:"3:2 Classic",width:1440,height:960},{label:"---",width:0,height:0},{label:"iPhone 15 Pro",width:1179,height:2556},{label:"iPhone 15 Pro Max",width:1290,height:2796},{label:"iPhone SE",width:750,height:1334},{label:"iPhone 15",width:1170,height:2532},{label:"---",width:0,height:0},{label:'MacBook Air 13"',width:2560,height:1664},{label:'MacBook Pro 14"',width:3024,height:1964},{label:'MacBook Pro 16"',width:3456,height:2234},{label:'iMac 24"',width:4480,height:2520},{label:"Studio Display",width:5120,height:2880}],IM=()=>{let{canvasWidth:Z,canvasHeight:Y,scale:K,isRecording:z,setCanvasWidth:$,setCanvasHeight:F,setAspectRatio:B,fitToScreen:j}=oX(),[b,T]=K6.useState(Z.toString()),[y,k]=K6.useState(Y.toString());K6.useEffect(()=>{T(Z.toString())},[Z]),K6.useEffect(()=>{k(Y.toString())},[Y]);let a=()=>{if(z)return;let zJ=Math.round(parseFloat(b));if(!isNaN(zJ)&&zJ>=100)$(zJ),T(zJ.toString());else T(Z.toString())},DJ=()=>{if(z)return;let zJ=Math.round(parseFloat(y));if(!isNaN(zJ)&&zJ>=100)F(zJ),k(zJ.toString());else k(Y.toString())},TJ=(zJ)=>{if(zJ.key==="Enter")a(),zJ.currentTarget.blur()},bJ=(zJ)=>{if(zJ.key==="Enter")DJ(),zJ.currentTarget.blur()},CJ=(zJ)=>{if(z)return;let i=AM.find(($J)=>$J.label===zJ.target.value);if(i&&i.width>0&&i.height>0)B(i.width,i.height)},g=window.devicePixelRatio||1,KJ=Math.round(Z/g*K),c=Math.round(Y/g*K),qJ=`${Z}×${Y}`,d=`${KJ}×${c}`,UJ=K<1,SJ=Math.round(K*100);return FQ.jsxDEV("div",{className:"canvas-size-widget-container absolute top-0 center px-2 py-2 z-[9999] flex items-center gap-2",children:[FQ.jsxDEV("select",{onChange:CJ,className:`rounded border border-border w-[90px] bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,defaultValue:"",disabled:z,title:z?"Canvas resizing is locked during recording":"Choose a preset size",children:[FQ.jsxDEV("option",{value:"",disabled:!0,children:"Presets"},void 0,!1,void 0,this),AM.map((zJ,i)=>zJ.label==="---"?FQ.jsxDEV("option",{disabled:!0,children:"────────"},i,!1,void 0,this):FQ.jsxDEV("option",{value:zJ.label,children:zJ.label},i,!1,void 0,this))]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:[FQ.jsxDEV("label",{className:"text-sm text-accent",children:"W:"},void 0,!1,void 0,this),FQ.jsxDEV("input",{value:b,onChange:(zJ)=>T(zJ.target.value),onBlur:a,onKeyDown:TJ,className:`rounded border border-border bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":""}`,style:{width:`${Math.max(b.length*8+16,55)}px`},min:"60",step:"1",disabled:z,title:z?"Canvas resizing is locked during recording":"Canvas width"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:[FQ.jsxDEV("label",{className:"text-sm text-accent",children:"H:"},void 0,!1,void 0,this),FQ.jsxDEV("input",{value:y,onChange:(zJ)=>k(zJ.target.value),onBlur:DJ,onKeyDown:bJ,className:`rounded border border-border bg-background px-2 py-1 text-sm text-text focus:border-accent focus:outline-none ${z?"opacity-50 cursor-not-allowed":""}`,style:{width:`${Math.max(y.length*8+16,55)}px`},min:"60",step:"1",disabled:z,title:z?"Canvas resizing is locked during recording":"Canvas height"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded border border-border bg-background/50",title:UJ?`Canvas: ${qJ} → Display: ${d} (scaled to ${SJ}%)`:`Canvas: ${qJ} = Display: ${d} (no scaling)`,style:{display:UJ?"flex":"none"},children:[FQ.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:UJ?"text-accent":"text-muted",children:[FQ.jsxDEV("circle",{cx:"11",cy:"11",r:"8"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"m21 21-4.3-4.3"},void 0,!1,void 0,this),FQ.jsxDEV("line",{x1:"11",y1:"8",x2:"11",y2:"14"},void 0,!1,void 0,this),FQ.jsxDEV("line",{x1:"8",y1:"11",x2:"14",y2:"11"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("div",{className:"flex items-center gap-1",children:FQ.jsxDEV("span",{className:`text-xs ${UJ?"text-accent":"text-muted"}`,children:[SJ,"%"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),FQ.jsxDEV("button",{type:"button",className:`inline-flex items-center gap-1 h-[30px] rounded-lg border border-border bg-background px-3 py-2 text-sm text-text transition whitespace-nowrap ${z?"opacity-50 cursor-not-allowed":"hover:bg-muted/80"}`,onClick:j,disabled:z,title:z?"Canvas resizing is locked during recording":"Fit to screen",children:FQ.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[FQ.jsxDEV("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"},void 0,!1,void 0,this),FQ.jsxDEV("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var d9=zQ(gZ(),1),jM=({onContainerReady:Z,controls:Y,exportWidget:K})=>{let[z,$]=$G.useState(null),F=$G.useCallback((B)=>{$(B),Z(B)},[Z]);return d9.jsxDEV(DM,{children:d9.jsxDEV("div",{className:"hyper-container flex flex-col items-center justify-center",children:[K&&K.enabled&&d9.jsxDEV(MM,{getContainer:()=>z,filename:K.filename,useCanvasCapture:K.useCanvasCapture},void 0,!1,void 0,this),d9.jsxDEV(IM,{},void 0,!1,void 0,this),d9.jsxDEV(BM,{onReady:F},void 0,!1,void 0,this),Y&&d9.jsxDEV(LM,{definitions:Y.definitions,options:Y.options,onChange:Y.onChange,onReady:Y.onReady},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)};class OG{cssBridge=null;config;currentExperience=null;constructor(Z={}){this.config=Z,this.setupMessageHandlers()}setupMessageHandlers(){if(typeof window>"u")return;window.addEventListener("message",(Z)=>{let{type:Y,data:K}=Z.data||{};switch(Y){case"CAPTURE_SCREENSHOT":this.handleCaptureScreenshot(Z.data?.requestId);break;case"HYPERTOOL_SET_PARAMS":this.handleSetParams(K?.params);break;case"HYPERTOOL_GET_PARAMS":this.handleGetParams();break}})}handleCaptureScreenshot(Z){let Y=null;if(this.currentExperience)Y=this.currentExperience.mount.querySelector("canvas");if(!Y){let K=document.querySelectorAll("canvas");if(K.length>0){let z=K[0],$=z.width*z.height;K.forEach((F)=>{let B=F,j=B.width*B.height;if(j>$)z=B,$=j}),Y=z}}if(!Y){this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,noCanvas:!0,error:"No canvas found"});return}try{let K=this.createOptimizedThumbnail(Y,400,0.8);this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,dataUrl:K})}catch(K){this.sendToParent("SCREENSHOT_RESULT",{requestId:Z,error:K instanceof Error?K.message:"Unknown error"})}}handleSetParams(Z){if(!Z||!this.currentExperience)return;this.currentExperience.setParams(Z)}handleGetParams(){let Z=this.currentExperience?.getParams()??{};this.sendToParent("HYPERTOOL_PARAMS_RESPONSE",{params:Z})}sendToParent(Z,Y){window.parent.postMessage({type:Z,...Y},"*")}notifyParamChange(Z){let Y={};for(let[K,z]of Object.entries(Z))if(z===null||typeof z==="string"||typeof z==="number"||typeof z==="boolean")Y[K]=z;else if(typeof z==="object")try{Y[K]=JSON.parse(JSON.stringify(z))}catch{}window.parent.postMessage({type:"HYPERTOOL_PARAMS_CHANGED",source:"hypertool-iframe",data:{params:Y}},"*")}createOptimizedThumbnail(Z,Y,K){let{width:z,height:$}=Z,F=z,B=$;if(z>Y){let T=Y/z;F=Y,B=Math.round($*T)}let j=document.createElement("canvas");j.width=F,j.height=B;let b=j.getContext("2d");if(!b)return Z.toDataURL("image/jpeg",K);return b.imageSmoothingEnabled=!0,b.imageSmoothingQuality="high",b.drawImage(Z,0,0,F,B),j.toDataURL("image/jpeg",K)}mirrorCss(){if(this.cssBridge)return;this.cssBridge=new $$({mirror:this.config.mirrorCss!==!1}),this.cssBridge.start()}async createSandbox(Z){if(this.config.mirrorCss!==!1&&Z.mirrorCss!==!1)this.mirrorCss();let Y=await this.createReactMount(Z),K=new u5({mount:Y.sandboxContainer,paramDefs:Z.controls?.definitions,autoplay:!0,setup:($)=>this.wrapUserSetup(Z.setup,$,Z)});if(this.currentExperience=K,K.on("paramChange",()=>{this.notifyParamChange(K.getParams())}),Z.controls?.definitions)this.wireControlsToExperience(K,Y);if(typeof globalThis.__hypertool_registerParams==="function")globalThis.__hypertool_registerParams(K.params);return this.notifyParamChange(K.getParams()),{container:Y.sandboxContainer,controls:null,params:K.params,destroy:()=>{K.destroy(),Y.destroy()}}}wrapUserSetup(Z,Y,K){let z={mount:Y.mount,params:Y.params,controls:null,exports:{registerImageCapture:()=>{},registerVideoCapture:()=>{},setFilename:Y.exports.setFilename,setVisible:()=>{},useDefaultCanvasCapture:()=>{},destroy:()=>{}},runtime:this,environment:{window:Y.environment.window,document:Y.environment.document,addCleanup:Y.environment.addCleanup,onResize:($,F)=>{Y.environment.window.addEventListener("resize",$,F);let B=()=>Y.environment.window.removeEventListener("resize",$,F);return Y.environment.addCleanup(B),B}}};return Z(z)}wireControlsToExperience(Z,Y){}async createReactMount(Z){let Y=Z.mount,K=OM({target:Y?.target,containerClassName:Y?.containerClassName}),z=NM.createRoot(K.element),$=Z.controls?.definitions?{definitions:Z.controls.definitions,options:Z.controls.options,onChange:(j)=>{if(this.currentExperience&&j?.key!==void 0)this.currentExperience.setParam(j.key,j.value);Z.controls?.onChange?.(j,{})},onReady:(j)=>{if(this.currentExperience){let b=j.params;this.currentExperience.setParams(b)}if(typeof globalThis.__hypertool_registerControls==="function")globalThis.__hypertool_registerControls(j)}}:null,B=await new Promise((j)=>{z.render(PM.default.createElement(jM,{onContainerReady:j,controls:$,exportWidget:{enabled:Z.exportWidget?.enabled!==!1,filename:Z.exportWidget?.filename,position:Z.exportWidget?.position,useCanvasCapture:Z.exportWidget?.useCanvasCapture!==!1}}))});if(typeof Y?.onReady==="function")Y.onReady({container:B});return{sandboxContainer:B,destroy:()=>{if(z.unmount(),K.createdInternally)K.element.remove()}}}}var ZT={mirrorCss:!0},LG=new OG(ZT);function XT(Z){return new OG(Z)}function wM(Z){return LG.createSandbox(Z)}function VM(){LG.mirrorCss()}if(typeof window<"u"){window.hypertoolControls={createControls:U$,createControlPanel:q$,HypertoolControls:u9,injectThemeVariables:M4,studioTheme:H4};let Z=window.hyperFrame||{};window.hyperFrame={...Z,version:"universal",runtime:LG,createSandbox:wM,mirrorCss:VM},KT()}var A4=null,WG=null;function YT(Z){A4=Z}function GT(Z){WG=Z}if(typeof globalThis<"u")globalThis.__hypertool_registerParams=YT,globalThis.__hypertool_registerControls=GT;function KT(){if(typeof window>"u")return;let Z={isRecording:!1,recorder:null,recordedChunks:[]};window.addEventListener("message",(B)=>{if(B.data?.source!=="hypertool-main")return;let{type:j}=B.data;switch(j){case"HYPERTOOL_CAPTURE_PNG":z();break;case"HYPERTOOL_START_RECORDING":$();break;case"HYPERTOOL_STOP_RECORDING":F();break;case"HYPERTOOL_GET_PARAMS":Y();break;case"HYPERTOOL_SET_PARAMS":K(B.data.data?.params);break}});function Y(){window.parent.postMessage({type:"HYPERTOOL_PARAMS_RESPONSE",data:{params:A4?{...A4}:{}}},"*")}function K(B){if(!B||typeof B!=="object"){console.warn("[Runtime] Invalid params received in SET_PARAMS");return}if(console.log("[Runtime] Received SET_PARAMS from parent:",Object.keys(B).length,"values"),A4){for(let[j,b]of Object.entries(B))if(b!==void 0)A4[j]=b}if(WG){for(let[j,b]of Object.entries(B))if(b!==void 0)try{WG.set(j,b)}catch(T){}WG.refresh(),console.log("[Runtime] Controls updated with saved values")}}function z(){let B=document.querySelector("canvas");if(B)B.toBlob((j)=>{if(j)window.parent.postMessage({type:"HYPERTOOL_CAPTURE_RESPONSE",data:{blob:j,filename:"hypertool-capture.png"}},"*")},"image/png");else console.warn("No canvas found for capture")}function $(){console.log("Starting recording...");let B=document.querySelector("canvas");if(B&&typeof B.captureStream==="function"){let j=B.captureStream(60),b=new MediaRecorder(j,{mimeType:"video/webm;codecs=vp9"});Z.recordedChunks=[],b.ondataavailable=(T)=>{if(T.data.size>0)Z.recordedChunks.push(T.data),console.log("Recording data available:",T.data.size,"bytes")},b.onstop=()=>{console.log("Recording stopped, processing...");let T=new Blob(Z.recordedChunks,{type:"video/webm"});console.log("Recording blob size:",T.size,"bytes"),window.parent.postMessage({type:"HYPERTOOL_RECORDING_RESPONSE",data:{blob:T,filename:"hypertool-recording.webm"}},"*"),Z.isRecording=!1,Z.recorder=null},b.start(),Z.recorder=b,Z.isRecording=!0,console.log("Recording started successfully")}else console.warn("Canvas not found or captureStream not supported")}function F(){if(console.log("Stopping recording..."),Z.recorder)Z.recorder.stop(),window.parent.postMessage({type:"HYPERTOOL_RECORDING_STOPPED",data:{}},"*"),console.log("Stop recording message sent");else console.warn("No active recorder to stop")}}export{H4 as studioTheme,LG as runtime,YT as registerSandboxParams,GT as registerControlsInstance,VM as mirrorCss,M4 as injectThemeVariables,wM as createSandbox,U$ as createControls,q$ as createControlPanel,XT as configureRuntime,f5 as ParamStore,v5 as ObjectRegistry,u9 as HypertoolControls,g5 as ExperienceController,u5 as Experience,c1 as EventEmitter};
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
/* @hypertools/sdk - MIT License - https://hypertools.dev */
|
|
201
201
|
|
|
202
|
-
//# debugId=
|
|
202
|
+
//# debugId=6DEFE748E17260C164756E2164756E21
|