@volter/world-console 2.0.5 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,86 +1,86 @@
1
- var Tf=Object.create;var{getPrototypeOf:Rf,defineProperty:ZL,getOwnPropertyNames:Of}=Object;var wf=Object.prototype.hasOwnProperty;function If(Q){return this[Q]}var ff,Pf,b0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var X=U?ff??=new WeakMap:Pf??=new WeakMap,Y=X.get(Q);if(Y)return Y}Z=Q!=null?Tf(Rf(Q)):{};let W=U||!Q||!Q.__esModule?ZL(Z,"default",{value:Q,enumerable:!0}):Z;for(let B of Of(Q))if(!wf.call(W,B))ZL(W,B,{get:If.bind(Q,B),enumerable:!0});if(K)X.set(Q,W);return W};var j4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var l5=j4((Nf,oQ)=>{(function(){function Q(C,e){Object.defineProperty(K.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})}function U(C){if(C===null||typeof C!=="object")return null;return C=l1&&C[l1]||C["@@iterator"],typeof C==="function"?C:null}function Z(C,e){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var B1=C+"."+e;Y1[B1]||(console.error("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.",e,C),Y1[B1]=!0)}function K(C,e,B1){this.props=C,this.context=e,this.refs=c1,this.updater=B1||C1}function X(){}function Y(C,e,B1){this.props=C,this.context=e,this.refs=c1,this.updater=B1||C1}function W(){}function B(C){return""+C}function R(C){try{B(C);var e=!1}catch(P1){e=!0}if(e){e=console;var B1=e.error,T1=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return B1.call(e,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T1),B(C)}}function O(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===S0?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case o:return"Fragment";case m:return"Profiler";case V:return"StrictMode";case O1:return"Suspense";case z1:return"SuspenseList";case f1:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case n:return"Portal";case X1:return C.displayName||"Context";case J1:return(C._context.displayName||"Context")+".Consumer";case W1:var e=C.render;return C=C.displayName,C||(C=e.displayName||e.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case I1:return e=C.displayName||null,e!==null?e:O(C.type)||"Memo";case K1:e=C._payload,C=C._init;try{return O(C(e))}catch(B1){}}return null}function T(C){if(C===o)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===K1)return"<...>";try{var e=O(C);return e?"<"+e+">":"<...>"}catch(B1){return"<...>"}}function L(){var C=E1.A;return C===null?null:C.getOwner()}function M(){return Error("react-stack-top-frame")}function f(C){if(G2.call(C,"key")){var e=Object.getOwnPropertyDescriptor(C,"key").get;if(e&&e.isReactWarning)return!1}return C.key!==void 0}function I(C,e){function B1(){h2||(h2=!0,console.error("%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://react.dev/link/special-props)",e))}B1.isReactWarning=!0,Object.defineProperty(C,"key",{get:B1,configurable:!0})}function k(){var C=O(this.type);return I2[C]||(I2[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function S(C,e,B1,T1,P1,h1){var m1=B1.ref;return C={$$typeof:r,type:C,key:e,props:B1,_owner:T1},(m1!==void 0?m1:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:k}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:P1}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:h1}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function D(C,e){return e=S(C.type,e,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(e._store.validated=C._store.validated),e}function h(C){P(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===K1&&(C._payload.status==="fulfilled"?P(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function P(C){return typeof C==="object"&&C!==null&&C.$$typeof===r}function j(C){var e={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(B1){return e[B1]})}function b(C,e){return typeof C==="object"&&C!==null&&C.key!=null?(R(C.key),j(""+C.key)):e.toString(36)}function x(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(W,W):(C.status="pending",C.then(function(e){C.status==="pending"&&(C.status="fulfilled",C.value=e)},function(e){C.status==="pending"&&(C.status="rejected",C.reason=e)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function E(C,e,B1,T1,P1){var h1=typeof C;if(h1==="undefined"||h1==="boolean")C=null;var m1=!1;if(C===null)m1=!0;else switch(h1){case"bigint":case"string":case"number":m1=!0;break;case"object":switch(C.$$typeof){case r:case n:m1=!0;break;case K1:return m1=C._init,E(m1(C._payload),e,B1,T1,P1)}}if(m1){m1=C,P1=P1(m1);var q0=T1===""?"."+b(m1,0):T1;return V1(P1)?(B1="",q0!=null&&(B1=q0.replace(z2,"$&/")+"/"),E(P1,e,B1,"",function(_2){return _2})):P1!=null&&(P(P1)&&(P1.key!=null&&(m1&&m1.key===P1.key||R(P1.key)),B1=D(P1,B1+(P1.key==null||m1&&m1.key===P1.key?"":(""+P1.key).replace(z2,"$&/")+"/")+q0),T1!==""&&m1!=null&&P(m1)&&m1.key==null&&m1._store&&!m1._store.validated&&(B1._store.validated=2),P1=B1),e.push(P1)),1}if(m1=0,q0=T1===""?".":T1+":",V1(C))for(var S1=0;S1<C.length;S1++)T1=C[S1],h1=q0+b(T1,S1),m1+=E(T1,e,B1,h1,P1);else if(S1=U(C),typeof S1==="function")for(S1===C.entries&&(B2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),B2=!0),C=S1.call(C),S1=0;!(T1=C.next()).done;)T1=T1.value,h1=q0+b(T1,S1++),m1+=E(T1,e,B1,h1,P1);else if(h1==="object"){if(typeof C.then==="function")return E(x(C),e,B1,T1,P1);throw e=String(C),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return m1}function p(C,e,B1){if(C==null)return C;var T1=[],P1=0;return E(C,T1,"","",function(h1){return e.call(B1,h1,P1++)}),T1}function a(C){if(C._status===-1){var e=C._ioInfo;e!=null&&(e.start=e.end=performance.now()),e=C._result;var B1=e();if(B1.then(function(P1){if(C._status===0||C._status===-1){C._status=1,C._result=P1;var h1=C._ioInfo;h1!=null&&(h1.end=performance.now()),B1.status===void 0&&(B1.status="fulfilled",B1.value=P1)}},function(P1){if(C._status===0||C._status===-1){C._status=2,C._result=P1;var h1=C._ioInfo;h1!=null&&(h1.end=performance.now()),B1.status===void 0&&(B1.status="rejected",B1.reason=P1)}}),e=C._ioInfo,e!=null){e.value=B1;var T1=B1.displayName;typeof T1==="string"&&(e.name=T1)}C._status===-1&&(C._status=0,C._result=B1)}if(C._status===1)return e=C._result,e===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var Nf=Object.create;var{getPrototypeOf:Cf,defineProperty:WL,getOwnPropertyNames:Sf}=Object;var jf=Object.prototype.hasOwnProperty;function Vf(Q){return this[Q]}var kf,Df,u0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var X=U?kf??=new WeakMap:Df??=new WeakMap,W=X.get(Q);if(W)return W}Z=Q!=null?Nf(Cf(Q)):{};let z=U||!Q||!Q.__esModule?WL(Z,"default",{value:Q,enumerable:!0}):Z;for(let B of Sf(Q))if(!jf.call(z,B))WL(z,B,{get:Vf.bind(Q,B),enumerable:!0});if(K)X.set(Q,z);return z};var j4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var i5=j4((yf,eQ)=>{(function(){function Q(S,_1){Object.defineProperty(K.prototype,S,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",_1[0],_1[1])}})}function U(S){if(S===null||typeof S!=="object")return null;return S=l1&&S[l1]||S["@@iterator"],typeof S==="function"?S:null}function Z(S,_1){S=(S=S.constructor)&&(S.displayName||S.name)||"ReactClass";var B1=S+"."+_1;W1[B1]||(console.error("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.",_1,S),W1[B1]=!0)}function K(S,_1,B1){this.props=S,this.context=_1,this.refs=c1,this.updater=B1||S1}function X(){}function W(S,_1,B1){this.props=S,this.context=_1,this.refs=c1,this.updater=B1||S1}function z(){}function B(S){return""+S}function O(S){try{B(S);var _1=!1}catch(P1){_1=!0}if(_1){_1=console;var B1=_1.error,R1=typeof Symbol==="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return B1.call(_1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R1),B(S)}}function T(S){if(S==null)return null;if(typeof S==="function")return S.$$typeof===V0?null:S.displayName||S.name||null;if(typeof S==="string")return S;switch(S){case e:return"Fragment";case s:return"Profiler";case V:return"StrictMode";case L1:return"Suspense";case M1:return"SuspenseList";case f1:return"Activity"}if(typeof S==="object")switch(typeof S.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case n:return"Portal";case Q1:return S.displayName||"Context";case U1:return(S._context.displayName||"Context")+".Consumer";case Y1:var _1=S.render;return S=S.displayName,S||(S=_1.displayName||_1.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case I1:return _1=S.displayName||null,_1!==null?_1:T(S.type)||"Memo";case X1:_1=S._payload,S=S._init;try{return T(S(_1))}catch(B1){}}return null}function R(S){if(S===e)return"<>";if(typeof S==="object"&&S!==null&&S.$$typeof===X1)return"<...>";try{var _1=T(S);return _1?"<"+_1+">":"<...>"}catch(B1){return"<...>"}}function L(){var S=b1.A;return S===null?null:S.getOwner()}function M(){return Error("react-stack-top-frame")}function I(S){if(Z2.call(S,"key")){var _1=Object.getOwnPropertyDescriptor(S,"key").get;if(_1&&_1.isReactWarning)return!1}return S.key!==void 0}function f(S,_1){function B1(){h2||(h2=!0,console.error("%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://react.dev/link/special-props)",_1))}B1.isReactWarning=!0,Object.defineProperty(S,"key",{get:B1,configurable:!0})}function D(){var S=T(this.type);return I2[S]||(I2[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function j(S,_1,B1,R1,P1,h1){var m1=B1.ref;return S={$$typeof:r,type:S,key:_1,props:B1,_owner:R1},(m1!==void 0?m1:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:D}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:P1}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:h1}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function k(S,_1){return _1=j(S.type,_1,S.props,S._owner,S._debugStack,S._debugTask),S._store&&(_1._store.validated=S._store.validated),_1}function h(S){P(S)?S._store&&(S._store.validated=1):typeof S==="object"&&S!==null&&S.$$typeof===X1&&(S._payload.status==="fulfilled"?P(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function P(S){return typeof S==="object"&&S!==null&&S.$$typeof===r}function C(S){var _1={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(B1){return _1[B1]})}function b(S,_1){return typeof S==="object"&&S!==null&&S.key!=null?(O(S.key),C(""+S.key)):_1.toString(36)}function x(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status==="string"?S.then(z,z):(S.status="pending",S.then(function(_1){S.status==="pending"&&(S.status="fulfilled",S.value=_1)},function(_1){S.status==="pending"&&(S.status="rejected",S.reason=_1)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function u(S,_1,B1,R1,P1){var h1=typeof S;if(h1==="undefined"||h1==="boolean")S=null;var m1=!1;if(S===null)m1=!0;else switch(h1){case"bigint":case"string":case"number":m1=!0;break;case"object":switch(S.$$typeof){case r:case n:m1=!0;break;case X1:return m1=S._init,u(m1(S._payload),_1,B1,R1,P1)}}if(m1){m1=S,P1=P1(m1);var U0=R1===""?"."+b(m1,0):R1;return j1(P1)?(B1="",U0!=null&&(B1=U0.replace(A2,"$&/")+"/"),u(P1,_1,B1,"",function(J2){return J2})):P1!=null&&(P(P1)&&(P1.key!=null&&(m1&&m1.key===P1.key||O(P1.key)),B1=k(P1,B1+(P1.key==null||m1&&m1.key===P1.key?"":(""+P1.key).replace(A2,"$&/")+"/")+U0),R1!==""&&m1!=null&&P(m1)&&m1.key==null&&m1._store&&!m1._store.validated&&(B1._store.validated=2),P1=B1),_1.push(P1)),1}if(m1=0,U0=R1===""?".":R1+":",j1(S))for(var V1=0;V1<S.length;V1++)R1=S[V1],h1=U0+b(R1,V1),m1+=u(R1,_1,B1,h1,P1);else if(V1=U(S),typeof V1==="function")for(V1===S.entries&&(B2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),B2=!0),S=V1.call(S),V1=0;!(R1=S.next()).done;)R1=R1.value,h1=U0+b(R1,V1++),m1+=u(R1,_1,B1,h1,P1);else if(h1==="object"){if(typeof S.then==="function")return u(x(S),_1,B1,R1,P1);throw _1=String(S),Error("Objects are not valid as a React child (found: "+(_1==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":_1)+"). If you meant to render a collection of children, use an array instead.")}return m1}function g(S,_1,B1){if(S==null)return S;var R1=[],P1=0;return u(S,R1,"","",function(h1){return _1.call(B1,h1,P1++)}),R1}function i(S){if(S._status===-1){var _1=S._ioInfo;_1!=null&&(_1.start=_1.end=performance.now()),_1=S._result;var B1=_1();if(B1.then(function(P1){if(S._status===0||S._status===-1){S._status=1,S._result=P1;var h1=S._ioInfo;h1!=null&&(h1.end=performance.now()),B1.status===void 0&&(B1.status="fulfilled",B1.value=P1)}},function(P1){if(S._status===0||S._status===-1){S._status=2,S._result=P1;var h1=S._ioInfo;h1!=null&&(h1.end=performance.now()),B1.status===void 0&&(B1.status="rejected",B1.reason=P1)}}),_1=S._ioInfo,_1!=null){_1.value=B1;var R1=B1.displayName;typeof R1==="string"&&(_1.name=R1)}S._status===-1&&(S._status=0,S._result=B1)}if(S._status===1)return _1=S._result,_1===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,e),"default"in e||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,_1),"default"in _1||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,e),e.default;throw C._result}function t(){var C=E1.H;return C===null&&console.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:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,_1),_1.default;throw S._result}function m(){var S=b1.H;return S===null&&console.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:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function Q1(){E1.asyncTransitions--}function $1(C){if(D5===null)try{var e=("require"+Math.random()).slice(0,7);D5=(oQ&&oQ[e]).call(oQ,"timers").setImmediate}catch(B1){D5=function(T1){z3===!1&&(z3=!0,typeof MessageChannel>"u"&&console.error("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 P1=new MessageChannel;P1.port1.onmessage=T1,P1.port2.postMessage(void 0)}}return D5(C)}function _1(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function y(C,e){e!==v4-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),v4=e}function u(C,e,B1){var T1=E1.actQueue;if(T1!==null)if(T1.length!==0)try{v(T1),$1(function(){return u(C,e,B1)});return}catch(P1){E1.thrownErrors.push(P1)}else E1.actQueue=null;0<E1.thrownErrors.length?(T1=_1(E1.thrownErrors),E1.thrownErrors.length=0,B1(T1)):e(C)}function v(C){if(!b4){b4=!0;var e=0;try{for(;e<C.length;e++){var B1=C[e];do{E1.didUsePromise=!1;var T1=B1(!1);if(T1!==null){if(E1.didUsePromise){C[e]=B1,C.splice(0,e);return}B1=T1}else break}while(1)}C.length=0}catch(P1){C.splice(0,e+1),E1.thrownErrors.push(P1)}finally{b4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),J1=Symbol.for("react.consumer"),X1=Symbol.for("react.context"),W1=Symbol.for("react.forward_ref"),O1=Symbol.for("react.suspense"),z1=Symbol.for("react.suspense_list"),I1=Symbol.for("react.memo"),K1=Symbol.for("react.lazy"),f1=Symbol.for("react.activity"),l1=Symbol.iterator,Y1={},C1={isMounted:function(){return!1},enqueueForceUpdate:function(C){Z(C,"forceUpdate")},enqueueReplaceState:function(C){Z(C,"replaceState")},enqueueSetState:function(C){Z(C,"setState")}},y1=Object.assign,c1={};Object.freeze(c1),K.prototype.isReactComponent={},K.prototype.setState=function(C,e){if(typeof C!=="object"&&typeof C!=="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,e,"setState")},K.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var v1={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)."]};for(o5 in v1)v1.hasOwnProperty(o5)&&Q(o5,v1[o5]);X.prototype=K.prototype,v1=Y.prototype=new X,v1.constructor=Y,y1(v1,K.prototype),v1.isPureReactComponent=!0;var V1=Array.isArray,S0=Symbol.for("react.client.reference"),E1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},G2=Object.prototype.hasOwnProperty,_0=console.createTask?console.createTask:function(){return null};v1={react_stack_bottom_frame:function(C){return C()}};var h2,A2,I2={},f2=v1.react_stack_bottom_frame.bind(v1,M)(),P2=_0(T(M)),B2=!1,z2=/\/+/g,L2=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},z3=!1,D5=null,v4=0,E4=!1,b4=!1,I6=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:$1;v1=Object.freeze({__proto__:null,c:function(C){return t().useMemoCache(C)}});var o5={map:p,forEach:function(C,e,B1){p(C,function(){e.apply(this,arguments)},B1)},count:function(C){var e=0;return p(C,function(){e++}),e},toArray:function(C){return p(C,function(e){return e})||[]},only:function(C){if(!P(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};Nf.Activity=f1,Nf.Children=o5,Nf.Component=K,Nf.Fragment=o,Nf.Profiler=m,Nf.PureComponent=Y,Nf.StrictMode=V,Nf.Suspense=O1,Nf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E1,Nf.__COMPILER_RUNTIME=v1,Nf.act=function(C){var e=E1.actQueue,B1=v4;v4++;var T1=E1.actQueue=e!==null?e:[],P1=!1;try{var h1=C()}catch(S1){E1.thrownErrors.push(S1)}if(0<E1.thrownErrors.length)throw y(e,B1),C=_1(E1.thrownErrors),E1.thrownErrors.length=0,C;if(h1!==null&&typeof h1==="object"&&typeof h1.then==="function"){var m1=h1;return I6(function(){P1||E4||(E4=!0,console.error("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 () => ...);"))}),{then:function(S1,_2){P1=!0,m1.then(function(N2){if(y(e,B1),B1===0){try{v(T1),$1(function(){return u(N2,S1,_2)})}catch(f6){E1.thrownErrors.push(f6)}if(0<E1.thrownErrors.length){var n5=_1(E1.thrownErrors);E1.thrownErrors.length=0,_2(n5)}}else S1(N2)},function(N2){y(e,B1),0<E1.thrownErrors.length?(N2=_1(E1.thrownErrors),E1.thrownErrors.length=0,_2(N2)):_2(N2)})}}}var q0=h1;if(y(e,B1),B1===0&&(v(T1),T1.length!==0&&I6(function(){P1||E4||(E4=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),E1.actQueue=null),0<E1.thrownErrors.length)throw C=_1(E1.thrownErrors),E1.thrownErrors.length=0,C;return{then:function(S1,_2){P1=!0,B1===0?(E1.actQueue=T1,$1(function(){return u(q0,S1,_2)})):S1(q0)}}},Nf.cache=function(C){return function(){return C.apply(null,arguments)}},Nf.cacheSignal=function(){return null},Nf.captureOwnerStack=function(){var C=E1.getCurrentStack;return C===null?null:C()},Nf.cloneElement=function(C,e,B1){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var T1=y1({},C.props),P1=C.key,h1=C._owner;if(e!=null){var m1;_:{if(G2.call(e,"ref")&&(m1=Object.getOwnPropertyDescriptor(e,"ref").get)&&m1.isReactWarning){m1=!1;break _}m1=e.ref!==void 0}m1&&(h1=L()),f(e)&&(R(e.key),P1=""+e.key);for(q0 in e)!G2.call(e,q0)||q0==="key"||q0==="__self"||q0==="__source"||q0==="ref"&&e.ref===void 0||(T1[q0]=e[q0])}var q0=arguments.length-2;if(q0===1)T1.children=B1;else if(1<q0){m1=Array(q0);for(var S1=0;S1<q0;S1++)m1[S1]=arguments[S1+2];T1.children=m1}T1=S(C.type,P1,T1,h1,C._debugStack,C._debugTask);for(P1=2;P1<arguments.length;P1++)h(arguments[P1]);return T1},Nf.createContext=function(C){return C={$$typeof:X1,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:J1,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},Nf.createElement=function(C,e,B1){for(var T1=2;T1<arguments.length;T1++)h(arguments[T1]);T1={};var P1=null;if(e!=null)for(S1 in A2||!("__self"in e)||"key"in e||(A2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),f(e)&&(R(e.key),P1=""+e.key),e)G2.call(e,S1)&&S1!=="key"&&S1!=="__self"&&S1!=="__source"&&(T1[S1]=e[S1]);var h1=arguments.length-2;if(h1===1)T1.children=B1;else if(1<h1){for(var m1=Array(h1),q0=0;q0<h1;q0++)m1[q0]=arguments[q0+2];Object.freeze&&Object.freeze(m1),T1.children=m1}if(C&&C.defaultProps)for(S1 in h1=C.defaultProps,h1)T1[S1]===void 0&&(T1[S1]=h1[S1]);P1&&I(T1,typeof C==="function"?C.displayName||C.name||"Unknown":C);var S1=1e4>E1.recentlyCreatedOwnerStacks++;return S(C,P1,T1,L(),S1?Error("react-stack-top-frame"):f2,S1?_0(T(C)):P2)},Nf.createRef=function(){var C={current:null};return Object.seal(C),C},Nf.forwardRef=function(C){C!=null&&C.$$typeof===I1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var e={$$typeof:W1,render:C},B1;return Object.defineProperty(e,"displayName",{enumerable:!1,configurable:!0,get:function(){return B1},set:function(T1){B1=T1,C.name||C.displayName||(Object.defineProperty(C,"name",{value:T1}),C.displayName=T1)}}),e},Nf.isValidElement=P,Nf.lazy=function(C){C={_status:-1,_result:C};var e={$$typeof:K1,_payload:C,_init:a},B1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=B1,e._debugInfo=[{awaited:B1}],e},Nf.memo=function(C,e){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),e={$$typeof:I1,type:C,compare:e===void 0?null:e};var B1;return Object.defineProperty(e,"displayName",{enumerable:!1,configurable:!0,get:function(){return B1},set:function(T1){B1=T1,C.name||C.displayName||(Object.defineProperty(C,"name",{value:T1}),C.displayName=T1)}}),e},Nf.startTransition=function(C){var e=E1.T,B1={};B1._updatedFibers=new Set,E1.T=B1;try{var T1=C(),P1=E1.S;P1!==null&&P1(B1,T1),typeof T1==="object"&&T1!==null&&typeof T1.then==="function"&&(E1.asyncTransitions++,T1.then(Q1,Q1),T1.then(W,L2))}catch(h1){L2(h1)}finally{e===null&&B1._updatedFibers&&(C=B1._updatedFibers.size,B1._updatedFibers.clear(),10<C&&console.warn("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.")),e!==null&&B1.types!==null&&(e.types!==null&&e.types!==B1.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),e.types=B1.types),E1.T=e}},Nf.unstable_useCacheRefresh=function(){return t().useCacheRefresh()},Nf.use=function(C){return t().use(C)},Nf.useActionState=function(C,e,B1){return t().useActionState(C,e,B1)},Nf.useCallback=function(C,e){return t().useCallback(C,e)},Nf.useContext=function(C){var e=t();return C.$$typeof===J1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),e.useContext(C)},Nf.useDebugValue=function(C,e){return t().useDebugValue(C,e)},Nf.useDeferredValue=function(C,e){return t().useDeferredValue(C,e)},Nf.useEffect=function(C,e){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useEffect(C,e)},Nf.useEffectEvent=function(C){return t().useEffectEvent(C)},Nf.useId=function(){return t().useId()},Nf.useImperativeHandle=function(C,e,B1){return t().useImperativeHandle(C,e,B1)},Nf.useInsertionEffect=function(C,e){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useInsertionEffect(C,e)},Nf.useLayoutEffect=function(C,e){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),t().useLayoutEffect(C,e)},Nf.useMemo=function(C,e){return t().useMemo(C,e)},Nf.useOptimistic=function(C,e){return t().useOptimistic(C,e)},Nf.useReducer=function(C,e,B1){return t().useReducer(C,e,B1)},Nf.useRef=function(C){return t().useRef(C)},Nf.useState=function(C){return t().useState(C)},Nf.useSyncExternalStore=function(C,e,B1){return t().useSyncExternalStore(C,e,B1)},Nf.useTransition=function(){return t().useTransition()},Nf.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var FL=j4((jf)=>{var X8=b0(l5());(function(){function Q(V){if(V==null)return null;if(typeof V==="function")return V.$$typeof===t?null:V.displayName||V.name||null;if(typeof V==="string")return V;switch(V){case k:return"Fragment";case D:return"Profiler";case S:return"StrictMode";case b:return"Suspense";case x:return"SuspenseList";case a:return"Activity"}if(typeof V==="object")switch(typeof V.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case I:return"Portal";case P:return V.displayName||"Context";case h:return(V._context.displayName||"Context")+".Consumer";case j:var m=V.render;return V=V.displayName,V||(V=m.displayName||m.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case E:return m=V.displayName||null,m!==null?m:Q(V.type)||"Memo";case p:m=V._payload,V=V._init;try{return Q(V(m))}catch(J1){}}return null}function U(V){return""+V}function Z(V){try{U(V);var m=!1}catch(W1){m=!0}if(m){m=console;var J1=m.error,X1=typeof Symbol==="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return J1.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X1),U(V)}}function K(V){if(V===k)return"<>";if(typeof V==="object"&&V!==null&&V.$$typeof===p)return"<...>";try{var m=Q(V);return m?"<"+m+">":"<...>"}catch(J1){return"<...>"}}function X(){var V=Q1.A;return V===null?null:V.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(V){if($1.call(V,"key")){var m=Object.getOwnPropertyDescriptor(V,"key").get;if(m&&m.isReactWarning)return!1}return V.key!==void 0}function B(V,m){function J1(){u||(u=!0,console.error("%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://react.dev/link/special-props)",m))}J1.isReactWarning=!0,Object.defineProperty(V,"key",{get:J1,configurable:!0})}function R(){var V=Q(this.type);return v[V]||(v[V]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),V=this.props.ref,V!==void 0?V:null}function O(V,m,J1,X1,W1,O1){var z1=J1.ref;return V={$$typeof:f,type:V,key:m,props:J1,_owner:X1},(z1!==void 0?z1:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:R}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O1}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function T(V,m,J1,X1,W1,O1){var z1=m.children;if(z1!==void 0)if(X1)if(_1(z1)){for(X1=0;X1<z1.length;X1++)L(z1[X1]);Object.freeze&&Object.freeze(z1)}else console.error("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 L(z1);if($1.call(m,"key")){z1=Q(V);var I1=Object.keys(m).filter(function(f1){return f1!=="key"});X1=0<I1.length?"{key: someKey, "+I1.join(": ..., ")+": ...}":"{key: someKey}",o[z1+X1]||(I1=0<I1.length?"{"+I1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function J1(){b1.asyncTransitions--}function $1(S){if(v5===null)try{var _1=("require"+Math.random()).slice(0,7);v5=(eQ&&eQ[_1]).call(eQ,"timers").setImmediate}catch(B1){v5=function(R1){M3===!1&&(M3=!0,typeof MessageChannel>"u"&&console.error("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 P1=new MessageChannel;P1.port1.onmessage=R1,P1.port2.postMessage(void 0)}}return v5(S)}function d(S){return 1<S.length&&typeof AggregateError==="function"?AggregateError(S):S[0]}function y(S,_1){_1!==b4-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),b4=_1}function E(S,_1,B1){var R1=b1.actQueue;if(R1!==null)if(R1.length!==0)try{v(R1),$1(function(){return E(S,_1,B1)});return}catch(P1){b1.thrownErrors.push(P1)}else b1.actQueue=null;0<b1.thrownErrors.length?(R1=d(b1.thrownErrors),b1.thrownErrors.length=0,B1(R1)):_1(S)}function v(S){if(!x4){x4=!0;var _1=0;try{for(;_1<S.length;_1++){var B1=S[_1];do{b1.didUsePromise=!1;var R1=B1(!1);if(R1!==null){if(b1.didUsePromise){S[_1]=B1,S.splice(0,_1);return}B1=R1}else break}while(1)}S.length=0}catch(P1){S.splice(0,_1+1),b1.thrownErrors.push(P1)}finally{x4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),U1=Symbol.for("react.consumer"),Q1=Symbol.for("react.context"),Y1=Symbol.for("react.forward_ref"),L1=Symbol.for("react.suspense"),M1=Symbol.for("react.suspense_list"),I1=Symbol.for("react.memo"),X1=Symbol.for("react.lazy"),f1=Symbol.for("react.activity"),l1=Symbol.iterator,W1={},S1={isMounted:function(){return!1},enqueueForceUpdate:function(S){Z(S,"forceUpdate")},enqueueReplaceState:function(S){Z(S,"replaceState")},enqueueSetState:function(S){Z(S,"setState")}},v1=Object.assign,c1={};Object.freeze(c1),K.prototype.isReactComponent={},K.prototype.setState=function(S,_1){if(typeof S!=="object"&&typeof S!=="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,_1,"setState")},K.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};var E1={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)."]};for(e5 in E1)E1.hasOwnProperty(e5)&&Q(e5,E1[e5]);X.prototype=K.prototype,E1=W.prototype=new X,E1.constructor=W,v1(E1,K.prototype),E1.isPureReactComponent=!0;var j1=Array.isArray,V0=Symbol.for("react.client.reference"),b1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Z2=Object.prototype.hasOwnProperty,_0=console.createTask?console.createTask:function(){return null};E1={react_stack_bottom_frame:function(S){return S()}};var h2,z2,I2={},f2=E1.react_stack_bottom_frame.bind(E1,M)(),P2=_0(R(M)),B2=!1,A2=/\/+/g,L2=typeof reportError==="function"?reportError:function(S){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var _1=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S==="object"&&S!==null&&typeof S.message==="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(_1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",S);return}console.error(S)},M3=!1,v5=null,b4=0,u4=!1,x4=!1,I6=typeof queueMicrotask==="function"?function(S){queueMicrotask(function(){return queueMicrotask(S)})}:$1;E1=Object.freeze({__proto__:null,c:function(S){return m().useMemoCache(S)}});var e5={map:g,forEach:function(S,_1,B1){g(S,function(){_1.apply(this,arguments)},B1)},count:function(S){var _1=0;return g(S,function(){_1++}),_1},toArray:function(S){return g(S,function(_1){return _1})||[]},only:function(S){if(!P(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};yf.Activity=f1,yf.Children=e5,yf.Component=K,yf.Fragment=e,yf.Profiler=s,yf.PureComponent=W,yf.StrictMode=V,yf.Suspense=L1,yf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b1,yf.__COMPILER_RUNTIME=E1,yf.act=function(S){var _1=b1.actQueue,B1=b4;b4++;var R1=b1.actQueue=_1!==null?_1:[],P1=!1;try{var h1=S()}catch(V1){b1.thrownErrors.push(V1)}if(0<b1.thrownErrors.length)throw y(_1,B1),S=d(b1.thrownErrors),b1.thrownErrors.length=0,S;if(h1!==null&&typeof h1==="object"&&typeof h1.then==="function"){var m1=h1;return I6(function(){P1||u4||(u4=!0,console.error("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 () => ...);"))}),{then:function(V1,J2){P1=!0,m1.then(function(N2){if(y(_1,B1),B1===0){try{v(R1),$1(function(){return E(N2,V1,J2)})}catch(f6){b1.thrownErrors.push(f6)}if(0<b1.thrownErrors.length){var _4=d(b1.thrownErrors);b1.thrownErrors.length=0,J2(_4)}}else V1(N2)},function(N2){y(_1,B1),0<b1.thrownErrors.length?(N2=d(b1.thrownErrors),b1.thrownErrors.length=0,J2(N2)):J2(N2)})}}}var U0=h1;if(y(_1,B1),B1===0&&(v(R1),R1.length!==0&&I6(function(){P1||u4||(u4=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),b1.actQueue=null),0<b1.thrownErrors.length)throw S=d(b1.thrownErrors),b1.thrownErrors.length=0,S;return{then:function(V1,J2){P1=!0,B1===0?(b1.actQueue=R1,$1(function(){return E(U0,V1,J2)})):V1(U0)}}},yf.cache=function(S){return function(){return S.apply(null,arguments)}},yf.cacheSignal=function(){return null},yf.captureOwnerStack=function(){var S=b1.getCurrentStack;return S===null?null:S()},yf.cloneElement=function(S,_1,B1){if(S===null||S===void 0)throw Error("The argument must be a React element, but you passed "+S+".");var R1=v1({},S.props),P1=S.key,h1=S._owner;if(_1!=null){var m1;_:{if(Z2.call(_1,"ref")&&(m1=Object.getOwnPropertyDescriptor(_1,"ref").get)&&m1.isReactWarning){m1=!1;break _}m1=_1.ref!==void 0}m1&&(h1=L()),I(_1)&&(O(_1.key),P1=""+_1.key);for(U0 in _1)!Z2.call(_1,U0)||U0==="key"||U0==="__self"||U0==="__source"||U0==="ref"&&_1.ref===void 0||(R1[U0]=_1[U0])}var U0=arguments.length-2;if(U0===1)R1.children=B1;else if(1<U0){m1=Array(U0);for(var V1=0;V1<U0;V1++)m1[V1]=arguments[V1+2];R1.children=m1}R1=j(S.type,P1,R1,h1,S._debugStack,S._debugTask);for(P1=2;P1<arguments.length;P1++)h(arguments[P1]);return R1},yf.createContext=function(S){return S={$$typeof:Q1,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:U1,_context:S},S._currentRenderer=null,S._currentRenderer2=null,S},yf.createElement=function(S,_1,B1){for(var R1=2;R1<arguments.length;R1++)h(arguments[R1]);R1={};var P1=null;if(_1!=null)for(V1 in z2||!("__self"in _1)||"key"in _1||(z2=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),I(_1)&&(O(_1.key),P1=""+_1.key),_1)Z2.call(_1,V1)&&V1!=="key"&&V1!=="__self"&&V1!=="__source"&&(R1[V1]=_1[V1]);var h1=arguments.length-2;if(h1===1)R1.children=B1;else if(1<h1){for(var m1=Array(h1),U0=0;U0<h1;U0++)m1[U0]=arguments[U0+2];Object.freeze&&Object.freeze(m1),R1.children=m1}if(S&&S.defaultProps)for(V1 in h1=S.defaultProps,h1)R1[V1]===void 0&&(R1[V1]=h1[V1]);P1&&f(R1,typeof S==="function"?S.displayName||S.name||"Unknown":S);var V1=1e4>b1.recentlyCreatedOwnerStacks++;return j(S,P1,R1,L(),V1?Error("react-stack-top-frame"):f2,V1?_0(R(S)):P2)},yf.createRef=function(){var S={current:null};return Object.seal(S),S},yf.forwardRef=function(S){S!=null&&S.$$typeof===I1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!=="function"?console.error("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&S.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var _1={$$typeof:Y1,render:S},B1;return Object.defineProperty(_1,"displayName",{enumerable:!1,configurable:!0,get:function(){return B1},set:function(R1){B1=R1,S.name||S.displayName||(Object.defineProperty(S,"name",{value:R1}),S.displayName=R1)}}),_1},yf.isValidElement=P,yf.lazy=function(S){S={_status:-1,_result:S};var _1={$$typeof:X1,_payload:S,_init:i},B1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return S._ioInfo=B1,_1._debugInfo=[{awaited:B1}],_1},yf.memo=function(S,_1){S==null&&console.error("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S),_1={$$typeof:I1,type:S,compare:_1===void 0?null:_1};var B1;return Object.defineProperty(_1,"displayName",{enumerable:!1,configurable:!0,get:function(){return B1},set:function(R1){B1=R1,S.name||S.displayName||(Object.defineProperty(S,"name",{value:R1}),S.displayName=R1)}}),_1},yf.startTransition=function(S){var _1=b1.T,B1={};B1._updatedFibers=new Set,b1.T=B1;try{var R1=S(),P1=b1.S;P1!==null&&P1(B1,R1),typeof R1==="object"&&R1!==null&&typeof R1.then==="function"&&(b1.asyncTransitions++,R1.then(J1,J1),R1.then(z,L2))}catch(h1){L2(h1)}finally{_1===null&&B1._updatedFibers&&(S=B1._updatedFibers.size,B1._updatedFibers.clear(),10<S&&console.warn("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.")),_1!==null&&B1.types!==null&&(_1.types!==null&&_1.types!==B1.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),_1.types=B1.types),b1.T=_1}},yf.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},yf.use=function(S){return m().use(S)},yf.useActionState=function(S,_1,B1){return m().useActionState(S,_1,B1)},yf.useCallback=function(S,_1){return m().useCallback(S,_1)},yf.useContext=function(S){var _1=m();return S.$$typeof===U1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),_1.useContext(S)},yf.useDebugValue=function(S,_1){return m().useDebugValue(S,_1)},yf.useDeferredValue=function(S,_1){return m().useDeferredValue(S,_1)},yf.useEffect=function(S,_1){return S==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useEffect(S,_1)},yf.useEffectEvent=function(S){return m().useEffectEvent(S)},yf.useId=function(){return m().useId()},yf.useImperativeHandle=function(S,_1,B1){return m().useImperativeHandle(S,_1,B1)},yf.useInsertionEffect=function(S,_1){return S==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useInsertionEffect(S,_1)},yf.useLayoutEffect=function(S,_1){return S==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useLayoutEffect(S,_1)},yf.useMemo=function(S,_1){return m().useMemo(S,_1)},yf.useOptimistic=function(S,_1){return m().useOptimistic(S,_1)},yf.useReducer=function(S,_1,B1){return m().useReducer(S,_1,B1)},yf.useRef=function(S){return m().useRef(S)},yf.useState=function(S){return m().useState(S)},yf.useSyncExternalStore=function(S,_1,B1){return m().useSyncExternalStore(S,_1,B1)},yf.useTransition=function(){return m().useTransition()},yf.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var zL=j4((vf)=>{var X8=u0(i5());(function(){function Q(V){if(V==null)return null;if(typeof V==="function")return V.$$typeof===m?null:V.displayName||V.name||null;if(typeof V==="string")return V;switch(V){case D:return"Fragment";case k:return"Profiler";case j:return"StrictMode";case b:return"Suspense";case x:return"SuspenseList";case i:return"Activity"}if(typeof V==="object")switch(typeof V.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case f:return"Portal";case P:return V.displayName||"Context";case h:return(V._context.displayName||"Context")+".Consumer";case C:var s=V.render;return V=V.displayName,V||(V=s.displayName||s.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case u:return s=V.displayName||null,s!==null?s:Q(V.type)||"Memo";case g:s=V._payload,V=V._init;try{return Q(V(s))}catch(U1){}}return null}function U(V){return""+V}function Z(V){try{U(V);var s=!1}catch(Y1){s=!0}if(s){s=console;var U1=s.error,Q1=typeof Symbol==="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return U1.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Q1),U(V)}}function K(V){if(V===D)return"<>";if(typeof V==="object"&&V!==null&&V.$$typeof===g)return"<...>";try{var s=Q(V);return s?"<"+s+">":"<...>"}catch(U1){return"<...>"}}function X(){var V=J1.A;return V===null?null:V.getOwner()}function W(){return Error("react-stack-top-frame")}function z(V){if($1.call(V,"key")){var s=Object.getOwnPropertyDescriptor(V,"key").get;if(s&&s.isReactWarning)return!1}return V.key!==void 0}function B(V,s){function U1(){E||(E=!0,console.error("%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://react.dev/link/special-props)",s))}U1.isReactWarning=!0,Object.defineProperty(V,"key",{get:U1,configurable:!0})}function O(){var V=Q(this.type);return v[V]||(v[V]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),V=this.props.ref,V!==void 0?V:null}function T(V,s,U1,Q1,Y1,L1){var M1=U1.ref;return V={$$typeof:I,type:V,key:s,props:U1,_owner:Q1},(M1!==void 0?M1:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:O}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y1}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:L1}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function R(V,s,U1,Q1,Y1,L1){var M1=s.children;if(M1!==void 0)if(Q1)if(d(M1)){for(Q1=0;Q1<M1.length;Q1++)L(M1[Q1]);Object.freeze&&Object.freeze(M1)}else console.error("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 L(M1);if($1.call(s,"key")){M1=Q(V);var I1=Object.keys(s).filter(function(f1){return f1!=="key"});Q1=0<I1.length?"{key: someKey, "+I1.join(": ..., ")+": ...}":"{key: someKey}",e[M1+Q1]||(I1=0<I1.length?"{"+I1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
14
14
  let props = %s;
15
15
  <%s {...props} />
16
16
  React keys must be passed directly to JSX without using spread:
17
17
  let props = %s;
18
- <%s key={someKey} {...props} />`,X1,z1,I1,z1),o[z1+X1]=!0)}if(z1=null,J1!==void 0&&(Z(J1),z1=""+J1),W(m)&&(Z(m.key),z1=""+m.key),"key"in m){J1={};for(var K1 in m)K1!=="key"&&(J1[K1]=m[K1])}else J1=m;return z1&&B(J1,typeof V==="function"?V.displayName||V.name||"Unknown":V),O(V,z1,J1,X(),W1,O1)}function L(V){M(V)?V._store&&(V._store.validated=1):typeof V==="object"&&V!==null&&V.$$typeof===p&&(V._payload.status==="fulfilled"?M(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function M(V){return typeof V==="object"&&V!==null&&V.$$typeof===f}var f=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),P=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),a=Symbol.for("react.activity"),t=Symbol.for("react.client.reference"),Q1=X8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$1=Object.prototype.hasOwnProperty,_1=Array.isArray,y=console.createTask?console.createTask:function(){return null};X8={react_stack_bottom_frame:function(V){return V()}};var u,v={},r=X8.react_stack_bottom_frame.bind(X8,Y)(),n=y(K(Y)),o={};jf.Fragment=k,jf.jsx=function(V,m,J1){var X1=1e4>Q1.recentlyCreatedOwnerStacks++;return T(V,m,J1,!1,X1?Error("react-stack-top-frame"):r,X1?y(K(V)):n)},jf.jsxs=function(V,m,J1){var X1=1e4>Q1.recentlyCreatedOwnerStacks++;return T(V,m,J1,!0,X1?Error("react-stack-top-frame"):r,X1?y(K(V)):n)}})()});var hM=j4((Ij)=>{var Y5=b0(l5());(function(){function Q(M,f){return M===f&&(M!==0||1/M===1/f)||M!==M&&f!==f}function U(M,f){O||Y5.startTransition===void 0||(O=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var I=f();if(!T){var k=f();X(I,k)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}k=Y({inst:{value:I,getSnapshot:f}});var S=k[0].inst,D=k[1];return B(function(){S.value=I,S.getSnapshot=f,Z(S)&&D({inst:S})},[M,I,f]),W(function(){return Z(S)&&D({inst:S}),M(function(){Z(S)&&D({inst:S})})},[M]),R(I),I}function Z(M){var f=M.getSnapshot;M=M.value;try{var I=f();return!X(M,I)}catch(k){return!0}}function K(M,f){return f()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var X=typeof Object.is==="function"?Object.is:Q,Y=Y5.useState,W=Y5.useEffect,B=Y5.useLayoutEffect,R=Y5.useDebugValue,O=!1,T=!1,L=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;Ij.useSyncExternalStore=Y5.useSyncExternalStore!==void 0?Y5.useSyncExternalStore:L,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mM=j4((fj)=>{var A3=b0(l5());(function(){function Q(R,O){return R===O&&(R!==0||1/R===1/O)||R!==R&&O!==O}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=hM(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,X=A3.useRef,Y=A3.useEffect,W=A3.useMemo,B=A3.useDebugValue;fj.useSyncExternalStoreWithSelector=function(R,O,T,L,M){var f=X(null);if(f.current===null){var I={hasValue:!1,value:null};f.current=I}else I=f.current;f=W(function(){function S(b){if(!D){if(D=!0,h=b,b=L(b),M!==void 0&&I.hasValue){var x=I.value;if(M(x,b))return P=x}return P=b}if(x=P,Z(h,b))return x;var E=L(b);if(M!==void 0&&M(x,E))return h=b,x;return h=b,P=E}var D=!1,h,P,j=T===void 0?null:T;return[function(){return S(O())},j===null?void 0:function(){return S(j())}]},[O,T,L,M]);var k=K(R,f[0],f[1]);return Y(function(){I.hasValue=!0,I.value=k},[k]),B(k),k},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var iM=j4((Cj)=>{var fX=b0(l5());(function(){function Q(){}function U(T){return""+T}function Z(T,L,M){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(f);var I=!1}catch(k){I=!0}return I&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object"),U(f)),{$$typeof:R,key:f==null?null:""+f,children:T,containerInfo:L,implementation:M}}function K(T,L){if(T==="font")return"";if(typeof L==="string")return L==="use-credentials"?L:""}function X(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function Y(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function W(){var T=O.H;return T===null&&console.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:
18
+ <%s key={someKey} {...props} />`,Q1,M1,I1,M1),e[M1+Q1]=!0)}if(M1=null,U1!==void 0&&(Z(U1),M1=""+U1),z(s)&&(Z(s.key),M1=""+s.key),"key"in s){U1={};for(var X1 in s)X1!=="key"&&(U1[X1]=s[X1])}else U1=s;return M1&&B(U1,typeof V==="function"?V.displayName||V.name||"Unknown":V),T(V,M1,U1,X(),Y1,L1)}function L(V){M(V)?V._store&&(V._store.validated=1):typeof V==="object"&&V!==null&&V.$$typeof===g&&(V._payload.status==="fulfilled"?M(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function M(V){return typeof V==="object"&&V!==null&&V.$$typeof===I}var I=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),P=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),i=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),J1=X8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$1=Object.prototype.hasOwnProperty,d=Array.isArray,y=console.createTask?console.createTask:function(){return null};X8={react_stack_bottom_frame:function(V){return V()}};var E,v={},r=X8.react_stack_bottom_frame.bind(X8,W)(),n=y(K(W)),e={};vf.Fragment=D,vf.jsx=function(V,s,U1){var Q1=1e4>J1.recentlyCreatedOwnerStacks++;return R(V,s,U1,!1,Q1?Error("react-stack-top-frame"):r,Q1?y(K(V)):n)},vf.jsxs=function(V,s,U1){var Q1=1e4>J1.recentlyCreatedOwnerStacks++;return R(V,s,U1,!0,Q1?Error("react-stack-top-frame"):r,Q1?y(K(V)):n)}})()});var rM=j4((VC)=>{var W5=u0(i5());(function(){function Q(M,I){return M===I&&(M!==0||1/M===1/I)||M!==M&&I!==I}function U(M,I){T||W5.startTransition===void 0||(T=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=I();if(!R){var D=I();X(f,D)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),R=!0)}D=W({inst:{value:f,getSnapshot:I}});var j=D[0].inst,k=D[1];return B(function(){j.value=f,j.getSnapshot=I,Z(j)&&k({inst:j})},[M,f,I]),z(function(){return Z(j)&&k({inst:j}),M(function(){Z(j)&&k({inst:j})})},[M]),O(f),f}function Z(M){var I=M.getSnapshot;M=M.value;try{var f=I();return!X(M,f)}catch(D){return!0}}function K(M,I){return I()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var X=typeof Object.is==="function"?Object.is:Q,W=W5.useState,z=W5.useEffect,B=W5.useLayoutEffect,O=W5.useDebugValue,T=!1,R=!1,L=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;VC.useSyncExternalStore=W5.useSyncExternalStore!==void 0?W5.useSyncExternalStore:L,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dM=j4((kC)=>{var A3=u0(i5());(function(){function Q(O,T){return O===T&&(O!==0||1/O===1/T)||O!==O&&T!==T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=rM(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,X=A3.useRef,W=A3.useEffect,z=A3.useMemo,B=A3.useDebugValue;kC.useSyncExternalStoreWithSelector=function(O,T,R,L,M){var I=X(null);if(I.current===null){var f={hasValue:!1,value:null};I.current=f}else f=I.current;I=z(function(){function j(b){if(!k){if(k=!0,h=b,b=L(b),M!==void 0&&f.hasValue){var x=f.value;if(M(x,b))return P=x}return P=b}if(x=P,Z(h,b))return x;var u=L(b);if(M!==void 0&&M(x,u))return h=b,x;return h=b,P=u}var k=!1,h,P,C=R===void 0?null:R;return[function(){return j(T())},C===null?void 0:function(){return j(C())}]},[T,R,L,M]);var D=K(O,I[0],I[1]);return W(function(){f.hasValue=!0,f.value=D},[D]),B(D),D},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var eM=j4((EC)=>{var fX=u0(i5());(function(){function Q(){}function U(R){return""+R}function Z(R,L,M){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(I);var f=!1}catch(D){f=!0}return f&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object"),U(I)),{$$typeof:O,key:I==null?null:""+I,children:R,containerInfo:L,implementation:M}}function K(R,L){if(R==="font")return"";if(typeof L==="string")return L==="use-credentials"?L:""}function X(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function W(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R==="string"?JSON.stringify(R):typeof R==="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function z(){var R=T.H;return R===null&&console.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:
19
19
  1. You might have mismatching versions of React and the renderer (such as React DOM)
20
20
  2. You might be breaking the Rules of Hooks
21
21
  3. You might have more than one copy of React in the same app
22
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},R=Symbol.for("react.portal"),O=fX.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;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"||console.error("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"),Cj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Cj.createPortal=function(T,L){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!L||L.nodeType!==1&&L.nodeType!==9&&L.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(T,L,null,M)},Cj.flushSync=function(T){var L=O.T,M=B.p;try{if(O.T=null,B.p=2,T)return T()}finally{O.T=L,B.p=M,B.d.f()&&console.error("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.")}},Cj.preconnect=function(T,L){typeof T==="string"&&T?L!=null&&typeof L!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",Y(L)):L!=null&&typeof L.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",X(L.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(T)),typeof T==="string"&&(L?(L=L.crossOrigin,L=typeof L==="string"?L==="use-credentials"?L:"":void 0):L=null,B.d.C(T,L))},Cj.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(T));else if(1<arguments.length){var L=arguments[1];typeof L==="object"&&L.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(L)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",Y(L))}typeof T==="string"&&B.d.D(T)},Cj.preinit=function(T,L){if(typeof T==="string"&&T?L==null||typeof L!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",Y(L)):L.as!=="style"&&L.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',Y(L.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(T)),typeof T==="string"&&L&&typeof L.as==="string"){var M=L.as,f=K(M,L.crossOrigin),I=typeof L.integrity==="string"?L.integrity:void 0,k=typeof L.fetchPriority==="string"?L.fetchPriority:void 0;M==="style"?B.d.S(T,typeof L.precedence==="string"?L.precedence:void 0,{crossOrigin:f,integrity:I,fetchPriority:k}):M==="script"&&B.d.X(T,{crossOrigin:f,integrity:I,fetchPriority:k,nonce:typeof L.nonce==="string"?L.nonce:void 0})}},Cj.preinitModule=function(T,L){var M="";if(typeof T==="string"&&T||(M+=" The `href` argument encountered was "+X(T)+"."),L!==void 0&&typeof L!=="object"?M+=" The `options` argument encountered was "+X(L)+".":L&&("as"in L)&&L.as!=="script"&&(M+=" The `as` option encountered was "+Y(L.as)+"."),M)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",M);else switch(M=L&&typeof L.as==="string"?L.as:"script",M){case"script":break;default:M=Y(M),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',M,T)}if(typeof T==="string")if(typeof L==="object"&&L!==null){if(L.as==null||L.as==="script")M=K(L.as,L.crossOrigin),B.d.M(T,{crossOrigin:M,integrity:typeof L.integrity==="string"?L.integrity:void 0,nonce:typeof L.nonce==="string"?L.nonce:void 0})}else L==null&&B.d.M(T)},Cj.preload=function(T,L){var M="";if(typeof T==="string"&&T||(M+=" The `href` argument encountered was "+X(T)+"."),L==null||typeof L!=="object"?M+=" The `options` argument encountered was "+X(L)+".":typeof L.as==="string"&&L.as||(M+=" The `as` option encountered was "+X(L.as)+"."),M&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',M),typeof T==="string"&&typeof L==="object"&&L!==null&&typeof L.as==="string"){M=L.as;var f=K(M,L.crossOrigin);B.d.L(T,M,{crossOrigin:f,integrity:typeof L.integrity==="string"?L.integrity:void 0,nonce:typeof L.nonce==="string"?L.nonce:void 0,type:typeof L.type==="string"?L.type:void 0,fetchPriority:typeof L.fetchPriority==="string"?L.fetchPriority:void 0,referrerPolicy:typeof L.referrerPolicy==="string"?L.referrerPolicy:void 0,imageSrcSet:typeof L.imageSrcSet==="string"?L.imageSrcSet:void 0,imageSizes:typeof L.imageSizes==="string"?L.imageSizes:void 0,media:typeof L.media==="string"?L.media:void 0})}},Cj.preloadModule=function(T,L){var M="";typeof T==="string"&&T||(M+=" The `href` argument encountered was "+X(T)+"."),L!==void 0&&typeof L!=="object"?M+=" The `options` argument encountered was "+X(L)+".":L&&("as"in L)&&typeof L.as!=="string"&&(M+=" The `as` option encountered was "+X(L.as)+"."),M&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',M),typeof T==="string"&&(L?(M=K(L.as,L.crossOrigin),B.d.m(T,{as:typeof L.as==="string"&&L.as!=="script"?L.as:void 0,crossOrigin:M,integrity:typeof L.integrity==="string"?L.integrity:void 0})):B.d.m(T))},Cj.requestFormReset=function(T){B.d.r(T)},Cj.unstable_batchedUpdates=function(T,L){return T(L)},Cj.useFormState=function(T,L,M){return W().useFormState(T,L,M)},Cj.useFormStatus=function(){return W().useHostTransitionStatus()},Cj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var PX=j4((hh,aM)=>{var Vj=b0(iM());aM.exports=Vj});var RJ=j4((tV)=>{var j8=b0(l5());(function(){function Q(V){if(V==null)return null;if(typeof V==="function")return V.$$typeof===t?null:V.displayName||V.name||null;if(typeof V==="string")return V;switch(V){case k:return"Fragment";case D:return"Profiler";case S:return"StrictMode";case b:return"Suspense";case x:return"SuspenseList";case a:return"Activity"}if(typeof V==="object")switch(typeof V.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case I:return"Portal";case P:return V.displayName||"Context";case h:return(V._context.displayName||"Context")+".Consumer";case j:var m=V.render;return V=V.displayName,V||(V=m.displayName||m.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case E:return m=V.displayName||null,m!==null?m:Q(V.type)||"Memo";case p:m=V._payload,V=V._init;try{return Q(V(m))}catch(J1){}}return null}function U(V){return""+V}function Z(V){try{U(V);var m=!1}catch(W1){m=!0}if(m){m=console;var J1=m.error,X1=typeof Symbol==="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return J1.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X1),U(V)}}function K(V){if(V===k)return"<>";if(typeof V==="object"&&V!==null&&V.$$typeof===p)return"<...>";try{var m=Q(V);return m?"<"+m+">":"<...>"}catch(J1){return"<...>"}}function X(){var V=Q1.A;return V===null?null:V.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(V){if($1.call(V,"key")){var m=Object.getOwnPropertyDescriptor(V,"key").get;if(m&&m.isReactWarning)return!1}return V.key!==void 0}function B(V,m){function J1(){u||(u=!0,console.error("%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://react.dev/link/special-props)",m))}J1.isReactWarning=!0,Object.defineProperty(V,"key",{get:J1,configurable:!0})}function R(){var V=Q(this.type);return v[V]||(v[V]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),V=this.props.ref,V!==void 0?V:null}function O(V,m,J1,X1,W1,O1){var z1=J1.ref;return V={$$typeof:f,type:V,key:m,props:J1,_owner:X1},(z1!==void 0?z1:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:R}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O1}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function T(V,m,J1,X1,W1,O1){var z1=m.children;if(z1!==void 0)if(X1)if(_1(z1)){for(X1=0;X1<z1.length;X1++)L(z1[X1]);Object.freeze&&Object.freeze(z1)}else console.error("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 L(z1);if($1.call(m,"key")){z1=Q(V);var I1=Object.keys(m).filter(function(f1){return f1!=="key"});X1=0<I1.length?"{key: someKey, "+I1.join(": ..., ")+": ...}":"{key: someKey}",o[z1+X1]||(I1=0<I1.length?"{"+I1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
22
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},O=Symbol.for("react.portal"),T=fX.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;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"||console.error("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"),EC.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,EC.createPortal=function(R,L){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!L||L.nodeType!==1&&L.nodeType!==9&&L.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(R,L,null,M)},EC.flushSync=function(R){var L=T.T,M=B.p;try{if(T.T=null,B.p=2,R)return R()}finally{T.T=L,B.p=M,B.d.f()&&console.error("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.")}},EC.preconnect=function(R,L){typeof R==="string"&&R?L!=null&&typeof L!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",W(L)):L!=null&&typeof L.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",X(L.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(R)),typeof R==="string"&&(L?(L=L.crossOrigin,L=typeof L==="string"?L==="use-credentials"?L:"":void 0):L=null,B.d.C(R,L))},EC.prefetchDNS=function(R){if(typeof R!=="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(R));else if(1<arguments.length){var L=arguments[1];typeof L==="object"&&L.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",W(L)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",W(L))}typeof R==="string"&&B.d.D(R)},EC.preinit=function(R,L){if(typeof R==="string"&&R?L==null||typeof L!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",W(L)):L.as!=="style"&&L.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',W(L.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",X(R)),typeof R==="string"&&L&&typeof L.as==="string"){var M=L.as,I=K(M,L.crossOrigin),f=typeof L.integrity==="string"?L.integrity:void 0,D=typeof L.fetchPriority==="string"?L.fetchPriority:void 0;M==="style"?B.d.S(R,typeof L.precedence==="string"?L.precedence:void 0,{crossOrigin:I,integrity:f,fetchPriority:D}):M==="script"&&B.d.X(R,{crossOrigin:I,integrity:f,fetchPriority:D,nonce:typeof L.nonce==="string"?L.nonce:void 0})}},EC.preinitModule=function(R,L){var M="";if(typeof R==="string"&&R||(M+=" The `href` argument encountered was "+X(R)+"."),L!==void 0&&typeof L!=="object"?M+=" The `options` argument encountered was "+X(L)+".":L&&("as"in L)&&L.as!=="script"&&(M+=" The `as` option encountered was "+W(L.as)+"."),M)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",M);else switch(M=L&&typeof L.as==="string"?L.as:"script",M){case"script":break;default:M=W(M),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',M,R)}if(typeof R==="string")if(typeof L==="object"&&L!==null){if(L.as==null||L.as==="script")M=K(L.as,L.crossOrigin),B.d.M(R,{crossOrigin:M,integrity:typeof L.integrity==="string"?L.integrity:void 0,nonce:typeof L.nonce==="string"?L.nonce:void 0})}else L==null&&B.d.M(R)},EC.preload=function(R,L){var M="";if(typeof R==="string"&&R||(M+=" The `href` argument encountered was "+X(R)+"."),L==null||typeof L!=="object"?M+=" The `options` argument encountered was "+X(L)+".":typeof L.as==="string"&&L.as||(M+=" The `as` option encountered was "+X(L.as)+"."),M&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',M),typeof R==="string"&&typeof L==="object"&&L!==null&&typeof L.as==="string"){M=L.as;var I=K(M,L.crossOrigin);B.d.L(R,M,{crossOrigin:I,integrity:typeof L.integrity==="string"?L.integrity:void 0,nonce:typeof L.nonce==="string"?L.nonce:void 0,type:typeof L.type==="string"?L.type:void 0,fetchPriority:typeof L.fetchPriority==="string"?L.fetchPriority:void 0,referrerPolicy:typeof L.referrerPolicy==="string"?L.referrerPolicy:void 0,imageSrcSet:typeof L.imageSrcSet==="string"?L.imageSrcSet:void 0,imageSizes:typeof L.imageSizes==="string"?L.imageSizes:void 0,media:typeof L.media==="string"?L.media:void 0})}},EC.preloadModule=function(R,L){var M="";typeof R==="string"&&R||(M+=" The `href` argument encountered was "+X(R)+"."),L!==void 0&&typeof L!=="object"?M+=" The `options` argument encountered was "+X(L)+".":L&&("as"in L)&&typeof L.as!=="string"&&(M+=" The `as` option encountered was "+X(L.as)+"."),M&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',M),typeof R==="string"&&(L?(M=K(L.as,L.crossOrigin),B.d.m(R,{as:typeof L.as==="string"&&L.as!=="script"?L.as:void 0,crossOrigin:M,integrity:typeof L.integrity==="string"?L.integrity:void 0})):B.d.m(R))},EC.requestFormReset=function(R){B.d.r(R)},EC.unstable_batchedUpdates=function(R,L){return R(L)},EC.useFormState=function(R,L,M){return z().useFormState(R,L,M)},EC.useFormStatus=function(){return z().useHostTransitionStatus()},EC.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var PX=j4((ih,_T)=>{var bC=u0(eM());_T.exports=bC});var wJ=j4((QV)=>{var C8=u0(i5());(function(){function Q(V){if(V==null)return null;if(typeof V==="function")return V.$$typeof===m?null:V.displayName||V.name||null;if(typeof V==="string")return V;switch(V){case D:return"Fragment";case k:return"Profiler";case j:return"StrictMode";case b:return"Suspense";case x:return"SuspenseList";case i:return"Activity"}if(typeof V==="object")switch(typeof V.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case f:return"Portal";case P:return V.displayName||"Context";case h:return(V._context.displayName||"Context")+".Consumer";case C:var s=V.render;return V=V.displayName,V||(V=s.displayName||s.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case u:return s=V.displayName||null,s!==null?s:Q(V.type)||"Memo";case g:s=V._payload,V=V._init;try{return Q(V(s))}catch(U1){}}return null}function U(V){return""+V}function Z(V){try{U(V);var s=!1}catch(Y1){s=!0}if(s){s=console;var U1=s.error,Q1=typeof Symbol==="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return U1.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Q1),U(V)}}function K(V){if(V===D)return"<>";if(typeof V==="object"&&V!==null&&V.$$typeof===g)return"<...>";try{var s=Q(V);return s?"<"+s+">":"<...>"}catch(U1){return"<...>"}}function X(){var V=J1.A;return V===null?null:V.getOwner()}function W(){return Error("react-stack-top-frame")}function z(V){if($1.call(V,"key")){var s=Object.getOwnPropertyDescriptor(V,"key").get;if(s&&s.isReactWarning)return!1}return V.key!==void 0}function B(V,s){function U1(){E||(E=!0,console.error("%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://react.dev/link/special-props)",s))}U1.isReactWarning=!0,Object.defineProperty(V,"key",{get:U1,configurable:!0})}function O(){var V=Q(this.type);return v[V]||(v[V]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),V=this.props.ref,V!==void 0?V:null}function T(V,s,U1,Q1,Y1,L1){var M1=U1.ref;return V={$$typeof:I,type:V,key:s,props:U1,_owner:Q1},(M1!==void 0?M1:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:O}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y1}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:L1}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function R(V,s,U1,Q1,Y1,L1){var M1=s.children;if(M1!==void 0)if(Q1)if(d(M1)){for(Q1=0;Q1<M1.length;Q1++)L(M1[Q1]);Object.freeze&&Object.freeze(M1)}else console.error("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 L(M1);if($1.call(s,"key")){M1=Q(V);var I1=Object.keys(s).filter(function(f1){return f1!=="key"});Q1=0<I1.length?"{key: someKey, "+I1.join(": ..., ")+": ...}":"{key: someKey}",e[M1+Q1]||(I1=0<I1.length?"{"+I1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
23
23
  let props = %s;
24
24
  <%s {...props} />
25
25
  React keys must be passed directly to JSX without using spread:
26
26
  let props = %s;
27
- <%s key={someKey} {...props} />`,X1,z1,I1,z1),o[z1+X1]=!0)}if(z1=null,J1!==void 0&&(Z(J1),z1=""+J1),W(m)&&(Z(m.key),z1=""+m.key),"key"in m){J1={};for(var K1 in m)K1!=="key"&&(J1[K1]=m[K1])}else J1=m;return z1&&B(J1,typeof V==="function"?V.displayName||V.name||"Unknown":V),O(V,z1,J1,X(),W1,O1)}function L(V){M(V)?V._store&&(V._store.validated=1):typeof V==="object"&&V!==null&&V.$$typeof===p&&(V._payload.status==="fulfilled"?M(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function M(V){return typeof V==="object"&&V!==null&&V.$$typeof===f}var f=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),P=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),a=Symbol.for("react.activity"),t=Symbol.for("react.client.reference"),Q1=j8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$1=Object.prototype.hasOwnProperty,_1=Array.isArray,y=console.createTask?console.createTask:function(){return null};j8={react_stack_bottom_frame:function(V){return V()}};var u,v={},r=j8.react_stack_bottom_frame.bind(j8,Y)(),n=y(K(Y)),o={};tV.Fragment=k,tV.jsxDEV=function(V,m,J1,X1){var W1=1e4>Q1.recentlyCreatedOwnerStacks++;return T(V,m,J1,X1,W1?Error("react-stack-top-frame"):r,W1?y(K(V)):n)}})()});var MR=j4((JS)=>{(function(){function Q(){if(j=!1,p){var u=JS.unstable_now();Q1=u;var v=!0;try{_:{h=!1,P&&(P=!1,x(a),a=-1),D=!0;var r=S;try{J:{Y(u);for(k=Z(M);k!==null&&!(k.expirationTime>u&&B());){var n=k.callback;if(typeof n==="function"){k.callback=null,S=k.priorityLevel;var o=n(k.expirationTime<=u);if(u=JS.unstable_now(),typeof o==="function"){k.callback=o,Y(u),v=!0;break J}k===Z(M)&&K(M),Y(u)}else K(M);k=Z(M)}if(k!==null)v=!0;else{var V=Z(f);V!==null&&R(W,V.startTime-u),v=!1}}break _}finally{k=null,S=r,D=!1}v=void 0}}finally{v?$1():p=!1}}}function U(u,v){var r=u.length;u.push(v);_:for(;0<r;){var n=r-1>>>1,o=u[n];if(0<X(o,v))u[n]=v,u[r]=o,r=n;else break _}}function Z(u){return u.length===0?null:u[0]}function K(u){if(u.length===0)return null;var v=u[0],r=u.pop();if(r!==v){u[0]=r;_:for(var n=0,o=u.length,V=o>>>1;n<V;){var m=2*(n+1)-1,J1=u[m],X1=m+1,W1=u[X1];if(0>X(J1,r))X1<o&&0>X(W1,J1)?(u[n]=W1,u[X1]=r,n=X1):(u[n]=J1,u[m]=r,n=m);else if(X1<o&&0>X(W1,r))u[n]=W1,u[X1]=r,n=X1;else break _}}return v}function X(u,v){var r=u.sortIndex-v.sortIndex;return r!==0?r:u.id-v.id}function Y(u){for(var v=Z(f);v!==null;){if(v.callback===null)K(f);else if(v.startTime<=u)K(f),v.sortIndex=v.expirationTime,U(M,v);else break;v=Z(f)}}function W(u){if(P=!1,Y(u),!h)if(Z(M)!==null)h=!0,p||(p=!0,$1());else{var v=Z(f);v!==null&&R(W,v.startTime-u)}}function B(){return j?!0:JS.unstable_now()-Q1<t?!1:!0}function R(u,v){a=b(function(){u(JS.unstable_now())},v)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),JS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var O=performance;JS.unstable_now=function(){return O.now()}}else{var T=Date,L=T.now();JS.unstable_now=function(){return T.now()-L}}var M=[],f=[],I=1,k=null,S=3,D=!1,h=!1,P=!1,j=!1,b=typeof setTimeout==="function"?setTimeout:null,x=typeof clearTimeout==="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null,p=!1,a=-1,t=5,Q1=-1;if(typeof E==="function")var $1=function(){E(Q)};else if(typeof MessageChannel<"u"){var _1=new MessageChannel,y=_1.port2;_1.port1.onmessage=Q,$1=function(){y.postMessage(null)}}else $1=function(){b(Q,0)};JS.unstable_IdlePriority=5,JS.unstable_ImmediatePriority=1,JS.unstable_LowPriority=4,JS.unstable_NormalPriority=3,JS.unstable_Profiling=null,JS.unstable_UserBlockingPriority=2,JS.unstable_cancelCallback=function(u){u.callback=null},JS.unstable_forceFrameRate=function(u){0>u||125<u?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):t=0<u?Math.floor(1000/u):5},JS.unstable_getCurrentPriorityLevel=function(){return S},JS.unstable_next=function(u){switch(S){case 1:case 2:case 3:var v=3;break;default:v=S}var r=S;S=v;try{return u()}finally{S=r}},JS.unstable_requestPaint=function(){j=!0},JS.unstable_runWithPriority=function(u,v){switch(u){case 1:case 2:case 3:case 4:case 5:break;default:u=3}var r=S;S=u;try{return v()}finally{S=r}},JS.unstable_scheduleCallback=function(u,v,r){var n=JS.unstable_now();switch(typeof r==="object"&&r!==null?(r=r.delay,r=typeof r==="number"&&0<r?n+r:n):r=n,u){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5000}return o=r+o,u={id:I++,callback:v,priorityLevel:u,startTime:r,expirationTime:o,sortIndex:-1},r>n?(u.sortIndex=r,U(f,u),Z(M)===null&&u===Z(f)&&(P?(x(a),a=-1):P=!0,R(W,r-n))):(u.sortIndex=o,U(M,u),h||D||(h=!0,p||(p=!0,$1()))),u},JS.unstable_shouldYield=B,JS.unstable_wrapCallback=function(u){var v=S;return function(){var r=S;S=v;try{return u.apply(this,arguments)}finally{S=r}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var TR=j4(($S)=>{var Z0=b0(MR()),J9=b0(l5()),xX=b0(PX());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],F=a0(_)?_.slice():o1({},_);return F[G]=U(_[G],J,$+1,q),F}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return K(_,J,$,0)}}function K(_,J,$,q){var G=J[q],F=a0(_)?_.slice():o1({},_);return q+1===J.length?(F[$[q]]=F[G],a0(F)?F.splice(G,1):delete F[G]):F[G]=K(_[G],J,$,q+1),F}function X(_,J,$){var q=J[$],G=a0(_)?_.slice():o1({},_);if($+1===J.length)return a0(G)?G.splice(q,1):delete G[q],G;return G[q]=X(_[q],J,$+1),G}function Y(){return!1}function W(){return null}function B(){console.error("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://react.dev/link/rules-of-hooks")}function R(){console.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().")}function O(){}function T(){}function L(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function M(_,J,$,q){return new FO(_,J,$,q)}function f(_,J){_.context===g3&&(aG(_.current,2,J,_,null,null),a8())}function I(_,J){if(L5!==null){var $=J.staleFamilies;J=J.updatedFamilies,b9(),WH(_.current,J,$),a8()}}function k(_){L5=_}function S(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function D(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function h(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function P(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function j(_){if(D(_)!==_)throw Error("Unable to find node on an unmounted component.")}function b(_){var J=_.alternate;if(!J){if(J=D(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var G=$.return;if(G===null)break;var F=G.alternate;if(F===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===F.child){for(F=G.child;F;){if(F===$)return j(G),_;if(F===q)return j(G),J;F=F.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=F;else{for(var H=!1,z=G.child;z;){if(z===$){H=!0,$=G,q=F;break}if(z===q){H=!0,q=G,$=F;break}z=z.sibling}if(!H){for(z=F.child;z;){if(z===$){H=!0,$=F,q=G;break}if(z===q){H=!0,q=F,$=G;break}z=z.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($.alternate!==q)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($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function x(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=x(_),J!==null)return J;_=_.sibling}return null}function E(_){if(_===null||typeof _!=="object")return null;return _=RA&&_[RA]||_["@@iterator"],typeof _==="function"?_:null}function p(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Vw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case J7:return"Fragment";case _Z:return"Profiler";case r$:return"StrictMode";case $Z:return"Suspense";case QZ:return"SuspenseList";case qZ:return"Activity"}if(typeof _==="object")switch(typeof _.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case _7:return"Portal";case z4:return _.displayName||"Context";case JZ:return(_._context.displayName||"Context")+".Consumer";case d9:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case d$:return J=_.displayName||null,J!==null?J:p(_.type)||"Memo";case q5:J=_._payload,_=_._init;try{return p(_(J))}catch($){}}return null}function a(_){return typeof _.tag==="number"?t(_):typeof _.name==="string"?_.name:null}function t(_){var J=_.type;switch(_.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(J._context.displayName||"Context")+".Consumer";case 10:return J.displayName||"Context";case 18:return"DehydratedFragment";case 11:return _=J.render,_=_.displayName||_.name||"",J.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return J;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return p(J);case 8:return J===r$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;break;case 29:if(J=_._debugInfo,J!=null){for(var $=J.length-1;0<=$;$--)if(typeof J[$].name==="string")return J[$].name}if(_.return!==null)return t(_.return)}return null}function Q1(_){return{current:_}}function $1(_,J){0>d4?console.error("Unexpected pop."):(J!==GZ[d4]&&console.error("Unexpected Fiber popped."),_.current=UZ[d4],UZ[d4]=null,GZ[d4]=null,d4--)}function _1(_,J,$){d4++,UZ[d4]=_.current,GZ[d4]=$,_.current=J}function y(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function u(_,J){_1(E3,J,_),_1(i9,_,_),_1(v3,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?lW(J):G3:G3;break;default:if($=J.tagName,J=J.namespaceURI)J=lW(J),J=rW(J,$);else switch($){case"svg":J=E7;break;case"math":J=lQ;break;default:J=G3}}$=$.toLowerCase(),$=H9(null,$),$={context:J,ancestorInfo:$},$1(v3,_),_1(v3,$,_)}function v(_){$1(v3,_),$1(i9,_),$1(E3,_)}function r(){return y(v3.current)}function n(_){_.memoizedState!==null&&_1(i$,_,_);var J=y(v3.current),$=_.type,q=rW(J.context,$);$=H9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(_1(i9,_,_),_1(v3,q,_))}function o(_){i9.current===_&&($1(v3,_),$1(i9,_)),i$.current===_&&($1(i$,_),u_._currentValue=K8)}function V(){}function m(){if(a9===0){OA=console.log,wA=console.info,IA=console.warn,fA=console.error,PA=console.group,NA=console.groupCollapsed,jA=console.groupEnd;var _={configurable:!0,enumerable:!0,value:V,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}a9++}function J1(){if(a9--,a9===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:o1({},_,{value:OA}),info:o1({},_,{value:wA}),warn:o1({},_,{value:IA}),error:o1({},_,{value:fA}),group:o1({},_,{value:PA}),groupCollapsed:o1({},_,{value:NA}),groupEnd:o1({},_,{value:jA})})}0>a9&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function X1(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
27
+ <%s key={someKey} {...props} />`,Q1,M1,I1,M1),e[M1+Q1]=!0)}if(M1=null,U1!==void 0&&(Z(U1),M1=""+U1),z(s)&&(Z(s.key),M1=""+s.key),"key"in s){U1={};for(var X1 in s)X1!=="key"&&(U1[X1]=s[X1])}else U1=s;return M1&&B(U1,typeof V==="function"?V.displayName||V.name||"Unknown":V),T(V,M1,U1,X(),Y1,L1)}function L(V){M(V)?V._store&&(V._store.validated=1):typeof V==="object"&&V!==null&&V.$$typeof===g&&(V._payload.status==="fulfilled"?M(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function M(V){return typeof V==="object"&&V!==null&&V.$$typeof===I}var I=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),P=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),i=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),J1=C8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$1=Object.prototype.hasOwnProperty,d=Array.isArray,y=console.createTask?console.createTask:function(){return null};C8={react_stack_bottom_frame:function(V){return V()}};var E,v={},r=C8.react_stack_bottom_frame.bind(C8,W)(),n=y(K(W)),e={};QV.Fragment=D,QV.jsxDEV=function(V,s,U1,Q1){var Y1=1e4>J1.recentlyCreatedOwnerStacks++;return R(V,s,U1,Q1,Y1?Error("react-stack-top-frame"):r,Y1?y(K(V)):n)}})()});var fR=j4((FV)=>{(function(){function Q(){if(C=!1,g){var E=FV.unstable_now();J1=E;var v=!0;try{_:{h=!1,P&&(P=!1,x(i),i=-1),k=!0;var r=j;try{J:{W(E);for(D=Z(M);D!==null&&!(D.expirationTime>E&&B());){var n=D.callback;if(typeof n==="function"){D.callback=null,j=D.priorityLevel;var e=n(D.expirationTime<=E);if(E=FV.unstable_now(),typeof e==="function"){D.callback=e,W(E),v=!0;break J}D===Z(M)&&K(M),W(E)}else K(M);D=Z(M)}if(D!==null)v=!0;else{var V=Z(I);V!==null&&O(z,V.startTime-E),v=!1}}break _}finally{D=null,j=r,k=!1}v=void 0}}finally{v?$1():g=!1}}}function U(E,v){var r=E.length;E.push(v);_:for(;0<r;){var n=r-1>>>1,e=E[n];if(0<X(e,v))E[n]=v,E[r]=e,r=n;else break _}}function Z(E){return E.length===0?null:E[0]}function K(E){if(E.length===0)return null;var v=E[0],r=E.pop();if(r!==v){E[0]=r;_:for(var n=0,e=E.length,V=e>>>1;n<V;){var s=2*(n+1)-1,U1=E[s],Q1=s+1,Y1=E[Q1];if(0>X(U1,r))Q1<e&&0>X(Y1,U1)?(E[n]=Y1,E[Q1]=r,n=Q1):(E[n]=U1,E[s]=r,n=s);else if(Q1<e&&0>X(Y1,r))E[n]=Y1,E[Q1]=r,n=Q1;else break _}}return v}function X(E,v){var r=E.sortIndex-v.sortIndex;return r!==0?r:E.id-v.id}function W(E){for(var v=Z(I);v!==null;){if(v.callback===null)K(I);else if(v.startTime<=E)K(I),v.sortIndex=v.expirationTime,U(M,v);else break;v=Z(I)}}function z(E){if(P=!1,W(E),!h)if(Z(M)!==null)h=!0,g||(g=!0,$1());else{var v=Z(I);v!==null&&O(z,v.startTime-E)}}function B(){return C?!0:FV.unstable_now()-J1<m?!1:!0}function O(E,v){i=b(function(){E(FV.unstable_now())},v)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),FV.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var T=performance;FV.unstable_now=function(){return T.now()}}else{var R=Date,L=R.now();FV.unstable_now=function(){return R.now()-L}}var M=[],I=[],f=1,D=null,j=3,k=!1,h=!1,P=!1,C=!1,b=typeof setTimeout==="function"?setTimeout:null,x=typeof clearTimeout==="function"?clearTimeout:null,u=typeof setImmediate<"u"?setImmediate:null,g=!1,i=-1,m=5,J1=-1;if(typeof u==="function")var $1=function(){u(Q)};else if(typeof MessageChannel<"u"){var d=new MessageChannel,y=d.port2;d.port1.onmessage=Q,$1=function(){y.postMessage(null)}}else $1=function(){b(Q,0)};FV.unstable_IdlePriority=5,FV.unstable_ImmediatePriority=1,FV.unstable_LowPriority=4,FV.unstable_NormalPriority=3,FV.unstable_Profiling=null,FV.unstable_UserBlockingPriority=2,FV.unstable_cancelCallback=function(E){E.callback=null},FV.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<E?Math.floor(1000/E):5},FV.unstable_getCurrentPriorityLevel=function(){return j},FV.unstable_next=function(E){switch(j){case 1:case 2:case 3:var v=3;break;default:v=j}var r=j;j=v;try{return E()}finally{j=r}},FV.unstable_requestPaint=function(){C=!0},FV.unstable_runWithPriority=function(E,v){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var r=j;j=E;try{return v()}finally{j=r}},FV.unstable_scheduleCallback=function(E,v,r){var n=FV.unstable_now();switch(typeof r==="object"&&r!==null?(r=r.delay,r=typeof r==="number"&&0<r?n+r:n):r=n,E){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1e4;break;default:e=5000}return e=r+e,E={id:f++,callback:v,priorityLevel:E,startTime:r,expirationTime:e,sortIndex:-1},r>n?(E.sortIndex=r,U(I,E),Z(M)===null&&E===Z(I)&&(P?(x(i),i=-1):P=!0,O(z,r-n))):(E.sortIndex=e,U(M,E),h||k||(h=!0,g||(g=!0,$1()))),E},FV.unstable_shouldYield=B,FV.unstable_wrapCallback=function(E){var v=j;return function(){var r=j;j=v;try{return E.apply(this,arguments)}finally{j=r}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var PR=j4((KV)=>{var K0=u0(fR()),$9=u0(i5()),hX=u0(PX());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],F=s0(_)?_.slice():o1({},_);return F[G]=U(_[G],J,$+1,q),F}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return K(_,J,$,0)}}function K(_,J,$,q){var G=J[q],F=s0(_)?_.slice():o1({},_);return q+1===J.length?(F[$[q]]=F[G],s0(F)?F.splice(G,1):delete F[G]):F[G]=K(_[G],J,$,q+1),F}function X(_,J,$){var q=J[$],G=s0(_)?_.slice():o1({},_);if($+1===J.length)return s0(G)?G.splice(q,1):delete G[q],G;return G[q]=X(_[q],J,$+1),G}function W(){return!1}function z(){return null}function B(){console.error("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://react.dev/link/rules-of-hooks")}function O(){console.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().")}function T(){}function R(){}function L(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function M(_,J,$,q){return new BO(_,J,$,q)}function I(_,J){_.context===c3&&(aG(_.current,2,J,_,null,null),s8())}function f(_,J){if(O5!==null){var $=J.staleFamilies;J=J.updatedFamilies,x9(),TH(_.current,J,$),s8()}}function D(_){O5=_}function j(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function k(_){var J=_,$=_;if(_.alternate)for(;J.return;)J=J.return;else{_=J;do J=_,(J.flags&4098)!==0&&($=J.return),_=J.return;while(_)}return J.tag===3?$:null}function h(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function P(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function C(_){if(k(_)!==_)throw Error("Unable to find node on an unmounted component.")}function b(_){var J=_.alternate;if(!J){if(J=k(_),J===null)throw Error("Unable to find node on an unmounted component.");return J!==_?null:_}for(var $=_,q=J;;){var G=$.return;if(G===null)break;var F=G.alternate;if(F===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===F.child){for(F=G.child;F;){if(F===$)return C(G),_;if(F===q)return C(G),J;F=F.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=F;else{for(var Y=!1,A=G.child;A;){if(A===$){Y=!0,$=G,q=F;break}if(A===q){Y=!0,q=G,$=F;break}A=A.sibling}if(!Y){for(A=F.child;A;){if(A===$){Y=!0,$=F,q=G;break}if(A===q){Y=!0,q=F,$=G;break}A=A.sibling}if(!Y)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($.alternate!==q)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($.tag!==3)throw Error("Unable to find node on an unmounted component.");return $.stateNode.current===$?_:J}function x(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=x(_),J!==null)return J;_=_.sibling}return null}function u(_){if(_===null||typeof _!=="object")return null;return _=Nz&&_[Nz]||_["@@iterator"],typeof _==="function"?_:null}function g(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===bw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case $7:return"Fragment";case _Z:return"Profiler";case i$:return"StrictMode";case $Z:return"Suspense";case QZ:return"SuspenseList";case qZ:return"Activity"}if(typeof _==="object")switch(typeof _.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case J7:return"Portal";case M4:return _.displayName||"Context";case JZ:return(_._context.displayName||"Context")+".Consumer";case a9:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case a$:return J=_.displayName||null,J!==null?J:g(_.type)||"Memo";case U5:J=_._payload,_=_._init;try{return g(_(J))}catch($){}}return null}function i(_){return typeof _.tag==="number"?m(_):typeof _.name==="string"?_.name:null}function m(_){var J=_.type;switch(_.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(J._context.displayName||"Context")+".Consumer";case 10:return J.displayName||"Context";case 18:return"DehydratedFragment";case 11:return _=J.render,_=_.displayName||_.name||"",J.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return J;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return g(J);case 8:return J===i$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof J==="function")return J.displayName||J.name||null;if(typeof J==="string")return J;break;case 29:if(J=_._debugInfo,J!=null){for(var $=J.length-1;0<=$;$--)if(typeof J[$].name==="string")return J[$].name}if(_.return!==null)return m(_.return)}return null}function J1(_){return{current:_}}function $1(_,J){0>a4?console.error("Unexpected pop."):(J!==GZ[a4]&&console.error("Unexpected Fiber popped."),_.current=UZ[a4],UZ[a4]=null,GZ[a4]=null,a4--)}function d(_,J,$){a4++,UZ[a4]=_.current,GZ[a4]=$,_.current=J}function y(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function E(_,J){d(u3,J,_),d(s9,_,_),d(b3,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?tW(J):F3:F3;break;default:if($=J.tagName,J=J.namespaceURI)J=tW(J),J=oW(J,$);else switch($){case"svg":J=b7;break;case"math":J=dQ;break;default:J=F3}}$=$.toLowerCase(),$=W9(null,$),$={context:J,ancestorInfo:$},$1(b3,_),d(b3,$,_)}function v(_){$1(b3,_),$1(s9,_),$1(u3,_)}function r(){return y(b3.current)}function n(_){_.memoizedState!==null&&d(s$,_,_);var J=y(b3.current),$=_.type,q=oW(J.context,$);$=W9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(d(s9,_,_),d(b3,q,_))}function e(_){s9.current===_&&($1(b3,_),$1(s9,_)),s$.current===_&&($1(s$,_),m_._currentValue=K8)}function V(){}function s(){if(t9===0){Cz=console.log,Sz=console.info,jz=console.warn,Vz=console.error,kz=console.group,Dz=console.groupCollapsed,yz=console.groupEnd;var _={configurable:!0,enumerable:!0,value:V,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}t9++}function U1(){if(t9--,t9===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:o1({},_,{value:Cz}),info:o1({},_,{value:Sz}),warn:o1({},_,{value:jz}),error:o1({},_,{value:Vz}),group:o1({},_,{value:kz}),groupCollapsed:o1({},_,{value:Dz}),groupEnd:o1({},_,{value:yz})})}0>t9&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Q1(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
28
28
  `)&&(_=_.slice(29)),J=_.indexOf(`
29
29
  `),J!==-1&&(_=_.slice(J+1)),J=_.indexOf("react_stack_bottom_frame"),J!==-1&&(J=_.lastIndexOf(`
30
- `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function W1(_){if(ZZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);ZZ=J&&J[1]||"",CA=-1<$.stack.indexOf(`
30
+ `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function Y1(_){if(ZZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);ZZ=J&&J[1]||"",vz=-1<$.stack.indexOf(`
31
31
  at`)?" (<anonymous>)":-1<$.stack.indexOf("@")?"@unknown:0:0":""}return`
32
- `+ZZ+_+CA}function O1(_,J){if(!_||FZ)return"";var $=KZ.get(_);if($!==void 0)return $;FZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=G1.H,G1.H=null,m();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(L1){var q1=L1}Reflect.construct(_,[],c)}else{try{c.call()}catch(L1){q1=L1}_.call(c.prototype)}}else{try{throw Error()}catch(L1){q1=L1}(c=_())&&typeof c.catch==="function"&&c.catch(function(){})}}catch(L1){if(L1&&q1&&typeof L1.stack==="string")return[L1.stack,q1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var F=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");F&&F.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var H=G.DetermineComponentFrameRoot(),z=H[0],w=H[1];if(z&&w){var N=z.split(`
33
- `),i=w.split(`
34
- `);for(H=F=0;F<N.length&&!N[F].includes("DetermineComponentFrameRoot");)F++;for(;H<i.length&&!i[H].includes("DetermineComponentFrameRoot");)H++;if(F===N.length||H===i.length)for(F=N.length-1,H=i.length-1;1<=F&&0<=H&&N[F]!==i[H];)H--;for(;1<=F&&0<=H;F--,H--)if(N[F]!==i[H]){if(F!==1||H!==1)do if(F--,H--,0>H||N[F]!==i[H]){var s=`
35
- `+N[F].replace(" at new "," at ");return _.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",_.displayName)),typeof _==="function"&&KZ.set(_,s),s}while(1<=F&&0<=H);break}}}finally{FZ=!1,G1.H=q,J1(),Error.prepareStackTrace=$}return N=(N=_?_.displayName||_.name:"")?W1(N):"",typeof _==="function"&&KZ.set(_,N),N}function z1(_,J){switch(_.tag){case 26:case 27:case 5:return W1(_.type);case 16:return W1("Lazy");case 13:return _.child!==J&&J!==null?W1("Suspense Fallback"):W1("Suspense");case 19:return W1("SuspenseList");case 0:case 15:return O1(_.type,!1);case 11:return O1(_.type.render,!1);case 1:return O1(_.type,!0);case 31:return W1("Activity");default:return""}}function I1(_){try{var J="",$=null;do{J+=z1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var F=q[G];if(typeof F.name==="string"){var H=J;_:{var{name:z,env:w,debugLocation:N}=F;if(N!=null){var i=X1(N),s=i.lastIndexOf(`
36
- `),c=s===-1?i:i.slice(s+1);if(c.indexOf(z)!==-1){var q1=`
37
- `+c;break _}}q1=W1(z+(w?" ["+w+"]":""))}J=H+q1}}$=_,_=_.return}while(_);return J}catch(L1){return`
38
- Error generating stack: `+L1.message+`
39
- `+L1.stack}}function K1(_){return(_=_?_.displayName||_.name:"")?W1(_):""}function f1(){if(U5===null)return null;var _=U5._debugOwner;return _!=null?a(_):null}function l1(){if(U5===null)return"";var _=U5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=W1(_.type);break;case 13:J+=W1("Suspense");break;case 19:J+=W1("SuspenseList");break;case 31:J+=W1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=K1(_.type));break;case 11:_._debugOwner||J!==""||(J+=K1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=X1(q);G!==""&&(J+=`
32
+ `+ZZ+_+vz}function L1(_,J){if(!_||FZ)return"";var $=KZ.get(_);if($!==void 0)return $;FZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=Z1.H,Z1.H=null,s();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(T1){var q1=T1}Reflect.construct(_,[],c)}else{try{c.call()}catch(T1){q1=T1}_.call(c.prototype)}}else{try{throw Error()}catch(T1){q1=T1}(c=_())&&typeof c.catch==="function"&&c.catch(function(){})}}catch(T1){if(T1&&q1&&typeof T1.stack==="string")return[T1.stack,q1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var F=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");F&&F.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Y=G.DetermineComponentFrameRoot(),A=Y[0],w=Y[1];if(A&&w){var N=A.split(`
33
+ `),t=w.split(`
34
+ `);for(Y=F=0;F<N.length&&!N[F].includes("DetermineComponentFrameRoot");)F++;for(;Y<t.length&&!t[Y].includes("DetermineComponentFrameRoot");)Y++;if(F===N.length||Y===t.length)for(F=N.length-1,Y=t.length-1;1<=F&&0<=Y&&N[F]!==t[Y];)Y--;for(;1<=F&&0<=Y;F--,Y--)if(N[F]!==t[Y]){if(F!==1||Y!==1)do if(F--,Y--,0>Y||N[F]!==t[Y]){var o=`
35
+ `+N[F].replace(" at new "," at ");return _.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",_.displayName)),typeof _==="function"&&KZ.set(_,o),o}while(1<=F&&0<=Y);break}}}finally{FZ=!1,Z1.H=q,U1(),Error.prepareStackTrace=$}return N=(N=_?_.displayName||_.name:"")?Y1(N):"",typeof _==="function"&&KZ.set(_,N),N}function M1(_,J){switch(_.tag){case 26:case 27:case 5:return Y1(_.type);case 16:return Y1("Lazy");case 13:return _.child!==J&&J!==null?Y1("Suspense Fallback"):Y1("Suspense");case 19:return Y1("SuspenseList");case 0:case 15:return L1(_.type,!1);case 11:return L1(_.type.render,!1);case 1:return L1(_.type,!0);case 31:return Y1("Activity");default:return""}}function I1(_){try{var J="",$=null;do{J+=M1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var F=q[G];if(typeof F.name==="string"){var Y=J;_:{var{name:A,env:w,debugLocation:N}=F;if(N!=null){var t=Q1(N),o=t.lastIndexOf(`
36
+ `),c=o===-1?t:t.slice(o+1);if(c.indexOf(A)!==-1){var q1=`
37
+ `+c;break _}}q1=Y1(A+(w?" ["+w+"]":""))}J=Y+q1}}$=_,_=_.return}while(_);return J}catch(T1){return`
38
+ Error generating stack: `+T1.message+`
39
+ `+T1.stack}}function X1(_){return(_=_?_.displayName||_.name:"")?Y1(_):""}function f1(){if(G5===null)return null;var _=G5._debugOwner;return _!=null?i(_):null}function l1(){if(G5===null)return"";var _=G5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=Y1(_.type);break;case 13:J+=Y1("Suspense");break;case 19:J+=Y1("SuspenseList");break;case 31:J+=Y1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=X1(_.type));break;case 11:_._debugOwner||J!==""||(J+=X1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=Q1(q);G!==""&&(J+=`
40
40
  `+G)}}else if(_.debugStack!=null){var F=_.debugStack;(_=_.owner)&&F&&(J+=`
41
- `+X1(F))}else break;var H=J}catch(z){H=`
42
- Error generating stack: `+z.message+`
43
- `+z.stack}return H}function Y1(_,J,$,q,G,F,H){var z=U5;C1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,F,H)):J($,q,G,F,H)}finally{C1(z)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function C1(_){G1.getCurrentStack=_===null?null:l1,L4=!1,U5=_}function y1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function c1(_){try{return v1(_),!1}catch(J){return!0}}function v1(_){return""+_}function V1(_,J){if(c1(_))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",J,y1(_)),v1(_)}function S0(_,J){if(c1(_))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",J,y1(_)),v1(_)}function E1(_){if(c1(_))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",y1(_)),v1(_)}function G2(_){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var J=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(J.isDisabled)return!0;if(!J.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Q7=J.inject(_),T2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function _0(_){if(typeof bw==="function"&&xw(_),T2&&typeof T2.setStrictMode==="function")try{T2.setStrictMode(Q7,_)}catch(J){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",J))}}function h2(_){return _>>>=0,_===0?32:31-(uw(_)/hw|0)|0}function A2(_){var J=_&42;if(J!==0)return J;switch(_&-_){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),_}}function I2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,F=_.suspendedLanes,H=_.pingedLanes;_=_.warmLanes;var z=q&134217727;return z!==0?(q=z&~F,q!==0?G=A2(q):(H&=z,H!==0?G=A2(H):$||($=z&~_,$!==0&&(G=A2($))))):(z=q&~F,z!==0?G=A2(z):H!==0?G=A2(H):$||($=q&~_,$!==0&&(G=A2($)))),G===0?0:J!==0&&J!==G&&(J&F)===0&&(F=G&-G,$=J&-J,F>=$||F===32&&($&4194048)!==0)?J:G}function f2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function P2(_,J){switch(_){case 1:case 2:case 4:case 8:case 64:return J+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return J+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function B2(){var _=t$;return t$<<=1,(t$&62914560)===0&&(t$=4194304),_}function z2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function L2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function z3(_,J,$,q,G,F){var H=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:z,expirationTimes:w,hiddenUpdates:N}=_;for($=H&~$;0<$;){var i=31-V2($),s=1<<i;z[i]=0,w[i]=-1;var c=N[i];if(c!==null)for(N[i]=null,i=0;i<c.length;i++){var q1=c[i];q1!==null&&(q1.lane&=-536870913)}$&=~s}q!==0&&D5(_,q,0),F!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=F&~(H&~J))}function D5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-V2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function v4(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-V2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function E4(_,J){var $=J&-J;return $=($&42)!==0?1:b4($),($&(_.suspendedLanes|J))!==0?0:$}function b4(_){switch(_){case 2:_=1;break;case 8:_=4;break;case 32:_=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:_=128;break;case 268435456:_=134217728;break;default:_=0}return _}function I6(_,J,$){if(T4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-V2($),G=1<<q;_[q].add(J),$&=~G}}function o5(_,J){if(T4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-V2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(F){var H=F.alternate;H!==null&&q.has(H)||q.add(F)}),G.clear()),J&=~_}}function C(_){return _&=-_,G5!==0&&G5<_?x5!==0&&x5<_?(_&134217727)!==0?R4:o$:x5:G5}function e(){var _=X0.p;if(_!==0)return _;return _=window.event,_===void 0?R4:WA(_.type)}function B1(_,J){var $=X0.p;try{return X0.p=_,J()}finally{X0.p=$}}function T1(_){delete _[X2],delete _[S2],delete _[AZ],delete _[mw],delete _[gw]}function P1(_){var J=_[X2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[x3]||$[X2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=eW(_);_!==null;){if($=_[X2])return $;_=eW(_)}return J}_=$,$=_.parentNode}return null}function h1(_){if(_=_[X2]||_[x3]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function m1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function q0(_){var J=_[VA];return J||(J=_[VA]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function S1(_){_[s9]=!0}function _2(_,J){N2(_,J),N2(_+"Capture",J)}function N2(_,J){g6[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),g6[_]=J;var $=_.toLowerCase();BZ[$]=_,_==="onDoubleClick"&&(BZ.ondblclick=_);for(_=0;_<J.length;_++)SA.add(J[_])}function n5(_,J){pw[J.type]||J.onChange||J.onInput||J.readOnly||J.disabled||J.value==null||(_==="select"?console.error("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 `onChange`."):console.error("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`.")),J.onChange||J.readOnly||J.disabled||J.checked==null||console.error("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 f6(_){if(b5.call(kA,_))return!0;if(b5.call(DA,_))return!1;if(cw.test(_))return kA[_]=!0;return DA[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function NJ(_,J,$){if(f6(J)){if(!_.hasAttribute(J)){switch(typeof $){case"symbol":case"object":return $;case"function":return $;case"boolean":if($===!1)return $}return $===void 0?void 0:null}if(_=_.getAttribute(J),_===""&&$===!0)return!0;return V1($,J),_===""+$?$:_}}function y8(_,J,$){if(f6(J))if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":_.removeAttribute(J);return;case"boolean":var q=J.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){_.removeAttribute(J);return}}V1($,J),_.setAttribute(J,""+$)}}function v8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}V1($,J),_.setAttribute(J,""+$)}}function k5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}V1(q,$),_.setAttributeNS(J,$,""+q)}}function m2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return E1(_),_;default:return""}}function jJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function eq(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:G,set:F}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(H){E1(H),$=""+H,F.call(this,H)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(H){E1(H),$=""+H},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function q9(_){if(!_._valueTracker){var J=jJ(_)?"checked":"value";_._valueTracker=eq(_,J,""+_[J])}}function CJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=jJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function E8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function g2(_){return _.replace(lw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function VJ(_,J){J.checked===void 0||J.defaultChecked===void 0||vA||(console.error("%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://react.dev/link/controlled-components",f1()||"A component",J.type),vA=!0),J.value===void 0||J.defaultValue===void 0||yA||(console.error("%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://react.dev/link/controlled-components",f1()||"A component",J.type),yA=!0)}function b8(_,J,$,q,G,F,H,z){if(_.name="",H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"?(V1(H,"type"),_.type=H):_.removeAttribute("type"),J!=null)if(H==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+m2(J)}else _.value!==""+m2(J)&&(_.value=""+m2(J));else H!=="submit"&&H!=="reset"||_.removeAttribute("value");J!=null?x8(_,H,m2(J)):$!=null?x8(_,H,m2($)):q!=null&&_.removeAttribute("value"),G==null&&F!=null&&(_.defaultChecked=!!F),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(V1(z,"name"),_.name=""+m2(z)):_.removeAttribute("name")}function U9(_,J,$,q,G,F,H,z){if(F!=null&&typeof F!=="function"&&typeof F!=="symbol"&&typeof F!=="boolean"&&(V1(F,"type"),_.type=F),J!=null||$!=null){if(!(F!=="submit"&&F!=="reset"||J!==void 0&&J!==null)){q9(_);return}$=$!=null?""+m2($):"",J=J!=null?""+m2(J):$,z||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=z?_.checked:!!q,_.defaultChecked=!!q,H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"&&(V1(H,"name"),_.name=H),q9(_)}function x8(_,J,$){J==="number"&&E8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function SJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?J9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||bA||(bA=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):J.dangerouslySetInnerHTML==null||xA||(xA=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||EA||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),EA=!0)}function DJ(){var _=f1();return _?`
44
-
45
- Check the render method of \``+_+"`.":""}function L3(_,J,$,q){if(_=_.options,J){J={};for(var G=0;G<$.length;G++)J["$"+$[G]]=!0;for($=0;$<_.length;$++)G=J.hasOwnProperty("$"+_[$].value),_[$].selected!==G&&(_[$].selected=G),G&&q&&(_[$].defaultSelected=!0)}else{$=""+m2($),J=null;for(G=0;G<_.length;G++){if(_[G].value===$){_[G].selected=!0,q&&(_[G].defaultSelected=!0);return}J!==null||_[G].disabled||(J=_[G])}J!==null&&(J.selected=!0)}}function kJ(_,J){for(_=0;_<hA.length;_++){var $=hA[_];if(J[$]!=null){var q=a0(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,DJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,DJ())}}J.value===void 0||J.defaultValue===void 0||uA||(console.error("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://react.dev/link/controlled-components"),uA=!0)}function yJ(_,J){J.value===void 0||J.defaultValue===void 0||mA||(console.error("%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://react.dev/link/controlled-components",f1()||"A component"),mA=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function vJ(_,J,$){if(J!=null&&(J=""+m2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+m2($):""}function G9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(a0(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=m2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),q9(_)}function EJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?EJ(_.children[0],J):_}function j2(_){return" "+" ".repeat(_)}function M3(_){return"+ "+" ".repeat(_)}function x4(_){return"- "+" ".repeat(_)}function bJ(_){switch(_.tag){case 26:case 27:case 5:return _.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return _=_.type,_.displayName||_.name||null;case 11:return _=_.type.render,_.displayName||_.name||null;case 1:return _=_.type,_.displayName||_.name||null;default:return null}}function P6(_,J){return gA.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function u8(_,J,$){var q=120-2*$;if(J===null)return M3($)+P6(_,q)+`
46
- `;if(typeof J==="string"){for(var G=0;G<J.length&&G<_.length&&J.charCodeAt(G)===_.charCodeAt(G);G++);return G>q-8&&10<G&&(_="..."+_.slice(G-8),J="..."+J.slice(G-8)),M3($)+P6(_,q)+`
47
- `+x4($)+P6(J,q)+`
48
- `}return j2($)+P6(_,q)+`
49
- `}function Z9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function T3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(a0(_))return"[...]";if(_.$$typeof===B4)return(J=p(_.type))?"<"+J+">":"<...>";var $=Z9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var G=JSON.stringify(q);if(G!=='"'+q+'"'&&(q=G),J-=q.length-2,G=T3(_[q],15>J?J:15),J-=G.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+G}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function R3(_,J){return typeof _!=="string"||gA.test(_)?"{"+T3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function F9(_,J,$){var q=120-$.length-_.length,G=[],F;for(F in J)if(J.hasOwnProperty(F)&&F!=="children"){var H=R3(J[F],120-$.length-F.length-1);q-=F.length+H.length+2,G.push(F+"="+H)}return G.length===0?$+"<"+_+`>
41
+ `+Q1(F))}else break;var Y=J}catch(A){Y=`
42
+ Error generating stack: `+A.message+`
43
+ `+A.stack}return Y}function W1(_,J,$,q,G,F,Y){var A=G5;S1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,F,Y)):J($,q,G,F,Y)}finally{S1(A)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function S1(_){Z1.getCurrentStack=_===null?null:l1,T4=!1,G5=_}function v1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function c1(_){try{return E1(_),!1}catch(J){return!0}}function E1(_){return""+_}function j1(_,J){if(c1(_))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",J,v1(_)),E1(_)}function V0(_,J){if(c1(_))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",J,v1(_)),E1(_)}function b1(_){if(c1(_))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",v1(_)),E1(_)}function Z2(_){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var J=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(J.isDisabled)return!0;if(!J.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{q7=J.inject(_),T2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function _0(_){if(typeof cw==="function"&&lw(_),T2&&typeof T2.setStrictMode==="function")try{T2.setStrictMode(q7,_)}catch(J){R4||(R4=!0,console.error("React instrumentation encountered an error: %o",J))}}function h2(_){return _>>>=0,_===0?32:31-(rw(_)/dw|0)|0}function z2(_){var J=_&42;if(J!==0)return J;switch(_&-_){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return _&261888;case 262144:case 524288:case 1048576:case 2097152:return _&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return _&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),_}}function I2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,F=_.suspendedLanes,Y=_.pingedLanes;_=_.warmLanes;var A=q&134217727;return A!==0?(q=A&~F,q!==0?G=z2(q):(Y&=A,Y!==0?G=z2(Y):$||($=A&~_,$!==0&&(G=z2($))))):(A=q&~F,A!==0?G=z2(A):Y!==0?G=z2(Y):$||($=q&~_,$!==0&&(G=z2($)))),G===0?0:J!==0&&J!==G&&(J&F)===0&&(F=G&-G,$=J&-J,F>=$||F===32&&($&4194048)!==0)?J:G}function f2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function P2(_,J){switch(_){case 1:case 2:case 4:case 8:case 64:return J+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return J+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function B2(){var _=n$;return n$<<=1,(n$&62914560)===0&&(n$=4194304),_}function A2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function L2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function M3(_,J,$,q,G,F){var Y=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:A,expirationTimes:w,hiddenUpdates:N}=_;for($=Y&~$;0<$;){var t=31-j2($),o=1<<t;A[t]=0,w[t]=-1;var c=N[t];if(c!==null)for(N[t]=null,t=0;t<c.length;t++){var q1=c[t];q1!==null&&(q1.lane&=-536870913)}$&=~o}q!==0&&v5(_,q,0),F!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=F&~(Y&~J))}function v5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-j2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function b4(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-j2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function u4(_,J){var $=J&-J;return $=($&42)!==0?1:x4($),($&(_.suspendedLanes|J))!==0?0:$}function x4(_){switch(_){case 2:_=1;break;case 8:_=4;break;case 32:_=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:_=128;break;case 268435456:_=134217728;break;default:_=0}return _}function I6(_,J,$){if(O4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-j2($),G=1<<q;_[q].add(J),$&=~G}}function e5(_,J){if(O4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-j2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(F){var Y=F.alternate;Y!==null&&q.has(Y)||q.add(F)}),G.clear()),J&=~_}}function S(_){return _&=-_,Z5!==0&&Z5<_?m5!==0&&m5<_?(_&134217727)!==0?w4:e$:m5:Z5}function _1(){var _=H0.p;if(_!==0)return _;return _=window.event,_===void 0?w4:Tz(_.type)}function B1(_,J){var $=H0.p;try{return H0.p=_,J()}finally{H0.p=$}}function R1(_){delete _[H2],delete _[V2],delete _[zZ],delete _[iw],delete _[aw]}function P1(_){var J=_[H2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[h3]||$[H2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=Uz(_);_!==null;){if($=_[H2])return $;_=Uz(_)}return J}_=$,$=_.parentNode}return null}function h1(_){if(_=_[H2]||_[h3]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function m1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function U0(_){var J=_[Ez];return J||(J=_[Ez]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function V1(_){_[o9]=!0}function J2(_,J){N2(_,J),N2(_+"Capture",J)}function N2(_,J){g6[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),g6[_]=J;var $=_.toLowerCase();BZ[$]=_,_==="onDoubleClick"&&(BZ.ondblclick=_);for(_=0;_<J.length;_++)bz.add(J[_])}function _4(_,J){sw[J.type]||J.onChange||J.onInput||J.readOnly||J.disabled||J.value==null||(_==="select"?console.error("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 `onChange`."):console.error("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`.")),J.onChange||J.readOnly||J.disabled||J.checked==null||console.error("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 f6(_){if(h5.call(xz,_))return!0;if(h5.call(uz,_))return!1;if(tw.test(_))return xz[_]=!0;return uz[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function SJ(_,J,$){if(f6(J)){if(!_.hasAttribute(J)){switch(typeof $){case"symbol":case"object":return $;case"function":return $;case"boolean":if($===!1)return $}return $===void 0?void 0:null}if(_=_.getAttribute(J),_===""&&$===!0)return!0;return j1($,J),_===""+$?$:_}}function v8(_,J,$){if(f6(J))if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":_.removeAttribute(J);return;case"boolean":var q=J.toLowerCase().slice(0,5);if(q!=="data-"&&q!=="aria-"){_.removeAttribute(J);return}}j1($,J),_.setAttribute(J,""+$)}}function E8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}j1($,J),_.setAttribute(J,""+$)}}function E5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}j1(q,$),_.setAttributeNS(J,$,""+q)}}function m2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return b1(_),_;default:return""}}function jJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function eq(_,J,$){var q=Object.getOwnPropertyDescriptor(_.constructor.prototype,J);if(!_.hasOwnProperty(J)&&typeof q<"u"&&typeof q.get==="function"&&typeof q.set==="function"){var{get:G,set:F}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(Y){b1(Y),$=""+Y,F.call(this,Y)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(Y){b1(Y),$=""+Y},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function G9(_){if(!_._valueTracker){var J=jJ(_)?"checked":"value";_._valueTracker=eq(_,J,""+_[J])}}function VJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=jJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function b8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function g2(_){return _.replace(ow,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function kJ(_,J){J.checked===void 0||J.defaultChecked===void 0||mz||(console.error("%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://react.dev/link/controlled-components",f1()||"A component",J.type),mz=!0),J.value===void 0||J.defaultValue===void 0||hz||(console.error("%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://react.dev/link/controlled-components",f1()||"A component",J.type),hz=!0)}function u8(_,J,$,q,G,F,Y,A){if(_.name="",Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&typeof Y!=="boolean"?(j1(Y,"type"),_.type=Y):_.removeAttribute("type"),J!=null)if(Y==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+m2(J)}else _.value!==""+m2(J)&&(_.value=""+m2(J));else Y!=="submit"&&Y!=="reset"||_.removeAttribute("value");J!=null?x8(_,Y,m2(J)):$!=null?x8(_,Y,m2($)):q!=null&&_.removeAttribute("value"),G==null&&F!=null&&(_.defaultChecked=!!F),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),A!=null&&typeof A!=="function"&&typeof A!=="symbol"&&typeof A!=="boolean"?(j1(A,"name"),_.name=""+m2(A)):_.removeAttribute("name")}function Z9(_,J,$,q,G,F,Y,A){if(F!=null&&typeof F!=="function"&&typeof F!=="symbol"&&typeof F!=="boolean"&&(j1(F,"type"),_.type=F),J!=null||$!=null){if(!(F!=="submit"&&F!=="reset"||J!==void 0&&J!==null)){G9(_);return}$=$!=null?""+m2($):"",J=J!=null?""+m2(J):$,A||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=A?_.checked:!!q,_.defaultChecked=!!q,Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&typeof Y!=="boolean"&&(j1(Y,"name"),_.name=Y),G9(_)}function x8(_,J,$){J==="number"&&b8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function DJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?$9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||pz||(pz=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):J.dangerouslySetInnerHTML==null||cz||(cz=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||gz||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gz=!0)}function yJ(){var _=f1();return _?`
44
+
45
+ Check the render method of \``+_+"`.":""}function T3(_,J,$,q){if(_=_.options,J){J={};for(var G=0;G<$.length;G++)J["$"+$[G]]=!0;for($=0;$<_.length;$++)G=J.hasOwnProperty("$"+_[$].value),_[$].selected!==G&&(_[$].selected=G),G&&q&&(_[$].defaultSelected=!0)}else{$=""+m2($),J=null;for(G=0;G<_.length;G++){if(_[G].value===$){_[G].selected=!0,q&&(_[G].defaultSelected=!0);return}J!==null||_[G].disabled||(J=_[G])}J!==null&&(J.selected=!0)}}function vJ(_,J){for(_=0;_<rz.length;_++){var $=rz[_];if(J[$]!=null){var q=s0(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,yJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,yJ())}}J.value===void 0||J.defaultValue===void 0||lz||(console.error("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://react.dev/link/controlled-components"),lz=!0)}function EJ(_,J){J.value===void 0||J.defaultValue===void 0||dz||(console.error("%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://react.dev/link/controlled-components",f1()||"A component"),dz=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function bJ(_,J,$){if(J!=null&&(J=""+m2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+m2($):""}function F9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(s0(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=m2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),G9(_)}function uJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?uJ(_.children[0],J):_}function C2(_){return" "+" ".repeat(_)}function R3(_){return"+ "+" ".repeat(_)}function h4(_){return"- "+" ".repeat(_)}function xJ(_){switch(_.tag){case 26:case 27:case 5:return _.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return _=_.type,_.displayName||_.name||null;case 11:return _=_.type.render,_.displayName||_.name||null;case 1:return _=_.type,_.displayName||_.name||null;default:return null}}function P6(_,J){return iz.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function h8(_,J,$){var q=120-2*$;if(J===null)return R3($)+P6(_,q)+`
46
+ `;if(typeof J==="string"){for(var G=0;G<J.length&&G<_.length&&J.charCodeAt(G)===_.charCodeAt(G);G++);return G>q-8&&10<G&&(_="..."+_.slice(G-8),J="..."+J.slice(G-8)),R3($)+P6(_,q)+`
47
+ `+h4($)+P6(J,q)+`
48
+ `}return C2($)+P6(_,q)+`
49
+ `}function K9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function O3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(s0(_))return"[...]";if(_.$$typeof===L4)return(J=g(_.type))?"<"+J+">":"<...>";var $=K9(_);if($==="Object"){$="",J-=2;for(var q in _)if(_.hasOwnProperty(q)){var G=JSON.stringify(q);if(G!=='"'+q+'"'&&(q=G),J-=q.length-2,G=O3(_[q],15>J?J:15),J-=G.length,0>J){$+=$===""?"...":", ...";break}$+=($===""?"":",")+q+":"+G}return"{"+$+"}"}return $;case"function":return(J=_.displayName||_.name)?"function "+J:"function";default:return String(_)}}function w3(_,J){return typeof _!=="string"||iz.test(_)?"{"+O3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function X9(_,J,$){var q=120-$.length-_.length,G=[],F;for(F in J)if(J.hasOwnProperty(F)&&F!=="children"){var Y=w3(J[F],120-$.length-F.length-1);q-=F.length+Y.length+2,G.push(F+"="+Y)}return G.length===0?$+"<"+_+`>
50
50
  `:0<q?$+"<"+_+" "+G.join(" ")+`>
51
51
  `:$+"<"+_+`
52
52
  `+$+" "+G.join(`
53
53
  `+$+" ")+`
54
54
  `+$+`>
55
- `}function _U(_,J,$){var q="",G=o1({},J),F;for(F in _)if(_.hasOwnProperty(F)){delete G[F];var H=120-2*$-F.length-2,z=T3(_[F],H);J.hasOwnProperty(F)?(H=T3(J[F],H),q+=M3($)+F+": "+z+`
56
- `,q+=x4($)+F+": "+H+`
57
- `):q+=M3($)+F+": "+z+`
58
- `}for(var w in G)G.hasOwnProperty(w)&&(_=T3(G[w],120-2*$-w.length-2),q+=x4($)+w+": "+_+`
59
- `);return q}function JU(_,J,$,q){var G="",F=new Map;for(N in $)$.hasOwnProperty(N)&&F.set(N.toLowerCase(),N);if(F.size===1&&F.has("children"))G+=F9(_,J,j2(q));else{for(var H in J)if(J.hasOwnProperty(H)&&H!=="children"){var z=120-2*(q+1)-H.length-1,w=F.get(H.toLowerCase());if(w!==void 0){F.delete(H.toLowerCase());var N=J[H];w=$[w];var i=R3(N,z);z=R3(w,z),typeof N==="object"&&N!==null&&typeof w==="object"&&w!==null&&Z9(N)==="Object"&&Z9(w)==="Object"&&(2<Object.keys(N).length||2<Object.keys(w).length||-1<i.indexOf("...")||-1<z.indexOf("..."))?G+=j2(q+1)+H+`={{
60
- `+_U(N,w,q+2)+j2(q+1)+`}}
61
- `:(G+=M3(q+1)+H+"="+i+`
62
- `,G+=x4(q+1)+H+"="+z+`
63
- `)}else G+=j2(q+1)+H+"="+R3(J[H],z)+`
64
- `}F.forEach(function(s){if(s!=="children"){var c=120-2*(q+1)-s.length-1;G+=x4(q+1)+s+"="+R3($[s],c)+`
65
- `}}),G=G===""?j2(q)+"<"+_+`>
66
- `:j2(q)+"<"+_+`
67
- `+G+j2(q)+`>
68
- `}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(F="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")F=""+J;G+=u8(F,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+u8(""+J,null,q+1):G+u8(""+J,void 0,q+1);return G}function xJ(_,J){var $=bJ(_);if($===null){$="";for(_=_.child;_;)$+=xJ(_,J),_=_.sibling;return $}return j2(J)+"<"+$+`>
69
- `}function K9(_,J){var $=EJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return j2(J)+`...
70
- `+K9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var F=q[G].name;typeof F==="string"&&($+=j2(J)+"<"+F+`>
71
- `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=u8(G,_.serverProps,J),J++;else if(F=bJ(_.fiber),F!==null)if(_.serverProps===void 0){q=J;var H=120-2*q-F.length-2,z="";for(N in G)if(G.hasOwnProperty(N)&&N!=="children"){var w=R3(G[N],15);if(H-=N.length+w.length+2,0>H){z+=" ...";break}z+=" "+N+"="+w}q=j2(q)+"<"+F+z+`>
72
- `,J++}else _.serverProps===null?(q=F9(F,G,M3(J)),J++):typeof _.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(q=JU(F,G,_.serverProps,J),J++);var N="";G=_.fiber.child;for(F=0;G&&F<_.children.length;)H=_.children[F],H.fiber===G?(N+=K9(H,J),F++):N+=xJ(G,J),G=G.sibling;G&&0<_.children.length&&(N+=j2(J)+`...
73
- `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)F=G[_],N=typeof F==="string"?N+(x4(J)+P6(F,120-2*J)+`
74
- `):N+F9(F.type,F.props,x4(J));return $+q+N}function X9(_){try{return`
75
-
76
- `+K9(_,0)}catch(J){return""}}function uJ(_,J,$){for(var q=J,G=null,F=0;q;)q===_&&(F=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:F},F++,q=q.return;return G!==null?X9(G).replaceAll(/^[+-]/gm,">"):""}function H9(_,J){var $=o1({},_||cA),q={tag:J};if(pA.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),dw.indexOf(J)!==-1&&($.pTagInButtonScope=null),rw.indexOf(J)!==-1&&J!=="address"&&J!=="div"&&J!=="p"&&($.listItemTagAutoclosing=null,$.dlItemTagAutoclosing=null),$.current=q,J==="form"&&($.formTag=q),J==="a"&&($.aTagInScope=q),J==="button"&&($.buttonTagInScope=q),J==="nobr"&&($.nobrTagInScope=q),J==="p"&&($.pTagInButtonScope=q),J==="li"&&($.listItemTagAutoclosing=q),J==="dd"||J==="dt")$.dlItemTagAutoclosing=q;return J==="#document"||J==="html"?$.containerTagInScope=null:$.containerTagInScope||($.containerTagInScope=q),_!==null||J!=="#document"&&J!=="html"&&J!=="body"?$.implicitRootScope===!0&&($.implicitRootScope=!1):$.implicitRootScope=!0,$}function hJ(_,J,$){switch(J){case"select":return _==="hr"||_==="option"||_==="optgroup"||_==="script"||_==="template"||_==="#text";case"optgroup":return _==="option"||_==="#text";case"option":return _==="#text";case"tr":return _==="th"||_==="td"||_==="style"||_==="script"||_==="template";case"tbody":case"thead":case"tfoot":return _==="tr"||_==="style"||_==="script"||_==="template";case"colgroup":return _==="col"||_==="template";case"table":return _==="caption"||_==="colgroup"||_==="tbody"||_==="tfoot"||_==="thead"||_==="style"||_==="script"||_==="template";case"head":return _==="base"||_==="basefont"||_==="bgsound"||_==="link"||_==="meta"||_==="title"||_==="noscript"||_==="noframes"||_==="style"||_==="script"||_==="template";case"html":if($)break;return _==="head"||_==="body"||_==="frameset";case"frameset":return _==="frame";case"#document":if(!$)return _==="html"}switch(_){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J!=="h1"&&J!=="h2"&&J!=="h3"&&J!=="h4"&&J!=="h5"&&J!=="h6";case"rp":case"rt":return iw.indexOf(J)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return J==null;case"head":return $||J===null;case"html":return $&&J==="#document"||J===null;case"body":return $&&(J==="#document"||J==="html")||J===null}return!0}function mJ(_,J){switch(_){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 J.pTagInButtonScope;case"form":return J.formTag||J.pTagInButtonScope;case"li":return J.listItemTagAutoclosing;case"dd":case"dt":return J.dlItemTagAutoclosing;case"button":return J.buttonTagInScope;case"a":return J.aTagInScope;case"nobr":return J.nobrTagInScope}return null}function gJ(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function Y9(_,J){J=J||cA;var $=J.current;if(J=($=hJ(_,$&&$.tag,J.implicitRootScope)?null:$)?null:mJ(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,n$[J])return!1;n$[J]=!0;var G=(J=U5)?gJ(J.return,q):null,F=J!==null&&G!==null?uJ(G,J,null):"",H="<"+_+">";return $?($="",q==="table"&&_==="tr"&&($+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
77
- This will cause a hydration error.%s`,H,q,$,F)):console.error(`In HTML, %s cannot be a descendant of <%s>.
78
- This will cause a hydration error.%s`,H,q,F),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||Y1(G,function(){console.error(`<%s> cannot contain a nested %s.
79
- See this log for the ancestor stack trace.`,q,H)})),!1}function O3(_,J,$){if($||hJ("#text",J,!1))return!0;if($="#text|"+J,n$[$])return!1;n$[$]=!0;var q=($=U5)?gJ($,J):null;return $=$!==null&&q!==null?uJ(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
55
+ `}function _U(_,J,$){var q="",G=o1({},J),F;for(F in _)if(_.hasOwnProperty(F)){delete G[F];var Y=120-2*$-F.length-2,A=O3(_[F],Y);J.hasOwnProperty(F)?(Y=O3(J[F],Y),q+=R3($)+F+": "+A+`
56
+ `,q+=h4($)+F+": "+Y+`
57
+ `):q+=R3($)+F+": "+A+`
58
+ `}for(var w in G)G.hasOwnProperty(w)&&(_=O3(G[w],120-2*$-w.length-2),q+=h4($)+w+": "+_+`
59
+ `);return q}function JU(_,J,$,q){var G="",F=new Map;for(N in $)$.hasOwnProperty(N)&&F.set(N.toLowerCase(),N);if(F.size===1&&F.has("children"))G+=X9(_,J,C2(q));else{for(var Y in J)if(J.hasOwnProperty(Y)&&Y!=="children"){var A=120-2*(q+1)-Y.length-1,w=F.get(Y.toLowerCase());if(w!==void 0){F.delete(Y.toLowerCase());var N=J[Y];w=$[w];var t=w3(N,A);A=w3(w,A),typeof N==="object"&&N!==null&&typeof w==="object"&&w!==null&&K9(N)==="Object"&&K9(w)==="Object"&&(2<Object.keys(N).length||2<Object.keys(w).length||-1<t.indexOf("...")||-1<A.indexOf("..."))?G+=C2(q+1)+Y+`={{
60
+ `+_U(N,w,q+2)+C2(q+1)+`}}
61
+ `:(G+=R3(q+1)+Y+"="+t+`
62
+ `,G+=h4(q+1)+Y+"="+A+`
63
+ `)}else G+=C2(q+1)+Y+"="+w3(J[Y],A)+`
64
+ `}F.forEach(function(o){if(o!=="children"){var c=120-2*(q+1)-o.length-1;G+=h4(q+1)+o+"="+w3($[o],c)+`
65
+ `}}),G=G===""?C2(q)+"<"+_+`>
66
+ `:C2(q)+"<"+_+`
67
+ `+G+C2(q)+`>
68
+ `}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(F="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")F=""+J;G+=h8(F,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+h8(""+J,null,q+1):G+h8(""+J,void 0,q+1);return G}function hJ(_,J){var $=xJ(_);if($===null){$="";for(_=_.child;_;)$+=hJ(_,J),_=_.sibling;return $}return C2(J)+"<"+$+`>
69
+ `}function H9(_,J){var $=uJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return C2(J)+`...
70
+ `+H9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var F=q[G].name;typeof F==="string"&&($+=C2(J)+"<"+F+`>
71
+ `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=h8(G,_.serverProps,J),J++;else if(F=xJ(_.fiber),F!==null)if(_.serverProps===void 0){q=J;var Y=120-2*q-F.length-2,A="";for(N in G)if(G.hasOwnProperty(N)&&N!=="children"){var w=w3(G[N],15);if(Y-=N.length+w.length+2,0>Y){A+=" ...";break}A+=" "+N+"="+w}q=C2(q)+"<"+F+A+`>
72
+ `,J++}else _.serverProps===null?(q=X9(F,G,R3(J)),J++):typeof _.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(q=JU(F,G,_.serverProps,J),J++);var N="";G=_.fiber.child;for(F=0;G&&F<_.children.length;)Y=_.children[F],Y.fiber===G?(N+=H9(Y,J),F++):N+=hJ(G,J),G=G.sibling;G&&0<_.children.length&&(N+=C2(J)+`...
73
+ `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)F=G[_],N=typeof F==="string"?N+(h4(J)+P6(F,120-2*J)+`
74
+ `):N+X9(F.type,F.props,h4(J));return $+q+N}function Y9(_){try{return`
75
+
76
+ `+H9(_,0)}catch(J){return""}}function mJ(_,J,$){for(var q=J,G=null,F=0;q;)q===_&&(F=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:F},F++,q=q.return;return G!==null?Y9(G).replaceAll(/^[+-]/gm,">"):""}function W9(_,J){var $=o1({},_||sz),q={tag:J};if(az.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),ew.indexOf(J)!==-1&&($.pTagInButtonScope=null),nw.indexOf(J)!==-1&&J!=="address"&&J!=="div"&&J!=="p"&&($.listItemTagAutoclosing=null,$.dlItemTagAutoclosing=null),$.current=q,J==="form"&&($.formTag=q),J==="a"&&($.aTagInScope=q),J==="button"&&($.buttonTagInScope=q),J==="nobr"&&($.nobrTagInScope=q),J==="p"&&($.pTagInButtonScope=q),J==="li"&&($.listItemTagAutoclosing=q),J==="dd"||J==="dt")$.dlItemTagAutoclosing=q;return J==="#document"||J==="html"?$.containerTagInScope=null:$.containerTagInScope||($.containerTagInScope=q),_!==null||J!=="#document"&&J!=="html"&&J!=="body"?$.implicitRootScope===!0&&($.implicitRootScope=!1):$.implicitRootScope=!0,$}function gJ(_,J,$){switch(J){case"select":return _==="hr"||_==="option"||_==="optgroup"||_==="script"||_==="template"||_==="#text";case"optgroup":return _==="option"||_==="#text";case"option":return _==="#text";case"tr":return _==="th"||_==="td"||_==="style"||_==="script"||_==="template";case"tbody":case"thead":case"tfoot":return _==="tr"||_==="style"||_==="script"||_==="template";case"colgroup":return _==="col"||_==="template";case"table":return _==="caption"||_==="colgroup"||_==="tbody"||_==="tfoot"||_==="thead"||_==="style"||_==="script"||_==="template";case"head":return _==="base"||_==="basefont"||_==="bgsound"||_==="link"||_==="meta"||_==="title"||_==="noscript"||_==="noframes"||_==="style"||_==="script"||_==="template";case"html":if($)break;return _==="head"||_==="body"||_==="frameset";case"frameset":return _==="frame";case"#document":if(!$)return _==="html"}switch(_){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return J!=="h1"&&J!=="h2"&&J!=="h3"&&J!=="h4"&&J!=="h5"&&J!=="h6";case"rp":case"rt":return _I.indexOf(J)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return J==null;case"head":return $||J===null;case"html":return $&&J==="#document"||J===null;case"body":return $&&(J==="#document"||J==="html")||J===null}return!0}function pJ(_,J){switch(_){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 J.pTagInButtonScope;case"form":return J.formTag||J.pTagInButtonScope;case"li":return J.listItemTagAutoclosing;case"dd":case"dt":return J.dlItemTagAutoclosing;case"button":return J.buttonTagInScope;case"a":return J.aTagInScope;case"nobr":return J.nobrTagInScope}return null}function cJ(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function z9(_,J){J=J||sz;var $=J.current;if(J=($=gJ(_,$&&$.tag,J.implicitRootScope)?null:$)?null:pJ(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,_Q[J])return!1;_Q[J]=!0;var G=(J=G5)?cJ(J.return,q):null,F=J!==null&&G!==null?mJ(G,J,null):"",Y="<"+_+">";return $?($="",q==="table"&&_==="tr"&&($+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
77
+ This will cause a hydration error.%s`,Y,q,$,F)):console.error(`In HTML, %s cannot be a descendant of <%s>.
78
+ This will cause a hydration error.%s`,Y,q,F),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||W1(G,function(){console.error(`<%s> cannot contain a nested %s.
79
+ See this log for the ancestor stack trace.`,q,Y)})),!1}function I3(_,J,$){if($||gJ("#text",J,!1))return!0;if($="#text|"+J,_Q[$])return!1;_Q[$]=!0;var q=($=G5)?cJ($,J):null;return $=$!==null&&q!==null?mJ(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
80
80
  This will cause a hydration error.%s`,J,$):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
81
- This will cause a hydration error.%s`,J,$),!1}function N6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function $U(_){return _.replace(tw,function(J,$){return $.toUpperCase()})}function W9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?q7.hasOwnProperty(J)&&q7[J]||(q7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,$U(J.replace(sw,"ms-")))):aw.test(J)?q7.hasOwnProperty(J)&&q7[J]||(q7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!dA.test($)||LZ.hasOwnProperty($)&&LZ[$]||(LZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(dA,""))),typeof $==="number"&&(isNaN($)?iA||(iA=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||aA||(aA=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",J)))),$==null||typeof $==="boolean"||$===""?q?_.setProperty(J,""):J==="float"?_.cssFloat="":_[J]="":q?_.setProperty(J,$):typeof $!=="number"||$===0||sA.has(J)?J==="float"?_.cssFloat=$:(S0($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function pX(_,J,$){if(J!=null&&typeof J!=="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.");if(J&&Object.freeze(J),_=_.style,$!=null){if(J){var q={};if($){for(var G in $)if($.hasOwnProperty(G)&&!J.hasOwnProperty(G))for(var F=zZ[G]||[G],H=0;H<F.length;H++)q[F[H]]=G}for(var z in J)if(J.hasOwnProperty(z)&&(!$||$[z]!==J[z]))for(G=zZ[z]||[z],F=0;F<G.length;F++)q[G[F]]=z;z={};for(var w in J)for(G=zZ[w]||[w],F=0;F<G.length;F++)z[G[F]]=w;w={};for(var N in q)if(G=q[N],(F=z[N])&&G!==F&&(H=G+","+F,!w[H])){w[H]=!0,H=console;var i=J[G];H.error.call(H,"%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.",i==null||typeof i==="boolean"||i===""?"Removing":"Updating",G,F)}}for(var s in $)!$.hasOwnProperty(s)||J!=null&&J.hasOwnProperty(s)||(s.indexOf("--")===0?_.setProperty(s,""):s==="float"?_.cssFloat="":_[s]="");for(var c in J)N=J[c],J.hasOwnProperty(c)&&$[c]!==N&&W9(_,c,N)}else for(q in J)J.hasOwnProperty(q)&&W9(_,q,J[q])}function A9(_){if(_.indexOf("-")===-1)return!1;switch(_){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}}function cX(_){return ow.get(_)||_}function lR(_,J){if(b5.call(G7,J)&&G7[J])return!0;if(ew.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=tA.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),G7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),G7[J]=!0}if(nw.test(J)){if(_=J.toLowerCase(),_=tA.hasOwnProperty(_)?_:null,_==null)return G7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),G7[J]=!0)}return!0}function rR(_,J){var $=[],q;for(q in J)lR(_,q)||$.push(q);J=$.map(function(G){return"`"+G+"`"}).join(", "),$.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_):1<$.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_)}function dR(_,J,$,q){if(b5.call(D2,J)&&D2[J])return!0;var G=J.toLowerCase();if(G==="onfocusin"||G==="onfocusout")return console.error("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."),D2[J]=!0;if(typeof $==="function"&&(_==="form"&&J==="action"||_==="input"&&J==="formAction"||_==="button"&&J==="formAction"))return!0;if(q!=null){if(_=q.possibleRegistrationNames,q.registrationNameDependencies.hasOwnProperty(J))return!0;if(q=_.hasOwnProperty(G)?_[G]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),D2[J]=!0;if(nA.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),D2[J]=!0}else if(nA.test(J))return _I.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),D2[J]=!0;if(JI.test(J)||$I.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),D2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),D2[J]=!0;if(G==="is"&&$!==null&&$!==void 0&&typeof $!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof $),D2[J]=!0;if(typeof $==="number"&&isNaN($))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",J),D2[J]=!0;if(_Q.hasOwnProperty(G)){if(G=_Q[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),D2[J]=!0}else if(J!==G)return console.error("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.",J,G),D2[J]=!0;switch(J){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof $){case"boolean":switch(J){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(G=J.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return $?console.error('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()}.',$,J,J,$,J):console.error('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.',$,J,J,$,J,J,J),D2[J]=!0}case"function":case"symbol":return D2[J]=!0,!1;case"string":if($==="false"||$==="true"){switch(J){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",$,J,$==="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".',J,$),D2[J]=!0}}return!0}function iR(_,J,$){var q=[],G;for(G in J)dR(_,G,J[G],$)||q.push(G);J=q.map(function(F){return"`"+F+"`"}).join(", "),q.length===1?console.error("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://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("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://react.dev/link/attribute-behavior ",J,_)}function B9(_){return QI.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function u4(){}function QU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function lX(_){var J=h1(_);if(J&&(_=J.stateNode)){var $=_[S2]||null;_:switch(_=J.stateNode,J.type){case"input":if(b8(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;V1(J,"name"),$=$.querySelectorAll('input[name="'+g2(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[S2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");b8(q,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&CJ(q)}break _;case"textarea":vJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&L3(_,!!$.multiple,J,!1)}}}function rX(_,J,$){if(MZ)return _(J,$);MZ=!0;try{var q=_(J);return q}finally{if(MZ=!1,Z7!==null||F7!==null){if(a8(),Z7&&(J=Z7,_=F7,F7=Z7=null,lX(J),_))for(J=0;J<_.length;J++)lX(_[J])}}}function z9(_,J){var $=_.stateNode;if($===null)return null;var q=$[S2]||null;if(q===null)return null;$=q[J];_:switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(q=!q.disabled)||(_=_.type,q=!(_==="button"||_==="input"||_==="select"||_==="textarea")),_=!q;break _;default:_=!1}if(_)return null;if($&&typeof $!=="function")throw Error("Expected `"+J+"` listener to be a function, instead got a value of `"+typeof $+"` type.");return $}function dX(){if(JQ)return JQ;var _,J=RZ,$=J.length,q,G="value"in u3?u3.value:u3.textContent,F=G.length;for(_=0;_<$&&J[_]===G[_];_++);var H=$-_;for(q=1;q<=H&&J[$-q]===G[F-q];q++);return JQ=G.slice(_,1<q?1-q:void 0)}function pJ(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function cJ(){return!0}function iX(){return!1}function p2(_){function J($,q,G,F,H){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=F,this.target=H,this.currentTarget=null;for(var z in _)_.hasOwnProperty(z)&&($=_[z],this[z]=$?$(F):F[z]);return this.isDefaultPrevented=(F.defaultPrevented!=null?F.defaultPrevented:F.returnValue===!1)?cJ:iX,this.isPropagationStopped=iX,this}return o1(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=cJ)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=cJ)},persist:function(){},isPersistent:cJ}),J}function aR(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=zI[_])?!!J[_]:!1}function qU(){return aR}function aX(_,J){switch(_){case"keyup":return CI.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==$B;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sX(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function sR(_,J){switch(_){case"compositionend":return sX(J);case"keypress":if(J.which!==qB)return null;return GB=!0,UB;case"textInput":return _=J.data,_===UB&&GB?null:_;default:return null}}function tR(_,J){if(K7)return _==="compositionend"||!fZ&&aX(_,J)?(_=dX(),JQ=RZ=u3=null,K7=!1,_):null;switch(_){case"paste":return null;case"keypress":if(!(J.ctrlKey||J.altKey||J.metaKey)||J.ctrlKey&&J.altKey){if(J.char&&1<J.char.length)return J.char;if(J.which)return String.fromCharCode(J.which)}return null;case"compositionend":return QB&&J.locale!=="ko"?null:J.data;default:return null}}function tX(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!SI[_.type]:J==="textarea"?!0:!1}function oR(_){if(!O4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function oX(_,J,$,q){Z7?F7?F7.push(q):F7=[q]:Z7=q,J=E$(J,"onChange"),0<J.length&&($=new $Q("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function nR(_){yW(_,0)}function lJ(_){var J=m1(_);if(CJ(J))return _}function nX(_,J){if(_==="change")return J}function eX(){J_&&(J_.detachEvent("onpropertychange",_H),$_=J_=null)}function _H(_){if(_.propertyName==="value"&&lJ($_)){var J=[];oX(J,$_,_,QU(_)),rX(nR,J)}}function eR(_,J,$){_==="focusin"?(eX(),J_=J,$_=$,J_.attachEvent("onpropertychange",_H)):_==="focusout"&&eX()}function _O(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return lJ($_)}function JO(_,J){if(_==="click")return lJ(J)}function $O(_,J){if(_==="input"||_==="change")return lJ(J)}function QO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function L9(_,J){if(k2(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!b5.call(J,G)||!k2(_[G],J[G]))return!1}return!0}function JH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function $H(_,J){var $=JH(_);_=0;for(var q;$;){if($.nodeType===3){if(q=_+$.textContent.length,_<=J&&q>=J)return{node:$,offset:J-_};_=q}_:{for(;$;){if($.nextSibling){$=$.nextSibling;break _}$=$.parentNode}$=void 0}$=JH($)}}function QH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?QH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function qH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=E8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=E8(_.document)}return J}function UU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function UH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;NZ||X7==null||X7!==E8(q)||(q=X7,("selectionStart"in q)&&UU(q)?q={start:q.selectionStart,end:q.selectionEnd}:(q=(q.ownerDocument&&q.ownerDocument.defaultView||window).getSelection(),q={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}),Q_&&L9(Q_,q)||(Q_=q,q=E$(PZ,"onSelect"),0<q.length&&(J=new $Q("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=X7)))}function j6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function C6(_){if(jZ[_])return jZ[_];if(!H7[_])return _;var J=H7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in FB)return jZ[_]=J[$];return _}function y5(_,J){WB.set(_,J),_2(J,[_])}function qO(_){for(var J=qQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(a0(q)&&q.length===2&&typeof q[0]==="string"){if(J!==qQ&&J!==kZ)return SZ;J=kZ}else return SZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==qQ&&J!==DZ)return SZ;J=DZ}}return J}function GU(_,J,$,q){for(var G in _)b5.call(_,G)&&G[0]!=="_"&&e5(G,_[G],J,$,q)}function e5(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===B4){var F=p(J.type)||"…",H=J.key;J=J.props;var z=Object.keys(J),w=z.length;if(H==null&&w===0){J="<"+F+" />";break}if(3>q||w===1&&z[0]==="children"&&H==null){J="<"+F+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+F]),H!==null&&e5("key",H,$,q+1,G),_=!1;for(var N in J)N==="children"?J.children!=null&&(!a0(J.children)||0<J.children.length)&&(_=!0):b5.call(J,N)&&N[0]!=="_"&&e5(N,J[N],$,q+1,G);$.push(["",_?">…</"+F+">":"/>"]);return}if(F=Object.prototype.toString.call(J),F=F.slice(8,F.length-1),F==="Array"){if(N=qO(J),N===DZ||N===qQ){J=JSON.stringify(J);break}else if(N===kZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)F=J[_],e5(F[0],F[1],$,q+1,G);return}}if(F==="Promise"){if(J.status==="fulfilled"){if(F=$.length,e5(_,J.value,$,q,G),$.length>F){$=$[F],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(F=$.length,e5(_,J.reason,$,q,G),$.length>F)){$=$[F],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}F==="Object"&&(N=Object.getPrototypeOf(J))&&typeof N.constructor==="function"&&(F=N.constructor.name),$.push([G+"  ".repeat(q)+_,F==="Object"?3>q?"":"…":F]),3>q&&GU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===xI?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([G+"  ".repeat(q)+_,J])}function GH(_,J,$,q){var G=!0;for(H in _)H in J||($.push([UQ+"  ".repeat(q)+H,"…"]),G=!1);for(var F in J)if(F in _){var H=_[F],z=J[F];if(H!==z){if(q===0&&F==="children")G="  ".repeat(q)+F,$.push([UQ+G,"…"],[GQ+G,"…"]);else{if(!(3<=q)){if(typeof H==="object"&&typeof z==="object"&&H!==null&&z!==null&&H.$$typeof===z.$$typeof)if(z.$$typeof===B4){if(H.type===z.type&&H.key===z.key){H=p(z.type)||"…",G="  ".repeat(q)+F,H="<"+H+" … />",$.push([UQ+G,H],[GQ+G,H]),G=!1;continue}}else{var w=Object.prototype.toString.call(H),N=Object.prototype.toString.call(z);if(w===N&&(N==="[object Object]"||N==="[object Array]")){w=[zB+"  ".repeat(q)+F,N==="[object Array]"?"Array":""],$.push(w),N=$.length,GH(H,z,$,q+1)?N===$.length&&(w[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof H==="function"&&typeof z==="function"&&H.name===z.name&&H.length===z.length&&(w=Function.prototype.toString.call(H),N=Function.prototype.toString.call(z),w===N)){H=z.name===""?"() => {}":z.name+"() {}",$.push([zB+"  ".repeat(q)+F,H+" Referentially unequal function closure. Consider memoization."]);continue}}e5(F,H,$,q,UQ),e5(F,z,$,q,GQ)}G=!1}}else $.push([GQ+"  ".repeat(q)+F,"…"]),G=!1;return G}function o2(_){e1=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function _4(_,J,$,q){R0&&(m3.start=J,m3.end=$,i4.color="warning",i4.tooltipText=q,i4.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,m3)):performance.measure(q,m3))}function rJ(_,J,$){_4(_,J,$,"Reconnect")}function dJ(_,J,$,q,G){var F=t(_);if(F!==null&&R0){var{alternate:H,actualDuration:z}=_;if(H===null||H.child!==_.child)for(var w=_.child;w!==null;w=w.sibling)z-=w.actualDuration;q=0.5>z?q?"tertiary-light":"primary-light":10>z?q?"tertiary":"primary":100>z?q?"tertiary-dark":"primary-dark":"error";var N=_.memoizedProps;z=_._debugTask,N!==null&&H!==null&&H.memoizedProps!==N?(w=[uI],N=GH(H.memoizedProps,N,w,0),1<w.length&&(N&&!h3&&(H.lanes&G)===0&&100<_.actualDuration?(h3=!0,w[0]=hI,i4.color="warning",i4.tooltipText=LB):(i4.color=q,i4.tooltipText=F),i4.properties=w,m3.start=J,m3.end=$,z!=null?z.run(performance.measure.bind(performance,"​"+F,m3)):performance.measure("​"+F,m3))):z!=null?z.run(console.timeStamp.bind(console,F,J,$,B5,void 0,q)):console.timeStamp(F,J,$,B5,void 0,q)}}function ZU(_,J,$,q){if(R0){var G=t(_);if(G!==null){for(var F=null,H=[],z=0;z<q.length;z++){var w=q[z];F==null&&w.source!==null&&(F=w.source._debugTask),w=w.value,H.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}_.key!==null&&e5("key",_.key,H,0,""),_.memoizedProps!==null&&GU(_.memoizedProps,H,0,""),F==null&&(F=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:B5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:H}}},F?F.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function J4(_,J,$,q,G){if(G!==null){if(R0){var F=t(_);if(F!==null){q=[];for(var H=0;H<G.length;H++){var z=G[H].value;q.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}_.key!==null&&e5("key",_.key,q,0,""),_.memoizedProps!==null&&GU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:B5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+F,J)):performance.measure("​"+F,J)}}}else F=t(_),F!==null&&R0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,F,J,$,B5,void 0,G)):console.timeStamp(F,J,$,B5,void 0,G))}function UO(_,J,$,q){if(R0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,e1,n1,G)):console.timeStamp($,_,J,e1,n1,G)}}function ZH(_,J,$,q){!R0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,e1,n1,$)):console.timeStamp("Prewarm",_,J,e1,n1,$))}function FH(_,J,$,q){!R0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,e1,n1,$)):console.timeStamp("Suspended",_,J,e1,n1,$))}function GO(_,J,$,q,G,F){if(R0&&!(J<=_)){$=[];for(var H=0;H<q.length;H++){var z=q[H].value;$.push(["Recoverable Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:e1,trackGroup:n1,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},F?F.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function FU(_,J,$,q){!R0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,e1,n1,"error")):console.timeStamp("Errored",_,J,e1,n1,"error"))}function ZO(_,J,$,q){!R0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,e1,n1,"secondary-light")):console.timeStamp($,_,J,e1,n1,"secondary-light"))}function KH(_,J,$,q,G){if(R0&&!(J<=_)){for(var F=[],H=0;H<$.length;H++){var z=$[H].value;F.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}_={start:_,end:J,detail:{devtools:{color:"error",track:e1,trackGroup:n1,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:F}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function M9(_,J,$){!R0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,e1,n1,"secondary-dark")):console.timeStamp("Animating",_,J,e1,n1,"secondary-dark"))}function iJ(){for(var _=Y7,J=yZ=Y7=0;J<_;){var $=z5[J];z5[J++]=null;var q=z5[J];z5[J++]=null;var G=z5[J];z5[J++]=null;var F=z5[J];if(z5[J++]=null,q!==null&&G!==null){var H=q.pending;H===null?G.next=G:(G.next=H.next,H.next=G),q.pending=G}F!==0&&XH($,G,F)}}function aJ(_,J,$,q){z5[Y7++]=_,z5[Y7++]=J,z5[Y7++]=$,z5[Y7++]=q,yZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function KU(_,J,$,q){return aJ(_,J,$,q),sJ(_)}function M2(_,J){return aJ(_,null,null,J),sJ(_)}function XH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,F=_.return;F!==null;)F.childLanes|=$,q=F.alternate,q!==null&&(q.childLanes|=$),F.tag===22&&(_=F.stateNode,_===null||_._visibility&q_||(G=!0)),_=F,F=F.return;return _.tag===3?(F=_.stateNode,G&&J!==null&&(G=31-V2($),_=F.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),F):null}function sJ(_){if(D_>_f)throw Q8=D_=0,k_=YF=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.");Q8>Jf&&(Q8=0,k_=null,console.error("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.")),_.alternate===null&&(_.flags&4098)!==0&&NW(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&NW(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function V6(_){if(L5===null)return _;var J=L5(_);return J===void 0?_:J.current}function XU(_){if(L5===null)return _;var J=L5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=V6(_.render),_.render!==J)?(J={$$typeof:d9,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function HH(_,J){if(L5===null)return!1;var $=_.elementType;J=J.type;var q=!1,G=typeof J==="object"&&J!==null?J.$$typeof:null;switch(_.tag){case 1:typeof J==="function"&&(q=!0);break;case 0:typeof J==="function"?q=!0:G===q5&&(q=!0);break;case 11:G===d9?q=!0:G===q5&&(q=!0);break;case 14:case 15:G===d$?q=!0:G===q5&&(q=!0);break;default:return!1}return q&&(_=L5($),_!==void 0&&_===L5(J))?!0:!1}function YH(_){L5!==null&&typeof WeakSet==="function"&&(W7===null&&(W7=new WeakSet),W7.add(_))}function WH(_,J,$){do{var q=_,G=q.alternate,F=q.child,H=q.sibling,z=q.tag;q=q.type;var w=null;switch(z){case 0:case 15:case 1:w=q;break;case 11:w=q.render}if(L5===null)throw Error("Expected resolveFamily to be set during hot reload.");var N=!1;if(q=!1,w!==null&&(w=L5(w),w!==void 0&&($.has(w)?q=!0:J.has(w)&&(z===1?q=!0:N=!0))),W7!==null&&(W7.has(_)||G!==null&&W7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||N)G=M2(_,2),G!==null&&D0(G,_,2);if(F===null||q||WH(F,J,$),H===null)break;_=H}while(1)}function FO(_,J,$,q){this.tag=_,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=J,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,MB||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function HU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function h4(_,J){var $=_.alternate;switch($===null?($=M(_.tag,J,_.key,_.mode),$.elementType=_.elementType,$.type=_.type,$.stateNode=_.stateNode,$._debugOwner=_._debugOwner,$._debugStack=_._debugStack,$._debugTask=_._debugTask,$._debugHookTypes=_._debugHookTypes,$.alternate=_,_.alternate=$):($.pendingProps=J,$.type=_.type,$.flags=0,$.subtreeFlags=0,$.deletions=null,$.actualDuration=-0,$.actualStartTime=-1.1),$.flags=_.flags&65011712,$.childLanes=_.childLanes,$.lanes=_.lanes,$.child=_.child,$.memoizedProps=_.memoizedProps,$.memoizedState=_.memoizedState,$.updateQueue=_.updateQueue,J=_.dependencies,$.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},$.sibling=_.sibling,$.index=_.index,$.ref=_.ref,$.refCleanup=_.refCleanup,$.selfBaseDuration=_.selfBaseDuration,$.treeBaseDuration=_.treeBaseDuration,$._debugInfo=_._debugInfo,$._debugNeedsRemount=_._debugNeedsRemount,$.tag){case 0:case 15:$.type=V6(_.type);break;case 1:$.type=V6(_.type);break;case 11:$.type=XU(_.type)}return $}function AH(_,J){_.flags&=65011714;var $=_.alternate;return $===null?(_.childLanes=0,_.lanes=J,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null,_.selfBaseDuration=0,_.treeBaseDuration=0):(_.childLanes=$.childLanes,_.lanes=$.lanes,_.child=$.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=$.memoizedProps,_.memoizedState=$.memoizedState,_.updateQueue=$.updateQueue,_.type=$.type,J=$.dependencies,_.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},_.selfBaseDuration=$.selfBaseDuration,_.treeBaseDuration=$.treeBaseDuration),_}function YU(_,J,$,q,G,F){var H=0,z=_;if(typeof _==="function")HU(_)&&(H=1),z=V6(z);else if(typeof _==="string")H=r(),H=Lw(_,$,H)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case qZ:return J=M(31,$,J,G),J.elementType=qZ,J.lanes=F,J;case J7:return S6($.children,G,F,J);case r$:H=8,G|=R2,G|=u5;break;case _Z:return _=$,q=G,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=M(12,_,J,q|d1),J.elementType=_Z,J.lanes=F,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case $Z:return J=M(13,$,J,G),J.elementType=$Z,J.lanes=F,J;case QZ:return J=M(19,$,J,G),J.elementType=QZ,J.lanes=F,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case z4:H=10;break _;case JZ:H=9;break _;case d9:H=11,z=XU(z);break _;case d$:H=14;break _;case q5:H=16,z=null;break _}if(z="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";_===null?$="null":a0(_)?$="array":_!==void 0&&_.$$typeof===B4?($="<"+(p(_.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(H=q?a(q):null)&&(z+=`
81
+ This will cause a hydration error.%s`,J,$),!1}function N6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function $U(_){return _.replace(QI,function(J,$){return $.toUpperCase()})}function B9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?U7.hasOwnProperty(J)&&U7[J]||(U7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,$U(J.replace($I,"ms-")))):JI.test(J)?U7.hasOwnProperty(J)&&U7[J]||(U7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!nz.test($)||LZ.hasOwnProperty($)&&LZ[$]||(LZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(nz,""))),typeof $==="number"&&(isNaN($)?ez||(ez=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||_B||(_B=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",J)))),$==null||typeof $==="boolean"||$===""?q?_.setProperty(J,""):J==="float"?_.cssFloat="":_[J]="":q?_.setProperty(J,$):typeof $!=="number"||$===0||JB.has(J)?J==="float"?_.cssFloat=$:(V0($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function aX(_,J,$){if(J!=null&&typeof J!=="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.");if(J&&Object.freeze(J),_=_.style,$!=null){if(J){var q={};if($){for(var G in $)if($.hasOwnProperty(G)&&!J.hasOwnProperty(G))for(var F=AZ[G]||[G],Y=0;Y<F.length;Y++)q[F[Y]]=G}for(var A in J)if(J.hasOwnProperty(A)&&(!$||$[A]!==J[A]))for(G=AZ[A]||[A],F=0;F<G.length;F++)q[G[F]]=A;A={};for(var w in J)for(G=AZ[w]||[w],F=0;F<G.length;F++)A[G[F]]=w;w={};for(var N in q)if(G=q[N],(F=A[N])&&G!==F&&(Y=G+","+F,!w[Y])){w[Y]=!0,Y=console;var t=J[G];Y.error.call(Y,"%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.",t==null||typeof t==="boolean"||t===""?"Removing":"Updating",G,F)}}for(var o in $)!$.hasOwnProperty(o)||J!=null&&J.hasOwnProperty(o)||(o.indexOf("--")===0?_.setProperty(o,""):o==="float"?_.cssFloat="":_[o]="");for(var c in J)N=J[c],J.hasOwnProperty(c)&&$[c]!==N&&B9(_,c,N)}else for(q in J)J.hasOwnProperty(q)&&B9(_,q,J[q])}function A9(_){if(_.indexOf("-")===-1)return!1;switch(_){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}}function sX(_){return qI.get(_)||_}function oR(_,J){if(h5.call(Z7,J)&&Z7[J])return!0;if(GI.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=$B.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),Z7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),Z7[J]=!0}if(UI.test(J)){if(_=J.toLowerCase(),_=$B.hasOwnProperty(_)?_:null,_==null)return Z7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),Z7[J]=!0)}return!0}function nR(_,J){var $=[],q;for(q in J)oR(_,q)||$.push(q);J=$.map(function(G){return"`"+G+"`"}).join(", "),$.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_):1<$.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",J,_)}function eR(_,J,$,q){if(h5.call(k2,J)&&k2[J])return!0;var G=J.toLowerCase();if(G==="onfocusin"||G==="onfocusout")return console.error("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."),k2[J]=!0;if(typeof $==="function"&&(_==="form"&&J==="action"||_==="input"&&J==="formAction"||_==="button"&&J==="formAction"))return!0;if(q!=null){if(_=q.possibleRegistrationNames,q.registrationNameDependencies.hasOwnProperty(J))return!0;if(q=_.hasOwnProperty(G)?_[G]:null,q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",J,q),k2[J]=!0;if(qB.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),k2[J]=!0}else if(qB.test(J))return ZI.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),k2[J]=!0;if(FI.test(J)||KI.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),k2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),k2[J]=!0;if(G==="is"&&$!==null&&$!==void 0&&typeof $!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof $),k2[J]=!0;if(typeof $==="number"&&isNaN($))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",J),k2[J]=!0;if($Q.hasOwnProperty(G)){if(G=$Q[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),k2[J]=!0}else if(J!==G)return console.error("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.",J,G),k2[J]=!0;switch(J){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof $){case"boolean":switch(J){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(G=J.toLowerCase().slice(0,5),G==="data-"||G==="aria-")return!0;return $?console.error('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()}.',$,J,J,$,J):console.error('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.',$,J,J,$,J,J,J),k2[J]=!0}case"function":case"symbol":return k2[J]=!0,!1;case"string":if($==="false"||$==="true"){switch(J){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",$,J,$==="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".',J,$),k2[J]=!0}}return!0}function _O(_,J,$){var q=[],G;for(G in J)eR(_,G,J[G],$)||q.push(G);J=q.map(function(F){return"`"+F+"`"}).join(", "),q.length===1?console.error("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://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("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://react.dev/link/attribute-behavior ",J,_)}function L9(_){return XI.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function m4(){}function QU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function tX(_){var J=h1(_);if(J&&(_=J.stateNode)){var $=_[V2]||null;_:switch(_=J.stateNode,J.type){case"input":if(u8(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;j1(J,"name"),$=$.querySelectorAll('input[name="'+g2(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[V2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");u8(q,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name)}}for(J=0;J<$.length;J++)q=$[J],q.form===_.form&&VJ(q)}break _;case"textarea":bJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&T3(_,!!$.multiple,J,!1)}}}function oX(_,J,$){if(MZ)return _(J,$);MZ=!0;try{var q=_(J);return q}finally{if(MZ=!1,F7!==null||K7!==null){if(s8(),F7&&(J=F7,_=K7,K7=F7=null,tX(J),_))for(J=0;J<_.length;J++)tX(_[J])}}}function M9(_,J){var $=_.stateNode;if($===null)return null;var q=$[V2]||null;if(q===null)return null;$=q[J];_:switch(J){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(q=!q.disabled)||(_=_.type,q=!(_==="button"||_==="input"||_==="select"||_==="textarea")),_=!q;break _;default:_=!1}if(_)return null;if($&&typeof $!=="function")throw Error("Expected `"+J+"` listener to be a function, instead got a value of `"+typeof $+"` type.");return $}function nX(){if(QQ)return QQ;var _,J=RZ,$=J.length,q,G="value"in m3?m3.value:m3.textContent,F=G.length;for(_=0;_<$&&J[_]===G[_];_++);var Y=$-_;for(q=1;q<=Y&&J[$-q]===G[F-q];q++);return QQ=G.slice(_,1<q?1-q:void 0)}function lJ(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function rJ(){return!0}function eX(){return!1}function p2(_){function J($,q,G,F,Y){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=F,this.target=Y,this.currentTarget=null;for(var A in _)_.hasOwnProperty(A)&&($=_[A],this[A]=$?$(F):F[A]);return this.isDefaultPrevented=(F.defaultPrevented!=null?F.defaultPrevented:F.returnValue===!1)?rJ:eX,this.isPropagationStopped=eX,this}return o1(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=rJ)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=rJ)},persist:function(){},isPersistent:rJ}),J}function JO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=II[_])?!!J[_]:!1}function qU(){return JO}function _H(_,J){switch(_){case"keyup":return EI.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==FB;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function $O(_,J){switch(_){case"compositionend":return JH(J);case"keypress":if(J.which!==XB)return null;return YB=!0,HB;case"textInput":return _=J.data,_===HB&&YB?null:_;default:return null}}function QO(_,J){if(X7)return _==="compositionend"||!fZ&&_H(_,J)?(_=nX(),QQ=RZ=m3=null,X7=!1,_):null;switch(_){case"paste":return null;case"keypress":if(!(J.ctrlKey||J.altKey||J.metaKey)||J.ctrlKey&&J.altKey){if(J.char&&1<J.char.length)return J.char;if(J.which)return String.fromCharCode(J.which)}return null;case"compositionend":return KB&&J.locale!=="ko"?null:J.data;default:return null}}function $H(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!uI[_.type]:J==="textarea"?!0:!1}function qO(_){if(!I4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function QH(_,J,$,q){F7?K7?K7.push(q):K7=[q]:F7=q,J=u$(J,"onChange"),0<J.length&&($=new qQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function UO(_){hW(_,0)}function dJ(_){var J=m1(_);if(VJ(J))return _}function qH(_,J){if(_==="change")return J}function UH(){Q_&&(Q_.detachEvent("onpropertychange",GH),q_=Q_=null)}function GH(_){if(_.propertyName==="value"&&dJ(q_)){var J=[];QH(J,q_,_,QU(_)),oX(UO,J)}}function GO(_,J,$){_==="focusin"?(UH(),Q_=J,q_=$,Q_.attachEvent("onpropertychange",GH)):_==="focusout"&&UH()}function ZO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return dJ(q_)}function FO(_,J){if(_==="click")return dJ(J)}function KO(_,J){if(_==="input"||_==="change")return dJ(J)}function XO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function T9(_,J){if(D2(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!h5.call(J,G)||!D2(_[G],J[G]))return!1}return!0}function ZH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function FH(_,J){var $=ZH(_);_=0;for(var q;$;){if($.nodeType===3){if(q=_+$.textContent.length,_<=J&&q>=J)return{node:$,offset:J-_};_=q}_:{for(;$;){if($.nextSibling){$=$.nextSibling;break _}$=$.parentNode}$=void 0}$=ZH($)}}function KH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?KH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function XH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=b8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=b8(_.document)}return J}function UU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function HH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;NZ||H7==null||H7!==b8(q)||(q=H7,("selectionStart"in q)&&UU(q)?q={start:q.selectionStart,end:q.selectionEnd}:(q=(q.ownerDocument&&q.ownerDocument.defaultView||window).getSelection(),q={anchorNode:q.anchorNode,anchorOffset:q.anchorOffset,focusNode:q.focusNode,focusOffset:q.focusOffset}),U_&&T9(U_,q)||(U_=q,q=u$(PZ,"onSelect"),0<q.length&&(J=new qQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=H7)))}function C6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function S6(_){if(CZ[_])return CZ[_];if(!Y7[_])return _;var J=Y7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in zB)return CZ[_]=J[$];return _}function b5(_,J){TB.set(_,J),J2(J,[_])}function HO(_){for(var J=GQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(s0(q)&&q.length===2&&typeof q[0]==="string"){if(J!==GQ&&J!==DZ)return VZ;J=DZ}else return VZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==GQ&&J!==kZ)return VZ;J=kZ}}return J}function GU(_,J,$,q){for(var G in _)h5.call(_,G)&&G[0]!=="_"&&J4(G,_[G],J,$,q)}function J4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===L4){var F=g(J.type)||"…",Y=J.key;J=J.props;var A=Object.keys(J),w=A.length;if(Y==null&&w===0){J="<"+F+" />";break}if(3>q||w===1&&A[0]==="children"&&Y==null){J="<"+F+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+F]),Y!==null&&J4("key",Y,$,q+1,G),_=!1;for(var N in J)N==="children"?J.children!=null&&(!s0(J.children)||0<J.children.length)&&(_=!0):h5.call(J,N)&&N[0]!=="_"&&J4(N,J[N],$,q+1,G);$.push(["",_?">…</"+F+">":"/>"]);return}if(F=Object.prototype.toString.call(J),F=F.slice(8,F.length-1),F==="Array"){if(N=HO(J),N===kZ||N===GQ){J=JSON.stringify(J);break}else if(N===DZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)F=J[_],J4(F[0],F[1],$,q+1,G);return}}if(F==="Promise"){if(J.status==="fulfilled"){if(F=$.length,J4(_,J.value,$,q,G),$.length>F){$=$[F],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(F=$.length,J4(_,J.reason,$,q,G),$.length>F)){$=$[F],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}F==="Object"&&(N=Object.getPrototypeOf(J))&&typeof N.constructor==="function"&&(F=N.constructor.name),$.push([G+"  ".repeat(q)+_,F==="Object"?3>q?"":"…":F]),3>q&&GU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===lI?"…":JSON.stringify(J);break;case"undefined":J="undefined";break;case"boolean":J=J?"true":"false";break;default:J=String(J)}$.push([G+"  ".repeat(q)+_,J])}function YH(_,J,$,q){var G=!0;for(Y in _)Y in J||($.push([ZQ+"  ".repeat(q)+Y,"…"]),G=!1);for(var F in J)if(F in _){var Y=_[F],A=J[F];if(Y!==A){if(q===0&&F==="children")G="  ".repeat(q)+F,$.push([ZQ+G,"…"],[FQ+G,"…"]);else{if(!(3<=q)){if(typeof Y==="object"&&typeof A==="object"&&Y!==null&&A!==null&&Y.$$typeof===A.$$typeof)if(A.$$typeof===L4){if(Y.type===A.type&&Y.key===A.key){Y=g(A.type)||"…",G="  ".repeat(q)+F,Y="<"+Y+" … />",$.push([ZQ+G,Y],[FQ+G,Y]),G=!1;continue}}else{var w=Object.prototype.toString.call(Y),N=Object.prototype.toString.call(A);if(w===N&&(N==="[object Object]"||N==="[object Array]")){w=[wB+"  ".repeat(q)+F,N==="[object Array]"?"Array":""],$.push(w),N=$.length,YH(Y,A,$,q+1)?N===$.length&&(w[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof Y==="function"&&typeof A==="function"&&Y.name===A.name&&Y.length===A.length&&(w=Function.prototype.toString.call(Y),N=Function.prototype.toString.call(A),w===N)){Y=A.name===""?"() => {}":A.name+"() {}",$.push([wB+"  ".repeat(q)+F,Y+" Referentially unequal function closure. Consider memoization."]);continue}}J4(F,Y,$,q,ZQ),J4(F,A,$,q,FQ)}G=!1}}else $.push([FQ+"  ".repeat(q)+F,"…"]),G=!1;return G}function n2(_){e1=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function $4(_,J,$,q){O0&&(p3.start=J,p3.end=$,s4.color="warning",s4.tooltipText=q,s4.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,p3)):performance.measure(q,p3))}function iJ(_,J,$){$4(_,J,$,"Reconnect")}function aJ(_,J,$,q,G){var F=m(_);if(F!==null&&O0){var{alternate:Y,actualDuration:A}=_;if(Y===null||Y.child!==_.child)for(var w=_.child;w!==null;w=w.sibling)A-=w.actualDuration;q=0.5>A?q?"tertiary-light":"primary-light":10>A?q?"tertiary":"primary":100>A?q?"tertiary-dark":"primary-dark":"error";var N=_.memoizedProps;A=_._debugTask,N!==null&&Y!==null&&Y.memoizedProps!==N?(w=[rI],N=YH(Y.memoizedProps,N,w,0),1<w.length&&(N&&!g3&&(Y.lanes&G)===0&&100<_.actualDuration?(g3=!0,w[0]=dI,s4.color="warning",s4.tooltipText=IB):(s4.color=q,s4.tooltipText=F),s4.properties=w,p3.start=J,p3.end=$,A!=null?A.run(performance.measure.bind(performance,"​"+F,p3)):performance.measure("​"+F,p3))):A!=null?A.run(console.timeStamp.bind(console,F,J,$,T5,void 0,q)):console.timeStamp(F,J,$,T5,void 0,q)}}function ZU(_,J,$,q){if(O0){var G=m(_);if(G!==null){for(var F=null,Y=[],A=0;A<q.length;A++){var w=q[A];F==null&&w.source!==null&&(F=w.source._debugTask),w=w.value,Y.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}_.key!==null&&J4("key",_.key,Y,0,""),_.memoizedProps!==null&&GU(_.memoizedProps,Y,0,""),F==null&&(F=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:T5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:Y}}},F?F.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function Q4(_,J,$,q,G){if(G!==null){if(O0){var F=m(_);if(F!==null){q=[];for(var Y=0;Y<G.length;Y++){var A=G[Y].value;q.push(["Error",typeof A==="object"&&A!==null&&typeof A.message==="string"?String(A.message):String(A)])}_.key!==null&&J4("key",_.key,q,0,""),_.memoizedProps!==null&&GU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:T5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+F,J)):performance.measure("​"+F,J)}}}else F=m(_),F!==null&&O0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,F,J,$,T5,void 0,G)):console.timeStamp(F,J,$,T5,void 0,G))}function YO(_,J,$,q){if(O0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,e1,n1,G)):console.timeStamp($,_,J,e1,n1,G)}}function WH(_,J,$,q){!O0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,e1,n1,$)):console.timeStamp("Prewarm",_,J,e1,n1,$))}function zH(_,J,$,q){!O0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,e1,n1,$)):console.timeStamp("Suspended",_,J,e1,n1,$))}function WO(_,J,$,q,G,F){if(O0&&!(J<=_)){$=[];for(var Y=0;Y<q.length;Y++){var A=q[Y].value;$.push(["Recoverable Error",typeof A==="object"&&A!==null&&typeof A.message==="string"?String(A.message):String(A)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:e1,trackGroup:n1,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},F?F.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function FU(_,J,$,q){!O0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,e1,n1,"error")):console.timeStamp("Errored",_,J,e1,n1,"error"))}function zO(_,J,$,q){!O0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,e1,n1,"secondary-light")):console.timeStamp($,_,J,e1,n1,"secondary-light"))}function BH(_,J,$,q,G){if(O0&&!(J<=_)){for(var F=[],Y=0;Y<$.length;Y++){var A=$[Y].value;F.push(["Error",typeof A==="object"&&A!==null&&typeof A.message==="string"?String(A.message):String(A)])}_={start:_,end:J,detail:{devtools:{color:"error",track:e1,trackGroup:n1,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:F}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function R9(_,J,$){!O0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,e1,n1,"secondary-dark")):console.timeStamp("Animating",_,J,e1,n1,"secondary-dark"))}function sJ(){for(var _=W7,J=yZ=W7=0;J<_;){var $=R5[J];R5[J++]=null;var q=R5[J];R5[J++]=null;var G=R5[J];R5[J++]=null;var F=R5[J];if(R5[J++]=null,q!==null&&G!==null){var Y=q.pending;Y===null?G.next=G:(G.next=Y.next,Y.next=G),q.pending=G}F!==0&&AH($,G,F)}}function tJ(_,J,$,q){R5[W7++]=_,R5[W7++]=J,R5[W7++]=$,R5[W7++]=q,yZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function KU(_,J,$,q){return tJ(_,J,$,q),oJ(_)}function M2(_,J){return tJ(_,null,null,J),oJ(_)}function AH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,F=_.return;F!==null;)F.childLanes|=$,q=F.alternate,q!==null&&(q.childLanes|=$),F.tag===22&&(_=F.stateNode,_===null||_._visibility&G_||(G=!0)),_=F,F=F.return;return _.tag===3?(F=_.stateNode,G&&J!==null&&(G=31-j2($),_=F.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),F):null}function oJ(_){if(y_>Zf)throw Q8=y_=0,v_=YF=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.");Q8>Ff&&(Q8=0,v_=null,console.error("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.")),_.alternate===null&&(_.flags&4098)!==0&&DW(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&DW(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function j6(_){if(O5===null)return _;var J=O5(_);return J===void 0?_:J.current}function XU(_){if(O5===null)return _;var J=O5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=j6(_.render),_.render!==J)?(J={$$typeof:a9,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function LH(_,J){if(O5===null)return!1;var $=_.elementType;J=J.type;var q=!1,G=typeof J==="object"&&J!==null?J.$$typeof:null;switch(_.tag){case 1:typeof J==="function"&&(q=!0);break;case 0:typeof J==="function"?q=!0:G===U5&&(q=!0);break;case 11:G===a9?q=!0:G===U5&&(q=!0);break;case 14:case 15:G===a$?q=!0:G===U5&&(q=!0);break;default:return!1}return q&&(_=O5($),_!==void 0&&_===O5(J))?!0:!1}function MH(_){O5!==null&&typeof WeakSet==="function"&&(z7===null&&(z7=new WeakSet),z7.add(_))}function TH(_,J,$){do{var q=_,G=q.alternate,F=q.child,Y=q.sibling,A=q.tag;q=q.type;var w=null;switch(A){case 0:case 15:case 1:w=q;break;case 11:w=q.render}if(O5===null)throw Error("Expected resolveFamily to be set during hot reload.");var N=!1;if(q=!1,w!==null&&(w=O5(w),w!==void 0&&($.has(w)?q=!0:J.has(w)&&(A===1?q=!0:N=!0))),z7!==null&&(z7.has(_)||G!==null&&z7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||N)G=M2(_,2),G!==null&&k0(G,_,2);if(F===null||q||TH(F,J,$),Y===null)break;_=Y}while(1)}function BO(_,J,$,q){this.tag=_,this.key=$,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=J,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,fB||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function HU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function g4(_,J){var $=_.alternate;switch($===null?($=M(_.tag,J,_.key,_.mode),$.elementType=_.elementType,$.type=_.type,$.stateNode=_.stateNode,$._debugOwner=_._debugOwner,$._debugStack=_._debugStack,$._debugTask=_._debugTask,$._debugHookTypes=_._debugHookTypes,$.alternate=_,_.alternate=$):($.pendingProps=J,$.type=_.type,$.flags=0,$.subtreeFlags=0,$.deletions=null,$.actualDuration=-0,$.actualStartTime=-1.1),$.flags=_.flags&65011712,$.childLanes=_.childLanes,$.lanes=_.lanes,$.child=_.child,$.memoizedProps=_.memoizedProps,$.memoizedState=_.memoizedState,$.updateQueue=_.updateQueue,J=_.dependencies,$.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},$.sibling=_.sibling,$.index=_.index,$.ref=_.ref,$.refCleanup=_.refCleanup,$.selfBaseDuration=_.selfBaseDuration,$.treeBaseDuration=_.treeBaseDuration,$._debugInfo=_._debugInfo,$._debugNeedsRemount=_._debugNeedsRemount,$.tag){case 0:case 15:$.type=j6(_.type);break;case 1:$.type=j6(_.type);break;case 11:$.type=XU(_.type)}return $}function RH(_,J){_.flags&=65011714;var $=_.alternate;return $===null?(_.childLanes=0,_.lanes=J,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null,_.selfBaseDuration=0,_.treeBaseDuration=0):(_.childLanes=$.childLanes,_.lanes=$.lanes,_.child=$.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=$.memoizedProps,_.memoizedState=$.memoizedState,_.updateQueue=$.updateQueue,_.type=$.type,J=$.dependencies,_.dependencies=J===null?null:{lanes:J.lanes,firstContext:J.firstContext,_debugThenableState:J._debugThenableState},_.selfBaseDuration=$.selfBaseDuration,_.treeBaseDuration=$.treeBaseDuration),_}function YU(_,J,$,q,G,F){var Y=0,A=_;if(typeof _==="function")HU(_)&&(Y=1),A=j6(A);else if(typeof _==="string")Y=r(),Y=fw(_,$,Y)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case qZ:return J=M(31,$,J,G),J.elementType=qZ,J.lanes=F,J;case $7:return V6($.children,G,F,J);case i$:Y=8,G|=R2,G|=g5;break;case _Z:return _=$,q=G,typeof _.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof _.id),J=M(12,_,J,q|d1),J.elementType=_Z,J.lanes=F,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case $Z:return J=M(13,$,J,G),J.elementType=$Z,J.lanes=F,J;case QZ:return J=M(19,$,J,G),J.elementType=QZ,J.lanes=F,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case M4:Y=10;break _;case JZ:Y=9;break _;case a9:Y=11,A=XU(A);break _;case a$:Y=14;break _;case U5:Y=16,A=null;break _}if(A="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";_===null?$="null":s0(_)?$="array":_!==void 0&&_.$$typeof===L4?($="<"+(g(_.type)||"Unknown")+" />",A=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(Y=q?i(q):null)&&(A+=`
82
82
 
83
- Check the render method of \``+H+"`."),H=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+z)),z=null}return J=M(H,$,J,G),J.elementType=_,J.type=z,J.lanes=F,J._debugOwner=q,J}function tJ(_,J,$){return J=YU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function S6(_,J,$,q){return _=M(7,_,q,J),_.lanes=$,_}function WU(_,J,$){return _=M(6,_,null,J),_.lanes=$,_}function BH(_){var J=M(18,null,null,u1);return J.stateNode=_,J}function AU(_,J,$){return J=M(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function n2(_,J){if(typeof _==="object"&&_!==null){var $=vZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:I1(J)},vZ.set(_,J),J}return{value:_,source:J,stack:I1(J)}}function m4(_,J){w3(),A7[B7++]=U_,A7[B7++]=ZQ,ZQ=_,U_=J}function zH(_,J,$){w3(),M5[T5++]=s4,M5[T5++]=t4,M5[T5++]=c6,c6=_;var q=s4;_=t4;var G=32-V2(q)-1;q&=~(1<<G),$+=1;var F=32-V2(J)+G;if(30<F){var H=G-G%5;F=(q&(1<<H)-1).toString(32),q>>=H,G-=H,s4=1<<32-V2(J)+G|$<<G|q,t4=F+_}else s4=1<<F|$<<G|q,t4=_}function BU(_){w3(),_.return!==null&&(m4(_,1),zH(_,1,0))}function zU(_){for(;_===ZQ;)ZQ=A7[--B7],A7[B7]=null,U_=A7[--B7],A7[B7]=null;for(;_===c6;)c6=M5[--T5],M5[T5]=null,t4=M5[--T5],M5[T5]=null,s4=M5[--T5],M5[T5]=null}function LH(){return w3(),c6!==null?{id:s4,overflow:t4}:null}function MH(_,J){w3(),M5[T5++]=s4,M5[T5++]=t4,M5[T5++]=c6,s4=J.id,t4=J.overflow,c6=_}function w3(){J0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function D6(_,J){if(_.return===null){if(Z5===null)Z5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(Z5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Z5.distanceFromLeaf>J&&(Z5.distanceFromLeaf=J)}return Z5}var $=D6(_.return,J+1).children;if(0<$.length&&$[$.length-1].fiber===_)return $=$[$.length-1],$.distanceFromLeaf>J&&($.distanceFromLeaf=J),$;return J={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J},$.push(J),J}function TH(){J0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function oJ(_,J){w4||(_=D6(_,0),_.serverProps=null,J!==null&&(J=oW(J),_.serverTail.push(J)))}function I3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=Z5;throw q!==null&&(Z5=null,$=X9(q)),T9(n2(Error("Hydration failed because the server rendered "+(J?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
83
+ Check the render method of \``+Y+"`."),Y=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+A)),A=null}return J=M(Y,$,J,G),J.elementType=_,J.type=A,J.lanes=F,J._debugOwner=q,J}function nJ(_,J,$){return J=YU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function V6(_,J,$,q){return _=M(7,_,q,J),_.lanes=$,_}function WU(_,J,$){return _=M(6,_,null,J),_.lanes=$,_}function OH(_){var J=M(18,null,null,x1);return J.stateNode=_,J}function zU(_,J,$){return J=M(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function e2(_,J){if(typeof _==="object"&&_!==null){var $=vZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:I1(J)},vZ.set(_,J),J}return{value:_,source:J,stack:I1(J)}}function p4(_,J){f3(),B7[A7++]=Z_,B7[A7++]=KQ,KQ=_,Z_=J}function wH(_,J,$){f3(),w5[I5++]=o4,w5[I5++]=n4,w5[I5++]=c6,c6=_;var q=o4;_=n4;var G=32-j2(q)-1;q&=~(1<<G),$+=1;var F=32-j2(J)+G;if(30<F){var Y=G-G%5;F=(q&(1<<Y)-1).toString(32),q>>=Y,G-=Y,o4=1<<32-j2(J)+G|$<<G|q,n4=F+_}else o4=1<<F|$<<G|q,n4=_}function BU(_){f3(),_.return!==null&&(p4(_,1),wH(_,1,0))}function AU(_){for(;_===KQ;)KQ=B7[--A7],B7[A7]=null,Z_=B7[--A7],B7[A7]=null;for(;_===c6;)c6=w5[--I5],w5[I5]=null,n4=w5[--I5],w5[I5]=null,o4=w5[--I5],w5[I5]=null}function IH(){return f3(),c6!==null?{id:o4,overflow:n4}:null}function fH(_,J){f3(),w5[I5++]=o4,w5[I5++]=n4,w5[I5++]=c6,o4=J.id,n4=J.overflow,c6=_}function f3(){J0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function k6(_,J){if(_.return===null){if(F5===null)F5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(F5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");F5.distanceFromLeaf>J&&(F5.distanceFromLeaf=J)}return F5}var $=k6(_.return,J+1).children;if(0<$.length&&$[$.length-1].fiber===_)return $=$[$.length-1],$.distanceFromLeaf>J&&($.distanceFromLeaf=J),$;return J={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J},$.push(J),J}function PH(){J0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function eJ(_,J){f4||(_=k6(_,0),_.serverProps=null,J!==null&&(J=Qz(J),_.serverTail.push(J)))}function P3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=F5;throw q!==null&&(F5=null,$=Y9(q)),O9(e2(Error("Hydration failed because the server rendered "+(J?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
84
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -90,7 +90,7 @@ Check the render method of \``+H+"`."),H=29,$=Error("Element type is invalid: ex
90
90
 
91
91
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
92
 
93
- https://react.dev/link/hydration-mismatch`+$),_)),EZ}function RH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[X2]=_,J[S2]=q,bG($,q),$){case"dialog":$0("cancel",J),$0("close",J);break;case"iframe":case"object":case"embed":$0("load",J);break;case"video":case"audio":for($=0;$<y_.length;$++)$0(y_[$],J);break;case"source":$0("error",J);break;case"img":case"image":case"link":$0("error",J),$0("load",J);break;case"details":$0("toggle",J);break;case"input":n5("input",q),$0("invalid",J),VJ(J,q),U9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":SJ(J,q);break;case"select":n5("select",q),$0("invalid",J),kJ(J,q);break;case"textarea":n5("textarea",q),$0("invalid",J),yJ(J,q),G9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||xW(J.textContent,$)?(q.popover!=null&&($0("beforetoggle",J),$0("toggle",J)),q.onScroll!=null&&$0("scroll",J),q.onScrollEnd!=null&&$0("scrollend",J),q.onClick!=null&&(J.onclick=u4),J=!0):J=!1,J||I3(_,!0)}function OH(_){for(H2=_.return;H2;)switch(H2.tag){case 5:case 31:case 13:R5=!1;return;case 27:case 3:R5=!0;return;default:H2=H2.return}}function h8(_){if(_!==H2)return!1;if(!J0)return OH(_),J0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||gG(_.type,_.memoizedProps);$=!$}if($&&O0){for($=O0;$;){var q=D6(_,0),G=oW($);q.serverTail.push(G),$=G.type==="Suspense"?rG($):Q5($.nextSibling)}I3(_)}if(OH(_),J===13){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");O0=rG(_)}else if(J===31){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");O0=rG(_)}else J===27?(J=O0,y3(_.type)?(_=fF,fF=null,O0=_):O0=J):O0=H2?Q5(_.stateNode.nextSibling):null;return!0}function k6(){O0=H2=null,w4=J0=!1}function LU(){var _=p3;return _!==null&&(b2===null?b2=_:b2.push.apply(b2,_),p3=null),_}function T9(_){p3===null?p3=[_]:p3.push(_)}function MU(){var _=Z5;if(_!==null){Z5=null;for(var J=X9(_);0<_.children.length;)_=_.children[0];Y1(_.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
93
+ https://react.dev/link/hydration-mismatch`+$),_)),EZ}function NH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[H2]=_,J[V2]=q,bG($,q),$){case"dialog":$0("cancel",J),$0("close",J);break;case"iframe":case"object":case"embed":$0("load",J);break;case"video":case"audio":for($=0;$<E_.length;$++)$0(E_[$],J);break;case"source":$0("error",J);break;case"img":case"image":case"link":$0("error",J),$0("load",J);break;case"details":$0("toggle",J);break;case"input":_4("input",q),$0("invalid",J),kJ(J,q),Z9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":DJ(J,q);break;case"select":_4("select",q),$0("invalid",J),vJ(J,q);break;case"textarea":_4("textarea",q),$0("invalid",J),EJ(J,q),F9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||cW(J.textContent,$)?(q.popover!=null&&($0("beforetoggle",J),$0("toggle",J)),q.onScroll!=null&&$0("scroll",J),q.onScrollEnd!=null&&$0("scrollend",J),q.onClick!=null&&(J.onclick=m4),J=!0):J=!1,J||P3(_,!0)}function CH(_){for(Y2=_.return;Y2;)switch(Y2.tag){case 5:case 31:case 13:f5=!1;return;case 27:case 3:f5=!0;return;default:Y2=Y2.return}}function m8(_){if(_!==Y2)return!1;if(!J0)return CH(_),J0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||gG(_.type,_.memoizedProps);$=!$}if($&&w0){for($=w0;$;){var q=k6(_,0),G=Qz($);q.serverTail.push(G),$=G.type==="Suspense"?rG($):q5($.nextSibling)}P3(_)}if(CH(_),J===13){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");w0=rG(_)}else if(J===31){if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");w0=rG(_)}else J===27?(J=w0,E3(_.type)?(_=fF,fF=null,w0=_):w0=J):w0=Y2?q5(_.stateNode.nextSibling):null;return!0}function D6(){w0=Y2=null,f4=J0=!1}function LU(){var _=l3;return _!==null&&(b2===null?b2=_:b2.push.apply(b2,_),l3=null),_}function O9(_){l3===null?l3=[_]:l3.push(_)}function MU(){var _=F5;if(_!==null){F5=null;for(var J=Y9(_);0<_.children.length;)_=_.children[0];W1(_.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
94
94
 
95
95
  - A server/client branch \`if (typeof window !== 'undefined')\`.
96
96
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -100,54 +100,54 @@ https://react.dev/link/hydration-mismatch`+$),_)),EZ}function RH(_){var{stateNod
100
100
 
101
101
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
102
102
 
103
- %s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function nJ(){z7=FQ=null,L7=!1}function f3(_,J,$){_1(bZ,J._currentValue,_),J._currentValue=$,_1(xZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==RB&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=RB}function g4(_,J){_._currentValue=bZ.current;var $=xZ.current;$1(xZ,J),_._currentRenderer=$,$1(bZ,J)}function TU(_,J,$){for(;_!==null;){var q=_.alternate;if((_.childLanes&J)!==J?(_.childLanes|=J,q!==null&&(q.childLanes|=J)):q!==null&&(q.childLanes&J)!==J&&(q.childLanes|=J),_===$)break;_=_.return}_!==$&&console.error("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 RU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var F=G.dependencies;if(F!==null){var H=G.child;F=F.firstContext;_:for(;F!==null;){var z=F;F=G;for(var w=0;w<J.length;w++)if(z.context===J[w]){F.lanes|=$,z=F.alternate,z!==null&&(z.lanes|=$),TU(F.return,$,_),q||(H=null);break _}F=z.next}}else if(G.tag===18){if(H=G.return,H===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");H.lanes|=$,F=H.alternate,F!==null&&(F.lanes|=$),TU(H,$,_),H=null}else H=G.child;if(H!==null)H.return=G;else for(H=G;H!==null;){if(H===_){H=null;break}if(G=H.sibling,G!==null){G.return=H.return,H=G;break}H=H.return}G=H}}function m8(_,J,$,q){_=null;for(var G=J,F=!1;G!==null;){if(!F){if((G.flags&524288)!==0)F=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var H=G.alternate;if(H===null)throw Error("Should have a current fiber. This is a bug in React.");if(H=H.memoizedProps,H!==null){var z=G.type;k2(G.pendingProps.value,H.value)||(_!==null?_.push(z):_=[z])}}else if(G===i$.current){if(H=G.alternate,H===null)throw Error("Should have a current fiber. This is a bug in React.");H.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(u_):_=[u_])}G=G.return}_!==null&&RU(J,_,$,q),J.flags|=262144}function eJ(_){for(_=_.firstContext;_!==null;){if(!k2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function y6(_){FQ=_,z7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function I0(_){return L7&&console.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()."),wH(FQ,_)}function _$(_,J){return FQ===null&&y6(_),wH(_,J)}function wH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},z7===null){if(_===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().");z7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else z7=z7.next=J;return $}function OU(){return{controller:new pI,data:new Map,refCount:0}}function v6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function R9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&cI(lI,function(){_.controller.abort()})}function $4(_,J,$){if((_&127)!==0)0>I4&&(I4=p0(),Z_=KQ(J),uZ=J,$!=null&&(hZ=t($)),(G0&(t0|X5))!==U2&&(k0=!0,r3=G_),_=g9(),J=m9(),_!==M7||J!==F_?M7=-1.1:J!==null&&(r3=G_),r6=_,F_=J);else if((_&4194048)!==0&&0>O5&&(O5=p0(),K_=KQ(J),OB=J,$!=null&&(wB=t($)),0>e4)){if(_=g9(),J=m9(),_!==i3||J!==d6)i3=-1.1;d3=_,d6=J}}function KO(_){if(0>I4){I4=p0(),Z_=_._debugTask!=null?_._debugTask:null,(G0&(t0|X5))!==U2&&(r3=G_);var J=g9(),$=m9();J!==M7||$!==F_?M7=-1.1:$!==null&&(r3=G_),r6=J,F_=$}if(0>O5&&(O5=p0(),K_=_._debugTask!=null?_._debugTask:null,0>e4)){if(_=g9(),J=m9(),_!==i3||J!==d6)i3=-1.1;d3=_,d6=J}}function p4(){var _=l6;return l6=0,_}function J$(_){var J=l6;return l6=_,J}function O9(_){var J=l6;return l6+=_,J}function $$(){b1=k1=-1.1}function e2(){var _=k1;return k1=-1.1,_}function _5(_){0<=_&&(k1=_)}function Q4(){var _=C0;return C0=-0,_}function q4(_){0<=_&&(C0=_)}function U4(){var _=f0;return f0=null,_}function G4(){var _=k0;return k0=!1,_}function wU(_){y2=p0(),0>_.actualStartTime&&(_.actualStartTime=y2)}function IU(_){if(0<=y2){var J=p0()-y2;_.actualDuration+=J,_.selfBaseDuration=J,y2=-1}}function IH(_){if(0<=y2){var J=p0()-y2;_.actualDuration+=J,y2=-1}}function Z4(){if(0<=y2){var _=p0(),J=_-y2;y2=-1,l6+=J,C0+=J,b1=_}}function fH(_){f0===null&&(f0=[]),f0.push(_),n4===null&&(n4=[]),n4.push(_)}function F4(){y2=p0(),0>k1&&(k1=y2)}function w9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function XO(_,J){if(H_===null){var $=H_=[];gZ=0,i6=kG(),T7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return gZ++,J.then(PH,PH),J}function PH(){if(--gZ===0&&(-1<O5||(e4=-1.1),H_!==null)){T7!==null&&(T7.status="fulfilled");var _=H_;H_=null,i6=0,T7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function HO(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(G){$.push(G)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var G=0;G<$.length;G++)(0,$[G])(J)},function(G){q.status="rejected",q.reason=G;for(G=0;G<$.length;G++)(0,$[G])(void 0)}),q}function fU(){var _=a6.current;return _!==null?_:z0.pooledCache}function Q$(_,J){J===null?_1(a6,a6.current,_):_1(a6,J.pool,_)}function NH(){var _=fU();return _===null?null:{parent:g0._currentValue,pool:_}}function jH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function CH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function VH(_,J,$){G1.actQueue!==null&&(G1.didUsePromise=!0);var q=_.thenables;if($=q[$],$===void 0?q.push(J):$!==J&&(_.didWarnAboutUncachedPromise||(_.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),J.then(u4,u4),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var G={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:G}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){G.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,DH(_),_;default:if(typeof J.status==="string")J.then(u4,u4);else{if(_=z0,_!==null&&100<_.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");_=J,_.status="pending",_.then(function(F){if(J.status==="pending"){var H=J;H.status="fulfilled",H.value=F}},function(F){if(J.status==="pending"){var H=J;H.status="rejected",H.reason=F}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,DH(_),_}throw t6=J,M_=!0,R7}}function P3(_){try{return aI(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw t6=J,M_=!0,R7;throw J}}function SH(){if(t6===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=t6;return t6=null,M_=!1,_}function DH(_){if(_===R7||_===LQ)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Z2(_){var J=i1;return _!=null&&(i1=J===null?_:J.concat(_)),J}function PU(){var _=i1;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function q$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var F=q[G];if(F!=="children"&&F!=="key"){J===null&&(J=tJ(_,$.mode,0),J._debugInfo=i1,J.return=$),Y1(J,function(H){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H)},F);break}}}function U$(_){var J=T_;return T_+=1,O7===null&&(O7=jH()),VH(O7,_,J)}function I9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function kH(_,J){if(J.$$typeof===jw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
103
+ %s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function _$(){L7=XQ=null,M7=!1}function N3(_,J,$){d(bZ,J._currentValue,_),J._currentValue=$,d(uZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==NB&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=NB}function c4(_,J){_._currentValue=bZ.current;var $=uZ.current;$1(uZ,J),_._currentRenderer=$,$1(bZ,J)}function TU(_,J,$){for(;_!==null;){var q=_.alternate;if((_.childLanes&J)!==J?(_.childLanes|=J,q!==null&&(q.childLanes|=J)):q!==null&&(q.childLanes&J)!==J&&(q.childLanes|=J),_===$)break;_=_.return}_!==$&&console.error("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 RU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var F=G.dependencies;if(F!==null){var Y=G.child;F=F.firstContext;_:for(;F!==null;){var A=F;F=G;for(var w=0;w<J.length;w++)if(A.context===J[w]){F.lanes|=$,A=F.alternate,A!==null&&(A.lanes|=$),TU(F.return,$,_),q||(Y=null);break _}F=A.next}}else if(G.tag===18){if(Y=G.return,Y===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");Y.lanes|=$,F=Y.alternate,F!==null&&(F.lanes|=$),TU(Y,$,_),Y=null}else Y=G.child;if(Y!==null)Y.return=G;else for(Y=G;Y!==null;){if(Y===_){Y=null;break}if(G=Y.sibling,G!==null){G.return=Y.return,Y=G;break}Y=Y.return}G=Y}}function g8(_,J,$,q){_=null;for(var G=J,F=!1;G!==null;){if(!F){if((G.flags&524288)!==0)F=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var Y=G.alternate;if(Y===null)throw Error("Should have a current fiber. This is a bug in React.");if(Y=Y.memoizedProps,Y!==null){var A=G.type;D2(G.pendingProps.value,Y.value)||(_!==null?_.push(A):_=[A])}}else if(G===s$.current){if(Y=G.alternate,Y===null)throw Error("Should have a current fiber. This is a bug in React.");Y.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(m_):_=[m_])}G=G.return}_!==null&&RU(J,_,$,q),J.flags|=262144}function J$(_){for(_=_.firstContext;_!==null;){if(!D2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function y6(_){XQ=_,L7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function f0(_){return M7&&console.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()."),SH(XQ,_)}function $$(_,J){return XQ===null&&y6(_),SH(_,J)}function SH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},L7===null){if(_===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().");L7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else L7=L7.next=J;return $}function OU(){return{controller:new sI,data:new Map,refCount:0}}function v6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function w9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&tI(oI,function(){_.controller.abort()})}function q4(_,J,$){if((_&127)!==0)0>P4&&(P4=c0(),K_=HQ(J),xZ=J,$!=null&&(hZ=m($)),(Z0&(o0|H5))!==G2&&(D0=!0,i3=F_),_=c9(),J=p9(),_!==T7||J!==X_?T7=-1.1:J!==null&&(i3=F_),r6=_,X_=J);else if((_&4194048)!==0&&0>P5&&(P5=c0(),H_=HQ(J),CB=J,$!=null&&(SB=m($)),0>J3)){if(_=c9(),J=p9(),_!==s3||J!==d6)s3=-1.1;a3=_,d6=J}}function AO(_){if(0>P4){P4=c0(),K_=_._debugTask!=null?_._debugTask:null,(Z0&(o0|H5))!==G2&&(i3=F_);var J=c9(),$=p9();J!==T7||$!==X_?T7=-1.1:$!==null&&(i3=F_),r6=J,X_=$}if(0>P5&&(P5=c0(),H_=_._debugTask!=null?_._debugTask:null,0>J3)){if(_=c9(),J=p9(),_!==s3||J!==d6)s3=-1.1;a3=_,d6=J}}function l4(){var _=l6;return l6=0,_}function Q$(_){var J=l6;return l6=_,J}function I9(_){var J=l6;return l6+=_,J}function q$(){u1=D1=-1.1}function _5(){var _=D1;return D1=-1.1,_}function J5(_){0<=_&&(D1=_)}function U4(){var _=S0;return S0=-0,_}function G4(_){0<=_&&(S0=_)}function Z4(){var _=P0;return P0=null,_}function F4(){var _=D0;return D0=!1,_}function wU(_){y2=c0(),0>_.actualStartTime&&(_.actualStartTime=y2)}function IU(_){if(0<=y2){var J=c0()-y2;_.actualDuration+=J,_.selfBaseDuration=J,y2=-1}}function jH(_){if(0<=y2){var J=c0()-y2;_.actualDuration+=J,y2=-1}}function K4(){if(0<=y2){var _=c0(),J=_-y2;y2=-1,l6+=J,S0+=J,u1=_}}function VH(_){P0===null&&(P0=[]),P0.push(_),_3===null&&(_3=[]),_3.push(_)}function X4(){y2=c0(),0>D1&&(D1=y2)}function f9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function LO(_,J){if(W_===null){var $=W_=[];gZ=0,i6=DG(),R7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return gZ++,J.then(kH,kH),J}function kH(){if(--gZ===0&&(-1<P5||(J3=-1.1),W_!==null)){R7!==null&&(R7.status="fulfilled");var _=W_;W_=null,i6=0,R7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function MO(_,J){var $=[],q={status:"pending",value:null,reason:null,then:function(G){$.push(G)}};return _.then(function(){q.status="fulfilled",q.value=J;for(var G=0;G<$.length;G++)(0,$[G])(J)},function(G){q.status="rejected",q.reason=G;for(G=0;G<$.length;G++)(0,$[G])(void 0)}),q}function fU(){var _=a6.current;return _!==null?_:L0.pooledCache}function U$(_,J){J===null?d(a6,a6.current,_):d(a6,J.pool,_)}function DH(){var _=fU();return _===null?null:{parent:p0._currentValue,pool:_}}function yH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function vH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function EH(_,J,$){Z1.actQueue!==null&&(Z1.didUsePromise=!0);var q=_.thenables;if($=q[$],$===void 0?q.push(J):$!==J&&(_.didWarnAboutUncachedPromise||(_.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),J.then(m4,m4),J=$),J._debugInfo===void 0){_=performance.now(),q=J.displayName;var G={name:typeof q==="string"?q:"Promise",start:_,end:_,value:J};J._debugInfo=[{awaited:G}],J.status!=="fulfilled"&&J.status!=="rejected"&&(_=function(){G.end=performance.now()},J.then(_,_))}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,uH(_),_;default:if(typeof J.status==="string")J.then(m4,m4);else{if(_=L0,_!==null&&100<_.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");_=J,_.status="pending",_.then(function(F){if(J.status==="pending"){var Y=J;Y.status="fulfilled",Y.value=F}},function(F){if(J.status==="pending"){var Y=J;Y.status="rejected",Y.reason=F}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,uH(_),_}throw t6=J,R_=!0,O7}}function C3(_){try{return Jf(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw t6=J,R_=!0,O7;throw J}}function bH(){if(t6===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=t6;return t6=null,R_=!1,_}function uH(_){if(_===O7||_===TQ)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function F2(_){var J=i1;return _!=null&&(i1=J===null?_:J.concat(_)),J}function PU(){var _=i1;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function G$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var F=q[G];if(F!=="children"&&F!=="key"){J===null&&(J=nJ(_,$.mode,0),J._debugInfo=i1,J.return=$),W1(J,function(Y){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y)},F);break}}}function Z$(_){var J=O_;return O_+=1,w7===null&&(w7=yH()),EH(w7,_,J)}function P9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function xH(_,J){if(J.$$typeof===vw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
104
104
  - Multiple copies of the "react" package is used.
105
105
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
106
- - A compiler tries to "inline" JSX instead of using the runtime.`);throw _=Object.prototype.toString.call(J),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}function G$(_,J){var $=PU();$!==null?$.run(kH.bind(null,_,J)):kH(_,J)}function yH(_,J){var $=t(_)||"Component";pB[$]||(pB[$]=!0,J=J.displayName||J.name||"Component",_.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
106
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw _=Object.prototype.toString.call(J),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}function F$(_,J){var $=PU();$!==null?$.run(xH.bind(null,_,J)):xH(_,J)}function hH(_,J){var $=m(_)||"Component";aB[$]||(aB[$]=!0,J=J.displayName||J.name||"Component",_.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
107
107
  root.render(%s)`,J,J,J):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
108
- <%s>{%s}</%s>`,J,J,$,J,$))}function Z$(_,J){var $=PU();$!==null?$.run(yH.bind(null,_,J)):yH(_,J)}function vH(_,J){var $=t(_)||"Component";cB[$]||(cB[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
108
+ <%s>{%s}</%s>`,J,J,$,J,$))}function K$(_,J){var $=PU();$!==null?$.run(hH.bind(null,_,J)):hH(_,J)}function mH(_,J){var $=m(_)||"Component";sB[$]||(sB[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
109
109
  root.render(%s)`,J):console.error(`Symbols are not valid as a React child.
110
- <%s>%s</%s>`,$,J,$))}function F$(_,J){var $=PU();$!==null?$.run(vH.bind(null,_,J)):vH(_,J)}function EH(_){function J(g,l){if(_){var d=g.deletions;d===null?(g.deletions=[l],g.flags|=16):d.push(l)}}function $(g,l){if(!_)return null;for(;l!==null;)J(g,l),l=l.sibling;return null}function q(g){for(var l=new Map;g!==null;)g.key!==null?l.set(g.key,g):l.set(g.index,g),g=g.sibling;return l}function G(g,l){return g=h4(g,l),g.index=0,g.sibling=null,g}function F(g,l,d){if(g.index=d,!_)return g.flags|=1048576,l;if(d=g.alternate,d!==null)return d=d.index,d<l?(g.flags|=67108866,l):d;return g.flags|=67108866,l}function H(g){return _&&g.alternate===null&&(g.flags|=67108866),g}function z(g,l,d,H1){if(l===null||l.tag!==6)return l=WU(d,g.mode,H1),l.return=g,l._debugOwner=g,l._debugTask=g._debugTask,l._debugInfo=i1,l;return l=G(l,d),l.return=g,l._debugInfo=i1,l}function w(g,l,d,H1){var R1=d.type;if(R1===J7)return l=i(g,l,d.props.children,H1,d.key),q$(d,l,g),l;if(l!==null&&(l.elementType===R1||HH(l,d)||typeof R1==="object"&&R1!==null&&R1.$$typeof===q5&&P3(R1)===l.type))return l=G(l,d.props),I9(l,d),l.return=g,l._debugOwner=d._owner,l._debugInfo=i1,l;return l=tJ(d,g.mode,H1),I9(l,d),l.return=g,l._debugInfo=i1,l}function N(g,l,d,H1){if(l===null||l.tag!==4||l.stateNode.containerInfo!==d.containerInfo||l.stateNode.implementation!==d.implementation)return l=AU(d,g.mode,H1),l.return=g,l._debugInfo=i1,l;return l=G(l,d.children||[]),l.return=g,l._debugInfo=i1,l}function i(g,l,d,H1,R1){if(l===null||l.tag!==7)return l=S6(d,g.mode,H1,R1),l.return=g,l._debugOwner=g,l._debugTask=g._debugTask,l._debugInfo=i1,l;return l=G(l,d),l.return=g,l._debugInfo=i1,l}function s(g,l,d){if(typeof l==="string"&&l!==""||typeof l==="number"||typeof l==="bigint")return l=WU(""+l,g.mode,d),l.return=g,l._debugOwner=g,l._debugTask=g._debugTask,l._debugInfo=i1,l;if(typeof l==="object"&&l!==null){switch(l.$$typeof){case B4:return d=tJ(l,g.mode,d),I9(d,l),d.return=g,g=Z2(l._debugInfo),d._debugInfo=i1,i1=g,d;case _7:return l=AU(l,g.mode,d),l.return=g,l._debugInfo=i1,l;case q5:var H1=Z2(l._debugInfo);return l=P3(l),g=s(g,l,d),i1=H1,g}if(a0(l)||E(l))return d=S6(l,g.mode,d,null),d.return=g,d._debugOwner=g,d._debugTask=g._debugTask,g=Z2(l._debugInfo),d._debugInfo=i1,i1=g,d;if(typeof l.then==="function")return H1=Z2(l._debugInfo),g=s(g,U$(l),d),i1=H1,g;if(l.$$typeof===z4)return s(g,_$(g,l),d);G$(g,l)}return typeof l==="function"&&Z$(g,l),typeof l==="symbol"&&F$(g,l),null}function c(g,l,d,H1){var R1=l!==null?l.key:null;if(typeof d==="string"&&d!==""||typeof d==="number"||typeof d==="bigint")return R1!==null?null:z(g,l,""+d,H1);if(typeof d==="object"&&d!==null){switch(d.$$typeof){case B4:return d.key===R1?(R1=Z2(d._debugInfo),g=w(g,l,d,H1),i1=R1,g):null;case _7:return d.key===R1?N(g,l,d,H1):null;case q5:return R1=Z2(d._debugInfo),d=P3(d),g=c(g,l,d,H1),i1=R1,g}if(a0(d)||E(d)){if(R1!==null)return null;return R1=Z2(d._debugInfo),g=i(g,l,d,H1,null),i1=R1,g}if(typeof d.then==="function")return R1=Z2(d._debugInfo),g=c(g,l,U$(d),H1),i1=R1,g;if(d.$$typeof===z4)return c(g,l,_$(g,d),H1);G$(g,d)}return typeof d==="function"&&Z$(g,d),typeof d==="symbol"&&F$(g,d),null}function q1(g,l,d,H1,R1){if(typeof H1==="string"&&H1!==""||typeof H1==="number"||typeof H1==="bigint")return g=g.get(d)||null,z(l,g,""+H1,R1);if(typeof H1==="object"&&H1!==null){switch(H1.$$typeof){case B4:return d=g.get(H1.key===null?d:H1.key)||null,g=Z2(H1._debugInfo),l=w(l,d,H1,R1),i1=g,l;case _7:return g=g.get(H1.key===null?d:H1.key)||null,N(l,g,H1,R1);case q5:var p1=Z2(H1._debugInfo);return H1=P3(H1),l=q1(g,l,d,H1,R1),i1=p1,l}if(a0(H1)||E(H1))return d=g.get(d)||null,g=Z2(H1._debugInfo),l=i(l,d,H1,R1,null),i1=g,l;if(typeof H1.then==="function")return p1=Z2(H1._debugInfo),l=q1(g,l,d,U$(H1),R1),i1=p1,l;if(H1.$$typeof===z4)return q1(g,l,d,_$(l,H1),R1);G$(l,H1)}return typeof H1==="function"&&Z$(l,H1),typeof H1==="symbol"&&F$(l,H1),null}function L1(g,l,d,H1){if(typeof d!=="object"||d===null)return H1;switch(d.$$typeof){case B4:case _7:T(g,l,d);var R1=d.key;if(typeof R1!=="string")break;if(H1===null){H1=new Set,H1.add(R1);break}if(!H1.has(R1)){H1.add(R1);break}Y1(l,function(){console.error("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.",R1)});break;case q5:d=P3(d),L1(g,l,d,H1)}return H1}function w1(g,l,d,H1){for(var R1=null,p1=null,D1=null,N1=l,r1=l=0,w0=null;N1!==null&&r1<d.length;r1++){N1.index>r1?(w0=N1,N1=null):w0=N1.sibling;var m0=c(g,N1,d[r1],H1);if(m0===null){N1===null&&(N1=w0);break}R1=L1(g,m0,d[r1],R1),_&&N1&&m0.alternate===null&&J(g,N1),l=F(m0,l,r1),D1===null?p1=m0:D1.sibling=m0,D1=m0,N1=w0}if(r1===d.length)return $(g,N1),J0&&m4(g,r1),p1;if(N1===null){for(;r1<d.length;r1++)N1=s(g,d[r1],H1),N1!==null&&(R1=L1(g,N1,d[r1],R1),l=F(N1,l,r1),D1===null?p1=N1:D1.sibling=N1,D1=N1);return J0&&m4(g,r1),p1}for(N1=q(N1);r1<d.length;r1++)w0=q1(N1,g,r1,d[r1],H1),w0!==null&&(R1=L1(g,w0,d[r1],R1),_&&w0.alternate!==null&&N1.delete(w0.key===null?r1:w0.key),l=F(w0,l,r1),D1===null?p1=w0:D1.sibling=w0,D1=w0);return _&&N1.forEach(function(F3){return J(g,F3)}),J0&&m4(g,r1),p1}function T0(g,l,d,H1){if(d==null)throw Error("An iterable object provided no iterator.");for(var R1=null,p1=null,D1=l,N1=l=0,r1=null,w0=null,m0=d.next();D1!==null&&!m0.done;N1++,m0=d.next()){D1.index>N1?(r1=D1,D1=null):r1=D1.sibling;var F3=c(g,D1,m0.value,H1);if(F3===null){D1===null&&(D1=r1);break}w0=L1(g,F3,m0.value,w0),_&&D1&&F3.alternate===null&&J(g,D1),l=F(F3,l,N1),p1===null?R1=F3:p1.sibling=F3,p1=F3,D1=r1}if(m0.done)return $(g,D1),J0&&m4(g,N1),R1;if(D1===null){for(;!m0.done;N1++,m0=d.next())D1=s(g,m0.value,H1),D1!==null&&(w0=L1(g,D1,m0.value,w0),l=F(D1,l,N1),p1===null?R1=D1:p1.sibling=D1,p1=D1);return J0&&m4(g,N1),R1}for(D1=q(D1);!m0.done;N1++,m0=d.next())r1=q1(D1,g,N1,m0.value,H1),r1!==null&&(w0=L1(g,r1,m0.value,w0),_&&r1.alternate!==null&&D1.delete(r1.key===null?N1:r1.key),l=F(r1,l,N1),p1===null?R1=r1:p1.sibling=r1,p1=r1);return _&&D1.forEach(function(Mf){return J(g,Mf)}),J0&&m4(g,N1),R1}function Q0(g,l,d,H1){if(typeof d==="object"&&d!==null&&d.type===J7&&d.key===null&&(q$(d,null,g),d=d.props.children),typeof d==="object"&&d!==null){switch(d.$$typeof){case B4:var R1=Z2(d._debugInfo);_:{for(var p1=d.key;l!==null;){if(l.key===p1){if(p1=d.type,p1===J7){if(l.tag===7){$(g,l.sibling),H1=G(l,d.props.children),H1.return=g,H1._debugOwner=d._owner,H1._debugInfo=i1,q$(d,H1,g),g=H1;break _}}else if(l.elementType===p1||HH(l,d)||typeof p1==="object"&&p1!==null&&p1.$$typeof===q5&&P3(p1)===l.type){$(g,l.sibling),H1=G(l,d.props),I9(H1,d),H1.return=g,H1._debugOwner=d._owner,H1._debugInfo=i1,g=H1;break _}$(g,l);break}else J(g,l);l=l.sibling}d.type===J7?(H1=S6(d.props.children,g.mode,H1,d.key),H1.return=g,H1._debugOwner=g,H1._debugTask=g._debugTask,H1._debugInfo=i1,q$(d,H1,g),g=H1):(H1=tJ(d,g.mode,H1),I9(H1,d),H1.return=g,H1._debugInfo=i1,g=H1)}return g=H(g),i1=R1,g;case _7:_:{R1=d;for(d=R1.key;l!==null;){if(l.key===d)if(l.tag===4&&l.stateNode.containerInfo===R1.containerInfo&&l.stateNode.implementation===R1.implementation){$(g,l.sibling),H1=G(l,R1.children||[]),H1.return=g,g=H1;break _}else{$(g,l);break}else J(g,l);l=l.sibling}H1=AU(R1,g.mode,H1),H1.return=g,g=H1}return H(g);case q5:return R1=Z2(d._debugInfo),d=P3(d),g=Q0(g,l,d,H1),i1=R1,g}if(a0(d))return R1=Z2(d._debugInfo),g=w1(g,l,d,H1),i1=R1,g;if(E(d)){if(R1=Z2(d._debugInfo),p1=E(d),typeof p1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var D1=p1.call(d);if(D1===d){if(g.tag!==0||Object.prototype.toString.call(g.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(D1)!=="[object Generator]")mB||console.error("Using Iterators 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. You can also use an Iterable that can iterate multiple times over the same items."),mB=!0}else d.entries!==p1||rZ||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),rZ=!0);return g=T0(g,l,D1,H1),i1=R1,g}if(typeof d.then==="function")return R1=Z2(d._debugInfo),g=Q0(g,l,U$(d),H1),i1=R1,g;if(d.$$typeof===z4)return Q0(g,l,_$(g,d),H1);G$(g,d)}if(typeof d==="string"&&d!==""||typeof d==="number"||typeof d==="bigint")return R1=""+d,l!==null&&l.tag===6?($(g,l.sibling),H1=G(l,R1),H1.return=g,g=H1):($(g,l),H1=WU(R1,g.mode,H1),H1.return=g,H1._debugOwner=g,H1._debugTask=g._debugTask,H1._debugInfo=i1,g=H1),H(g);return typeof d==="function"&&Z$(g,d),typeof d==="symbol"&&F$(g,d),$(g,l)}return function(g,l,d,H1){var R1=i1;i1=null;try{T_=0;var p1=Q0(g,l,d,H1);return O7=null,p1}catch(w0){if(w0===R7||w0===LQ)throw w0;var D1=M(29,w0,null,g.mode);D1.lanes=H1,D1.return=g;var N1=D1._debugInfo=i1;if(D1._debugOwner=g._debugOwner,D1._debugTask=g._debugTask,N1!=null){for(var r1=N1.length-1;0<=r1;r1--)if(typeof N1[r1].stack==="string"){D1._debugOwner=N1[r1],D1._debugTask=N1[r1].debugTask;break}}return D1}finally{i1=R1}}}function bH(_,J){var $=a0(_);return _=!$&&typeof E(_)==="function",$||_?($=$?"array":"iterable",console.error("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>",$,J,$),!1):!0}function NU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function N3(_){return{lane:_,tag:rB,payload:null,callback:null,next:null}}function j3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,iZ===q&&!aB){var G=t(_);console.error(`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.
110
+ <%s>%s</%s>`,$,J,$))}function X$(_,J){var $=PU();$!==null?$.run(mH.bind(null,_,J)):mH(_,J)}function gH(_){function J(p,l){if(_){var a=p.deletions;a===null?(p.deletions=[l],p.flags|=16):a.push(l)}}function $(p,l){if(!_)return null;for(;l!==null;)J(p,l),l=l.sibling;return null}function q(p){for(var l=new Map;p!==null;)p.key!==null?l.set(p.key,p):l.set(p.index,p),p=p.sibling;return l}function G(p,l){return p=g4(p,l),p.index=0,p.sibling=null,p}function F(p,l,a){if(p.index=a,!_)return p.flags|=1048576,l;if(a=p.alternate,a!==null)return a=a.index,a<l?(p.flags|=67108866,l):a;return p.flags|=67108866,l}function Y(p){return _&&p.alternate===null&&(p.flags|=67108866),p}function A(p,l,a,H1){if(l===null||l.tag!==6)return l=WU(a,p.mode,H1),l.return=p,l._debugOwner=p,l._debugTask=p._debugTask,l._debugInfo=i1,l;return l=G(l,a),l.return=p,l._debugInfo=i1,l}function w(p,l,a,H1){var O1=a.type;if(O1===$7)return l=t(p,l,a.props.children,H1,a.key),G$(a,l,p),l;if(l!==null&&(l.elementType===O1||LH(l,a)||typeof O1==="object"&&O1!==null&&O1.$$typeof===U5&&C3(O1)===l.type))return l=G(l,a.props),P9(l,a),l.return=p,l._debugOwner=a._owner,l._debugInfo=i1,l;return l=nJ(a,p.mode,H1),P9(l,a),l.return=p,l._debugInfo=i1,l}function N(p,l,a,H1){if(l===null||l.tag!==4||l.stateNode.containerInfo!==a.containerInfo||l.stateNode.implementation!==a.implementation)return l=zU(a,p.mode,H1),l.return=p,l._debugInfo=i1,l;return l=G(l,a.children||[]),l.return=p,l._debugInfo=i1,l}function t(p,l,a,H1,O1){if(l===null||l.tag!==7)return l=V6(a,p.mode,H1,O1),l.return=p,l._debugOwner=p,l._debugTask=p._debugTask,l._debugInfo=i1,l;return l=G(l,a),l.return=p,l._debugInfo=i1,l}function o(p,l,a){if(typeof l==="string"&&l!==""||typeof l==="number"||typeof l==="bigint")return l=WU(""+l,p.mode,a),l.return=p,l._debugOwner=p,l._debugTask=p._debugTask,l._debugInfo=i1,l;if(typeof l==="object"&&l!==null){switch(l.$$typeof){case L4:return a=nJ(l,p.mode,a),P9(a,l),a.return=p,p=F2(l._debugInfo),a._debugInfo=i1,i1=p,a;case J7:return l=zU(l,p.mode,a),l.return=p,l._debugInfo=i1,l;case U5:var H1=F2(l._debugInfo);return l=C3(l),p=o(p,l,a),i1=H1,p}if(s0(l)||u(l))return a=V6(l,p.mode,a,null),a.return=p,a._debugOwner=p,a._debugTask=p._debugTask,p=F2(l._debugInfo),a._debugInfo=i1,i1=p,a;if(typeof l.then==="function")return H1=F2(l._debugInfo),p=o(p,Z$(l),a),i1=H1,p;if(l.$$typeof===M4)return o(p,$$(p,l),a);F$(p,l)}return typeof l==="function"&&K$(p,l),typeof l==="symbol"&&X$(p,l),null}function c(p,l,a,H1){var O1=l!==null?l.key:null;if(typeof a==="string"&&a!==""||typeof a==="number"||typeof a==="bigint")return O1!==null?null:A(p,l,""+a,H1);if(typeof a==="object"&&a!==null){switch(a.$$typeof){case L4:return a.key===O1?(O1=F2(a._debugInfo),p=w(p,l,a,H1),i1=O1,p):null;case J7:return a.key===O1?N(p,l,a,H1):null;case U5:return O1=F2(a._debugInfo),a=C3(a),p=c(p,l,a,H1),i1=O1,p}if(s0(a)||u(a)){if(O1!==null)return null;return O1=F2(a._debugInfo),p=t(p,l,a,H1,null),i1=O1,p}if(typeof a.then==="function")return O1=F2(a._debugInfo),p=c(p,l,Z$(a),H1),i1=O1,p;if(a.$$typeof===M4)return c(p,l,$$(p,a),H1);F$(p,a)}return typeof a==="function"&&K$(p,a),typeof a==="symbol"&&X$(p,a),null}function q1(p,l,a,H1,O1){if(typeof H1==="string"&&H1!==""||typeof H1==="number"||typeof H1==="bigint")return p=p.get(a)||null,A(l,p,""+H1,O1);if(typeof H1==="object"&&H1!==null){switch(H1.$$typeof){case L4:return a=p.get(H1.key===null?a:H1.key)||null,p=F2(H1._debugInfo),l=w(l,a,H1,O1),i1=p,l;case J7:return p=p.get(H1.key===null?a:H1.key)||null,N(l,p,H1,O1);case U5:var p1=F2(H1._debugInfo);return H1=C3(H1),l=q1(p,l,a,H1,O1),i1=p1,l}if(s0(H1)||u(H1))return a=p.get(a)||null,p=F2(H1._debugInfo),l=t(l,a,H1,O1,null),i1=p,l;if(typeof H1.then==="function")return p1=F2(H1._debugInfo),l=q1(p,l,a,Z$(H1),O1),i1=p1,l;if(H1.$$typeof===M4)return q1(p,l,a,$$(l,H1),O1);F$(l,H1)}return typeof H1==="function"&&K$(l,H1),typeof H1==="symbol"&&X$(l,H1),null}function T1(p,l,a,H1){if(typeof a!=="object"||a===null)return H1;switch(a.$$typeof){case L4:case J7:R(p,l,a);var O1=a.key;if(typeof O1!=="string")break;if(H1===null){H1=new Set,H1.add(O1);break}if(!H1.has(O1)){H1.add(O1);break}W1(l,function(){console.error("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.",O1)});break;case U5:a=C3(a),T1(p,l,a,H1)}return H1}function w1(p,l,a,H1){for(var O1=null,p1=null,k1=null,N1=l,r1=l=0,I0=null;N1!==null&&r1<a.length;r1++){N1.index>r1?(I0=N1,N1=null):I0=N1.sibling;var g0=c(p,N1,a[r1],H1);if(g0===null){N1===null&&(N1=I0);break}O1=T1(p,g0,a[r1],O1),_&&N1&&g0.alternate===null&&J(p,N1),l=F(g0,l,r1),k1===null?p1=g0:k1.sibling=g0,k1=g0,N1=I0}if(r1===a.length)return $(p,N1),J0&&p4(p,r1),p1;if(N1===null){for(;r1<a.length;r1++)N1=o(p,a[r1],H1),N1!==null&&(O1=T1(p,N1,a[r1],O1),l=F(N1,l,r1),k1===null?p1=N1:k1.sibling=N1,k1=N1);return J0&&p4(p,r1),p1}for(N1=q(N1);r1<a.length;r1++)I0=q1(N1,p,r1,a[r1],H1),I0!==null&&(O1=T1(p,I0,a[r1],O1),_&&I0.alternate!==null&&N1.delete(I0.key===null?r1:I0.key),l=F(I0,l,r1),k1===null?p1=I0:k1.sibling=I0,k1=I0);return _&&N1.forEach(function(X3){return J(p,X3)}),J0&&p4(p,r1),p1}function R0(p,l,a,H1){if(a==null)throw Error("An iterable object provided no iterator.");for(var O1=null,p1=null,k1=l,N1=l=0,r1=null,I0=null,g0=a.next();k1!==null&&!g0.done;N1++,g0=a.next()){k1.index>N1?(r1=k1,k1=null):r1=k1.sibling;var X3=c(p,k1,g0.value,H1);if(X3===null){k1===null&&(k1=r1);break}I0=T1(p,X3,g0.value,I0),_&&k1&&X3.alternate===null&&J(p,k1),l=F(X3,l,N1),p1===null?O1=X3:p1.sibling=X3,p1=X3,k1=r1}if(g0.done)return $(p,k1),J0&&p4(p,N1),O1;if(k1===null){for(;!g0.done;N1++,g0=a.next())k1=o(p,g0.value,H1),k1!==null&&(I0=T1(p,k1,g0.value,I0),l=F(k1,l,N1),p1===null?O1=k1:p1.sibling=k1,p1=k1);return J0&&p4(p,N1),O1}for(k1=q(k1);!g0.done;N1++,g0=a.next())r1=q1(k1,p,N1,g0.value,H1),r1!==null&&(I0=T1(p,r1,g0.value,I0),_&&r1.alternate!==null&&k1.delete(r1.key===null?N1:r1.key),l=F(r1,l,N1),p1===null?O1=r1:p1.sibling=r1,p1=r1);return _&&k1.forEach(function(Pf){return J(p,Pf)}),J0&&p4(p,N1),O1}function Q0(p,l,a,H1){if(typeof a==="object"&&a!==null&&a.type===$7&&a.key===null&&(G$(a,null,p),a=a.props.children),typeof a==="object"&&a!==null){switch(a.$$typeof){case L4:var O1=F2(a._debugInfo);_:{for(var p1=a.key;l!==null;){if(l.key===p1){if(p1=a.type,p1===$7){if(l.tag===7){$(p,l.sibling),H1=G(l,a.props.children),H1.return=p,H1._debugOwner=a._owner,H1._debugInfo=i1,G$(a,H1,p),p=H1;break _}}else if(l.elementType===p1||LH(l,a)||typeof p1==="object"&&p1!==null&&p1.$$typeof===U5&&C3(p1)===l.type){$(p,l.sibling),H1=G(l,a.props),P9(H1,a),H1.return=p,H1._debugOwner=a._owner,H1._debugInfo=i1,p=H1;break _}$(p,l);break}else J(p,l);l=l.sibling}a.type===$7?(H1=V6(a.props.children,p.mode,H1,a.key),H1.return=p,H1._debugOwner=p,H1._debugTask=p._debugTask,H1._debugInfo=i1,G$(a,H1,p),p=H1):(H1=nJ(a,p.mode,H1),P9(H1,a),H1.return=p,H1._debugInfo=i1,p=H1)}return p=Y(p),i1=O1,p;case J7:_:{O1=a;for(a=O1.key;l!==null;){if(l.key===a)if(l.tag===4&&l.stateNode.containerInfo===O1.containerInfo&&l.stateNode.implementation===O1.implementation){$(p,l.sibling),H1=G(l,O1.children||[]),H1.return=p,p=H1;break _}else{$(p,l);break}else J(p,l);l=l.sibling}H1=zU(O1,p.mode,H1),H1.return=p,p=H1}return Y(p);case U5:return O1=F2(a._debugInfo),a=C3(a),p=Q0(p,l,a,H1),i1=O1,p}if(s0(a))return O1=F2(a._debugInfo),p=w1(p,l,a,H1),i1=O1,p;if(u(a)){if(O1=F2(a._debugInfo),p1=u(a),typeof p1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var k1=p1.call(a);if(k1===a){if(p.tag!==0||Object.prototype.toString.call(p.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(k1)!=="[object Generator]")dB||console.error("Using Iterators 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. You can also use an Iterable that can iterate multiple times over the same items."),dB=!0}else a.entries!==p1||rZ||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),rZ=!0);return p=R0(p,l,k1,H1),i1=O1,p}if(typeof a.then==="function")return O1=F2(a._debugInfo),p=Q0(p,l,Z$(a),H1),i1=O1,p;if(a.$$typeof===M4)return Q0(p,l,$$(p,a),H1);F$(p,a)}if(typeof a==="string"&&a!==""||typeof a==="number"||typeof a==="bigint")return O1=""+a,l!==null&&l.tag===6?($(p,l.sibling),H1=G(l,O1),H1.return=p,p=H1):($(p,l),H1=WU(O1,p.mode,H1),H1.return=p,H1._debugOwner=p,H1._debugTask=p._debugTask,H1._debugInfo=i1,p=H1),Y(p);return typeof a==="function"&&K$(p,a),typeof a==="symbol"&&X$(p,a),$(p,l)}return function(p,l,a,H1){var O1=i1;i1=null;try{O_=0;var p1=Q0(p,l,a,H1);return w7=null,p1}catch(I0){if(I0===O7||I0===TQ)throw I0;var k1=M(29,I0,null,p.mode);k1.lanes=H1,k1.return=p;var N1=k1._debugInfo=i1;if(k1._debugOwner=p._debugOwner,k1._debugTask=p._debugTask,N1!=null){for(var r1=N1.length-1;0<=r1;r1--)if(typeof N1[r1].stack==="string"){k1._debugOwner=N1[r1],k1._debugTask=N1[r1].debugTask;break}}return k1}finally{i1=O1}}}function pH(_,J){var $=s0(_);return _=!$&&typeof u(_)==="function",$||_?($=$?"array":"iterable",console.error("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>",$,J,$),!1):!0}function NU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function CU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function S3(_){return{lane:_,tag:oB,payload:null,callback:null,next:null}}function j3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,iZ===q&&!_A){var G=m(_);console.error(`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.
111
111
 
112
- Please update the following component: %s`,G),aB=!0}if((G0&t0)!==U2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=sJ(_),XH(_,null,$),J;return aJ(_,q,J,$),sJ(_)}function f9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,v4(_,$)}}function K$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,F=null;if($=$.firstBaseUpdate,$!==null){do{var H={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};F===null?G=F=H:F=F.next=H,$=$.next}while($!==null);F===null?G=F=J:F=F.next=J}else G=F=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:F,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function P9(){if(aZ){var _=T7;if(_!==null)throw _}}function N9(_,J,$,q){aZ=!1;var G=_.updateQueue;a3=!1,iZ=G.shared;var{firstBaseUpdate:F,lastBaseUpdate:H}=G,z=G.shared.pending;if(z!==null){G.shared.pending=null;var w=z,N=w.next;w.next=null,H===null?F=N:H.next=N,H=w;var i=_.alternate;i!==null&&(i=i.updateQueue,z=i.lastBaseUpdate,z!==H&&(z===null?i.firstBaseUpdate=N:z.next=N,i.lastBaseUpdate=w))}if(F!==null){var s=G.baseState;H=0,i=N=w=null,z=F;do{var c=z.lane&-536870913,q1=c!==z.lane;if(q1?(a1&c)===c:(q&c)===c){c!==0&&c===i6&&(aZ=!0),i!==null&&(i=i.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});_:{c=_;var L1=z,w1=J,T0=$;switch(L1.tag){case dB:if(L1=L1.payload,typeof L1==="function"){L7=!0;var Q0=L1.call(T0,s,w1);if(c.mode&R2){_0(!0);try{L1.call(T0,s,w1)}finally{_0(!1)}}L7=!1,s=Q0;break _}s=L1;break _;case dZ:c.flags=c.flags&-65537|128;case rB:if(Q0=L1.payload,typeof Q0==="function"){if(L7=!0,L1=Q0.call(T0,s,w1),c.mode&R2){_0(!0);try{Q0.call(T0,s,w1)}finally{_0(!1)}}L7=!1}else L1=Q0;if(L1===null||L1===void 0)break _;s=o1({},s,L1);break _;case iB:a3=!0}}c=z.callback,c!==null&&(_.flags|=64,q1&&(_.flags|=8192),q1=G.callbacks,q1===null?G.callbacks=[c]:q1.push(c))}else q1={lane:c,tag:z.tag,payload:z.payload,callback:z.callback,next:null},i===null?(N=i=q1,w=s):i=i.next=q1,H|=c;if(z=z.next,z===null)if(z=G.shared.pending,z===null)break;else q1=z,z=q1.next,q1.next=null,G.lastBaseUpdate=q1,G.shared.pending=null}while(1);i===null&&(w=s),G.baseState=w,G.firstBaseUpdate=N,G.lastBaseUpdate=i,F===null&&(G.shared.lanes=0),o3|=H,_.lanes=H,_.memoizedState=s}iZ=null}function xH(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function YO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)xH($[_],J)}function uH(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)xH($[_],J)}function hH(_,J){var $=N4;_1(TQ,$,_),_1(w7,J,_),N4=$|J.baseLanes}function CU(_){_1(TQ,N4,_),_1(w7,w7.current,_)}function VU(_){N4=TQ.current,$1(w7,_),$1(TQ,_)}function C3(_){var J=_.alternate;_1(h0,h0.current&I7,_),_1(F5,_,_),w5===null&&(J===null||w7.current!==null?w5=_:J.memoizedState!==null&&(w5=_))}function SU(_){_1(h0,h0.current,_),_1(F5,_,_),w5===null&&(w5=_)}function mH(_){_.tag===22?(_1(h0,h0.current,_),_1(F5,_,_),w5===null&&(w5=_)):V3(_)}function V3(_){_1(h0,h0.current,_),_1(F5,F5.current,_)}function J5(_){$1(F5,_),w5===_&&(w5=null),$1(h0,_)}function X$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||cG($)||lG($)))return J}else if(J.tag===19&&(J.memoizedProps.revealOrder==="forwards"||J.memoizedProps.revealOrder==="backwards"||J.memoizedProps.revealOrder==="unstable_legacy-backwards"||J.memoizedProps.revealOrder==="together")){if((J.flags&128)!==0)return J}else if(J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return null;J=J.return}J.sibling.return=J.return,J=J.sibling}return null}function t1(){var _=U1;f5===null?f5=[_]:f5.push(_)}function A1(){var _=U1;if(f5!==null&&(Q3++,f5[Q3]!==_)){var J=t(g1);if(!sB.has(J)&&(sB.add(J),f5!==null)){for(var $="",q=0;q<=Q3;q++){var G=f5[q],F=q===Q3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=F+`
112
+ Please update the following component: %s`,G),_A=!0}if((Z0&o0)!==G2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=oJ(_),AH(_,null,$),J;return tJ(_,q,J,$),oJ(_)}function N9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,b4(_,$)}}function H$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,F=null;if($=$.firstBaseUpdate,$!==null){do{var Y={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};F===null?G=F=Y:F=F.next=Y,$=$.next}while($!==null);F===null?G=F=J:F=F.next=J}else G=F=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:F,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function C9(){if(aZ){var _=R7;if(_!==null)throw _}}function S9(_,J,$,q){aZ=!1;var G=_.updateQueue;t3=!1,iZ=G.shared;var{firstBaseUpdate:F,lastBaseUpdate:Y}=G,A=G.shared.pending;if(A!==null){G.shared.pending=null;var w=A,N=w.next;w.next=null,Y===null?F=N:Y.next=N,Y=w;var t=_.alternate;t!==null&&(t=t.updateQueue,A=t.lastBaseUpdate,A!==Y&&(A===null?t.firstBaseUpdate=N:A.next=N,t.lastBaseUpdate=w))}if(F!==null){var o=G.baseState;Y=0,t=N=w=null,A=F;do{var c=A.lane&-536870913,q1=c!==A.lane;if(q1?(a1&c)===c:(q&c)===c){c!==0&&c===i6&&(aZ=!0),t!==null&&(t=t.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});_:{c=_;var T1=A,w1=J,R0=$;switch(T1.tag){case nB:if(T1=T1.payload,typeof T1==="function"){M7=!0;var Q0=T1.call(R0,o,w1);if(c.mode&R2){_0(!0);try{T1.call(R0,o,w1)}finally{_0(!1)}}M7=!1,o=Q0;break _}o=T1;break _;case dZ:c.flags=c.flags&-65537|128;case oB:if(Q0=T1.payload,typeof Q0==="function"){if(M7=!0,T1=Q0.call(R0,o,w1),c.mode&R2){_0(!0);try{Q0.call(R0,o,w1)}finally{_0(!1)}}M7=!1}else T1=Q0;if(T1===null||T1===void 0)break _;o=o1({},o,T1);break _;case eB:t3=!0}}c=A.callback,c!==null&&(_.flags|=64,q1&&(_.flags|=8192),q1=G.callbacks,q1===null?G.callbacks=[c]:q1.push(c))}else q1={lane:c,tag:A.tag,payload:A.payload,callback:A.callback,next:null},t===null?(N=t=q1,w=o):t=t.next=q1,Y|=c;if(A=A.next,A===null)if(A=G.shared.pending,A===null)break;else q1=A,A=q1.next,q1.next=null,G.lastBaseUpdate=q1,G.shared.pending=null}while(1);t===null&&(w=o),G.baseState=w,G.firstBaseUpdate=N,G.lastBaseUpdate=t,F===null&&(G.shared.lanes=0),e3|=Y,_.lanes=Y,_.memoizedState=o}iZ=null}function cH(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function TO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)cH($[_],J)}function lH(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)cH($[_],J)}function rH(_,J){var $=S4;d(OQ,$,_),d(I7,J,_),S4=$|J.baseLanes}function SU(_){d(OQ,S4,_),d(I7,I7.current,_)}function jU(_){S4=OQ.current,$1(I7,_),$1(OQ,_)}function V3(_){var J=_.alternate;d(m0,m0.current&f7,_),d(K5,_,_),N5===null&&(J===null||I7.current!==null?N5=_:J.memoizedState!==null&&(N5=_))}function VU(_){d(m0,m0.current,_),d(K5,_,_),N5===null&&(N5=_)}function dH(_){_.tag===22?(d(m0,m0.current,_),d(K5,_,_),N5===null&&(N5=_)):k3(_)}function k3(_){d(m0,m0.current,_),d(K5,K5.current,_)}function $5(_){$1(K5,_),N5===_&&(N5=null),$1(m0,_)}function Y$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||cG($)||lG($)))return J}else if(J.tag===19&&(J.memoizedProps.revealOrder==="forwards"||J.memoizedProps.revealOrder==="backwards"||J.memoizedProps.revealOrder==="unstable_legacy-backwards"||J.memoizedProps.revealOrder==="together")){if((J.flags&128)!==0)return J}else if(J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return null;J=J.return}J.sibling.return=J.return,J=J.sibling}return null}function t1(){var _=G1;S5===null?S5=[_]:S5.push(_)}function z1(){var _=G1;if(S5!==null&&(U3++,S5[U3]!==_)){var J=m(g1);if(!JA.has(J)&&(JA.add(J),S5!==null)){for(var $="",q=0;q<=U3;q++){var G=S5[q],F=q===U3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=F+`
113
113
  `,$+=G}console.error(`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://react.dev/link/rules-of-hooks
114
114
 
115
115
  Previous render Next render
116
116
  ------------------------------------------------------
117
117
  %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118
- `,J,$)}}}function g8(_){_===void 0||_===null||a0(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",U1,typeof _)}function H$(){var _=t(g1);oB.has(_)||(oB.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function v0(){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:
118
+ `,J,$)}}}function p8(_){_===void 0||_===null||s0(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",G1,typeof _)}function W$(){var _=m(g1);QA.has(_)||(QA.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function E0(){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:
119
119
  1. You might have mismatching versions of React and the renderer (such as React DOM)
120
120
  2. You might be breaking the Rules of Hooks
121
121
  3. You might have more than one copy of React in the same app
122
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function DU(_,J){if(w_)return!1;if(J===null)return console.error("%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.",U1),!1;_.length!==J.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
122
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function kU(_,J){if(f_)return!1;if(J===null)return console.error("%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.",G1),!1;_.length!==J.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
123
123
 
124
124
  Previous: %s
125
- Incoming: %s`,U1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!k2(_[$],J[$]))return!1;return!0}function kU(_,J,$,q,G,F){if(J3=F,g1=J,f5=_!==null?_._debugHookTypes:null,Q3=-1,w_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")F=t(g1),sZ.has(F)||(sZ.add(F),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",F===null?"An unknown Component":"<"+F+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,G1.H=_!==null&&_.memoizedState!==null?oZ:f5!==null?nB:tZ,n6=F=(J.mode&R2)!==u1;var H=pZ($,q,G);if(n6=!1,P7&&(H=yU(J,$,q,G)),F){_0(!0);try{H=yU(J,$,q,G)}finally{_0(!1)}}return gH(_,J),H}function gH(_,J){J._debugHookTypes=f5,J.dependencies===null?$3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:$3}):J.dependencies._debugThenableState=$3,G1.H=I_;var $=B0!==null&&B0.next!==null;if(J3=0,f5=U1=c0=B0=g1=null,Q3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),OQ=!1,O_=0,$3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||l0||(_=_.dependencies,_!==null&&eJ(_)&&(l0=!0)),M_?(M_=!1,_=!0):_=!1,_&&(J=t(J)||"Unknown",tB.has(J)||sZ.has(J)||(tB.add(J),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function yU(_,J,$,q){g1=_;var G=0;do{if(P7&&($3=null),O_=0,P7=!1,G>=tI)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,w_=!1,c0=B0=null,_.updateQueue!=null){var F=_.updateQueue;F.lastEffect=null,F.events=null,F.stores=null,F.memoCache!=null&&(F.memoCache.index=0)}Q3=-1,G1.H=eB,F=pZ(J,$,q)}while(P7);return F}function WO(){var _=G1.H,J=_.useState()[0];return J=typeof J.then==="function"?j9(J):J,_=_.useState()[0],(B0!==null?B0.memoizedState:null)!==_&&(g1.flags|=1024),J}function vU(){var _=wQ!==0;return wQ=0,_}function EU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&u5)!==u1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function bU(_){if(OQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}OQ=!1}J3=0,f5=c0=B0=g1=null,Q3=-1,U1=null,P7=!1,O_=wQ=0,$3=null}function C2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return c0===null?g1.memoizedState=c0=_:c0=c0.next=_,c0}function H0(){if(B0===null){var _=g1.alternate;_=_!==null?_.memoizedState:null}else _=B0.next;var J=c0===null?g1.memoizedState:c0.next;if(J!==null)c0=J,B0=_;else{if(_===null){if(g1.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}B0=_,_={memoizedState:B0.memoizedState,baseState:B0.baseState,baseQueue:B0.baseQueue,queue:B0.queue,next:null},c0===null?g1.memoizedState=c0=_:c0=c0.next=_}return c0}function Y$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function j9(_){var J=O_;return O_+=1,$3===null&&($3=jH()),_=VH($3,_,J),J=g1,(c0===null?J.memoizedState:c0.next)===null&&(J=J.alternate,G1.H=J!==null&&J.memoizedState!==null?oZ:tZ),_}function S3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return j9(_);if(_.$$typeof===z4)return I0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function E6(_){var J=null,$=g1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=g1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(J={data:q.data.map(function(G){return G.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=Y$(),g1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||w_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=Cw;else $.length!==_&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",$.length,_);return J.index++,$}function v5(_,J){return typeof J==="function"?J(_):J}function xU(_,J,$){var q=C2();if($!==void 0){var G=$(J);if(n6){_0(!0);try{$(J)}finally{_0(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=MO.bind(null,g1,_),[q.memoizedState,_]}function p8(_){var J=H0();return uU(J,B0,_)}function uU(_,J,$){var q=_.queue;if(q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");q.lastRenderedReducer=$;var G=_.baseQueue,F=q.pending;if(F!==null){if(G!==null){var H=G.next;G.next=F.next,F.next=H}J.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=G=F,q.pending=null}if(F=_.baseState,G===null)_.memoizedState=F;else{J=G.next;var z=H=null,w=null,N=J,i=!1;do{var s=N.lane&-536870913;if(s!==N.lane?(a1&s)===s:(J3&s)===s){var c=N.revertLane;if(c===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),s===i6&&(i=!0);else if((J3&c)===c){N=N.next,c===i6&&(i=!0);continue}else s={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(z=w=s,H=F):w=w.next=s,g1.lanes|=c,o3|=c;s=N.action,n6&&$(F,s),F=N.hasEagerState?N.eagerState:$(F,s)}else c={lane:s,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(z=w=c,H=F):w=w.next=c,g1.lanes|=s,o3|=s;N=N.next}while(N!==null&&N!==J);if(w===null?H=F:w.next=z,!k2(F,_.memoizedState)&&(l0=!0,i&&($=T7,$!==null)))throw $;_.memoizedState=F,_.baseState=H,_.baseQueue=w,q.lastRenderedState=F}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function C9(_){var J=H0(),$=J.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=_;var{dispatch:q,pending:G}=$,F=J.memoizedState;if(G!==null){$.pending=null;var H=G=G.next;do F=_(F,H.action),H=H.next;while(H!==G);k2(F,J.memoizedState)||(l0=!0),J.memoizedState=F,J.baseQueue===null&&(J.baseState=F),$.lastRenderedState=F}return[F,q]}function hU(_,J,$){var q=g1,G=C2();if(J0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var F=$();f7||F===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),f7=!0)}else{if(F=J(),f7||($=J(),k2(F,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f7=!0)),z0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(a1&127)!==0||pH(q,J,F)}return G.memoizedState=F,$={value:F,getSnapshot:J},G.queue=$,z$(lH.bind(null,q,$,_),[_]),q.flags|=2048,l8(I5|E2,{destroy:void 0},cH.bind(null,q,$,F,J),null),F}function W$(_,J,$){var q=g1,G=H0(),F=J0;if(F){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!f7){var H=J();k2($,H)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f7=!0)}if(H=!k2((B0||G).memoizedState,$))G.memoizedState=$,l0=!0;G=G.queue;var z=lH.bind(null,q,G,_);if(c2(2048,E2,z,[_]),G.getSnapshot!==J||H||c0!==null&&c0.memoizedState.tag&I5){if(q.flags|=2048,l8(I5|E2,{destroy:void 0},cH.bind(null,q,G,$,J),null),z0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");F||(J3&127)!==0||pH(q,J,$)}return $}function pH(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=g1.updateQueue,J===null?(J=Y$(),g1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function cH(_,J,$,q){J.value=$,J.getSnapshot=q,rH(J)&&dH(_)}function lH(_,J,$){return $(function(){rH(J)&&($4(2,"updateSyncExternalStore()",_),dH(_))})}function rH(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!k2(_,$)}catch(q){return!0}}function dH(_){var J=M2(_,2);J!==null&&D0(J,_,2)}function mU(_){var J=C2();if(typeof _==="function"){var $=_;if(_=$(),n6){_0(!0);try{$()}finally{_0(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:v5,lastRenderedState:_},J}function gU(_){_=mU(_);var J=_.queue,$=HY.bind(null,g1,J);return J.dispatch=$,[_.memoizedState,$]}function pU(_){var J=C2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=$G.bind(null,g1,!0,$),$.dispatch=J,[_,J]}function iH(_,J){var $=H0();return aH($,B0,_,J)}function aH(_,J,$,q){return _.baseState=$,uU(_,B0,typeof q==="function"?q:v5)}function sH(_,J){var $=H0();if(B0!==null)return aH($,B0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function AO(_,J,$,q,G){if(w$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var F={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(H){F.listeners.push(H)}};G1.T!==null?$(!0):F.isTransition=!1,q(F),$=J.pending,$===null?(F.next=J.pending=F,tH(J,F)):(F.next=$.next,J.pending=$.next=F)}}function tH(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var F=G1.T,H={};H._updatedFibers=new Set,G1.T=H;try{var z=$(G,q),w=G1.S;w!==null&&w(H,z),oH(_,J,z)}catch(N){cU(_,J,N)}finally{F!==null&&H.types!==null&&(F.types!==null&&F.types!==H.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),F.types=H.types),G1.T=F,F===null&&H._updatedFibers&&(_=H._updatedFibers.size,H._updatedFibers.clear(),10<_&&console.warn("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."))}}else try{H=$(G,q),oH(_,J,H)}catch(N){cU(_,J,N)}}function oH(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(G1.asyncTransitions++,$.then(O$,O$),$.then(function(q){nH(_,J,q)},function(q){return cU(_,J,q)}),J.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):nH(_,J,$)}function nH(_,J,$){J.status="fulfilled",J.value=$,eH(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,tH(_,$)))}function cU(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,eH(J),J=J.next;while(J!==q)}_.action=null}function eH(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function _Y(_,J){return J}function c8(_,J){if(J0){var $=z0.formState;if($!==null){_:{var q=g1;if(J0){if(O0){J:{var G=O0;for(var F=R5;G.nodeType!==8;){if(!F){G=null;break J}if(G=Q5(G.nextSibling),G===null){G=null;break J}}F=G.data,G=F===RF||F===uz?G:null}if(G){O0=Q5(G.nextSibling),q=G.data===RF;break _}}I3(q)}q=!1}q&&(J=$[0])}}return $=C2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_Y,lastRenderedState:J},$.queue=q,$=HY.bind(null,g1,q),q.dispatch=$,q=mU(!1),F=$G.bind(null,g1,!1,q.queue),q=C2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=AO.bind(null,g1,G,F,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function A$(_){var J=H0();return JY(J,B0,_)}function JY(_,J,$){if(J=uU(_,J,_Y)[0],_=p8(v5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=j9(J)}catch(H){if(H===R7)throw LQ;throw H}else q=J;J=H0();var G=J.queue,F=G.dispatch;return $!==J.memoizedState&&(g1.flags|=2048,l8(I5|E2,{destroy:void 0},BO.bind(null,G,$),null)),[q,F,_]}function BO(_,J){_.action=J}function B$(_){var J=H0(),$=B0;if($!==null)return JY(J,$,_);H0(),J=J.memoizedState,$=H0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function l8(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=g1.updateQueue,J===null&&(J=Y$(),g1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function lU(_){var J=C2();return _={current:_},J.memoizedState=_}function b6(_,J,$,q){var G=C2();g1.flags|=_,G.memoizedState=l8(I5|J,{destroy:void 0},$,q===void 0?null:q)}function c2(_,J,$,q){var G=H0();q=q===void 0?null:q;var F=G.memoizedState.inst;B0!==null&&q!==null&&DU(q,B0.memoizedState.deps)?G.memoizedState=l8(J,F,$,q):(g1.flags|=_,G.memoizedState=l8(I5|J,F,$,q))}function z$(_,J){(g1.mode&u5)!==u1?b6(276826112,E2,_,J):b6(8390656,E2,_,J)}function zO(_){g1.flags|=4;var J=g1.updateQueue;if(J===null)J=Y$(),g1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function rU(_){var J=C2(),$={impl:_};return J.memoizedState=$,function(){if((G0&t0)!==U2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function L$(_){var J=H0().memoizedState;return zO({ref:J,nextImpl:_}),function(){if((G0&t0)!==U2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function dU(_,J){var $=4194308;return(g1.mode&u5)!==u1&&($|=134217728),b6($,K5,_,J)}function $Y(_,J){if(typeof J==="function"){_=_();var $=J(_);return function(){typeof $==="function"?$():J(null)}}if(J!==null&&J!==void 0)return J.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(J).join(", ")+"}"),_=_(),J.current=_,function(){J.current=null}}function iU(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null;var q=4194308;(g1.mode&u5)!==u1&&(q|=134217728),b6(q,K5,$Y.bind(null,J,_),$)}function M$(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null,c2(4,K5,$Y.bind(null,J,_),$)}function aU(_,J){return C2().memoizedState=[_,J===void 0?null:J],_}function T$(_,J){var $=H0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&DU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function sU(_,J){var $=C2();J=J===void 0?null:J;var q=_();if(n6){_0(!0);try{_()}finally{_0(!1)}}return $.memoizedState=[q,J],q}function R$(_,J){var $=H0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&DU(J,q[1]))return q[0];if(q=_(),n6){_0(!0);try{_()}finally{_0(!1)}}return $.memoizedState=[q,J],q}function tU(_,J){var $=C2();return oU($,_,J)}function QY(_,J){var $=H0();return UY($,B0.memoizedState,_,J)}function qY(_,J){var $=H0();return B0===null?oU($,_,J):UY($,B0.memoizedState,_,J)}function oU(_,J,$){if($===void 0||(J3&1073741824)!==0&&(a1&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=GW(),g1.lanes|=_,o3|=_,$}function UY(_,J,$,q){if(k2($,J))return $;if(w7.current!==null)return _=oU(_,$,q),k2(_,J)||(l0=!0),_;if((J3&42)===0||(J3&1073741824)!==0&&(a1&261930)===0)return l0=!0,_.memoizedState=$;return _=GW(),g1.lanes|=_,o3|=_,J}function O$(){G1.asyncTransitions--}function GY(_,J,$,q,G){var F=X0.p;X0.p=F!==0&&F<x5?F:x5;var H=G1.T,z={};z._updatedFibers=new Set,G1.T=z,$G(_,!1,J,$);try{var w=G(),N=G1.S;if(N!==null&&N(z,w),w!==null&&typeof w==="object"&&typeof w.then==="function"){G1.asyncTransitions++,w.then(O$,O$);var i=HO(w,q);V9(_,J,i,$5(_))}else V9(_,J,q,$5(_))}catch(s){V9(_,J,{then:function(){},status:"rejected",reason:s},$5(_))}finally{X0.p=F,H!==null&&z.types!==null&&(H.types!==null&&H.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),H.types=z.types),G1.T=H,H===null&&z._updatedFibers&&(_=z._updatedFibers.size,z._updatedFibers.clear(),10<_&&console.warn("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."))}}function nU(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=ZY(_).queue;KO(_),GY(_,G,J,K8,$===null?O:function(){return FY(_),$(q)})}function ZY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:K8,baseState:K8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:v5,lastRenderedState:K8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:v5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function FY(_){G1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=ZY(_);J.next===null&&(J=_.alternate.memoizedState),V9(_,J.next.queue,{},$5(_))}function eU(){var _=mU(!1);return _=GY.bind(null,g1,_.queue,!0,!1),C2().memoizedState=_,[!1,_]}function KY(){var _=p8(v5)[0],J=H0().memoizedState;return[typeof _==="boolean"?_:j9(_),J]}function XY(){var _=C9(v5)[0],J=H0().memoizedState;return[typeof _==="boolean"?_:j9(_),J]}function x6(){return I0(u_)}function _G(){var _=C2(),J=z0.identifierPrefix;if(J0){var $=t4,q=s4;$=(q&~(1<<32-V2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=wQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=sI++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function JG(){return C2().memoizedState=LO.bind(null,g1)}function LO(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=$5($),G=N3(q),F=j3($,G,q);F!==null&&($4(q,"refresh()",_),D0(F,$,q),f9(F,$,q)),_=OU(),J!==null&&J!==void 0&&F!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function MO(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("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()."),q=$5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};w$(_)?YY(J,G):(G=KU(_,J,G,q),G!==null&&($4(q,"dispatch()",_),D0(G,_,q),WY(G,J,q)))}function HY(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("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()."),q=$5(_),V9(_,J,$,q)&&$4(q,"setState()",_)}function V9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(w$(_))YY(J,G);else{var F=_.alternate;if(_.lanes===0&&(F===null||F.lanes===0)&&(F=J.lastRenderedReducer,F!==null)){var H=G1.H;G1.H=m5;try{var z=J.lastRenderedState,w=F(z,$);if(G.hasEagerState=!0,G.eagerState=w,k2(w,z))return aJ(_,J,G,0),z0===null&&iJ(),!1}catch(N){}finally{G1.H=H}}if($=KU(_,J,G,q),$!==null)return D0($,_,q),WY($,J,q),!0}return!1}function $G(_,J,$,q){if(G1.T===null&&i6===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),q={lane:2,revertLane:kG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},w$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=KU(_,$,q,2),J!==null&&($4(2,"setOptimistic()",_),D0(J,_,2))}function w$(_){var J=_.alternate;return _===g1||J!==null&&J===g1}function YY(_,J){P7=OQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function WY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,v4(_,$)}}function QG(_){if(_!==null&&typeof _!=="function"){var J=String(_);Xz.has(J)||(Xz.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function qG(_,J,$,q){var G=_.memoizedState,F=$(q,G);if(_.mode&R2){_0(!0);try{F=$(q,G)}finally{_0(!1)}}F===void 0&&(J=p(J)||"Component",Gz.has(J)||(Gz.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=F===null||F===void 0?G:o1({},G,F),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function AY(_,J,$,q,G,F,H){var z=_.stateNode;if(typeof z.shouldComponentUpdate==="function"){if($=z.shouldComponentUpdate(q,F,H),_.mode&R2){_0(!0);try{$=z.shouldComponentUpdate(q,F,H)}finally{_0(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",p(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!L9($,q)||!L9(G,F):!0}function BY(_,J,$,q){var G=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==G&&(_=t(_)||"Component",Jz.has(_)||(Jz.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),nZ.enqueueReplaceState(J,J.state,null))}function u6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=o1({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function zY(_){VZ(_),console.warn(`%s
125
+ Incoming: %s`,G1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!D2(_[$],J[$]))return!1;return!0}function DU(_,J,$,q,G,F){if(Q3=F,g1=J,S5=_!==null?_._debugHookTypes:null,U3=-1,f_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")F=m(g1),sZ.has(F)||(sZ.add(F),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",F===null?"An unknown Component":"<"+F+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,Z1.H=_!==null&&_.memoizedState!==null?oZ:S5!==null?qA:tZ,n6=F=(J.mode&R2)!==x1;var Y=pZ($,q,G);if(n6=!1,N7&&(Y=yU(J,$,q,G)),F){_0(!0);try{Y=yU(J,$,q,G)}finally{_0(!1)}}return iH(_,J),Y}function iH(_,J){J._debugHookTypes=S5,J.dependencies===null?q3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:q3}):J.dependencies._debugThenableState=q3,Z1.H=P_;var $=A0!==null&&A0.next!==null;if(Q3=0,S5=G1=l0=A0=g1=null,U3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),IQ=!1,I_=0,q3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||r0||(_=_.dependencies,_!==null&&J$(_)&&(r0=!0)),R_?(R_=!1,_=!0):_=!1,_&&(J=m(J)||"Unknown",$A.has(J)||sZ.has(J)||($A.add(J),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function yU(_,J,$,q){g1=_;var G=0;do{if(N7&&(q3=null),I_=0,N7=!1,G>=Qf)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,f_=!1,l0=A0=null,_.updateQueue!=null){var F=_.updateQueue;F.lastEffect=null,F.events=null,F.stores=null,F.memoCache!=null&&(F.memoCache.index=0)}U3=-1,Z1.H=UA,F=pZ(J,$,q)}while(N7);return F}function RO(){var _=Z1.H,J=_.useState()[0];return J=typeof J.then==="function"?j9(J):J,_=_.useState()[0],(A0!==null?A0.memoizedState:null)!==_&&(g1.flags|=1024),J}function vU(){var _=fQ!==0;return fQ=0,_}function EU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&g5)!==x1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function bU(_){if(IQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}IQ=!1}Q3=0,S5=l0=A0=g1=null,U3=-1,G1=null,N7=!1,I_=fQ=0,q3=null}function S2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return l0===null?g1.memoizedState=l0=_:l0=l0.next=_,l0}function W0(){if(A0===null){var _=g1.alternate;_=_!==null?_.memoizedState:null}else _=A0.next;var J=l0===null?g1.memoizedState:l0.next;if(J!==null)l0=J,A0=_;else{if(_===null){if(g1.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}A0=_,_={memoizedState:A0.memoizedState,baseState:A0.baseState,baseQueue:A0.baseQueue,queue:A0.queue,next:null},l0===null?g1.memoizedState=l0=_:l0=l0.next=_}return l0}function z$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function j9(_){var J=I_;return I_+=1,q3===null&&(q3=yH()),_=EH(q3,_,J),J=g1,(l0===null?J.memoizedState:l0.next)===null&&(J=J.alternate,Z1.H=J!==null&&J.memoizedState!==null?oZ:tZ),_}function D3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return j9(_);if(_.$$typeof===M4)return f0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function E6(_){var J=null,$=g1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=g1.alternate;q!==null&&(q=q.updateQueue,q!==null&&(q=q.memoCache,q!=null&&(J={data:q.data.map(function(G){return G.slice()}),index:0})))}if(J==null&&(J={data:[],index:0}),$===null&&($=z$(),g1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||f_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=Ew;else $.length!==_&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",$.length,_);return J.index++,$}function u5(_,J){return typeof J==="function"?J(_):J}function uU(_,J,$){var q=S2();if($!==void 0){var G=$(J);if(n6){_0(!0);try{$(J)}finally{_0(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=PO.bind(null,g1,_),[q.memoizedState,_]}function c8(_){var J=W0();return xU(J,A0,_)}function xU(_,J,$){var q=_.queue;if(q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");q.lastRenderedReducer=$;var G=_.baseQueue,F=q.pending;if(F!==null){if(G!==null){var Y=G.next;G.next=F.next,F.next=Y}J.baseQueue!==G&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),J.baseQueue=G=F,q.pending=null}if(F=_.baseState,G===null)_.memoizedState=F;else{J=G.next;var A=Y=null,w=null,N=J,t=!1;do{var o=N.lane&-536870913;if(o!==N.lane?(a1&o)===o:(Q3&o)===o){var c=N.revertLane;if(c===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),o===i6&&(t=!0);else if((Q3&c)===c){N=N.next,c===i6&&(t=!0);continue}else o={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(A=w=o,Y=F):w=w.next=o,g1.lanes|=c,e3|=c;o=N.action,n6&&$(F,o),F=N.hasEagerState?N.eagerState:$(F,o)}else c={lane:o,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(A=w=c,Y=F):w=w.next=c,g1.lanes|=o,e3|=o;N=N.next}while(N!==null&&N!==J);if(w===null?Y=F:w.next=A,!D2(F,_.memoizedState)&&(r0=!0,t&&($=R7,$!==null)))throw $;_.memoizedState=F,_.baseState=Y,_.baseQueue=w,q.lastRenderedState=F}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function V9(_){var J=W0(),$=J.queue;if($===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");$.lastRenderedReducer=_;var{dispatch:q,pending:G}=$,F=J.memoizedState;if(G!==null){$.pending=null;var Y=G=G.next;do F=_(F,Y.action),Y=Y.next;while(Y!==G);D2(F,J.memoizedState)||(r0=!0),J.memoizedState=F,J.baseQueue===null&&(J.baseState=F),$.lastRenderedState=F}return[F,q]}function hU(_,J,$){var q=g1,G=S2();if(J0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var F=$();P7||F===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),P7=!0)}else{if(F=J(),P7||($=J(),D2(F,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),P7=!0)),L0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(a1&127)!==0||aH(q,J,F)}return G.memoizedState=F,$={value:F,getSnapshot:J},G.queue=$,M$(tH.bind(null,q,$,_),[_]),q.flags|=2048,r8(C5|E2,{destroy:void 0},sH.bind(null,q,$,F,J),null),F}function B$(_,J,$){var q=g1,G=W0(),F=J0;if(F){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!P7){var Y=J();D2($,Y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),P7=!0)}if(Y=!D2((A0||G).memoizedState,$))G.memoizedState=$,r0=!0;G=G.queue;var A=tH.bind(null,q,G,_);if(c2(2048,E2,A,[_]),G.getSnapshot!==J||Y||l0!==null&&l0.memoizedState.tag&C5){if(q.flags|=2048,r8(C5|E2,{destroy:void 0},sH.bind(null,q,G,$,J),null),L0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");F||(Q3&127)!==0||aH(q,J,$)}return $}function aH(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=g1.updateQueue,J===null?(J=z$(),g1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function sH(_,J,$,q){J.value=$,J.getSnapshot=q,oH(J)&&nH(_)}function tH(_,J,$){return $(function(){oH(J)&&(q4(2,"updateSyncExternalStore()",_),nH(_))})}function oH(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!D2(_,$)}catch(q){return!0}}function nH(_){var J=M2(_,2);J!==null&&k0(J,_,2)}function mU(_){var J=S2();if(typeof _==="function"){var $=_;if(_=$(),n6){_0(!0);try{$()}finally{_0(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u5,lastRenderedState:_},J}function gU(_){_=mU(_);var J=_.queue,$=LY.bind(null,g1,J);return J.dispatch=$,[_.memoizedState,$]}function pU(_){var J=S2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=$G.bind(null,g1,!0,$),$.dispatch=J,[_,J]}function eH(_,J){var $=W0();return _Y($,A0,_,J)}function _Y(_,J,$,q){return _.baseState=$,xU(_,A0,typeof q==="function"?q:u5)}function JY(_,J){var $=W0();if(A0!==null)return _Y($,A0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function OO(_,J,$,q,G){if(f$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var F={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Y){F.listeners.push(Y)}};Z1.T!==null?$(!0):F.isTransition=!1,q(F),$=J.pending,$===null?(F.next=J.pending=F,$Y(J,F)):(F.next=$.next,J.pending=$.next=F)}}function $Y(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var F=Z1.T,Y={};Y._updatedFibers=new Set,Z1.T=Y;try{var A=$(G,q),w=Z1.S;w!==null&&w(Y,A),QY(_,J,A)}catch(N){cU(_,J,N)}finally{F!==null&&Y.types!==null&&(F.types!==null&&F.types!==Y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),F.types=Y.types),Z1.T=F,F===null&&Y._updatedFibers&&(_=Y._updatedFibers.size,Y._updatedFibers.clear(),10<_&&console.warn("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."))}}else try{Y=$(G,q),QY(_,J,Y)}catch(N){cU(_,J,N)}}function QY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(Z1.asyncTransitions++,$.then(I$,I$),$.then(function(q){qY(_,J,q)},function(q){return cU(_,J,q)}),J.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):qY(_,J,$)}function qY(_,J,$){J.status="fulfilled",J.value=$,UY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,$Y(_,$)))}function cU(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,UY(J),J=J.next;while(J!==q)}_.action=null}function UY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function GY(_,J){return J}function l8(_,J){if(J0){var $=L0.formState;if($!==null){_:{var q=g1;if(J0){if(w0){J:{var G=w0;for(var F=f5;G.nodeType!==8;){if(!F){G=null;break J}if(G=q5(G.nextSibling),G===null){G=null;break J}}F=G.data,G=F===RF||F===lA?G:null}if(G){w0=q5(G.nextSibling),q=G.data===RF;break _}}P3(q)}q=!1}q&&(J=$[0])}}return $=S2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:GY,lastRenderedState:J},$.queue=q,$=LY.bind(null,g1,q),q.dispatch=$,q=mU(!1),F=$G.bind(null,g1,!1,q.queue),q=S2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=OO.bind(null,g1,G,F,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function A$(_){var J=W0();return ZY(J,A0,_)}function ZY(_,J,$){if(J=xU(_,J,GY)[0],_=c8(u5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=j9(J)}catch(Y){if(Y===O7)throw TQ;throw Y}else q=J;J=W0();var G=J.queue,F=G.dispatch;return $!==J.memoizedState&&(g1.flags|=2048,r8(C5|E2,{destroy:void 0},wO.bind(null,G,$),null)),[q,F,_]}function wO(_,J){_.action=J}function L$(_){var J=W0(),$=A0;if($!==null)return ZY(J,$,_);W0(),J=J.memoizedState,$=W0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function r8(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=g1.updateQueue,J===null&&(J=z$(),g1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function lU(_){var J=S2();return _={current:_},J.memoizedState=_}function b6(_,J,$,q){var G=S2();g1.flags|=_,G.memoizedState=r8(C5|J,{destroy:void 0},$,q===void 0?null:q)}function c2(_,J,$,q){var G=W0();q=q===void 0?null:q;var F=G.memoizedState.inst;A0!==null&&q!==null&&kU(q,A0.memoizedState.deps)?G.memoizedState=r8(J,F,$,q):(g1.flags|=_,G.memoizedState=r8(C5|J,F,$,q))}function M$(_,J){(g1.mode&g5)!==x1?b6(276826112,E2,_,J):b6(8390656,E2,_,J)}function IO(_){g1.flags|=4;var J=g1.updateQueue;if(J===null)J=z$(),g1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function rU(_){var J=S2(),$={impl:_};return J.memoizedState=$,function(){if((Z0&o0)!==G2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function T$(_){var J=W0().memoizedState;return IO({ref:J,nextImpl:_}),function(){if((Z0&o0)!==G2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function dU(_,J){var $=4194308;return(g1.mode&g5)!==x1&&($|=134217728),b6($,X5,_,J)}function FY(_,J){if(typeof J==="function"){_=_();var $=J(_);return function(){typeof $==="function"?$():J(null)}}if(J!==null&&J!==void 0)return J.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(J).join(", ")+"}"),_=_(),J.current=_,function(){J.current=null}}function iU(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null;var q=4194308;(g1.mode&g5)!==x1&&(q|=134217728),b6(q,X5,FY.bind(null,J,_),$)}function R$(_,J,$){typeof J!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",J!==null?typeof J:"null"),$=$!==null&&$!==void 0?$.concat([_]):null,c2(4,X5,FY.bind(null,J,_),$)}function aU(_,J){return S2().memoizedState=[_,J===void 0?null:J],_}function O$(_,J){var $=W0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&kU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function sU(_,J){var $=S2();J=J===void 0?null:J;var q=_();if(n6){_0(!0);try{_()}finally{_0(!1)}}return $.memoizedState=[q,J],q}function w$(_,J){var $=W0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&kU(J,q[1]))return q[0];if(q=_(),n6){_0(!0);try{_()}finally{_0(!1)}}return $.memoizedState=[q,J],q}function tU(_,J){var $=S2();return oU($,_,J)}function KY(_,J){var $=W0();return HY($,A0.memoizedState,_,J)}function XY(_,J){var $=W0();return A0===null?oU($,_,J):HY($,A0.memoizedState,_,J)}function oU(_,J,$){if($===void 0||(Q3&1073741824)!==0&&(a1&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=YW(),g1.lanes|=_,e3|=_,$}function HY(_,J,$,q){if(D2($,J))return $;if(I7.current!==null)return _=oU(_,$,q),D2(_,J)||(r0=!0),_;if((Q3&42)===0||(Q3&1073741824)!==0&&(a1&261930)===0)return r0=!0,_.memoizedState=$;return _=YW(),g1.lanes|=_,e3|=_,J}function I$(){Z1.asyncTransitions--}function YY(_,J,$,q,G){var F=H0.p;H0.p=F!==0&&F<m5?F:m5;var Y=Z1.T,A={};A._updatedFibers=new Set,Z1.T=A,$G(_,!1,J,$);try{var w=G(),N=Z1.S;if(N!==null&&N(A,w),w!==null&&typeof w==="object"&&typeof w.then==="function"){Z1.asyncTransitions++,w.then(I$,I$);var t=MO(w,q);k9(_,J,t,Q5(_))}else k9(_,J,q,Q5(_))}catch(o){k9(_,J,{then:function(){},status:"rejected",reason:o},Q5(_))}finally{H0.p=F,Y!==null&&A.types!==null&&(Y.types!==null&&Y.types!==A.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),Y.types=A.types),Z1.T=Y,Y===null&&A._updatedFibers&&(_=A._updatedFibers.size,A._updatedFibers.clear(),10<_&&console.warn("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."))}}function nU(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=WY(_).queue;AO(_),YY(_,G,J,K8,$===null?T:function(){return zY(_),$(q)})}function WY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:K8,baseState:K8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:u5,lastRenderedState:K8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:u5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function zY(_){Z1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=WY(_);J.next===null&&(J=_.alternate.memoizedState),k9(_,J.next.queue,{},Q5(_))}function eU(){var _=mU(!1);return _=YY.bind(null,g1,_.queue,!0,!1),S2().memoizedState=_,[!1,_]}function BY(){var _=c8(u5)[0],J=W0().memoizedState;return[typeof _==="boolean"?_:j9(_),J]}function AY(){var _=V9(u5)[0],J=W0().memoizedState;return[typeof _==="boolean"?_:j9(_),J]}function u6(){return f0(m_)}function _G(){var _=S2(),J=L0.identifierPrefix;if(J0){var $=n4,q=o4;$=(q&~(1<<32-j2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=fQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=$f++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function JG(){return S2().memoizedState=fO.bind(null,g1)}function fO(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=Q5($),G=S3(q),F=j3($,G,q);F!==null&&(q4(q,"refresh()",_),k0(F,$,q),N9(F,$,q)),_=OU(),J!==null&&J!==void 0&&F!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function PO(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("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()."),q=Q5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};f$(_)?MY(J,G):(G=KU(_,J,G,q),G!==null&&(q4(q,"dispatch()",_),k0(G,_,q),TY(G,J,q)))}function LY(_,J,$){var q=arguments;typeof q[3]==="function"&&console.error("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()."),q=Q5(_),k9(_,J,$,q)&&q4(q,"setState()",_)}function k9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(f$(_))MY(J,G);else{var F=_.alternate;if(_.lanes===0&&(F===null||F.lanes===0)&&(F=J.lastRenderedReducer,F!==null)){var Y=Z1.H;Z1.H=c5;try{var A=J.lastRenderedState,w=F(A,$);if(G.hasEagerState=!0,G.eagerState=w,D2(w,A))return tJ(_,J,G,0),L0===null&&sJ(),!1}catch(N){}finally{Z1.H=Y}}if($=KU(_,J,G,q),$!==null)return k0($,_,q),TY($,J,q),!0}return!1}function $G(_,J,$,q){if(Z1.T===null&&i6===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),q={lane:2,revertLane:DG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},f$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=KU(_,$,q,2),J!==null&&(q4(2,"setOptimistic()",_),k0(J,_,2))}function f$(_){var J=_.alternate;return _===g1||J!==null&&J===g1}function MY(_,J){N7=IQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function TY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,b4(_,$)}}function QG(_){if(_!==null&&typeof _!=="function"){var J=String(_);AA.has(J)||(AA.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function qG(_,J,$,q){var G=_.memoizedState,F=$(q,G);if(_.mode&R2){_0(!0);try{F=$(q,G)}finally{_0(!1)}}F===void 0&&(J=g(J)||"Component",YA.has(J)||(YA.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=F===null||F===void 0?G:o1({},G,F),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function RY(_,J,$,q,G,F,Y){var A=_.stateNode;if(typeof A.shouldComponentUpdate==="function"){if($=A.shouldComponentUpdate(q,F,Y),_.mode&R2){_0(!0);try{$=A.shouldComponentUpdate(q,F,Y)}finally{_0(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",g(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!T9($,q)||!T9(G,F):!0}function OY(_,J,$,q){var G=J.state;typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps($,q),typeof J.UNSAFE_componentWillReceiveProps==="function"&&J.UNSAFE_componentWillReceiveProps($,q),J.state!==G&&(_=m(_)||"Component",ZA.has(_)||(ZA.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),nZ.enqueueReplaceState(J,J.state,null))}function x6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=o1({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function wY(_){jZ(_),console.warn(`%s
126
126
 
127
127
  %s
128
- `,N7?"An error occurred in the <"+N7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
129
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function LY(_){var J=N7?"The above error occurred in the <"+N7+"> component.":"The above error occurred in one of your React components.",$="React will try to recreate this component tree from scratch using the error boundary you provided, "+((eZ||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
128
+ `,C7?"An error occurred in the <"+C7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
129
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function IY(_){var J=C7?"The above error occurred in the <"+C7+"> component.":"The above error occurred in one of your React components.",$="React will try to recreate this component tree from scratch using the error boundary you provided, "+((eZ||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
130
130
 
131
131
  %s
132
132
 
133
133
  %s
134
- `,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,dz+" "+_[0],iz,iQ+q+iQ,az):_.splice(0,0,dz,iz,iQ+q+iQ,az),_.unshift(console),q=zf.apply(console.error,_),q()}else console.error(`%o
134
+ `,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,nA+" "+_[0],eA,sQ+q+sQ,_L):_.splice(0,0,nA,eA,sQ+q+sQ,_L),_.unshift(console),q=If.apply(console.error,_),q()}else console.error(`%o
135
135
 
136
136
  %s
137
137
 
138
138
  %s
139
- `,_,J,$)}function MY(_){VZ(_)}function I$(_,J){try{N7=J.source?t(J.source):null,eZ=null;var $=J.value;if(G1.actQueue!==null)G1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function TY(_,J,$){try{N7=$.source?t($.source):null,eZ=t(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function UG(_,J,$){return $=N3($),$.tag=dZ,$.payload={element:null},$.callback=function(){Y1(J.source,I$,_,J)},$}function GG(_){return _=N3(_),_.tag=dZ,_}function ZG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var F=q.value;_.payload=function(){return G(F)},_.callback=function(){YH($),Y1(q.source,TY,J,$,q)}}var H=$.stateNode;H!==null&&typeof H.componentDidCatch==="function"&&(_.callback=function(){YH($),Y1(q.source,TY,J,$,q),typeof G!=="function"&&(e3===null?e3=new Set([this]):e3.add(this)),rI(this,q),typeof G==="function"||($.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",t($)||"Unknown")})}function TO(_,J,$,q,G){if($.flags|=32768,T4&&x9(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&m8(J,$,G,!0),J0&&(w4=!0),$=F5.current,$!==null){switch($.tag){case 31:case 13:return w5===null?k$():$.alternate===null&&V0===U3&&(V0=PQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===MQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),CG(_,q,G)),!1;case 22:return $.flags|=65536,q===MQ?$.flags|=16384:(J=$.updateQueue,J===null?(J={transitions:null,markerInstances:null,retryQueue:new Set([q])},$.updateQueue=J):($=J.retryQueue,$===null?J.retryQueue=new Set([q]):$.add(q)),CG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return CG(_,q,G),k$(),!1}if(J0)return w4=!0,J=F5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==EZ&&T9(n2(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:q}),$))):(q!==EZ&&T9(n2(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:q}),$)),_=_.current.alternate,_.flags|=65536,G&=-G,_.lanes|=G,q=n2(q,$),G=UG(_.stateNode,q,G),K$(_,G),V0!==s3&&(V0=e6)),!1;var F=n2(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(V_===null?V_=[F]:V_.push(F),V0!==s3&&(V0=e6),J===null)return!0;q=n2(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=UG($.stateNode,q,_),K$($,_),!1;case 1:if(J=$.type,F=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||F!==null&&typeof F.componentDidCatch==="function"&&(e3===null||!e3.has(F))))return $.flags|=65536,G&=-G,$.lanes|=G,G=GG(G),ZG(G,_,$,q),K$($,G),!1}$=$.return}while($!==null);return!1}function F2(_,J,$,q){J.child=_===null?lB(J,null,$,q):o6(J,_.child,$,q)}function RY(_,J,$,q,G){$=$.render;var F=J.ref;if("ref"in q){var H={};for(var z in q)z!=="ref"&&(H[z]=q[z])}else H=q;if(y6(J),q=kU(_,J,$,H,F,G),z=vU(),_!==null&&!l0)return EU(_,J,G),c4(_,J,G);return J0&&z&&BU(J),J.flags|=1,F2(_,J,q,G),J.child}function OY(_,J,$,q,G){if(_===null){var F=$.type;if(typeof F==="function"&&!HU(F)&&F.defaultProps===void 0&&$.compare===null)return $=V6(F),J.tag=15,J.type=$,KG(J,F),wY(_,J,$,q,G);return _=YU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(F=_.child,!BG(_,G)){var H=F.memoizedProps;if($=$.compare,$=$!==null?$:L9,$(H,q)&&_.ref===J.ref)return c4(_,J,G)}return J.flags|=1,_=h4(F,q),_.ref=J.ref,_.return=J,J.child=_}function wY(_,J,$,q,G){if(_!==null){var F=_.memoizedProps;if(L9(F,q)&&_.ref===J.ref&&J.type===_.type)if(l0=!1,J.pendingProps=q=F,BG(_,G))(_.flags&131072)!==0&&(l0=!0);else return J.lanes=_.lanes,c4(_,J,G)}return FG(_,J,$,q,G)}function IY(_,J,$,q){var G=q.children,F=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:q_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(F=F!==null?F.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~F}else q=0,J.child=null;return fY(_,J,F,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&Q$(J,F!==null?F.cachePool:null),F!==null?hH(J,F):CU(J),mH(J);else return q=J.lanes=536870912,fY(_,J,F!==null?F.baseLanes|$:$,$,q)}else F!==null?(Q$(J,F.cachePool),hH(J,F),V3(J),J.memoizedState=null):(_!==null&&Q$(J,null),CU(J),V3(J));return F2(_,J,G,$),J.child}function S9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:q_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function fY(_,J,$,q,G){var F=fU();return F=F===null?null:{parent:g0._currentValue,pool:F},J.memoizedState={baseLanes:$,cachePool:F},_!==null&&Q$(J,null),CU(J),mH(J),_!==null&&m8(_,J,q,!0),J.childLanes=G,null}function f$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
139
+ `,_,J,$)}function fY(_){jZ(_)}function P$(_,J){try{C7=J.source?m(J.source):null,eZ=null;var $=J.value;if(Z1.actQueue!==null)Z1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function PY(_,J,$){try{C7=$.source?m($.source):null,eZ=m(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function UG(_,J,$){return $=S3($),$.tag=dZ,$.payload={element:null},$.callback=function(){W1(J.source,P$,_,J)},$}function GG(_){return _=S3(_),_.tag=dZ,_}function ZG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var F=q.value;_.payload=function(){return G(F)},_.callback=function(){MH($),W1(q.source,PY,J,$,q)}}var Y=$.stateNode;Y!==null&&typeof Y.componentDidCatch==="function"&&(_.callback=function(){MH($),W1(q.source,PY,J,$,q),typeof G!=="function"&&(J6===null?J6=new Set([this]):J6.add(this)),nI(this,q),typeof G==="function"||($.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",m($)||"Unknown")})}function NO(_,J,$,q,G){if($.flags|=32768,O4&&h9(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&g8(J,$,G,!0),J0&&(f4=!0),$=K5.current,$!==null){switch($.tag){case 31:case 13:return N5===null?v$():$.alternate===null&&j0===Z3&&(j0=CQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===RQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),SG(_,q,G)),!1;case 22:return $.flags|=65536,q===RQ?$.flags|=16384:(J=$.updateQueue,J===null?(J={transitions:null,markerInstances:null,retryQueue:new Set([q])},$.updateQueue=J):($=J.retryQueue,$===null?J.retryQueue=new Set([q]):$.add(q)),SG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return SG(_,q,G),v$(),!1}if(J0)return f4=!0,J=K5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==EZ&&O9(e2(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:q}),$))):(q!==EZ&&O9(e2(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:q}),$)),_=_.current.alternate,_.flags|=65536,G&=-G,_.lanes|=G,q=e2(q,$),G=UG(_.stateNode,q,G),H$(_,G),j0!==o3&&(j0=e6)),!1;var F=e2(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(k_===null?k_=[F]:k_.push(F),j0!==o3&&(j0=e6),J===null)return!0;q=e2(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=UG($.stateNode,q,_),H$($,_),!1;case 1:if(J=$.type,F=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||F!==null&&typeof F.componentDidCatch==="function"&&(J6===null||!J6.has(F))))return $.flags|=65536,G&=-G,$.lanes|=G,G=GG(G),ZG(G,_,$,q),H$($,G),!1}$=$.return}while($!==null);return!1}function K2(_,J,$,q){J.child=_===null?tB(J,null,$,q):o6(J,_.child,$,q)}function NY(_,J,$,q,G){$=$.render;var F=J.ref;if("ref"in q){var Y={};for(var A in q)A!=="ref"&&(Y[A]=q[A])}else Y=q;if(y6(J),q=DU(_,J,$,Y,F,G),A=vU(),_!==null&&!r0)return EU(_,J,G),r4(_,J,G);return J0&&A&&BU(J),J.flags|=1,K2(_,J,q,G),J.child}function CY(_,J,$,q,G){if(_===null){var F=$.type;if(typeof F==="function"&&!HU(F)&&F.defaultProps===void 0&&$.compare===null)return $=j6(F),J.tag=15,J.type=$,KG(J,F),SY(_,J,$,q,G);return _=YU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(F=_.child,!BG(_,G)){var Y=F.memoizedProps;if($=$.compare,$=$!==null?$:T9,$(Y,q)&&_.ref===J.ref)return r4(_,J,G)}return J.flags|=1,_=g4(F,q),_.ref=J.ref,_.return=J,J.child=_}function SY(_,J,$,q,G){if(_!==null){var F=_.memoizedProps;if(T9(F,q)&&_.ref===J.ref&&J.type===_.type)if(r0=!1,J.pendingProps=q=F,BG(_,G))(_.flags&131072)!==0&&(r0=!0);else return J.lanes=_.lanes,r4(_,J,G)}return FG(_,J,$,q,G)}function jY(_,J,$,q){var G=q.children,F=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:G_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(F=F!==null?F.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~F}else q=0,J.child=null;return VY(_,J,F,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&U$(J,F!==null?F.cachePool:null),F!==null?rH(J,F):SU(J),dH(J);else return q=J.lanes=536870912,VY(_,J,F!==null?F.baseLanes|$:$,$,q)}else F!==null?(U$(J,F.cachePool),rH(J,F),k3(J),J.memoizedState=null):(_!==null&&U$(J,null),SU(J),k3(J));return K2(_,J,G,$),J.child}function D9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:G_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function VY(_,J,$,q,G){var F=fU();return F=F===null?null:{parent:p0._currentValue,pool:F},J.memoizedState={baseLanes:$,cachePool:F},_!==null&&U$(J,null),SU(J),dH(J),_!==null&&g8(_,J,q,!0),J.childLanes=G,null}function N$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
140
140
  - <Activity %s>
141
- + <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=N$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function PY(_,J,$){return o6(J,_.child,null,$),_=f$(J,J.pendingProps),_.flags|=2,J5(J),J.memoizedState=null,_}function RO(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(J0){if(q.mode==="hidden")return _=f$(J,q),J.lanes=536870912,S9(null,_);if(SU(J),(_=O0)?($=tW(_,R5),$=$!==null&&$.data===U8?$:null,$!==null&&(q={dehydrated:$,treeContext:LH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=BH($),q.return=J,J.child=q,H2=J,O0=null)):$=null,$===null)throw oJ(J,_),I3(J);return J.lanes=536870912,null}return f$(J,q)}var F=_.memoizedState;if(F!==null){var H=F.dehydrated;if(SU(J),G)if(J.flags&256)J.flags&=-257,J=PY(_,J,$);else if(J.memoizedState!==null)J.child=_.child,J.flags|=128,J=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(TH(),($&536870912)!==0&&D$(J),l0||m8(_,J,$,!1),G=($&_.childLanes)!==0,l0||G){if(q=z0,q!==null&&(H=E4(q,$),H!==0&&H!==F.retryLane))throw F.retryLane=H,M2(_,H),D0(q,_,H),_F;k$(),J=PY(_,J,$)}else _=F.treeContext,O0=Q5(H.nextSibling),H2=J,J0=!0,p3=null,w4=!1,Z5=null,R5=!1,_!==null&&MH(J,_),J=f$(J,q),J.flags|=4096;return J}return F=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&D$(J),_=h4(F,q),_.ref=J.ref,J.child=_,_.return=J,_}function P$(_,J){var $=J.ref;if($===null)_!==null&&_.ref!==null&&(J.flags|=4194816);else{if(typeof $!=="function"&&typeof $!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(_===null||_.ref!==$)J.flags|=4194816}}function FG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var F=p($)||"Unknown";Hz[F]||(console.error("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.",F,F),Hz[F]=!0)}if(J.mode&R2&&h5.recordLegacyContextWarning(J,null),_===null&&(KG(J,J.type),$.contextTypes&&(F=p($)||"Unknown",Wz[F]||(Wz[F]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",F)))),y6(J),$=kU(_,J,$,q,void 0,G),q=vU(),_!==null&&!l0)return EU(_,J,G),c4(_,J,G);return J0&&q&&BU(J),J.flags|=1,F2(_,J,$,G),J.child}function NY(_,J,$,q,G,F){if(y6(J),Q3=-1,w_=_!==null&&_.type!==J.type,J.updateQueue=null,$=yU(J,q,$,G),gH(_,J),q=vU(),_!==null&&!l0)return EU(_,J,F),c4(_,J,F);return J0&&q&&BU(J),J.flags|=1,F2(_,J,$,F),J.child}function jY(_,J,$,q,G){switch(W(J)){case!1:var F=J.stateNode,H=new J.type(J.memoizedProps,F.context).state;F.updater.enqueueSetState(F,H,null);break;case!0:J.flags|=128,J.flags|=65536,F=Error("Simulated error coming from DevTools");var z=G&-G;if(J.lanes|=z,H=z0,H===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");z=GG(z),ZG(z,H,J,n2(F,J)),K$(J,z)}if(y6(J),J.stateNode===null){if(H=g3,F=$.contextType,"contextType"in $&&F!==null&&(F===void 0||F.$$typeof!==z4)&&!Kz.has($)&&(Kz.add($),z=F===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof F!=="object"?" However, it is set to a "+typeof F+".":F.$$typeof===JZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(F).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",p($)||"Component",z)),typeof F==="object"&&F!==null&&(H=I0(F)),F=new $(q,H),J.mode&R2){_0(!0);try{F=new $(q,H)}finally{_0(!1)}}if(H=J.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,F.updater=nZ,J.stateNode=F,F._reactInternals=J,F._reactInternalInstance=_z,typeof $.getDerivedStateFromProps==="function"&&H===null&&(H=p($)||"Component",$z.has(H)||($z.add(H),console.error("`%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.",H,F.state===null?"null":"undefined",H))),typeof $.getDerivedStateFromProps==="function"||typeof F.getSnapshotBeforeUpdate==="function"){var w=z=H=null;if(typeof F.componentWillMount==="function"&&F.componentWillMount.__suppressDeprecationWarning!==!0?H="componentWillMount":typeof F.UNSAFE_componentWillMount==="function"&&(H="UNSAFE_componentWillMount"),typeof F.componentWillReceiveProps==="function"&&F.componentWillReceiveProps.__suppressDeprecationWarning!==!0?z="componentWillReceiveProps":typeof F.UNSAFE_componentWillReceiveProps==="function"&&(z="UNSAFE_componentWillReceiveProps"),typeof F.componentWillUpdate==="function"&&F.componentWillUpdate.__suppressDeprecationWarning!==!0?w="componentWillUpdate":typeof F.UNSAFE_componentWillUpdate==="function"&&(w="UNSAFE_componentWillUpdate"),H!==null||z!==null||w!==null){F=p($)||"Component";var N=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";qz.has(F)||(qz.add(F),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
141
+ + <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=S$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function kY(_,J,$){return o6(J,_.child,null,$),_=N$(J,J.pendingProps),_.flags|=2,$5(J),J.memoizedState=null,_}function CO(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(J0){if(q.mode==="hidden")return _=N$(J,q),J.lanes=536870912,D9(null,_);if(VU(J),(_=w0)?($=$z(_,f5),$=$!==null&&$.data===U8?$:null,$!==null&&(q={dehydrated:$,treeContext:IH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=OH($),q.return=J,J.child=q,Y2=J,w0=null)):$=null,$===null)throw eJ(J,_),P3(J);return J.lanes=536870912,null}return N$(J,q)}var F=_.memoizedState;if(F!==null){var Y=F.dehydrated;if(VU(J),G)if(J.flags&256)J.flags&=-257,J=kY(_,J,$);else if(J.memoizedState!==null)J.child=_.child,J.flags|=128,J=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(PH(),($&536870912)!==0&&y$(J),r0||g8(_,J,$,!1),G=($&_.childLanes)!==0,r0||G){if(q=L0,q!==null&&(Y=u4(q,$),Y!==0&&Y!==F.retryLane))throw F.retryLane=Y,M2(_,Y),k0(q,_,Y),_F;v$(),J=kY(_,J,$)}else _=F.treeContext,w0=q5(Y.nextSibling),Y2=J,J0=!0,l3=null,f4=!1,F5=null,f5=!1,_!==null&&fH(J,_),J=N$(J,q),J.flags|=4096;return J}return F=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&y$(J),_=g4(F,q),_.ref=J.ref,J.child=_,_.return=J,_}function C$(_,J){var $=J.ref;if($===null)_!==null&&_.ref!==null&&(J.flags|=4194816);else{if(typeof $!=="function"&&typeof $!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(_===null||_.ref!==$)J.flags|=4194816}}function FG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var F=g($)||"Unknown";LA[F]||(console.error("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.",F,F),LA[F]=!0)}if(J.mode&R2&&p5.recordLegacyContextWarning(J,null),_===null&&(KG(J,J.type),$.contextTypes&&(F=g($)||"Unknown",TA[F]||(TA[F]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",F)))),y6(J),$=DU(_,J,$,q,void 0,G),q=vU(),_!==null&&!r0)return EU(_,J,G),r4(_,J,G);return J0&&q&&BU(J),J.flags|=1,K2(_,J,$,G),J.child}function DY(_,J,$,q,G,F){if(y6(J),U3=-1,f_=_!==null&&_.type!==J.type,J.updateQueue=null,$=yU(J,q,$,G),iH(_,J),q=vU(),_!==null&&!r0)return EU(_,J,F),r4(_,J,F);return J0&&q&&BU(J),J.flags|=1,K2(_,J,$,F),J.child}function yY(_,J,$,q,G){switch(z(J)){case!1:var F=J.stateNode,Y=new J.type(J.memoizedProps,F.context).state;F.updater.enqueueSetState(F,Y,null);break;case!0:J.flags|=128,J.flags|=65536,F=Error("Simulated error coming from DevTools");var A=G&-G;if(J.lanes|=A,Y=L0,Y===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");A=GG(A),ZG(A,Y,J,e2(F,J)),H$(J,A)}if(y6(J),J.stateNode===null){if(Y=c3,F=$.contextType,"contextType"in $&&F!==null&&(F===void 0||F.$$typeof!==M4)&&!BA.has($)&&(BA.add($),A=F===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof F!=="object"?" However, it is set to a "+typeof F+".":F.$$typeof===JZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(F).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",g($)||"Component",A)),typeof F==="object"&&F!==null&&(Y=f0(F)),F=new $(q,Y),J.mode&R2){_0(!0);try{F=new $(q,Y)}finally{_0(!1)}}if(Y=J.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,F.updater=nZ,J.stateNode=F,F._reactInternals=J,F._reactInternalInstance=GA,typeof $.getDerivedStateFromProps==="function"&&Y===null&&(Y=g($)||"Component",FA.has(Y)||(FA.add(Y),console.error("`%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.",Y,F.state===null?"null":"undefined",Y))),typeof $.getDerivedStateFromProps==="function"||typeof F.getSnapshotBeforeUpdate==="function"){var w=A=Y=null;if(typeof F.componentWillMount==="function"&&F.componentWillMount.__suppressDeprecationWarning!==!0?Y="componentWillMount":typeof F.UNSAFE_componentWillMount==="function"&&(Y="UNSAFE_componentWillMount"),typeof F.componentWillReceiveProps==="function"&&F.componentWillReceiveProps.__suppressDeprecationWarning!==!0?A="componentWillReceiveProps":typeof F.UNSAFE_componentWillReceiveProps==="function"&&(A="UNSAFE_componentWillReceiveProps"),typeof F.componentWillUpdate==="function"&&F.componentWillUpdate.__suppressDeprecationWarning!==!0?w="componentWillUpdate":typeof F.UNSAFE_componentWillUpdate==="function"&&(w="UNSAFE_componentWillUpdate"),Y!==null||A!==null||w!==null){F=g($)||"Component";var N=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";XA.has(F)||(XA.add(F),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
142
142
 
143
143
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
144
144
 
145
145
  The above lifecycles should be removed. Learn more about this warning here:
146
- https://react.dev/link/unsafe-component-lifecycles`,F,N,H!==null?`
147
- `+H:"",z!==null?`
148
- `+z:"",w!==null?`
149
- `+w:""))}}F=J.stateNode,H=p($)||"Component",F.render||($.prototype&&typeof $.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",H):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",H)),!F.getInitialState||F.getInitialState.isReactClassApproved||F.state||console.error("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?",H),F.getDefaultProps&&!F.getDefaultProps.isReactClassApproved&&console.error("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.",H),F.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",H),$.childContextTypes&&!Fz.has($)&&(Fz.add($),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",H)),$.contextTypes&&!Zz.has($)&&(Zz.add($),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",H)),typeof F.componentShouldUpdate==="function"&&console.error("%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.",H),$.prototype&&$.prototype.isPureReactComponent&&typeof F.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",p($)||"A pure component"),typeof F.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",H),typeof F.componentDidReceiveProps==="function"&&console.error("%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().",H),typeof F.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",H),typeof F.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",H),z=F.props!==q,F.props!==void 0&&z&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",H),F.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",H,H),typeof F.getSnapshotBeforeUpdate!=="function"||typeof F.componentDidUpdate==="function"||Qz.has($)||(Qz.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",p($))),typeof F.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",H),typeof F.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",H),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",H),(z=F.state)&&(typeof z!=="object"||a0(z))&&console.error("%s.state: must be set to an object or null",H),typeof F.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",H),F=J.stateNode,F.props=q,F.state=J.memoizedState,F.refs={},NU(J),H=$.contextType,F.context=typeof H==="object"&&H!==null?I0(H):g3,F.state===q&&(H=p($)||"Component",Uz.has(H)||(Uz.add(H),console.error("%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.",H))),J.mode&R2&&h5.recordLegacyContextWarning(J,F),h5.recordUnsafeLifecycleWarnings(J,F),F.state=J.memoizedState,H=$.getDerivedStateFromProps,typeof H==="function"&&(qG(J,$,H,q),F.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof F.getSnapshotBeforeUpdate==="function"||typeof F.UNSAFE_componentWillMount!=="function"&&typeof F.componentWillMount!=="function"||(H=F.state,typeof F.componentWillMount==="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount==="function"&&F.UNSAFE_componentWillMount(),H!==F.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t(J)||"Component"),nZ.enqueueReplaceState(F,F.state,null)),N9(J,q,F,G),P9(),F.state=J.memoizedState),typeof F.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&u5)!==u1&&(J.flags|=134217728),F=!0}else if(_===null){F=J.stateNode;var i=J.memoizedProps;z=u6($,i),F.props=z;var s=F.context;w=$.contextType,H=g3,typeof w==="object"&&w!==null&&(H=I0(w)),N=$.getDerivedStateFromProps,w=typeof N==="function"||typeof F.getSnapshotBeforeUpdate==="function",i=J.pendingProps!==i,w||typeof F.UNSAFE_componentWillReceiveProps!=="function"&&typeof F.componentWillReceiveProps!=="function"||(i||s!==H)&&BY(J,F,q,H),a3=!1;var c=J.memoizedState;F.state=c,N9(J,q,F,G),P9(),s=J.memoizedState,i||c!==s||a3?(typeof N==="function"&&(qG(J,$,N,q),s=J.memoizedState),(z=a3||AY(J,$,z,q,c,s,H))?(w||typeof F.UNSAFE_componentWillMount!=="function"&&typeof F.componentWillMount!=="function"||(typeof F.componentWillMount==="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount==="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&u5)!==u1&&(J.flags|=134217728)):(typeof F.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&u5)!==u1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=s),F.props=q,F.state=s,F.context=H,F=z):(typeof F.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&u5)!==u1&&(J.flags|=134217728),F=!1)}else{F=J.stateNode,jU(_,J),H=J.memoizedProps,w=u6($,H),F.props=w,N=J.pendingProps,c=F.context,s=$.contextType,z=g3,typeof s==="object"&&s!==null&&(z=I0(s)),i=$.getDerivedStateFromProps,(s=typeof i==="function"||typeof F.getSnapshotBeforeUpdate==="function")||typeof F.UNSAFE_componentWillReceiveProps!=="function"&&typeof F.componentWillReceiveProps!=="function"||(H!==N||c!==z)&&BY(J,F,q,z),a3=!1,c=J.memoizedState,F.state=c,N9(J,q,F,G),P9();var q1=J.memoizedState;H!==N||c!==q1||a3||_!==null&&_.dependencies!==null&&eJ(_.dependencies)?(typeof i==="function"&&(qG(J,$,i,q),q1=J.memoizedState),(w=a3||AY(J,$,w,q,c,q1,z)||_!==null&&_.dependencies!==null&&eJ(_.dependencies))?(s||typeof F.UNSAFE_componentWillUpdate!=="function"&&typeof F.componentWillUpdate!=="function"||(typeof F.componentWillUpdate==="function"&&F.componentWillUpdate(q,q1,z),typeof F.UNSAFE_componentWillUpdate==="function"&&F.UNSAFE_componentWillUpdate(q,q1,z)),typeof F.componentDidUpdate==="function"&&(J.flags|=4),typeof F.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof F.componentDidUpdate!=="function"||H===_.memoizedProps&&c===_.memoizedState||(J.flags|=4),typeof F.getSnapshotBeforeUpdate!=="function"||H===_.memoizedProps&&c===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=q1),F.props=q,F.state=q1,F.context=z,F=w):(typeof F.componentDidUpdate!=="function"||H===_.memoizedProps&&c===_.memoizedState||(J.flags|=4),typeof F.getSnapshotBeforeUpdate!=="function"||H===_.memoizedProps&&c===_.memoizedState||(J.flags|=1024),F=!1)}if(z=F,P$(_,J),H=(J.flags&128)!==0,z||H){if(z=J.stateNode,C1(J),H&&typeof $.getDerivedStateFromError!=="function")$=null,y2=-1;else if($=SB(z),J.mode&R2){_0(!0);try{SB(z)}finally{_0(!1)}}J.flags|=1,_!==null&&H?(J.child=o6(J,_.child,null,G),J.child=o6(J,null,$,G)):F2(_,J,$,G),J.memoizedState=z.state,_=J.child}else _=c4(_,J,G);return G=J.stateNode,F&&G.props!==q&&(j7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",t(J)||"a component"),j7=!0),_}function CY(_,J,$,q){return k6(),J.flags|=256,F2(_,J,$,q),J.child}function KG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
150
- %s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=p(J)||"Unknown",Az[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),Az[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=p(J)||"Unknown",Yz[J]||(console.error("%s: Function components do not support contextType.",J),Yz[J]=!0))}function XG(_){return{baseLanes:_,cachePool:NH()}}function HG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=a2),_}function VY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var F=!1,H=(J.flags&128)!==0;if((q=H)||(q=_!==null&&_.memoizedState===null?!1:(h0.current&R_)!==0),q&&(F=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(J0){if(F?C3(J):V3(J),(_=O0)?($=tW(_,R5),$=$!==null&&$.data!==U8?$:null,$!==null&&(q={dehydrated:$,treeContext:LH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=BH($),q.return=J,J.child=q,H2=J,O0=null)):$=null,$===null)throw oJ(J,_),I3(J);return lG($)?J.lanes=32:J.lanes=536870912,null}var z=G.children;if(G=G.fallback,F){V3(J);var w=J.mode;return z=N$({mode:"hidden",children:z},w),G=S6(G,w,$,null),z.return=J,G.return=J,z.sibling=G,J.child=z,G=J.child,G.memoizedState=XG($),G.childLanes=HG(_,q,$),J.memoizedState=JF,S9(null,G)}return C3(J),YG(J,z)}var N=_.memoizedState;if(N!==null){var i=N.dehydrated;if(i!==null){if(H)J.flags&256?(C3(J),J.flags&=-257,J=WG(_,J,$)):J.memoizedState!==null?(V3(J),J.child=_.child,J.flags|=128,J=null):(V3(J),z=G.fallback,w=J.mode,G=N$({mode:"visible",children:G.children},w),z=S6(z,w,$,null),z.flags|=2,G.return=J,z.return=J,G.sibling=z,J.child=G,o6(J,_.child,null,$),G=J.child,G.memoizedState=XG($),G.childLanes=HG(_,q,$),J.memoizedState=JF,J=S9(null,G));else if(C3(J),TH(),($&536870912)!==0&&D$(J),lG(i)){if(q=i.nextSibling&&i.nextSibling.dataset,q){z=q.dgst;var s=q.msg;w=q.stck;var c=q.cstck}F=s,q=z,G=w,i=c,z=F,w=i,z=z?Error(z):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),z.stack=G||"",z.digest=q,q=w===void 0?null:w,G={value:z,source:null,stack:q},typeof q==="string"&&vZ.set(z,G),T9(G),J=WG(_,J,$)}else if(l0||m8(_,J,$,!1),q=($&_.childLanes)!==0,l0||q){if(q=z0,q!==null&&(G=E4(q,$),G!==0&&G!==N.retryLane))throw N.retryLane=G,M2(_,G),D0(q,_,G),_F;cG(i)||k$(),J=WG(_,J,$)}else cG(i)?(J.flags|=192,J.child=_.child,J=null):(_=N.treeContext,O0=Q5(i.nextSibling),H2=J,J0=!0,p3=null,w4=!1,Z5=null,R5=!1,_!==null&&MH(J,_),J=YG(J,G.children),J.flags|=4096);return J}}if(F)return V3(J),z=G.fallback,w=J.mode,c=_.child,i=c.sibling,G=h4(c,{mode:"hidden",children:G.children}),G.subtreeFlags=c.subtreeFlags&65011712,i!==null?z=h4(i,z):(z=S6(z,w,$,null),z.flags|=2),z.return=J,G.return=J,G.sibling=z,J.child=G,S9(null,G),G=J.child,z=_.child.memoizedState,z===null?z=XG($):(w=z.cachePool,w!==null?(c=g0._currentValue,w=w.parent!==c?{parent:c,pool:c}:w):w=NH(),z={baseLanes:z.baseLanes|$,cachePool:w}),G.memoizedState=z,G.childLanes=HG(_,q,$),J.memoizedState=JF,S9(_.child,G);return N!==null&&($&62914560)===$&&($&_.lanes)!==0&&D$(J),C3(J),$=_.child,_=$.sibling,$=h4($,{mode:"visible",children:G.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function YG(_,J){return J=N$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function N$(_,J){return _=M(22,_,null,J),_.lanes=0,_}function WG(_,J,$){return o6(J,_.child,null,$),_=YG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function SY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),TU(_.return,J,$)}function AG(_,J,$,q,G,F){var H=_.memoizedState;H===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:F}:(H.isBackwards=J,H.rendering=null,H.renderingStartTime=0,H.last=q,H.tail=$,H.tailMode=G,H.treeForkCount=F)}function DY(_,J,$){var q=J.pendingProps,G=q.revealOrder,F=q.tail,H=q.children,z=h0.current;if((q=(z&R_)!==0)?(z=z&I7|R_,J.flags|=128):z&=I7,_1(h0,z,J),z=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!Bz[z])if(Bz[z]=!0,G==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(G==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof G==="string")switch(G.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',G,G.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(z=F==null?"null":F,!fQ[z])if(F==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")fQ[z]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else F!=="visible"&&F!=="collapsed"&&F!=="hidden"?(fQ[z]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',F)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(fQ[z]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',F));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&H!==void 0&&H!==null&&H!==!1)if(a0(H)){for(z=0;z<H.length;z++)if(!bH(H[z],z))break _}else if(z=E(H),typeof z==="function"){if(z=z.call(H))for(var w=z.next(),N=0;!w.done;w=z.next()){if(!bH(w.value,N))break _;N++}}else console.error('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?',G);if(F2(_,J,H,$),J0?(w3(),H=U_):H=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&SY(_,$,J);else if(_.tag===19)SY(_,$,J);else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===J)break _;for(;_.sibling===null;){if(_.return===null||_.return===J)break _;_=_.return}_.sibling.return=_.return,_=_.sibling}switch(G){case"forwards":$=J.child;for(G=null;$!==null;)_=$.alternate,_!==null&&X$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),AG(J,!1,G,$,F,H);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&X$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}AG(J,!0,$,null,F,H);break;case"together":AG(J,!1,null,null,void 0,H);break;default:J.memoizedState=null}return J.child}function c4(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),y2=-1,o3|=J.lanes,($&J.childLanes)===0)if(_!==null){if(m8(_,J,$,!1),($&J.childLanes)===0)return null}else return null;if(_!==null&&J.child!==_.child)throw Error("Resuming work not yet implemented.");if(J.child!==null){_=J.child,$=h4(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=h4(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function BG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&eJ(_)?!0:!1}function OO(_,J,$){switch(J.tag){case 3:u(J,J.stateNode.containerInfo),f3(J,g0,_.memoizedState.cache),k6();break;case 27:case 5:n(J);break;case 4:u(J,J.stateNode.containerInfo);break;case 10:f3(J,J.type,J.memoizedProps.value);break;case 12:($&J.childLanes)!==0&&(J.flags|=4),J.flags|=2048;var q=J.stateNode;q.effectDuration=-0,q.passiveEffectDuration=-0;break;case 31:if(J.memoizedState!==null)return J.flags|=128,SU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return C3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return VY(_,J,$);return C3(J),_=c4(_,J,$),_!==null?_.sibling:null}C3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(m8(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return DY(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),_1(h0,h0.current,J),q)break;else return null;case 22:return J.lanes=0,IY(_,J,$,J.pendingProps);case 24:f3(J,g0,_.memoizedState.cache)}return c4(_,J,$)}function zG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=YU(J.type,J.key,J.pendingProps,J._debugOwner||null,J.mode,J.lanes),$._debugStack=J._debugStack,$._debugTask=J._debugTask;var q=J.return;if(q===null)throw Error("Cannot swap the root fiber.");if(_.alternate=null,J.alternate=null,$.index=J.index,$.sibling=J.sibling,$.return=J.return,$.ref=J.ref,$._debugInfo=J._debugInfo,J===q.child)q.child=$;else{var G=q.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==J;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=$}return J=q.deletions,J===null?(q.deletions=[_],q.flags|=16):J.push(_),$.flags|=2,$}if(_!==null)if(_.memoizedProps!==J.pendingProps||J.type!==_.type)l0=!0;else{if(!BG(_,$)&&(J.flags&128)===0)return l0=!1,OO(_,J,$);l0=(_.flags&131072)!==0?!0:!1}else{if(l0=!1,q=J0)w3(),q=(J.flags&1048576)!==0;q&&(q=J.index,w3(),zH(J,U_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=P3(J.elementType),J.type=_,typeof _==="function")HU(_)?(q=u6(_,q),J.tag=1,J.type=_=V6(_),J=jY(null,J,_,q,$)):(J.tag=0,KG(J,_),J.type=_=V6(_),J=FG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===d9){J.tag=11,J.type=_=XU(_),J=RY(null,J,_,q,$);break _}else if(G===d$){J.tag=14,J=OY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===q5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=p(_)||_,Error("Element type is invalid. Received a promise that resolves to: "+$+". Lazy element type must resolve to a class or function."+J)}return J;case 0:return FG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=u6(q,J.pendingProps),jY(_,J,q,G,$);case 3:_:{if(u(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var F=J.memoizedState;G=F.element,jU(_,J),N9(J,q,null,$);var H=J.memoizedState;if(q=H.cache,f3(J,g0,q),q!==F.cache&&RU(J,[g0],$,!0),P9(),q=H.element,F.isDehydrated)if(F={element:q,isDehydrated:!1,cache:H.cache},J.updateQueue.baseState=F,J.memoizedState=F,J.flags&256){J=CY(_,J,q,$);break _}else if(q!==G){G=n2(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),T9(G),J=CY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}O0=Q5(_.firstChild),H2=J,J0=!0,p3=null,w4=!1,Z5=null,R5=!0,$=lB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(k6(),q===G){J=c4(_,J,$);break _}F2(_,J,q,$)}J=J.child}return J;case 26:return P$(_,J),_===null?($=$A(J.type,null,J.pendingProps,null))?J.memoizedState=$:J0||($=J.type,_=J.pendingProps,q=y(E3.current),q=b$(q).createElement($),q[X2]=J,q[S2]=_,K2(q,$,_),S1(q),J.stateNode=q):J.memoizedState=$A(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return n(J),_===null&&J0&&(q=y(E3.current),G=r(),q=J.stateNode=_A(J.type,J.pendingProps,q,G,!1),w4||(G=pW(q,J.type,J.pendingProps,G),G!==null&&(D6(J,0).serverProps=G)),H2=J,R5=!0,G=O0,y3(J.type)?(fF=G,O0=Q5(q.firstChild)):O0=G),F2(_,J,J.pendingProps.children,$),P$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&J0&&(F=r(),q=Y9(J.type,F.ancestorInfo),G=O0,(H=!G)||(H=Kw(G,J.type,J.pendingProps,R5),H!==null?(J.stateNode=H,w4||(F=pW(H,J.type,J.pendingProps,F),F!==null&&(D6(J,0).serverProps=F)),H2=J,O0=Q5(H.firstChild),R5=!1,F=!0):F=!1,H=!F),H&&(q&&oJ(J,G),I3(J))),n(J),G=J.type,F=J.pendingProps,H=_!==null?_.memoizedProps:null,q=F.children,gG(G,F)?q=null:H!==null&&gG(G,H)&&(J.flags|=32),J.memoizedState!==null&&(G=kU(_,J,WO,null,null,$),u_._currentValue=G),P$(_,J),F2(_,J,q,$),J.child;case 6:return _===null&&J0&&($=J.pendingProps,_=r(),q=_.ancestorInfo.current,$=q!=null?O3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=O0,(q=!_)||(q=Xw(_,J.pendingProps,R5),q!==null?(J.stateNode=q,H2=J,O0=null,q=!0):q=!1,q=!q),q&&($&&oJ(J,_),I3(J))),null;case 13:return VY(_,J,$);case 4:return u(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=o6(J,null,q,$):F2(_,J,q,$),J.child;case 11:return RY(_,J,J.type,J.pendingProps,$);case 7:return F2(_,J,J.pendingProps,$),J.child;case 8:return F2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,F2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,F=G.value,"value"in G||zz||(zz=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),f3(J,q,F),F2(_,J,G.children,$),J.child;case 9:return G=J.type._context,q=J.pendingProps.children,typeof q!=="function"&&console.error("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."),y6(J),G=I0(G),q=pZ(q,G,void 0),J.flags|=1,F2(_,J,q,$),J.child;case 14:return OY(_,J,J.type,J.pendingProps,$);case 15:return wY(_,J,J.type,J.pendingProps,$);case 19:return DY(_,J,$);case 31:return RO(_,J,$);case 22:return IY(_,J,$,J.pendingProps);case 24:return y6(J),q=I0(g0),_===null?(G=fU(),G===null&&(G=z0,F=OU(),G.pooledCache=F,v6(F),F!==null&&(G.pooledCacheLanes|=$),G=F),J.memoizedState={parent:q,cache:G},NU(J),f3(J,g0,G)):((_.lanes&$)!==0&&(jU(_,J),N9(J,null,null,$),P9()),G=_.memoizedState,F=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),f3(J,g0,q)):(q=F.cache,f3(J,g0,q),q!==G.cache&&RU(J,[g0],$,!0))),F2(_,J,J.pendingProps.children,$),J.child;case 29:throw J.pendingProps}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function l4(_){_.flags|=4}function LG(_,J,$,q,G){if(J=(_.mode&gI)!==u1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(XW())_.flags|=8192;else throw t6=MQ,lZ}else _.flags&=-16777217}function kY(_,J){if(J.type!=="stylesheet"||(J.state.loading&P5)!==F8)_.flags&=-16777217;else if(_.flags|=16777216,!ZA(J))if(XW())_.flags|=8192;else throw t6=MQ,lZ}function j$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?B2():536870912,_.lanes|=J,$8|=J)}function D9(_,J){if(!J0)switch(_.tailMode){case"hidden":J=_.tail;for(var $=null;J!==null;)J.alternate!==null&&($=J),J=J.sibling;$===null?_.tail=null:$.sibling=null;break;case"collapsed":$=_.tail;for(var q=null;$!==null;)$.alternate!==null&&(q=$),$=$.sibling;q===null?J||_.tail===null?_.tail=null:_.tail.sibling=null:q.sibling=null}}function M0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&d1)!==u1){for(var{selfBaseDuration:G,child:F}=_;F!==null;)$|=F.lanes|F.childLanes,q|=F.subtreeFlags&65011712,q|=F.flags&65011712,G+=F.treeBaseDuration,F=F.sibling;_.treeBaseDuration=G}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags&65011712,q|=G.flags&65011712,G.return=_,G=G.sibling;else if((_.mode&d1)!==u1){G=_.actualDuration,F=_.selfBaseDuration;for(var H=_.child;H!==null;)$|=H.lanes|H.childLanes,q|=H.subtreeFlags,q|=H.flags,G+=H.actualDuration,F+=H.treeBaseDuration,H=H.sibling;_.actualDuration=G,_.treeBaseDuration=F}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags,q|=G.flags,G.return=_,G=G.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function wO(_,J,$){var q=J.pendingProps;switch(zU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return M0(J),null;case 1:return M0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),g4(g0,J),v(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)h8(J)?(MU(),l4(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,LU());return M0(J),null;case 26:var{type:G,memoizedState:F}=J;return _===null?(l4(J),F!==null?(M0(J),kY(J,F)):(M0(J),LG(J,G,null,q,$))):F?F!==_.memoizedState?(l4(J),M0(J),kY(J,F)):(M0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&l4(J),M0(J),LG(J,G,_,q,$)),null;case 27:if(o(J),$=y(E3.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&l4(J);else{if(!q){if(J.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 M0(J),null}_=r(),h8(J)?RH(J,_):(_=_A(G,q,$,_,!0),J.stateNode=_,l4(J))}return M0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&l4(J);else{if(!q){if(J.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 M0(J),null}var H=r();if(h8(J))RH(J,H);else{switch(F=y(E3.current),Y9(G,H.ancestorInfo),H=H.context,F=b$(F),H){case E7:F=F.createElementNS(U7,G);break;case lQ:F=F.createElementNS(e$,G);break;default:switch(G){case"svg":F=F.createElementNS(U7,G);break;case"math":F=F.createElementNS(e$,G);break;case"script":F=F.createElement("div"),F.innerHTML="<script></script>",F=F.removeChild(F.firstChild);break;case"select":F=typeof q.is==="string"?F.createElement("select",{is:q.is}):F.createElement("select"),q.multiple?F.multiple=!0:q.size&&(F.size=q.size);break;default:F=typeof q.is==="string"?F.createElement(G,{is:q.is}):F.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(F)!=="[object HTMLUnknownElement]"||b5.call(mz,G)||(mz[G]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",G)))}}F[X2]=J,F[S2]=q;_:for(H=J.child;H!==null;){if(H.tag===5||H.tag===6)F.appendChild(H.stateNode);else if(H.tag!==4&&H.tag!==27&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===J)break _;for(;H.sibling===null;){if(H.return===null||H.return===J)break _;H=H.return}H.sibling.return=H.return,H=H.sibling}J.stateNode=F;_:switch(K2(F,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&l4(J)}}return M0(J),LG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&l4(J);else{if(typeof q!=="string"&&J.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.");if(_=y(E3.current),$=r(),h8(J)){if(_=J.stateNode,$=J.memoizedProps,G=!w4,q=null,F=H2,F!==null)switch(F.tag){case 3:G&&(G=nW(_,$,q),G!==null&&(D6(J,0).serverProps=G));break;case 27:case 5:q=F.memoizedProps,G&&(G=nW(_,$,q),G!==null&&(D6(J,0).serverProps=G))}_[X2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||xW(_.nodeValue,$)?!0:!1,_||I3(J,!0)}else G=$.ancestorInfo.current,G!=null&&O3(q,G.tag,$.ancestorInfo.implicitRootScope),_=b$(_).createTextNode(q),_[X2]=J,J.stateNode=_}return M0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=h8(J),$!==null){if(_===null){if(!q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(_=J.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");_[X2]=J,M0(J),(J.mode&d1)!==u1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else MU(),k6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,M0(J),(J.mode&d1)!==u1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=LU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return J5(J),J;return J5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return M0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,F=h8(J),G!==null&&G.dehydrated!==null){if(_===null){if(!F)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(F=J.memoizedState,F=F!==null?F.dehydrated:null,!F)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");F[X2]=J,M0(J),(J.mode&d1)!==u1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else MU(),k6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,M0(J),(J.mode&d1)!==u1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=LU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return J5(J),J;return J5(J),null}}if(J5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&d1)!==u1&&w9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,G=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(G=q.alternate.memoizedState.cachePool.pool),F=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(F=q.memoizedState.cachePool.pool),F!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),j$(J,J.updateQueue),M0(J),(J.mode&d1)!==u1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return v(J),_===null&&vG(J.stateNode.containerInfo),M0(J),null;case 10:return g4(J.type,J),M0(J),null;case 19:if($1(h0,J),q=J.memoizedState,q===null)return M0(J),null;if(G=(J.flags&128)!==0,F=q.rendering,F===null)if(G)D9(q,!1);else{if(V0!==U3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(F=X$(_),F!==null){J.flags|=128,D9(q,!1),_=F.updateQueue,J.updateQueue=_,j$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)AH($,_),$=$.sibling;return _1(h0,h0.current&I7|R_,J),J0&&m4(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&$2()>DQ&&(J.flags|=128,G=!0,D9(q,!1),J.lanes=4194304)}else{if(!G)if(_=X$(F),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,j$(J,_),D9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!F.alternate&&!J0)return M0(J),null}else 2*$2()-q.renderingStartTime>DQ&&$!==536870912&&(J.flags|=128,G=!0,D9(q,!1),J.lanes=4194304);q.isBackwards?(F.sibling=J.child,J.child=F):(_=q.last,_!==null?_.sibling=F:J.child=F,q.last=F)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=$2(),_.sibling=null,$=h0.current,$=G?$&I7|R_:$&I7,_1(h0,$,J),J0&&m4(J,q.treeForkCount),_;return M0(J),null;case 22:case 23:return J5(J),VU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(M0(J),J.subtreeFlags&6&&(J.flags|=8192)):M0(J),$=J.updateQueue,$!==null&&j$(J,$.retryQueue),$=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==$&&(J.flags|=2048),_!==null&&$1(a6,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),g4(g0,J),M0(J),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function IO(_,J){switch(zU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&d1)!==u1&&w9(J),J):null;case 3:return g4(g0,J),v(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return o(J),null;case 31:if(J.memoizedState!==null){if(J5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");k6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&d1)!==u1&&w9(J),J):null;case 13:if(J5(J),_=J.memoizedState,_!==null&&_.dehydrated!==null){if(J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");k6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&d1)!==u1&&w9(J),J):null;case 19:return $1(h0,J),null;case 4:return v(J),null;case 10:return g4(J.type,J),null;case 22:case 23:return J5(J),VU(J),_!==null&&$1(a6,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&d1)!==u1&&w9(J),J):null;case 24:return g4(g0,J),null;case 25:return null;default:return null}}function yY(_,J){switch(zU(J),J.tag){case 3:g4(g0,J),v(J);break;case 26:case 27:case 5:o(J);break;case 4:v(J);break;case 31:J.memoizedState!==null&&J5(J);break;case 13:J5(J);break;case 19:$1(h0,J);break;case 10:g4(J.type,J);break;case 22:case 23:J5(J),VU(J),_!==null&&$1(a6,J);break;case 24:g4(g0,J)}}function K4(_){return(_.mode&d1)!==u1}function vY(_,J){K4(_)?(F4(),k9(J,_),Z4()):k9(J,_)}function MG(_,J,$){K4(_)?(F4(),r8($,_,J),Z4()):r8($,_,J)}function k9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&v2)!==RQ&&(k7=!0),q=Y1(J,dI,$),(_&v2)!==RQ&&(k7=!1),q!==void 0&&typeof q!=="function")){var F=void 0;F=($.tag&K5)!==0?"useLayoutEffect":($.tag&v2)!==0?"useInsertionEffect":"useEffect";var H=void 0;H=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
146
+ https://react.dev/link/unsafe-component-lifecycles`,F,N,Y!==null?`
147
+ `+Y:"",A!==null?`
148
+ `+A:"",w!==null?`
149
+ `+w:""))}}F=J.stateNode,Y=g($)||"Component",F.render||($.prototype&&typeof $.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",Y):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",Y)),!F.getInitialState||F.getInitialState.isReactClassApproved||F.state||console.error("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?",Y),F.getDefaultProps&&!F.getDefaultProps.isReactClassApproved&&console.error("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.",Y),F.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",Y),$.childContextTypes&&!zA.has($)&&(zA.add($),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",Y)),$.contextTypes&&!WA.has($)&&(WA.add($),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",Y)),typeof F.componentShouldUpdate==="function"&&console.error("%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.",Y),$.prototype&&$.prototype.isPureReactComponent&&typeof F.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",g($)||"A pure component"),typeof F.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",Y),typeof F.componentDidReceiveProps==="function"&&console.error("%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().",Y),typeof F.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",Y),typeof F.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",Y),A=F.props!==q,F.props!==void 0&&A&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",Y),F.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",Y,Y),typeof F.getSnapshotBeforeUpdate!=="function"||typeof F.componentDidUpdate==="function"||KA.has($)||(KA.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",g($))),typeof F.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Y),typeof F.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Y),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",Y),(A=F.state)&&(typeof A!=="object"||s0(A))&&console.error("%s.state: must be set to an object or null",Y),typeof F.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",Y),F=J.stateNode,F.props=q,F.state=J.memoizedState,F.refs={},NU(J),Y=$.contextType,F.context=typeof Y==="object"&&Y!==null?f0(Y):c3,F.state===q&&(Y=g($)||"Component",HA.has(Y)||(HA.add(Y),console.error("%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.",Y))),J.mode&R2&&p5.recordLegacyContextWarning(J,F),p5.recordUnsafeLifecycleWarnings(J,F),F.state=J.memoizedState,Y=$.getDerivedStateFromProps,typeof Y==="function"&&(qG(J,$,Y,q),F.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof F.getSnapshotBeforeUpdate==="function"||typeof F.UNSAFE_componentWillMount!=="function"&&typeof F.componentWillMount!=="function"||(Y=F.state,typeof F.componentWillMount==="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount==="function"&&F.UNSAFE_componentWillMount(),Y!==F.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m(J)||"Component"),nZ.enqueueReplaceState(F,F.state,null)),S9(J,q,F,G),C9(),F.state=J.memoizedState),typeof F.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&g5)!==x1&&(J.flags|=134217728),F=!0}else if(_===null){F=J.stateNode;var t=J.memoizedProps;A=x6($,t),F.props=A;var o=F.context;w=$.contextType,Y=c3,typeof w==="object"&&w!==null&&(Y=f0(w)),N=$.getDerivedStateFromProps,w=typeof N==="function"||typeof F.getSnapshotBeforeUpdate==="function",t=J.pendingProps!==t,w||typeof F.UNSAFE_componentWillReceiveProps!=="function"&&typeof F.componentWillReceiveProps!=="function"||(t||o!==Y)&&OY(J,F,q,Y),t3=!1;var c=J.memoizedState;F.state=c,S9(J,q,F,G),C9(),o=J.memoizedState,t||c!==o||t3?(typeof N==="function"&&(qG(J,$,N,q),o=J.memoizedState),(A=t3||RY(J,$,A,q,c,o,Y))?(w||typeof F.UNSAFE_componentWillMount!=="function"&&typeof F.componentWillMount!=="function"||(typeof F.componentWillMount==="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount==="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&g5)!==x1&&(J.flags|=134217728)):(typeof F.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&g5)!==x1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=o),F.props=q,F.state=o,F.context=Y,F=A):(typeof F.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&g5)!==x1&&(J.flags|=134217728),F=!1)}else{F=J.stateNode,CU(_,J),Y=J.memoizedProps,w=x6($,Y),F.props=w,N=J.pendingProps,c=F.context,o=$.contextType,A=c3,typeof o==="object"&&o!==null&&(A=f0(o)),t=$.getDerivedStateFromProps,(o=typeof t==="function"||typeof F.getSnapshotBeforeUpdate==="function")||typeof F.UNSAFE_componentWillReceiveProps!=="function"&&typeof F.componentWillReceiveProps!=="function"||(Y!==N||c!==A)&&OY(J,F,q,A),t3=!1,c=J.memoizedState,F.state=c,S9(J,q,F,G),C9();var q1=J.memoizedState;Y!==N||c!==q1||t3||_!==null&&_.dependencies!==null&&J$(_.dependencies)?(typeof t==="function"&&(qG(J,$,t,q),q1=J.memoizedState),(w=t3||RY(J,$,w,q,c,q1,A)||_!==null&&_.dependencies!==null&&J$(_.dependencies))?(o||typeof F.UNSAFE_componentWillUpdate!=="function"&&typeof F.componentWillUpdate!=="function"||(typeof F.componentWillUpdate==="function"&&F.componentWillUpdate(q,q1,A),typeof F.UNSAFE_componentWillUpdate==="function"&&F.UNSAFE_componentWillUpdate(q,q1,A)),typeof F.componentDidUpdate==="function"&&(J.flags|=4),typeof F.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof F.componentDidUpdate!=="function"||Y===_.memoizedProps&&c===_.memoizedState||(J.flags|=4),typeof F.getSnapshotBeforeUpdate!=="function"||Y===_.memoizedProps&&c===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=q1),F.props=q,F.state=q1,F.context=A,F=w):(typeof F.componentDidUpdate!=="function"||Y===_.memoizedProps&&c===_.memoizedState||(J.flags|=4),typeof F.getSnapshotBeforeUpdate!=="function"||Y===_.memoizedProps&&c===_.memoizedState||(J.flags|=1024),F=!1)}if(A=F,C$(_,J),Y=(J.flags&128)!==0,A||Y){if(A=J.stateNode,S1(J),Y&&typeof $.getDerivedStateFromError!=="function")$=null,y2=-1;else if($=bB(A),J.mode&R2){_0(!0);try{bB(A)}finally{_0(!1)}}J.flags|=1,_!==null&&Y?(J.child=o6(J,_.child,null,G),J.child=o6(J,null,$,G)):K2(_,J,$,G),J.memoizedState=A.state,_=J.child}else _=r4(_,J,G);return G=J.stateNode,F&&G.props!==q&&(S7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",m(J)||"a component"),S7=!0),_}function vY(_,J,$,q){return D6(),J.flags|=256,K2(_,J,$,q),J.child}function KG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
150
+ %s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=g(J)||"Unknown",RA[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),RA[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=g(J)||"Unknown",MA[J]||(console.error("%s: Function components do not support contextType.",J),MA[J]=!0))}function XG(_){return{baseLanes:_,cachePool:DH()}}function HG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=a2),_}function EY(_,J,$){var q,G=J.pendingProps;W(J)&&(J.flags|=128);var F=!1,Y=(J.flags&128)!==0;if((q=Y)||(q=_!==null&&_.memoizedState===null?!1:(m0.current&w_)!==0),q&&(F=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(J0){if(F?V3(J):k3(J),(_=w0)?($=$z(_,f5),$=$!==null&&$.data!==U8?$:null,$!==null&&(q={dehydrated:$,treeContext:IH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=OH($),q.return=J,J.child=q,Y2=J,w0=null)):$=null,$===null)throw eJ(J,_),P3(J);return lG($)?J.lanes=32:J.lanes=536870912,null}var A=G.children;if(G=G.fallback,F){k3(J);var w=J.mode;return A=S$({mode:"hidden",children:A},w),G=V6(G,w,$,null),A.return=J,G.return=J,A.sibling=G,J.child=A,G=J.child,G.memoizedState=XG($),G.childLanes=HG(_,q,$),J.memoizedState=JF,D9(null,G)}return V3(J),YG(J,A)}var N=_.memoizedState;if(N!==null){var t=N.dehydrated;if(t!==null){if(Y)J.flags&256?(V3(J),J.flags&=-257,J=WG(_,J,$)):J.memoizedState!==null?(k3(J),J.child=_.child,J.flags|=128,J=null):(k3(J),A=G.fallback,w=J.mode,G=S$({mode:"visible",children:G.children},w),A=V6(A,w,$,null),A.flags|=2,G.return=J,A.return=J,G.sibling=A,J.child=G,o6(J,_.child,null,$),G=J.child,G.memoizedState=XG($),G.childLanes=HG(_,q,$),J.memoizedState=JF,J=D9(null,G));else if(V3(J),PH(),($&536870912)!==0&&y$(J),lG(t)){if(q=t.nextSibling&&t.nextSibling.dataset,q){A=q.dgst;var o=q.msg;w=q.stck;var c=q.cstck}F=o,q=A,G=w,t=c,A=F,w=t,A=A?Error(A):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),A.stack=G||"",A.digest=q,q=w===void 0?null:w,G={value:A,source:null,stack:q},typeof q==="string"&&vZ.set(A,G),O9(G),J=WG(_,J,$)}else if(r0||g8(_,J,$,!1),q=($&_.childLanes)!==0,r0||q){if(q=L0,q!==null&&(G=u4(q,$),G!==0&&G!==N.retryLane))throw N.retryLane=G,M2(_,G),k0(q,_,G),_F;cG(t)||v$(),J=WG(_,J,$)}else cG(t)?(J.flags|=192,J.child=_.child,J=null):(_=N.treeContext,w0=q5(t.nextSibling),Y2=J,J0=!0,l3=null,f4=!1,F5=null,f5=!1,_!==null&&fH(J,_),J=YG(J,G.children),J.flags|=4096);return J}}if(F)return k3(J),A=G.fallback,w=J.mode,c=_.child,t=c.sibling,G=g4(c,{mode:"hidden",children:G.children}),G.subtreeFlags=c.subtreeFlags&65011712,t!==null?A=g4(t,A):(A=V6(A,w,$,null),A.flags|=2),A.return=J,G.return=J,G.sibling=A,J.child=G,D9(null,G),G=J.child,A=_.child.memoizedState,A===null?A=XG($):(w=A.cachePool,w!==null?(c=p0._currentValue,w=w.parent!==c?{parent:c,pool:c}:w):w=DH(),A={baseLanes:A.baseLanes|$,cachePool:w}),G.memoizedState=A,G.childLanes=HG(_,q,$),J.memoizedState=JF,D9(_.child,G);return N!==null&&($&62914560)===$&&($&_.lanes)!==0&&y$(J),V3(J),$=_.child,_=$.sibling,$=g4($,{mode:"visible",children:G.children}),$.return=J,$.sibling=null,_!==null&&(q=J.deletions,q===null?(J.deletions=[_],J.flags|=16):q.push(_)),J.child=$,J.memoizedState=null,$}function YG(_,J){return J=S$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function S$(_,J){return _=M(22,_,null,J),_.lanes=0,_}function WG(_,J,$){return o6(J,_.child,null,$),_=YG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function bY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),TU(_.return,J,$)}function zG(_,J,$,q,G,F){var Y=_.memoizedState;Y===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:F}:(Y.isBackwards=J,Y.rendering=null,Y.renderingStartTime=0,Y.last=q,Y.tail=$,Y.tailMode=G,Y.treeForkCount=F)}function uY(_,J,$){var q=J.pendingProps,G=q.revealOrder,F=q.tail,Y=q.children,A=m0.current;if((q=(A&w_)!==0)?(A=A&f7|w_,J.flags|=128):A&=f7,d(m0,A,J),A=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!OA[A])if(OA[A]=!0,G==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(G==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof G==="string")switch(G.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',G,G.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',G,G.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',G);if(A=F==null?"null":F,!NQ[A])if(F==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")NQ[A]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else F!=="visible"&&F!=="collapsed"&&F!=="hidden"?(NQ[A]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',F)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(NQ[A]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',F));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&Y!==void 0&&Y!==null&&Y!==!1)if(s0(Y)){for(A=0;A<Y.length;A++)if(!pH(Y[A],A))break _}else if(A=u(Y),typeof A==="function"){if(A=A.call(Y))for(var w=A.next(),N=0;!w.done;w=A.next()){if(!pH(w.value,N))break _;N++}}else console.error('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?',G);if(K2(_,J,Y,$),J0?(f3(),Y=Z_):Y=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&bY(_,$,J);else if(_.tag===19)bY(_,$,J);else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===J)break _;for(;_.sibling===null;){if(_.return===null||_.return===J)break _;_=_.return}_.sibling.return=_.return,_=_.sibling}switch(G){case"forwards":$=J.child;for(G=null;$!==null;)_=$.alternate,_!==null&&Y$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),zG(J,!1,G,$,F,Y);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&Y$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}zG(J,!0,$,null,F,Y);break;case"together":zG(J,!1,null,null,void 0,Y);break;default:J.memoizedState=null}return J.child}function r4(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),y2=-1,e3|=J.lanes,($&J.childLanes)===0)if(_!==null){if(g8(_,J,$,!1),($&J.childLanes)===0)return null}else return null;if(_!==null&&J.child!==_.child)throw Error("Resuming work not yet implemented.");if(J.child!==null){_=J.child,$=g4(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=g4(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function BG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&J$(_)?!0:!1}function SO(_,J,$){switch(J.tag){case 3:E(J,J.stateNode.containerInfo),N3(J,p0,_.memoizedState.cache),D6();break;case 27:case 5:n(J);break;case 4:E(J,J.stateNode.containerInfo);break;case 10:N3(J,J.type,J.memoizedProps.value);break;case 12:($&J.childLanes)!==0&&(J.flags|=4),J.flags|=2048;var q=J.stateNode;q.effectDuration=-0,q.passiveEffectDuration=-0;break;case 31:if(J.memoizedState!==null)return J.flags|=128,VU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return V3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return EY(_,J,$);return V3(J),_=r4(_,J,$),_!==null?_.sibling:null}V3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(g8(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return uY(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),d(m0,m0.current,J),q)break;else return null;case 22:return J.lanes=0,jY(_,J,$,J.pendingProps);case 24:N3(J,p0,_.memoizedState.cache)}return r4(_,J,$)}function AG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=YU(J.type,J.key,J.pendingProps,J._debugOwner||null,J.mode,J.lanes),$._debugStack=J._debugStack,$._debugTask=J._debugTask;var q=J.return;if(q===null)throw Error("Cannot swap the root fiber.");if(_.alternate=null,J.alternate=null,$.index=J.index,$.sibling=J.sibling,$.return=J.return,$.ref=J.ref,$._debugInfo=J._debugInfo,J===q.child)q.child=$;else{var G=q.child;if(G===null)throw Error("Expected parent to have a child.");for(;G.sibling!==J;)if(G=G.sibling,G===null)throw Error("Expected to find the previous sibling.");G.sibling=$}return J=q.deletions,J===null?(q.deletions=[_],q.flags|=16):J.push(_),$.flags|=2,$}if(_!==null)if(_.memoizedProps!==J.pendingProps||J.type!==_.type)r0=!0;else{if(!BG(_,$)&&(J.flags&128)===0)return r0=!1,SO(_,J,$);r0=(_.flags&131072)!==0?!0:!1}else{if(r0=!1,q=J0)f3(),q=(J.flags&1048576)!==0;q&&(q=J.index,f3(),wH(J,Z_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=C3(J.elementType),J.type=_,typeof _==="function")HU(_)?(q=x6(_,q),J.tag=1,J.type=_=j6(_),J=yY(null,J,_,q,$)):(J.tag=0,KG(J,_),J.type=_=j6(_),J=FG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===a9){J.tag=11,J.type=_=XU(_),J=NY(null,J,_,q,$);break _}else if(G===a$){J.tag=14,J=CY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===U5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=g(_)||_,Error("Element type is invalid. Received a promise that resolves to: "+$+". Lazy element type must resolve to a class or function."+J)}return J;case 0:return FG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=x6(q,J.pendingProps),yY(_,J,q,G,$);case 3:_:{if(E(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var F=J.memoizedState;G=F.element,CU(_,J),S9(J,q,null,$);var Y=J.memoizedState;if(q=Y.cache,N3(J,p0,q),q!==F.cache&&RU(J,[p0],$,!0),C9(),q=Y.element,F.isDehydrated)if(F={element:q,isDehydrated:!1,cache:Y.cache},J.updateQueue.baseState=F,J.memoizedState=F,J.flags&256){J=vY(_,J,q,$);break _}else if(q!==G){G=e2(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),O9(G),J=vY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}w0=q5(_.firstChild),Y2=J,J0=!0,l3=null,f4=!1,F5=null,f5=!0,$=tB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(D6(),q===G){J=r4(_,J,$);break _}K2(_,J,q,$)}J=J.child}return J;case 26:return C$(_,J),_===null?($=Fz(J.type,null,J.pendingProps,null))?J.memoizedState=$:J0||($=J.type,_=J.pendingProps,q=y(u3.current),q=x$(q).createElement($),q[H2]=J,q[V2]=_,X2(q,$,_),V1(q),J.stateNode=q):J.memoizedState=Fz(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return n(J),_===null&&J0&&(q=y(u3.current),G=r(),q=J.stateNode=Gz(J.type,J.pendingProps,q,G,!1),f4||(G=aW(q,J.type,J.pendingProps,G),G!==null&&(k6(J,0).serverProps=G)),Y2=J,f5=!0,G=w0,E3(J.type)?(fF=G,w0=q5(q.firstChild)):w0=G),K2(_,J,J.pendingProps.children,$),C$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&J0&&(F=r(),q=z9(J.type,F.ancestorInfo),G=w0,(Y=!G)||(Y=Aw(G,J.type,J.pendingProps,f5),Y!==null?(J.stateNode=Y,f4||(F=aW(Y,J.type,J.pendingProps,F),F!==null&&(k6(J,0).serverProps=F)),Y2=J,w0=q5(Y.firstChild),f5=!1,F=!0):F=!1,Y=!F),Y&&(q&&eJ(J,G),P3(J))),n(J),G=J.type,F=J.pendingProps,Y=_!==null?_.memoizedProps:null,q=F.children,gG(G,F)?q=null:Y!==null&&gG(G,Y)&&(J.flags|=32),J.memoizedState!==null&&(G=DU(_,J,RO,null,null,$),m_._currentValue=G),C$(_,J),K2(_,J,q,$),J.child;case 6:return _===null&&J0&&($=J.pendingProps,_=r(),q=_.ancestorInfo.current,$=q!=null?I3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=w0,(q=!_)||(q=Lw(_,J.pendingProps,f5),q!==null?(J.stateNode=q,Y2=J,w0=null,q=!0):q=!1,q=!q),q&&($&&eJ(J,_),P3(J))),null;case 13:return EY(_,J,$);case 4:return E(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=o6(J,null,q,$):K2(_,J,q,$),J.child;case 11:return NY(_,J,J.type,J.pendingProps,$);case 7:return K2(_,J,J.pendingProps,$),J.child;case 8:return K2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,K2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,F=G.value,"value"in G||wA||(wA=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),N3(J,q,F),K2(_,J,G.children,$),J.child;case 9:return G=J.type._context,q=J.pendingProps.children,typeof q!=="function"&&console.error("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."),y6(J),G=f0(G),q=pZ(q,G,void 0),J.flags|=1,K2(_,J,q,$),J.child;case 14:return CY(_,J,J.type,J.pendingProps,$);case 15:return SY(_,J,J.type,J.pendingProps,$);case 19:return uY(_,J,$);case 31:return CO(_,J,$);case 22:return jY(_,J,$,J.pendingProps);case 24:return y6(J),q=f0(p0),_===null?(G=fU(),G===null&&(G=L0,F=OU(),G.pooledCache=F,v6(F),F!==null&&(G.pooledCacheLanes|=$),G=F),J.memoizedState={parent:q,cache:G},NU(J),N3(J,p0,G)):((_.lanes&$)!==0&&(CU(_,J),S9(J,null,null,$),C9()),G=_.memoizedState,F=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),N3(J,p0,q)):(q=F.cache,N3(J,p0,q),q!==G.cache&&RU(J,[p0],$,!0))),K2(_,J,J.pendingProps.children,$),J.child;case 29:throw J.pendingProps}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function d4(_){_.flags|=4}function LG(_,J,$,q,G){if(J=(_.mode&aI)!==x1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(AW())_.flags|=8192;else throw t6=RQ,lZ}else _.flags&=-16777217}function xY(_,J){if(J.type!=="stylesheet"||(J.state.loading&j5)!==F8)_.flags&=-16777217;else if(_.flags|=16777216,!Wz(J))if(AW())_.flags|=8192;else throw t6=RQ,lZ}function j$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?B2():536870912,_.lanes|=J,$8|=J)}function y9(_,J){if(!J0)switch(_.tailMode){case"hidden":J=_.tail;for(var $=null;J!==null;)J.alternate!==null&&($=J),J=J.sibling;$===null?_.tail=null:$.sibling=null;break;case"collapsed":$=_.tail;for(var q=null;$!==null;)$.alternate!==null&&(q=$),$=$.sibling;q===null?J||_.tail===null?_.tail=null:_.tail.sibling=null:q.sibling=null}}function T0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&d1)!==x1){for(var{selfBaseDuration:G,child:F}=_;F!==null;)$|=F.lanes|F.childLanes,q|=F.subtreeFlags&65011712,q|=F.flags&65011712,G+=F.treeBaseDuration,F=F.sibling;_.treeBaseDuration=G}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags&65011712,q|=G.flags&65011712,G.return=_,G=G.sibling;else if((_.mode&d1)!==x1){G=_.actualDuration,F=_.selfBaseDuration;for(var Y=_.child;Y!==null;)$|=Y.lanes|Y.childLanes,q|=Y.subtreeFlags,q|=Y.flags,G+=Y.actualDuration,F+=Y.treeBaseDuration,Y=Y.sibling;_.actualDuration=G,_.treeBaseDuration=F}else for(G=_.child;G!==null;)$|=G.lanes|G.childLanes,q|=G.subtreeFlags,q|=G.flags,G.return=_,G=G.sibling;return _.subtreeFlags|=q,_.childLanes=$,J}function jO(_,J,$){var q=J.pendingProps;switch(AU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return T0(J),null;case 1:return T0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),c4(p0,J),v(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)m8(J)?(MU(),d4(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,LU());return T0(J),null;case 26:var{type:G,memoizedState:F}=J;return _===null?(d4(J),F!==null?(T0(J),xY(J,F)):(T0(J),LG(J,G,null,q,$))):F?F!==_.memoizedState?(d4(J),T0(J),xY(J,F)):(T0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&d4(J),T0(J),LG(J,G,_,q,$)),null;case 27:if(e(J),$=y(u3.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&d4(J);else{if(!q){if(J.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 T0(J),null}_=r(),m8(J)?NH(J,_):(_=Gz(G,q,$,_,!0),J.stateNode=_,d4(J))}return T0(J),null;case 5:if(e(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&d4(J);else{if(!q){if(J.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 T0(J),null}var Y=r();if(m8(J))NH(J,Y);else{switch(F=y(u3.current),z9(G,Y.ancestorInfo),Y=Y.context,F=x$(F),Y){case b7:F=F.createElementNS(G7,G);break;case dQ:F=F.createElementNS(JQ,G);break;default:switch(G){case"svg":F=F.createElementNS(G7,G);break;case"math":F=F.createElementNS(JQ,G);break;case"script":F=F.createElement("div"),F.innerHTML="<script></script>",F=F.removeChild(F.firstChild);break;case"select":F=typeof q.is==="string"?F.createElement("select",{is:q.is}):F.createElement("select"),q.multiple?F.multiple=!0:q.size&&(F.size=q.size);break;default:F=typeof q.is==="string"?F.createElement(G,{is:q.is}):F.createElement(G),G.indexOf("-")===-1&&(G!==G.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",G),Object.prototype.toString.call(F)!=="[object HTMLUnknownElement]"||h5.call(dA,G)||(dA[G]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",G)))}}F[H2]=J,F[V2]=q;_:for(Y=J.child;Y!==null;){if(Y.tag===5||Y.tag===6)F.appendChild(Y.stateNode);else if(Y.tag!==4&&Y.tag!==27&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===J)break _;for(;Y.sibling===null;){if(Y.return===null||Y.return===J)break _;Y=Y.return}Y.sibling.return=Y.return,Y=Y.sibling}J.stateNode=F;_:switch(X2(F,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&d4(J)}}return T0(J),LG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&d4(J);else{if(typeof q!=="string"&&J.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.");if(_=y(u3.current),$=r(),m8(J)){if(_=J.stateNode,$=J.memoizedProps,G=!f4,q=null,F=Y2,F!==null)switch(F.tag){case 3:G&&(G=qz(_,$,q),G!==null&&(k6(J,0).serverProps=G));break;case 27:case 5:q=F.memoizedProps,G&&(G=qz(_,$,q),G!==null&&(k6(J,0).serverProps=G))}_[H2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||cW(_.nodeValue,$)?!0:!1,_||P3(J,!0)}else G=$.ancestorInfo.current,G!=null&&I3(q,G.tag,$.ancestorInfo.implicitRootScope),_=x$(_).createTextNode(q),_[H2]=J,J.stateNode=_}return T0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=m8(J),$!==null){if(_===null){if(!q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(_=J.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");_[H2]=J,T0(J),(J.mode&d1)!==x1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else MU(),D6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,T0(J),(J.mode&d1)!==x1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=LU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return $5(J),J;return $5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return T0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,F=m8(J),G!==null&&G.dehydrated!==null){if(_===null){if(!F)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(F=J.memoizedState,F=F!==null?F.dehydrated:null,!F)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");F[H2]=J,T0(J),(J.mode&d1)!==x1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else MU(),D6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,T0(J),(J.mode&d1)!==x1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=LU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return $5(J),J;return $5(J),null}}if($5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&d1)!==x1&&f9(J),J;return $=q!==null,_=_!==null&&_.memoizedState!==null,$&&(q=J.child,G=null,q.alternate!==null&&q.alternate.memoizedState!==null&&q.alternate.memoizedState.cachePool!==null&&(G=q.alternate.memoizedState.cachePool.pool),F=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(F=q.memoizedState.cachePool.pool),F!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),j$(J,J.updateQueue),T0(J),(J.mode&d1)!==x1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return v(J),_===null&&vG(J.stateNode.containerInfo),T0(J),null;case 10:return c4(J.type,J),T0(J),null;case 19:if($1(m0,J),q=J.memoizedState,q===null)return T0(J),null;if(G=(J.flags&128)!==0,F=q.rendering,F===null)if(G)y9(q,!1);else{if(j0!==Z3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(F=Y$(_),F!==null){J.flags|=128,y9(q,!1),_=F.updateQueue,J.updateQueue=_,j$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)RH($,_),$=$.sibling;return d(m0,m0.current&f7|w_,J),J0&&p4(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&Q2()>yQ&&(J.flags|=128,G=!0,y9(q,!1),J.lanes=4194304)}else{if(!G)if(_=Y$(F),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,j$(J,_),y9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!F.alternate&&!J0)return T0(J),null}else 2*Q2()-q.renderingStartTime>yQ&&$!==536870912&&(J.flags|=128,G=!0,y9(q,!1),J.lanes=4194304);q.isBackwards?(F.sibling=J.child,J.child=F):(_=q.last,_!==null?_.sibling=F:J.child=F,q.last=F)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=Q2(),_.sibling=null,$=m0.current,$=G?$&f7|w_:$&f7,d(m0,$,J),J0&&p4(J,q.treeForkCount),_;return T0(J),null;case 22:case 23:return $5(J),jU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(T0(J),J.subtreeFlags&6&&(J.flags|=8192)):T0(J),$=J.updateQueue,$!==null&&j$(J,$.retryQueue),$=null,_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),q=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(q=J.memoizedState.cachePool.pool),q!==$&&(J.flags|=2048),_!==null&&$1(a6,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),c4(p0,J),T0(J),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+J.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function VO(_,J){switch(AU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&d1)!==x1&&f9(J),J):null;case 3:return c4(p0,J),v(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return e(J),null;case 31:if(J.memoizedState!==null){if($5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");D6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&d1)!==x1&&f9(J),J):null;case 13:if($5(J),_=J.memoizedState,_!==null&&_.dehydrated!==null){if(J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");D6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&d1)!==x1&&f9(J),J):null;case 19:return $1(m0,J),null;case 4:return v(J),null;case 10:return c4(J.type,J),null;case 22:case 23:return $5(J),jU(J),_!==null&&$1(a6,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&d1)!==x1&&f9(J),J):null;case 24:return c4(p0,J),null;case 25:return null;default:return null}}function hY(_,J){switch(AU(J),J.tag){case 3:c4(p0,J),v(J);break;case 26:case 27:case 5:e(J);break;case 4:v(J);break;case 31:J.memoizedState!==null&&$5(J);break;case 13:$5(J);break;case 19:$1(m0,J);break;case 10:c4(J.type,J);break;case 22:case 23:$5(J),jU(J),_!==null&&$1(a6,J);break;case 24:c4(p0,J)}}function H4(_){return(_.mode&d1)!==x1}function mY(_,J){H4(_)?(X4(),v9(J,_),K4()):v9(J,_)}function MG(_,J,$){H4(_)?(X4(),d8($,_,J),K4()):d8($,_,J)}function v9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&v2)!==wQ&&(y7=!0),q=W1(J,eI,$),(_&v2)!==wQ&&(y7=!1),q!==void 0&&typeof q!=="function")){var F=void 0;F=($.tag&X5)!==0?"useLayoutEffect":($.tag&v2)!==0?"useInsertionEffect":"useEffect";var Y=void 0;Y=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
151
151
 
152
152
  It looks like you wrote `+F+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
153
153
 
@@ -160,11 +160,11 @@ It looks like you wrote `+F+`(async () => ...) or returned a Promise. Instead, w
160
160
  fetchData();
161
161
  }, [someId]); // Or [] if effect doesn't need props or state
162
162
 
163
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,Y1(J,function(z,w){console.error("%s must not return anything besides a function, which is used for clean-up.%s",z,w)},F,H)}$=$.next}while($!==G)}}catch(z){K0(J,J.return,z)}}function r8(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var F=G.next;q=F;do{if((q.tag&_)===_){var H=q.inst,z=H.destroy;z!==void 0&&(H.destroy=void 0,(_&v2)!==RQ&&(k7=!0),G=J,Y1(G,iI,G,$,z),(_&v2)!==RQ&&(k7=!1))}q=q.next}while(q!==F)}}catch(w){K0(J,J.return,w)}}function EY(_,J){K4(_)?(F4(),k9(J,_),Z4()):k9(J,_)}function TG(_,J,$){K4(_)?(F4(),r8($,_,J),Z4()):r8($,_,J)}function bY(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||j7||($.props!==_.memoizedProps&&console.error("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.",t(_)||"instance"),$.state!==_.memoizedState&&console.error("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.",t(_)||"instance"));try{Y1(_,uH,J,$)}catch(q){K0(_,_.return,q)}}}function fO(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function PO(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||j7||(J.props!==_.memoizedProps&&console.error("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.",t(_)||"instance"),J.state!==_.memoizedState&&console.error("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.",t(_)||"instance"));try{var G=u6(_.type,$),F=Y1(_,fO,J,G,q);$=Lz,F!==void 0||$.has(_.type)||($.add(_.type),Y1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",t(_))})),J.__reactInternalSnapshotBeforeUpdate=F}catch(H){K0(_,_.return,H)}}function xY(_,J,$){$.props=u6(_.type,_.memoizedProps),$.state=_.memoizedState,K4(_)?(F4(),Y1(_,bB,_,J,$),Z4()):Y1(_,bB,_,J,$)}function NO(_){var J=_.ref;if(J!==null){switch(_.tag){case 26:case 27:case 5:var $=_.stateNode;break;case 30:$=_.stateNode;break;default:$=_.stateNode}if(typeof J==="function")if(K4(_))try{F4(),_.refCleanup=J($)}finally{Z4()}else _.refCleanup=J($);else typeof J==="string"?console.error("String refs are no longer supported."):J.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",t(_)),J.current=$}}function y9(_,J){try{Y1(_,NO,_)}catch($){K0(_,J,$)}}function X4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(K4(_))try{F4(),Y1(_,q)}finally{Z4(_)}else Y1(_,q)}catch(G){K0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(K4(_))try{F4(),Y1(_,$,null)}finally{Z4(_)}else Y1(_,$,null)}catch(G){K0(_,J,G)}else $.current=null}function uY(_,J,$,q){var G=_.memoizedProps,F=G.id,H=G.onCommit;G=G.onRender,J=J===null?"mount":"update",AQ&&(J="nested-update"),typeof G==="function"&&G(F,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof H==="function"&&H(F,J,q,$)}function jO(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",AQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function hY(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{Y1(_,oO,q,J,$,_)}catch(G){K0(_,_.return,G)}}function RG(_,J,$){try{Y1(_,eO,_.stateNode,_.type,$,J,_)}catch(q){K0(_,_.return,q)}}function mY(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&y3(_.type)||_.tag===4}function OG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||mY(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&y3(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function wG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(iW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(iW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=u4));else if(q!==4&&(q===27&&y3(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(wG(_,J,$),_=_.sibling;_!==null;)wG(_,J,$),_=_.sibling}function C$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&y3(_.type)&&($=_.stateNode),_=_.child,_!==null))for(C$(_,J,$),_=_.sibling;_!==null;)C$(_,J,$),_=_.sibling}function CO(_){for(var J,$=_.return;$!==null;){if(mY($)){J=$;break}$=$.return}if(J==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(J.tag){case 27:J=J.stateNode,$=OG(_),C$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(dW($),J.flags&=-33),J=OG(_),C$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=OG(_),wG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function gY(_){var{stateNode:J,memoizedProps:$}=_;try{Y1(_,Bw,_.type,$,J,_)}catch(q){K0(_,_.return,q)}}function pY(_,J){return J.tag===31?(J=J.memoizedState,_.memoizedState!==null&&J===null):J.tag===13?(_=_.memoizedState,J=J.memoizedState,_!==null&&_.dehydrated!==null&&(J===null||J.dehydrated===null)):J.tag===3?_.memoizedState.isDehydrated&&(J.flags&256)===0:!1}function VO(_,J){if(_=_.containerInfo,OF=aQ,_=qH(_),UU(_)){if("selectionStart"in _)var $={start:_.selectionStart,end:_.selectionEnd};else _:{$=($=_.ownerDocument)&&$.defaultView||window;var q=$.getSelection&&$.getSelection();if(q&&q.rangeCount!==0){$=q.anchorNode;var{anchorOffset:G,focusNode:F}=q;q=q.focusOffset;try{$.nodeType,F.nodeType}catch(L1){$=null;break _}var H=0,z=-1,w=-1,N=0,i=0,s=_,c=null;J:for(;;){for(var q1;;){if(s!==$||G!==0&&s.nodeType!==3||(z=H+G),s!==F||q!==0&&s.nodeType!==3||(w=H+q),s.nodeType===3&&(H+=s.nodeValue.length),(q1=s.firstChild)===null)break;c=s,s=q1}for(;;){if(s===_)break J;if(c===$&&++N===G&&(z=H),c===F&&++i===q&&(w=H),(q1=s.nextSibling)!==null)break;s=c,c=s.parentNode}s=q1}$=z===-1||w===-1?null:{start:z,end:w}}else $=null}$=$||{start:0,end:0}}else $=null;wF={focusedElem:_,selectionRange:$},aQ=!1;for(q2=J;q2!==null;)if(J=q2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,q2=_;else for(;q2!==null;){switch(_=J=q2,$=_.alternate,G=_.flags,_.tag){case 0:if((G&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)G=_[$],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&$!==null&&PO(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)pG(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":pG(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&1024)!==0)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(_=J.sibling,_!==null){_.return=J.return,q2=_;break}q2=J.return}}function cY(_,J,$){var q=e2(),G=Q4(),F=U4(),H=G4(),z=$.flags;switch($.tag){case 0:case 11:case 15:H4(_,$),z&4&&vY($,K5|I5);break;case 1:if(H4(_,$),z&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||j7||(_.props!==$.memoizedProps&&console.error("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.",t($)||"instance"),_.state!==$.memoizedState&&console.error("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.",t($)||"instance")),K4($)?(F4(),Y1($,cZ,$,_),Z4()):Y1($,cZ,$,_);else{var w=u6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||j7||(_.props!==$.memoizedProps&&console.error("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.",t($)||"instance"),_.state!==$.memoizedState&&console.error("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.",t($)||"instance")),K4($)?(F4(),Y1($,yB,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate),Z4()):Y1($,yB,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate)}z&64&&bY($),z&512&&y9($,$.return);break;case 3:if(J=p4(),H4(_,$),z&64&&(z=$.updateQueue,z!==null)){if(w=null,$.child!==null)switch($.child.tag){case 27:case 5:w=$.child.stateNode;break;case 1:w=$.child.stateNode}try{Y1($,uH,z,w)}catch(i){K0($,$.return,i)}}_.effectDuration+=J$(J);break;case 27:J===null&&z&4&&gY($);case 26:case 5:if(H4(_,$),J===null){if(z&4)hY($);else if(z&64){_=$.type,J=$.memoizedProps,w=$.stateNode;try{Y1($,nO,w,_,J,$)}catch(i){K0($,$.return,i)}}}z&512&&y9($,$.return);break;case 12:if(z&4){z=p4(),H4(_,$),_=$.stateNode,_.effectDuration+=O9(z);try{Y1($,uY,$,J,c3,_.effectDuration)}catch(i){K0($,$.return,i)}}else H4(_,$);break;case 31:H4(_,$),z&4&&dY(_,$);break;case 13:H4(_,$),z&4&&iY(_,$),z&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(z=uO.bind(null,$),Hw(_,z))));break;case 22:if(z=$.memoizedState!==null||q3,!z){J=J!==null&&J.memoizedState!==null||r0,w=q3;var N=r0;q3=z,(r0=J)&&!N?(Y4(_,$,($.subtreeFlags&8772)!==0),($.mode&d1)!==u1&&0<=k1&&0<=b1&&0.05<b1-k1&&rJ($,k1,b1)):H4(_,$),q3=w,r0=N}break;case 30:break;default:H4(_,$)}($.mode&d1)!==u1&&0<=k1&&0<=b1&&((k0||0.05<C0)&&J4($,k1,b1,C0,f0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<b1-k1&&(pY($.return.alternate,$.return)||_4($,k1,b1,"Mount"))),_5(q),q4(G),f0=F,k0=H}function lY(_){var J=_.alternate;J!==null&&(_.alternate=null,lY(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&T1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function r4(_,J,$){for($=$.child;$!==null;)rY(_,J,$),$=$.sibling}function rY(_,J,$){if(T2&&typeof T2.onCommitFiberUnmount==="function")try{T2.onCommitFiberUnmount(Q7,$)}catch(N){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",N))}var q=e2(),G=Q4(),F=U4(),H=G4();switch($.tag){case 26:r0||X4($,J),r4(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:r0||X4($,J);var z=d0,w=d2;y3($.type)&&(d0=$.stateNode,d2=!1),r4(_,J,$),Y1($,p9,$.stateNode),d0=z,d2=w;break;case 5:r0||X4($,J);case 6:if(z=d0,w=d2,d0=null,r4(_,J,$),d0=z,d2=w,d0!==null)if(d2)try{Y1($,$w,d0,$.stateNode)}catch(N){K0($,J,N)}else try{Y1($,Jw,d0,$.stateNode)}catch(N){K0($,J,N)}break;case 18:d0!==null&&(d2?(_=d0,aW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),e8(_)):aW(d0,$.stateNode));break;case 4:z=d0,w=d2,d0=$.stateNode.containerInfo,d2=!0,r4(_,J,$),d0=z,d2=w;break;case 0:case 11:case 14:case 15:r8(v2,$,J),r0||MG($,J,K5),r4(_,J,$);break;case 1:r0||(X4($,J),z=$.stateNode,typeof z.componentWillUnmount==="function"&&xY($,J,z)),r4(_,J,$);break;case 21:r4(_,J,$);break;case 22:r0=(z=r0)||$.memoizedState!==null,r4(_,J,$),r0=z;break;default:r4(_,J,$)}($.mode&d1)!==u1&&0<=k1&&0<=b1&&(k0||0.05<C0)&&J4($,k1,b1,C0,f0),_5(q),q4(G),f0=F,k0=H}function dY(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{Y1(J,Ww,_)}catch($){K0(J,J.return,$)}}}function iY(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{Y1(J,Aw,_)}catch($){K0(J,J.return,$)}}function SO(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new Mz),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new Mz),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function V$(_,J){var $=SO(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),T4)if(C7!==null&&V7!==null)x9(V7,C7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=hO.bind(null,_,q);q.then(G,G)}})}function l2(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,F=J,H=$[q],z=e2(),w=F;_:for(;w!==null;){switch(w.tag){case 27:if(y3(w.type)){d0=w.stateNode,d2=!1;break _}break;case 5:d0=w.stateNode,d2=!1;break _;case 3:case 4:d0=w.stateNode.containerInfo,d2=!0;break _}w=w.return}if(d0===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");rY(G,F,H),d0=null,d2=!1,(H.mode&d1)!==u1&&0<=k1&&0<=b1&&0.05<b1-k1&&_4(H,k1,b1,"Unmount"),_5(z),G=H,F=G.alternate,F!==null&&(F.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)aY(J,_),J=J.sibling}function aY(_,J){var $=e2(),q=Q4(),G=U4(),F=G4(),H=_.alternate,z=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:l2(J,_),r2(_),z&4&&(r8(v2|I5,_,_.return),k9(v2|I5,_),MG(_,_.return,K5|I5));break;case 1:if(l2(J,_),r2(_),z&512&&(r0||H===null||X4(H,H.return)),z&64&&q3&&(z=_.updateQueue,z!==null&&(H=z.callbacks,H!==null))){var w=z.shared.hiddenCallbacks;z.shared.hiddenCallbacks=w===null?H:w.concat(H)}break;case 26:if(w=g5,l2(J,_),r2(_),z&512&&(r0||H===null||X4(H,H.return)),z&4){var N=H!==null?H.memoizedState:null;if(z=_.memoizedState,H===null)if(z===null)if(_.stateNode===null){_:{z=_.type,H=_.memoizedProps,w=w.ownerDocument||w;J:switch(z){case"title":if(N=w.getElementsByTagName("title")[0],!N||N[s9]||N[X2]||N.namespaceURI===U7||N.hasAttribute("itemprop"))N=w.createElement(z),w.head.insertBefore(N,w.querySelector("head > title"));K2(N,z,H),N[X2]=_,S1(N),z=N;break _;case"link":var i=UA("link","href",w).get(z+(H.href||""));if(i){for(var s=0;s<i.length;s++)if(N=i[s],N.getAttribute("href")===(H.href==null||H.href===""?null:H.href)&&N.getAttribute("rel")===(H.rel==null?null:H.rel)&&N.getAttribute("title")===(H.title==null?null:H.title)&&N.getAttribute("crossorigin")===(H.crossOrigin==null?null:H.crossOrigin)){i.splice(s,1);break J}}N=w.createElement(z),K2(N,z,H),w.head.appendChild(N);break;case"meta":if(i=UA("meta","content",w).get(z+(H.content||""))){for(s=0;s<i.length;s++)if(N=i[s],V1(H.content,"content"),N.getAttribute("content")===(H.content==null?null:""+H.content)&&N.getAttribute("name")===(H.name==null?null:H.name)&&N.getAttribute("property")===(H.property==null?null:H.property)&&N.getAttribute("http-equiv")===(H.httpEquiv==null?null:H.httpEquiv)&&N.getAttribute("charset")===(H.charSet==null?null:H.charSet)){i.splice(s,1);break J}}N=w.createElement(z),K2(N,z,H),w.head.appendChild(N);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+z+'". This is a bug in React.')}N[X2]=_,S1(N),z=N}_.stateNode=z}else GA(w,_.type,_.stateNode);else _.stateNode=qA(w,z,_.memoizedProps);else N!==z?(N===null?H.stateNode!==null&&(H=H.stateNode,H.parentNode.removeChild(H)):N.count--,z===null?GA(w,_.type,_.stateNode):qA(w,z,_.memoizedProps)):z===null&&_.stateNode!==null&&RG(_,_.memoizedProps,H.memoizedProps)}break;case 27:l2(J,_),r2(_),z&512&&(r0||H===null||X4(H,H.return)),H!==null&&z&4&&RG(_,_.memoizedProps,H.memoizedProps);break;case 5:if(l2(J,_),r2(_),z&512&&(r0||H===null||X4(H,H.return)),_.flags&32){w=_.stateNode;try{Y1(_,dW,w)}catch(w1){K0(_,_.return,w1)}}z&4&&_.stateNode!=null&&(w=_.memoizedProps,RG(_,w,H!==null?H.memoizedProps:w)),z&1024&&($F=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(l2(J,_),r2(_),z&4){if(_.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.");z=_.memoizedProps,H=H!==null?H.memoizedProps:z,w=_.stateNode;try{Y1(_,_w,w,H,z)}catch(w1){K0(_,_.return,w1)}}break;case 3:if(w=p4(),rQ=null,N=g5,g5=x$(J.containerInfo),l2(J,_),g5=N,r2(_),z&4&&H!==null&&H.memoizedState.isDehydrated)try{Y1(_,Yw,J.containerInfo)}catch(w1){K0(_,_.return,w1)}$F&&($F=!1,sY(_)),J.effectDuration+=J$(w);break;case 4:z=g5,g5=x$(_.stateNode.containerInfo),l2(J,_),r2(_),g5=z;break;case 12:z=p4(),l2(J,_),r2(_),_.stateNode.effectDuration+=O9(z);break;case 31:l2(J,_),r2(_),z&4&&(z=_.updateQueue,z!==null&&(_.updateQueue=null,V$(_,z)));break;case 13:l2(J,_),r2(_),_.child.flags&8192&&_.memoizedState!==null!==(H!==null&&H.memoizedState!==null)&&(SQ=$2()),z&4&&(z=_.updateQueue,z!==null&&(_.updateQueue=null,V$(_,z)));break;case 22:w=_.memoizedState!==null;var c=H!==null&&H.memoizedState!==null,q1=q3,L1=r0;if(q3=q1||w,r0=L1||c,l2(J,_),r0=L1,q3=q1,c&&!w&&!q1&&!L1&&(_.mode&d1)!==u1&&0<=k1&&0<=b1&&0.05<b1-k1&&rJ(_,k1,b1),r2(_),z&8192)_:for(J=_.stateNode,J._visibility=w?J._visibility&~q_:J._visibility|q_,!w||H===null||c||q3||r0||(h6(_),(_.mode&d1)!==u1&&0<=k1&&0<=b1&&0.05<b1-k1&&_4(_,k1,b1,"Disconnect")),H=null,J=_;;){if(J.tag===5||J.tag===26){if(H===null){c=H=J;try{N=c.stateNode,w?Y1(c,qw,N):Y1(c,Zw,c.stateNode,c.memoizedProps)}catch(w1){K0(c,c.return,w1)}}}else if(J.tag===6){if(H===null){c=J;try{i=c.stateNode,w?Y1(c,Uw,i):Y1(c,Fw,i,c.memoizedProps)}catch(w1){K0(c,c.return,w1)}}}else if(J.tag===18){if(H===null){c=J;try{s=c.stateNode,w?Y1(c,Qw,s):Y1(c,Gw,c.stateNode)}catch(w1){K0(c,c.return,w1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;H===J&&(H=null),J=J.return}H===J&&(H=null),J.sibling.return=J.return,J=J.sibling}z&4&&(z=_.updateQueue,z!==null&&(H=z.retryQueue,H!==null&&(z.retryQueue=null,V$(_,H))));break;case 19:l2(J,_),r2(_),z&4&&(z=_.updateQueue,z!==null&&(_.updateQueue=null,V$(_,z)));break;case 30:break;case 21:break;default:l2(J,_),r2(_)}(_.mode&d1)!==u1&&0<=k1&&0<=b1&&((k0||0.05<C0)&&J4(_,k1,b1,C0,f0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<b1-k1&&(pY(_.return.alternate,_.return)||_4(_,k1,b1,"Mount"))),_5($),q4(q),f0=G,k0=F}function r2(_){var J=_.flags;if(J&2){try{Y1(_,CO,_)}catch($){K0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function sY(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;sY(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function H4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)cY(_,J.alternate,J),J=J.sibling}function tY(_){var J=e2(),$=Q4(),q=U4(),G=G4();switch(_.tag){case 0:case 11:case 14:case 15:MG(_,_.return,K5),h6(_);break;case 1:X4(_,_.return);var F=_.stateNode;typeof F.componentWillUnmount==="function"&&xY(_,_.return,F),h6(_);break;case 27:Y1(_,p9,_.stateNode);case 26:case 5:X4(_,_.return),h6(_);break;case 22:_.memoizedState===null&&h6(_);break;case 30:h6(_);break;default:h6(_)}(_.mode&d1)!==u1&&0<=k1&&0<=b1&&(k0||0.05<C0)&&J4(_,k1,b1,C0,f0),_5(J),q4($),f0=q,k0=G}function h6(_){for(_=_.child;_!==null;)tY(_),_=_.sibling}function oY(_,J,$,q){var G=e2(),F=Q4(),H=U4(),z=G4(),w=$.flags;switch($.tag){case 0:case 11:case 15:Y4(_,$,q),vY($,K5);break;case 1:if(Y4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&Y1($,cZ,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{Y1($,YO,J,_)}catch(N){K0($,$.return,N)}}q&&w&64&&bY($),y9($,$.return);break;case 27:gY($);case 26:case 5:Y4(_,$,q),q&&J===null&&w&4&&hY($),y9($,$.return);break;case 12:if(q&&w&4){w=p4(),Y4(_,$,q),q=$.stateNode,q.effectDuration+=O9(w);try{Y1($,uY,$,J,c3,q.effectDuration)}catch(N){K0($,$.return,N)}}else Y4(_,$,q);break;case 31:Y4(_,$,q),q&&w&4&&dY(_,$);break;case 13:Y4(_,$,q),q&&w&4&&iY(_,$);break;case 22:$.memoizedState===null&&Y4(_,$,q),y9($,$.return);break;case 30:break;default:Y4(_,$,q)}($.mode&d1)!==u1&&0<=k1&&0<=b1&&(k0||0.05<C0)&&J4($,k1,b1,C0,f0),_5(G),q4(F),f0=H,k0=z}function Y4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)oY(_,J.alternate,J,$),J=J.sibling}function IG(_,J){var $=null;_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),_=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(_=J.memoizedState.cachePool.pool),_!==$&&(_!=null&&v6(_),$!=null&&R9($))}function fG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(v6(J),_!=null&&R9(_))}function E5(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(J=J.child;J!==null;){var F=J.sibling;nY(_,J,$,q,F!==null?F.actualStartTime:G),J=F}}function nY(_,J,$,q,G){var F=e2(),H=Q4(),z=U4(),w=G4(),N=h3,i=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&d1)!==u1&&0<J.actualStartTime&&(J.flags&1)!==0&&dJ(J,J.actualStartTime,G,s0,$),E5(_,J,$,q,G),i&2048&&EY(J,E2|I5);break;case 1:(J.mode&d1)!==u1&&0<J.actualStartTime&&((J.flags&128)!==0?ZU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&dJ(J,J.actualStartTime,G,s0,$)),E5(_,J,$,q,G);break;case 3:var s=p4(),c=s0;s0=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,E5(_,J,$,q,G),s0=c,i&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(v6(q),$!=null&&R9($))),_.passiveEffectDuration+=J$(s);break;case 12:if(i&2048){i=p4(),E5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=O9(i);try{Y1(J,jO,J,J.alternate,c3,_.passiveEffectDuration)}catch(q1){K0(J,J.return,q1)}}else E5(_,J,$,q,G);break;case 31:i=s0,s=J.alternate!==null?J.alternate.memoizedState:null,c=J.memoizedState,s!==null&&c===null?(c=J.deletions,c!==null&&0<c.length&&c[0].tag===18?(s0=!1,s=s.hydrationErrors,s!==null&&ZU(J,J.actualStartTime,G,s)):s0=!0):s0=!1,E5(_,J,$,q,G),s0=i;break;case 13:i=s0,s=J.alternate!==null?J.alternate.memoizedState:null,c=J.memoizedState,s===null||s.dehydrated===null||c!==null&&c.dehydrated!==null?s0=!1:(c=J.deletions,c!==null&&0<c.length&&c[0].tag===18?(s0=!1,s=s.hydrationErrors,s!==null&&ZU(J,J.actualStartTime,G,s)):s0=!0),E5(_,J,$,q,G),s0=i;break;case 23:break;case 22:c=J.stateNode,s=J.alternate,J.memoizedState!==null?c._visibility&a4?E5(_,J,$,q,G):v9(_,J,$,q,G):c._visibility&a4?E5(_,J,$,q,G):(c._visibility|=a4,d8(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&d1)===u1||s0||(_=J.actualStartTime,0<=_&&0.05<G-_&&rJ(J,_,G),0<=k1&&0<=b1&&0.05<b1-k1&&rJ(J,k1,b1))),i&2048&&IG(s,J);break;case 24:E5(_,J,$,q,G),i&2048&&fG(J.alternate,J);break;default:E5(_,J,$,q,G)}if((J.mode&d1)!==u1){if(_=!s0&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&_4(J,$,G,"Mount");0<=k1&&0<=b1&&((k0||0.05<C0)&&J4(J,k1,b1,C0,f0),_&&0.05<b1-k1&&_4(J,k1,b1,"Mount"))}_5(F),q4(H),f0=z,k0=w,h3=N}function d8(_,J,$,q,G,F){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var H=J.sibling;eY(_,J,$,q,G,H!==null?H.actualStartTime:F),J=H}}function eY(_,J,$,q,G,F){var H=e2(),z=Q4(),w=U4(),N=G4(),i=h3;G&&(J.mode&d1)!==u1&&0<J.actualStartTime&&(J.flags&1)!==0&&dJ(J,J.actualStartTime,F,s0,$);var s=J.flags;switch(J.tag){case 0:case 11:case 15:d8(_,J,$,q,G,F),EY(J,E2);break;case 23:break;case 22:var c=J.stateNode;J.memoizedState!==null?c._visibility&a4?d8(_,J,$,q,G,F):v9(_,J,$,q,F):(c._visibility|=a4,d8(_,J,$,q,G,F)),G&&s&2048&&IG(J.alternate,J);break;case 24:d8(_,J,$,q,G,F),G&&s&2048&&fG(J.alternate,J);break;default:d8(_,J,$,q,G,F)}(J.mode&d1)!==u1&&0<=k1&&0<=b1&&(k0||0.05<C0)&&J4(J,k1,b1,C0,f0),_5(H),q4(z),f0=w,k0=N,h3=i}function v9(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var F=J.child;F!==null;){J=F.sibling;var H=_,z=$,w=q,N=J!==null?J.actualStartTime:G,i=h3;(F.mode&d1)!==u1&&0<F.actualStartTime&&(F.flags&1)!==0&&dJ(F,F.actualStartTime,N,s0,z);var s=F.flags;switch(F.tag){case 22:v9(H,F,z,w,N),s&2048&&IG(F.alternate,F);break;case 24:v9(H,F,z,w,N),s&2048&&fG(F.alternate,F);break;default:v9(H,F,z,w,N)}h3=i,F=J}}function i8(_,J,$){if(_.subtreeFlags&f_)for(_=_.child;_!==null;)_W(_,J,$),_=_.sibling}function _W(_,J,$){switch(_.tag){case 26:i8(_,J,$),_.flags&f_&&_.memoizedState!==null&&Mw($,g5,_.memoizedState,_.memoizedProps);break;case 5:i8(_,J,$);break;case 3:case 4:var q=g5;g5=x$(_.stateNode.containerInfo),i8(_,J,$),g5=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=f_,f_=16777216,i8(_,J,$),f_=q):i8(_,J,$));break;default:i8(_,J,$)}}function JW(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function E9(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=e2();q2=q,qW(q,_),(q.mode&d1)!==u1&&0<=k1&&0<=b1&&0.05<b1-k1&&_4(q,k1,b1,"Unmount"),_5(G)}JW(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)$W(_),_=_.sibling}function $W(_){var J=e2(),$=Q4(),q=U4(),G=G4();switch(_.tag){case 0:case 11:case 15:E9(_),_.flags&2048&&TG(_,_.return,E2|I5);break;case 3:var F=p4();E9(_),_.stateNode.passiveEffectDuration+=J$(F);break;case 12:F=p4(),E9(_),_.stateNode.passiveEffectDuration+=O9(F);break;case 22:F=_.stateNode,_.memoizedState!==null&&F._visibility&a4&&(_.return===null||_.return.tag!==13)?(F._visibility&=~a4,S$(_),(_.mode&d1)!==u1&&0<=k1&&0<=b1&&0.05<b1-k1&&_4(_,k1,b1,"Disconnect")):E9(_);break;default:E9(_)}(_.mode&d1)!==u1&&0<=k1&&0<=b1&&(k0||0.05<C0)&&J4(_,k1,b1,C0,f0),_5(J),q4($),k0=G,f0=q}function S$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=e2();q2=q,qW(q,_),(q.mode&d1)!==u1&&0<=k1&&0<=b1&&0.05<b1-k1&&_4(q,k1,b1,"Unmount"),_5(G)}JW(_)}for(_=_.child;_!==null;)QW(_),_=_.sibling}function QW(_){var J=e2(),$=Q4(),q=U4(),G=G4();switch(_.tag){case 0:case 11:case 15:TG(_,_.return,E2),S$(_);break;case 22:var F=_.stateNode;F._visibility&a4&&(F._visibility&=~a4,S$(_));break;default:S$(_)}(_.mode&d1)!==u1&&0<=k1&&0<=b1&&(k0||0.05<C0)&&J4(_,k1,b1,C0,f0),_5(J),q4($),k0=G,f0=q}function qW(_,J){for(;q2!==null;){var $=q2,q=$,G=J,F=e2(),H=Q4(),z=U4(),w=G4();switch(q.tag){case 0:case 11:case 15:TG(q,G,E2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&v6(G));break;case 24:R9(q.memoizedState.cache)}if((q.mode&d1)!==u1&&0<=k1&&0<=b1&&(k0||0.05<C0)&&J4(q,k1,b1,C0,f0),_5(F),q4(H),k0=w,f0=z,q=$.child,q!==null)q.return=$,q2=q;else _:for($=_;q2!==null;){if(q=q2,F=q.sibling,H=q.return,lY(q),q===$){q2=null;break _}if(F!==null){F.return=H,q2=F;break _}q2=H}}}function DO(){nI.forEach(function(_){return _()})}function UW(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||G1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function $5(_){if((G0&t0)!==U2&&a1!==0)return a1&-a1;var J=G1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),kG()):e()}function GW(){if(a2===0)if((a1&536870912)===0||J0){var _=s$;s$<<=1,(s$&3932160)===0&&(s$=262144),a2=_}else a2=536870912;return _=F5.current,_!==null&&(_.flags|=32),a2}function D0(_,J,$){if(k7&&console.error("useInsertionEffect must not schedule updates."),WF&&(vQ=!0),_===z0&&(Y0===_8||Y0===J8)||_.cancelPendingCommit!==null)s8(_,0),D3(_,a1,a2,!1);if(L2(_,$),(G0&t0)!==U2&&_===z0){if(L4)switch(J.tag){case 0:case 11:case 15:_=s1&&t(s1)||"Unknown",yz.has(_)||(yz.add(_),J=t(J)||"Unknown",console.error("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://react.dev/link/setstate-in-render",J,_,_));break;case 1:kz||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),kz=!0)}}else T4&&I6(_,J,$),gO(J),_===z0&&((G0&t0)===U2&&(n3|=$),V0===s3&&D3(_,a1,a2,!1)),W4(_)}function ZW(_,J,$){if((G0&(t0|X5))!==U2)throw Error("Should not already be working.");if(a1!==0&&s1!==null){var q=s1,G=$2();switch(PB){case j_:case _8:var F=X_;R0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",F,G,B5,void 0,"primary-light")):console.timeStamp("Suspended",F,G,B5,void 0,"primary-light"));break;case J8:F=X_,R0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",F,G,B5,void 0,"primary-light")):console.timeStamp("Action",F,G,B5,void 0,"primary-light"));break;default:R0&&(q=G-X_,3>q||console.timeStamp("Blocked",X_,G,B5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}F=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||f2(_,J))?yO(_,J):NG(_,J,!0);var H=$;do{if(F===U3){S7&&!$&&D3(_,J,0,!1),J=Y0,X_=p0(),PB=J;break}else{if(q=$2(),G=_.current.alternate,H&&!kO(G)){o2(J),G=Q2,F=q,!R0||F<=G||(E0?E0.run(console.timeStamp.bind(console,"Teared Render",G,F,e1,n1,"error")):console.timeStamp("Teared Render",G,F,e1,n1,"error")),m6(J,q),F=NG(_,J,!1),H=!1;continue}if(F===e6){if(H=J,_.errorRecoveryDisabledLanes&H)var z=0;else z=_.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){o2(J),FU(Q2,q,J,E0),m6(J,q),J=z;_:{q=_,F=H,H=V_;var w=q.current.memoizedState.isDehydrated;if(w&&(s8(q,z).flags|=256),z=NG(q,z,!1),z!==e6){if(UF&&!w){q.errorRecoveryDisabledLanes|=F,n3|=F,F=s3;break _}q=b2,b2=H,q!==null&&(b2===null?b2=q:b2.push.apply(b2,q))}F=z}if(H=!1,F!==e6)continue;else q=$2()}}if(F===N_){o2(J),FU(Q2,q,J,E0),m6(J,q),s8(_,0),D3(_,J,0,!0);break}_:{switch($=_,F){case U3:case N_:throw Error("Root did not complete. This is a bug in React.");case s3:if((J&4194048)!==J)break;case NQ:o2(J),ZH(Q2,q,J,E0),m6(J,q),G=J,(G&127)!==0?HQ=q:(G&4194048)!==0&&(YQ=q),D3($,J,a2,!t3);break _;case e6:b2=null;break;case PQ:case Tz:break;default:throw Error("Unknown root exit status.")}if(G1.actQueue!==null)jG($,G,J,b2,S_,VQ,a2,n3,$8,F,null,null,Q2,q);else{if((J&62914560)===J&&(H=SQ+wz-$2(),10<H)){if(D3($,J,a2,!t3),I2($,0,!0)!==0)break _;p5=J,$.timeoutHandle=gz(FW.bind(null,$,G,b2,S_,VQ,J,a2,n3,$8,t3,F,"Throttled",Q2,q),H);break _}FW($,G,b2,S_,VQ,J,a2,n3,$8,t3,F,null,Q2,q)}}}break}while(1);W4(_)}function FW(_,J,$,q,G,F,H,z,w,N,i,s,c,q1){_.timeoutHandle=Z8;var L1=J.subtreeFlags,w1=null;if(L1&8192||(L1&16785408)===16785408){if(w1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:u4},_W(J,F,w1),L1=(F&62914560)===F?SQ-$2():(F&4194048)===F?Oz-$2():0,L1=Tw(w1,L1),L1!==null){p5=F,_.cancelPendingCommit=L1(jG.bind(null,_,J,F,$,q,G,H,z,w,i,w1,w1.waitingForViewTransition?"Waiting for the previous Animation":0<w1.count?0<w1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":w1.imgCount===1?"Suspended on an Image":0<w1.imgCount?"Suspended on Images":null,c,q1)),D3(_,F,H,!N);return}}jG(_,J,F,$,q,G,H,z,w,i,w1,s,c,q1)}function kO(_){for(var J=_;;){var $=J.tag;if(($===0||$===11||$===15)&&J.flags&16384&&($=J.updateQueue,$!==null&&($=$.stores,$!==null)))for(var q=0;q<$.length;q++){var G=$[q],F=G.getSnapshot;G=G.value;try{if(!k2(F(),G))return!1}catch(H){return!1}}if($=J.child,J.subtreeFlags&16384&&$!==null)$.return=J,J=$;else{if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return!0;J=J.return}J.sibling.return=J.return,J=J.sibling}}return!0}function D3(_,J,$,q){J&=~GF,J&=~n3,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var F=31-V2(G),H=1<<F;q[F]=-1,G&=~H}$!==0&&D5(_,$,J)}function a8(){return(G0&(t0|X5))===U2?(u9(0,!1),!1):!0}function PG(){if(s1!==null){if(Y0===i2)var _=s1.return;else _=s1,nJ(),bU(_),O7=null,T_=0,_=s1;for(;_!==null;)yY(_.alternate,_),_=_.return;s1=null}}function m6(_,J){(_&127)!==0&&(l3=J),(_&4194048)!==0&&(f4=J),(_&62914560)!==0&&(IB=J),(_&2080374784)!==0&&(fB=J)}function s8(_,J){R0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",n1,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",n1,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",n1,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",n1,"primary-light"));var $=Q2;if(Q2=p0(),a1!==0&&0<$){if(o2(a1),V0===PQ||V0===s3)ZH($,Q2,J,E0);else{var q=Q2,G=E0;if(R0&&!(q<=$)){var F=(J&738197653)===J?"tertiary-dark":"primary-dark",H=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,H,$,q,e1,n1,F)):console.timeStamp(H,$,q,e1,n1,F)}}m6(a1,Q2)}if($=E0,E0=null,(J&127)!==0){E0=Z_,G=0<=I4&&I4<l3?l3:I4,q=0<=r6&&r6<l3?l3:r6,F=0<=q?q:0<=G?G:Q2,0<=HQ?(o2(2),FH(HQ,F,J,$)):(WQ&127)!==0&&(o2(2),M9(l3,F,_3)),$=G;var z=q,w=F_,N=0<M7,i=r3===G_,s=r3===XQ;if(G=Q2,q=Z_,F=uZ,H=hZ,R0){if(e1="Blocking",0<$?$>G&&($=G):$=G,0<z?z>$&&(z=$):z=$,w!==null&&$>z){var c=N?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,N?"Consecutive":"Event: "+w,z,$,e1,n1,c)):console.timeStamp(N?"Consecutive":"Event: "+w,z,$,e1,n1,c)}G>$&&(z=i?"error":(J&738197653)===J?"tertiary-light":"primary-light",i=s?"Promise Resolved":i?"Cascading Update":5<G-$?"Update Blocked":"Update",s=[],H!=null&&s.push(["Component name",H]),F!=null&&s.push(["Method name",F]),$={start:$,end:G,detail:{devtools:{properties:s,track:e1,trackGroup:n1,color:z}}},q?q.run(performance.measure.bind(performance,i,$)):performance.measure(i,$))}I4=-1.1,r3=0,hZ=uZ=null,HQ=-1.1,M7=r6,r6=-1.1,l3=p0()}if((J&4194048)!==0&&(E0=K_,G=0<=e4&&e4<f4?f4:e4,$=0<=O5&&O5<f4?f4:O5,q=0<=d3&&d3<f4?f4:d3,F=0<=q?q:0<=$?$:Q2,0<=YQ?(o2(256),FH(YQ,F,J,E0)):(WQ&4194048)!==0&&(o2(256),M9(f4,F,_3)),s=q,z=d6,w=0<i3,N=mZ===XQ,F=Q2,q=K_,H=OB,i=wB,R0&&(e1="Transition",0<$?$>F&&($=F):$=F,0<G?G>$&&(G=$):G=$,0<s?s>G&&(s=G):s=G,G>s&&z!==null&&(c=w?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+z,s,G,e1,n1,c)):console.timeStamp(w?"Consecutive":"Event: "+z,s,G,e1,n1,c)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,e1,n1,"primary-dark")):console.timeStamp("Action",G,$,e1,n1,"primary-dark")),F>$&&(G=N?"Promise Resolved":5<F-$?"Update Blocked":"Update",s=[],i!=null&&s.push(["Component name",i]),H!=null&&s.push(["Method name",H]),$={start:$,end:F,detail:{devtools:{properties:s,track:e1,trackGroup:n1,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),O5=e4=-1.1,mZ=0,YQ=-1.1,i3=d3,d3=-1.1,f4=p0()),(J&62914560)!==0&&(WQ&62914560)!==0&&(o2(4194304),M9(IB,Q2,_3)),(J&2080374784)!==0&&(WQ&2080374784)!==0&&(o2(268435456),M9(fB,Q2,_3)),$=_.timeoutHandle,$!==Z8&&(_.timeoutHandle=Z8,Hf($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),p5=0,PG(),z0=_,s1=$=h4(_.current,null),a1=J,Y0=i2,H5=null,t3=!1,S7=f2(_,J),UF=!1,V0=U3,$8=a2=GF=n3=o3=0,b2=V_=null,VQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-V2(q),F=1<<G,J|=_[G],q&=~F;return N4=J,iJ(),_=BB(),1000<_-AB&&(G1.recentlyCreatedOwnerStacks=0,AB=_),h5.discardPendingWarnings(),$}function KW(_,J){g1=null,G1.H=I_,G1.getCurrentStack=null,L4=!1,U5=null,J===R7||J===LQ?(J=SH(),Y0=j_):J===lZ?(J=SH(),Y0=Rz):Y0=J===_F?qF:J!==null&&typeof J==="object"&&typeof J.then==="function"?C_:jQ,H5=J;var $=s1;$===null?(V0=N_,I$(_,n2(J,_.current))):$.mode&d1&&IU($)}function XW(){var _=F5.current;return _===null?!0:(a1&4194048)===a1?w5===null?!0:!1:(a1&62914560)===a1||(a1&536870912)!==0?_===w5:!1}function HW(){var _=G1.H;return G1.H=I_,_===null?I_:_}function YW(){var _=G1.A;return G1.A=oI,_}function D$(_){E0===null&&(E0=_._debugTask==null?null:_._debugTask)}function k$(){V0=s3,t3||(a1&4194048)!==a1&&F5.current!==null||(S7=!0),(o3&134217727)===0&&(n3&134217727)===0||z0===null||D3(z0,a1,a2,!1)}function NG(_,J,$){var q=G0;G0|=t0;var G=HW(),F=YW();if(z0!==_||a1!==J){if(T4){var H=_.memoizedUpdaters;0<H.size&&(x9(_,a1),H.clear()),o5(_,J)}S_=null,s8(_,J)}J=!1,H=V0;_:do try{if(Y0!==i2&&s1!==null){var z=s1,w=H5;switch(Y0){case qF:PG(),H=NQ;break _;case j_:case _8:case J8:case C_:F5.current===null&&(J=!0);var N=Y0;if(Y0=i2,H5=null,t8(_,z,w,N),$&&S7){H=U3;break _}break;default:N=Y0,Y0=i2,H5=null,t8(_,z,w,N)}}WW(),H=V0;break}catch(i){KW(_,i)}while(1);return J&&_.shellSuspendCounter++,nJ(),G0=q,G1.H=G,G1.A=F,s1===null&&(z0=null,a1=0,iJ()),H}function WW(){for(;s1!==null;)AW(s1)}function yO(_,J){var $=G0;G0|=t0;var q=HW(),G=YW();if(z0!==_||a1!==J){if(T4){var F=_.memoizedUpdaters;0<F.size&&(x9(_,a1),F.clear()),o5(_,J)}S_=null,DQ=$2()+Iz,s8(_,J)}else S7=f2(_,J);_:do try{if(Y0!==i2&&s1!==null)J:switch(J=s1,F=H5,Y0){case jQ:Y0=i2,H5=null,t8(_,J,F,jQ);break;case _8:case J8:if(CH(F)){Y0=i2,H5=null,BW(J);break}J=function(){Y0!==_8&&Y0!==J8||z0!==_||(Y0=CQ),W4(_)},F.then(J,J);break _;case j_:Y0=CQ;break _;case Rz:Y0=QF;break _;case CQ:CH(F)?(Y0=i2,H5=null,BW(J)):(Y0=i2,H5=null,t8(_,J,F,CQ));break;case QF:var H=null;switch(s1.tag){case 26:H=s1.memoizedState;case 5:case 27:var z=s1;if(H?ZA(H):z.stateNode.complete){Y0=i2,H5=null;var w=z.sibling;if(w!==null)s1=w;else{var N=z.return;N!==null?(s1=N,y$(N)):s1=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Y0=i2,H5=null,t8(_,J,F,QF);break;case C_:Y0=i2,H5=null,t8(_,J,F,C_);break;case qF:PG(),V0=NQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G1.actQueue!==null?WW():vO();break}catch(i){KW(_,i)}while(1);if(nJ(),G1.H=q,G1.A=G,G0=$,s1!==null)return U3;return z0=null,a1=0,iJ(),V0}function vO(){for(;s1!==null&&!kw();)AW(s1)}function AW(_){var J=_.alternate;(_.mode&d1)!==u1?(wU(_),J=Y1(_,zG,J,_,N4),IU(_)):J=Y1(_,zG,J,_,N4),_.memoizedProps=_.pendingProps,J===null?y$(_):s1=J}function BW(_){var J=Y1(_,EO,_);_.memoizedProps=_.pendingProps,J===null?y$(_):s1=J}function EO(_){var J=_.alternate,$=(_.mode&d1)!==u1;switch($&&wU(_),_.tag){case 15:case 0:J=NY(J,_,_.pendingProps,_.type,void 0,a1);break;case 11:J=NY(J,_,_.pendingProps,_.type.render,_.ref,a1);break;case 5:bU(_);default:yY(J,_),_=s1=AH(_,N4),J=zG(J,_,N4)}return $&&IU(_),J}function t8(_,J,$,q){nJ(),bU(J),O7=null,T_=0;var G=J.return;try{if(TO(_,G,J,$,a1)){V0=N_,I$(_,n2($,_.current)),s1=null;return}}catch(F){if(G!==null)throw s1=G,F;V0=N_,I$(_,n2($,_.current)),s1=null;return}if(J.flags&32768){if(J0||q===jQ)_=!0;else if(S7||(a1&536870912)!==0)_=!1;else if(t3=_=!0,q===_8||q===J8||q===j_||q===C_)q=F5.current,q!==null&&q.tag===13&&(q.flags|=16384);zW(J,_)}else y$(J)}function y$(_){var J=_;do{if((J.flags&32768)!==0){zW(J,t3);return}var $=J.alternate;if(_=J.return,wU(J),$=Y1(J,wO,$,J,N4),(J.mode&d1)!==u1&&IH(J),$!==null){s1=$;return}if(J=J.sibling,J!==null){s1=J;return}s1=J=_}while(J!==null);V0===U3&&(V0=Tz)}function zW(_,J){do{var $=IO(_.alternate,_);if($!==null){$.flags&=32767,s1=$;return}if((_.mode&d1)!==u1){IH(_),$=_.actualDuration;for(var q=_.child;q!==null;)$+=q.actualDuration,q=q.sibling;_.actualDuration=$}if($=_.return,$!==null&&($.flags|=32768,$.subtreeFlags=0,$.deletions=null),!J&&(_=_.sibling,_!==null)){s1=_;return}s1=_=$}while(_!==null);V0=NQ,s1=null}function jG(_,J,$,q,G,F,H,z,w,N,i,s,c,q1){_.cancelPendingCommit=null;do b9();while(i0!==_6);if(h5.flushLegacyContextWarning(),h5.flushPendingUnsafeLifecycleWarnings(),(G0&(t0|X5))!==U2)throw Error("Should not already be working.");if(o2($),N===e6?FU(c,q1,$,E0):q!==null?GO(c,q1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,E0):UO(c,q1,$,E0),J!==null){if($===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),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.");if(F=J.lanes|J.childLanes,F|=yZ,z3(_,$,F,H,z,w),_===z0&&(s1=z0=null,a1=0),D7=J,J6=_,p5=$,KF=F,HF=G,Vz=q,XF=q1,Sz=s,c5=kQ,Dz=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,mO($7,function(){return b_=window.event,c5===kQ&&(c5=FF),OW(),null})):(_.callbackNode=null,_.callbackPriority=0),n4=null,c3=p0(),s!==null&&ZO(q1,c3,s,E0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=G1.T,G1.T=null,G=X0.p,X0.p=G5,H=G0,G0|=X5;try{VO(_,J,$)}finally{G0=H,X0.p=G,G1.T=q}}i0=Pz,LW(),MW(),TW()}}function LW(){if(i0===Pz){i0=_6;var _=J6,J=D7,$=p5,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=G1.T,G1.T=null;var G=X0.p;X0.p=G5;var F=G0;G0|=X5;try{C7=$,V7=_,$$(),aY(J,_),V7=C7=null,$=wF;var H=qH(_.containerInfo),z=$.focusedElem,w=$.selectionRange;if(H!==z&&z&&z.ownerDocument&&QH(z.ownerDocument.documentElement,z)){if(w!==null&&UU(z)){var{start:N,end:i}=w;if(i===void 0&&(i=N),"selectionStart"in z)z.selectionStart=N,z.selectionEnd=Math.min(i,z.value.length);else{var s=z.ownerDocument||document,c=s&&s.defaultView||window;if(c.getSelection){var q1=c.getSelection(),L1=z.textContent.length,w1=Math.min(w.start,L1),T0=w.end===void 0?w1:Math.min(w.end,L1);!q1.extend&&w1>T0&&(H=T0,T0=w1,w1=H);var Q0=$H(z,w1),g=$H(z,T0);if(Q0&&g&&(q1.rangeCount!==1||q1.anchorNode!==Q0.node||q1.anchorOffset!==Q0.offset||q1.focusNode!==g.node||q1.focusOffset!==g.offset)){var l=s.createRange();l.setStart(Q0.node,Q0.offset),q1.removeAllRanges(),w1>T0?(q1.addRange(l),q1.extend(g.node,g.offset)):(l.setEnd(g.node,g.offset),q1.addRange(l))}}}}s=[];for(q1=z;q1=q1.parentNode;)q1.nodeType===1&&s.push({element:q1,left:q1.scrollLeft,top:q1.scrollTop});typeof z.focus==="function"&&z.focus();for(z=0;z<s.length;z++){var d=s[z];d.element.scrollLeft=d.left,d.element.scrollTop=d.top}}aQ=!!OF,wF=OF=null}finally{G0=F,X0.p=G,G1.T=q}}_.current=J,i0=Nz}}function MW(){if(i0===Nz){i0=_6;var _=Dz;if(_!==null){c3=p0();var J=o4,$=c3;!R0||$<=J||(_3?_3.run(console.timeStamp.bind(console,_,J,$,e1,n1,"secondary-light")):console.timeStamp(_,J,$,e1,n1,"secondary-light"))}_=J6,J=D7,$=p5;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=G1.T,G1.T=null;var G=X0.p;X0.p=G5;var F=G0;G0|=X5;try{C7=$,V7=_,$$(),cY(_,J.alternate,J),V7=C7=null}finally{G0=F,X0.p=G,G1.T=q}}_=XF,J=Sz,o4=p0(),_=J===null?_:c3,J=o4,$=c5===ZF,q=E0,n4!==null?KH(_,J,n4,!1,q):!R0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,e1,n1,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,e1,n1,$?"error":"secondary-dark")),i0=jz}}function TW(){if(i0===Cz||i0===jz){if(i0===Cz){var _=o4;o4=p0();var J=o4,$=c5===ZF;!R0||J<=_||(_3?_3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,e1,n1,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,e1,n1,$?" error":"secondary-light")),c5!==ZF&&(c5=fz)}i0=_6,yw(),_=J6;var q=D7;J=p5,$=Vz;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?i0=yQ:(i0=_6,D7=J6=null,RW(_,_.pendingLanes),Q8=0,k_=null);var F=_.pendingLanes;if(F===0&&(e3=null),G||PW(_),F=C(J),q=q.stateNode,T2&&typeof T2.onCommitFiberRoot==="function")try{var H=(q.current.flags&128)===128;switch(F){case G5:var z=HZ;break;case x5:z=YZ;break;case R4:z=$7;break;case o$:z=WZ;break;default:z=$7}T2.onCommitFiberRoot(Q7,q,z,H)}catch(s){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",s))}if(T4&&_.memoizedUpdaters.clear(),DO(),$!==null){H=G1.T,z=X0.p,X0.p=G5,G1.T=null;try{var w=_.onRecoverableError;for(q=0;q<$.length;q++){var N=$[q],i=bO(N.stack);Y1(N.source,w,N.value,i)}}finally{G1.T=H,X0.p=z}}(p5&3)!==0&&b9(),W4(_),F=_.pendingLanes,(J&261930)!==0&&(F&42)!==0?(BQ=!0,_===YF?D_++:(D_=0,YF=_)):D_=0,G||m6(J,o4),u9(0,!1)}}function bO(_){return _={componentStack:_},Object.defineProperty(_,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),_}function RW(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,R9(J)))}function b9(){return LW(),MW(),TW(),OW()}function OW(){if(i0!==yQ)return!1;var _=J6,J=KF;KF=0;var $=C(p5),q=R4===0||R4>$?R4:$;$=G1.T;var G=X0.p;try{X0.p=q,G1.T=null;var F=HF;HF=null,q=J6;var H=p5;if(i0=_6,D7=J6=null,p5=0,(G0&(t0|X5))!==U2)throw Error("Cannot flush passive effects while already rendering.");o2(H),WF=!0,vQ=!1;var z=0;if(n4=null,z=$2(),c5===fz)M9(o4,z,_3);else{var w=o4,N=z,i=c5===FF;!R0||N<=w||(E0?E0.run(console.timeStamp.bind(console,i?"Waiting for Paint":"Waiting",w,N,e1,n1,"secondary-light")):console.timeStamp(i?"Waiting for Paint":"Waiting",w,N,e1,n1,"secondary-light"))}w=G0,G0|=X5;var s=q.current;$$(),$W(s);var c=q.current;s=XF,$$(),nY(q,c,H,F,s),PW(q),G0=w;var q1=$2();if(c=z,s=E0,n4!==null?KH(c,q1,n4,!0,s):!R0||q1<=c||(s?s.run(console.timeStamp.bind(console,"Remaining Effects",c,q1,e1,n1,"secondary-dark")):console.timeStamp("Remaining Effects",c,q1,e1,n1,"secondary-dark")),m6(H,q1),u9(0,!1),vQ?q===k_?Q8++:(Q8=0,k_=q):Q8=0,vQ=WF=!1,T2&&typeof T2.onPostCommitFiberRoot==="function")try{T2.onPostCommitFiberRoot(Q7,q)}catch(w1){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",w1))}var L1=q.current.stateNode;return L1.effectDuration=0,L1.passiveEffectDuration=0,!0}finally{X0.p=G,G1.T=$,RW(_,J)}}function wW(_,J,$){J=n2($,J),fH(J),J=UG(_.stateNode,J,2),_=j3(_,J,2),_!==null&&(L2(_,2),W4(_))}function K0(_,J,$){if(k7=!1,_.tag===3)wW(_,_,$);else{for(;J!==null;){if(J.tag===3){wW(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(e3===null||!e3.has(q))){_=n2($,_),fH(_),$=GG(2),q=j3(J,$,2),q!==null&&(ZG($,q,J,_),L2(q,2),W4(q));return}}J=J.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
163
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,W1(J,function(A,w){console.error("%s must not return anything besides a function, which is used for clean-up.%s",A,w)},F,Y)}$=$.next}while($!==G)}}catch(A){X0(J,J.return,A)}}function d8(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var F=G.next;q=F;do{if((q.tag&_)===_){var Y=q.inst,A=Y.destroy;A!==void 0&&(Y.destroy=void 0,(_&v2)!==wQ&&(y7=!0),G=J,W1(G,_f,G,$,A),(_&v2)!==wQ&&(y7=!1))}q=q.next}while(q!==F)}}catch(w){X0(J,J.return,w)}}function gY(_,J){H4(_)?(X4(),v9(J,_),K4()):v9(J,_)}function TG(_,J,$){H4(_)?(X4(),d8($,_,J),K4()):d8($,_,J)}function pY(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||S7||($.props!==_.memoizedProps&&console.error("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.",m(_)||"instance"),$.state!==_.memoizedState&&console.error("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.",m(_)||"instance"));try{W1(_,lH,J,$)}catch(q){X0(_,_.return,q)}}}function kO(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function DO(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||S7||(J.props!==_.memoizedProps&&console.error("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.",m(_)||"instance"),J.state!==_.memoizedState&&console.error("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.",m(_)||"instance"));try{var G=x6(_.type,$),F=W1(_,kO,J,G,q);$=IA,F!==void 0||$.has(_.type)||($.add(_.type),W1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",m(_))})),J.__reactInternalSnapshotBeforeUpdate=F}catch(Y){X0(_,_.return,Y)}}function cY(_,J,$){$.props=x6(_.type,_.memoizedProps),$.state=_.memoizedState,H4(_)?(X4(),W1(_,pB,_,J,$),K4()):W1(_,pB,_,J,$)}function yO(_){var J=_.ref;if(J!==null){switch(_.tag){case 26:case 27:case 5:var $=_.stateNode;break;case 30:$=_.stateNode;break;default:$=_.stateNode}if(typeof J==="function")if(H4(_))try{X4(),_.refCleanup=J($)}finally{K4()}else _.refCleanup=J($);else typeof J==="string"?console.error("String refs are no longer supported."):J.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",m(_)),J.current=$}}function E9(_,J){try{W1(_,yO,_)}catch($){X0(_,J,$)}}function Y4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(H4(_))try{X4(),W1(_,q)}finally{K4(_)}else W1(_,q)}catch(G){X0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(H4(_))try{X4(),W1(_,$,null)}finally{K4(_)}else W1(_,$,null)}catch(G){X0(_,J,G)}else $.current=null}function lY(_,J,$,q){var G=_.memoizedProps,F=G.id,Y=G.onCommit;G=G.onRender,J=J===null?"mount":"update",AQ&&(J="nested-update"),typeof G==="function"&&G(F,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof Y==="function"&&Y(F,J,q,$)}function vO(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",AQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function rY(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{W1(_,qw,q,J,$,_)}catch(G){X0(_,_.return,G)}}function RG(_,J,$){try{W1(_,Gw,_.stateNode,_.type,$,J,_)}catch(q){X0(_,_.return,q)}}function dY(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&E3(_.type)||_.tag===4}function OG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||dY(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&E3(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function wG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(eW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(eW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=m4));else if(q!==4&&(q===27&&E3(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(wG(_,J,$),_=_.sibling;_!==null;)wG(_,J,$),_=_.sibling}function V$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&E3(_.type)&&($=_.stateNode),_=_.child,_!==null))for(V$(_,J,$),_=_.sibling;_!==null;)V$(_,J,$),_=_.sibling}function EO(_){for(var J,$=_.return;$!==null;){if(dY($)){J=$;break}$=$.return}if(J==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(J.tag){case 27:J=J.stateNode,$=OG(_),V$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(nW($),J.flags&=-33),J=OG(_),V$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=OG(_),wG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function iY(_){var{stateNode:J,memoizedProps:$}=_;try{W1(_,ww,_.type,$,J,_)}catch(q){X0(_,_.return,q)}}function aY(_,J){return J.tag===31?(J=J.memoizedState,_.memoizedState!==null&&J===null):J.tag===13?(_=_.memoizedState,J=J.memoizedState,_!==null&&_.dehydrated!==null&&(J===null||J.dehydrated===null)):J.tag===3?_.memoizedState.isDehydrated&&(J.flags&256)===0:!1}function bO(_,J){if(_=_.containerInfo,OF=tQ,_=XH(_),UU(_)){if("selectionStart"in _)var $={start:_.selectionStart,end:_.selectionEnd};else _:{$=($=_.ownerDocument)&&$.defaultView||window;var q=$.getSelection&&$.getSelection();if(q&&q.rangeCount!==0){$=q.anchorNode;var{anchorOffset:G,focusNode:F}=q;q=q.focusOffset;try{$.nodeType,F.nodeType}catch(T1){$=null;break _}var Y=0,A=-1,w=-1,N=0,t=0,o=_,c=null;J:for(;;){for(var q1;;){if(o!==$||G!==0&&o.nodeType!==3||(A=Y+G),o!==F||q!==0&&o.nodeType!==3||(w=Y+q),o.nodeType===3&&(Y+=o.nodeValue.length),(q1=o.firstChild)===null)break;c=o,o=q1}for(;;){if(o===_)break J;if(c===$&&++N===G&&(A=Y),c===F&&++t===q&&(w=Y),(q1=o.nextSibling)!==null)break;o=c,c=o.parentNode}o=q1}$=A===-1||w===-1?null:{start:A,end:w}}else $=null}$=$||{start:0,end:0}}else $=null;wF={focusedElem:_,selectionRange:$},tQ=!1;for(U2=J;U2!==null;)if(J=U2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,U2=_;else for(;U2!==null;){switch(_=J=U2,$=_.alternate,G=_.flags,_.tag){case 0:if((G&4)!==0&&(_=_.updateQueue,_=_!==null?_.events:null,_!==null))for($=0;$<_.length;$++)G=_[$],G.ref.impl=G.nextImpl;break;case 11:case 15:break;case 1:(G&1024)!==0&&$!==null&&DO(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)pG(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":pG(_);break;default:_.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((G&1024)!==0)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(_=J.sibling,_!==null){_.return=J.return,U2=_;break}U2=J.return}}function sY(_,J,$){var q=_5(),G=U4(),F=Z4(),Y=F4(),A=$.flags;switch($.tag){case 0:case 11:case 15:W4(_,$),A&4&&mY($,X5|C5);break;case 1:if(W4(_,$),A&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||S7||(_.props!==$.memoizedProps&&console.error("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.",m($)||"instance"),_.state!==$.memoizedState&&console.error("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.",m($)||"instance")),H4($)?(X4(),W1($,cZ,$,_),K4()):W1($,cZ,$,_);else{var w=x6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||S7||(_.props!==$.memoizedProps&&console.error("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.",m($)||"instance"),_.state!==$.memoizedState&&console.error("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.",m($)||"instance")),H4($)?(X4(),W1($,hB,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate),K4()):W1($,hB,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate)}A&64&&pY($),A&512&&E9($,$.return);break;case 3:if(J=l4(),W4(_,$),A&64&&(A=$.updateQueue,A!==null)){if(w=null,$.child!==null)switch($.child.tag){case 27:case 5:w=$.child.stateNode;break;case 1:w=$.child.stateNode}try{W1($,lH,A,w)}catch(t){X0($,$.return,t)}}_.effectDuration+=Q$(J);break;case 27:J===null&&A&4&&iY($);case 26:case 5:if(W4(_,$),J===null){if(A&4)rY($);else if(A&64){_=$.type,J=$.memoizedProps,w=$.stateNode;try{W1($,Uw,w,_,J,$)}catch(t){X0($,$.return,t)}}}A&512&&E9($,$.return);break;case 12:if(A&4){A=l4(),W4(_,$),_=$.stateNode,_.effectDuration+=I9(A);try{W1($,lY,$,J,r3,_.effectDuration)}catch(t){X0($,$.return,t)}}else W4(_,$);break;case 31:W4(_,$),A&4&&nY(_,$);break;case 13:W4(_,$),A&4&&eY(_,$),A&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(A=rO.bind(null,$),Mw(_,A))));break;case 22:if(A=$.memoizedState!==null||G3,!A){J=J!==null&&J.memoizedState!==null||d0,w=G3;var N=d0;G3=A,(d0=J)&&!N?(z4(_,$,($.subtreeFlags&8772)!==0),($.mode&d1)!==x1&&0<=D1&&0<=u1&&0.05<u1-D1&&iJ($,D1,u1)):W4(_,$),G3=w,d0=N}break;case 30:break;default:W4(_,$)}($.mode&d1)!==x1&&0<=D1&&0<=u1&&((D0||0.05<S0)&&Q4($,D1,u1,S0,P0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<u1-D1&&(aY($.return.alternate,$.return)||$4($,D1,u1,"Mount"))),J5(q),G4(G),P0=F,D0=Y}function tY(_){var J=_.alternate;J!==null&&(_.alternate=null,tY(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&R1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function i4(_,J,$){for($=$.child;$!==null;)oY(_,J,$),$=$.sibling}function oY(_,J,$){if(T2&&typeof T2.onCommitFiberUnmount==="function")try{T2.onCommitFiberUnmount(q7,$)}catch(N){R4||(R4=!0,console.error("React instrumentation encountered an error: %o",N))}var q=_5(),G=U4(),F=Z4(),Y=F4();switch($.tag){case 26:d0||Y4($,J),i4(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:d0||Y4($,J);var A=i0,w=d2;E3($.type)&&(i0=$.stateNode,d2=!1),i4(_,J,$),W1($,l9,$.stateNode),i0=A,d2=w;break;case 5:d0||Y4($,J);case 6:if(A=i0,w=d2,i0=null,i4(_,J,$),i0=A,d2=w,i0!==null)if(d2)try{W1($,Kw,i0,$.stateNode)}catch(N){X0($,J,N)}else try{W1($,Fw,i0,$.stateNode)}catch(N){X0($,J,N)}break;case 18:i0!==null&&(d2?(_=i0,_z(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),_7(_)):_z(i0,$.stateNode));break;case 4:A=i0,w=d2,i0=$.stateNode.containerInfo,d2=!0,i4(_,J,$),i0=A,d2=w;break;case 0:case 11:case 14:case 15:d8(v2,$,J),d0||MG($,J,X5),i4(_,J,$);break;case 1:d0||(Y4($,J),A=$.stateNode,typeof A.componentWillUnmount==="function"&&cY($,J,A)),i4(_,J,$);break;case 21:i4(_,J,$);break;case 22:d0=(A=d0)||$.memoizedState!==null,i4(_,J,$),d0=A;break;default:i4(_,J,$)}($.mode&d1)!==x1&&0<=D1&&0<=u1&&(D0||0.05<S0)&&Q4($,D1,u1,S0,P0),J5(q),G4(G),P0=F,D0=Y}function nY(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{W1(J,Rw,_)}catch($){X0(J,J.return,$)}}}function eY(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{W1(J,Ow,_)}catch($){X0(J,J.return,$)}}function uO(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new fA),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new fA),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function k$(_,J){var $=uO(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),O4)if(j7!==null&&V7!==null)h9(V7,j7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=dO.bind(null,_,q);q.then(G,G)}})}function l2(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,F=J,Y=$[q],A=_5(),w=F;_:for(;w!==null;){switch(w.tag){case 27:if(E3(w.type)){i0=w.stateNode,d2=!1;break _}break;case 5:i0=w.stateNode,d2=!1;break _;case 3:case 4:i0=w.stateNode.containerInfo,d2=!0;break _}w=w.return}if(i0===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");oY(G,F,Y),i0=null,d2=!1,(Y.mode&d1)!==x1&&0<=D1&&0<=u1&&0.05<u1-D1&&$4(Y,D1,u1,"Unmount"),J5(A),G=Y,F=G.alternate,F!==null&&(F.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)_W(J,_),J=J.sibling}function _W(_,J){var $=_5(),q=U4(),G=Z4(),F=F4(),Y=_.alternate,A=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:l2(J,_),r2(_),A&4&&(d8(v2|C5,_,_.return),v9(v2|C5,_),MG(_,_.return,X5|C5));break;case 1:if(l2(J,_),r2(_),A&512&&(d0||Y===null||Y4(Y,Y.return)),A&64&&G3&&(A=_.updateQueue,A!==null&&(Y=A.callbacks,Y!==null))){var w=A.shared.hiddenCallbacks;A.shared.hiddenCallbacks=w===null?Y:w.concat(Y)}break;case 26:if(w=l5,l2(J,_),r2(_),A&512&&(d0||Y===null||Y4(Y,Y.return)),A&4){var N=Y!==null?Y.memoizedState:null;if(A=_.memoizedState,Y===null)if(A===null)if(_.stateNode===null){_:{A=_.type,Y=_.memoizedProps,w=w.ownerDocument||w;J:switch(A){case"title":if(N=w.getElementsByTagName("title")[0],!N||N[o9]||N[H2]||N.namespaceURI===G7||N.hasAttribute("itemprop"))N=w.createElement(A),w.head.insertBefore(N,w.querySelector("head > title"));X2(N,A,Y),N[H2]=_,V1(N),A=N;break _;case"link":var t=Hz("link","href",w).get(A+(Y.href||""));if(t){for(var o=0;o<t.length;o++)if(N=t[o],N.getAttribute("href")===(Y.href==null||Y.href===""?null:Y.href)&&N.getAttribute("rel")===(Y.rel==null?null:Y.rel)&&N.getAttribute("title")===(Y.title==null?null:Y.title)&&N.getAttribute("crossorigin")===(Y.crossOrigin==null?null:Y.crossOrigin)){t.splice(o,1);break J}}N=w.createElement(A),X2(N,A,Y),w.head.appendChild(N);break;case"meta":if(t=Hz("meta","content",w).get(A+(Y.content||""))){for(o=0;o<t.length;o++)if(N=t[o],j1(Y.content,"content"),N.getAttribute("content")===(Y.content==null?null:""+Y.content)&&N.getAttribute("name")===(Y.name==null?null:Y.name)&&N.getAttribute("property")===(Y.property==null?null:Y.property)&&N.getAttribute("http-equiv")===(Y.httpEquiv==null?null:Y.httpEquiv)&&N.getAttribute("charset")===(Y.charSet==null?null:Y.charSet)){t.splice(o,1);break J}}N=w.createElement(A),X2(N,A,Y),w.head.appendChild(N);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+A+'". This is a bug in React.')}N[H2]=_,V1(N),A=N}_.stateNode=A}else Yz(w,_.type,_.stateNode);else _.stateNode=Xz(w,A,_.memoizedProps);else N!==A?(N===null?Y.stateNode!==null&&(Y=Y.stateNode,Y.parentNode.removeChild(Y)):N.count--,A===null?Yz(w,_.type,_.stateNode):Xz(w,A,_.memoizedProps)):A===null&&_.stateNode!==null&&RG(_,_.memoizedProps,Y.memoizedProps)}break;case 27:l2(J,_),r2(_),A&512&&(d0||Y===null||Y4(Y,Y.return)),Y!==null&&A&4&&RG(_,_.memoizedProps,Y.memoizedProps);break;case 5:if(l2(J,_),r2(_),A&512&&(d0||Y===null||Y4(Y,Y.return)),_.flags&32){w=_.stateNode;try{W1(_,nW,w)}catch(w1){X0(_,_.return,w1)}}A&4&&_.stateNode!=null&&(w=_.memoizedProps,RG(_,w,Y!==null?Y.memoizedProps:w)),A&1024&&($F=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(l2(J,_),r2(_),A&4){if(_.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.");A=_.memoizedProps,Y=Y!==null?Y.memoizedProps:A,w=_.stateNode;try{W1(_,Zw,w,Y,A)}catch(w1){X0(_,_.return,w1)}}break;case 3:if(w=l4(),iQ=null,N=l5,l5=h$(J.containerInfo),l2(J,_),l5=N,r2(_),A&4&&Y!==null&&Y.memoizedState.isDehydrated)try{W1(_,Tw,J.containerInfo)}catch(w1){X0(_,_.return,w1)}$F&&($F=!1,JW(_)),J.effectDuration+=Q$(w);break;case 4:A=l5,l5=h$(_.stateNode.containerInfo),l2(J,_),r2(_),l5=A;break;case 12:A=l4(),l2(J,_),r2(_),_.stateNode.effectDuration+=I9(A);break;case 31:l2(J,_),r2(_),A&4&&(A=_.updateQueue,A!==null&&(_.updateQueue=null,k$(_,A)));break;case 13:l2(J,_),r2(_),_.child.flags&8192&&_.memoizedState!==null!==(Y!==null&&Y.memoizedState!==null)&&(DQ=Q2()),A&4&&(A=_.updateQueue,A!==null&&(_.updateQueue=null,k$(_,A)));break;case 22:w=_.memoizedState!==null;var c=Y!==null&&Y.memoizedState!==null,q1=G3,T1=d0;if(G3=q1||w,d0=T1||c,l2(J,_),d0=T1,G3=q1,c&&!w&&!q1&&!T1&&(_.mode&d1)!==x1&&0<=D1&&0<=u1&&0.05<u1-D1&&iJ(_,D1,u1),r2(_),A&8192)_:for(J=_.stateNode,J._visibility=w?J._visibility&~G_:J._visibility|G_,!w||Y===null||c||G3||d0||(h6(_),(_.mode&d1)!==x1&&0<=D1&&0<=u1&&0.05<u1-D1&&$4(_,D1,u1,"Disconnect")),Y=null,J=_;;){if(J.tag===5||J.tag===26){if(Y===null){c=Y=J;try{N=c.stateNode,w?W1(c,Hw,N):W1(c,zw,c.stateNode,c.memoizedProps)}catch(w1){X0(c,c.return,w1)}}}else if(J.tag===6){if(Y===null){c=J;try{t=c.stateNode,w?W1(c,Yw,t):W1(c,Bw,t,c.memoizedProps)}catch(w1){X0(c,c.return,w1)}}}else if(J.tag===18){if(Y===null){c=J;try{o=c.stateNode,w?W1(c,Xw,o):W1(c,Ww,c.stateNode)}catch(w1){X0(c,c.return,w1)}}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===_)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===_)break _;for(;J.sibling===null;){if(J.return===null||J.return===_)break _;Y===J&&(Y=null),J=J.return}Y===J&&(Y=null),J.sibling.return=J.return,J=J.sibling}A&4&&(A=_.updateQueue,A!==null&&(Y=A.retryQueue,Y!==null&&(A.retryQueue=null,k$(_,Y))));break;case 19:l2(J,_),r2(_),A&4&&(A=_.updateQueue,A!==null&&(_.updateQueue=null,k$(_,A)));break;case 30:break;case 21:break;default:l2(J,_),r2(_)}(_.mode&d1)!==x1&&0<=D1&&0<=u1&&((D0||0.05<S0)&&Q4(_,D1,u1,S0,P0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<u1-D1&&(aY(_.return.alternate,_.return)||$4(_,D1,u1,"Mount"))),J5($),G4(q),P0=G,D0=F}function r2(_){var J=_.flags;if(J&2){try{W1(_,EO,_)}catch($){X0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function JW(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;JW(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function W4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)sY(_,J.alternate,J),J=J.sibling}function $W(_){var J=_5(),$=U4(),q=Z4(),G=F4();switch(_.tag){case 0:case 11:case 14:case 15:MG(_,_.return,X5),h6(_);break;case 1:Y4(_,_.return);var F=_.stateNode;typeof F.componentWillUnmount==="function"&&cY(_,_.return,F),h6(_);break;case 27:W1(_,l9,_.stateNode);case 26:case 5:Y4(_,_.return),h6(_);break;case 22:_.memoizedState===null&&h6(_);break;case 30:h6(_);break;default:h6(_)}(_.mode&d1)!==x1&&0<=D1&&0<=u1&&(D0||0.05<S0)&&Q4(_,D1,u1,S0,P0),J5(J),G4($),P0=q,D0=G}function h6(_){for(_=_.child;_!==null;)$W(_),_=_.sibling}function QW(_,J,$,q){var G=_5(),F=U4(),Y=Z4(),A=F4(),w=$.flags;switch($.tag){case 0:case 11:case 15:z4(_,$,q),mY($,X5);break;case 1:if(z4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&W1($,cZ,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{W1($,TO,J,_)}catch(N){X0($,$.return,N)}}q&&w&64&&pY($),E9($,$.return);break;case 27:iY($);case 26:case 5:z4(_,$,q),q&&J===null&&w&4&&rY($),E9($,$.return);break;case 12:if(q&&w&4){w=l4(),z4(_,$,q),q=$.stateNode,q.effectDuration+=I9(w);try{W1($,lY,$,J,r3,q.effectDuration)}catch(N){X0($,$.return,N)}}else z4(_,$,q);break;case 31:z4(_,$,q),q&&w&4&&nY(_,$);break;case 13:z4(_,$,q),q&&w&4&&eY(_,$);break;case 22:$.memoizedState===null&&z4(_,$,q),E9($,$.return);break;case 30:break;default:z4(_,$,q)}($.mode&d1)!==x1&&0<=D1&&0<=u1&&(D0||0.05<S0)&&Q4($,D1,u1,S0,P0),J5(G),G4(F),P0=Y,D0=A}function z4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)QW(_,J.alternate,J,$),J=J.sibling}function IG(_,J){var $=null;_!==null&&_.memoizedState!==null&&_.memoizedState.cachePool!==null&&($=_.memoizedState.cachePool.pool),_=null,J.memoizedState!==null&&J.memoizedState.cachePool!==null&&(_=J.memoizedState.cachePool.pool),_!==$&&(_!=null&&v6(_),$!=null&&w9($))}function fG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(v6(J),_!=null&&w9(_))}function x5(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(J=J.child;J!==null;){var F=J.sibling;qW(_,J,$,q,F!==null?F.actualStartTime:G),J=F}}function qW(_,J,$,q,G){var F=_5(),Y=U4(),A=Z4(),w=F4(),N=g3,t=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&d1)!==x1&&0<J.actualStartTime&&(J.flags&1)!==0&&aJ(J,J.actualStartTime,G,t0,$),x5(_,J,$,q,G),t&2048&&gY(J,E2|C5);break;case 1:(J.mode&d1)!==x1&&0<J.actualStartTime&&((J.flags&128)!==0?ZU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&aJ(J,J.actualStartTime,G,t0,$)),x5(_,J,$,q,G);break;case 3:var o=l4(),c=t0;t0=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,x5(_,J,$,q,G),t0=c,t&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(v6(q),$!=null&&w9($))),_.passiveEffectDuration+=Q$(o);break;case 12:if(t&2048){t=l4(),x5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=I9(t);try{W1(J,vO,J,J.alternate,r3,_.passiveEffectDuration)}catch(q1){X0(J,J.return,q1)}}else x5(_,J,$,q,G);break;case 31:t=t0,o=J.alternate!==null?J.alternate.memoizedState:null,c=J.memoizedState,o!==null&&c===null?(c=J.deletions,c!==null&&0<c.length&&c[0].tag===18?(t0=!1,o=o.hydrationErrors,o!==null&&ZU(J,J.actualStartTime,G,o)):t0=!0):t0=!1,x5(_,J,$,q,G),t0=t;break;case 13:t=t0,o=J.alternate!==null?J.alternate.memoizedState:null,c=J.memoizedState,o===null||o.dehydrated===null||c!==null&&c.dehydrated!==null?t0=!1:(c=J.deletions,c!==null&&0<c.length&&c[0].tag===18?(t0=!1,o=o.hydrationErrors,o!==null&&ZU(J,J.actualStartTime,G,o)):t0=!0),x5(_,J,$,q,G),t0=t;break;case 23:break;case 22:c=J.stateNode,o=J.alternate,J.memoizedState!==null?c._visibility&t4?x5(_,J,$,q,G):b9(_,J,$,q,G):c._visibility&t4?x5(_,J,$,q,G):(c._visibility|=t4,i8(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&d1)===x1||t0||(_=J.actualStartTime,0<=_&&0.05<G-_&&iJ(J,_,G),0<=D1&&0<=u1&&0.05<u1-D1&&iJ(J,D1,u1))),t&2048&&IG(o,J);break;case 24:x5(_,J,$,q,G),t&2048&&fG(J.alternate,J);break;default:x5(_,J,$,q,G)}if((J.mode&d1)!==x1){if(_=!t0&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&$4(J,$,G,"Mount");0<=D1&&0<=u1&&((D0||0.05<S0)&&Q4(J,D1,u1,S0,P0),_&&0.05<u1-D1&&$4(J,D1,u1,"Mount"))}J5(F),G4(Y),P0=A,D0=w,g3=N}function i8(_,J,$,q,G,F){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var Y=J.sibling;UW(_,J,$,q,G,Y!==null?Y.actualStartTime:F),J=Y}}function UW(_,J,$,q,G,F){var Y=_5(),A=U4(),w=Z4(),N=F4(),t=g3;G&&(J.mode&d1)!==x1&&0<J.actualStartTime&&(J.flags&1)!==0&&aJ(J,J.actualStartTime,F,t0,$);var o=J.flags;switch(J.tag){case 0:case 11:case 15:i8(_,J,$,q,G,F),gY(J,E2);break;case 23:break;case 22:var c=J.stateNode;J.memoizedState!==null?c._visibility&t4?i8(_,J,$,q,G,F):b9(_,J,$,q,F):(c._visibility|=t4,i8(_,J,$,q,G,F)),G&&o&2048&&IG(J.alternate,J);break;case 24:i8(_,J,$,q,G,F),G&&o&2048&&fG(J.alternate,J);break;default:i8(_,J,$,q,G,F)}(J.mode&d1)!==x1&&0<=D1&&0<=u1&&(D0||0.05<S0)&&Q4(J,D1,u1,S0,P0),J5(Y),G4(A),P0=w,D0=N,g3=t}function b9(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var F=J.child;F!==null;){J=F.sibling;var Y=_,A=$,w=q,N=J!==null?J.actualStartTime:G,t=g3;(F.mode&d1)!==x1&&0<F.actualStartTime&&(F.flags&1)!==0&&aJ(F,F.actualStartTime,N,t0,A);var o=F.flags;switch(F.tag){case 22:b9(Y,F,A,w,N),o&2048&&IG(F.alternate,F);break;case 24:b9(Y,F,A,w,N),o&2048&&fG(F.alternate,F);break;default:b9(Y,F,A,w,N)}g3=t,F=J}}function a8(_,J,$){if(_.subtreeFlags&N_)for(_=_.child;_!==null;)GW(_,J,$),_=_.sibling}function GW(_,J,$){switch(_.tag){case 26:a8(_,J,$),_.flags&N_&&_.memoizedState!==null&&Pw($,l5,_.memoizedState,_.memoizedProps);break;case 5:a8(_,J,$);break;case 3:case 4:var q=l5;l5=h$(_.stateNode.containerInfo),a8(_,J,$),l5=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=N_,N_=16777216,a8(_,J,$),N_=q):a8(_,J,$));break;default:a8(_,J,$)}}function ZW(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function u9(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=_5();U2=q,XW(q,_),(q.mode&d1)!==x1&&0<=D1&&0<=u1&&0.05<u1-D1&&$4(q,D1,u1,"Unmount"),J5(G)}ZW(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)FW(_),_=_.sibling}function FW(_){var J=_5(),$=U4(),q=Z4(),G=F4();switch(_.tag){case 0:case 11:case 15:u9(_),_.flags&2048&&TG(_,_.return,E2|C5);break;case 3:var F=l4();u9(_),_.stateNode.passiveEffectDuration+=Q$(F);break;case 12:F=l4(),u9(_),_.stateNode.passiveEffectDuration+=I9(F);break;case 22:F=_.stateNode,_.memoizedState!==null&&F._visibility&t4&&(_.return===null||_.return.tag!==13)?(F._visibility&=~t4,D$(_),(_.mode&d1)!==x1&&0<=D1&&0<=u1&&0.05<u1-D1&&$4(_,D1,u1,"Disconnect")):u9(_);break;default:u9(_)}(_.mode&d1)!==x1&&0<=D1&&0<=u1&&(D0||0.05<S0)&&Q4(_,D1,u1,S0,P0),J5(J),G4($),D0=G,P0=q}function D$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=_5();U2=q,XW(q,_),(q.mode&d1)!==x1&&0<=D1&&0<=u1&&0.05<u1-D1&&$4(q,D1,u1,"Unmount"),J5(G)}ZW(_)}for(_=_.child;_!==null;)KW(_),_=_.sibling}function KW(_){var J=_5(),$=U4(),q=Z4(),G=F4();switch(_.tag){case 0:case 11:case 15:TG(_,_.return,E2),D$(_);break;case 22:var F=_.stateNode;F._visibility&t4&&(F._visibility&=~t4,D$(_));break;default:D$(_)}(_.mode&d1)!==x1&&0<=D1&&0<=u1&&(D0||0.05<S0)&&Q4(_,D1,u1,S0,P0),J5(J),G4($),D0=G,P0=q}function XW(_,J){for(;U2!==null;){var $=U2,q=$,G=J,F=_5(),Y=U4(),A=Z4(),w=F4();switch(q.tag){case 0:case 11:case 15:TG(q,G,E2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&v6(G));break;case 24:w9(q.memoizedState.cache)}if((q.mode&d1)!==x1&&0<=D1&&0<=u1&&(D0||0.05<S0)&&Q4(q,D1,u1,S0,P0),J5(F),G4(Y),D0=w,P0=A,q=$.child,q!==null)q.return=$,U2=q;else _:for($=_;U2!==null;){if(q=U2,F=q.sibling,Y=q.return,tY(q),q===$){U2=null;break _}if(F!==null){F.return=Y,U2=F;break _}U2=Y}}}function xO(){Uf.forEach(function(_){return _()})}function HW(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||Z1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function Q5(_){if((Z0&o0)!==G2&&a1!==0)return a1&-a1;var J=Z1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),DG()):_1()}function YW(){if(a2===0)if((a1&536870912)===0||J0){var _=o$;o$<<=1,(o$&3932160)===0&&(o$=262144),a2=_}else a2=536870912;return _=K5.current,_!==null&&(_.flags|=32),a2}function k0(_,J,$){if(y7&&console.error("useInsertionEffect must not schedule updates."),WF&&(bQ=!0),_===L0&&(z0===_8||z0===J8)||_.cancelPendingCommit!==null)t8(_,0),y3(_,a1,a2,!1);if(L2(_,$),(Z0&o0)!==G2&&_===L0){if(T4)switch(J.tag){case 0:case 11:case 15:_=s1&&m(s1)||"Unknown",hA.has(_)||(hA.add(_),J=m(J)||"Unknown",console.error("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://react.dev/link/setstate-in-render",J,_,_));break;case 1:xA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),xA=!0)}}else O4&&I6(_,J,$),aO(J),_===L0&&((Z0&o0)===G2&&(_6|=$),j0===o3&&y3(_,a1,a2,!1)),B4(_)}function WW(_,J,$){if((Z0&(o0|H5))!==G2)throw Error("Should not already be working.");if(a1!==0&&s1!==null){var q=s1,G=Q2();switch(kB){case j_:case _8:var F=Y_;O0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",F,G,T5,void 0,"primary-light")):console.timeStamp("Suspended",F,G,T5,void 0,"primary-light"));break;case J8:F=Y_,O0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",F,G,T5,void 0,"primary-light")):console.timeStamp("Action",F,G,T5,void 0,"primary-light"));break;default:O0&&(q=G-Y_,3>q||console.timeStamp("Blocked",Y_,G,T5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}F=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||f2(_,J))?mO(_,J):NG(_,J,!0);var Y=$;do{if(F===Z3){k7&&!$&&y3(_,J,0,!1),J=z0,Y_=c0(),kB=J;break}else{if(q=Q2(),G=_.current.alternate,Y&&!hO(G)){n2(J),G=q2,F=q,!O0||F<=G||(b0?b0.run(console.timeStamp.bind(console,"Teared Render",G,F,e1,n1,"error")):console.timeStamp("Teared Render",G,F,e1,n1,"error")),m6(J,q),F=NG(_,J,!1),Y=!1;continue}if(F===e6){if(Y=J,_.errorRecoveryDisabledLanes&Y)var A=0;else A=_.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){n2(J),FU(q2,q,J,b0),m6(J,q),J=A;_:{q=_,F=Y,Y=k_;var w=q.current.memoizedState.isDehydrated;if(w&&(t8(q,A).flags|=256),A=NG(q,A,!1),A!==e6){if(UF&&!w){q.errorRecoveryDisabledLanes|=F,_6|=F,F=o3;break _}q=b2,b2=Y,q!==null&&(b2===null?b2=q:b2.push.apply(b2,q))}F=A}if(Y=!1,F!==e6)continue;else q=Q2()}}if(F===S_){n2(J),FU(q2,q,J,b0),m6(J,q),t8(_,0),y3(_,J,0,!0);break}_:{switch($=_,F){case Z3:case S_:throw Error("Root did not complete. This is a bug in React.");case o3:if((J&4194048)!==J)break;case SQ:n2(J),WH(q2,q,J,b0),m6(J,q),G=J,(G&127)!==0?WQ=q:(G&4194048)!==0&&(zQ=q),y3($,J,a2,!n3);break _;case e6:b2=null;break;case CQ:case PA:break;default:throw Error("Unknown root exit status.")}if(Z1.actQueue!==null)CG($,G,J,b2,D_,kQ,a2,_6,$8,F,null,null,q2,q);else{if((J&62914560)===J&&(Y=DQ+SA-Q2(),10<Y)){if(y3($,J,a2,!n3),I2($,0,!0)!==0)break _;r5=J,$.timeoutHandle=iA(zW.bind(null,$,G,b2,D_,kQ,J,a2,_6,$8,n3,F,"Throttled",q2,q),Y);break _}zW($,G,b2,D_,kQ,J,a2,_6,$8,n3,F,null,q2,q)}}}break}while(1);B4(_)}function zW(_,J,$,q,G,F,Y,A,w,N,t,o,c,q1){_.timeoutHandle=Z8;var T1=J.subtreeFlags,w1=null;if(T1&8192||(T1&16785408)===16785408){if(w1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:m4},GW(J,F,w1),T1=(F&62914560)===F?DQ-Q2():(F&4194048)===F?CA-Q2():0,T1=Nw(w1,T1),T1!==null){r5=F,_.cancelPendingCommit=T1(CG.bind(null,_,J,F,$,q,G,Y,A,w,t,w1,w1.waitingForViewTransition?"Waiting for the previous Animation":0<w1.count?0<w1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":w1.imgCount===1?"Suspended on an Image":0<w1.imgCount?"Suspended on Images":null,c,q1)),y3(_,F,Y,!N);return}}CG(_,J,F,$,q,G,Y,A,w,t,w1,o,c,q1)}function hO(_){for(var J=_;;){var $=J.tag;if(($===0||$===11||$===15)&&J.flags&16384&&($=J.updateQueue,$!==null&&($=$.stores,$!==null)))for(var q=0;q<$.length;q++){var G=$[q],F=G.getSnapshot;G=G.value;try{if(!D2(F(),G))return!1}catch(Y){return!1}}if($=J.child,J.subtreeFlags&16384&&$!==null)$.return=J,J=$;else{if(J===_)break;for(;J.sibling===null;){if(J.return===null||J.return===_)return!0;J=J.return}J.sibling.return=J.return,J=J.sibling}}return!0}function y3(_,J,$,q){J&=~GF,J&=~_6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var F=31-j2(G),Y=1<<F;q[F]=-1,G&=~Y}$!==0&&v5(_,$,J)}function s8(){return(Z0&(o0|H5))===G2?(m9(0,!1),!1):!0}function PG(){if(s1!==null){if(z0===i2)var _=s1.return;else _=s1,_$(),bU(_),w7=null,O_=0,_=s1;for(;_!==null;)hY(_.alternate,_),_=_.return;s1=null}}function m6(_,J){(_&127)!==0&&(d3=J),(_&4194048)!==0&&(N4=J),(_&62914560)!==0&&(jB=J),(_&2080374784)!==0&&(VB=J)}function t8(_,J){O0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",n1,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",n1,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",n1,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",n1,"primary-light"));var $=q2;if(q2=c0(),a1!==0&&0<$){if(n2(a1),j0===CQ||j0===o3)WH($,q2,J,b0);else{var q=q2,G=b0;if(O0&&!(q<=$)){var F=(J&738197653)===J?"tertiary-dark":"primary-dark",Y=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,Y,$,q,e1,n1,F)):console.timeStamp(Y,$,q,e1,n1,F)}}m6(a1,q2)}if($=b0,b0=null,(J&127)!==0){b0=K_,G=0<=P4&&P4<d3?d3:P4,q=0<=r6&&r6<d3?d3:r6,F=0<=q?q:0<=G?G:q2,0<=WQ?(n2(2),zH(WQ,F,J,$)):(BQ&127)!==0&&(n2(2),R9(d3,F,$3)),$=G;var A=q,w=X_,N=0<T7,t=i3===F_,o=i3===YQ;if(G=q2,q=K_,F=xZ,Y=hZ,O0){if(e1="Blocking",0<$?$>G&&($=G):$=G,0<A?A>$&&(A=$):A=$,w!==null&&$>A){var c=N?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,N?"Consecutive":"Event: "+w,A,$,e1,n1,c)):console.timeStamp(N?"Consecutive":"Event: "+w,A,$,e1,n1,c)}G>$&&(A=t?"error":(J&738197653)===J?"tertiary-light":"primary-light",t=o?"Promise Resolved":t?"Cascading Update":5<G-$?"Update Blocked":"Update",o=[],Y!=null&&o.push(["Component name",Y]),F!=null&&o.push(["Method name",F]),$={start:$,end:G,detail:{devtools:{properties:o,track:e1,trackGroup:n1,color:A}}},q?q.run(performance.measure.bind(performance,t,$)):performance.measure(t,$))}P4=-1.1,i3=0,hZ=xZ=null,WQ=-1.1,T7=r6,r6=-1.1,d3=c0()}if((J&4194048)!==0&&(b0=H_,G=0<=J3&&J3<N4?N4:J3,$=0<=P5&&P5<N4?N4:P5,q=0<=a3&&a3<N4?N4:a3,F=0<=q?q:0<=$?$:q2,0<=zQ?(n2(256),zH(zQ,F,J,b0)):(BQ&4194048)!==0&&(n2(256),R9(N4,F,$3)),o=q,A=d6,w=0<s3,N=mZ===YQ,F=q2,q=H_,Y=CB,t=SB,O0&&(e1="Transition",0<$?$>F&&($=F):$=F,0<G?G>$&&(G=$):G=$,0<o?o>G&&(o=G):o=G,G>o&&A!==null&&(c=w?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+A,o,G,e1,n1,c)):console.timeStamp(w?"Consecutive":"Event: "+A,o,G,e1,n1,c)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,e1,n1,"primary-dark")):console.timeStamp("Action",G,$,e1,n1,"primary-dark")),F>$&&(G=N?"Promise Resolved":5<F-$?"Update Blocked":"Update",o=[],t!=null&&o.push(["Component name",t]),Y!=null&&o.push(["Method name",Y]),$={start:$,end:F,detail:{devtools:{properties:o,track:e1,trackGroup:n1,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),P5=J3=-1.1,mZ=0,zQ=-1.1,s3=a3,a3=-1.1,N4=c0()),(J&62914560)!==0&&(BQ&62914560)!==0&&(n2(4194304),R9(jB,q2,$3)),(J&2080374784)!==0&&(BQ&2080374784)!==0&&(n2(268435456),R9(VB,q2,$3)),$=_.timeoutHandle,$!==Z8&&(_.timeoutHandle=Z8,Mf($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),r5=0,PG(),L0=_,s1=$=g4(_.current,null),a1=J,z0=i2,Y5=null,n3=!1,k7=f2(_,J),UF=!1,j0=Z3,$8=a2=GF=_6=e3=0,b2=k_=null,kQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-j2(q),F=1<<G,J|=_[G],q&=~F;return S4=J,sJ(),_=OB(),1000<_-RB&&(Z1.recentlyCreatedOwnerStacks=0,RB=_),p5.discardPendingWarnings(),$}function BW(_,J){g1=null,Z1.H=P_,Z1.getCurrentStack=null,T4=!1,G5=null,J===O7||J===TQ?(J=bH(),z0=j_):J===lZ?(J=bH(),z0=NA):z0=J===_F?qF:J!==null&&typeof J==="object"&&typeof J.then==="function"?V_:jQ,Y5=J;var $=s1;$===null?(j0=S_,P$(_,e2(J,_.current))):$.mode&d1&&IU($)}function AW(){var _=K5.current;return _===null?!0:(a1&4194048)===a1?N5===null?!0:!1:(a1&62914560)===a1||(a1&536870912)!==0?_===N5:!1}function LW(){var _=Z1.H;return Z1.H=P_,_===null?P_:_}function MW(){var _=Z1.A;return Z1.A=qf,_}function y$(_){b0===null&&(b0=_._debugTask==null?null:_._debugTask)}function v$(){j0=o3,n3||(a1&4194048)!==a1&&K5.current!==null||(k7=!0),(e3&134217727)===0&&(_6&134217727)===0||L0===null||y3(L0,a1,a2,!1)}function NG(_,J,$){var q=Z0;Z0|=o0;var G=LW(),F=MW();if(L0!==_||a1!==J){if(O4){var Y=_.memoizedUpdaters;0<Y.size&&(h9(_,a1),Y.clear()),e5(_,J)}D_=null,t8(_,J)}J=!1,Y=j0;_:do try{if(z0!==i2&&s1!==null){var A=s1,w=Y5;switch(z0){case qF:PG(),Y=SQ;break _;case j_:case _8:case J8:case V_:K5.current===null&&(J=!0);var N=z0;if(z0=i2,Y5=null,o8(_,A,w,N),$&&k7){Y=Z3;break _}break;default:N=z0,z0=i2,Y5=null,o8(_,A,w,N)}}TW(),Y=j0;break}catch(t){BW(_,t)}while(1);return J&&_.shellSuspendCounter++,_$(),Z0=q,Z1.H=G,Z1.A=F,s1===null&&(L0=null,a1=0,sJ()),Y}function TW(){for(;s1!==null;)RW(s1)}function mO(_,J){var $=Z0;Z0|=o0;var q=LW(),G=MW();if(L0!==_||a1!==J){if(O4){var F=_.memoizedUpdaters;0<F.size&&(h9(_,a1),F.clear()),e5(_,J)}D_=null,yQ=Q2()+jA,t8(_,J)}else k7=f2(_,J);_:do try{if(z0!==i2&&s1!==null)J:switch(J=s1,F=Y5,z0){case jQ:z0=i2,Y5=null,o8(_,J,F,jQ);break;case _8:case J8:if(vH(F)){z0=i2,Y5=null,OW(J);break}J=function(){z0!==_8&&z0!==J8||L0!==_||(z0=VQ),B4(_)},F.then(J,J);break _;case j_:z0=VQ;break _;case NA:z0=QF;break _;case VQ:vH(F)?(z0=i2,Y5=null,OW(J)):(z0=i2,Y5=null,o8(_,J,F,VQ));break;case QF:var Y=null;switch(s1.tag){case 26:Y=s1.memoizedState;case 5:case 27:var A=s1;if(Y?Wz(Y):A.stateNode.complete){z0=i2,Y5=null;var w=A.sibling;if(w!==null)s1=w;else{var N=A.return;N!==null?(s1=N,E$(N)):s1=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}z0=i2,Y5=null,o8(_,J,F,QF);break;case V_:z0=i2,Y5=null,o8(_,J,F,V_);break;case qF:PG(),j0=SQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Z1.actQueue!==null?TW():gO();break}catch(t){BW(_,t)}while(1);if(_$(),Z1.H=q,Z1.A=G,Z0=$,s1!==null)return Z3;return L0=null,a1=0,sJ(),j0}function gO(){for(;s1!==null&&!hw();)RW(s1)}function RW(_){var J=_.alternate;(_.mode&d1)!==x1?(wU(_),J=W1(_,AG,J,_,S4),IU(_)):J=W1(_,AG,J,_,S4),_.memoizedProps=_.pendingProps,J===null?E$(_):s1=J}function OW(_){var J=W1(_,pO,_);_.memoizedProps=_.pendingProps,J===null?E$(_):s1=J}function pO(_){var J=_.alternate,$=(_.mode&d1)!==x1;switch($&&wU(_),_.tag){case 15:case 0:J=DY(J,_,_.pendingProps,_.type,void 0,a1);break;case 11:J=DY(J,_,_.pendingProps,_.type.render,_.ref,a1);break;case 5:bU(_);default:hY(J,_),_=s1=RH(_,S4),J=AG(J,_,S4)}return $&&IU(_),J}function o8(_,J,$,q){_$(),bU(J),w7=null,O_=0;var G=J.return;try{if(NO(_,G,J,$,a1)){j0=S_,P$(_,e2($,_.current)),s1=null;return}}catch(F){if(G!==null)throw s1=G,F;j0=S_,P$(_,e2($,_.current)),s1=null;return}if(J.flags&32768){if(J0||q===jQ)_=!0;else if(k7||(a1&536870912)!==0)_=!1;else if(n3=_=!0,q===_8||q===J8||q===j_||q===V_)q=K5.current,q!==null&&q.tag===13&&(q.flags|=16384);wW(J,_)}else E$(J)}function E$(_){var J=_;do{if((J.flags&32768)!==0){wW(J,n3);return}var $=J.alternate;if(_=J.return,wU(J),$=W1(J,jO,$,J,S4),(J.mode&d1)!==x1&&jH(J),$!==null){s1=$;return}if(J=J.sibling,J!==null){s1=J;return}s1=J=_}while(J!==null);j0===Z3&&(j0=PA)}function wW(_,J){do{var $=VO(_.alternate,_);if($!==null){$.flags&=32767,s1=$;return}if((_.mode&d1)!==x1){jH(_),$=_.actualDuration;for(var q=_.child;q!==null;)$+=q.actualDuration,q=q.sibling;_.actualDuration=$}if($=_.return,$!==null&&($.flags|=32768,$.subtreeFlags=0,$.deletions=null),!J&&(_=_.sibling,_!==null)){s1=_;return}s1=_=$}while(_!==null);j0=SQ,s1=null}function CG(_,J,$,q,G,F,Y,A,w,N,t,o,c,q1){_.cancelPendingCommit=null;do x9();while(a0!==$6);if(p5.flushLegacyContextWarning(),p5.flushPendingUnsafeLifecycleWarnings(),(Z0&(o0|H5))!==G2)throw Error("Should not already be working.");if(n2($),N===e6?FU(c,q1,$,b0):q!==null?WO(c,q1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,b0):YO(c,q1,$,b0),J!==null){if($===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),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.");if(F=J.lanes|J.childLanes,F|=yZ,M3(_,$,F,Y,A,w),_===L0&&(s1=L0=null,a1=0),D7=J,Q6=_,r5=$,KF=F,HF=G,EA=q,XF=q1,bA=o,d5=vQ,uA=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,iO(Q7,function(){return x_=window.event,d5===vQ&&(d5=FF),CW(),null})):(_.callbackNode=null,_.callbackPriority=0),_3=null,r3=c0(),o!==null&&zO(q1,r3,o,b0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=Z1.T,Z1.T=null,G=H0.p,H0.p=Z5,Y=Z0,Z0|=H5;try{bO(_,J,$)}finally{Z0=Y,H0.p=G,Z1.T=q}}a0=kA,IW(),fW(),PW()}}function IW(){if(a0===kA){a0=$6;var _=Q6,J=D7,$=r5,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=Z1.T,Z1.T=null;var G=H0.p;H0.p=Z5;var F=Z0;Z0|=H5;try{j7=$,V7=_,q$(),_W(J,_),V7=j7=null,$=wF;var Y=XH(_.containerInfo),A=$.focusedElem,w=$.selectionRange;if(Y!==A&&A&&A.ownerDocument&&KH(A.ownerDocument.documentElement,A)){if(w!==null&&UU(A)){var{start:N,end:t}=w;if(t===void 0&&(t=N),"selectionStart"in A)A.selectionStart=N,A.selectionEnd=Math.min(t,A.value.length);else{var o=A.ownerDocument||document,c=o&&o.defaultView||window;if(c.getSelection){var q1=c.getSelection(),T1=A.textContent.length,w1=Math.min(w.start,T1),R0=w.end===void 0?w1:Math.min(w.end,T1);!q1.extend&&w1>R0&&(Y=R0,R0=w1,w1=Y);var Q0=FH(A,w1),p=FH(A,R0);if(Q0&&p&&(q1.rangeCount!==1||q1.anchorNode!==Q0.node||q1.anchorOffset!==Q0.offset||q1.focusNode!==p.node||q1.focusOffset!==p.offset)){var l=o.createRange();l.setStart(Q0.node,Q0.offset),q1.removeAllRanges(),w1>R0?(q1.addRange(l),q1.extend(p.node,p.offset)):(l.setEnd(p.node,p.offset),q1.addRange(l))}}}}o=[];for(q1=A;q1=q1.parentNode;)q1.nodeType===1&&o.push({element:q1,left:q1.scrollLeft,top:q1.scrollTop});typeof A.focus==="function"&&A.focus();for(A=0;A<o.length;A++){var a=o[A];a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}tQ=!!OF,wF=OF=null}finally{Z0=F,H0.p=G,Z1.T=q}}_.current=J,a0=DA}}function fW(){if(a0===DA){a0=$6;var _=uA;if(_!==null){r3=c0();var J=e4,$=r3;!O0||$<=J||($3?$3.run(console.timeStamp.bind(console,_,J,$,e1,n1,"secondary-light")):console.timeStamp(_,J,$,e1,n1,"secondary-light"))}_=Q6,J=D7,$=r5;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=Z1.T,Z1.T=null;var G=H0.p;H0.p=Z5;var F=Z0;Z0|=H5;try{j7=$,V7=_,q$(),sY(_,J.alternate,J),V7=j7=null}finally{Z0=F,H0.p=G,Z1.T=q}}_=XF,J=bA,e4=c0(),_=J===null?_:r3,J=e4,$=d5===ZF,q=b0,_3!==null?BH(_,J,_3,!1,q):!O0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,e1,n1,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,e1,n1,$?"error":"secondary-dark")),a0=yA}}function PW(){if(a0===vA||a0===yA){if(a0===vA){var _=e4;e4=c0();var J=e4,$=d5===ZF;!O0||J<=_||($3?$3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,e1,n1,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,e1,n1,$?" error":"secondary-light")),d5!==ZF&&(d5=VA)}a0=$6,mw(),_=Q6;var q=D7;J=r5,$=EA;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?a0=EQ:(a0=$6,D7=Q6=null,NW(_,_.pendingLanes),Q8=0,v_=null);var F=_.pendingLanes;if(F===0&&(J6=null),G||kW(_),F=S(J),q=q.stateNode,T2&&typeof T2.onCommitFiberRoot==="function")try{var Y=(q.current.flags&128)===128;switch(F){case Z5:var A=HZ;break;case m5:A=YZ;break;case w4:A=Q7;break;case e$:A=WZ;break;default:A=Q7}T2.onCommitFiberRoot(q7,q,A,Y)}catch(o){R4||(R4=!0,console.error("React instrumentation encountered an error: %o",o))}if(O4&&_.memoizedUpdaters.clear(),xO(),$!==null){Y=Z1.T,A=H0.p,H0.p=Z5,Z1.T=null;try{var w=_.onRecoverableError;for(q=0;q<$.length;q++){var N=$[q],t=cO(N.stack);W1(N.source,w,N.value,t)}}finally{Z1.T=Y,H0.p=A}}(r5&3)!==0&&x9(),B4(_),F=_.pendingLanes,(J&261930)!==0&&(F&42)!==0?(LQ=!0,_===YF?y_++:(y_=0,YF=_)):y_=0,G||m6(J,e4),m9(0,!1)}}function cO(_){return _={componentStack:_},Object.defineProperty(_,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),_}function NW(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,w9(J)))}function x9(){return IW(),fW(),PW(),CW()}function CW(){if(a0!==EQ)return!1;var _=Q6,J=KF;KF=0;var $=S(r5),q=w4===0||w4>$?w4:$;$=Z1.T;var G=H0.p;try{H0.p=q,Z1.T=null;var F=HF;HF=null,q=Q6;var Y=r5;if(a0=$6,D7=Q6=null,r5=0,(Z0&(o0|H5))!==G2)throw Error("Cannot flush passive effects while already rendering.");n2(Y),WF=!0,bQ=!1;var A=0;if(_3=null,A=Q2(),d5===VA)R9(e4,A,$3);else{var w=e4,N=A,t=d5===FF;!O0||N<=w||(b0?b0.run(console.timeStamp.bind(console,t?"Waiting for Paint":"Waiting",w,N,e1,n1,"secondary-light")):console.timeStamp(t?"Waiting for Paint":"Waiting",w,N,e1,n1,"secondary-light"))}w=Z0,Z0|=H5;var o=q.current;q$(),FW(o);var c=q.current;o=XF,q$(),qW(q,c,Y,F,o),kW(q),Z0=w;var q1=Q2();if(c=A,o=b0,_3!==null?BH(c,q1,_3,!0,o):!O0||q1<=c||(o?o.run(console.timeStamp.bind(console,"Remaining Effects",c,q1,e1,n1,"secondary-dark")):console.timeStamp("Remaining Effects",c,q1,e1,n1,"secondary-dark")),m6(Y,q1),m9(0,!1),bQ?q===v_?Q8++:(Q8=0,v_=q):Q8=0,bQ=WF=!1,T2&&typeof T2.onPostCommitFiberRoot==="function")try{T2.onPostCommitFiberRoot(q7,q)}catch(w1){R4||(R4=!0,console.error("React instrumentation encountered an error: %o",w1))}var T1=q.current.stateNode;return T1.effectDuration=0,T1.passiveEffectDuration=0,!0}finally{H0.p=G,Z1.T=$,NW(_,J)}}function SW(_,J,$){J=e2($,J),VH(J),J=UG(_.stateNode,J,2),_=j3(_,J,2),_!==null&&(L2(_,2),B4(_))}function X0(_,J,$){if(y7=!1,_.tag===3)SW(_,_,$);else{for(;J!==null;){if(J.tag===3){SW(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(J6===null||!J6.has(q))){_=e2($,_),VH(_),$=GG(2),q=j3(J,$,2),q!==null&&(ZG($,q,J,_),L2(q,2),B4(q));return}}J=J.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
164
164
 
165
165
  Error message:
166
166
 
167
- %s`,$)}}function CG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new eI;var G=new Set;q.set(J,G)}else G=q.get(J),G===void 0&&(G=new Set,q.set(J,G));G.has($)||(UF=!0,G.add($),q=xO.bind(null,_,J,$),T4&&x9(_,$),J.then(q,q))}function xO(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>I4&&(l3=I4=p0(),Z_=KQ("Promise Resolved"),r3=XQ):($&4194048)!==0&&0>O5&&(f4=O5=p0(),K_=KQ("Promise Resolved"),mZ=XQ),UW()&&G1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
167
+ %s`,$)}}function SG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new Gf;var G=new Set;q.set(J,G)}else G=q.get(J),G===void 0&&(G=new Set,q.set(J,G));G.has($)||(UF=!0,G.add($),q=lO.bind(null,_,J,$),O4&&h9(_,$),J.then(q,q))}function lO(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>P4&&(d3=P4=c0(),K_=HQ("Promise Resolved"),i3=YQ):($&4194048)!==0&&0>P5&&(N4=P5=c0(),H_=HQ("Promise Resolved"),mZ=YQ),HW()&&Z1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
168
168
 
169
169
  When testing, code that resolves suspended data should be wrapped into act(...):
170
170
 
@@ -173,7 +173,7 @@ act(() => {
173
173
  });
174
174
  /* assert on the output */
175
175
 
176
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),z0===_&&(a1&$)===$&&(V0===s3||V0===PQ&&(a1&62914560)===a1&&$2()-SQ<wz?(G0&t0)===U2&&s8(_,0):GF|=$,$8===a1&&($8=0)),W4(_)}function IW(_,J){J===0&&(J=B2()),_=M2(_,J),_!==null&&(L2(_,J),W4(_))}function uO(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),IW(_,$)}function hO(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:G}=_;G!==null&&($=G.retryLane);break;case 19:q=_.stateNode;break;case 22:q=_.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}q!==null&&q.delete(J),IW(_,$)}function VG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,F=G.type===r$;F=$||F,G.tag!==22?G.flags&67108864?F&&Y1(G,fW,q,G):VG(q,G,F):G.memoizedState===null&&(F&&G.flags&8192?Y1(G,fW,q,G):G.subtreeFlags&67108864&&Y1(G,VG,q,G,F)),J=J.sibling}}function fW(_,J){_0(!0);try{tY(J),QW(J),oY(_,J.alternate,J,!1),eY(_,J,0,null,!1,0)}finally{_0(!1)}}function PW(_){var J=!0;_.current.mode&(R2|u5)||(J=!1),VG(_,_.current,J)}function NW(_){if((G0&t0)===U2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=t(_)||"ReactComponent",EQ!==null){if(EQ.has(J))return;EQ.add(J)}else EQ=new Set([J]);Y1(_,function(){console.error("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 tries to update the component. Move this work to useEffect instead.")})}}}function x9(_,J){T4&&_.memoizedUpdaters.forEach(function($){I6(_,$,J)})}function mO(_,J){var $=G1.actQueue;return $!==null?($.push(J),$f):XZ(_,J)}function gO(_){UW()&&G1.actQueue===null&&Y1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
176
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),L0===_&&(a1&$)===$&&(j0===o3||j0===CQ&&(a1&62914560)===a1&&Q2()-DQ<SA?(Z0&o0)===G2&&t8(_,0):GF|=$,$8===a1&&($8=0)),B4(_)}function jW(_,J){J===0&&(J=B2()),_=M2(_,J),_!==null&&(L2(_,J),B4(_))}function rO(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),jW(_,$)}function dO(_,J){var $=0;switch(_.tag){case 31:case 13:var{stateNode:q,memoizedState:G}=_;G!==null&&($=G.retryLane);break;case 19:q=_.stateNode;break;case 22:q=_.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}q!==null&&q.delete(J),jW(_,$)}function jG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,F=G.type===i$;F=$||F,G.tag!==22?G.flags&67108864?F&&W1(G,VW,q,G):jG(q,G,F):G.memoizedState===null&&(F&&G.flags&8192?W1(G,VW,q,G):G.subtreeFlags&67108864&&W1(G,jG,q,G,F)),J=J.sibling}}function VW(_,J){_0(!0);try{$W(J),KW(J),QW(_,J.alternate,J,!1),UW(_,J,0,null,!1,0)}finally{_0(!1)}}function kW(_){var J=!0;_.current.mode&(R2|g5)||(J=!1),jG(_,_.current,J)}function DW(_){if((Z0&o0)===G2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=m(_)||"ReactComponent",uQ!==null){if(uQ.has(J))return;uQ.add(J)}else uQ=new Set([J]);W1(_,function(){console.error("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 tries to update the component. Move this work to useEffect instead.")})}}}function h9(_,J){O4&&_.memoizedUpdaters.forEach(function($){I6(_,$,J)})}function iO(_,J){var $=Z1.actQueue;return $!==null?($.push(J),Kf):XZ(_,J)}function aO(_){HW()&&Z1.actQueue===null&&W1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
177
177
 
178
178
  When testing, code that causes React state updates should be wrapped into act(...):
179
179
 
@@ -182,67 +182,67 @@ act(() => {
182
182
  });
183
183
  /* assert on the output */
184
184
 
185
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,t(_))})}function W4(_){_!==y7&&_.next===null&&(y7===null?bQ=y7=_:y7=y7.next=_),xQ=!0,G1.actQueue!==null?BF||(BF=!0,SW()):AF||(AF=!0,SW())}function u9(_,J){if(!zF&&xQ){zF=!0;do{var $=!1;for(var q=bQ;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var F=0;else{var{suspendedLanes:H,pingedLanes:z}=q;F=(1<<31-V2(42|_)+1)-1,F&=G&~(H&~z),F=F&201326741?F&201326741|1:F?F|2:0}F!==0&&($=!0,VW(q,F))}else F=a1,F=I2(q,q===z0?F:0,q.cancelPendingCommit!==null||q.timeoutHandle!==Z8),(F&3)===0||f2(q,F)||($=!0,VW(q,F));q=q.next}}while($);zF=!1}}function pO(){b_=window.event,SG()}function SG(){xQ=BF=AF=!1;var _=0;$6!==0&&sO()&&(_=$6);for(var J=$2(),$=null,q=bQ;q!==null;){var G=q.next,F=jW(q,J);if(F===0)q.next=null,$===null?bQ=G:$.next=G,G===null&&(y7=$);else if($=q,_!==0||(F&3)!==0)xQ=!0;q=G}i0!==_6&&i0!==yQ||u9(_,!1),$6!==0&&($6=0)}function jW(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,F=_.pendingLanes&-62914561;0<F;){var H=31-V2(F),z=1<<H,w=G[H];if(w===-1){if((z&$)===0||(z&q)!==0)G[H]=P2(z,J)}else w<=J&&(_.expiredLanes|=z);F&=~z}if(J=z0,$=a1,$=I2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==Z8),q=_.callbackNode,$===0||_===J&&(Y0===_8||Y0===J8)||_.cancelPendingCommit!==null)return q!==null&&DG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||f2(_,$)){if(J=$&-$,J!==_.callbackPriority||G1.actQueue!==null&&q!==LF)DG(q);else return J;switch(C($)){case G5:case x5:$=YZ;break;case R4:$=$7;break;case o$:$=WZ;break;default:$=$7}return q=CW.bind(null,_),G1.actQueue!==null?(G1.actQueue.push(q),$=LF):$=XZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&DG(q),_.callbackPriority=2,_.callbackNode=null,2}function CW(_,J){if(BQ=AQ=!1,b_=window.event,i0!==_6&&i0!==yQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(c5===kQ&&(c5=FF),b9()&&_.callbackNode!==$)return null;var q=a1;if(q=I2(_,_===z0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==Z8),q===0)return null;return ZW(_,q,J),jW(_,$2()),_.callbackNode!=null&&_.callbackNode===$?CW.bind(null,_):null}function VW(_,J){if(b9())return null;AQ=BQ,BQ=!1,ZW(_,J,!0)}function DG(_){_!==LF&&_!==null&&Dw(_)}function SW(){G1.actQueue!==null&&G1.actQueue.push(function(){return SG(),null}),Yf(function(){(G0&(t0|X5))!==U2?XZ(HZ,pO):SG()})}function kG(){if($6===0){var _=i6;_===0&&(_=a$,a$<<=1,(a$&261888)===0&&(a$=256)),$6=_}return $6}function DW(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return V1(_,"action"),B9(""+_)}function kW(_,J){var $=J.ownerDocument.createElement("input");return $.name=J.name,$.value=J.value,_.id&&$.setAttribute("form",_.id),J.parentNode.insertBefore($,J),_=new FormData(_),$.parentNode.removeChild($),_}function cO(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var F=DW((G[S2]||null).action),H=q.submitter;H&&(J=(J=H[S2]||null)?DW(J.formAction):H.getAttribute("formAction"),J!==null&&(F=J,H=null));var z=new $Q("action","action",null,q,G);_.push({event:z,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if($6!==0){var w=H?kW(G,H):new FormData(G),N={pending:!0,data:w,method:G.method,action:F};Object.freeze(N),nU($,N,null,w)}}else typeof F==="function"&&(z.preventDefault(),w=H?kW(G,H):new FormData(G),N={pending:!0,data:w,method:G.method,action:F},Object.freeze(N),nU($,N,F,w))},currentTarget:G}]})}}function v$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){VZ(q)}_.currentTarget=null}function yW(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,F=q.event;if(q=q.listeners,J)for(var H=q.length-1;0<=H;H--){var z=q[H],w=z.instance,N=z.currentTarget;if(z=z.listener,w!==G&&F.isPropagationStopped())break _;w!==null?Y1(w,v$,F,z,N):v$(F,z,N),G=w}else for(H=0;H<q.length;H++){if(z=q[H],w=z.instance,N=z.currentTarget,z=z.listener,w!==G&&F.isPropagationStopped())break _;w!==null?Y1(w,v$,F,z,N):v$(F,z,N),G=w}}}}function $0(_,J){MF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[AZ];$===void 0&&($=J[AZ]=new Set);var q=_+"__bubble";$.has(q)||(vW(J,_,2,!1),$.add(q))}function yG(_,J,$){MF.has(_)&&!J&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',_);var q=0;J&&(q|=4),vW($,_,q,J)}function vG(_){if(!_[uQ]){_[uQ]=!0,SA.forEach(function($){$!=="selectionchange"&&(MF.has($)||yG($,!1,_),yG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[uQ]||(J[uQ]=!0,yG("selectionchange",!1,J))}}function vW(_,J,$,q){switch(WA(J)){case G5:var G=Iw;break;case x5:G=fw;break;default:G=tG}$=G.bind(null,J,$,_),G=void 0,!TZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(G=!0),q?G!==void 0?_.addEventListener(J,$,{capture:!0,passive:G}):_.addEventListener(J,$,!0):G!==void 0?_.addEventListener(J,$,{passive:G}):_.addEventListener(J,$,!1)}function EG(_,J,$,q,G){var F=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var H=q.tag;if(H===3||H===4){var z=q.stateNode.containerInfo;if(z===G)break;if(H===4)for(H=q.return;H!==null;){var w=H.tag;if((w===3||w===4)&&H.stateNode.containerInfo===G)return;H=H.return}for(;z!==null;){if(H=P1(z),H===null)return;if(w=H.tag,w===5||w===6||w===26||w===27){q=F=H;continue _}z=z.parentNode}}q=q.return}rX(function(){var N=F,i=QU($),s=[];_:{var c=WB.get(_);if(c!==void 0){var q1=$Q,L1=_;switch(_){case"keypress":if(pJ($)===0)break _;case"keydown":case"keyup":q1=MI;break;case"focusin":L1="focus",q1=IZ;break;case"focusout":L1="blur",q1=IZ;break;case"beforeblur":case"afterblur":q1=IZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q1=eA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q1=GI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q1=OI;break;case KB:case XB:case HB:q1=KI;break;case YB:q1=II;break;case"scroll":case"scrollend":q1=qI;break;case"wheel":q1=PI;break;case"copy":case"cut":case"paste":q1=HI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q1=JB;break;case"toggle":case"beforetoggle":q1=jI}var w1=(J&4)!==0,T0=!w1&&(_==="scroll"||_==="scrollend"),Q0=w1?c!==null?c+"Capture":null:c;w1=[];for(var g=N,l;g!==null;){var d=g;if(l=d.stateNode,d=d.tag,d!==5&&d!==26&&d!==27||l===null||Q0===null||(d=z9(g,Q0),d!=null&&w1.push(h9(g,d,l))),T0)break;g=g.return}0<w1.length&&(c=new q1(c,L1,null,$,i),s.push({event:c,listeners:w1}))}}if((J&7)===0){_:{if(c=_==="mouseover"||_==="pointerover",q1=_==="mouseout"||_==="pointerout",c&&$!==t9&&(L1=$.relatedTarget||$.fromElement)&&(P1(L1)||L1[x3]))break _;if(q1||c){if(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,q1){if(L1=$.relatedTarget||$.toElement,q1=N,L1=L1?P1(L1):null,L1!==null&&(T0=D(L1),w1=L1.tag,L1!==T0||w1!==5&&w1!==27&&w1!==6))L1=null}else q1=null,L1=N;if(q1!==L1){if(w1=eA,d="onMouseLeave",Q0="onMouseEnter",g="mouse",_==="pointerout"||_==="pointerover")w1=JB,d="onPointerLeave",Q0="onPointerEnter",g="pointer";if(T0=q1==null?c:m1(q1),l=L1==null?c:m1(L1),c=new w1(d,g+"leave",q1,$,i),c.target=T0,c.relatedTarget=l,d=null,P1(i)===N&&(w1=new w1(Q0,g+"enter",L1,$,i),w1.target=l,w1.relatedTarget=T0,d=w1),T0=d,q1&&L1)J:{w1=lO,Q0=q1,g=L1,l=0;for(d=Q0;d;d=w1(d))l++;d=0;for(var H1=g;H1;H1=w1(H1))d++;for(;0<l-d;)Q0=w1(Q0),l--;for(;0<d-l;)g=w1(g),d--;for(;l--;){if(Q0===g||g!==null&&Q0===g.alternate){w1=Q0;break J}Q0=w1(Q0),g=w1(g)}w1=null}else w1=null;q1!==null&&EW(s,c,q1,w1,!1),L1!==null&&T0!==null&&EW(s,T0,L1,w1,!0)}}}_:{if(c=N?m1(N):window,q1=c.nodeName&&c.nodeName.toLowerCase(),q1==="select"||q1==="input"&&c.type==="file")var R1=nX;else if(tX(c))if(ZB)R1=$O;else{R1=_O;var p1=eR}else q1=c.nodeName,!q1||q1.toLowerCase()!=="input"||c.type!=="checkbox"&&c.type!=="radio"?N&&A9(N.elementType)&&(R1=nX):R1=JO;if(R1&&(R1=R1(_,N))){oX(s,R1,$,i);break _}p1&&p1(_,c,N),_==="focusout"&&N&&c.type==="number"&&N.memoizedProps.value!=null&&x8(c,"number",c.value)}switch(p1=N?m1(N):window,_){case"focusin":if(tX(p1)||p1.contentEditable==="true")X7=p1,PZ=N,Q_=null;break;case"focusout":Q_=PZ=X7=null;break;case"mousedown":NZ=!0;break;case"contextmenu":case"mouseup":case"dragend":NZ=!1,UH(s,$,i);break;case"selectionchange":if(DI)break;case"keydown":case"keyup":UH(s,$,i)}var D1;if(fZ)_:{switch(_){case"compositionstart":var N1="onCompositionStart";break _;case"compositionend":N1="onCompositionEnd";break _;case"compositionupdate":N1="onCompositionUpdate";break _}N1=void 0}else K7?aX(_,$)&&(N1="onCompositionEnd"):_==="keydown"&&$.keyCode===$B&&(N1="onCompositionStart");if(N1&&(QB&&$.locale!=="ko"&&(K7||N1!=="onCompositionStart"?N1==="onCompositionEnd"&&K7&&(D1=dX()):(u3=i,RZ=("value"in u3)?u3.value:u3.textContent,K7=!0)),p1=E$(N,N1),0<p1.length&&(N1=new _B(N1,_,null,$,i),s.push({event:N1,listeners:p1}),D1?N1.data=D1:(D1=sX($),D1!==null&&(N1.data=D1)))),D1=VI?sR(_,$):tR(_,$))N1=E$(N,"onBeforeInput"),0<N1.length&&(p1=new WI("onBeforeInput","beforeinput",null,$,i),s.push({event:p1,listeners:N1}),p1.data=D1);cO(s,_,N,$,i)}yW(s,J)})}function h9(_,J,$){return{instance:_,listener:J,currentTarget:$}}function E$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,F=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||F===null||(G=z9(_,$),G!=null&&q.unshift(h9(_,G,F)),G=z9(_,J),G!=null&&q.push(h9(_,G,F))),_.tag===3)return q;_=_.return}return[]}function lO(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function EW(_,J,$,q,G){for(var F=J._reactName,H=[];$!==null&&$!==q;){var z=$,w=z.alternate,N=z.stateNode;if(z=z.tag,w!==null&&w===q)break;z!==5&&z!==26&&z!==27||N===null||(w=N,G?(N=z9($,F),N!=null&&H.unshift(h9($,N,w))):G||(N=z9($,F),N!=null&&H.push(h9($,N,w)))),$=$.return}H.length!==0&&_.push({event:J,listeners:H})}function bG(_,J){rR(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||oA||(oA=!0,_==="select"&&J.multiple?console.error("`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.",_):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",_));var $={registrationNameDependencies:g6,possibleRegistrationNames:BZ};A9(_)||typeof J.is==="string"||iR(_,J,$),J.contentEditable&&!J.suppressContentEditableWarning&&J.children!=null&&console.error("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.")}function J2(_,J,$,q){J!==$&&($=k3($),k3(J)!==$&&(q[_]=J))}function rO(_,J,$){J.forEach(function(q){$[uW(q)]=q==="style"?uG(_):_.getAttribute(q)})}function A4(_,J){J===!1?console.error("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.",_,_,_):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",_,typeof J)}function bW(_,J){return _=_.namespaceURI===e$||_.namespaceURI===U7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function k3(_){return c1(_)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",y1(_)),v1(_)),(typeof _==="string"?_:""+_).replace(Qf,`
186
- `).replace(qf,"")}function xW(_,J){return J=k3(J),k3(_)===J?!0:!1}function A0(_,J,$,q,G,F){switch($){case"children":if(typeof q==="string")O3(q,J,!1),J==="body"||J==="textarea"&&q===""||N6(_,q);else if(typeof q==="number"||typeof q==="bigint")O3(""+q,J,!1),J!=="body"&&N6(_,""+q);break;case"className":v8(_,"class",q);break;case"tabIndex":v8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":v8(_,$,q);break;case"style":pX(_,q,F);break;case"data":if(J!=="object"){v8(_,"data",q);break}case"src":case"href":if(q===""&&(J!=="a"||$!=="href")){$==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$),_.removeAttribute($);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}V1(q,$),q=B9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||gQ||(gQ=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),G.target==null||mQ||(mQ=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):J==="input"||J==="button"?$==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):J!=="input"||G.type==="submit"||G.type==="image"||hQ?J!=="button"||G.type==null||G.type==="submit"||hQ?typeof q==="function"&&(G.name==null||bz||(bz=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),G.formEncType==null&&G.formMethod==null||gQ||(gQ=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),G.formTarget==null||mQ||(mQ=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(hQ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(hQ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):$==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof q==="function"){_.setAttribute($,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof F==="function"&&($==="formAction"?(J!=="input"&&A0(_,J,"name",G.name,G,null),A0(_,J,"formEncType",G.formEncType,G,null),A0(_,J,"formMethod",G.formMethod,G,null),A0(_,J,"formTarget",G.formTarget,G,null)):(A0(_,J,"encType",G.encType,G,null),A0(_,J,"method",G.method,G,null),A0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}V1(q,$),q=B9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&A4($,q),_.onclick=u4);break;case"onScroll":q!=null&&(typeof q!=="function"&&A4($,q),$0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&A4($,q),$0("scrollend",_));break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"multiple":_.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":_.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){_.removeAttribute("xlink:href");break}V1(q,$),$=B9(""+q),_.setAttributeNS(q8,"xlink:href",$);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(V1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||pQ[$]||(pQ[$]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",$));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q&&typeof q!=="function"&&typeof q!=="symbol"?_.setAttribute($,""):_.removeAttribute($);break;case"capture":case"download":q===!0?_.setAttribute($,""):q!==!1&&q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(V1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?(V1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(V1(q,$),_.setAttribute($,q));break;case"popover":$0("beforetoggle",_),$0("toggle",_),y8(_,"popover",q);break;case"xlinkActuate":k5(_,q8,"xlink:actuate",q);break;case"xlinkArcrole":k5(_,q8,"xlink:arcrole",q);break;case"xlinkRole":k5(_,q8,"xlink:role",q);break;case"xlinkShow":k5(_,q8,"xlink:show",q);break;case"xlinkTitle":k5(_,q8,"xlink:title",q);break;case"xlinkType":k5(_,q8,"xlink:type",q);break;case"xmlBase":k5(_,TF,"xml:base",q);break;case"xmlLang":k5(_,TF,"xml:lang",q);break;case"xmlSpace":k5(_,TF,"xml:space",q);break;case"is":F!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),y8(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":xz||q==null||typeof q!=="object"||(xz=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",q));default:!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"?($=cX($),y8(_,$,q)):g6.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&A4($,q)}}function xG(_,J,$,q,G,F){switch($){case"style":pX(_,q,F);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?N6(_,q):(typeof q==="number"||typeof q==="bigint")&&N6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&A4($,q),$0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&A4($,q),$0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&A4($,q),_.onclick=u4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(g6.hasOwnProperty($))q!=null&&typeof q!=="function"&&A4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),F=_[S2]||null,F=F!=null?F[$]:null,typeof F==="function"&&_.removeEventListener(J,F,G),typeof q==="function")){typeof F!=="function"&&F!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):y8(_,$,q)}}}function K2(_,J,$){switch(bG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$0("error",_),$0("load",_);var q=!1,G=!1,F;for(F in $)if($.hasOwnProperty(F)){var H=$[F];if(H!=null)switch(F){case"src":q=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:A0(_,J,F,H,$,null)}}G&&A0(_,J,"srcSet",$.srcSet,$,null),q&&A0(_,J,"src",$.src,$,null);return;case"input":n5("input",$),$0("invalid",_);var z=F=H=G=null,w=null,N=null;for(q in $)if($.hasOwnProperty(q)){var i=$[q];if(i!=null)switch(q){case"name":G=i;break;case"type":H=i;break;case"checked":w=i;break;case"defaultChecked":N=i;break;case"value":F=i;break;case"defaultValue":z=i;break;case"children":case"dangerouslySetInnerHTML":if(i!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:A0(_,J,q,i,$,null)}}VJ(_,$),U9(_,F,z,w,N,H,G,!1);return;case"select":n5("select",$),$0("invalid",_),q=H=F=null;for(G in $)if($.hasOwnProperty(G)&&(z=$[G],z!=null))switch(G){case"value":F=z;break;case"defaultValue":H=z;break;case"multiple":q=z;default:A0(_,J,G,z,$,null)}kJ(_,$),J=F,$=H,_.multiple=!!q,J!=null?L3(_,!!q,J,!1):$!=null&&L3(_,!!q,$,!0);return;case"textarea":n5("textarea",$),$0("invalid",_),F=G=q=null;for(H in $)if($.hasOwnProperty(H)&&(z=$[H],z!=null))switch(H){case"value":q=z;break;case"defaultValue":G=z;break;case"children":F=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:A0(_,J,H,z,$,null)}yJ(_,$),G9(_,q,G,F);return;case"option":SJ(_,$);for(w in $)if($.hasOwnProperty(w)&&(q=$[w],q!=null))switch(w){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:A0(_,J,w,q,$,null)}return;case"dialog":$0("beforetoggle",_),$0("toggle",_),$0("cancel",_),$0("close",_);break;case"iframe":case"object":$0("load",_);break;case"video":case"audio":for(q=0;q<y_.length;q++)$0(y_[q],_);break;case"image":$0("error",_),$0("load",_);break;case"details":$0("toggle",_);break;case"embed":case"source":case"link":$0("error",_),$0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in $)if($.hasOwnProperty(N)&&(q=$[N],q!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:A0(_,J,N,q,$,null)}return;default:if(A9(J)){for(i in $)$.hasOwnProperty(i)&&(q=$[i],q!==void 0&&xG(_,J,i,q,$,void 0));return}}for(z in $)$.hasOwnProperty(z)&&(q=$[z],q!=null&&A0(_,J,z,q,$,null))}function dO(_,J,$,q){switch(bG(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,F=null,H=null,z=null,w=null,N=null,i=null;for(q1 in $){var s=$[q1];if($.hasOwnProperty(q1)&&s!=null)switch(q1){case"checked":break;case"value":break;case"defaultValue":w=s;default:q.hasOwnProperty(q1)||A0(_,J,q1,null,q,s)}}for(var c in q){var q1=q[c];if(s=$[c],q.hasOwnProperty(c)&&(q1!=null||s!=null))switch(c){case"type":F=q1;break;case"name":G=q1;break;case"checked":N=q1;break;case"defaultChecked":i=q1;break;case"value":H=q1;break;case"defaultValue":z=q1;break;case"children":case"dangerouslySetInnerHTML":if(q1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:q1!==s&&A0(_,J,c,q1,q,s)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||Ez||(console.error("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://react.dev/link/controlled-components"),Ez=!0),!J||q||vz||(console.error("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://react.dev/link/controlled-components"),vz=!0),b8(_,H,z,w,N,i,F,G);return;case"select":q1=H=z=c=null;for(F in $)if(w=$[F],$.hasOwnProperty(F)&&w!=null)switch(F){case"value":break;case"multiple":q1=w;default:q.hasOwnProperty(F)||A0(_,J,F,null,q,w)}for(G in q)if(F=q[G],w=$[G],q.hasOwnProperty(G)&&(F!=null||w!=null))switch(G){case"value":c=F;break;case"defaultValue":z=F;break;case"multiple":H=F;default:F!==w&&A0(_,J,G,F,q,w)}q=z,J=H,$=q1,c!=null?L3(_,!!J,c,!1):!!$!==!!J&&(q!=null?L3(_,!!J,q,!0):L3(_,!!J,J?[]:"",!1));return;case"textarea":q1=c=null;for(z in $)if(G=$[z],$.hasOwnProperty(z)&&G!=null&&!q.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:A0(_,J,z,null,q,G)}for(H in q)if(G=q[H],F=$[H],q.hasOwnProperty(H)&&(G!=null||F!=null))switch(H){case"value":c=G;break;case"defaultValue":q1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==F&&A0(_,J,H,G,q,F)}vJ(_,c,q1);return;case"option":for(var L1 in $)if(c=$[L1],$.hasOwnProperty(L1)&&c!=null&&!q.hasOwnProperty(L1))switch(L1){case"selected":_.selected=!1;break;default:A0(_,J,L1,null,q,c)}for(w in q)if(c=q[w],q1=$[w],q.hasOwnProperty(w)&&c!==q1&&(c!=null||q1!=null))switch(w){case"selected":_.selected=c&&typeof c!=="function"&&typeof c!=="symbol";break;default:A0(_,J,w,c,q,q1)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var w1 in $)c=$[w1],$.hasOwnProperty(w1)&&c!=null&&!q.hasOwnProperty(w1)&&A0(_,J,w1,null,q,c);for(N in q)if(c=q[N],q1=$[N],q.hasOwnProperty(N)&&c!==q1&&(c!=null||q1!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:A0(_,J,N,c,q,q1)}return;default:if(A9(J)){for(var T0 in $)c=$[T0],$.hasOwnProperty(T0)&&c!==void 0&&!q.hasOwnProperty(T0)&&xG(_,J,T0,void 0,q,c);for(i in q)c=q[i],q1=$[i],!q.hasOwnProperty(i)||c===q1||c===void 0&&q1===void 0||xG(_,J,i,c,q,q1);return}}for(var Q0 in $)c=$[Q0],$.hasOwnProperty(Q0)&&c!=null&&!q.hasOwnProperty(Q0)&&A0(_,J,Q0,null,q,c);for(s in q)c=q[s],q1=$[s],!q.hasOwnProperty(s)||c===q1||c==null&&q1==null||A0(_,J,s,c,q,q1)}function uW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function uG(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function hW(_,J,$){if(J!=null&&typeof J!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var q,G=q="",F;for(F in J)if(J.hasOwnProperty(F)){var H=J[F];H!=null&&typeof H!=="boolean"&&H!==""&&(F.indexOf("--")===0?(S0(H,F),q+=G+F+":"+(""+H).trim()):typeof H!=="number"||H===0||sA.has(F)?(S0(H,F),q+=G+F.replace(lA,"-$1").toLowerCase().replace(rA,"-ms-")+":"+(""+H).trim()):q+=G+F.replace(lA,"-$1").toLowerCase().replace(rA,"-ms-")+":"+H+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=k3(q),k3(J)!==q&&($.style=uG(_)))}}function A5(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(V1(q,J),_===""+q)return}J2(J,_,q,F)}function mW(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null){switch(typeof q){case"function":case"symbol":return}if(!q)return}else switch(typeof q){case"function":case"symbol":break;default:if(q)return}J2(J,_,q,F)}function hG(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(V1(q,$),_===""+q)return}J2(J,_,q,F)}function gW(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(V1(q,J),_===""+q))return}J2(J,_,q,F)}function mG(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(V1(q,J),$=B9(""+q),_===$)return}J2(J,_,q,F)}function pW(_,J,$,q){for(var G={},F=new Set,H=_.attributes,z=0;z<H.length;z++)switch(H[z].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:F.add(H[z].name)}if(A9(J)){for(var w in $)if($.hasOwnProperty(w)){var N=$[w];if(N!=null){if(g6.hasOwnProperty(w))typeof N!=="function"&&A4(w,N);else if($.suppressHydrationWarning!==!0)switch(w){case"children":typeof N!=="string"&&typeof N!=="number"||J2("children",_.textContent,N,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":H=_.innerHTML,N=N?N.__html:void 0,N!=null&&(N=bW(_,N),J2(w,H,N,G));continue;case"style":F.delete(w),hW(_,N,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":F.delete(w.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",w);continue;case"className":F.delete("class"),H=NJ(_,"class",N),J2("className",H,N,G);continue;default:q.context===G3&&J!=="svg"&&J!=="math"?F.delete(w.toLowerCase()):F.delete(w),H=NJ(_,w,N),J2(w,H,N,G)}}}}else for(N in $)if($.hasOwnProperty(N)&&(w=$[N],w!=null)){if(g6.hasOwnProperty(N))typeof w!=="function"&&A4(N,w);else if($.suppressHydrationWarning!==!0)switch(N){case"children":typeof w!=="string"&&typeof w!=="number"||J2("children",_.textContent,w,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":H=_.innerHTML,w=w?w.__html:void 0,w!=null&&(w=bW(_,w),H!==w&&(G[N]={__html:H}));continue;case"className":A5(_,N,"class",w,F,G);continue;case"tabIndex":A5(_,N,"tabindex",w,F,G);continue;case"style":F.delete(N),hW(_,w,G);continue;case"multiple":F.delete(N),J2(N,_.multiple,w,G);continue;case"muted":F.delete(N),J2(N,_.muted,w,G);continue;case"autoFocus":F.delete("autofocus"),J2(N,_.autofocus,w,G);continue;case"data":if(J!=="object"){F.delete(N),H=_.getAttribute("data"),J2(N,H,w,G);continue}case"src":case"href":if(!(w!==""||J==="a"&&N==="href"||J==="object"&&N==="data")){N==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',N,N):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',N,N);continue}mG(_,N,N,w,F,G);continue;case"action":case"formAction":if(H=_.getAttribute(N),typeof w==="function"){F.delete(N.toLowerCase()),N==="formAction"?(F.delete("name"),F.delete("formenctype"),F.delete("formmethod"),F.delete("formtarget")):(F.delete("enctype"),F.delete("method"),F.delete("target"));continue}else if(H===Uf){F.delete(N.toLowerCase()),J2(N,"function",w,G);continue}mG(_,N,N.toLowerCase(),w,F,G);continue;case"xlinkHref":mG(_,N,"xlink:href",w,F,G);continue;case"contentEditable":hG(_,N,"contenteditable",w,F,G);continue;case"spellCheck":hG(_,N,"spellcheck",w,F,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":hG(_,N,N,w,F,G);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":mW(_,N,N.toLowerCase(),w,F,G);continue;case"capture":case"download":_:{z=_;var i=H=N,s=G;if(F.delete(i),z=z.getAttribute(i),z===null)switch(typeof w){case"undefined":case"function":case"symbol":break _;default:if(w===!1)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":break;case"boolean":if(w===!0&&z==="")break _;break;default:if(V1(w,H),z===""+w)break _}J2(H,z,w,s)}continue;case"cols":case"rows":case"size":case"span":_:{if(z=_,i=H=N,s=G,F.delete(i),z=z.getAttribute(i),z===null)switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(w)||1>w)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(w)||1>w)&&(V1(w,H),z===""+w))break _}J2(H,z,w,s)}continue;case"rowSpan":gW(_,N,"rowspan",w,F,G);continue;case"start":gW(_,N,N,w,F,G);continue;case"xHeight":A5(_,N,"x-height",w,F,G);continue;case"xlinkActuate":A5(_,N,"xlink:actuate",w,F,G);continue;case"xlinkArcrole":A5(_,N,"xlink:arcrole",w,F,G);continue;case"xlinkRole":A5(_,N,"xlink:role",w,F,G);continue;case"xlinkShow":A5(_,N,"xlink:show",w,F,G);continue;case"xlinkTitle":A5(_,N,"xlink:title",w,F,G);continue;case"xlinkType":A5(_,N,"xlink:type",w,F,G);continue;case"xmlBase":A5(_,N,"xml:base",w,F,G);continue;case"xmlLang":A5(_,N,"xml:lang",w,F,G);continue;case"xmlSpace":A5(_,N,"xml:space",w,F,G);continue;case"inert":w!==""||pQ[N]||(pQ[N]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",N)),mW(_,N,N,w,F,G);continue;default:if(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N"){z=cX(N),H=!1,q.context===G3&&J!=="svg"&&J!=="math"?F.delete(z.toLowerCase()):(i=N.toLowerCase(),i=_Q.hasOwnProperty(i)?_Q[i]||null:null,i!==null&&i!==N&&(H=!0,F.delete(i)),F.delete(z));_:if(i=_,s=z,z=w,f6(s))if(i.hasAttribute(s))i=i.getAttribute(s),V1(z,s),z=i===""+z?z:i;else{switch(typeof z){case"function":case"symbol":break _;case"boolean":if(i=s.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-")break _}z=z===void 0?void 0:null}else z=void 0;H||J2(N,z,w,G)}}}return 0<F.size&&$.suppressHydrationWarning!==!0&&rO(_,F,G),Object.keys(G).length===0?null:G}function iO(_,J){switch(_.length){case 0:return"";case 1:return _[0];case 2:return _[0]+" "+J+" "+_[1];default:return _.slice(0,-1).join(", ")+", "+J+" "+_[_.length-1]}}function cW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function aO(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],F=G.transferSize,H=G.initiatorType,z=G.duration;if(F&&z&&cW(H)){H=0,z=G.responseEnd;for(q+=1;q<$.length;q++){var w=$[q],N=w.startTime;if(N>z)break;var{transferSize:i,initiatorType:s}=w;i&&cW(s)&&(w=w.responseEnd,H+=i*(w<z?1:(z-N)/(w-N)))}if(--q,J+=8*(F+H)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function b$(_){return _.nodeType===9?_:_.ownerDocument}function lW(_){switch(_){case U7:return E7;case e$:return lQ;default:return G3}}function rW(_,J){if(_===G3)switch(J){case"svg":return E7;case"math":return lQ;default:return G3}return _===E7&&J==="foreignObject"?G3:_}function gG(_,J){return _==="textarea"||_==="noscript"||typeof J.children==="string"||typeof J.children==="number"||typeof J.children==="bigint"||typeof J.dangerouslySetInnerHTML==="object"&&J.dangerouslySetInnerHTML!==null&&J.dangerouslySetInnerHTML.__html!=null}function sO(){var _=window.event;if(_&&_.type==="popstate"){if(_===IF)return!1;return IF=_,!0}return IF=null,!1}function m9(){var _=window.event;return _&&_!==b_?_.type:null}function g9(){var _=window.event;return _&&_!==b_?_.timeStamp:-1.1}function tO(_){setTimeout(function(){throw _})}function oO(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function nO(){}function eO(_,J,$,q){dO(_,J,$,q),_[S2]=q}function dW(_){N6(_,"")}function _w(_,J,$){_.nodeValue=$}function iW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[S2]||null;if(J!==null){var $=h1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,Y1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):J.dangerouslySetInnerHTML!=null&&(_.__reactWarnedAboutChildrenConflict=!0,Y1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function y3(_){return _==="head"}function Jw(_,J){_.removeChild(J)}function $w(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function aW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===E_||$===cQ){if(q===0){_.removeChild(G),e8(J);return}q--}else if($===v_||$===Q6||$===G8||$===v7||$===U8)q++;else if($===Zf)p9(_.ownerDocument.documentElement);else if($===Kf){$=_.ownerDocument.head,p9($);for(var F=$.firstChild;F;){var{nextSibling:H,nodeName:z}=F;F[s9]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&F.rel.toLowerCase()==="stylesheet"||$.removeChild(F),F=H}}else $===Ff&&p9(_.ownerDocument.body);$=G}while($);e8(J)}function sW(_,J){var $=_;_=0;do{var q=$.nextSibling;if($.nodeType===1?J?($._stashedDisplay=$.style.display,$.style.display="none"):($.style.display=$._stashedDisplay||"",$.getAttribute("style")===""&&$.removeAttribute("style")):$.nodeType===3&&(J?($._stashedText=$.nodeValue,$.nodeValue=""):$.nodeValue=$._stashedText||""),q&&q.nodeType===8)if($=q.data,$===E_)if(_===0)break;else _--;else $!==v_&&$!==Q6&&$!==G8&&$!==v7||_++;$=q}while($)}function Qw(_){sW(_,!0)}function qw(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function Uw(_){_.nodeValue=""}function Gw(_){sW(_,!1)}function Zw(_,J){J=J[Xf],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function Fw(_,J){_.nodeValue=J}function pG(_){var J=_.firstChild;J&&J.nodeType===10&&(J=J.nextSibling);for(;J;){var $=J;switch(J=J.nextSibling,$.nodeName){case"HTML":case"HEAD":case"BODY":pG($),T1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function Kw(_,J,$,q){for(;_.nodeType===1;){var G=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){V1(G.name,"name");var F=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===F)return _}else return _;else if(!_[s9])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(F=_.getAttribute("rel"),F==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(F!==G.rel||_.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||_.getAttribute("title")!==(G.title==null?null:G.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(F=_.getAttribute("src"),(F!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&F&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=Q5(_.nextSibling),_===null)break}return null}function Xw(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=Q5(_.nextSibling),_===null)return null}return _}function tW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=Q5(_.nextSibling),_===null)return null}return _}function cG(_){return _.data===Q6||_.data===G8}function lG(_){return _.data===v7||_.data===Q6&&_.ownerDocument.readyState!==hz}function Hw(_,J){var $=_.ownerDocument;if(_.data===G8)_._reactRetry=J;else if(_.data!==Q6||$.readyState!==hz)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function Q5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===v_||J===v7||J===Q6||J===G8||J===U8||J===RF||J===uz)break;if(J===E_||J===cQ)return null}}return _}function oW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var F=q[G];$[uW(F.name)]=F.name.toLowerCase()==="style"?uG(_):F.value}return{type:J,props:$}}return _.nodeType===8?_.data===U8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function nW(_,J,$){return $===null||$[Gf]!==!0?(_.nodeValue===J?_=null:(J=k3(J),_=k3(_.nodeValue)===J?null:_.nodeValue),_):null}function rG(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===E_||$===cQ){if(J===0)return Q5(_.nextSibling);J--}else $!==v_&&$!==v7&&$!==Q6&&$!==G8&&$!==U8||J++}_=_.nextSibling}return null}function eW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===v_||$===v7||$===Q6||$===G8||$===U8){if(J===0)return _;J--}else $!==E_&&$!==cQ||J++}_=_.previousSibling}return null}function Yw(_){e8(_)}function Ww(_){e8(_)}function Aw(_){e8(_)}function _A(_,J,$,q,G){switch(G&&Y9(_,q.ancestorInfo),J=b$($),_){case"html":if(_=J.documentElement,!_)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"head":if(_=J.head,!_)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"body":if(_=J.body,!_)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return _;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Bw(_,J,$,q){if(!$[x3]&&h1($)){var G=$.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",G,G,G)}switch(_){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(G=$.attributes;G.length;)$.removeAttributeNode(G[0]);K2($,_,J),$[X2]=q,$[S2]=J}function p9(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);T1(_)}function x$(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function JA(_,J,$){var q=b7;if(q&&typeof J==="string"&&J){var G=g2(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),rz.has(G)||(rz.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),K2(J,"link",_),S1(J),q.head.appendChild(J)))}}function $A(_,J,$,q){var G=(G=E3.current)?x$(G):null;if(!G)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(_){case"meta":case"title":return null;case"style":return typeof $.precedence==="string"&&typeof $.href==="string"?($=o8($.href),J=q0(G).hoistableStyles,q=J.get($),q||(q={type:"style",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if($.rel==="stylesheet"&&typeof $.href==="string"&&typeof $.precedence==="string"){_=o8($.href);var F=q0(G).hoistableStyles,H=F.get(_);if(!H&&(G=G.ownerDocument||G,H={type:"stylesheet",instance:null,count:0,state:{loading:F8,preload:null}},F.set(_,H),(F=G.querySelector(c9(_)))&&!F._p&&(H.instance=F,H.state.loading=x_|P5),!N5.has(_))){var z={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};N5.set(_,z),F||zw(G,_,z,H.state)}if(J&&q===null)throw $=`
185
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,m(_))})}function B4(_){_!==v7&&_.next===null&&(v7===null?xQ=v7=_:v7=v7.next=_),hQ=!0,Z1.actQueue!==null?BF||(BF=!0,bW()):zF||(zF=!0,bW())}function m9(_,J){if(!AF&&hQ){AF=!0;do{var $=!1;for(var q=xQ;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var F=0;else{var{suspendedLanes:Y,pingedLanes:A}=q;F=(1<<31-j2(42|_)+1)-1,F&=G&~(Y&~A),F=F&201326741?F&201326741|1:F?F|2:0}F!==0&&($=!0,EW(q,F))}else F=a1,F=I2(q,q===L0?F:0,q.cancelPendingCommit!==null||q.timeoutHandle!==Z8),(F&3)===0||f2(q,F)||($=!0,EW(q,F));q=q.next}}while($);AF=!1}}function sO(){x_=window.event,VG()}function VG(){hQ=BF=zF=!1;var _=0;q6!==0&&$w()&&(_=q6);for(var J=Q2(),$=null,q=xQ;q!==null;){var G=q.next,F=yW(q,J);if(F===0)q.next=null,$===null?xQ=G:$.next=G,G===null&&(v7=$);else if($=q,_!==0||(F&3)!==0)hQ=!0;q=G}a0!==$6&&a0!==EQ||m9(_,!1),q6!==0&&(q6=0)}function yW(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,F=_.pendingLanes&-62914561;0<F;){var Y=31-j2(F),A=1<<Y,w=G[Y];if(w===-1){if((A&$)===0||(A&q)!==0)G[Y]=P2(A,J)}else w<=J&&(_.expiredLanes|=A);F&=~A}if(J=L0,$=a1,$=I2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==Z8),q=_.callbackNode,$===0||_===J&&(z0===_8||z0===J8)||_.cancelPendingCommit!==null)return q!==null&&kG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||f2(_,$)){if(J=$&-$,J!==_.callbackPriority||Z1.actQueue!==null&&q!==LF)kG(q);else return J;switch(S($)){case Z5:case m5:$=YZ;break;case w4:$=Q7;break;case e$:$=WZ;break;default:$=Q7}return q=vW.bind(null,_),Z1.actQueue!==null?(Z1.actQueue.push(q),$=LF):$=XZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&kG(q),_.callbackPriority=2,_.callbackNode=null,2}function vW(_,J){if(LQ=AQ=!1,x_=window.event,a0!==$6&&a0!==EQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(d5===vQ&&(d5=FF),x9()&&_.callbackNode!==$)return null;var q=a1;if(q=I2(_,_===L0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==Z8),q===0)return null;return WW(_,q,J),yW(_,Q2()),_.callbackNode!=null&&_.callbackNode===$?vW.bind(null,_):null}function EW(_,J){if(x9())return null;AQ=LQ,LQ=!1,WW(_,J,!0)}function kG(_){_!==LF&&_!==null&&xw(_)}function bW(){Z1.actQueue!==null&&Z1.actQueue.push(function(){return VG(),null}),Tf(function(){(Z0&(o0|H5))!==G2?XZ(HZ,sO):VG()})}function DG(){if(q6===0){var _=i6;_===0&&(_=t$,t$<<=1,(t$&261888)===0&&(t$=256)),q6=_}return q6}function uW(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return j1(_,"action"),L9(""+_)}function xW(_,J){var $=J.ownerDocument.createElement("input");return $.name=J.name,$.value=J.value,_.id&&$.setAttribute("form",_.id),J.parentNode.insertBefore($,J),_=new FormData(_),$.parentNode.removeChild($),_}function tO(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var F=uW((G[V2]||null).action),Y=q.submitter;Y&&(J=(J=Y[V2]||null)?uW(J.formAction):Y.getAttribute("formAction"),J!==null&&(F=J,Y=null));var A=new qQ("action","action",null,q,G);_.push({event:A,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(q6!==0){var w=Y?xW(G,Y):new FormData(G),N={pending:!0,data:w,method:G.method,action:F};Object.freeze(N),nU($,N,null,w)}}else typeof F==="function"&&(A.preventDefault(),w=Y?xW(G,Y):new FormData(G),N={pending:!0,data:w,method:G.method,action:F},Object.freeze(N),nU($,N,F,w))},currentTarget:G}]})}}function b$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){jZ(q)}_.currentTarget=null}function hW(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,F=q.event;if(q=q.listeners,J)for(var Y=q.length-1;0<=Y;Y--){var A=q[Y],w=A.instance,N=A.currentTarget;if(A=A.listener,w!==G&&F.isPropagationStopped())break _;w!==null?W1(w,b$,F,A,N):b$(F,A,N),G=w}else for(Y=0;Y<q.length;Y++){if(A=q[Y],w=A.instance,N=A.currentTarget,A=A.listener,w!==G&&F.isPropagationStopped())break _;w!==null?W1(w,b$,F,A,N):b$(F,A,N),G=w}}}}function $0(_,J){MF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[zZ];$===void 0&&($=J[zZ]=new Set);var q=_+"__bubble";$.has(q)||(mW(J,_,2,!1),$.add(q))}function yG(_,J,$){MF.has(_)&&!J&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',_);var q=0;J&&(q|=4),mW($,_,q,J)}function vG(_){if(!_[mQ]){_[mQ]=!0,bz.forEach(function($){$!=="selectionchange"&&(MF.has($)||yG($,!1,_),yG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[mQ]||(J[mQ]=!0,yG("selectionchange",!1,J))}}function mW(_,J,$,q){switch(Tz(J)){case Z5:var G=Vw;break;case m5:G=kw;break;default:G=tG}$=G.bind(null,J,$,_),G=void 0,!TZ||J!=="touchstart"&&J!=="touchmove"&&J!=="wheel"||(G=!0),q?G!==void 0?_.addEventListener(J,$,{capture:!0,passive:G}):_.addEventListener(J,$,!0):G!==void 0?_.addEventListener(J,$,{passive:G}):_.addEventListener(J,$,!1)}function EG(_,J,$,q,G){var F=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var Y=q.tag;if(Y===3||Y===4){var A=q.stateNode.containerInfo;if(A===G)break;if(Y===4)for(Y=q.return;Y!==null;){var w=Y.tag;if((w===3||w===4)&&Y.stateNode.containerInfo===G)return;Y=Y.return}for(;A!==null;){if(Y=P1(A),Y===null)return;if(w=Y.tag,w===5||w===6||w===26||w===27){q=F=Y;continue _}A=A.parentNode}}q=q.return}oX(function(){var N=F,t=QU($),o=[];_:{var c=TB.get(_);if(c!==void 0){var q1=qQ,T1=_;switch(_){case"keypress":if(lJ($)===0)break _;case"keydown":case"keyup":q1=PI;break;case"focusin":T1="focus",q1=IZ;break;case"focusout":T1="blur",q1=IZ;break;case"beforeblur":case"afterblur":q1=IZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q1=UB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q1=WI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q1=SI;break;case BB:case AB:case LB:q1=AI;break;case MB:q1=VI;break;case"scroll":case"scrollend":q1=HI;break;case"wheel":q1=DI;break;case"copy":case"cut":case"paste":q1=MI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q1=ZB;break;case"toggle":case"beforetoggle":q1=vI}var w1=(J&4)!==0,R0=!w1&&(_==="scroll"||_==="scrollend"),Q0=w1?c!==null?c+"Capture":null:c;w1=[];for(var p=N,l;p!==null;){var a=p;if(l=a.stateNode,a=a.tag,a!==5&&a!==26&&a!==27||l===null||Q0===null||(a=M9(p,Q0),a!=null&&w1.push(g9(p,a,l))),R0)break;p=p.return}0<w1.length&&(c=new q1(c,T1,null,$,t),o.push({event:c,listeners:w1}))}}if((J&7)===0){_:{if(c=_==="mouseover"||_==="pointerover",q1=_==="mouseout"||_==="pointerout",c&&$!==n9&&(T1=$.relatedTarget||$.fromElement)&&(P1(T1)||T1[h3]))break _;if(q1||c){if(c=t.window===t?t:(c=t.ownerDocument)?c.defaultView||c.parentWindow:window,q1){if(T1=$.relatedTarget||$.toElement,q1=N,T1=T1?P1(T1):null,T1!==null&&(R0=k(T1),w1=T1.tag,T1!==R0||w1!==5&&w1!==27&&w1!==6))T1=null}else q1=null,T1=N;if(q1!==T1){if(w1=UB,a="onMouseLeave",Q0="onMouseEnter",p="mouse",_==="pointerout"||_==="pointerover")w1=ZB,a="onPointerLeave",Q0="onPointerEnter",p="pointer";if(R0=q1==null?c:m1(q1),l=T1==null?c:m1(T1),c=new w1(a,p+"leave",q1,$,t),c.target=R0,c.relatedTarget=l,a=null,P1(t)===N&&(w1=new w1(Q0,p+"enter",T1,$,t),w1.target=l,w1.relatedTarget=R0,a=w1),R0=a,q1&&T1)J:{w1=oO,Q0=q1,p=T1,l=0;for(a=Q0;a;a=w1(a))l++;a=0;for(var H1=p;H1;H1=w1(H1))a++;for(;0<l-a;)Q0=w1(Q0),l--;for(;0<a-l;)p=w1(p),a--;for(;l--;){if(Q0===p||p!==null&&Q0===p.alternate){w1=Q0;break J}Q0=w1(Q0),p=w1(p)}w1=null}else w1=null;q1!==null&&gW(o,c,q1,w1,!1),T1!==null&&R0!==null&&gW(o,R0,T1,w1,!0)}}}_:{if(c=N?m1(N):window,q1=c.nodeName&&c.nodeName.toLowerCase(),q1==="select"||q1==="input"&&c.type==="file")var O1=qH;else if($H(c))if(WB)O1=KO;else{O1=ZO;var p1=GO}else q1=c.nodeName,!q1||q1.toLowerCase()!=="input"||c.type!=="checkbox"&&c.type!=="radio"?N&&A9(N.elementType)&&(O1=qH):O1=FO;if(O1&&(O1=O1(_,N))){QH(o,O1,$,t);break _}p1&&p1(_,c,N),_==="focusout"&&N&&c.type==="number"&&N.memoizedProps.value!=null&&x8(c,"number",c.value)}switch(p1=N?m1(N):window,_){case"focusin":if($H(p1)||p1.contentEditable==="true")H7=p1,PZ=N,U_=null;break;case"focusout":U_=PZ=H7=null;break;case"mousedown":NZ=!0;break;case"contextmenu":case"mouseup":case"dragend":NZ=!1,HH(o,$,t);break;case"selectionchange":if(xI)break;case"keydown":case"keyup":HH(o,$,t)}var k1;if(fZ)_:{switch(_){case"compositionstart":var N1="onCompositionStart";break _;case"compositionend":N1="onCompositionEnd";break _;case"compositionupdate":N1="onCompositionUpdate";break _}N1=void 0}else X7?_H(_,$)&&(N1="onCompositionEnd"):_==="keydown"&&$.keyCode===FB&&(N1="onCompositionStart");if(N1&&(KB&&$.locale!=="ko"&&(X7||N1!=="onCompositionStart"?N1==="onCompositionEnd"&&X7&&(k1=nX()):(m3=t,RZ=("value"in m3)?m3.value:m3.textContent,X7=!0)),p1=u$(N,N1),0<p1.length&&(N1=new GB(N1,_,null,$,t),o.push({event:N1,listeners:p1}),k1?N1.data=k1:(k1=JH($),k1!==null&&(N1.data=k1)))),k1=bI?$O(_,$):QO(_,$))N1=u$(N,"onBeforeInput"),0<N1.length&&(p1=new RI("onBeforeInput","beforeinput",null,$,t),o.push({event:p1,listeners:N1}),p1.data=k1);tO(o,_,N,$,t)}hW(o,J)})}function g9(_,J,$){return{instance:_,listener:J,currentTarget:$}}function u$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,F=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||F===null||(G=M9(_,$),G!=null&&q.unshift(g9(_,G,F)),G=M9(_,J),G!=null&&q.push(g9(_,G,F))),_.tag===3)return q;_=_.return}return[]}function oO(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function gW(_,J,$,q,G){for(var F=J._reactName,Y=[];$!==null&&$!==q;){var A=$,w=A.alternate,N=A.stateNode;if(A=A.tag,w!==null&&w===q)break;A!==5&&A!==26&&A!==27||N===null||(w=N,G?(N=M9($,F),N!=null&&Y.unshift(g9($,N,w))):G||(N=M9($,F),N!=null&&Y.push(g9($,N,w)))),$=$.return}Y.length!==0&&_.push({event:J,listeners:Y})}function bG(_,J){nR(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||QB||(QB=!0,_==="select"&&J.multiple?console.error("`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.",_):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",_));var $={registrationNameDependencies:g6,possibleRegistrationNames:BZ};A9(_)||typeof J.is==="string"||_O(_,J,$),J.contentEditable&&!J.suppressContentEditableWarning&&J.children!=null&&console.error("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.")}function $2(_,J,$,q){J!==$&&($=v3($),v3(J)!==$&&(q[_]=J))}function nO(_,J,$){J.forEach(function(q){$[lW(q)]=q==="style"?xG(_):_.getAttribute(q)})}function A4(_,J){J===!1?console.error("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.",_,_,_):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",_,typeof J)}function pW(_,J){return _=_.namespaceURI===JQ||_.namespaceURI===G7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function v3(_){return c1(_)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",v1(_)),E1(_)),(typeof _==="string"?_:""+_).replace(Xf,`
186
+ `).replace(Hf,"")}function cW(_,J){return J=v3(J),v3(_)===J?!0:!1}function B0(_,J,$,q,G,F){switch($){case"children":if(typeof q==="string")I3(q,J,!1),J==="body"||J==="textarea"&&q===""||N6(_,q);else if(typeof q==="number"||typeof q==="bigint")I3(""+q,J,!1),J!=="body"&&N6(_,""+q);break;case"className":E8(_,"class",q);break;case"tabIndex":E8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":E8(_,$,q);break;case"style":aX(_,q,F);break;case"data":if(J!=="object"){E8(_,"data",q);break}case"src":case"href":if(q===""&&(J!=="a"||$!=="href")){$==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',$,$),_.removeAttribute($);break}if(q==null||typeof q==="function"||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}j1(q,$),q=L9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||cQ||(cQ=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),G.target==null||pQ||(pQ=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):J==="input"||J==="button"?$==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):J!=="input"||G.type==="submit"||G.type==="image"||gQ?J!=="button"||G.type==null||G.type==="submit"||gQ?typeof q==="function"&&(G.name==null||pA||(pA=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),G.formEncType==null&&G.formMethod==null||cQ||(cQ=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),G.formTarget==null||pQ||(pQ=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(gQ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(gQ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):$==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof q==="function"){_.setAttribute($,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof F==="function"&&($==="formAction"?(J!=="input"&&B0(_,J,"name",G.name,G,null),B0(_,J,"formEncType",G.formEncType,G,null),B0(_,J,"formMethod",G.formMethod,G,null),B0(_,J,"formTarget",G.formTarget,G,null)):(B0(_,J,"encType",G.encType,G,null),B0(_,J,"method",G.method,G,null),B0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}j1(q,$),q=L9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&A4($,q),_.onclick=m4);break;case"onScroll":q!=null&&(typeof q!=="function"&&A4($,q),$0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&A4($,q),$0("scrollend",_));break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"multiple":_.multiple=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"muted":_.muted=q&&typeof q!=="function"&&typeof q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(q==null||typeof q==="function"||typeof q==="boolean"||typeof q==="symbol"){_.removeAttribute("xlink:href");break}j1(q,$),$=L9(""+q),_.setAttributeNS(q8,"xlink:href",$);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(j1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||lQ[$]||(lQ[$]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",$));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q&&typeof q!=="function"&&typeof q!=="symbol"?_.setAttribute($,""):_.removeAttribute($);break;case"capture":case"download":q===!0?_.setAttribute($,""):q!==!1&&q!=null&&typeof q!=="function"&&typeof q!=="symbol"?(j1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"cols":case"rows":case"size":case"span":q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&!isNaN(q)&&1<=q?(j1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(j1(q,$),_.setAttribute($,q));break;case"popover":$0("beforetoggle",_),$0("toggle",_),v8(_,"popover",q);break;case"xlinkActuate":E5(_,q8,"xlink:actuate",q);break;case"xlinkArcrole":E5(_,q8,"xlink:arcrole",q);break;case"xlinkRole":E5(_,q8,"xlink:role",q);break;case"xlinkShow":E5(_,q8,"xlink:show",q);break;case"xlinkTitle":E5(_,q8,"xlink:title",q);break;case"xlinkType":E5(_,q8,"xlink:type",q);break;case"xmlBase":E5(_,TF,"xml:base",q);break;case"xmlLang":E5(_,TF,"xml:lang",q);break;case"xmlSpace":E5(_,TF,"xml:space",q);break;case"is":F!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),v8(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":cA||q==null||typeof q!=="object"||(cA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",q));default:!(2<$.length)||$[0]!=="o"&&$[0]!=="O"||$[1]!=="n"&&$[1]!=="N"?($=sX($),v8(_,$,q)):g6.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&A4($,q)}}function uG(_,J,$,q,G,F){switch($){case"style":aX(_,q,F);break;case"dangerouslySetInnerHTML":if(q!=null){if(typeof q!=="object"||!("__html"in q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if($=q.__html,$!=null){if(G.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");_.innerHTML=$}}break;case"children":typeof q==="string"?N6(_,q):(typeof q==="number"||typeof q==="bigint")&&N6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&A4($,q),$0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&A4($,q),$0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&A4($,q),_.onclick=m4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(g6.hasOwnProperty($))q!=null&&typeof q!=="function"&&A4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),F=_[V2]||null,F=F!=null?F[$]:null,typeof F==="function"&&_.removeEventListener(J,F,G),typeof q==="function")){typeof F!=="function"&&F!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):v8(_,$,q)}}}function X2(_,J,$){switch(bG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$0("error",_),$0("load",_);var q=!1,G=!1,F;for(F in $)if($.hasOwnProperty(F)){var Y=$[F];if(Y!=null)switch(F){case"src":q=!0;break;case"srcSet":G=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:B0(_,J,F,Y,$,null)}}G&&B0(_,J,"srcSet",$.srcSet,$,null),q&&B0(_,J,"src",$.src,$,null);return;case"input":_4("input",$),$0("invalid",_);var A=F=Y=G=null,w=null,N=null;for(q in $)if($.hasOwnProperty(q)){var t=$[q];if(t!=null)switch(q){case"name":G=t;break;case"type":Y=t;break;case"checked":w=t;break;case"defaultChecked":N=t;break;case"value":F=t;break;case"defaultValue":A=t;break;case"children":case"dangerouslySetInnerHTML":if(t!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:B0(_,J,q,t,$,null)}}kJ(_,$),Z9(_,F,A,w,N,Y,G,!1);return;case"select":_4("select",$),$0("invalid",_),q=Y=F=null;for(G in $)if($.hasOwnProperty(G)&&(A=$[G],A!=null))switch(G){case"value":F=A;break;case"defaultValue":Y=A;break;case"multiple":q=A;default:B0(_,J,G,A,$,null)}vJ(_,$),J=F,$=Y,_.multiple=!!q,J!=null?T3(_,!!q,J,!1):$!=null&&T3(_,!!q,$,!0);return;case"textarea":_4("textarea",$),$0("invalid",_),F=G=q=null;for(Y in $)if($.hasOwnProperty(Y)&&(A=$[Y],A!=null))switch(Y){case"value":q=A;break;case"defaultValue":G=A;break;case"children":F=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:B0(_,J,Y,A,$,null)}EJ(_,$),F9(_,q,G,F);return;case"option":DJ(_,$);for(w in $)if($.hasOwnProperty(w)&&(q=$[w],q!=null))switch(w){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:B0(_,J,w,q,$,null)}return;case"dialog":$0("beforetoggle",_),$0("toggle",_),$0("cancel",_),$0("close",_);break;case"iframe":case"object":$0("load",_);break;case"video":case"audio":for(q=0;q<E_.length;q++)$0(E_[q],_);break;case"image":$0("error",_),$0("load",_);break;case"details":$0("toggle",_);break;case"embed":case"source":case"link":$0("error",_),$0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in $)if($.hasOwnProperty(N)&&(q=$[N],q!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:B0(_,J,N,q,$,null)}return;default:if(A9(J)){for(t in $)$.hasOwnProperty(t)&&(q=$[t],q!==void 0&&uG(_,J,t,q,$,void 0));return}}for(A in $)$.hasOwnProperty(A)&&(q=$[A],q!=null&&B0(_,J,A,q,$,null))}function eO(_,J,$,q){switch(bG(J,q),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var G=null,F=null,Y=null,A=null,w=null,N=null,t=null;for(q1 in $){var o=$[q1];if($.hasOwnProperty(q1)&&o!=null)switch(q1){case"checked":break;case"value":break;case"defaultValue":w=o;default:q.hasOwnProperty(q1)||B0(_,J,q1,null,q,o)}}for(var c in q){var q1=q[c];if(o=$[c],q.hasOwnProperty(c)&&(q1!=null||o!=null))switch(c){case"type":F=q1;break;case"name":G=q1;break;case"checked":N=q1;break;case"defaultChecked":t=q1;break;case"value":Y=q1;break;case"defaultValue":A=q1;break;case"children":case"dangerouslySetInnerHTML":if(q1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:q1!==o&&B0(_,J,c,q1,q,o)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||gA||(console.error("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://react.dev/link/controlled-components"),gA=!0),!J||q||mA||(console.error("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://react.dev/link/controlled-components"),mA=!0),u8(_,Y,A,w,N,t,F,G);return;case"select":q1=Y=A=c=null;for(F in $)if(w=$[F],$.hasOwnProperty(F)&&w!=null)switch(F){case"value":break;case"multiple":q1=w;default:q.hasOwnProperty(F)||B0(_,J,F,null,q,w)}for(G in q)if(F=q[G],w=$[G],q.hasOwnProperty(G)&&(F!=null||w!=null))switch(G){case"value":c=F;break;case"defaultValue":A=F;break;case"multiple":Y=F;default:F!==w&&B0(_,J,G,F,q,w)}q=A,J=Y,$=q1,c!=null?T3(_,!!J,c,!1):!!$!==!!J&&(q!=null?T3(_,!!J,q,!0):T3(_,!!J,J?[]:"",!1));return;case"textarea":q1=c=null;for(A in $)if(G=$[A],$.hasOwnProperty(A)&&G!=null&&!q.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:B0(_,J,A,null,q,G)}for(Y in q)if(G=q[Y],F=$[Y],q.hasOwnProperty(Y)&&(G!=null||F!=null))switch(Y){case"value":c=G;break;case"defaultValue":q1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==F&&B0(_,J,Y,G,q,F)}bJ(_,c,q1);return;case"option":for(var T1 in $)if(c=$[T1],$.hasOwnProperty(T1)&&c!=null&&!q.hasOwnProperty(T1))switch(T1){case"selected":_.selected=!1;break;default:B0(_,J,T1,null,q,c)}for(w in q)if(c=q[w],q1=$[w],q.hasOwnProperty(w)&&c!==q1&&(c!=null||q1!=null))switch(w){case"selected":_.selected=c&&typeof c!=="function"&&typeof c!=="symbol";break;default:B0(_,J,w,c,q,q1)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var w1 in $)c=$[w1],$.hasOwnProperty(w1)&&c!=null&&!q.hasOwnProperty(w1)&&B0(_,J,w1,null,q,c);for(N in q)if(c=q[N],q1=$[N],q.hasOwnProperty(N)&&c!==q1&&(c!=null||q1!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:B0(_,J,N,c,q,q1)}return;default:if(A9(J)){for(var R0 in $)c=$[R0],$.hasOwnProperty(R0)&&c!==void 0&&!q.hasOwnProperty(R0)&&uG(_,J,R0,void 0,q,c);for(t in q)c=q[t],q1=$[t],!q.hasOwnProperty(t)||c===q1||c===void 0&&q1===void 0||uG(_,J,t,c,q,q1);return}}for(var Q0 in $)c=$[Q0],$.hasOwnProperty(Q0)&&c!=null&&!q.hasOwnProperty(Q0)&&B0(_,J,Q0,null,q,c);for(o in q)c=q[o],q1=$[o],!q.hasOwnProperty(o)||c===q1||c==null&&q1==null||B0(_,J,o,c,q,q1)}function lW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function xG(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function rW(_,J,$){if(J!=null&&typeof J!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var q,G=q="",F;for(F in J)if(J.hasOwnProperty(F)){var Y=J[F];Y!=null&&typeof Y!=="boolean"&&Y!==""&&(F.indexOf("--")===0?(V0(Y,F),q+=G+F+":"+(""+Y).trim()):typeof Y!=="number"||Y===0||JB.has(F)?(V0(Y,F),q+=G+F.replace(tz,"-$1").toLowerCase().replace(oz,"-ms-")+":"+(""+Y).trim()):q+=G+F.replace(tz,"-$1").toLowerCase().replace(oz,"-ms-")+":"+Y+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=v3(q),v3(J)!==q&&($.style=xG(_)))}}function M5(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(j1(q,J),_===""+q)return}$2(J,_,q,F)}function dW(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null){switch(typeof q){case"function":case"symbol":return}if(!q)return}else switch(typeof q){case"function":case"symbol":break;default:if(q)return}$2(J,_,q,F)}function hG(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":return}else if(q!=null)switch(typeof q){case"function":case"symbol":break;default:if(j1(q,$),_===""+q)return}$2(J,_,q,F)}function iW(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(q))return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(q)&&(j1(q,J),_===""+q))return}$2(J,_,q,F)}function mG(_,J,$,q,G,F){if(G.delete($),_=_.getAttribute($),_===null)switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":return}else if(q!=null)switch(typeof q){case"function":case"symbol":case"boolean":break;default:if(j1(q,J),$=L9(""+q),_===$)return}$2(J,_,q,F)}function aW(_,J,$,q){for(var G={},F=new Set,Y=_.attributes,A=0;A<Y.length;A++)switch(Y[A].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:F.add(Y[A].name)}if(A9(J)){for(var w in $)if($.hasOwnProperty(w)){var N=$[w];if(N!=null){if(g6.hasOwnProperty(w))typeof N!=="function"&&A4(w,N);else if($.suppressHydrationWarning!==!0)switch(w){case"children":typeof N!=="string"&&typeof N!=="number"||$2("children",_.textContent,N,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":Y=_.innerHTML,N=N?N.__html:void 0,N!=null&&(N=pW(_,N),$2(w,Y,N,G));continue;case"style":F.delete(w),rW(_,N,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":F.delete(w.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",w);continue;case"className":F.delete("class"),Y=SJ(_,"class",N),$2("className",Y,N,G);continue;default:q.context===F3&&J!=="svg"&&J!=="math"?F.delete(w.toLowerCase()):F.delete(w),Y=SJ(_,w,N),$2(w,Y,N,G)}}}}else for(N in $)if($.hasOwnProperty(N)&&(w=$[N],w!=null)){if(g6.hasOwnProperty(N))typeof w!=="function"&&A4(N,w);else if($.suppressHydrationWarning!==!0)switch(N){case"children":typeof w!=="string"&&typeof w!=="number"||$2("children",_.textContent,w,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":Y=_.innerHTML,w=w?w.__html:void 0,w!=null&&(w=pW(_,w),Y!==w&&(G[N]={__html:Y}));continue;case"className":M5(_,N,"class",w,F,G);continue;case"tabIndex":M5(_,N,"tabindex",w,F,G);continue;case"style":F.delete(N),rW(_,w,G);continue;case"multiple":F.delete(N),$2(N,_.multiple,w,G);continue;case"muted":F.delete(N),$2(N,_.muted,w,G);continue;case"autoFocus":F.delete("autofocus"),$2(N,_.autofocus,w,G);continue;case"data":if(J!=="object"){F.delete(N),Y=_.getAttribute("data"),$2(N,Y,w,G);continue}case"src":case"href":if(!(w!==""||J==="a"&&N==="href"||J==="object"&&N==="data")){N==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',N,N):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',N,N);continue}mG(_,N,N,w,F,G);continue;case"action":case"formAction":if(Y=_.getAttribute(N),typeof w==="function"){F.delete(N.toLowerCase()),N==="formAction"?(F.delete("name"),F.delete("formenctype"),F.delete("formmethod"),F.delete("formtarget")):(F.delete("enctype"),F.delete("method"),F.delete("target"));continue}else if(Y===Yf){F.delete(N.toLowerCase()),$2(N,"function",w,G);continue}mG(_,N,N.toLowerCase(),w,F,G);continue;case"xlinkHref":mG(_,N,"xlink:href",w,F,G);continue;case"contentEditable":hG(_,N,"contenteditable",w,F,G);continue;case"spellCheck":hG(_,N,"spellcheck",w,F,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":hG(_,N,N,w,F,G);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":dW(_,N,N.toLowerCase(),w,F,G);continue;case"capture":case"download":_:{A=_;var t=Y=N,o=G;if(F.delete(t),A=A.getAttribute(t),A===null)switch(typeof w){case"undefined":case"function":case"symbol":break _;default:if(w===!1)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":break;case"boolean":if(w===!0&&A==="")break _;break;default:if(j1(w,Y),A===""+w)break _}$2(Y,A,w,o)}continue;case"cols":case"rows":case"size":case"span":_:{if(A=_,t=Y=N,o=G,F.delete(t),A=A.getAttribute(t),A===null)switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(w)||1>w)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(w)||1>w)&&(j1(w,Y),A===""+w))break _}$2(Y,A,w,o)}continue;case"rowSpan":iW(_,N,"rowspan",w,F,G);continue;case"start":iW(_,N,N,w,F,G);continue;case"xHeight":M5(_,N,"x-height",w,F,G);continue;case"xlinkActuate":M5(_,N,"xlink:actuate",w,F,G);continue;case"xlinkArcrole":M5(_,N,"xlink:arcrole",w,F,G);continue;case"xlinkRole":M5(_,N,"xlink:role",w,F,G);continue;case"xlinkShow":M5(_,N,"xlink:show",w,F,G);continue;case"xlinkTitle":M5(_,N,"xlink:title",w,F,G);continue;case"xlinkType":M5(_,N,"xlink:type",w,F,G);continue;case"xmlBase":M5(_,N,"xml:base",w,F,G);continue;case"xmlLang":M5(_,N,"xml:lang",w,F,G);continue;case"xmlSpace":M5(_,N,"xml:space",w,F,G);continue;case"inert":w!==""||lQ[N]||(lQ[N]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",N)),dW(_,N,N,w,F,G);continue;default:if(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N"){A=sX(N),Y=!1,q.context===F3&&J!=="svg"&&J!=="math"?F.delete(A.toLowerCase()):(t=N.toLowerCase(),t=$Q.hasOwnProperty(t)?$Q[t]||null:null,t!==null&&t!==N&&(Y=!0,F.delete(t)),F.delete(A));_:if(t=_,o=A,A=w,f6(o))if(t.hasAttribute(o))t=t.getAttribute(o),j1(A,o),A=t===""+A?A:t;else{switch(typeof A){case"function":case"symbol":break _;case"boolean":if(t=o.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")break _}A=A===void 0?void 0:null}else A=void 0;Y||$2(N,A,w,G)}}}return 0<F.size&&$.suppressHydrationWarning!==!0&&nO(_,F,G),Object.keys(G).length===0?null:G}function _w(_,J){switch(_.length){case 0:return"";case 1:return _[0];case 2:return _[0]+" "+J+" "+_[1];default:return _.slice(0,-1).join(", ")+", "+J+" "+_[_.length-1]}}function sW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jw(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],F=G.transferSize,Y=G.initiatorType,A=G.duration;if(F&&A&&sW(Y)){Y=0,A=G.responseEnd;for(q+=1;q<$.length;q++){var w=$[q],N=w.startTime;if(N>A)break;var{transferSize:t,initiatorType:o}=w;t&&sW(o)&&(w=w.responseEnd,Y+=t*(w<A?1:(A-N)/(w-N)))}if(--q,J+=8*(F+Y)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function x$(_){return _.nodeType===9?_:_.ownerDocument}function tW(_){switch(_){case G7:return b7;case JQ:return dQ;default:return F3}}function oW(_,J){if(_===F3)switch(J){case"svg":return b7;case"math":return dQ;default:return F3}return _===b7&&J==="foreignObject"?F3:_}function gG(_,J){return _==="textarea"||_==="noscript"||typeof J.children==="string"||typeof J.children==="number"||typeof J.children==="bigint"||typeof J.dangerouslySetInnerHTML==="object"&&J.dangerouslySetInnerHTML!==null&&J.dangerouslySetInnerHTML.__html!=null}function $w(){var _=window.event;if(_&&_.type==="popstate"){if(_===IF)return!1;return IF=_,!0}return IF=null,!1}function p9(){var _=window.event;return _&&_!==x_?_.type:null}function c9(){var _=window.event;return _&&_!==x_?_.timeStamp:-1.1}function Qw(_){setTimeout(function(){throw _})}function qw(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function Uw(){}function Gw(_,J,$,q){eO(_,J,$,q),_[V2]=q}function nW(_){N6(_,"")}function Zw(_,J,$){_.nodeValue=$}function eW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[V2]||null;if(J!==null){var $=h1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,W1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):J.dangerouslySetInnerHTML!=null&&(_.__reactWarnedAboutChildrenConflict=!0,W1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function E3(_){return _==="head"}function Fw(_,J){_.removeChild(J)}function Kw(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function _z(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===u_||$===rQ){if(q===0){_.removeChild(G),_7(J);return}q--}else if($===b_||$===U6||$===G8||$===E7||$===U8)q++;else if($===zf)l9(_.ownerDocument.documentElement);else if($===Af){$=_.ownerDocument.head,l9($);for(var F=$.firstChild;F;){var{nextSibling:Y,nodeName:A}=F;F[o9]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&F.rel.toLowerCase()==="stylesheet"||$.removeChild(F),F=Y}}else $===Bf&&l9(_.ownerDocument.body);$=G}while($);_7(J)}function Jz(_,J){var $=_;_=0;do{var q=$.nextSibling;if($.nodeType===1?J?($._stashedDisplay=$.style.display,$.style.display="none"):($.style.display=$._stashedDisplay||"",$.getAttribute("style")===""&&$.removeAttribute("style")):$.nodeType===3&&(J?($._stashedText=$.nodeValue,$.nodeValue=""):$.nodeValue=$._stashedText||""),q&&q.nodeType===8)if($=q.data,$===u_)if(_===0)break;else _--;else $!==b_&&$!==U6&&$!==G8&&$!==E7||_++;$=q}while($)}function Xw(_){Jz(_,!0)}function Hw(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function Yw(_){_.nodeValue=""}function Ww(_){Jz(_,!1)}function zw(_,J){J=J[Lf],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function Bw(_,J){_.nodeValue=J}function pG(_){var J=_.firstChild;J&&J.nodeType===10&&(J=J.nextSibling);for(;J;){var $=J;switch(J=J.nextSibling,$.nodeName){case"HTML":case"HEAD":case"BODY":pG($),R1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function Aw(_,J,$,q){for(;_.nodeType===1;){var G=$;if(_.nodeName.toLowerCase()!==J.toLowerCase()){if(!q&&(_.nodeName!=="INPUT"||_.type!=="hidden"))break}else if(!q)if(J==="input"&&_.type==="hidden"){j1(G.name,"name");var F=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===F)return _}else return _;else if(!_[o9])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(F=_.getAttribute("rel"),F==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(F!==G.rel||_.getAttribute("href")!==(G.href==null||G.href===""?null:G.href)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin)||_.getAttribute("title")!==(G.title==null?null:G.title))break;return _;case"style":if(_.hasAttribute("data-precedence"))break;return _;case"script":if(F=_.getAttribute("src"),(F!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&F&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=q5(_.nextSibling),_===null)break}return null}function Lw(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=q5(_.nextSibling),_===null)return null}return _}function $z(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=q5(_.nextSibling),_===null)return null}return _}function cG(_){return _.data===U6||_.data===G8}function lG(_){return _.data===E7||_.data===U6&&_.ownerDocument.readyState!==rA}function Mw(_,J){var $=_.ownerDocument;if(_.data===G8)_._reactRetry=J;else if(_.data!==U6||$.readyState!==rA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function q5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===b_||J===E7||J===U6||J===G8||J===U8||J===RF||J===lA)break;if(J===u_||J===rQ)return null}}return _}function Qz(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var F=q[G];$[lW(F.name)]=F.name.toLowerCase()==="style"?xG(_):F.value}return{type:J,props:$}}return _.nodeType===8?_.data===U8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function qz(_,J,$){return $===null||$[Wf]!==!0?(_.nodeValue===J?_=null:(J=v3(J),_=v3(_.nodeValue)===J?null:_.nodeValue),_):null}function rG(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===u_||$===rQ){if(J===0)return q5(_.nextSibling);J--}else $!==b_&&$!==E7&&$!==U6&&$!==G8&&$!==U8||J++}_=_.nextSibling}return null}function Uz(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===b_||$===E7||$===U6||$===G8||$===U8){if(J===0)return _;J--}else $!==u_&&$!==rQ||J++}_=_.previousSibling}return null}function Tw(_){_7(_)}function Rw(_){_7(_)}function Ow(_){_7(_)}function Gz(_,J,$,q,G){switch(G&&z9(_,q.ancestorInfo),J=x$($),_){case"html":if(_=J.documentElement,!_)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"head":if(_=J.head,!_)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return _;case"body":if(_=J.body,!_)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return _;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function ww(_,J,$,q){if(!$[h3]&&h1($)){var G=$.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",G,G,G)}switch(_){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(G=$.attributes;G.length;)$.removeAttributeNode(G[0]);X2($,_,J),$[H2]=q,$[V2]=J}function l9(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);R1(_)}function h$(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function Zz(_,J,$){var q=u7;if(q&&typeof J==="string"&&J){var G=g2(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),oA.has(G)||(oA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),X2(J,"link",_),V1(J),q.head.appendChild(J)))}}function Fz(_,J,$,q){var G=(G=u3.current)?h$(G):null;if(!G)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(_){case"meta":case"title":return null;case"style":return typeof $.precedence==="string"&&typeof $.href==="string"?($=n8($.href),J=U0(G).hoistableStyles,q=J.get($),q||(q={type:"style",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};case"link":if($.rel==="stylesheet"&&typeof $.href==="string"&&typeof $.precedence==="string"){_=n8($.href);var F=U0(G).hoistableStyles,Y=F.get(_);if(!Y&&(G=G.ownerDocument||G,Y={type:"stylesheet",instance:null,count:0,state:{loading:F8,preload:null}},F.set(_,Y),(F=G.querySelector(r9(_)))&&!F._p&&(Y.instance=F,Y.state.loading=h_|j5),!V5.has(_))){var A={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};V5.set(_,A),F||Iw(G,_,A,Y.state)}if(J&&q===null)throw $=`
187
187
 
188
- - `+u$(J)+`
189
- + `+u$($),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return H}if(J&&q!==null)throw $=`
188
+ - `+m$(J)+`
189
+ + `+m$($),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return Y}if(J&&q!==null)throw $=`
190
190
 
191
- - `+u$(J)+`
192
- + `+u$($),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return null;case"script":return J=$.async,$=$.src,typeof $==="string"&&J&&typeof J!=="function"&&typeof J!=="symbol"?($=n8($),J=q0(G).hoistableScripts,q=J.get($),q||(q={type:"script",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+_+'". this is a bug in React.')}}function u$(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):b5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):b5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):b5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function o8(_){return'href="'+g2(_)+'"'}function c9(_){return'link[rel="stylesheet"]['+_+"]"}function QA(_){return o1({},_,{"data-precedence":_.precedence,precedence:null})}function zw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=x_:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=x_}),J.addEventListener("error",function(){return q.loading|=cz}),K2(J,"link",$),S1(J),_.head.appendChild(J))}function n8(_){return'[src="'+g2(_)+'"]'}function l9(_){return"script[async]"+_}function qA(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+g2($.href)+'"]');if(q)return J.instance=q,S1(q),q;var G=o1({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),S1(q),K2(q,"style",G),h$(q,$.precedence,_),J.instance=q;case"stylesheet":G=o8($.href);var F=_.querySelector(c9(G));if(F)return J.state.loading|=P5,J.instance=F,S1(F),F;q=QA($),(G=N5.get(G))&&dG(q,G),F=(_.ownerDocument||_).createElement("link"),S1(F);var H=F;return H._p=new Promise(function(z,w){H.onload=z,H.onerror=w}),K2(F,"link",q),J.state.loading|=P5,h$(F,$.precedence,_),J.instance=F;case"script":if(F=n8($.src),G=_.querySelector(l9(F)))return J.instance=G,S1(G),G;if(q=$,G=N5.get(F))q=o1({},$),iG(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),S1(G),K2(G,"link",q),_.head.appendChild(G),J.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+J.type+'". this is a bug in React.')}else J.type==="stylesheet"&&(J.state.loading&P5)===F8&&(q=J.instance,J.state.loading|=P5,h$(q,$.precedence,_));return J.instance}function h$(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,F=G,H=0;H<q.length;H++){var z=q[H];if(z.dataset.precedence===J)F=z;else if(F!==G)break}F?F.parentNode.insertBefore(_,F.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function dG(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function iG(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function UA(_,J,$){if(rQ===null){var q=new Map,G=rQ=new Map;G.set($,q)}else G=rQ,q=G.get($),q||(q=new Map,G.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(G=0;G<$.length;G++){var F=$[G];if(!(F[s9]||F[X2]||_==="link"&&F.getAttribute("rel")==="stylesheet")&&F.namespaceURI!==U7){var H=F.getAttribute(J)||"";H=_+H;var z=q.get(H);z?z.push(F):q.set(H,[F])}}return q}function GA(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function Lw(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===E7||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:F}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),F!=null&&$.push("`disabled`"),G=iO($,"and"),G+=$.length===1?" prop":" props",F=$.length===1?"an "+G:"the "+G,$.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',_,F,G)}q&&(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(J.onError||J.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(J.rel){case"stylesheet":return _=J.precedence,J=J.disabled,typeof _!=="string"&&q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof _==="string"&&J==null;default:return!0}case"script":if(_=J.async&&typeof J.async!=="function"&&typeof J.async!=="symbol",!_||J.onLoad||J.onError||!J.src||typeof J.src!=="string"){q&&(_?J.onLoad||J.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",_)}return!1}function ZA(_){return _.type==="stylesheet"&&(_.state.loading&lz)===F8?!1:!0}function Mw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&P5)===F8){if($.instance===null){var G=o8(q.href),F=J.querySelector(c9(G));if(F){J=F._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=m$.bind(_),J.then(_,_)),$.state.loading|=P5,$.instance=F,S1(F);return}F=J.ownerDocument||J,q=QA(q),(G=N5.get(G))&&dG(q,G),F=F.createElement("link"),S1(F);var H=F;H._p=new Promise(function(z,w){H.onload=z,H.onerror=w}),K2(F,"link",q),$.instance=F}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&lz)===F8&&(_.count++,$=m$.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function Tw(_,J){return _.stylesheets&&_.count===0&&g$(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&g$(_,_.stylesheets),_.unsuspend){var F=_.unsuspend;_.unsuspend=null,F()}},Wf+J);0<_.imgBytes&&PF===0&&(PF=125*aO()*Bf);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&g$(_,_.stylesheets),_.unsuspend)){var F=_.unsuspend;_.unsuspend=null,F()}},(_.imgBytes>PF?50:Af)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function m$(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)g$(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function g$(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,dQ=new Map,J.forEach(Rw,_),dQ=null,m$.call(_))}function Rw(_,J){if(!(J.state.loading&P5)){var $=dQ.get(_);if($)var q=$.get(NF);else{$=new Map,dQ.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),F=0;F<G.length;F++){var H=G[F];if(H.nodeName==="LINK"||H.getAttribute("media")!=="not all")$.set(H.dataset.precedence,H),q=H}q&&$.set(NF,q)}G=J.instance,H=G.getAttribute("data-precedence"),F=$.get(H)||q,F===q&&$.set(NF,G),$.set(H,G),this.count++,q=m$.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),F?F.parentNode.insertBefore(G,F.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=P5}}function Ow(_,J,$,q,G,F,H,z,w){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Z8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=z2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=z2(0),this.hiddenUpdates=z2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=F,this.onRecoverableError=H,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function FA(_,J,$,q,G,F,H,z,w,N,i,s){return _=new Ow(_,J,$,H,w,N,i,s,z),J=mI,F===!0&&(J|=R2|u5),J|=d1,F=M(3,null,null,J),_.current=F,F.stateNode=_,J=OU(),v6(J),_.pooledCache=J,v6(J),F.memoizedState={element:q,isDehydrated:$,cache:J},NU(F),_}function KA(_){if(!_)return g3;return _=g3,_}function aG(_,J,$,q,G,F){if(T2&&typeof T2.onScheduleFiberRoot==="function")try{T2.onScheduleFiberRoot(Q7,q,$)}catch(H){M4||(M4=!0,console.error("React instrumentation encountered an error: %o",H))}G=KA(G),q.context===null?q.context=G:q.pendingContext=G,L4&&U5!==null&&!sz&&(sz=!0,console.error(`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.
191
+ - `+m$(J)+`
192
+ + `+m$($),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+$);return null;case"script":return J=$.async,$=$.src,typeof $==="string"&&J&&typeof J!=="function"&&typeof J!=="symbol"?($=e8($),J=U0(G).hoistableScripts,q=J.get($),q||(q={type:"script",instance:null,count:0,state:null},J.set($,q)),q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+_+'". this is a bug in React.')}}function m$(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):h5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):h5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):h5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function n8(_){return'href="'+g2(_)+'"'}function r9(_){return'link[rel="stylesheet"]['+_+"]"}function Kz(_){return o1({},_,{"data-precedence":_.precedence,precedence:null})}function Iw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=h_:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=h_}),J.addEventListener("error",function(){return q.loading|=sA}),X2(J,"link",$),V1(J),_.head.appendChild(J))}function e8(_){return'[src="'+g2(_)+'"]'}function d9(_){return"script[async]"+_}function Xz(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+g2($.href)+'"]');if(q)return J.instance=q,V1(q),q;var G=o1({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),V1(q),X2(q,"style",G),g$(q,$.precedence,_),J.instance=q;case"stylesheet":G=n8($.href);var F=_.querySelector(r9(G));if(F)return J.state.loading|=j5,J.instance=F,V1(F),F;q=Kz($),(G=V5.get(G))&&dG(q,G),F=(_.ownerDocument||_).createElement("link"),V1(F);var Y=F;return Y._p=new Promise(function(A,w){Y.onload=A,Y.onerror=w}),X2(F,"link",q),J.state.loading|=j5,g$(F,$.precedence,_),J.instance=F;case"script":if(F=e8($.src),G=_.querySelector(d9(F)))return J.instance=G,V1(G),G;if(q=$,G=V5.get(F))q=o1({},$),iG(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),V1(G),X2(G,"link",q),_.head.appendChild(G),J.instance=G;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+J.type+'". this is a bug in React.')}else J.type==="stylesheet"&&(J.state.loading&j5)===F8&&(q=J.instance,J.state.loading|=j5,g$(q,$.precedence,_));return J.instance}function g$(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,F=G,Y=0;Y<q.length;Y++){var A=q[Y];if(A.dataset.precedence===J)F=A;else if(F!==G)break}F?F.parentNode.insertBefore(_,F.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function dG(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function iG(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function Hz(_,J,$){if(iQ===null){var q=new Map,G=iQ=new Map;G.set($,q)}else G=iQ,q=G.get($),q||(q=new Map,G.set($,q));if(q.has(_))return q;q.set(_,null),$=$.getElementsByTagName(_);for(G=0;G<$.length;G++){var F=$[G];if(!(F[o9]||F[H2]||_==="link"&&F.getAttribute("rel")==="stylesheet")&&F.namespaceURI!==G7){var Y=F.getAttribute(J)||"";Y=_+Y;var A=q.get(Y);A?A.push(F):q.set(Y,[F])}}return q}function Yz(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function fw(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===b7||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:F}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),F!=null&&$.push("`disabled`"),G=_w($,"and"),G+=$.length===1?" prop":" props",F=$.length===1?"an "+G:"the "+G,$.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',_,F,G)}q&&(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(J.onError||J.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(J.rel){case"stylesheet":return _=J.precedence,J=J.disabled,typeof _!=="string"&&q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof _==="string"&&J==null;default:return!0}case"script":if(_=J.async&&typeof J.async!=="function"&&typeof J.async!=="symbol",!_||J.onLoad||J.onError||!J.src||typeof J.src!=="string"){q&&(_?J.onLoad||J.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",_)}return!1}function Wz(_){return _.type==="stylesheet"&&(_.state.loading&tA)===F8?!1:!0}function Pw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&j5)===F8){if($.instance===null){var G=n8(q.href),F=J.querySelector(r9(G));if(F){J=F._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=p$.bind(_),J.then(_,_)),$.state.loading|=j5,$.instance=F,V1(F);return}F=J.ownerDocument||J,q=Kz(q),(G=V5.get(G))&&dG(q,G),F=F.createElement("link"),V1(F);var Y=F;Y._p=new Promise(function(A,w){Y.onload=A,Y.onerror=w}),X2(F,"link",q),$.instance=F}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&tA)===F8&&(_.count++,$=p$.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function Nw(_,J){return _.stylesheets&&_.count===0&&c$(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&c$(_,_.stylesheets),_.unsuspend){var F=_.unsuspend;_.unsuspend=null,F()}},Rf+J);0<_.imgBytes&&PF===0&&(PF=125*Jw()*wf);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&c$(_,_.stylesheets),_.unsuspend)){var F=_.unsuspend;_.unsuspend=null,F()}},(_.imgBytes>PF?50:Of)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function p$(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)c$(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function c$(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,aQ=new Map,J.forEach(Cw,_),aQ=null,p$.call(_))}function Cw(_,J){if(!(J.state.loading&j5)){var $=aQ.get(_);if($)var q=$.get(NF);else{$=new Map,aQ.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),F=0;F<G.length;F++){var Y=G[F];if(Y.nodeName==="LINK"||Y.getAttribute("media")!=="not all")$.set(Y.dataset.precedence,Y),q=Y}q&&$.set(NF,q)}G=J.instance,Y=G.getAttribute("data-precedence"),F=$.get(Y)||q,F===q&&$.set(NF,G),$.set(Y,G),this.count++,q=p$.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),F?F.parentNode.insertBefore(G,F.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=j5}}function Sw(_,J,$,q,G,F,Y,A,w){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Z8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=A2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A2(0),this.hiddenUpdates=A2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=F,this.onRecoverableError=Y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function zz(_,J,$,q,G,F,Y,A,w,N,t,o){return _=new Sw(_,J,$,Y,w,N,t,o,A),J=iI,F===!0&&(J|=R2|g5),J|=d1,F=M(3,null,null,J),_.current=F,F.stateNode=_,J=OU(),v6(J),_.pooledCache=J,v6(J),F.memoizedState={element:q,isDehydrated:$,cache:J},NU(F),_}function Bz(_){if(!_)return c3;return _=c3,_}function aG(_,J,$,q,G,F){if(T2&&typeof T2.onScheduleFiberRoot==="function")try{T2.onScheduleFiberRoot(q7,q,$)}catch(Y){R4||(R4=!0,console.error("React instrumentation encountered an error: %o",Y))}G=Bz(G),q.context===null?q.context=G:q.pendingContext=G,T4&&G5!==null&&!JL&&(JL=!0,console.error(`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.
193
193
 
194
- Check the render method of %s.`,t(U5)||"Unknown")),q=N3(J),q.payload={element:$},F=F===void 0?null:F,F!==null&&(typeof F!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",F),q.callback=F),$=j3(_,q,J),$!==null&&($4(J,"root.render()",null),D0($,_,J),f9($,_,J))}function XA(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function sG(_,J){XA(_,J),(_=_.alternate)&&XA(_,J)}function HA(_){if(_.tag===13||_.tag===31){var J=M2(_,67108864);J!==null&&D0(J,_,67108864),sG(_,67108864)}}function YA(_){if(_.tag===13||_.tag===31){var J=$5(_);J=b4(J);var $=M2(_,J);$!==null&&D0($,_,J),sG(_,J)}}function ww(){return U5}function Iw(_,J,$,q){var G=G1.T;G1.T=null;var F=X0.p;try{X0.p=G5,tG(_,J,$,q)}finally{X0.p=F,G1.T=G}}function fw(_,J,$,q){var G=G1.T;G1.T=null;var F=X0.p;try{X0.p=x5,tG(_,J,$,q)}finally{X0.p=F,G1.T=G}}function tG(_,J,$,q){if(aQ){var G=oG(q);if(G===null)EG(_,J,q,sQ,$),AA(_,q);else if(Pw(G,_,J,$,q))q.stopPropagation();else if(AA(_,q),J&4&&-1<Lf.indexOf(_)){for(;G!==null;){var F=h1(G);if(F!==null)switch(F.tag){case 3:if(F=F.stateNode,F.current.memoizedState.isDehydrated){var H=A2(F.pendingLanes);if(H!==0){var z=F;z.pendingLanes|=2;for(z.entangledLanes|=2;H;){var w=1<<31-V2(H);z.entanglements[1]|=w,H&=~w}W4(F),(G0&(t0|X5))===U2&&(DQ=$2()+Iz,u9(0,!1))}}break;case 31:case 13:z=M2(F,2),z!==null&&D0(z,F,2),a8(),sG(F,2)}if(F=oG(q),F===null&&EG(_,J,q,sQ,$),F===G)break;G=F}G!==null&&q.stopPropagation()}else EG(_,J,q,null,$)}}function oG(_){return _=QU(_),nG(_)}function nG(_){if(sQ=null,_=P1(_),_!==null){var J=D(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=h(J),_!==null)return _;_=null}else if($===31){if(_=P(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return sQ=_,null}function WA(_){switch(_){case"beforetoggle":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"toggle":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 G5;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return x5;case"message":switch(vw()){case HZ:return G5;case YZ:return x5;case $7:case Ew:return R4;case WZ:return o$;default:return R4}default:return R4}}function AA(_,J){switch(_){case"focusin":case"focusout":q6=null;break;case"dragenter":case"dragleave":U6=null;break;case"mouseover":case"mouseout":G6=null;break;case"pointerover":case"pointerout":h_.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":m_.delete(J.pointerId)}}function r9(_,J,$,q,G,F){if(_===null||_.nativeEvent!==F)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:F,targetContainers:[G]},J!==null&&(J=h1(J),J!==null&&HA(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Pw(_,J,$,q,G){switch(J){case"focusin":return q6=r9(q6,_,J,$,q,G),!0;case"dragenter":return U6=r9(U6,_,J,$,q,G),!0;case"mouseover":return G6=r9(G6,_,J,$,q,G),!0;case"pointerover":var F=G.pointerId;return h_.set(F,r9(h_.get(F)||null,_,J,$,q,G)),!0;case"gotpointercapture":return F=G.pointerId,m_.set(F,r9(m_.get(F)||null,_,J,$,q,G)),!0}return!1}function BA(_){var J=P1(_.target);if(J!==null){var $=D(J);if($!==null){if(J=$.tag,J===13){if(J=h($),J!==null){_.blockedOn=J,B1(_.priority,function(){YA($)});return}}else if(J===31){if(J=P($),J!==null){_.blockedOn=J,B1(_.priority,function(){YA($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function p$(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=oG(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;t9!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),t9=G,$.target.dispatchEvent(q),t9===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),t9=null}else return J=h1($),J!==null&&HA(J),_.blockedOn=$,!1;J.shift()}return!0}function zA(_,J,$){p$(_)&&$.delete(J)}function Nw(){jF=!1,q6!==null&&p$(q6)&&(q6=null),U6!==null&&p$(U6)&&(U6=null),G6!==null&&p$(G6)&&(G6=null),h_.forEach(zA),m_.forEach(zA)}function c$(_,J){_.blockedOn===J&&(_.blockedOn=null,jF||(jF=!0,Z0.unstable_scheduleCallback(Z0.unstable_NormalPriority,Nw)))}function LA(_){tQ!==_&&(tQ=_,Z0.unstable_scheduleCallback(Z0.unstable_NormalPriority,function(){tQ===_&&(tQ=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(nG(q||$)===null)continue;else break;var F=h1($);F!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),nU(F,$,q,G))}}))}function e8(_){function J(w){return c$(w,_)}q6!==null&&c$(q6,_),U6!==null&&c$(U6,_),G6!==null&&c$(G6,_),h_.forEach(J),m_.forEach(J);for(var $=0;$<Z6.length;$++){var q=Z6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<Z6.length&&($=Z6[0],$.blockedOn===null);)BA($),$.blockedOn===null&&Z6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],F=$[q+1],H=G[S2]||null;if(typeof F==="function")H||LA($);else if(H){var z=null;if(F&&F.hasAttribute("formAction")){if(G=F,H=F[S2]||null)z=H.formAction;else if(nG(G)!==null)continue}else z=H.action;typeof z==="function"?$[q+1]=z:($.splice(q,3),q-=3),LA($)}}}function MA(){function _(F){F.canIntercept&&F.info==="react-transition"&&F.intercept({handler:function(){return new Promise(function(H){return G=H})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var F=navigation.currentEntry;F&&F.url!=null&&navigation.navigate(F.url,{state:F.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,G=null;return navigation.addEventListener("navigate",_),navigation.addEventListener("navigatesuccess",J),navigation.addEventListener("navigateerror",J),setTimeout($,100),function(){q=!0,navigation.removeEventListener("navigate",_),navigation.removeEventListener("navigatesuccess",J),navigation.removeEventListener("navigateerror",J),G!==null&&(G(),G=null)}}}function eG(_){this._internalRoot=_}function l$(_){this._internalRoot=_}function TA(_){_[x3]&&(_._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("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."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o1=Object.assign,jw=Symbol.for("react.element"),B4=Symbol.for("react.transitional.element"),_7=Symbol.for("react.portal"),J7=Symbol.for("react.fragment"),r$=Symbol.for("react.strict_mode"),_Z=Symbol.for("react.profiler"),JZ=Symbol.for("react.consumer"),z4=Symbol.for("react.context"),d9=Symbol.for("react.forward_ref"),$Z=Symbol.for("react.suspense"),QZ=Symbol.for("react.suspense_list"),d$=Symbol.for("react.memo"),q5=Symbol.for("react.lazy"),qZ=Symbol.for("react.activity"),Cw=Symbol.for("react.memo_cache_sentinel"),RA=Symbol.iterator,Vw=Symbol.for("react.client.reference"),a0=Array.isArray,G1=J9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X0=xX.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sw=Object.freeze({pending:!1,data:null,method:null,action:null}),UZ=[],GZ=[],d4=-1,v3=Q1(null),i9=Q1(null),E3=Q1(null),i$=Q1(null),a9=0,OA,wA,IA,fA,PA,NA,jA;V.__reactDisabledLog=!0;var ZZ,CA,FZ=!1,KZ=new(typeof WeakMap==="function"?WeakMap:Map),U5=null,L4=!1,b5=Object.prototype.hasOwnProperty,XZ=Z0.unstable_scheduleCallback,Dw=Z0.unstable_cancelCallback,kw=Z0.unstable_shouldYield,yw=Z0.unstable_requestPaint,$2=Z0.unstable_now,vw=Z0.unstable_getCurrentPriorityLevel,HZ=Z0.unstable_ImmediatePriority,YZ=Z0.unstable_UserBlockingPriority,$7=Z0.unstable_NormalPriority,Ew=Z0.unstable_LowPriority,WZ=Z0.unstable_IdlePriority,bw=Z0.log,xw=Z0.unstable_setDisableYieldValue,Q7=null,T2=null,M4=!1,T4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",V2=Math.clz32?Math.clz32:h2,uw=Math.log,hw=Math.LN2,a$=256,s$=262144,t$=4194304,G5=2,x5=8,R4=32,o$=268435456,b3=Math.random().toString(36).slice(2),X2="__reactFiber$"+b3,S2="__reactProps$"+b3,x3="__reactContainer$"+b3,AZ="__reactEvents$"+b3,mw="__reactListeners$"+b3,gw="__reactHandles$"+b3,VA="__reactResources$"+b3,s9="__reactMarker$"+b3,SA=new Set,g6={},BZ={},pw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},cw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),DA={},kA={},lw=/[\n"\\]/g,yA=!1,vA=!1,EA=!1,bA=!1,xA=!1,uA=!1,hA=["value","defaultValue"],mA=!1,gA=/["'&<>\n\t]|^\s|\s$/,rw="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".split(" "),pA="applet caption html table td th marquee object template foreignObject desc title".split(" "),dw=pA.concat(["button"]),iw="dd dt li option optgroup p rp rt".split(" "),cA={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},n$={},zZ={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),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".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),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".split(" "),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"]},lA=/([A-Z])/g,rA=/^ms-/,aw=/^(?:webkit|moz|o)[A-Z]/,sw=/^-ms-/,tw=/-(.)/g,dA=/;\s*$/,q7={},LZ={},iA=!1,aA=!1,sA=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),e$="http://www.w3.org/1998/Math/MathML",U7="http://www.w3.org/2000/svg",ow=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_Q={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",fetchpriority:"fetchPriority",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",inert:"inert",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",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",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",transformorigin:"transformOrigin","transform-origin":"transformOrigin",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"},tA={"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,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},G7={},nw=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ew=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oA=!1,D2={},nA=/^on./,_I=/^on[^A-Z]/,JI=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$I=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),QI=/^[\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,t9=null,Z7=null,F7=null,MZ=!1,O4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),TZ=!1;if(O4)try{var o9={};Object.defineProperty(o9,"passive",{get:function(){TZ=!0}}),window.addEventListener("test",o9,o9),window.removeEventListener("test",o9,o9)}catch(_){TZ=!1}var u3=null,RZ=null,JQ=null,p6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$Q=p2(p6),n9=o1({},p6,{view:0,detail:0}),qI=p2(n9),OZ,wZ,e9,QQ=o1({},n9,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==e9&&(e9&&_.type==="mousemove"?(OZ=_.screenX-e9.screenX,wZ=_.screenY-e9.screenY):wZ=OZ=0,e9=_),OZ},movementY:function(_){return"movementY"in _?_.movementY:wZ}}),eA=p2(QQ),UI=o1({},QQ,{dataTransfer:0}),GI=p2(UI),ZI=o1({},n9,{relatedTarget:0}),IZ=p2(ZI),FI=o1({},p6,{animationName:0,elapsedTime:0,pseudoElement:0}),KI=p2(FI),XI=o1({},p6,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),HI=p2(XI),YI=o1({},p6,{data:0}),_B=p2(YI),WI=_B,AI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BI={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"},zI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},LI=o1({},n9,{key:function(_){if(_.key){var J=AI[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=pJ(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?BI[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qU,charCode:function(_){return _.type==="keypress"?pJ(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?pJ(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),MI=p2(LI),TI=o1({},QQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),JB=p2(TI),RI=o1({},n9,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qU}),OI=p2(RI),wI=o1({},p6,{propertyName:0,elapsedTime:0,pseudoElement:0}),II=p2(wI),fI=o1({},QQ,{deltaX:function(_){return"deltaX"in _?_.deltaX:("wheelDeltaX"in _)?-_.wheelDeltaX:0},deltaY:function(_){return"deltaY"in _?_.deltaY:("wheelDeltaY"in _)?-_.wheelDeltaY:("wheelDelta"in _)?-_.wheelDelta:0},deltaZ:0,deltaMode:0}),PI=p2(fI),NI=o1({},p6,{newState:0,oldState:0}),jI=p2(NI),CI=[9,13,27,32],$B=229,fZ=O4&&"CompositionEvent"in window,__=null;O4&&"documentMode"in document&&(__=document.documentMode);var VI=O4&&"TextEvent"in window&&!__,QB=O4&&(!fZ||__&&8<__&&11>=__),qB=32,UB=String.fromCharCode(qB),GB=!1,K7=!1,SI={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},J_=null,$_=null,ZB=!1;O4&&(ZB=oR("input")&&(!document.documentMode||9<document.documentMode));var k2=typeof Object.is==="function"?Object.is:QO,DI=O4&&"documentMode"in document&&11>=document.documentMode,X7=null,PZ=null,Q_=null,NZ=!1,H7={animationend:j6("Animation","AnimationEnd"),animationiteration:j6("Animation","AnimationIteration"),animationstart:j6("Animation","AnimationStart"),transitionrun:j6("Transition","TransitionRun"),transitionstart:j6("Transition","TransitionStart"),transitioncancel:j6("Transition","TransitionCancel"),transitionend:j6("Transition","TransitionEnd")},jZ={},FB={};O4&&(FB=document.createElement("div").style,("AnimationEvent"in window)||(delete H7.animationend.animation,delete H7.animationiteration.animation,delete H7.animationstart.animation),("TransitionEvent"in window)||delete H7.transitionend.transition);var KB=C6("animationend"),XB=C6("animationiteration"),HB=C6("animationstart"),kI=C6("transitionrun"),yI=C6("transitionstart"),vI=C6("transitioncancel"),YB=C6("transitionend"),WB=new Map,CZ="abort auxClick beforeToggle 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".split(" ");CZ.push("scrollEnd");var AB=0;if(typeof performance==="object"&&typeof performance.now==="function")var EI=performance,BB=function(){return EI.now()};else{var bI=Date;BB=function(){return bI.now()}}var VZ=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},xI="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",qQ=0,SZ=1,DZ=2,kZ=3,UQ="– ",GQ="+ ",zB="  ",R0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",B5="Components ⚛",n1="Scheduler ⚛",e1="Blocking",h3=!1,i4={color:"primary",properties:null,tooltipText:"",track:B5},m3={start:-0,end:-0,detail:{devtools:i4}},uI=["Changed Props",""],LB="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",hI=["Changed Props",LB],q_=1,a4=2,z5=[],Y7=0,yZ=0,g3={};Object.freeze(g3);var L5=null,W7=null,u1=0,mI=1,d1=2,R2=8,u5=16,gI=32,MB=!1;try{var TB=Object.preventExtensions({})}catch(_){MB=!0}var vZ=new WeakMap,A7=[],B7=0,ZQ=null,U_=0,M5=[],T5=0,c6=null,s4=1,t4="",H2=null,O0=null,J0=!1,w4=!1,Z5=null,p3=null,R5=!1,EZ=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),bZ=Q1(null),xZ=Q1(null),RB={},FQ=null,z7=null,L7=!1,pI=typeof AbortController<"u"?AbortController:function(){var _=[],J=this.signal={aborted:!1,addEventListener:function($,q){_.push(q)}};this.abort=function(){J.aborted=!0,_.forEach(function($){return $()})}},cI=Z0.unstable_scheduleCallback,lI=Z0.unstable_NormalPriority,g0={$$typeof:z4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},p0=Z0.unstable_now,KQ=console.createTask?console.createTask:function(){return null},G_=1,XQ=2,Q2=-0,c3=-0,o4=-0,n4=null,y2=-1.1,l6=-0,C0=-0,k1=-1.1,b1=-1.1,f0=null,k0=!1,l3=-0,I4=-1.1,Z_=null,r3=0,uZ=null,hZ=null,r6=-1.1,F_=null,M7=-1.1,HQ=-1.1,f4=-0,e4=-1.1,O5=-1.1,mZ=0,K_=null,OB=null,wB=null,d3=-1.1,d6=null,i3=-1.1,YQ=-1.1,IB=-0,fB=-0,WQ=0,_3=null,PB=0,X_=-1.1,AQ=!1,BQ=!1,H_=null,gZ=0,i6=0,T7=null,NB=G1.S;G1.S=function(_,J){if(Oz=$2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>e4&&0>O5){e4=p0();var $=g9(),q=m9();if($!==i3||q!==d6)i3=-1.1;d3=$,d6=q}XO(_,J)}NB!==null&&NB(_,J)};var a6=Q1(null),h5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Y_=[],W_=[],A_=[],B_=[],z_=[],L_=[],s6=new Set;h5.recordUnsafeLifecycleWarnings=function(_,J){s6.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&Y_.push(_),_.mode&R2&&typeof J.UNSAFE_componentWillMount==="function"&&W_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&A_.push(_),_.mode&R2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&B_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&z_.push(_),_.mode&R2&&typeof J.UNSAFE_componentWillUpdate==="function"&&L_.push(_))},h5.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<Y_.length&&(Y_.forEach(function(z){_.add(t(z)||"Component"),s6.add(z.type)}),Y_=[]);var J=new Set;0<W_.length&&(W_.forEach(function(z){J.add(t(z)||"Component"),s6.add(z.type)}),W_=[]);var $=new Set;0<A_.length&&(A_.forEach(function(z){$.add(t(z)||"Component"),s6.add(z.type)}),A_=[]);var q=new Set;0<B_.length&&(B_.forEach(function(z){q.add(t(z)||"Component"),s6.add(z.type)}),B_=[]);var G=new Set;0<z_.length&&(z_.forEach(function(z){G.add(t(z)||"Component"),s6.add(z.type)}),z_=[]);var F=new Set;if(0<L_.length&&(L_.forEach(function(z){F.add(t(z)||"Component"),s6.add(z.type)}),L_=[]),0<J.size){var H=L(J);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+ Check the render method of %s.`,m(G5)||"Unknown")),q=S3(J),q.payload={element:$},F=F===void 0?null:F,F!==null&&(typeof F!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",F),q.callback=F),$=j3(_,q,J),$!==null&&(q4(J,"root.render()",null),k0($,_,J),N9($,_,J))}function Az(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function sG(_,J){Az(_,J),(_=_.alternate)&&Az(_,J)}function Lz(_){if(_.tag===13||_.tag===31){var J=M2(_,67108864);J!==null&&k0(J,_,67108864),sG(_,67108864)}}function Mz(_){if(_.tag===13||_.tag===31){var J=Q5(_);J=x4(J);var $=M2(_,J);$!==null&&k0($,_,J),sG(_,J)}}function jw(){return G5}function Vw(_,J,$,q){var G=Z1.T;Z1.T=null;var F=H0.p;try{H0.p=Z5,tG(_,J,$,q)}finally{H0.p=F,Z1.T=G}}function kw(_,J,$,q){var G=Z1.T;Z1.T=null;var F=H0.p;try{H0.p=m5,tG(_,J,$,q)}finally{H0.p=F,Z1.T=G}}function tG(_,J,$,q){if(tQ){var G=oG(q);if(G===null)EG(_,J,q,oQ,$),Rz(_,q);else if(Dw(G,_,J,$,q))q.stopPropagation();else if(Rz(_,q),J&4&&-1<ff.indexOf(_)){for(;G!==null;){var F=h1(G);if(F!==null)switch(F.tag){case 3:if(F=F.stateNode,F.current.memoizedState.isDehydrated){var Y=z2(F.pendingLanes);if(Y!==0){var A=F;A.pendingLanes|=2;for(A.entangledLanes|=2;Y;){var w=1<<31-j2(Y);A.entanglements[1]|=w,Y&=~w}B4(F),(Z0&(o0|H5))===G2&&(yQ=Q2()+jA,m9(0,!1))}}break;case 31:case 13:A=M2(F,2),A!==null&&k0(A,F,2),s8(),sG(F,2)}if(F=oG(q),F===null&&EG(_,J,q,oQ,$),F===G)break;G=F}G!==null&&q.stopPropagation()}else EG(_,J,q,null,$)}}function oG(_){return _=QU(_),nG(_)}function nG(_){if(oQ=null,_=P1(_),_!==null){var J=k(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=h(J),_!==null)return _;_=null}else if($===31){if(_=P(J),_!==null)return _;_=null}else if($===3){if(J.stateNode.current.memoizedState.isDehydrated)return J.tag===3?J.stateNode.containerInfo:null;_=null}else J!==_&&(_=null)}}return oQ=_,null}function Tz(_){switch(_){case"beforetoggle":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"toggle":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 Z5;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return m5;case"message":switch(gw()){case HZ:return Z5;case YZ:return m5;case Q7:case pw:return w4;case WZ:return e$;default:return w4}default:return w4}}function Rz(_,J){switch(_){case"focusin":case"focusout":G6=null;break;case"dragenter":case"dragleave":Z6=null;break;case"mouseover":case"mouseout":F6=null;break;case"pointerover":case"pointerout":g_.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":p_.delete(J.pointerId)}}function i9(_,J,$,q,G,F){if(_===null||_.nativeEvent!==F)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:F,targetContainers:[G]},J!==null&&(J=h1(J),J!==null&&Lz(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Dw(_,J,$,q,G){switch(J){case"focusin":return G6=i9(G6,_,J,$,q,G),!0;case"dragenter":return Z6=i9(Z6,_,J,$,q,G),!0;case"mouseover":return F6=i9(F6,_,J,$,q,G),!0;case"pointerover":var F=G.pointerId;return g_.set(F,i9(g_.get(F)||null,_,J,$,q,G)),!0;case"gotpointercapture":return F=G.pointerId,p_.set(F,i9(p_.get(F)||null,_,J,$,q,G)),!0}return!1}function Oz(_){var J=P1(_.target);if(J!==null){var $=k(J);if($!==null){if(J=$.tag,J===13){if(J=h($),J!==null){_.blockedOn=J,B1(_.priority,function(){Mz($)});return}}else if(J===31){if(J=P($),J!==null){_.blockedOn=J,B1(_.priority,function(){Mz($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function l$(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=oG(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;n9!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),n9=G,$.target.dispatchEvent(q),n9===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),n9=null}else return J=h1($),J!==null&&Lz(J),_.blockedOn=$,!1;J.shift()}return!0}function wz(_,J,$){l$(_)&&$.delete(J)}function yw(){CF=!1,G6!==null&&l$(G6)&&(G6=null),Z6!==null&&l$(Z6)&&(Z6=null),F6!==null&&l$(F6)&&(F6=null),g_.forEach(wz),p_.forEach(wz)}function r$(_,J){_.blockedOn===J&&(_.blockedOn=null,CF||(CF=!0,K0.unstable_scheduleCallback(K0.unstable_NormalPriority,yw)))}function Iz(_){nQ!==_&&(nQ=_,K0.unstable_scheduleCallback(K0.unstable_NormalPriority,function(){nQ===_&&(nQ=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(nG(q||$)===null)continue;else break;var F=h1($);F!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),nU(F,$,q,G))}}))}function _7(_){function J(w){return r$(w,_)}G6!==null&&r$(G6,_),Z6!==null&&r$(Z6,_),F6!==null&&r$(F6,_),g_.forEach(J),p_.forEach(J);for(var $=0;$<K6.length;$++){var q=K6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<K6.length&&($=K6[0],$.blockedOn===null);)Oz($),$.blockedOn===null&&K6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],F=$[q+1],Y=G[V2]||null;if(typeof F==="function")Y||Iz($);else if(Y){var A=null;if(F&&F.hasAttribute("formAction")){if(G=F,Y=F[V2]||null)A=Y.formAction;else if(nG(G)!==null)continue}else A=Y.action;typeof A==="function"?$[q+1]=A:($.splice(q,3),q-=3),Iz($)}}}function fz(){function _(F){F.canIntercept&&F.info==="react-transition"&&F.intercept({handler:function(){return new Promise(function(Y){return G=Y})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var F=navigation.currentEntry;F&&F.url!=null&&navigation.navigate(F.url,{state:F.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var q=!1,G=null;return navigation.addEventListener("navigate",_),navigation.addEventListener("navigatesuccess",J),navigation.addEventListener("navigateerror",J),setTimeout($,100),function(){q=!0,navigation.removeEventListener("navigate",_),navigation.removeEventListener("navigatesuccess",J),navigation.removeEventListener("navigateerror",J),G!==null&&(G(),G=null)}}}function eG(_){this._internalRoot=_}function d$(_){this._internalRoot=_}function Pz(_){_[h3]&&(_._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("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."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o1=Object.assign,vw=Symbol.for("react.element"),L4=Symbol.for("react.transitional.element"),J7=Symbol.for("react.portal"),$7=Symbol.for("react.fragment"),i$=Symbol.for("react.strict_mode"),_Z=Symbol.for("react.profiler"),JZ=Symbol.for("react.consumer"),M4=Symbol.for("react.context"),a9=Symbol.for("react.forward_ref"),$Z=Symbol.for("react.suspense"),QZ=Symbol.for("react.suspense_list"),a$=Symbol.for("react.memo"),U5=Symbol.for("react.lazy"),qZ=Symbol.for("react.activity"),Ew=Symbol.for("react.memo_cache_sentinel"),Nz=Symbol.iterator,bw=Symbol.for("react.client.reference"),s0=Array.isArray,Z1=$9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H0=hX.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,uw=Object.freeze({pending:!1,data:null,method:null,action:null}),UZ=[],GZ=[],a4=-1,b3=J1(null),s9=J1(null),u3=J1(null),s$=J1(null),t9=0,Cz,Sz,jz,Vz,kz,Dz,yz;V.__reactDisabledLog=!0;var ZZ,vz,FZ=!1,KZ=new(typeof WeakMap==="function"?WeakMap:Map),G5=null,T4=!1,h5=Object.prototype.hasOwnProperty,XZ=K0.unstable_scheduleCallback,xw=K0.unstable_cancelCallback,hw=K0.unstable_shouldYield,mw=K0.unstable_requestPaint,Q2=K0.unstable_now,gw=K0.unstable_getCurrentPriorityLevel,HZ=K0.unstable_ImmediatePriority,YZ=K0.unstable_UserBlockingPriority,Q7=K0.unstable_NormalPriority,pw=K0.unstable_LowPriority,WZ=K0.unstable_IdlePriority,cw=K0.log,lw=K0.unstable_setDisableYieldValue,q7=null,T2=null,R4=!1,O4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",j2=Math.clz32?Math.clz32:h2,rw=Math.log,dw=Math.LN2,t$=256,o$=262144,n$=4194304,Z5=2,m5=8,w4=32,e$=268435456,x3=Math.random().toString(36).slice(2),H2="__reactFiber$"+x3,V2="__reactProps$"+x3,h3="__reactContainer$"+x3,zZ="__reactEvents$"+x3,iw="__reactListeners$"+x3,aw="__reactHandles$"+x3,Ez="__reactResources$"+x3,o9="__reactMarker$"+x3,bz=new Set,g6={},BZ={},sw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},tw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),uz={},xz={},ow=/[\n"\\]/g,hz=!1,mz=!1,gz=!1,pz=!1,cz=!1,lz=!1,rz=["value","defaultValue"],dz=!1,iz=/["'&<>\n\t]|^\s|\s$/,nw="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".split(" "),az="applet caption html table td th marquee object template foreignObject desc title".split(" "),ew=az.concat(["button"]),_I="dd dt li option optgroup p rp rt".split(" "),sz={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},_Q={},AZ={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),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".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),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".split(" "),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"]},tz=/([A-Z])/g,oz=/^ms-/,JI=/^(?:webkit|moz|o)[A-Z]/,$I=/^-ms-/,QI=/-(.)/g,nz=/;\s*$/,U7={},LZ={},ez=!1,_B=!1,JB=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),JQ="http://www.w3.org/1998/Math/MathML",G7="http://www.w3.org/2000/svg",qI=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$Q={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",fetchpriority:"fetchPriority",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",inert:"inert",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",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",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",transformorigin:"transformOrigin","transform-origin":"transformOrigin",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"},$B={"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,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Z7={},UI=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),GI=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),QB=!1,k2={},qB=/^on./,ZI=/^on[^A-Z]/,FI=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),KI=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),XI=/^[\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,n9=null,F7=null,K7=null,MZ=!1,I4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),TZ=!1;if(I4)try{var e9={};Object.defineProperty(e9,"passive",{get:function(){TZ=!0}}),window.addEventListener("test",e9,e9),window.removeEventListener("test",e9,e9)}catch(_){TZ=!1}var m3=null,RZ=null,QQ=null,p6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qQ=p2(p6),__=o1({},p6,{view:0,detail:0}),HI=p2(__),OZ,wZ,J_,UQ=o1({},__,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==J_&&(J_&&_.type==="mousemove"?(OZ=_.screenX-J_.screenX,wZ=_.screenY-J_.screenY):wZ=OZ=0,J_=_),OZ},movementY:function(_){return"movementY"in _?_.movementY:wZ}}),UB=p2(UQ),YI=o1({},UQ,{dataTransfer:0}),WI=p2(YI),zI=o1({},__,{relatedTarget:0}),IZ=p2(zI),BI=o1({},p6,{animationName:0,elapsedTime:0,pseudoElement:0}),AI=p2(BI),LI=o1({},p6,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),MI=p2(LI),TI=o1({},p6,{data:0}),GB=p2(TI),RI=GB,OI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wI={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"},II={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},fI=o1({},__,{key:function(_){if(_.key){var J=OI[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=lJ(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?wI[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qU,charCode:function(_){return _.type==="keypress"?lJ(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?lJ(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),PI=p2(fI),NI=o1({},UQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ZB=p2(NI),CI=o1({},__,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qU}),SI=p2(CI),jI=o1({},p6,{propertyName:0,elapsedTime:0,pseudoElement:0}),VI=p2(jI),kI=o1({},UQ,{deltaX:function(_){return"deltaX"in _?_.deltaX:("wheelDeltaX"in _)?-_.wheelDeltaX:0},deltaY:function(_){return"deltaY"in _?_.deltaY:("wheelDeltaY"in _)?-_.wheelDeltaY:("wheelDelta"in _)?-_.wheelDelta:0},deltaZ:0,deltaMode:0}),DI=p2(kI),yI=o1({},p6,{newState:0,oldState:0}),vI=p2(yI),EI=[9,13,27,32],FB=229,fZ=I4&&"CompositionEvent"in window,$_=null;I4&&"documentMode"in document&&($_=document.documentMode);var bI=I4&&"TextEvent"in window&&!$_,KB=I4&&(!fZ||$_&&8<$_&&11>=$_),XB=32,HB=String.fromCharCode(XB),YB=!1,X7=!1,uI={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},Q_=null,q_=null,WB=!1;I4&&(WB=qO("input")&&(!document.documentMode||9<document.documentMode));var D2=typeof Object.is==="function"?Object.is:XO,xI=I4&&"documentMode"in document&&11>=document.documentMode,H7=null,PZ=null,U_=null,NZ=!1,Y7={animationend:C6("Animation","AnimationEnd"),animationiteration:C6("Animation","AnimationIteration"),animationstart:C6("Animation","AnimationStart"),transitionrun:C6("Transition","TransitionRun"),transitionstart:C6("Transition","TransitionStart"),transitioncancel:C6("Transition","TransitionCancel"),transitionend:C6("Transition","TransitionEnd")},CZ={},zB={};I4&&(zB=document.createElement("div").style,("AnimationEvent"in window)||(delete Y7.animationend.animation,delete Y7.animationiteration.animation,delete Y7.animationstart.animation),("TransitionEvent"in window)||delete Y7.transitionend.transition);var BB=S6("animationend"),AB=S6("animationiteration"),LB=S6("animationstart"),hI=S6("transitionrun"),mI=S6("transitionstart"),gI=S6("transitioncancel"),MB=S6("transitionend"),TB=new Map,SZ="abort auxClick beforeToggle 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".split(" ");SZ.push("scrollEnd");var RB=0;if(typeof performance==="object"&&typeof performance.now==="function")var pI=performance,OB=function(){return pI.now()};else{var cI=Date;OB=function(){return cI.now()}}var jZ=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(J))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},lI="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",GQ=0,VZ=1,kZ=2,DZ=3,ZQ="– ",FQ="+ ",wB="  ",O0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",T5="Components ⚛",n1="Scheduler ⚛",e1="Blocking",g3=!1,s4={color:"primary",properties:null,tooltipText:"",track:T5},p3={start:-0,end:-0,detail:{devtools:s4}},rI=["Changed Props",""],IB="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dI=["Changed Props",IB],G_=1,t4=2,R5=[],W7=0,yZ=0,c3={};Object.freeze(c3);var O5=null,z7=null,x1=0,iI=1,d1=2,R2=8,g5=16,aI=32,fB=!1;try{var PB=Object.preventExtensions({})}catch(_){fB=!0}var vZ=new WeakMap,B7=[],A7=0,KQ=null,Z_=0,w5=[],I5=0,c6=null,o4=1,n4="",Y2=null,w0=null,J0=!1,f4=!1,F5=null,l3=null,f5=!1,EZ=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),bZ=J1(null),uZ=J1(null),NB={},XQ=null,L7=null,M7=!1,sI=typeof AbortController<"u"?AbortController:function(){var _=[],J=this.signal={aborted:!1,addEventListener:function($,q){_.push(q)}};this.abort=function(){J.aborted=!0,_.forEach(function($){return $()})}},tI=K0.unstable_scheduleCallback,oI=K0.unstable_NormalPriority,p0={$$typeof:M4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},c0=K0.unstable_now,HQ=console.createTask?console.createTask:function(){return null},F_=1,YQ=2,q2=-0,r3=-0,e4=-0,_3=null,y2=-1.1,l6=-0,S0=-0,D1=-1.1,u1=-1.1,P0=null,D0=!1,d3=-0,P4=-1.1,K_=null,i3=0,xZ=null,hZ=null,r6=-1.1,X_=null,T7=-1.1,WQ=-1.1,N4=-0,J3=-1.1,P5=-1.1,mZ=0,H_=null,CB=null,SB=null,a3=-1.1,d6=null,s3=-1.1,zQ=-1.1,jB=-0,VB=-0,BQ=0,$3=null,kB=0,Y_=-1.1,AQ=!1,LQ=!1,W_=null,gZ=0,i6=0,R7=null,DB=Z1.S;Z1.S=function(_,J){if(CA=Q2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>J3&&0>P5){J3=c0();var $=c9(),q=p9();if($!==s3||q!==d6)s3=-1.1;a3=$,d6=q}LO(_,J)}DB!==null&&DB(_,J)};var a6=J1(null),p5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},z_=[],B_=[],A_=[],L_=[],M_=[],T_=[],s6=new Set;p5.recordUnsafeLifecycleWarnings=function(_,J){s6.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&z_.push(_),_.mode&R2&&typeof J.UNSAFE_componentWillMount==="function"&&B_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&A_.push(_),_.mode&R2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&L_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&M_.push(_),_.mode&R2&&typeof J.UNSAFE_componentWillUpdate==="function"&&T_.push(_))},p5.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<z_.length&&(z_.forEach(function(A){_.add(m(A)||"Component"),s6.add(A.type)}),z_=[]);var J=new Set;0<B_.length&&(B_.forEach(function(A){J.add(m(A)||"Component"),s6.add(A.type)}),B_=[]);var $=new Set;0<A_.length&&(A_.forEach(function(A){$.add(m(A)||"Component"),s6.add(A.type)}),A_=[]);var q=new Set;0<L_.length&&(L_.forEach(function(A){q.add(m(A)||"Component"),s6.add(A.type)}),L_=[]);var G=new Set;0<M_.length&&(M_.forEach(function(A){G.add(m(A)||"Component"),s6.add(A.type)}),M_=[]);var F=new Set;if(0<T_.length&&(T_.forEach(function(A){F.add(m(A)||"Component"),s6.add(A.type)}),T_=[]),0<J.size){var Y=L(J);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
195
195
 
196
196
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
197
197
 
198
- Please update the following components: %s`,H)}0<q.size&&(H=L(q),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
198
+ Please update the following components: %s`,Y)}0<q.size&&(Y=L(q),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
199
 
200
200
  * Move data fetching code or side effects to componentDidUpdate.
201
201
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
202
202
 
203
- Please update the following components: %s`,H)),0<F.size&&(H=L(F),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+ Please update the following components: %s`,Y)),0<F.size&&(Y=L(F),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
204
204
 
205
205
  * Move data fetching code or side effects to componentDidUpdate.
206
206
 
207
- Please update the following components: %s`,H)),0<_.size&&(H=L(_),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
207
+ Please update the following components: %s`,Y)),0<_.size&&(Y=L(_),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
208
 
209
209
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
210
210
  * Rename componentWillMount to UNSAFE_componentWillMount 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.
211
211
 
212
- Please update the following components: %s`,H)),0<$.size&&(H=L($),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
212
+ Please update the following components: %s`,Y)),0<$.size&&(Y=L($),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
213
213
 
214
214
  * Move data fetching code or side effects to componentDidUpdate.
215
215
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
216
216
  * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps 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.
217
217
 
218
- Please update the following components: %s`,H)),0<G.size&&(H=L(G),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
218
+ Please update the following components: %s`,Y)),0<G.size&&(Y=L(G),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
219
219
 
220
220
  * Move data fetching code or side effects to componentDidUpdate.
221
221
  * 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.
222
222
 
223
- Please update the following components: %s`,H))};var zQ=new Map,jB=new Set;h5.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&R2&&($=q),q=q.return;$===null?console.error("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."):!jB.has(_.type)&&(q=zQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],zQ.set($,q)),q.push(_))},h5.flushLegacyContextWarning=function(){zQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(t(G)||"Component"),jB.add(G.type)});var q=L($);Y1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
223
+ Please update the following components: %s`,Y))};var MQ=new Map,yB=new Set;p5.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&R2&&($=q),q=q.return;$===null?console.error("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."):!yB.has(_.type)&&(q=MQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],MQ.set($,q)),q.push(_))},p5.flushLegacyContextWarning=function(){MQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(m(G)||"Component"),yB.add(G.type)});var q=L($);W1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
224
224
 
225
225
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
226
226
 
227
227
  Please update the following components: %s
228
228
 
229
- Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},h5.discardPendingWarnings=function(){Y_=[],W_=[],A_=[],B_=[],z_=[],L_=[],zQ=new Map};var CB={react_stack_bottom_frame:function(_,J,$){var q=L4;L4=!0;try{return _(J,$)}finally{L4=q}}},pZ=CB.react_stack_bottom_frame.bind(CB),VB={react_stack_bottom_frame:function(_){var J=L4;L4=!0;try{return _.render()}finally{L4=J}}},SB=VB.react_stack_bottom_frame.bind(VB),DB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){K0(_,_.return,$)}}},cZ=DB.react_stack_bottom_frame.bind(DB),kB={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(F){K0(_,_.return,F)}}},yB=kB.react_stack_bottom_frame.bind(kB),vB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},rI=vB.react_stack_bottom_frame.bind(vB),EB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){K0(_,J,q)}}},bB=EB.react_stack_bottom_frame.bind(EB),xB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},dI=xB.react_stack_bottom_frame.bind(xB),uB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){K0(_,J,q)}}},iI=uB.react_stack_bottom_frame.bind(uB),hB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},aI=hB.react_stack_bottom_frame.bind(hB),R7=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),lZ=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),LQ=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),MQ={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},t6=null,M_=!1,O7=null,T_=0,i1=null,rZ,mB=rZ=!1,gB={},pB={},cB={};T=function(_,J,$){if($!==null&&typeof $==="object"&&$._store&&(!$._store.validated&&$.key==null||$._store.validated===2)){if(typeof $._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");$._store.validated=1;var q=t(_),G=q||"null";if(!gB[G]){gB[G]=!0,$=$._owner,_=_._debugOwner;var F="";_&&typeof _.tag==="number"&&(G=t(_))&&(F=`
229
+ Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},p5.discardPendingWarnings=function(){z_=[],B_=[],A_=[],L_=[],M_=[],T_=[],MQ=new Map};var vB={react_stack_bottom_frame:function(_,J,$){var q=T4;T4=!0;try{return _(J,$)}finally{T4=q}}},pZ=vB.react_stack_bottom_frame.bind(vB),EB={react_stack_bottom_frame:function(_){var J=T4;T4=!0;try{return _.render()}finally{T4=J}}},bB=EB.react_stack_bottom_frame.bind(EB),uB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){X0(_,_.return,$)}}},cZ=uB.react_stack_bottom_frame.bind(uB),xB={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(F){X0(_,_.return,F)}}},hB=xB.react_stack_bottom_frame.bind(xB),mB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},nI=mB.react_stack_bottom_frame.bind(mB),gB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){X0(_,J,q)}}},pB=gB.react_stack_bottom_frame.bind(gB),cB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},eI=cB.react_stack_bottom_frame.bind(cB),lB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){X0(_,J,q)}}},_f=lB.react_stack_bottom_frame.bind(lB),rB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},Jf=rB.react_stack_bottom_frame.bind(rB),O7=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),lZ=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),TQ=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),RQ={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},t6=null,R_=!1,w7=null,O_=0,i1=null,rZ,dB=rZ=!1,iB={},aB={},sB={};R=function(_,J,$){if($!==null&&typeof $==="object"&&$._store&&(!$._store.validated&&$.key==null||$._store.validated===2)){if(typeof $._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");$._store.validated=1;var q=m(_),G=q||"null";if(!iB[G]){iB[G]=!0,$=$._owner,_=_._debugOwner;var F="";_&&typeof _.tag==="number"&&(G=m(_))&&(F=`
230
230
 
231
231
  Check the render method of \``+G+"`."),F||q&&(F=`
232
232
 
233
- Check the top-level render call using <`+q+">.");var H="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=t($):typeof $.name==="string"&&(q=$.name),q&&(H=" It was passed a child from "+q+".")),Y1(J,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',F,H)})}}};var o6=EH(!0),lB=EH(!1),rB=0,dB=1,iB=2,dZ=3,a3=!1,aB=!1,iZ=null,aZ=!1,w7=Q1(null),TQ=Q1(0),F5=Q1(null),w5=null,I7=1,R_=2,h0=Q1(0),RQ=0,I5=1,v2=2,K5=4,E2=8,f7,sB=new Set,tB=new Set,sZ=new Set,oB=new Set,J3=0,g1=null,B0=null,c0=null,OQ=!1,P7=!1,n6=!1,wQ=0,O_=0,$3=null,sI=0,tI=25,U1=null,f5=null,Q3=-1,w_=!1,I_={readContext:I0,use:S3,useCallback:v0,useContext:v0,useEffect:v0,useImperativeHandle:v0,useLayoutEffect:v0,useInsertionEffect:v0,useMemo:v0,useReducer:v0,useRef:v0,useState:v0,useDebugValue:v0,useDeferredValue:v0,useTransition:v0,useSyncExternalStore:v0,useId:v0,useHostTransitionStatus:v0,useFormState:v0,useActionState:v0,useOptimistic:v0,useMemoCache:v0,useCacheRefresh:v0};I_.useEffectEvent=v0;var tZ=null,nB=null,oZ=null,eB=null,P4=null,m5=null,IQ=null;tZ={readContext:function(_){return I0(_)},use:S3,useCallback:function(_,J){return U1="useCallback",t1(),g8(J),aU(_,J)},useContext:function(_){return U1="useContext",t1(),I0(_)},useEffect:function(_,J){return U1="useEffect",t1(),g8(J),z$(_,J)},useImperativeHandle:function(_,J,$){return U1="useImperativeHandle",t1(),g8($),iU(_,J,$)},useInsertionEffect:function(_,J){U1="useInsertionEffect",t1(),g8(J),b6(4,v2,_,J)},useLayoutEffect:function(_,J){return U1="useLayoutEffect",t1(),g8(J),dU(_,J)},useMemo:function(_,J){U1="useMemo",t1(),g8(J);var $=G1.H;G1.H=P4;try{return sU(_,J)}finally{G1.H=$}},useReducer:function(_,J,$){U1="useReducer",t1();var q=G1.H;G1.H=P4;try{return xU(_,J,$)}finally{G1.H=q}},useRef:function(_){return U1="useRef",t1(),lU(_)},useState:function(_){U1="useState",t1();var J=G1.H;G1.H=P4;try{return gU(_)}finally{G1.H=J}},useDebugValue:function(){U1="useDebugValue",t1()},useDeferredValue:function(_,J){return U1="useDeferredValue",t1(),tU(_,J)},useTransition:function(){return U1="useTransition",t1(),eU()},useSyncExternalStore:function(_,J,$){return U1="useSyncExternalStore",t1(),hU(_,J,$)},useId:function(){return U1="useId",t1(),_G()},useFormState:function(_,J){return U1="useFormState",t1(),H$(),c8(_,J)},useActionState:function(_,J){return U1="useActionState",t1(),c8(_,J)},useOptimistic:function(_){return U1="useOptimistic",t1(),pU(_)},useHostTransitionStatus:x6,useMemoCache:E6,useCacheRefresh:function(){return U1="useCacheRefresh",t1(),JG()},useEffectEvent:function(_){return U1="useEffectEvent",t1(),rU(_)}},nB={readContext:function(_){return I0(_)},use:S3,useCallback:function(_,J){return U1="useCallback",A1(),aU(_,J)},useContext:function(_){return U1="useContext",A1(),I0(_)},useEffect:function(_,J){return U1="useEffect",A1(),z$(_,J)},useImperativeHandle:function(_,J,$){return U1="useImperativeHandle",A1(),iU(_,J,$)},useInsertionEffect:function(_,J){U1="useInsertionEffect",A1(),b6(4,v2,_,J)},useLayoutEffect:function(_,J){return U1="useLayoutEffect",A1(),dU(_,J)},useMemo:function(_,J){U1="useMemo",A1();var $=G1.H;G1.H=P4;try{return sU(_,J)}finally{G1.H=$}},useReducer:function(_,J,$){U1="useReducer",A1();var q=G1.H;G1.H=P4;try{return xU(_,J,$)}finally{G1.H=q}},useRef:function(_){return U1="useRef",A1(),lU(_)},useState:function(_){U1="useState",A1();var J=G1.H;G1.H=P4;try{return gU(_)}finally{G1.H=J}},useDebugValue:function(){U1="useDebugValue",A1()},useDeferredValue:function(_,J){return U1="useDeferredValue",A1(),tU(_,J)},useTransition:function(){return U1="useTransition",A1(),eU()},useSyncExternalStore:function(_,J,$){return U1="useSyncExternalStore",A1(),hU(_,J,$)},useId:function(){return U1="useId",A1(),_G()},useActionState:function(_,J){return U1="useActionState",A1(),c8(_,J)},useFormState:function(_,J){return U1="useFormState",A1(),H$(),c8(_,J)},useOptimistic:function(_){return U1="useOptimistic",A1(),pU(_)},useHostTransitionStatus:x6,useMemoCache:E6,useCacheRefresh:function(){return U1="useCacheRefresh",A1(),JG()},useEffectEvent:function(_){return U1="useEffectEvent",A1(),rU(_)}},oZ={readContext:function(_){return I0(_)},use:S3,useCallback:function(_,J){return U1="useCallback",A1(),T$(_,J)},useContext:function(_){return U1="useContext",A1(),I0(_)},useEffect:function(_,J){U1="useEffect",A1(),c2(2048,E2,_,J)},useImperativeHandle:function(_,J,$){return U1="useImperativeHandle",A1(),M$(_,J,$)},useInsertionEffect:function(_,J){return U1="useInsertionEffect",A1(),c2(4,v2,_,J)},useLayoutEffect:function(_,J){return U1="useLayoutEffect",A1(),c2(4,K5,_,J)},useMemo:function(_,J){U1="useMemo",A1();var $=G1.H;G1.H=m5;try{return R$(_,J)}finally{G1.H=$}},useReducer:function(_,J,$){U1="useReducer",A1();var q=G1.H;G1.H=m5;try{return p8(_,J,$)}finally{G1.H=q}},useRef:function(){return U1="useRef",A1(),H0().memoizedState},useState:function(){U1="useState",A1();var _=G1.H;G1.H=m5;try{return p8(v5)}finally{G1.H=_}},useDebugValue:function(){U1="useDebugValue",A1()},useDeferredValue:function(_,J){return U1="useDeferredValue",A1(),QY(_,J)},useTransition:function(){return U1="useTransition",A1(),KY()},useSyncExternalStore:function(_,J,$){return U1="useSyncExternalStore",A1(),W$(_,J,$)},useId:function(){return U1="useId",A1(),H0().memoizedState},useFormState:function(_){return U1="useFormState",A1(),H$(),A$(_)},useActionState:function(_){return U1="useActionState",A1(),A$(_)},useOptimistic:function(_,J){return U1="useOptimistic",A1(),iH(_,J)},useHostTransitionStatus:x6,useMemoCache:E6,useCacheRefresh:function(){return U1="useCacheRefresh",A1(),H0().memoizedState},useEffectEvent:function(_){return U1="useEffectEvent",A1(),L$(_)}},eB={readContext:function(_){return I0(_)},use:S3,useCallback:function(_,J){return U1="useCallback",A1(),T$(_,J)},useContext:function(_){return U1="useContext",A1(),I0(_)},useEffect:function(_,J){U1="useEffect",A1(),c2(2048,E2,_,J)},useImperativeHandle:function(_,J,$){return U1="useImperativeHandle",A1(),M$(_,J,$)},useInsertionEffect:function(_,J){return U1="useInsertionEffect",A1(),c2(4,v2,_,J)},useLayoutEffect:function(_,J){return U1="useLayoutEffect",A1(),c2(4,K5,_,J)},useMemo:function(_,J){U1="useMemo",A1();var $=G1.H;G1.H=IQ;try{return R$(_,J)}finally{G1.H=$}},useReducer:function(_,J,$){U1="useReducer",A1();var q=G1.H;G1.H=IQ;try{return C9(_,J,$)}finally{G1.H=q}},useRef:function(){return U1="useRef",A1(),H0().memoizedState},useState:function(){U1="useState",A1();var _=G1.H;G1.H=IQ;try{return C9(v5)}finally{G1.H=_}},useDebugValue:function(){U1="useDebugValue",A1()},useDeferredValue:function(_,J){return U1="useDeferredValue",A1(),qY(_,J)},useTransition:function(){return U1="useTransition",A1(),XY()},useSyncExternalStore:function(_,J,$){return U1="useSyncExternalStore",A1(),W$(_,J,$)},useId:function(){return U1="useId",A1(),H0().memoizedState},useFormState:function(_){return U1="useFormState",A1(),H$(),B$(_)},useActionState:function(_){return U1="useActionState",A1(),B$(_)},useOptimistic:function(_,J){return U1="useOptimistic",A1(),sH(_,J)},useHostTransitionStatus:x6,useMemoCache:E6,useCacheRefresh:function(){return U1="useCacheRefresh",A1(),H0().memoizedState},useEffectEvent:function(_){return U1="useEffectEvent",A1(),L$(_)}},P4={readContext:function(_){return R(),I0(_)},use:function(_){return B(),S3(_)},useCallback:function(_,J){return U1="useCallback",B(),t1(),aU(_,J)},useContext:function(_){return U1="useContext",B(),t1(),I0(_)},useEffect:function(_,J){return U1="useEffect",B(),t1(),z$(_,J)},useImperativeHandle:function(_,J,$){return U1="useImperativeHandle",B(),t1(),iU(_,J,$)},useInsertionEffect:function(_,J){U1="useInsertionEffect",B(),t1(),b6(4,v2,_,J)},useLayoutEffect:function(_,J){return U1="useLayoutEffect",B(),t1(),dU(_,J)},useMemo:function(_,J){U1="useMemo",B(),t1();var $=G1.H;G1.H=P4;try{return sU(_,J)}finally{G1.H=$}},useReducer:function(_,J,$){U1="useReducer",B(),t1();var q=G1.H;G1.H=P4;try{return xU(_,J,$)}finally{G1.H=q}},useRef:function(_){return U1="useRef",B(),t1(),lU(_)},useState:function(_){U1="useState",B(),t1();var J=G1.H;G1.H=P4;try{return gU(_)}finally{G1.H=J}},useDebugValue:function(){U1="useDebugValue",B(),t1()},useDeferredValue:function(_,J){return U1="useDeferredValue",B(),t1(),tU(_,J)},useTransition:function(){return U1="useTransition",B(),t1(),eU()},useSyncExternalStore:function(_,J,$){return U1="useSyncExternalStore",B(),t1(),hU(_,J,$)},useId:function(){return U1="useId",B(),t1(),_G()},useFormState:function(_,J){return U1="useFormState",B(),t1(),c8(_,J)},useActionState:function(_,J){return U1="useActionState",B(),t1(),c8(_,J)},useOptimistic:function(_){return U1="useOptimistic",B(),t1(),pU(_)},useMemoCache:function(_){return B(),E6(_)},useHostTransitionStatus:x6,useCacheRefresh:function(){return U1="useCacheRefresh",t1(),JG()},useEffectEvent:function(_){return U1="useEffectEvent",B(),t1(),rU(_)}},m5={readContext:function(_){return R(),I0(_)},use:function(_){return B(),S3(_)},useCallback:function(_,J){return U1="useCallback",B(),A1(),T$(_,J)},useContext:function(_){return U1="useContext",B(),A1(),I0(_)},useEffect:function(_,J){U1="useEffect",B(),A1(),c2(2048,E2,_,J)},useImperativeHandle:function(_,J,$){return U1="useImperativeHandle",B(),A1(),M$(_,J,$)},useInsertionEffect:function(_,J){return U1="useInsertionEffect",B(),A1(),c2(4,v2,_,J)},useLayoutEffect:function(_,J){return U1="useLayoutEffect",B(),A1(),c2(4,K5,_,J)},useMemo:function(_,J){U1="useMemo",B(),A1();var $=G1.H;G1.H=m5;try{return R$(_,J)}finally{G1.H=$}},useReducer:function(_,J,$){U1="useReducer",B(),A1();var q=G1.H;G1.H=m5;try{return p8(_,J,$)}finally{G1.H=q}},useRef:function(){return U1="useRef",B(),A1(),H0().memoizedState},useState:function(){U1="useState",B(),A1();var _=G1.H;G1.H=m5;try{return p8(v5)}finally{G1.H=_}},useDebugValue:function(){U1="useDebugValue",B(),A1()},useDeferredValue:function(_,J){return U1="useDeferredValue",B(),A1(),QY(_,J)},useTransition:function(){return U1="useTransition",B(),A1(),KY()},useSyncExternalStore:function(_,J,$){return U1="useSyncExternalStore",B(),A1(),W$(_,J,$)},useId:function(){return U1="useId",B(),A1(),H0().memoizedState},useFormState:function(_){return U1="useFormState",B(),A1(),A$(_)},useActionState:function(_){return U1="useActionState",B(),A1(),A$(_)},useOptimistic:function(_,J){return U1="useOptimistic",B(),A1(),iH(_,J)},useMemoCache:function(_){return B(),E6(_)},useHostTransitionStatus:x6,useCacheRefresh:function(){return U1="useCacheRefresh",A1(),H0().memoizedState},useEffectEvent:function(_){return U1="useEffectEvent",B(),A1(),L$(_)}},IQ={readContext:function(_){return R(),I0(_)},use:function(_){return B(),S3(_)},useCallback:function(_,J){return U1="useCallback",B(),A1(),T$(_,J)},useContext:function(_){return U1="useContext",B(),A1(),I0(_)},useEffect:function(_,J){U1="useEffect",B(),A1(),c2(2048,E2,_,J)},useImperativeHandle:function(_,J,$){return U1="useImperativeHandle",B(),A1(),M$(_,J,$)},useInsertionEffect:function(_,J){return U1="useInsertionEffect",B(),A1(),c2(4,v2,_,J)},useLayoutEffect:function(_,J){return U1="useLayoutEffect",B(),A1(),c2(4,K5,_,J)},useMemo:function(_,J){U1="useMemo",B(),A1();var $=G1.H;G1.H=m5;try{return R$(_,J)}finally{G1.H=$}},useReducer:function(_,J,$){U1="useReducer",B(),A1();var q=G1.H;G1.H=m5;try{return C9(_,J,$)}finally{G1.H=q}},useRef:function(){return U1="useRef",B(),A1(),H0().memoizedState},useState:function(){U1="useState",B(),A1();var _=G1.H;G1.H=m5;try{return C9(v5)}finally{G1.H=_}},useDebugValue:function(){U1="useDebugValue",B(),A1()},useDeferredValue:function(_,J){return U1="useDeferredValue",B(),A1(),qY(_,J)},useTransition:function(){return U1="useTransition",B(),A1(),XY()},useSyncExternalStore:function(_,J,$){return U1="useSyncExternalStore",B(),A1(),W$(_,J,$)},useId:function(){return U1="useId",B(),A1(),H0().memoizedState},useFormState:function(_){return U1="useFormState",B(),A1(),B$(_)},useActionState:function(_){return U1="useActionState",B(),A1(),B$(_)},useOptimistic:function(_,J){return U1="useOptimistic",B(),A1(),sH(_,J)},useMemoCache:function(_){return B(),E6(_)},useHostTransitionStatus:x6,useCacheRefresh:function(){return U1="useCacheRefresh",A1(),H0().memoizedState},useEffectEvent:function(_){return U1="useEffectEvent",B(),A1(),L$(_)}};var _z={},Jz=new Set,$z=new Set,Qz=new Set,qz=new Set,Uz=new Set,Gz=new Set,Zz=new Set,Fz=new Set,Kz=new Set,Xz=new Set;Object.freeze(_z);var nZ={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=$5(_),G=N3(q);G.payload=J,$!==void 0&&$!==null&&(QG($),G.callback=$),J=j3(_,G,q),J!==null&&($4(q,"this.setState()",_),D0(J,_,q),f9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=$5(_),G=N3(q);G.tag=dB,G.payload=J,$!==void 0&&$!==null&&(QG($),G.callback=$),J=j3(_,G,q),J!==null&&($4(q,"this.replaceState()",_),D0(J,_,q),f9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=$5(_),q=N3($);q.tag=iB,J!==void 0&&J!==null&&(QG(J),q.callback=J),J=j3(_,q,$),J!==null&&($4($,"this.forceUpdate()",_),D0(J,_,$),f9(J,_,$))}},N7=null,eZ=null,_F=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),l0=!1,Hz={},Yz={},Wz={},Az={},j7=!1,Bz={},fQ={},JF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},zz=!1,Lz=null;Lz=new Set;var q3=!1,r0=!1,$F=!1,Mz=typeof WeakSet==="function"?WeakSet:Set,q2=null,C7=null,V7=null,d0=null,d2=!1,g5=null,s0=!1,f_=8192,oI={getCacheForType:function(_){var J=I0(g0),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return I0(g0).controller.signal},getOwner:function(){return U5}};if(typeof Symbol==="function"&&Symbol.for){var P_=Symbol.for;P_("selector.component"),P_("selector.has_pseudo_class"),P_("selector.role"),P_("selector.test_id"),P_("selector.text")}var nI=[],eI=typeof WeakMap==="function"?WeakMap:Map,U2=0,t0=2,X5=4,U3=0,N_=1,e6=2,PQ=3,s3=4,NQ=6,Tz=5,G0=U2,z0=null,s1=null,a1=0,i2=0,jQ=1,_8=2,j_=3,Rz=4,QF=5,C_=6,CQ=7,qF=8,J8=9,Y0=i2,H5=null,t3=!1,S7=!1,UF=!1,N4=0,V0=U3,o3=0,n3=0,GF=0,a2=0,$8=0,V_=null,b2=null,VQ=!1,SQ=0,Oz=0,wz=300,DQ=1/0,Iz=500,S_=null,E0=null,e3=null,kQ=0,ZF=1,FF=2,fz=3,_6=0,Pz=1,Nz=2,jz=3,Cz=4,yQ=5,i0=0,J6=null,D7=null,p5=0,KF=0,XF=-0,HF=null,Vz=null,Sz=null,c5=kQ,Dz=null,_f=50,D_=0,YF=null,WF=!1,vQ=!1,Jf=50,Q8=0,k_=null,k7=!1,EQ=null,kz=!1,yz=new Set,$f={},bQ=null,y7=null,AF=!1,BF=!1,xQ=!1,zF=!1,$6=0,LF={};(function(){for(var _=0;_<CZ.length;_++){var J=CZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),y5($,"on"+J)}y5(KB,"onAnimationEnd"),y5(XB,"onAnimationIteration"),y5(HB,"onAnimationStart"),y5("dblclick","onDoubleClick"),y5("focusin","onFocus"),y5("focusout","onBlur"),y5(kI,"onTransitionRun"),y5(yI,"onTransitionStart"),y5(vI,"onTransitionCancel"),y5(YB,"onTransitionEnd")})(),N2("onMouseEnter",["mouseout","mouseover"]),N2("onMouseLeave",["mouseout","mouseover"]),N2("onPointerEnter",["pointerout","pointerover"]),N2("onPointerLeave",["pointerout","pointerover"]),_2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_2("onBeforeInput",["compositionend","keypress","textInput","paste"]),_2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var y_="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(y_)),uQ="_reactListening"+Math.random().toString(36).slice(2),vz=!1,Ez=!1,hQ=!1,bz=!1,mQ=!1,gQ=!1,xz=!1,pQ={},Qf=/\r\n?/g,qf=/\u0000|\uFFFD/g,q8="http://www.w3.org/1999/xlink",TF="http://www.w3.org/XML/1998/namespace",Uf="javascript:throw new Error('React form unexpectedly submitted.')",Gf="suppressHydrationWarning",U8="&",cQ="/&",v_="$",E_="/$",Q6="$?",G8="$~",v7="$!",Zf="html",Ff="body",Kf="head",RF="F!",uz="F",hz="loading",Xf="style",G3=0,E7=1,lQ=2,OF=null,wF=null,mz={dialog:!0,webview:!0},IF=null,b_=void 0,gz=typeof setTimeout==="function"?setTimeout:void 0,Hf=typeof clearTimeout==="function"?clearTimeout:void 0,Z8=-1,pz=typeof Promise==="function"?Promise:void 0,Yf=typeof queueMicrotask==="function"?queueMicrotask:typeof pz<"u"?function(_){return pz.resolve(null).then(_).catch(tO)}:gz,fF=null,F8=0,x_=1,cz=2,lz=3,P5=4,N5=new Map,rz=new Set,Z3=X0.d;X0.d={f:function(){var _=Z3.f(),J=a8();return _||J},r:function(_){var J=h1(_);J!==null&&J.tag===5&&J.type==="form"?FY(J):Z3.r(_)},D:function(_){Z3.D(_),JA("dns-prefetch",_,null)},C:function(_,J){Z3.C(_,J),JA("preconnect",_,J)},L:function(_,J,$){Z3.L(_,J,$);var q=b7;if(q&&_&&J){var G='link[rel="preload"][as="'+g2(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+g2($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+g2($.imageSizes)+'"]')):G+='[href="'+g2(_)+'"]':G+='[href="'+g2(_)+'"]';var F=G;switch(J){case"style":F=o8(_);break;case"script":F=n8(_)}N5.has(F)||(_=o1({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),N5.set(F,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(c9(F))||J==="script"&&q.querySelector(l9(F))||(J=q.createElement("link"),K2(J,"link",_),S1(J),q.head.appendChild(J)))}},m:function(_,J){Z3.m(_,J);var $=b7;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+g2(q)+'"][href="'+g2(_)+'"]',F=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":F=n8(_)}if(!N5.has(F)&&(_=o1({rel:"modulepreload",href:_},J),N5.set(F,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(l9(F)))return}q=$.createElement("link"),K2(q,"link",_),S1(q),$.head.appendChild(q)}}},X:function(_,J){Z3.X(_,J);var $=b7;if($&&_){var q=q0($).hoistableScripts,G=n8(_),F=q.get(G);F||(F=$.querySelector(l9(G)),F||(_=o1({src:_,async:!0},J),(J=N5.get(G))&&iG(_,J),F=$.createElement("script"),S1(F),K2(F,"link",_),$.head.appendChild(F)),F={type:"script",instance:F,count:1,state:null},q.set(G,F))}},S:function(_,J,$){Z3.S(_,J,$);var q=b7;if(q&&_){var G=q0(q).hoistableStyles,F=o8(_);J=J||"default";var H=G.get(F);if(!H){var z={loading:F8,preload:null};if(H=q.querySelector(c9(F)))z.loading=x_|P5;else{_=o1({rel:"stylesheet",href:_,"data-precedence":J},$),($=N5.get(F))&&dG(_,$);var w=H=q.createElement("link");S1(w),K2(w,"link",_),w._p=new Promise(function(N,i){w.onload=N,w.onerror=i}),w.addEventListener("load",function(){z.loading|=x_}),w.addEventListener("error",function(){z.loading|=cz}),z.loading|=P5,h$(H,J,q)}H={type:"stylesheet",instance:H,count:1,state:z},G.set(F,H)}}},M:function(_,J){Z3.M(_,J);var $=b7;if($&&_){var q=q0($).hoistableScripts,G=n8(_),F=q.get(G);F||(F=$.querySelector(l9(G)),F||(_=o1({src:_,async:!0,type:"module"},J),(J=N5.get(G))&&iG(_,J),F=$.createElement("script"),S1(F),K2(F,"link",_),$.head.appendChild(F)),F={type:"script",instance:F,count:1,state:null},q.set(G,F))}}};var b7=typeof document>"u"?null:document,rQ=null,Wf=60000,Af=800,Bf=500,PF=0,NF=null,dQ=null,K8=Sw,u_={$$typeof:z4,Provider:null,Consumer:null,_currentValue:K8,_currentValue2:K8,_threadCount:0},dz="%c%s%c",iz="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",az="",iQ=" ",zf=Function.prototype.bind,sz=!1,tz=null,oz=null,nz=null,ez=null,_L=null,JL=null,$L=null,QL=null,qL=null,UL=null;tz=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=o1({},_.memoizedProps),$=M2(_,2),$!==null&&D0($,_,2))},oz=function(_,J,$){J=Q(_,J),J!==null&&($=X(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=o1({},_.memoizedProps),$=M2(_,2),$!==null&&D0($,_,2))},nz=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=o1({},_.memoizedProps),$=M2(_,2),$!==null&&D0($,_,2))},ez=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=M2(_,2),J!==null&&D0(J,_,2)},_L=function(_,J){_.pendingProps=X(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=M2(_,2),J!==null&&D0(J,_,2)},JL=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=M2(_,2),J!==null&&D0(J,_,2)},$L=function(_){var J=M2(_,2);J!==null&&D0(J,_,2)},QL=function(_){var J=B2(),$=M2(_,J);$!==null&&D0($,_,J)},qL=function(_){W=_},UL=function(_){Y=_};var aQ=!0,sQ=null,jF=!1,q6=null,U6=null,G6=null,h_=new Map,m_=new Map,Z6=[],Lf="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".split(" "),tQ=null;if(l$.prototype.render=eG.prototype.render=function(_){var J=this._internalRoot;if(J===null)throw Error("Cannot update an unmounted root.");var $=arguments;typeof $[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):S($[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof $[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),$=_;var q=J.current,G=$5(q);aG(q,G,$,J,null,null)},l$.prototype.unmount=eG.prototype.unmount=function(){var _=arguments;if(typeof _[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),_=this._internalRoot,_!==null){this._internalRoot=null;var J=_.containerInfo;(G0&(t0|X5))!==U2&&console.error("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."),aG(_.current,2,null,_,null,null),a8(),J[x3]=null}},l$.prototype.unstable_scheduleHydration=function(_){if(_){var J=e();_={blockedOn:null,target:_,priority:J};for(var $=0;$<Z6.length&&J!==0&&J<Z6[$].priority;$++);Z6.splice($,0,_),$===0&&BA(_)}},function(){var _=J9.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
233
+ Check the top-level render call using <`+q+">.");var Y="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=m($):typeof $.name==="string"&&(q=$.name),q&&(Y=" It was passed a child from "+q+".")),W1(J,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',F,Y)})}}};var o6=gH(!0),tB=gH(!1),oB=0,nB=1,eB=2,dZ=3,t3=!1,_A=!1,iZ=null,aZ=!1,I7=J1(null),OQ=J1(0),K5=J1(null),N5=null,f7=1,w_=2,m0=J1(0),wQ=0,C5=1,v2=2,X5=4,E2=8,P7,JA=new Set,$A=new Set,sZ=new Set,QA=new Set,Q3=0,g1=null,A0=null,l0=null,IQ=!1,N7=!1,n6=!1,fQ=0,I_=0,q3=null,$f=0,Qf=25,G1=null,S5=null,U3=-1,f_=!1,P_={readContext:f0,use:D3,useCallback:E0,useContext:E0,useEffect:E0,useImperativeHandle:E0,useLayoutEffect:E0,useInsertionEffect:E0,useMemo:E0,useReducer:E0,useRef:E0,useState:E0,useDebugValue:E0,useDeferredValue:E0,useTransition:E0,useSyncExternalStore:E0,useId:E0,useHostTransitionStatus:E0,useFormState:E0,useActionState:E0,useOptimistic:E0,useMemoCache:E0,useCacheRefresh:E0};P_.useEffectEvent=E0;var tZ=null,qA=null,oZ=null,UA=null,C4=null,c5=null,PQ=null;tZ={readContext:function(_){return f0(_)},use:D3,useCallback:function(_,J){return G1="useCallback",t1(),p8(J),aU(_,J)},useContext:function(_){return G1="useContext",t1(),f0(_)},useEffect:function(_,J){return G1="useEffect",t1(),p8(J),M$(_,J)},useImperativeHandle:function(_,J,$){return G1="useImperativeHandle",t1(),p8($),iU(_,J,$)},useInsertionEffect:function(_,J){G1="useInsertionEffect",t1(),p8(J),b6(4,v2,_,J)},useLayoutEffect:function(_,J){return G1="useLayoutEffect",t1(),p8(J),dU(_,J)},useMemo:function(_,J){G1="useMemo",t1(),p8(J);var $=Z1.H;Z1.H=C4;try{return sU(_,J)}finally{Z1.H=$}},useReducer:function(_,J,$){G1="useReducer",t1();var q=Z1.H;Z1.H=C4;try{return uU(_,J,$)}finally{Z1.H=q}},useRef:function(_){return G1="useRef",t1(),lU(_)},useState:function(_){G1="useState",t1();var J=Z1.H;Z1.H=C4;try{return gU(_)}finally{Z1.H=J}},useDebugValue:function(){G1="useDebugValue",t1()},useDeferredValue:function(_,J){return G1="useDeferredValue",t1(),tU(_,J)},useTransition:function(){return G1="useTransition",t1(),eU()},useSyncExternalStore:function(_,J,$){return G1="useSyncExternalStore",t1(),hU(_,J,$)},useId:function(){return G1="useId",t1(),_G()},useFormState:function(_,J){return G1="useFormState",t1(),W$(),l8(_,J)},useActionState:function(_,J){return G1="useActionState",t1(),l8(_,J)},useOptimistic:function(_){return G1="useOptimistic",t1(),pU(_)},useHostTransitionStatus:u6,useMemoCache:E6,useCacheRefresh:function(){return G1="useCacheRefresh",t1(),JG()},useEffectEvent:function(_){return G1="useEffectEvent",t1(),rU(_)}},qA={readContext:function(_){return f0(_)},use:D3,useCallback:function(_,J){return G1="useCallback",z1(),aU(_,J)},useContext:function(_){return G1="useContext",z1(),f0(_)},useEffect:function(_,J){return G1="useEffect",z1(),M$(_,J)},useImperativeHandle:function(_,J,$){return G1="useImperativeHandle",z1(),iU(_,J,$)},useInsertionEffect:function(_,J){G1="useInsertionEffect",z1(),b6(4,v2,_,J)},useLayoutEffect:function(_,J){return G1="useLayoutEffect",z1(),dU(_,J)},useMemo:function(_,J){G1="useMemo",z1();var $=Z1.H;Z1.H=C4;try{return sU(_,J)}finally{Z1.H=$}},useReducer:function(_,J,$){G1="useReducer",z1();var q=Z1.H;Z1.H=C4;try{return uU(_,J,$)}finally{Z1.H=q}},useRef:function(_){return G1="useRef",z1(),lU(_)},useState:function(_){G1="useState",z1();var J=Z1.H;Z1.H=C4;try{return gU(_)}finally{Z1.H=J}},useDebugValue:function(){G1="useDebugValue",z1()},useDeferredValue:function(_,J){return G1="useDeferredValue",z1(),tU(_,J)},useTransition:function(){return G1="useTransition",z1(),eU()},useSyncExternalStore:function(_,J,$){return G1="useSyncExternalStore",z1(),hU(_,J,$)},useId:function(){return G1="useId",z1(),_G()},useActionState:function(_,J){return G1="useActionState",z1(),l8(_,J)},useFormState:function(_,J){return G1="useFormState",z1(),W$(),l8(_,J)},useOptimistic:function(_){return G1="useOptimistic",z1(),pU(_)},useHostTransitionStatus:u6,useMemoCache:E6,useCacheRefresh:function(){return G1="useCacheRefresh",z1(),JG()},useEffectEvent:function(_){return G1="useEffectEvent",z1(),rU(_)}},oZ={readContext:function(_){return f0(_)},use:D3,useCallback:function(_,J){return G1="useCallback",z1(),O$(_,J)},useContext:function(_){return G1="useContext",z1(),f0(_)},useEffect:function(_,J){G1="useEffect",z1(),c2(2048,E2,_,J)},useImperativeHandle:function(_,J,$){return G1="useImperativeHandle",z1(),R$(_,J,$)},useInsertionEffect:function(_,J){return G1="useInsertionEffect",z1(),c2(4,v2,_,J)},useLayoutEffect:function(_,J){return G1="useLayoutEffect",z1(),c2(4,X5,_,J)},useMemo:function(_,J){G1="useMemo",z1();var $=Z1.H;Z1.H=c5;try{return w$(_,J)}finally{Z1.H=$}},useReducer:function(_,J,$){G1="useReducer",z1();var q=Z1.H;Z1.H=c5;try{return c8(_,J,$)}finally{Z1.H=q}},useRef:function(){return G1="useRef",z1(),W0().memoizedState},useState:function(){G1="useState",z1();var _=Z1.H;Z1.H=c5;try{return c8(u5)}finally{Z1.H=_}},useDebugValue:function(){G1="useDebugValue",z1()},useDeferredValue:function(_,J){return G1="useDeferredValue",z1(),KY(_,J)},useTransition:function(){return G1="useTransition",z1(),BY()},useSyncExternalStore:function(_,J,$){return G1="useSyncExternalStore",z1(),B$(_,J,$)},useId:function(){return G1="useId",z1(),W0().memoizedState},useFormState:function(_){return G1="useFormState",z1(),W$(),A$(_)},useActionState:function(_){return G1="useActionState",z1(),A$(_)},useOptimistic:function(_,J){return G1="useOptimistic",z1(),eH(_,J)},useHostTransitionStatus:u6,useMemoCache:E6,useCacheRefresh:function(){return G1="useCacheRefresh",z1(),W0().memoizedState},useEffectEvent:function(_){return G1="useEffectEvent",z1(),T$(_)}},UA={readContext:function(_){return f0(_)},use:D3,useCallback:function(_,J){return G1="useCallback",z1(),O$(_,J)},useContext:function(_){return G1="useContext",z1(),f0(_)},useEffect:function(_,J){G1="useEffect",z1(),c2(2048,E2,_,J)},useImperativeHandle:function(_,J,$){return G1="useImperativeHandle",z1(),R$(_,J,$)},useInsertionEffect:function(_,J){return G1="useInsertionEffect",z1(),c2(4,v2,_,J)},useLayoutEffect:function(_,J){return G1="useLayoutEffect",z1(),c2(4,X5,_,J)},useMemo:function(_,J){G1="useMemo",z1();var $=Z1.H;Z1.H=PQ;try{return w$(_,J)}finally{Z1.H=$}},useReducer:function(_,J,$){G1="useReducer",z1();var q=Z1.H;Z1.H=PQ;try{return V9(_,J,$)}finally{Z1.H=q}},useRef:function(){return G1="useRef",z1(),W0().memoizedState},useState:function(){G1="useState",z1();var _=Z1.H;Z1.H=PQ;try{return V9(u5)}finally{Z1.H=_}},useDebugValue:function(){G1="useDebugValue",z1()},useDeferredValue:function(_,J){return G1="useDeferredValue",z1(),XY(_,J)},useTransition:function(){return G1="useTransition",z1(),AY()},useSyncExternalStore:function(_,J,$){return G1="useSyncExternalStore",z1(),B$(_,J,$)},useId:function(){return G1="useId",z1(),W0().memoizedState},useFormState:function(_){return G1="useFormState",z1(),W$(),L$(_)},useActionState:function(_){return G1="useActionState",z1(),L$(_)},useOptimistic:function(_,J){return G1="useOptimistic",z1(),JY(_,J)},useHostTransitionStatus:u6,useMemoCache:E6,useCacheRefresh:function(){return G1="useCacheRefresh",z1(),W0().memoizedState},useEffectEvent:function(_){return G1="useEffectEvent",z1(),T$(_)}},C4={readContext:function(_){return O(),f0(_)},use:function(_){return B(),D3(_)},useCallback:function(_,J){return G1="useCallback",B(),t1(),aU(_,J)},useContext:function(_){return G1="useContext",B(),t1(),f0(_)},useEffect:function(_,J){return G1="useEffect",B(),t1(),M$(_,J)},useImperativeHandle:function(_,J,$){return G1="useImperativeHandle",B(),t1(),iU(_,J,$)},useInsertionEffect:function(_,J){G1="useInsertionEffect",B(),t1(),b6(4,v2,_,J)},useLayoutEffect:function(_,J){return G1="useLayoutEffect",B(),t1(),dU(_,J)},useMemo:function(_,J){G1="useMemo",B(),t1();var $=Z1.H;Z1.H=C4;try{return sU(_,J)}finally{Z1.H=$}},useReducer:function(_,J,$){G1="useReducer",B(),t1();var q=Z1.H;Z1.H=C4;try{return uU(_,J,$)}finally{Z1.H=q}},useRef:function(_){return G1="useRef",B(),t1(),lU(_)},useState:function(_){G1="useState",B(),t1();var J=Z1.H;Z1.H=C4;try{return gU(_)}finally{Z1.H=J}},useDebugValue:function(){G1="useDebugValue",B(),t1()},useDeferredValue:function(_,J){return G1="useDeferredValue",B(),t1(),tU(_,J)},useTransition:function(){return G1="useTransition",B(),t1(),eU()},useSyncExternalStore:function(_,J,$){return G1="useSyncExternalStore",B(),t1(),hU(_,J,$)},useId:function(){return G1="useId",B(),t1(),_G()},useFormState:function(_,J){return G1="useFormState",B(),t1(),l8(_,J)},useActionState:function(_,J){return G1="useActionState",B(),t1(),l8(_,J)},useOptimistic:function(_){return G1="useOptimistic",B(),t1(),pU(_)},useMemoCache:function(_){return B(),E6(_)},useHostTransitionStatus:u6,useCacheRefresh:function(){return G1="useCacheRefresh",t1(),JG()},useEffectEvent:function(_){return G1="useEffectEvent",B(),t1(),rU(_)}},c5={readContext:function(_){return O(),f0(_)},use:function(_){return B(),D3(_)},useCallback:function(_,J){return G1="useCallback",B(),z1(),O$(_,J)},useContext:function(_){return G1="useContext",B(),z1(),f0(_)},useEffect:function(_,J){G1="useEffect",B(),z1(),c2(2048,E2,_,J)},useImperativeHandle:function(_,J,$){return G1="useImperativeHandle",B(),z1(),R$(_,J,$)},useInsertionEffect:function(_,J){return G1="useInsertionEffect",B(),z1(),c2(4,v2,_,J)},useLayoutEffect:function(_,J){return G1="useLayoutEffect",B(),z1(),c2(4,X5,_,J)},useMemo:function(_,J){G1="useMemo",B(),z1();var $=Z1.H;Z1.H=c5;try{return w$(_,J)}finally{Z1.H=$}},useReducer:function(_,J,$){G1="useReducer",B(),z1();var q=Z1.H;Z1.H=c5;try{return c8(_,J,$)}finally{Z1.H=q}},useRef:function(){return G1="useRef",B(),z1(),W0().memoizedState},useState:function(){G1="useState",B(),z1();var _=Z1.H;Z1.H=c5;try{return c8(u5)}finally{Z1.H=_}},useDebugValue:function(){G1="useDebugValue",B(),z1()},useDeferredValue:function(_,J){return G1="useDeferredValue",B(),z1(),KY(_,J)},useTransition:function(){return G1="useTransition",B(),z1(),BY()},useSyncExternalStore:function(_,J,$){return G1="useSyncExternalStore",B(),z1(),B$(_,J,$)},useId:function(){return G1="useId",B(),z1(),W0().memoizedState},useFormState:function(_){return G1="useFormState",B(),z1(),A$(_)},useActionState:function(_){return G1="useActionState",B(),z1(),A$(_)},useOptimistic:function(_,J){return G1="useOptimistic",B(),z1(),eH(_,J)},useMemoCache:function(_){return B(),E6(_)},useHostTransitionStatus:u6,useCacheRefresh:function(){return G1="useCacheRefresh",z1(),W0().memoizedState},useEffectEvent:function(_){return G1="useEffectEvent",B(),z1(),T$(_)}},PQ={readContext:function(_){return O(),f0(_)},use:function(_){return B(),D3(_)},useCallback:function(_,J){return G1="useCallback",B(),z1(),O$(_,J)},useContext:function(_){return G1="useContext",B(),z1(),f0(_)},useEffect:function(_,J){G1="useEffect",B(),z1(),c2(2048,E2,_,J)},useImperativeHandle:function(_,J,$){return G1="useImperativeHandle",B(),z1(),R$(_,J,$)},useInsertionEffect:function(_,J){return G1="useInsertionEffect",B(),z1(),c2(4,v2,_,J)},useLayoutEffect:function(_,J){return G1="useLayoutEffect",B(),z1(),c2(4,X5,_,J)},useMemo:function(_,J){G1="useMemo",B(),z1();var $=Z1.H;Z1.H=c5;try{return w$(_,J)}finally{Z1.H=$}},useReducer:function(_,J,$){G1="useReducer",B(),z1();var q=Z1.H;Z1.H=c5;try{return V9(_,J,$)}finally{Z1.H=q}},useRef:function(){return G1="useRef",B(),z1(),W0().memoizedState},useState:function(){G1="useState",B(),z1();var _=Z1.H;Z1.H=c5;try{return V9(u5)}finally{Z1.H=_}},useDebugValue:function(){G1="useDebugValue",B(),z1()},useDeferredValue:function(_,J){return G1="useDeferredValue",B(),z1(),XY(_,J)},useTransition:function(){return G1="useTransition",B(),z1(),AY()},useSyncExternalStore:function(_,J,$){return G1="useSyncExternalStore",B(),z1(),B$(_,J,$)},useId:function(){return G1="useId",B(),z1(),W0().memoizedState},useFormState:function(_){return G1="useFormState",B(),z1(),L$(_)},useActionState:function(_){return G1="useActionState",B(),z1(),L$(_)},useOptimistic:function(_,J){return G1="useOptimistic",B(),z1(),JY(_,J)},useMemoCache:function(_){return B(),E6(_)},useHostTransitionStatus:u6,useCacheRefresh:function(){return G1="useCacheRefresh",z1(),W0().memoizedState},useEffectEvent:function(_){return G1="useEffectEvent",B(),z1(),T$(_)}};var GA={},ZA=new Set,FA=new Set,KA=new Set,XA=new Set,HA=new Set,YA=new Set,WA=new Set,zA=new Set,BA=new Set,AA=new Set;Object.freeze(GA);var nZ={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=Q5(_),G=S3(q);G.payload=J,$!==void 0&&$!==null&&(QG($),G.callback=$),J=j3(_,G,q),J!==null&&(q4(q,"this.setState()",_),k0(J,_,q),N9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=Q5(_),G=S3(q);G.tag=nB,G.payload=J,$!==void 0&&$!==null&&(QG($),G.callback=$),J=j3(_,G,q),J!==null&&(q4(q,"this.replaceState()",_),k0(J,_,q),N9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=Q5(_),q=S3($);q.tag=eB,J!==void 0&&J!==null&&(QG(J),q.callback=J),J=j3(_,q,$),J!==null&&(q4($,"this.forceUpdate()",_),k0(J,_,$),N9(J,_,$))}},C7=null,eZ=null,_F=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),r0=!1,LA={},MA={},TA={},RA={},S7=!1,OA={},NQ={},JF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},wA=!1,IA=null;IA=new Set;var G3=!1,d0=!1,$F=!1,fA=typeof WeakSet==="function"?WeakSet:Set,U2=null,j7=null,V7=null,i0=null,d2=!1,l5=null,t0=!1,N_=8192,qf={getCacheForType:function(_){var J=f0(p0),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return f0(p0).controller.signal},getOwner:function(){return G5}};if(typeof Symbol==="function"&&Symbol.for){var C_=Symbol.for;C_("selector.component"),C_("selector.has_pseudo_class"),C_("selector.role"),C_("selector.test_id"),C_("selector.text")}var Uf=[],Gf=typeof WeakMap==="function"?WeakMap:Map,G2=0,o0=2,H5=4,Z3=0,S_=1,e6=2,CQ=3,o3=4,SQ=6,PA=5,Z0=G2,L0=null,s1=null,a1=0,i2=0,jQ=1,_8=2,j_=3,NA=4,QF=5,V_=6,VQ=7,qF=8,J8=9,z0=i2,Y5=null,n3=!1,k7=!1,UF=!1,S4=0,j0=Z3,e3=0,_6=0,GF=0,a2=0,$8=0,k_=null,b2=null,kQ=!1,DQ=0,CA=0,SA=300,yQ=1/0,jA=500,D_=null,b0=null,J6=null,vQ=0,ZF=1,FF=2,VA=3,$6=0,kA=1,DA=2,yA=3,vA=4,EQ=5,a0=0,Q6=null,D7=null,r5=0,KF=0,XF=-0,HF=null,EA=null,bA=null,d5=vQ,uA=null,Zf=50,y_=0,YF=null,WF=!1,bQ=!1,Ff=50,Q8=0,v_=null,y7=!1,uQ=null,xA=!1,hA=new Set,Kf={},xQ=null,v7=null,zF=!1,BF=!1,hQ=!1,AF=!1,q6=0,LF={};(function(){for(var _=0;_<SZ.length;_++){var J=SZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),b5($,"on"+J)}b5(BB,"onAnimationEnd"),b5(AB,"onAnimationIteration"),b5(LB,"onAnimationStart"),b5("dblclick","onDoubleClick"),b5("focusin","onFocus"),b5("focusout","onBlur"),b5(hI,"onTransitionRun"),b5(mI,"onTransitionStart"),b5(gI,"onTransitionCancel"),b5(MB,"onTransitionEnd")})(),N2("onMouseEnter",["mouseout","mouseover"]),N2("onMouseLeave",["mouseout","mouseover"]),N2("onPointerEnter",["pointerout","pointerover"]),N2("onPointerLeave",["pointerout","pointerover"]),J2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),J2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),J2("onBeforeInput",["compositionend","keypress","textInput","paste"]),J2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),J2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),J2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var E_="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(E_)),mQ="_reactListening"+Math.random().toString(36).slice(2),mA=!1,gA=!1,gQ=!1,pA=!1,pQ=!1,cQ=!1,cA=!1,lQ={},Xf=/\r\n?/g,Hf=/\u0000|\uFFFD/g,q8="http://www.w3.org/1999/xlink",TF="http://www.w3.org/XML/1998/namespace",Yf="javascript:throw new Error('React form unexpectedly submitted.')",Wf="suppressHydrationWarning",U8="&",rQ="/&",b_="$",u_="/$",U6="$?",G8="$~",E7="$!",zf="html",Bf="body",Af="head",RF="F!",lA="F",rA="loading",Lf="style",F3=0,b7=1,dQ=2,OF=null,wF=null,dA={dialog:!0,webview:!0},IF=null,x_=void 0,iA=typeof setTimeout==="function"?setTimeout:void 0,Mf=typeof clearTimeout==="function"?clearTimeout:void 0,Z8=-1,aA=typeof Promise==="function"?Promise:void 0,Tf=typeof queueMicrotask==="function"?queueMicrotask:typeof aA<"u"?function(_){return aA.resolve(null).then(_).catch(Qw)}:iA,fF=null,F8=0,h_=1,sA=2,tA=3,j5=4,V5=new Map,oA=new Set,K3=H0.d;H0.d={f:function(){var _=K3.f(),J=s8();return _||J},r:function(_){var J=h1(_);J!==null&&J.tag===5&&J.type==="form"?zY(J):K3.r(_)},D:function(_){K3.D(_),Zz("dns-prefetch",_,null)},C:function(_,J){K3.C(_,J),Zz("preconnect",_,J)},L:function(_,J,$){K3.L(_,J,$);var q=u7;if(q&&_&&J){var G='link[rel="preload"][as="'+g2(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+g2($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+g2($.imageSizes)+'"]')):G+='[href="'+g2(_)+'"]':G+='[href="'+g2(_)+'"]';var F=G;switch(J){case"style":F=n8(_);break;case"script":F=e8(_)}V5.has(F)||(_=o1({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),V5.set(F,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(r9(F))||J==="script"&&q.querySelector(d9(F))||(J=q.createElement("link"),X2(J,"link",_),V1(J),q.head.appendChild(J)))}},m:function(_,J){K3.m(_,J);var $=u7;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+g2(q)+'"][href="'+g2(_)+'"]',F=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":F=e8(_)}if(!V5.has(F)&&(_=o1({rel:"modulepreload",href:_},J),V5.set(F,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(d9(F)))return}q=$.createElement("link"),X2(q,"link",_),V1(q),$.head.appendChild(q)}}},X:function(_,J){K3.X(_,J);var $=u7;if($&&_){var q=U0($).hoistableScripts,G=e8(_),F=q.get(G);F||(F=$.querySelector(d9(G)),F||(_=o1({src:_,async:!0},J),(J=V5.get(G))&&iG(_,J),F=$.createElement("script"),V1(F),X2(F,"link",_),$.head.appendChild(F)),F={type:"script",instance:F,count:1,state:null},q.set(G,F))}},S:function(_,J,$){K3.S(_,J,$);var q=u7;if(q&&_){var G=U0(q).hoistableStyles,F=n8(_);J=J||"default";var Y=G.get(F);if(!Y){var A={loading:F8,preload:null};if(Y=q.querySelector(r9(F)))A.loading=h_|j5;else{_=o1({rel:"stylesheet",href:_,"data-precedence":J},$),($=V5.get(F))&&dG(_,$);var w=Y=q.createElement("link");V1(w),X2(w,"link",_),w._p=new Promise(function(N,t){w.onload=N,w.onerror=t}),w.addEventListener("load",function(){A.loading|=h_}),w.addEventListener("error",function(){A.loading|=sA}),A.loading|=j5,g$(Y,J,q)}Y={type:"stylesheet",instance:Y,count:1,state:A},G.set(F,Y)}}},M:function(_,J){K3.M(_,J);var $=u7;if($&&_){var q=U0($).hoistableScripts,G=e8(_),F=q.get(G);F||(F=$.querySelector(d9(G)),F||(_=o1({src:_,async:!0,type:"module"},J),(J=V5.get(G))&&iG(_,J),F=$.createElement("script"),V1(F),X2(F,"link",_),$.head.appendChild(F)),F={type:"script",instance:F,count:1,state:null},q.set(G,F))}}};var u7=typeof document>"u"?null:document,iQ=null,Rf=60000,Of=800,wf=500,PF=0,NF=null,aQ=null,K8=uw,m_={$$typeof:M4,Provider:null,Consumer:null,_currentValue:K8,_currentValue2:K8,_threadCount:0},nA="%c%s%c",eA="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",_L="",sQ=" ",If=Function.prototype.bind,JL=!1,$L=null,QL=null,qL=null,UL=null,GL=null,ZL=null,FL=null,KL=null,XL=null,HL=null;$L=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=o1({},_.memoizedProps),$=M2(_,2),$!==null&&k0($,_,2))},QL=function(_,J,$){J=Q(_,J),J!==null&&($=X(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=o1({},_.memoizedProps),$=M2(_,2),$!==null&&k0($,_,2))},qL=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=o1({},_.memoizedProps),$=M2(_,2),$!==null&&k0($,_,2))},UL=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=M2(_,2),J!==null&&k0(J,_,2)},GL=function(_,J){_.pendingProps=X(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=M2(_,2),J!==null&&k0(J,_,2)},ZL=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=M2(_,2),J!==null&&k0(J,_,2)},FL=function(_){var J=M2(_,2);J!==null&&k0(J,_,2)},KL=function(_){var J=B2(),$=M2(_,J);$!==null&&k0($,_,J)},XL=function(_){z=_},HL=function(_){W=_};var tQ=!0,oQ=null,CF=!1,G6=null,Z6=null,F6=null,g_=new Map,p_=new Map,K6=[],ff="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".split(" "),nQ=null;if(d$.prototype.render=eG.prototype.render=function(_){var J=this._internalRoot;if(J===null)throw Error("Cannot update an unmounted root.");var $=arguments;typeof $[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):j($[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof $[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),$=_;var q=J.current,G=Q5(q);aG(q,G,$,J,null,null)},d$.prototype.unmount=eG.prototype.unmount=function(){var _=arguments;if(typeof _[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),_=this._internalRoot,_!==null){this._internalRoot=null;var J=_.containerInfo;(Z0&(o0|H5))!==G2&&console.error("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."),aG(_.current,2,null,_,null,null),s8(),J[h3]=null}},d$.prototype.unstable_scheduleHydration=function(_){if(_){var J=_1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<K6.length&&J!==0&&J<K6[$].priority;$++);K6.splice($,0,_),$===0&&Oz(_)}},function(){var _=$9.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
234
234
  - react: `+(_+`
235
235
  - react-dom: 19.2.7
236
- Learn more: https://react.dev/warnings/version-mismatch`))}(),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"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),X0.findDOMNode=function(_){var J=_._reactInternals;if(J===void 0){if(typeof _.render==="function")throw Error("Unable to find node on an unmounted component.");throw _=Object.keys(_).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+_)}return _=b(J),_=_!==null?x(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G1,reconcilerVersion:"19.2.7"};return _.overrideHookState=tz,_.overrideHookStateDeletePath=oz,_.overrideHookStateRenamePath=nz,_.overrideProps=ez,_.overridePropsDeletePath=_L,_.overridePropsRenamePath=JL,_.scheduleUpdate=$L,_.scheduleRetry=QL,_.setErrorHandler=qL,_.setSuspenseHandler=UL,_.scheduleRefresh=I,_.scheduleRoot=f,_.setRefreshHandler=k,_.getCurrentFiber=ww,G2(_)}()&&O4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var GL=window.location.protocol;/^(https?|file):$/.test(GL)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(GL==="file:"?`
237
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}$S.createRoot=function(_,J){if(!S(_))throw Error("Target container is not a DOM element.");TA(_);var $=!1,q="",G=zY,F=LY,H=MY;return J!==null&&J!==void 0&&(J.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof J==="object"&&J!==null&&J.$$typeof===B4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
236
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),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"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),H0.findDOMNode=function(_){var J=_._reactInternals;if(J===void 0){if(typeof _.render==="function")throw Error("Unable to find node on an unmounted component.");throw _=Object.keys(_).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+_)}return _=b(J),_=_!==null?x(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Z1,reconcilerVersion:"19.2.7"};return _.overrideHookState=$L,_.overrideHookStateDeletePath=QL,_.overrideHookStateRenamePath=qL,_.overrideProps=UL,_.overridePropsDeletePath=GL,_.overridePropsRenamePath=ZL,_.scheduleUpdate=FL,_.scheduleRetry=KL,_.setErrorHandler=XL,_.setSuspenseHandler=HL,_.scheduleRefresh=f,_.scheduleRoot=I,_.setRefreshHandler=D,_.getCurrentFiber=jw,Z2(_)}()&&I4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var YL=window.location.protocol;/^(https?|file):$/.test(YL)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(YL==="file:"?`
237
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}KV.createRoot=function(_,J){if(!j(_))throw Error("Target container is not a DOM element.");Pz(_);var $=!1,q="",G=wY,F=IY,Y=fY;return J!==null&&J!==void 0&&(J.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof J==="object"&&J!==null&&J.$$typeof===L4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
238
238
 
239
239
  let root = createRoot(domContainer);
240
- root.render(<App />);`),J.unstable_strictMode===!0&&($=!0),J.identifierPrefix!==void 0&&(q=J.identifierPrefix),J.onUncaughtError!==void 0&&(G=J.onUncaughtError),J.onCaughtError!==void 0&&(F=J.onCaughtError),J.onRecoverableError!==void 0&&(H=J.onRecoverableError)),J=FA(_,1,!1,null,null,$,q,null,G,F,H,MA),_[x3]=J.current,vG(_),new eG(J)},$S.hydrateRoot=function(_,J,$){if(!S(_))throw Error("Target container is not a DOM element.");TA(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",F=zY,H=LY,z=MY,w=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(F=$.onUncaughtError),$.onCaughtError!==void 0&&(H=$.onCaughtError),$.onRecoverableError!==void 0&&(z=$.onRecoverableError),$.formState!==void 0&&(w=$.formState)),J=FA(_,1,!0,J,$!=null?$:null,q,G,w,F,H,z,MA),J.context=KA(null),$=J.current,q=$5($),q=b4(q),G=N3(q),G.callback=null,j3($,G,q),$4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,L2(J,$),W4(J),_[x3]=J.current,vG(_),new l$(J)},$S.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var OR=j4((vm,RR)=>{var QS=b0(TR());RR.exports=QS});var M1=b0(l5(),1);var Z1=b0(FL(),1),F1=b0(l5(),1);function y0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,K;Z<Q.length;Z++)if((K=y0(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var Cf={value:()=>{}};function XL(){for(var Q=0,U=arguments.length,Z={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in Z||/[\s.]/.test(K))throw Error("illegal type: "+K);Z[K]=[]}return new nQ(Z)}function nQ(Q){this._=Q}function Vf(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var K="",X=Z.indexOf(".");if(X>=0)K=Z.slice(X+1),Z=Z.slice(0,X);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:K}})}nQ.prototype=XL.prototype={constructor:nQ,on:function(Q,U){var Z=this._,K=Vf(Q+"",Z),X,Y=-1,W=K.length;if(arguments.length<2){while(++Y<W)if((X=(Q=K[Y]).type)&&(X=Sf(Z[X],Q.name)))return X;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<W)if(X=(Q=K[Y]).type)Z[X]=KL(Z[X],Q.name,U);else if(U==null)for(X in Z)Z[X]=KL(Z[X],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new nQ(Q)},call:function(Q,U){if((X=arguments.length-2)>0)for(var Z=Array(X),K=0,X,Y;K<X;++K)Z[K]=arguments[K+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],K=0,X=Y.length;K<X;++K)Y[K].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var K=this._[Q],X=0,Y=K.length;X<Y;++X)K[X].value.apply(U,Z)}};function Sf(Q,U){for(var Z=0,K=Q.length,X;Z<K;++Z)if((X=Q[Z]).name===U)return X.value}function KL(Q,U,Z){for(var K=0,X=Q.length;K<X;++K)if(Q[K].name===U){Q[K]=Cf,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var H8=XL;function x7(Q){return function(){return this.matches(Q)}}function eQ(Q){return function(U){return U.matches(Q)}}var _q="http://www.w3.org/1999/xhtml",CF={svg:"http://www.w3.org/2000/svg",xhtml:_q,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function C4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return CF.hasOwnProperty(U)?{space:CF[U],local:Q}:Q}function VF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function O2(Q,U){if(Q=VF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var K=Z.createSVGPoint();return K.x=Q.clientX,K.y=Q.clientY,K=K.matrixTransform(U.getScreenCTM().inverse()),[K.x,K.y]}if(U.getBoundingClientRect){var X=U.getBoundingClientRect();return[Q.clientX-X.left-U.clientLeft,Q.clientY-X.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function Df(){}function F6(Q){return Q==null?Df:function(){return this.querySelector(Q)}}function SF(Q){if(typeof Q!=="function")Q=F6(Q);for(var U=this._groups,Z=U.length,K=Array(Z),X=0;X<Z;++X)for(var Y=U[X],W=Y.length,B=K[X]=Array(W),R,O,T=0;T<W;++T)if((R=Y[T])&&(O=Q.call(R,R.__data__,T,Y))){if("__data__"in R)O.__data__=R.__data__;B[T]=O}return new x0(K,this._parents)}function DF(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function kf(){return[]}function u7(Q){return Q==null?kf:function(){return this.querySelectorAll(Q)}}function yf(Q){return function(){return DF(Q.apply(this,arguments))}}function kF(Q){if(typeof Q==="function")Q=yf(Q);else Q=u7(Q);for(var U=this._groups,Z=U.length,K=[],X=[],Y=0;Y<Z;++Y)for(var W=U[Y],B=W.length,R,O=0;O<B;++O)if(R=W[O])K.push(Q.call(R,R.__data__,O,W)),X.push(R);return new x0(K,X)}var vf=Array.prototype.find;function Ef(Q){return function(){return vf.call(this.children,Q)}}function bf(){return this.firstElementChild}function yF(Q){return this.select(Q==null?bf:Ef(typeof Q==="function"?Q:eQ(Q)))}var xf=Array.prototype.filter;function uf(){return Array.from(this.children)}function hf(Q){return function(){return xf.call(this.children,Q)}}function vF(Q){return this.selectAll(Q==null?uf:hf(typeof Q==="function"?Q:eQ(Q)))}function EF(Q){if(typeof Q!=="function")Q=x7(Q);for(var U=this._groups,Z=U.length,K=Array(Z),X=0;X<Z;++X)for(var Y=U[X],W=Y.length,B=K[X]=[],R,O=0;O<W;++O)if((R=Y[O])&&Q.call(R,R.__data__,O,Y))B.push(R);return new x0(K,this._parents)}function g_(Q){return Array(Q.length)}function bF(){return new x0(this._enter||this._groups.map(g_),this._parents)}function p_(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}p_.prototype={constructor:p_,appendChild:function(Q){return this._parent.insertBefore(Q,this._next)},insertBefore:function(Q,U){return this._parent.insertBefore(Q,U)},querySelector:function(Q){return this._parent.querySelector(Q)},querySelectorAll:function(Q){return this._parent.querySelectorAll(Q)}};function xF(Q){return function(){return Q}}function mf(Q,U,Z,K,X,Y){var W=0,B,R=U.length,O=Y.length;for(;W<O;++W)if(B=U[W])B.__data__=Y[W],K[W]=B;else Z[W]=new p_(Q,Y[W]);for(;W<R;++W)if(B=U[W])X[W]=B}function gf(Q,U,Z,K,X,Y,W){var B,R,O=new Map,T=U.length,L=Y.length,M=Array(T),f;for(B=0;B<T;++B)if(R=U[B])if(M[B]=f=W.call(R,R.__data__,B,U)+"",O.has(f))X[B]=R;else O.set(f,R);for(B=0;B<L;++B)if(f=W.call(Q,Y[B],B,Y)+"",R=O.get(f))K[B]=R,R.__data__=Y[B],O.delete(f);else Z[B]=new p_(Q,Y[B]);for(B=0;B<T;++B)if((R=U[B])&&O.get(M[B])===R)X[B]=R}function pf(Q){return Q.__data__}function uF(Q,U){if(!arguments.length)return Array.from(this,pf);var Z=U?gf:mf,K=this._parents,X=this._groups;if(typeof Q!=="function")Q=xF(Q);for(var Y=X.length,W=Array(Y),B=Array(Y),R=Array(Y),O=0;O<Y;++O){var T=K[O],L=X[O],M=L.length,f=cf(Q.call(T,T&&T.__data__,O,K)),I=f.length,k=B[O]=Array(I),S=W[O]=Array(I),D=R[O]=Array(M);Z(T,L,k,S,D,f,U);for(var h=0,P=0,j,b;h<I;++h)if(j=k[h]){if(h>=P)P=h+1;while(!(b=S[P])&&++P<I);j._next=b||null}}return W=new x0(W,K),W._enter=B,W._exit=R,W}function cf(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function hF(){return new x0(this._exit||this._groups.map(g_),this._parents)}function mF(Q,U,Z){var K=this.enter(),X=this,Y=this.exit();if(typeof Q==="function"){if(K=Q(K),K)K=K.selection()}else K=K.append(Q+"");if(U!=null){if(X=U(X),X)X=X.selection()}if(Z==null)Y.remove();else Z(Y);return K&&X?K.merge(X).order():X}function gF(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,K=U._groups,X=Z.length,Y=K.length,W=Math.min(X,Y),B=Array(X),R=0;R<W;++R)for(var O=Z[R],T=K[R],L=O.length,M=B[R]=Array(L),f,I=0;I<L;++I)if(f=O[I]||T[I])M[I]=f;for(;R<X;++R)B[R]=Z[R];return new x0(B,this._parents)}function pF(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var K=Q[U],X=K.length-1,Y=K[X],W;--X>=0;)if(W=K[X]){if(Y&&W.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(W,Y);Y=W}return this}function cF(Q){if(!Q)Q=lf;function U(L,M){return L&&M?Q(L.__data__,M.__data__):!L-!M}for(var Z=this._groups,K=Z.length,X=Array(K),Y=0;Y<K;++Y){for(var W=Z[Y],B=W.length,R=X[Y]=Array(B),O,T=0;T<B;++T)if(O=W[T])R[T]=O;R.sort(U)}return new x0(X,this._parents).order()}function lf(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function lF(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function rF(){return Array.from(this)}function dF(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],X=0,Y=K.length;X<Y;++X){var W=K[X];if(W)return W}return null}function iF(){let Q=0;for(let U of this)++Q;return Q}function aF(){return!this.node()}function sF(Q){for(var U=this._groups,Z=0,K=U.length;Z<K;++Z)for(var X=U[Z],Y=0,W=X.length,B;Y<W;++Y)if(B=X[Y])Q.call(B,B.__data__,Y,X);return this}function rf(Q){return function(){this.removeAttribute(Q)}}function df(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function af(Q,U){return function(){this.setAttribute(Q,U)}}function sf(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function tf(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function of(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,Z)}}function tF(Q,U){var Z=C4(Q);if(arguments.length<2){var K=this.node();return Z.local?K.getAttributeNS(Z.space,Z.local):K.getAttribute(Z)}return this.each((U==null?Z.local?df:rf:typeof U==="function"?Z.local?of:tf:Z.local?sf:af)(Z,U))}function c_(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function nf(Q){return function(){this.style.removeProperty(Q)}}function ef(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function _P(Q,U,Z){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,Z)}}function oF(Q,U,Z){return arguments.length>1?this.each((U==null?nf:typeof U==="function"?_P:ef)(Q,U,Z==null?"":Z)):K6(this.node(),Q)}function K6(Q,U){return Q.style.getPropertyValue(U)||c_(Q).getComputedStyle(Q,null).getPropertyValue(U)}function JP(Q){return function(){delete this[Q]}}function $P(Q,U){return function(){this[Q]=U}}function QP(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function nF(Q,U){return arguments.length>1?this.each((U==null?JP:typeof U==="function"?QP:$P)(Q,U)):this.node()[Q]}function HL(Q){return Q.trim().split(/^|\s+/)}function eF(Q){return Q.classList||new YL(Q)}function YL(Q){this._node=Q,this._names=HL(Q.getAttribute("class")||"")}YL.prototype={add:function(Q){var U=this._names.indexOf(Q);if(U<0)this._names.push(Q),this._node.setAttribute("class",this._names.join(" "))},remove:function(Q){var U=this._names.indexOf(Q);if(U>=0)this._names.splice(U,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(Q){return this._names.indexOf(Q)>=0}};function WL(Q,U){var Z=eF(Q),K=-1,X=U.length;while(++K<X)Z.add(U[K])}function AL(Q,U){var Z=eF(Q),K=-1,X=U.length;while(++K<X)Z.remove(U[K])}function qP(Q){return function(){WL(this,Q)}}function UP(Q){return function(){AL(this,Q)}}function GP(Q,U){return function(){(U.apply(this,arguments)?WL:AL)(this,Q)}}function _K(Q,U){var Z=HL(Q+"");if(arguments.length<2){var K=eF(this.node()),X=-1,Y=Z.length;while(++X<Y)if(!K.contains(Z[X]))return!1;return!0}return this.each((typeof U==="function"?GP:U?qP:UP)(Z,U))}function ZP(){this.textContent=""}function FP(Q){return function(){this.textContent=Q}}function KP(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function JK(Q){return arguments.length?this.each(Q==null?ZP:(typeof Q==="function"?KP:FP)(Q)):this.node().textContent}function XP(){this.innerHTML=""}function HP(Q){return function(){this.innerHTML=Q}}function YP(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function $K(Q){return arguments.length?this.each(Q==null?XP:(typeof Q==="function"?YP:HP)(Q)):this.node().innerHTML}function WP(){if(this.nextSibling)this.parentNode.appendChild(this)}function QK(){return this.each(WP)}function AP(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function qK(){return this.each(AP)}function BP(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===_q&&U.documentElement.namespaceURI===_q?U.createElement(Q):U.createElementNS(Z,Q)}}function zP(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function l_(Q){var U=C4(Q);return(U.local?zP:BP)(U)}function UK(Q){var U=typeof Q==="function"?Q:l_(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function LP(){return null}function GK(Q,U){var Z=typeof Q==="function"?Q:l_(Q),K=U==null?LP:typeof U==="function"?U:F6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function MP(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function ZK(){return this.each(MP)}function TP(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function RP(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function FK(Q){return this.select(Q?RP:TP)}function KK(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function OP(Q){return function(U){Q.call(this,U,this.__data__)}}function wP(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",K=U.indexOf(".");if(K>=0)Z=U.slice(K+1),U=U.slice(0,K);return{type:U,name:Z}})}function IP(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,K=-1,X=U.length,Y;Z<X;++Z)if(Y=U[Z],(!Q.type||Y.type===Q.type)&&Y.name===Q.name)this.removeEventListener(Y.type,Y.listener,Y.options);else U[++K]=Y;if(++K)U.length=K;else delete this.__on}}function fP(Q,U,Z){return function(){var K=this.__on,X,Y=OP(U);if(K){for(var W=0,B=K.length;W<B;++W)if((X=K[W]).type===Q.type&&X.name===Q.name){this.removeEventListener(X.type,X.listener,X.options),this.addEventListener(X.type,X.listener=Y,X.options=Z),X.value=U;return}}if(this.addEventListener(Q.type,Y,Z),X={type:Q.type,name:Q.name,value:U,listener:Y,options:Z},!K)this.__on=[X];else K.push(X)}}function XK(Q,U,Z){var K=wP(Q+""),X,Y=K.length,W;if(arguments.length<2){var B=this.node().__on;if(B){for(var R=0,O=B.length,T;R<O;++R)for(X=0,T=B[R];X<Y;++X)if((W=K[X]).type===T.type&&W.name===T.name)return T.value}return}B=U?fP:IP;for(X=0;X<Y;++X)this.each(B(K[X],U,Z));return this}function BL(Q,U,Z){var K=c_(Q),X=K.CustomEvent;if(typeof X==="function")X=new X(U,Z);else if(X=K.document.createEvent("Event"),Z)X.initEvent(U,Z.bubbles,Z.cancelable),X.detail=Z.detail;else X.initEvent(U,!1,!1);Q.dispatchEvent(X)}function PP(Q,U){return function(){return BL(this,Q,U)}}function NP(Q,U){return function(){return BL(this,Q,U.apply(this,arguments))}}function HK(Q,U){return this.each((typeof U==="function"?NP:PP)(Q,U))}function*YK(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],X=0,Y=K.length,W;X<Y;++X)if(W=K[X])yield W}var WK=[null];function x0(Q,U){this._groups=Q,this._parents=U}function zL(){return new x0([[document.documentElement]],WK)}function jP(){return this}x0.prototype=zL.prototype={constructor:x0,select:SF,selectAll:kF,selectChild:yF,selectChildren:vF,filter:EF,data:uF,enter:bF,exit:hF,join:mF,merge:gF,selection:jP,order:pF,sort:cF,call:lF,nodes:rF,node:dF,size:iF,empty:aF,each:sF,attr:tF,style:oF,property:nF,classed:_K,text:JK,html:$K,raise:QK,lower:qK,append:UK,insert:GK,remove:ZK,clone:FK,datum:KK,on:XK,dispatch:HK,[Symbol.iterator]:YK};var K3=zL;function o0(Q){return typeof Q==="string"?new x0([[document.querySelector(Q)]],[document.documentElement]):new x0([[Q]],WK)}var LL={passive:!1},Y8={capture:!0,passive:!1};function Jq(Q){Q.stopImmediatePropagation()}function X3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function h7(Q){var U=Q.document.documentElement,Z=o0(Q).on("dragstart.drag",X3,Y8);if("onselectstart"in U)Z.on("selectstart.drag",X3,Y8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function r_(Q,U){var Z=Q.document.documentElement,K=o0(Q).on("dragstart.drag",null);if(U)K.on("click.drag",X3,Y8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in Z)K.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var d_=(Q)=>()=>Q;function i_(Q,{sourceEvent:U,subject:Z,target:K,identifier:X,active:Y,x:W,y:B,dx:R,dy:O,dispatch:T}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:Z,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},identifier:{value:X,enumerable:!0,configurable:!0},active:{value:Y,enumerable:!0,configurable:!0},x:{value:W,enumerable:!0,configurable:!0},y:{value:B,enumerable:!0,configurable:!0},dx:{value:R,enumerable:!0,configurable:!0},dy:{value:O,enumerable:!0,configurable:!0},_:{value:T}})}i_.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function CP(Q){return!Q.ctrlKey&&!Q.button}function VP(){return this.parentNode}function SP(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function DP(){return navigator.maxTouchPoints||"ontouchstart"in this}function a_(){var Q=CP,U=VP,Z=SP,K=DP,X={},Y=H8("start","drag","end"),W=0,B,R,O,T,L=0;function M(j){j.on("mousedown.drag",f).filter(K).on("touchstart.drag",S).on("touchmove.drag",D,LL).on("touchend.drag touchcancel.drag",h).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(j,b){if(T||!Q.call(this,j,b))return;var x=P(this,U.call(this,j,b),j,b,"mouse");if(!x)return;o0(j.view).on("mousemove.drag",I,Y8).on("mouseup.drag",k,Y8),h7(j.view),Jq(j),O=!1,B=j.clientX,R=j.clientY,x("start",j)}function I(j){if(X3(j),!O){var b=j.clientX-B,x=j.clientY-R;O=b*b+x*x>L}X.mouse("drag",j)}function k(j){o0(j.view).on("mousemove.drag mouseup.drag",null),r_(j.view,O),X3(j),X.mouse("end",j)}function S(j,b){if(!Q.call(this,j,b))return;var x=j.changedTouches,E=U.call(this,j,b),p=x.length,a,t;for(a=0;a<p;++a)if(t=P(this,E,j,b,x[a].identifier,x[a]))Jq(j),t("start",j,x[a])}function D(j){var b=j.changedTouches,x=b.length,E,p;for(E=0;E<x;++E)if(p=X[b[E].identifier])X3(j),p("drag",j,b[E])}function h(j){var b=j.changedTouches,x=b.length,E,p;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(E=0;E<x;++E)if(p=X[b[E].identifier])Jq(j),p("end",j,b[E])}function P(j,b,x,E,p,a){var t=Y.copy(),Q1=O2(a||x,b),$1,_1,y;if((y=Z.call(j,new i_("beforestart",{sourceEvent:x,target:M,identifier:p,active:W,x:Q1[0],y:Q1[1],dx:0,dy:0,dispatch:t}),E))==null)return;return $1=y.x-Q1[0]||0,_1=y.y-Q1[1]||0,function u(v,r,n){var o=Q1,V;switch(v){case"start":X[p]=u,V=W++;break;case"end":delete X[p],--W;case"drag":Q1=O2(n||r,b),V=W;break}t.call(v,j,new i_(v,{sourceEvent:r,subject:y,target:M,identifier:p,active:V,x:Q1[0]+$1,y:Q1[1]+_1,dx:Q1[0]-o[0],dy:Q1[1]-o[1],dispatch:t}),E)}}return M.filter=function(j){return arguments.length?(Q=typeof j==="function"?j:d_(!!j),M):Q},M.container=function(j){return arguments.length?(U=typeof j==="function"?j:d_(j),M):U},M.subject=function(j){return arguments.length?(Z=typeof j==="function"?j:d_(j),M):Z},M.touchable=function(j){return arguments.length?(K=typeof j==="function"?j:d_(!!j),M):K},M.on=function(){var j=Y.on.apply(Y,arguments);return j===Y?M:j},M.clickDistance=function(j){return arguments.length?(L=(j=+j)*j,M):Math.sqrt(L)},M}function s_(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function AK(Q,U){var Z=Object.create(Q.prototype);for(var K in U)Z[K]=U[K];return Z}function n_(){}var t_=0.7,qq=1/t_,m7="\\s*([+-]?\\d+)\\s*",o_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",V4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kP=/^#([0-9a-f]{3,8})$/,yP=new RegExp(`^rgb\\(${m7},${m7},${m7}\\)$`),vP=new RegExp(`^rgb\\(${V4},${V4},${V4}\\)$`),EP=new RegExp(`^rgba\\(${m7},${m7},${m7},${o_}\\)$`),bP=new RegExp(`^rgba\\(${V4},${V4},${V4},${o_}\\)$`),xP=new RegExp(`^hsl\\(${o_},${V4},${V4}\\)$`),uP=new RegExp(`^hsla\\(${o_},${V4},${V4},${o_}\\)$`),ML={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};s_(n_,d5,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:TL,formatHex:TL,formatHex8:hP,formatHsl:mP,formatRgb:RL,toString:RL});function TL(){return this.rgb().formatHex()}function hP(){return this.rgb().formatHex8()}function mP(){return NL(this).formatHsl()}function RL(){return this.rgb().formatRgb()}function d5(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=kP.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?OL(U):Z===3?new s2(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?$q(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?$q(U>>12&15|U>>8&240,U>>8&15|U>>4&240,U>>4&15|U&240,((U&15)<<4|U&15)/255):null):(U=yP.exec(Q))?new s2(U[1],U[2],U[3],1):(U=vP.exec(Q))?new s2(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=EP.exec(Q))?$q(U[1],U[2],U[3],U[4]):(U=bP.exec(Q))?$q(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=xP.exec(Q))?fL(U[1],U[2]/100,U[3]/100,1):(U=uP.exec(Q))?fL(U[1],U[2]/100,U[3]/100,U[4]):ML.hasOwnProperty(Q)?OL(ML[Q]):Q==="transparent"?new s2(NaN,NaN,NaN,0):null}function OL(Q){return new s2(Q>>16&255,Q>>8&255,Q&255,1)}function $q(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new s2(Q,U,Z,K)}function gP(Q){if(!(Q instanceof n_))Q=d5(Q);if(!Q)return new s2;return Q=Q.rgb(),new s2(Q.r,Q.g,Q.b,Q.opacity)}function g7(Q,U,Z,K){return arguments.length===1?gP(Q):new s2(Q,U,Z,K==null?1:K)}function s2(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}s_(s2,g7,AK(n_,{brighter(Q){return Q=Q==null?qq:Math.pow(qq,Q),new s2(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?t_:Math.pow(t_,Q),new s2(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new s2(A8(this.r),A8(this.g),A8(this.b),Uq(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:wL,formatHex:wL,formatHex8:pP,formatRgb:IL,toString:IL}));function wL(){return`#${W8(this.r)}${W8(this.g)}${W8(this.b)}`}function pP(){return`#${W8(this.r)}${W8(this.g)}${W8(this.b)}${W8((isNaN(this.opacity)?1:this.opacity)*255)}`}function IL(){let Q=Uq(this.opacity);return`${Q===1?"rgb(":"rgba("}${A8(this.r)}, ${A8(this.g)}, ${A8(this.b)}${Q===1?")":`, ${Q})`}`}function Uq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function A8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function W8(Q){return Q=A8(Q),(Q<16?"0":"")+Q.toString(16)}function fL(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new r5(Q,U,Z,K)}function NL(Q){if(Q instanceof r5)return new r5(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof n_))Q=d5(Q);if(!Q)return new r5;if(Q instanceof r5)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,K=Q.b/255,X=Math.min(U,Z,K),Y=Math.max(U,Z,K),W=NaN,B=Y-X,R=(Y+X)/2;if(B){if(U===Y)W=(Z-K)/B+(Z<K)*6;else if(Z===Y)W=(K-U)/B+2;else W=(U-Z)/B+4;B/=R<0.5?Y+X:2-Y-X,W*=60}else B=R>0&&R<1?0:W;return new r5(W,B,R,Q.opacity)}function jL(Q,U,Z,K){return arguments.length===1?NL(Q):new r5(Q,U,Z,K==null?1:K)}function r5(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}s_(r5,jL,AK(n_,{brighter(Q){return Q=Q==null?qq:Math.pow(qq,Q),new r5(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?t_:Math.pow(t_,Q),new r5(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,K=Z+(Z<0.5?Z:1-Z)*U,X=2*Z-K;return new s2(BK(Q>=240?Q-240:Q+120,X,K),BK(Q,X,K),BK(Q<120?Q+240:Q-120,X,K),this.opacity)},clamp(){return new r5(PL(this.h),Qq(this.s),Qq(this.l),Uq(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let Q=Uq(this.opacity);return`${Q===1?"hsl(":"hsla("}${PL(this.h)}, ${Qq(this.s)*100}%, ${Qq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function PL(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Qq(Q){return Math.max(0,Math.min(1,Q||0))}function BK(Q,U,Z){return(Q<60?U+(Z-U)*Q/60:Q<180?Z:Q<240?U+(Z-U)*(240-Q)/60:U)*255}function zK(Q,U,Z,K,X){var Y=Q*Q,W=Y*Q;return((1-3*Q+3*Y-W)*U+(4-6*Y+3*W)*Z+(1+3*Q+3*Y-3*W)*K+W*X)/6}function LK(Q){var U=Q.length-1;return function(Z){var K=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),X=Q[K],Y=Q[K+1],W=K>0?Q[K-1]:2*X-Y,B=K<U-1?Q[K+2]:2*Y-X;return zK((Z-K/U)*U,W,X,Y,B)}}function MK(Q){var U=Q.length;return function(Z){var K=Math.floor(((Z%=1)<0?++Z:Z)*U),X=Q[(K+U-1)%U],Y=Q[K%U],W=Q[(K+1)%U],B=Q[(K+2)%U];return zK((Z-K/U)*U,X,Y,W,B)}}var e_=(Q)=>()=>Q;function cP(Q,U){return function(Z){return Q+Z*U}}function lP(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(K){return Math.pow(Q+K*U,Z)}}function CL(Q){return(Q=+Q)===1?Gq:function(U,Z){return Z-U?lP(U,Z,Q):e_(isNaN(U)?Z:U)}}function Gq(Q,U){var Z=U-Q;return Z?cP(Q,Z):e_(isNaN(Q)?U:Q)}var B8=function Q(U){var Z=CL(U);function K(X,Y){var W=Z((X=g7(X)).r,(Y=g7(Y)).r),B=Z(X.g,Y.g),R=Z(X.b,Y.b),O=Gq(X.opacity,Y.opacity);return function(T){return X.r=W(T),X.g=B(T),X.b=R(T),X.opacity=O(T),X+""}}return K.gamma=Q,K}(1);function VL(Q){return function(U){var Z=U.length,K=Array(Z),X=Array(Z),Y=Array(Z),W,B;for(W=0;W<Z;++W)B=g7(U[W]),K[W]=B.r||0,X[W]=B.g||0,Y[W]=B.b||0;return K=Q(K),X=Q(X),Y=Q(Y),B.opacity=1,function(R){return B.r=K(R),B.g=X(R),B.b=Y(R),B+""}}}var rP=VL(LK),dP=VL(MK);function TK(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,K=U.slice(),X;return function(Y){for(X=0;X<Z;++X)K[X]=Q[X]*(1-Y)+U[X]*Y;return K}}function SL(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function DL(Q,U){var Z=U?U.length:0,K=Q?Math.min(Z,Q.length):0,X=Array(K),Y=Array(Z),W;for(W=0;W<K;++W)X[W]=S4(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(B){for(W=0;W<K;++W)Y[W]=X[W](B);return Y}}function RK(Q,U){var Z=new Date;return Q=+Q,U=+U,function(K){return Z.setTime(Q*(1-K)+U*K),Z}}function w2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function OK(Q,U){var Z={},K={},X;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(X in U)if(X in Q)Z[X]=S4(Q[X],U[X]);else K[X]=U[X];return function(Y){for(X in Z)K[X]=Z[X](Y);return K}}var IK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wK=new RegExp(IK.source,"g");function iP(Q){return function(){return Q}}function aP(Q){return function(U){return Q(U)+""}}function p7(Q,U){var Z=IK.lastIndex=wK.lastIndex=0,K,X,Y,W=-1,B=[],R=[];Q=Q+"",U=U+"";while((K=IK.exec(Q))&&(X=wK.exec(U))){if((Y=X.index)>Z)if(Y=U.slice(Z,Y),B[W])B[W]+=Y;else B[++W]=Y;if((K=K[0])===(X=X[0]))if(B[W])B[W]+=X;else B[++W]=X;else B[++W]=null,R.push({i:W,x:w2(K,X)});Z=wK.lastIndex}if(Z<U.length)if(Y=U.slice(Z),B[W])B[W]+=Y;else B[++W]=Y;return B.length<2?R[0]?aP(R[0].x):iP(U):(U=R.length,function(O){for(var T=0,L;T<U;++T)B[(L=R[T]).i]=L.x(O);return B.join("")})}function S4(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?e_(U):(Z==="number"?w2:Z==="string"?(K=d5(U))?(U=K,B8):p7:U instanceof d5?B8:U instanceof Date?RK:SL(U)?TK:Array.isArray(U)?DL:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?OK:w2)(Q,U)}var kL=180/Math.PI,Zq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fq(Q,U,Z,K,X,Y){var W,B,R;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(R=Q*Z+U*K)Z-=Q*R,K-=U*R;if(B=Math.sqrt(Z*Z+K*K))Z/=B,K/=B,R/=B;if(Q*K<U*Z)Q=-Q,U=-U,R=-R,W=-W;return{translateX:X,translateY:Y,rotate:Math.atan2(U,Q)*kL,skewX:Math.atan(R)*kL,scaleX:W,scaleY:B}}var Kq;function yL(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Zq:Fq(U.a,U.b,U.c,U.d,U.e,U.f)}function vL(Q){if(Q==null)return Zq;if(!Kq)Kq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Kq.setAttribute("transform",Q),!(Q=Kq.transform.baseVal.consolidate()))return Zq;return Q=Q.matrix,Fq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function EL(Q,U,Z,K){function X(O){return O.length?O.pop()+" ":""}function Y(O,T,L,M,f,I){if(O!==L||T!==M){var k=f.push("translate(",null,U,null,Z);I.push({i:k-4,x:w2(O,L)},{i:k-2,x:w2(T,M)})}else if(L||M)f.push("translate("+L+U+M+Z)}function W(O,T,L,M){if(O!==T){if(O-T>180)T+=360;else if(T-O>180)O+=360;M.push({i:L.push(X(L)+"rotate(",null,K)-2,x:w2(O,T)})}else if(T)L.push(X(L)+"rotate("+T+K)}function B(O,T,L,M){if(O!==T)M.push({i:L.push(X(L)+"skewX(",null,K)-2,x:w2(O,T)});else if(T)L.push(X(L)+"skewX("+T+K)}function R(O,T,L,M,f,I){if(O!==L||T!==M){var k=f.push(X(f)+"scale(",null,",",null,")");I.push({i:k-4,x:w2(O,L)},{i:k-2,x:w2(T,M)})}else if(L!==1||M!==1)f.push(X(f)+"scale("+L+","+M+")")}return function(O,T){var L=[],M=[];return O=Q(O),T=Q(T),Y(O.translateX,O.translateY,T.translateX,T.translateY,L,M),W(O.rotate,T.rotate,L,M),B(O.skewX,T.skewX,L,M),R(O.scaleX,O.scaleY,T.scaleX,T.scaleY,L,M),O=T=null,function(f){var I=-1,k=M.length,S;while(++I<k)L[(S=M[I]).i]=S.x(f);return L.join("")}}}var fK=EL(yL,"px, ","px)","deg)"),PK=EL(vL,", ",")",")");var sP=0.000000000001;function bL(Q){return((Q=Math.exp(Q))+1/Q)/2}function tP(Q){return((Q=Math.exp(Q))-1/Q)/2}function oP(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var z8=function Q(U,Z,K){function X(Y,W){var B=Y[0],R=Y[1],O=Y[2],T=W[0],L=W[1],M=W[2],f=T-B,I=L-R,k=f*f+I*I,S,D;if(k<sP)D=Math.log(M/O)/U,S=function(E){return[B+E*f,R+E*I,O*Math.exp(U*E*D)]};else{var h=Math.sqrt(k),P=(M*M-O*O+K*k)/(2*O*Z*h),j=(M*M-O*O-K*k)/(2*M*Z*h),b=Math.log(Math.sqrt(P*P+1)-P),x=Math.log(Math.sqrt(j*j+1)-j);D=(x-b)/U,S=function(E){var p=E*D,a=bL(b),t=O/(Z*h)*(a*oP(U*p+b)-tP(b));return[B+t*f,R+t*I,O*a/bL(U*p+b)]}}return S.duration=D*1000*U/Math.SQRT2,S}return X.rho=function(Y){var W=Math.max(0.001,+Y),B=W*W,R=B*B;return Q(W,B,R)},X}(Math.SQRT2,2,4);var c7=0,JJ=0,_J=0,uL=1000,Xq,$J,Hq=0,L8=0,Yq=0,QJ=typeof performance==="object"&&performance.now?performance:Date,hL=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function UJ(){return L8||(hL(nP),L8=QJ.now()+Yq)}function nP(){L8=0}function qJ(){this._call=this._time=this._next=null}qJ.prototype=Wq.prototype={constructor:qJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?UJ():+Z)+(U==null?0:+U),!this._next&&$J!==this){if($J)$J._next=this;else Xq=this;$J=this}this._call=Q,this._time=Z,NK()},stop:function(){if(this._call)this._call=null,this._time=1/0,NK()}};function Wq(Q,U,Z){var K=new qJ;return K.restart(Q,U,Z),K}function mL(){UJ(),++c7;var Q=Xq,U;while(Q){if((U=L8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--c7}function xL(){L8=(Hq=QJ.now())+Yq,c7=JJ=0;try{mL()}finally{c7=0,_N(),L8=0}}function eP(){var Q=QJ.now(),U=Q-Hq;if(U>uL)Yq-=U,Hq=Q}function _N(){var Q,U=Xq,Z,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:Xq=Z;$J=Q,NK(K)}function NK(Q){if(c7)return;if(JJ)JJ=clearTimeout(JJ);var U=Q-L8;if(U>24){if(Q<1/0)JJ=setTimeout(xL,Q-QJ.now()-Yq);if(_J)_J=clearInterval(_J)}else{if(!_J)Hq=QJ.now(),_J=setInterval(eP,uL);c7=1,hL(xL)}}function GJ(Q,U,Z){var K=new qJ;return U=U==null?0:+U,K.restart((X)=>{K.stop(),Q(X+U)},U,Z),K}var JN=H8("start","end","cancel","interrupt"),$N=[],cL=0,gL=1,Bq=2,Aq=3,pL=4,zq=5,ZJ=6;function H3(Q,U,Z,K,X,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;QN(Q,Z,{name:U,index:K,group:X,on:JN,tween:$N,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:cL})}function FJ(Q,U){var Z=n0(Q,U);if(Z.state>cL)throw Error("too late; already scheduled");return Z}function Y2(Q,U){var Z=n0(Q,U);if(Z.state>Aq)throw Error("too late; already running");return Z}function n0(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function QN(Q,U,Z){var K=Q.__transition,X;K[U]=Z,Z.timer=Wq(Y,0,Z.time);function Y(O){if(Z.state=gL,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=O)W(O-Z.delay)}function W(O){var T,L,M,f;if(Z.state!==gL)return R();for(T in K){if(f=K[T],f.name!==Z.name)continue;if(f.state===Aq)return GJ(W);if(f.state===pL)f.state=ZJ,f.timer.stop(),f.on.call("interrupt",Q,Q.__data__,f.index,f.group),delete K[T];else if(+T<U)f.state=ZJ,f.timer.stop(),f.on.call("cancel",Q,Q.__data__,f.index,f.group),delete K[T]}if(GJ(function(){if(Z.state===Aq)Z.state=pL,Z.timer.restart(B,Z.delay,Z.time),B(O)}),Z.state=Bq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==Bq)return;Z.state=Aq,X=Array(M=Z.tween.length);for(T=0,L=-1;T<M;++T)if(f=Z.tween[T].value.call(Q,Q.__data__,Z.index,Z.group))X[++L]=f;X.length=L+1}function B(O){var T=O<Z.duration?Z.ease.call(null,O/Z.duration):(Z.timer.restart(R),Z.state=zq,1),L=-1,M=X.length;while(++L<M)X[L].call(Q,T);if(Z.state===zq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),R()}function R(){Z.state=ZJ,Z.timer.stop(),delete K[U];for(var O in K)return;delete Q.__transition}}function X6(Q,U){var Z=Q.__transition,K,X,Y=!0,W;if(!Z)return;U=U==null?null:U+"";for(W in Z){if((K=Z[W]).name!==U){Y=!1;continue}X=K.state>Bq&&K.state<zq,K.state=ZJ,K.timer.stop(),K.on.call(X?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete Z[W]}if(Y)delete Q.__transition}function jK(Q){return this.each(function(){X6(this,Q)})}function qN(Q,U){var Z,K;return function(){var X=Y2(this,Q),Y=X.tween;if(Y!==Z){K=Z=Y;for(var W=0,B=K.length;W<B;++W)if(K[W].name===U){K=K.slice(),K.splice(W,1);break}}X.tween=K}}function UN(Q,U,Z){var K,X;if(typeof Z!=="function")throw Error();return function(){var Y=Y2(this,Q),W=Y.tween;if(W!==K){X=(K=W).slice();for(var B={name:U,value:Z},R=0,O=X.length;R<O;++R)if(X[R].name===U){X[R]=B;break}if(R===O)X.push(B)}Y.tween=X}}function CK(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=n0(this.node(),Z).tween;for(var X=0,Y=K.length,W;X<Y;++X)if((W=K[X]).name===Q)return W.value;return null}return this.each((U==null?qN:UN)(Z,Q,U))}function l7(Q,U,Z){var K=Q._id;return Q.each(function(){var X=Y2(this,K);(X.value||(X.value={}))[U]=Z.apply(this,arguments)}),function(X){return n0(X,K).value[U]}}function KJ(Q,U){var Z;return(typeof U==="number"?w2:U instanceof d5?B8:(Z=d5(U))?(U=Z,B8):p7)(Q,U)}function GN(Q){return function(){this.removeAttribute(Q)}}function ZN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function FN(Q,U,Z){var K,X=Z+"",Y;return function(){var W=this.getAttribute(Q);return W===X?null:W===K?Y:Y=U(K=W,Z)}}function KN(Q,U,Z){var K,X=Z+"",Y;return function(){var W=this.getAttributeNS(Q.space,Q.local);return W===X?null:W===K?Y:Y=U(K=W,Z)}}function XN(Q,U,Z){var K,X,Y;return function(){var W,B=Z(this),R;if(B==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),R=B+"",W===R?null:W===K&&R===X?Y:(X=R,Y=U(K=W,B))}}function HN(Q,U,Z){var K,X,Y;return function(){var W,B=Z(this),R;if(B==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),R=B+"",W===R?null:W===K&&R===X?Y:(X=R,Y=U(K=W,B))}}function VK(Q,U){var Z=C4(Q),K=Z==="transform"?PK:KJ;return this.attrTween(Q,typeof U==="function"?(Z.local?HN:XN)(Z,K,l7(this,"attr."+Q,U)):U==null?(Z.local?ZN:GN)(Z):(Z.local?KN:FN)(Z,K,U))}function YN(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function WN(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function AN(Q,U){var Z,K;function X(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&WN(Q,Y);return Z}return X._value=U,X}function BN(Q,U){var Z,K;function X(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&YN(Q,Y);return Z}return X._value=U,X}function SK(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var K=C4(Q);return this.tween(Z,(K.local?AN:BN)(K,U))}function zN(Q,U){return function(){FJ(this,Q).delay=+U.apply(this,arguments)}}function LN(Q,U){return U=+U,function(){FJ(this,Q).delay=U}}function DK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?zN:LN)(U,Q)):n0(this.node(),U).delay}function MN(Q,U){return function(){Y2(this,Q).duration=+U.apply(this,arguments)}}function TN(Q,U){return U=+U,function(){Y2(this,Q).duration=U}}function kK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?MN:TN)(U,Q)):n0(this.node(),U).duration}function RN(Q,U){if(typeof U!=="function")throw Error();return function(){Y2(this,Q).ease=U}}function yK(Q){var U=this._id;return arguments.length?this.each(RN(U,Q)):n0(this.node(),U).ease}function ON(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();Y2(this,Q).ease=Z}}function vK(Q){if(typeof Q!=="function")throw Error();return this.each(ON(this._id,Q))}function EK(Q){if(typeof Q!=="function")Q=x7(Q);for(var U=this._groups,Z=U.length,K=Array(Z),X=0;X<Z;++X)for(var Y=U[X],W=Y.length,B=K[X]=[],R,O=0;O<W;++O)if((R=Y[O])&&Q.call(R,R.__data__,O,Y))B.push(R);return new x2(K,this._parents,this._name,this._id)}function bK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,K=U.length,X=Z.length,Y=Math.min(K,X),W=Array(K),B=0;B<Y;++B)for(var R=U[B],O=Z[B],T=R.length,L=W[B]=Array(T),M,f=0;f<T;++f)if(M=R[f]||O[f])L[f]=M;for(;B<K;++B)W[B]=U[B];return new x2(W,this._parents,this._name,this._id)}function wN(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var Z=U.indexOf(".");if(Z>=0)U=U.slice(0,Z);return!U||U==="start"})}function IN(Q,U,Z){var K,X,Y=wN(U)?FJ:Y2;return function(){var W=Y(this,Q),B=W.on;if(B!==K)(X=(K=B).copy()).on(U,Z);W.on=X}}function xK(Q,U){var Z=this._id;return arguments.length<2?n0(this.node(),Z).on.on(Q):this.each(IN(Z,Q,U))}function fN(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function uK(){return this.on("end.remove",fN(this._id))}function hK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=F6(Q);for(var K=this._groups,X=K.length,Y=Array(X),W=0;W<X;++W)for(var B=K[W],R=B.length,O=Y[W]=Array(R),T,L,M=0;M<R;++M)if((T=B[M])&&(L=Q.call(T,T.__data__,M,B))){if("__data__"in T)L.__data__=T.__data__;O[M]=L,H3(O[M],U,Z,M,O,n0(T,Z))}return new x2(Y,this._parents,U,Z)}function mK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=u7(Q);for(var K=this._groups,X=K.length,Y=[],W=[],B=0;B<X;++B)for(var R=K[B],O=R.length,T,L=0;L<O;++L)if(T=R[L]){for(var M=Q.call(T,T.__data__,L,R),f,I=n0(T,Z),k=0,S=M.length;k<S;++k)if(f=M[k])H3(f,U,Z,k,M,I);Y.push(M),W.push(T)}return new x2(Y,W,U,Z)}var PN=K3.prototype.constructor;function gK(){return new PN(this._groups,this._parents)}function NN(Q,U){var Z,K,X;return function(){var Y=K6(this,Q),W=(this.style.removeProperty(Q),K6(this,Q));return Y===W?null:Y===Z&&W===K?X:X=U(Z=Y,K=W)}}function lL(Q){return function(){this.style.removeProperty(Q)}}function jN(Q,U,Z){var K,X=Z+"",Y;return function(){var W=K6(this,Q);return W===X?null:W===K?Y:Y=U(K=W,Z)}}function CN(Q,U,Z){var K,X,Y;return function(){var W=K6(this,Q),B=Z(this),R=B+"";if(B==null)R=B=(this.style.removeProperty(Q),K6(this,Q));return W===R?null:W===K&&R===X?Y:(X=R,Y=U(K=W,B))}}function VN(Q,U){var Z,K,X,Y="style."+U,W="end."+Y,B;return function(){var R=Y2(this,Q),O=R.on,T=R.value[Y]==null?B||(B=lL(U)):void 0;if(O!==Z||X!==T)(K=(Z=O).copy()).on(W,X=T);R.on=K}}function pK(Q,U,Z){var K=(Q+="")==="transform"?fK:KJ;return U==null?this.styleTween(Q,NN(Q,K)).on("end.style."+Q,lL(Q)):typeof U==="function"?this.styleTween(Q,CN(Q,K,l7(this,"style."+Q,U))).each(VN(this._id,Q)):this.styleTween(Q,jN(Q,K,U),Z).on("end.style."+Q,null)}function SN(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function DN(Q,U,Z){var K,X;function Y(){var W=U.apply(this,arguments);if(W!==X)K=(X=W)&&SN(Q,W,Z);return K}return Y._value=U,Y}function cK(Q,U,Z){var K="style."+(Q+="");if(arguments.length<2)return(K=this.tween(K))&&K._value;if(U==null)return this.tween(K,null);if(typeof U!=="function")throw Error();return this.tween(K,DN(Q,U,Z==null?"":Z))}function kN(Q){return function(){this.textContent=Q}}function yN(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function lK(Q){return this.tween("text",typeof Q==="function"?yN(l7(this,"text",Q)):kN(Q==null?"":Q+""))}function vN(Q){return function(U){this.textContent=Q.call(this,U)}}function EN(Q){var U,Z;function K(){var X=Q.apply(this,arguments);if(X!==Z)U=(Z=X)&&vN(X);return U}return K._value=Q,K}function rK(Q){var U="text";if(arguments.length<1)return(U=this.tween(U))&&U._value;if(Q==null)return this.tween(U,null);if(typeof Q!=="function")throw Error();return this.tween(U,EN(Q))}function dK(){var Q=this._name,U=this._id,Z=Lq();for(var K=this._groups,X=K.length,Y=0;Y<X;++Y)for(var W=K[Y],B=W.length,R,O=0;O<B;++O)if(R=W[O]){var T=n0(R,U);H3(R,Q,Z,O,W,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new x2(K,this._parents,Q,Z)}function iK(){var Q,U,Z=this,K=Z._id,X=Z.size();return new Promise(function(Y,W){var B={value:W},R={value:function(){if(--X===0)Y()}};if(Z.each(function(){var O=Y2(this,K),T=O.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(B),U._.interrupt.push(B),U._.end.push(R);O.on=U}),X===0)Y()})}var bN=0;function x2(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function rL(Q){return K3().transition(Q)}function Lq(){return++bN}var Y3=K3.prototype;x2.prototype=rL.prototype={constructor:x2,select:hK,selectAll:mK,selectChild:Y3.selectChild,selectChildren:Y3.selectChildren,filter:EK,merge:bK,selection:gK,transition:dK,call:Y3.call,nodes:Y3.nodes,node:Y3.node,size:Y3.size,empty:Y3.empty,each:Y3.each,on:xK,attr:VK,attrTween:SK,style:pK,styleTween:cK,text:lK,textTween:rK,remove:uK,tween:CK,delay:DK,duration:kK,ease:yK,easeVarying:vK,end:iK,[Symbol.iterator]:Y3[Symbol.iterator]};function Mq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var xN={time:null,delay:0,duration:250,ease:Mq};function uN(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function aK(Q){var U,Z;if(Q instanceof x2)U=Q._id,Q=Q._name;else U=Lq(),(Z=xN).time=UJ(),Q=Q==null?null:Q+"";for(var K=this._groups,X=K.length,Y=0;Y<X;++Y)for(var W=K[Y],B=W.length,R,O=0;O<B;++O)if(R=W[O])H3(R,Q,U,O,W,Z||uN(R,U));return new x2(K,this._parents,Q,U)}K3.prototype.interrupt=jK;K3.prototype.transition=aK;var XJ=(Q)=>()=>Q;function sK(Q,{sourceEvent:U,target:Z,transform:K,dispatch:X}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:Z,enumerable:!0,configurable:!0},transform:{value:K,enumerable:!0,configurable:!0},_:{value:X}})}function i5(Q,U,Z){this.k=Q,this.x=U,this.y=Z}i5.prototype={constructor:i5,scale:function(Q){return Q===1?this:new i5(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new i5(this.k,this.x+this.k*Q,this.y+this.k*U)},apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},applyX:function(Q){return Q*this.k+this.x},applyY:function(Q){return Q*this.k+this.y},invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},invertX:function(Q){return(Q-this.x)/this.k},invertY:function(Q){return(Q-this.y)/this.k},rescaleX:function(Q){return Q.copy().domain(Q.range().map(this.invertX,this).map(Q.invert,Q))},rescaleY:function(Q){return Q.copy().domain(Q.range().map(this.invertY,this).map(Q.invert,Q))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var M8=new i5(1,0,0);HJ.prototype=i5.prototype;function HJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return M8;return Q.__zoom}function Tq(Q){Q.stopImmediatePropagation()}function T8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function hN(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function mN(){var Q=this;if(Q instanceof SVGElement){if(Q=Q.ownerSVGElement||Q,Q.hasAttribute("viewBox"))return Q=Q.viewBox.baseVal,[[Q.x,Q.y],[Q.x+Q.width,Q.y+Q.height]];return[[0,0],[Q.width.baseVal.value,Q.height.baseVal.value]]}return[[0,0],[Q.clientWidth,Q.clientHeight]]}function dL(){return this.__zoom||M8}function gN(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function pN(){return navigator.maxTouchPoints||"ontouchstart"in this}function cN(Q,U,Z){var K=Q.invertX(U[0][0])-Z[0][0],X=Q.invertX(U[1][0])-Z[1][0],Y=Q.invertY(U[0][1])-Z[0][1],W=Q.invertY(U[1][1])-Z[1][1];return Q.translate(X>K?(K+X)/2:Math.min(0,K)||Math.max(0,X),W>Y?(Y+W)/2:Math.min(0,Y)||Math.max(0,W))}function YJ(){var Q=hN,U=mN,Z=cN,K=gN,X=pN,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],B=250,R=z8,O=H8("start","zoom","end"),T,L,M,f=500,I=150,k=0,S=10;function D(y){y.property("__zoom",dL).on("wheel.zoom",p,{passive:!1}).on("mousedown.zoom",a).on("dblclick.zoom",t).filter(X).on("touchstart.zoom",Q1).on("touchmove.zoom",$1).on("touchend.zoom touchcancel.zoom",_1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(y,u,v,r){var n=y.selection?y.selection():y;if(n.property("__zoom",dL),y!==n)b(y,u,v,r);else n.interrupt().each(function(){x(this,arguments).event(r).start().zoom(null,typeof u==="function"?u.apply(this,arguments):u).end()})},D.scaleBy=function(y,u,v,r){D.scaleTo(y,function(){var n=this.__zoom.k,o=typeof u==="function"?u.apply(this,arguments):u;return n*o},v,r)},D.scaleTo=function(y,u,v,r){D.transform(y,function(){var n=U.apply(this,arguments),o=this.__zoom,V=v==null?j(n):typeof v==="function"?v.apply(this,arguments):v,m=o.invert(V),J1=typeof u==="function"?u.apply(this,arguments):u;return Z(P(h(o,J1),V,m),n,W)},v,r)},D.translateBy=function(y,u,v,r){D.transform(y,function(){return Z(this.__zoom.translate(typeof u==="function"?u.apply(this,arguments):u,typeof v==="function"?v.apply(this,arguments):v),U.apply(this,arguments),W)},null,r)},D.translateTo=function(y,u,v,r,n){D.transform(y,function(){var o=U.apply(this,arguments),V=this.__zoom,m=r==null?j(o):typeof r==="function"?r.apply(this,arguments):r;return Z(M8.translate(m[0],m[1]).scale(V.k).translate(typeof u==="function"?-u.apply(this,arguments):-u,typeof v==="function"?-v.apply(this,arguments):-v),o,W)},r,n)};function h(y,u){return u=Math.max(Y[0],Math.min(Y[1],u)),u===y.k?y:new i5(u,y.x,y.y)}function P(y,u,v){var r=u[0]-v[0]*y.k,n=u[1]-v[1]*y.k;return r===y.x&&n===y.y?y:new i5(y.k,r,n)}function j(y){return[(+y[0][0]+ +y[1][0])/2,(+y[0][1]+ +y[1][1])/2]}function b(y,u,v,r){y.on("start.zoom",function(){x(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(r).end()}).tween("zoom",function(){var n=this,o=arguments,V=x(n,o).event(r),m=U.apply(n,o),J1=v==null?j(m):typeof v==="function"?v.apply(n,o):v,X1=Math.max(m[1][0]-m[0][0],m[1][1]-m[0][1]),W1=n.__zoom,O1=typeof u==="function"?u.apply(n,o):u,z1=R(W1.invert(J1).concat(X1/W1.k),O1.invert(J1).concat(X1/O1.k));return function(I1){if(I1===1)I1=O1;else{var K1=z1(I1),f1=X1/K1[2];I1=new i5(f1,J1[0]-K1[0]*f1,J1[1]-K1[1]*f1)}V.zoom(null,I1)}})}function x(y,u,v){return!v&&y.__zooming||new E(y,u)}function E(y,u){this.that=y,this.args=u,this.active=0,this.sourceEvent=null,this.extent=U.apply(y,u),this.taps=0}E.prototype={event:function(y){if(y)this.sourceEvent=y;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(y,u){if(this.mouse&&y!=="mouse")this.mouse[1]=u.invert(this.mouse[0]);if(this.touch0&&y!=="touch")this.touch0[1]=u.invert(this.touch0[0]);if(this.touch1&&y!=="touch")this.touch1[1]=u.invert(this.touch1[0]);return this.that.__zoom=u,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(y){var u=o0(this.that).datum();O.call(y,this.that,new sK(y,{sourceEvent:this.sourceEvent,target:D,type:y,transform:this.that.__zoom,dispatch:O}),u)}};function p(y,...u){if(!Q.apply(this,arguments))return;var v=x(this,u).event(y),r=this.__zoom,n=Math.max(Y[0],Math.min(Y[1],r.k*Math.pow(2,K.apply(this,arguments)))),o=O2(y);if(v.wheel){if(v.mouse[0][0]!==o[0]||v.mouse[0][1]!==o[1])v.mouse[1]=r.invert(v.mouse[0]=o);clearTimeout(v.wheel)}else if(r.k===n)return;else v.mouse=[o,r.invert(o)],X6(this),v.start();T8(y),v.wheel=setTimeout(V,I),v.zoom("mouse",Z(P(h(r,n),v.mouse[0],v.mouse[1]),v.extent,W));function V(){v.wheel=null,v.end()}}function a(y,...u){if(M||!Q.apply(this,arguments))return;var v=y.currentTarget,r=x(this,u,!0).event(y),n=o0(y.view).on("mousemove.zoom",J1,!0).on("mouseup.zoom",X1,!0),o=O2(y,v),V=y.clientX,m=y.clientY;h7(y.view),Tq(y),r.mouse=[o,this.__zoom.invert(o)],X6(this),r.start();function J1(W1){if(T8(W1),!r.moved){var O1=W1.clientX-V,z1=W1.clientY-m;r.moved=O1*O1+z1*z1>k}r.event(W1).zoom("mouse",Z(P(r.that.__zoom,r.mouse[0]=O2(W1,v),r.mouse[1]),r.extent,W))}function X1(W1){n.on("mousemove.zoom mouseup.zoom",null),r_(W1.view,r.moved),T8(W1),r.event(W1).end()}}function t(y,...u){if(!Q.apply(this,arguments))return;var v=this.__zoom,r=O2(y.changedTouches?y.changedTouches[0]:y,this),n=v.invert(r),o=v.k*(y.shiftKey?0.5:2),V=Z(P(h(v,o),r,n),U.apply(this,u),W);if(T8(y),B>0)o0(this).transition().duration(B).call(b,V,r,y);else o0(this).call(D.transform,V,r,y)}function Q1(y,...u){if(!Q.apply(this,arguments))return;var v=y.touches,r=v.length,n=x(this,u,y.changedTouches.length===r).event(y),o,V,m,J1;Tq(y);for(V=0;V<r;++V)if(m=v[V],J1=O2(m,this),J1=[J1,this.__zoom.invert(J1),m.identifier],!n.touch0)n.touch0=J1,o=!0,n.taps=1+!!T;else if(!n.touch1&&n.touch0[2]!==J1[2])n.touch1=J1,n.taps=0;if(T)T=clearTimeout(T);if(o){if(n.taps<2)L=J1[0],T=setTimeout(function(){T=null},f);X6(this),n.start()}}function $1(y,...u){if(!this.__zooming)return;var v=x(this,u).event(y),r=y.changedTouches,n=r.length,o,V,m,J1;T8(y);for(o=0;o<n;++o)if(V=r[o],m=O2(V,this),v.touch0&&v.touch0[2]===V.identifier)v.touch0[0]=m;else if(v.touch1&&v.touch1[2]===V.identifier)v.touch1[0]=m;if(V=v.that.__zoom,v.touch1){var X1=v.touch0[0],W1=v.touch0[1],O1=v.touch1[0],z1=v.touch1[1],I1=(I1=O1[0]-X1[0])*I1+(I1=O1[1]-X1[1])*I1,K1=(K1=z1[0]-W1[0])*K1+(K1=z1[1]-W1[1])*K1;V=h(V,Math.sqrt(I1/K1)),m=[(X1[0]+O1[0])/2,(X1[1]+O1[1])/2],J1=[(W1[0]+z1[0])/2,(W1[1]+z1[1])/2]}else if(v.touch0)m=v.touch0[0],J1=v.touch0[1];else return;v.zoom("touch",Z(P(V,m,J1),v.extent,W))}function _1(y,...u){if(!this.__zooming)return;var v=x(this,u).event(y),r=y.changedTouches,n=r.length,o,V;if(Tq(y),M)clearTimeout(M);M=setTimeout(function(){M=null},f);for(o=0;o<n;++o)if(V=r[o],v.touch0&&v.touch0[2]===V.identifier)delete v.touch0;else if(v.touch1&&v.touch1[2]===V.identifier)delete v.touch1;if(v.touch1&&!v.touch0)v.touch0=v.touch1,delete v.touch1;if(v.touch0)v.touch0[1]=this.__zoom.invert(v.touch0[0]);else if(v.end(),v.taps===2){if(V=O2(V,this),Math.hypot(L[0]-V[0],L[1]-V[1])<S){var m=o0(this).on("dblclick.zoom");if(m)m.apply(this,arguments)}}}return D.wheelDelta=function(y){return arguments.length?(K=typeof y==="function"?y:XJ(+y),D):K},D.filter=function(y){return arguments.length?(Q=typeof y==="function"?y:XJ(!!y),D):Q},D.touchable=function(y){return arguments.length?(X=typeof y==="function"?y:XJ(!!y),D):X},D.extent=function(y){return arguments.length?(U=typeof y==="function"?y:XJ([[+y[0][0],+y[0][1]],[+y[1][0],+y[1][1]]]),D):U},D.scaleExtent=function(y){return arguments.length?(Y[0]=+y[0],Y[1]=+y[1],D):[Y[0],Y[1]]},D.translateExtent=function(y){return arguments.length?(W[0][0]=+y[0][0],W[1][0]=+y[1][0],W[0][1]=+y[0][1],W[1][1]=+y[1][1],D):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},D.constrain=function(y){return arguments.length?(Z=y,D):Z},D.duration=function(y){return arguments.length?(B=+y,D):B},D.interpolate=function(y){return arguments.length?(R=y,D):R},D.on=function(){var y=O.on.apply(O,arguments);return y===O?D:y},D.clickDistance=function(y){return arguments.length?(k=(y=+y)*y,D):Math.sqrt(k)},D.tapDistance=function(y){return arguments.length?(S=+y,D):S},D}var u2={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:K}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},a7=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],_X=["Enter"," ","Escape"],JX={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:Q,x:U,y:Z})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${Z}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"},A6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(A6||(A6={}));var W3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(W3||(W3={}));var R8;(function(Q){Q.Partial="partial",Q.Full="full"})(R8||(R8={}));var $X={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},D4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(D4||(D4={}));var d7;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(d7||(d7={}));var j1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(j1||(j1={}));var iL={[j1.Left]:j1.Right,[j1.Right]:j1.Left,[j1.Top]:j1.Bottom,[j1.Bottom]:j1.Top},QX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),ZM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),qX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var AJ=(Q,U=[0,0])=>{let{width:Z,height:K}=V5(Q),X=Q.origin??U,Y=Z*X[0],W=K*X[1];return{x:Q.position.x-Y,y:Q.position.y-W}},UX=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,K=Q.reduce((X,Y)=>{let W=typeof Y==="string",B=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)B=W?U.nodeLookup.get(Y):!qX(Y)?U.nodeLookup.get(Y.id):Y;if(!B)return X;return Z=!0,Pq(X,wq(B,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?Nq(K):{x:0,y:0,width:0,height:0}},f8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},K=!1;return Q.forEach((X)=>{if(U.filter===void 0||U.filter(X))Z=Pq(Z,wq(X)),K=!0}),K?Nq(Z):{x:0,y:0,width:0,height:0}},Iq=(Q,U,[Z,K,X]=[0,0,1],Y=!1,W=!1)=>{let B=(U.x-Z)/X,R=(U.y-K)/X,O=U.width/X,T=U.height/X,L=[];for(let M of Q.values()){let{measured:f,selectable:I=!0,hidden:k=!1}=M;if(W&&!I||k)continue;let S=f.width??M.width??M.initialWidth??0,D=f.height??M.height??M.initialHeight??0,{x:h,y:P}=M.internals.positionAbsolute,j=YM(B,R,O,T,h,P,S,D),b=S*D,x=Y&&j>0;if(!M.internals.handleBounds||x||j>=b||M.dragging)L.push(M)}return L},FM=(Q,U)=>{let Z=new Set;return Q.forEach((K)=>{Z.add(K.id)}),U.filter((K)=>Z.has(K.source)||Z.has(K.target))};function lN(Q,U){let Z=new Map,K=U?.nodes?new Set(U.nodes.map((X)=>X.id)):null;return Q.forEach((X)=>{let Y;if(U?.includeHiddenNodes){let{width:W,height:B}=V5(X);Y=W>0&&B>0}else Y=Boolean(X.measured.width&&X.measured.height&&!X.hidden);if(Y&&(!K||K.has(X.id)))Z.set(X.id,X)}),Z}async function KM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:X,maxZoom:Y},W){if(Q.size===0)return!0;let B=lN(Q,W),R=f8(B),O=zJ(R,U,Z,W?.minZoom??X,W?.maxZoom??Y,W?.padding??0.1);return await K.setViewport(O,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function GX({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:K=[0,0],nodeExtent:X,onError:Y}){let W=Z.get(Q),B=W.parentId?Z.get(W.parentId):void 0,{x:R,y:O}=B?B.internals.positionAbsolute:{x:0,y:0},T=W.origin??K,L=W.extent||X;if(W.extent==="parent"&&!W.expandParent)if(!B)Y?.("005",u2.error005());else{let{width:f,height:I}=V5(B);if(f&&I)L=[[R,O],[R+f,O+I]]}else if(B&&I8(W.extent))L=[[W.extent[0][0]+R,W.extent[0][1]+O],[W.extent[1][0]+R,W.extent[1][1]+O]];let M=I8(L)?O8(U,L,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",u2.error015());return{position:{x:M.x-R+(W.measured.width??0)*T[0],y:M.y-O+(W.measured.height??0)*T[1]},positionAbsolute:M}}async function XM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:X}){let Y=new Set(Q.map((M)=>M.id)),W=[];for(let M of Z){if(M.deletable===!1)continue;let f=Y.has(M.id),I=!f&&M.parentId&&W.find((k)=>k.id===M.parentId);if(f||I)W.push(M)}let B=new Set(U.map((M)=>M.id)),R=K.filter((M)=>M.deletable!==!1),T=FM(W,R);for(let M of R)if(B.has(M.id)&&!T.find((I)=>I.id===M.id))T.push(M);if(!X)return{edges:T,nodes:W};let L=await X({nodes:W,edges:T});if(typeof L==="boolean")return L?{edges:T,nodes:W}:{edges:[],nodes:[]};return L}var i7=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),O8=(Q={x:0,y:0},U,Z)=>({x:i7(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:i7(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function HM(Q,U,Z){let{width:K,height:X}=V5(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return O8(Q,[[Y,W],[Y+K,W+X]],U)}var aL=(Q,U,Z)=>{if(Q<U)return i7(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-i7(Math.abs(Q-Z),1,U)/U;return 0},fq=(Q,U,Z=15,K=40)=>{let X=aL(Q.x,K,U.width-K)*Z,Y=aL(Q.y,K,U.height-K)*Z;return[X,Y]},Pq=(Q,U)=>({x:Math.min(Q.x,U.x),y:Math.min(Q.y,U.y),x2:Math.max(Q.x2,U.x2),y2:Math.max(Q.y2,U.y2)}),eK=({x:Q,y:U,width:Z,height:K})=>({x:Q,y:U,x2:Q+Z,y2:U+K}),Nq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),s7=(Q,U=[0,0])=>{let{x:Z,y:K}=qX(Q)?Q.internals.positionAbsolute:AJ(Q,U);return{x:Z,y:K,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},wq=(Q,U=[0,0])=>{let{x:Z,y:K}=qX(Q)?Q.internals.positionAbsolute:AJ(Q,U);return{x:Z,y:K,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},ZX=(Q,U)=>Nq(Pq(eK(Q),eK(U))),YM=(Q,U,Z,K,X,Y,W,B)=>{let R=Math.max(0,Math.min(Q+Z,X+W)-Math.max(Q,X)),O=Math.max(0,Math.min(U+K,Y+B)-Math.max(U,Y));return Math.ceil(R*O)},BJ=(Q,U)=>YM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),FX=(Q)=>j5(Q.width)&&j5(Q.height)&&j5(Q.x)&&j5(Q.y),j5=(Q)=>!isNaN(Q)&&isFinite(Q),KX=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},t7=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},o7=({x:Q,y:U},[Z,K,X],Y=!1,W=[1,1])=>{let B={x:(Q-Z)/X,y:(U-K)/X};return Y?t7(B,W):B},w8=({x:Q,y:U},[Z,K,X])=>{return{x:Q*X+Z,y:U*X+K}};function r7(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(Z)}if(typeof Q==="string"&&Q.endsWith("%")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(U*Z*0.01)}return console.error(`The padding value "${Q}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function rN(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=r7(Q,Z),X=r7(Q,U);return{top:K,right:X,bottom:K,left:X,x:X*2,y:K*2}}if(typeof Q==="object"){let K=r7(Q.top??Q.y??0,Z),X=r7(Q.bottom??Q.y??0,Z),Y=r7(Q.left??Q.x??0,U),W=r7(Q.right??Q.x??0,U);return{top:K,right:W,bottom:X,left:Y,x:Y+W,y:K+X}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function dN(Q,U,Z,K,X,Y){let{x:W,y:B}=w8(Q,[U,Z,K]),{x:R,y:O}=w8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),T=X-R,L=Y-O;return{left:Math.floor(W),top:Math.floor(B),right:Math.floor(T),bottom:Math.floor(L)}}var zJ=(Q,U,Z,K,X,Y)=>{let W=rN(Y,U,Z),B=(U-W.x)/Q.width,R=(Z-W.y)/Q.height,O=Math.min(B,R),T=i7(O,K,X),L=Q.x+Q.width/2,M=Q.y+Q.height/2,f=U/2-L*T,I=Z/2-M*T,k=dN(Q,f,I,T,U,Z),S={left:Math.min(k.left-W.left,0),top:Math.min(k.top-W.top,0),right:Math.min(k.right-W.right,0),bottom:Math.min(k.bottom-W.bottom,0)};return{x:f-S.left+S.right,y:I-S.top+S.bottom,zoom:T}},n7=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function I8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function V5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function XX(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function HX(Q,U={width:0,height:0},Z,K,X){let Y={...Q},W=K.get(Z);if(W){let B=W.origin||X;Y.x+=W.internals.positionAbsolute.x-(U.width??0)*B[0],Y.y+=W.internals.positionAbsolute.y-(U.height??0)*B[1]}return Y}function YX(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function WM(){let Q,U;return{promise:new Promise((K,X)=>{Q=K,U=X}),resolve:Q,reject:U}}function AM(Q){return{...JX,...Q||{}}}function iN(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let K=U.getBoundingClientRect();if(K.width===0&&K.height===0)return!0;let X=document.querySelector(`.${Q}-flow__attribution`);if(!X||!X.isConnected)return!1;let Y=getComputedStyle(X);if(Y.display==="none")return!1;if(Y.visibility==="hidden"||Y.visibility==="collapse")return!1;if(Y.opacity==="0")return!1;let W=X.getBoundingClientRect();if(W.width===0&&W.height===0)return!1;return!0}var sL=!1;function BM(Q){if(sL)return;sL=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!iN(Q))console.warn(`${U}: It seems like you are hiding the attribution. Please only do this when you are subscribed to ${U} Pro: https://${Q}flow.dev/remove-attr
241
- %cYou can ignore this warning if you are subscribed.`,"font-style: italic;")},1000)}function WX(Q){return Q===null?null:Q?"valid":"invalid"}function WJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:X}){let{x:Y,y:W}=C5(Q),B=o7({x:Y-(X?.left??0),y:W-(X?.top??0)},K),{x:R,y:O}=Z?t7(B,U):B;return{xSnapped:R,ySnapped:O,...B}}var jq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),AX=(Q)=>Q?.getRootNode?.()||window?.document,aN=["INPUT","SELECT","TEXTAREA"];function BX(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return aN.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var zX=(Q)=>("clientX"in Q),C5=(Q,U)=>{let Z=zX(Q),K=Z?Q.clientX:Q.touches?.[0].clientX,X=Z?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:X-(U?.top??0)}},tL=(Q,U,Z,K,X)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((W)=>{let B=W.getBoundingClientRect();return{id:W.getAttribute("data-handleid"),type:Q,nodeId:X,position:W.getAttribute("data-handlepos"),x:(B.left-Z.left)/K,y:(B.top-Z.top)/K,...jq(W)}})};function Cq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,sourceControlX:X,sourceControlY:Y,targetControlX:W,targetControlY:B}){let R=Q*0.125+X*0.375+W*0.375+Z*0.125,O=U*0.125+Y*0.375+B*0.375+K*0.125,T=Math.abs(R-Q),L=Math.abs(O-U);return[R,O,T,L]}function Rq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function oL({pos:Q,x1:U,y1:Z,x2:K,y2:X,c:Y}){switch(Q){case j1.Left:return[U-Rq(U-K,Y),Z];case j1.Right:return[U+Rq(K-U,Y),Z];case j1.Top:return[U,Z-Rq(Z-X,Y)];case j1.Bottom:return[U,Z+Rq(X-Z,Y)]}}function Vq({sourceX:Q,sourceY:U,sourcePosition:Z=j1.Bottom,targetX:K,targetY:X,targetPosition:Y=j1.Top,curvature:W=0.25}){let[B,R]=oL({pos:Z,x1:Q,y1:U,x2:K,y2:X,c:W}),[O,T]=oL({pos:Y,x1:K,y1:X,x2:Q,y2:U,c:W}),[L,M,f,I]=Cq({sourceX:Q,sourceY:U,targetX:K,targetY:X,sourceControlX:B,sourceControlY:R,targetControlX:O,targetControlY:T});return[`M${Q},${U} C${B},${R} ${O},${T} ${K},${X}`,L,M,f,I]}function LX({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let X=Math.abs(Z-Q)/2,Y=Z<Q?Z+X:Z-X,W=Math.abs(K-U)/2,B=K<U?K+W:K-W;return[Y,B,X,W]}function zM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:K=0,elevateOnSelect:X=!1,zIndexMode:Y="basic"}){if(Y==="manual")return K;let W=X&&Z?K+1000:K,B=Math.max(Q.parentId||X&&Q.selected?Q.internals.z:0,U.parentId||X&&U.selected?U.internals.z:0);return W+B}function LM({sourceNode:Q,targetNode:U,width:Z,height:K,transform:X}){let Y=Pq(wq(Q),wq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let W={x:-X[0]/X[2],y:-X[1]/X[2],width:Z/X[2],height:K/X[2]};return BJ(W,Nq(Y))>0}var sN=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,tN=(Q,U)=>{return U.some((Z)=>Z.source===Q.source&&Z.target===Q.target&&(Z.sourceHandle===Q.sourceHandle||!Z.sourceHandle&&!Q.sourceHandle)&&(Z.targetHandle===Q.targetHandle||!Z.targetHandle&&!Q.targetHandle))},MM=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",u2.error006()),U;let K=Z.getEdgeId||sN,X;if(QX(Q))X={...Q};else X={...Q,id:K(Q)};if(tN(X,U))return U;if(X.sourceHandle===null)delete X.sourceHandle;if(X.targetHandle===null)delete X.targetHandle;return U.concat(X)};function Sq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[X,Y,W,B]=LX({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,X,Y,W,B]}var nL={[j1.Left]:{x:-1,y:0},[j1.Right]:{x:1,y:0},[j1.Top]:{x:0,y:-1},[j1.Bottom]:{x:0,y:1}},oN=({source:Q,sourcePosition:U=j1.Bottom,target:Z})=>{if(U===j1.Left||U===j1.Right)return Q.x<Z.x?{x:1,y:0}:{x:-1,y:0};return Q.y<Z.y?{x:0,y:1}:{x:0,y:-1}},eL=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function nN({source:Q,sourcePosition:U=j1.Bottom,target:Z,targetPosition:K=j1.Top,center:X,offset:Y,stepPosition:W}){let B=nL[U],R=nL[K],O={x:Q.x+B.x*Y,y:Q.y+B.y*Y},T={x:Z.x+R.x*Y,y:Z.y+R.y*Y},L=oN({source:O,sourcePosition:U,target:T}),M=L.x!==0?"x":"y",f=L[M],I=[],k,S,D={x:0,y:0},h={x:0,y:0},[,,P,j]=LX({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(B[M]*R[M]===-1){if(M==="x")k=X.x??O.x+(T.x-O.x)*W,S=X.y??(O.y+T.y)/2;else k=X.x??(O.x+T.x)/2,S=X.y??O.y+(T.y-O.y)*W;let p=[{x:k,y:O.y},{x:k,y:T.y}],a=[{x:O.x,y:S},{x:T.x,y:S}];if(B[M]===f)I=M==="x"?p:a;else I=M==="x"?a:p}else{let p=[{x:O.x,y:T.y}],a=[{x:T.x,y:O.y}];if(M==="x")I=B.x===f?a:p;else I=B.y===f?p:a;if(U===K){let y=Math.abs(Q[M]-Z[M]);if(y<=Y){let u=Math.min(Y-1,Y-y);if(B[M]===f)D[M]=(O[M]>Q[M]?-1:1)*u;else h[M]=(T[M]>Z[M]?-1:1)*u}}if(U!==K){let y=M==="x"?"y":"x",u=B[M]===R[y],v=O[y]>T[y],r=O[y]<T[y];if(B[M]===1&&(!u&&v||u&&r)||B[M]!==1&&(!u&&r||u&&v))I=M==="x"?p:a}let t={x:O.x+D.x,y:O.y+D.y},Q1={x:T.x+h.x,y:T.y+h.y},$1=Math.max(Math.abs(t.x-I[0].x),Math.abs(Q1.x-I[0].x)),_1=Math.max(Math.abs(t.y-I[0].y),Math.abs(Q1.y-I[0].y));if($1>=_1)k=(t.x+Q1.x)/2,S=I[0].y;else k=I[0].x,S=(t.y+Q1.y)/2}let b={x:O.x+D.x,y:O.y+D.y},x={x:T.x+h.x,y:T.y+h.y};return[[Q,...b.x!==I[0].x||b.y!==I[0].y?[b]:[],...I,...x.x!==I[I.length-1].x||x.y!==I[I.length-1].y?[x]:[],Z],k,S,P,j]}function eN(Q,U,Z,K){let X=Math.min(eL(Q,U)/2,eL(U,Z)/2,K),{x:Y,y:W}=U;if(Q.x===Y&&Y===Z.x||Q.y===W&&W===Z.y)return`L${Y} ${W}`;if(Q.y===W){let O=Q.x<Z.x?-1:1,T=Q.y<Z.y?1:-1;return`L ${Y+X*O},${W}Q ${Y},${W} ${Y},${W+X*T}`}let B=Q.x<Z.x?1:-1,R=Q.y<Z.y?-1:1;return`L ${Y},${W+X*R}Q ${Y},${W} ${Y+X*B},${W}`}function LJ({sourceX:Q,sourceY:U,sourcePosition:Z=j1.Bottom,targetX:K,targetY:X,targetPosition:Y=j1.Top,borderRadius:W=5,centerX:B,centerY:R,offset:O=20,stepPosition:T=0.5}){let[L,M,f,I,k]=nN({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:X},targetPosition:Y,center:{x:B,y:R},offset:O,stepPosition:T}),S=`M${L[0].x} ${L[0].y}`;for(let D=1;D<L.length-1;D++)S+=eN(L[D-1],L[D],L[D+1],W);return S+=`L${L[L.length-1].x} ${L[L.length-1].y}`,[S,M,f,I,k]}function _M(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function TM(Q){let{sourceNode:U,targetNode:Z}=Q;if(!_M(U)||!_M(Z))return null;let K=U.internals.handleBounds||JM(U.handles),X=Z.internals.handleBounds||JM(Z.handles),Y=$M(K?.source??[],Q.sourceHandle),W=$M(Q.connectionMode===A6.Strict?X?.target??[]:(X?.target??[]).concat(X?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",u2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let B=Y?.position||j1.Bottom,R=W?.position||j1.Top,O=B6(U,Y,B),T=B6(Z,W,R);return{sourceX:O.x,sourceY:O.y,targetX:T.x,targetY:T.y,sourcePosition:B,targetPosition:R}}function JM(Q){if(!Q)return null;let U=[],Z=[];for(let K of Q)if(K.width=K.width??1,K.height=K.height??1,K.type==="source")U.push(K);else if(K.type==="target")Z.push(K);return{source:U,target:Z}}function B6(Q,U,Z=j1.Left,K=!1){let X=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:B}=U??V5(Q);if(K)return{x:X+W/2,y:Y+B/2};switch(U?.position??Z){case j1.Top:return{x:X+W/2,y:Y};case j1.Right:return{x:X+W,y:Y+B/2};case j1.Bottom:return{x:X+W/2,y:Y+B};case j1.Left:return{x:X,y:Y+B/2}}}function $M(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function Dq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((K)=>`${K}=${Q[K]}`).join("&")}`}function RM(Q,{id:U,defaultColor:Z,defaultMarkerStart:K,defaultMarkerEnd:X}){let Y=new Set;return Q.reduce((W,B)=>{return[B.markerStart||K,B.markerEnd||X].forEach((R)=>{if(R&&typeof R==="object"){let O=Dq(R,U);if(!Y.has(O))W.push({id:O,color:R.color||Z,...R}),Y.add(O)}}),W},[]).sort((W,B)=>W.id.localeCompare(B.id))}function OM(Q,U,Z,K,X){let Y=0.5;if(X==="start")Y=0;else if(X==="end")Y=1;let W=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-K],B=[-100*Y,-100];switch(Z){case j1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*Y)*U.zoom+U.y],B=[0,-100*Y];break;case j1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+K,B[1]=0;break;case j1.Left:W=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],B=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${B[0]}%, ${B[1]}%)`}var wM=1000,_j=10,MX={nodeOrigin:[0,0],nodeExtent:a7,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},Jj={...MX,checkEquality:!0};function TX(Q,U){let Z={...Q};for(let K in U)if(U[K]!==void 0)Z[K]=U[K];return Z}function IM(Q,U,Z){let K=TX(MX,Z);for(let X of Q.values())if(X.parentId)OX(X,Q,U,K);else{let Y=AJ(X,K.nodeOrigin),W=I8(X.extent)?X.extent:K.nodeExtent,B=O8(Y,W,V5(X));X.internals.positionAbsolute=B}}function $j(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],K=[];for(let X of Q.handles){let Y={id:X.id,width:X.width??1,height:X.height??1,nodeId:Q.id,x:X.x,y:X.y,position:X.position,type:X.type};if(X.type==="source")Z.push(Y);else if(X.type==="target")K.push(Y)}return{source:Z,target:K}}function RX(Q){return Q==="manual"}function kq(Q,U,Z,K={}){let X=TX(Jj,K),Y={i:0},W=new Map(U),B=X?.elevateNodesOnSelect&&!RX(X.zIndexMode)?wM:0,R=Q.length>0,O=!1;U.clear(),Z.clear();for(let T of Q){let L=W.get(T.id);if(X.checkEquality&&T===L?.internals.userNode)U.set(T.id,L);else{let M=AJ(T,X.nodeOrigin),f=I8(T.extent)?T.extent:X.nodeExtent,I=O8(M,f,V5(T));L={...X.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:I,handleBounds:$j(T,L),z:fM(T,B,X.zIndexMode),userNode:T}},U.set(T.id,L)}if((L.measured===void 0||L.measured.width===void 0||L.measured.height===void 0)&&!L.hidden)R=!1;if(T.parentId)OX(L,U,Z,K,Y);O||=T.selected??!1}return{nodesInitialized:R,hasSelectedNodes:O}}function Qj(Q,U){if(!Q.parentId)return;let Z=U.get(Q.parentId);if(Z)Z.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function OX(Q,U,Z,K,X){let{elevateNodesOnSelect:Y,nodeOrigin:W,nodeExtent:B,zIndexMode:R}=TX(MX,K),O=Q.parentId,T=U.get(O);if(!T){console.warn(`Parent node ${O} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(Qj(Q,Z),X&&!T.parentId&&T.internals.rootParentIndex===void 0&&R==="auto")T.internals.rootParentIndex=++X.i,T.internals.z=T.internals.z+X.i*_j;if(X&&T.internals.rootParentIndex!==void 0)X.i=T.internals.rootParentIndex;let L=Y&&!RX(R)?wM:0,{x:M,y:f,z:I}=qj(Q,T,W,B,L,R),{positionAbsolute:k}=Q.internals,S=M!==k.x||f!==k.y;if(S||I!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:S?{x:M,y:f}:k,z:I}})}function fM(Q,U,Z){let K=j5(Q.zIndex)?Q.zIndex:0;if(RX(Z))return K;return K+(Q.selected?U:0)}function qj(Q,U,Z,K,X,Y){let{x:W,y:B}=U.internals.positionAbsolute,R=V5(Q),O=AJ(Q,Z),T=I8(Q.extent)?O8(O,Q.extent,R):O,L=O8({x:W+T.x,y:B+T.y},K,R);if(Q.extent==="parent")L=HM(L,R,U);let M=fM(Q,X,Y),f=U.internals.z??0;return{x:L.x,y:L.y,z:f>=M?f+1:M}}function yq(Q,U,Z,K=[0,0]){let X=[],Y=new Map;for(let W of Q){let B=U.get(W.parentId);if(!B)continue;let R=Y.get(W.parentId)?.expandedRect??s7(B),O=ZX(R,W.rect);Y.set(W.parentId,{expandedRect:O,parent:B})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:B},R)=>{let O=B.internals.positionAbsolute,T=V5(B),L=B.origin??K,M=W.x<O.x?Math.round(Math.abs(O.x-W.x)):0,f=W.y<O.y?Math.round(Math.abs(O.y-W.y)):0,I=Math.max(T.width,Math.round(W.width)),k=Math.max(T.height,Math.round(W.height)),S=(I-T.width)*L[0],D=(k-T.height)*L[1];if(M>0||f>0||S||D)X.push({id:R,type:"position",position:{x:B.position.x-M+S,y:B.position.y-f+D}}),Z.get(R)?.forEach((h)=>{if(!Q.some((P)=>P.id===h.id))X.push({id:h.id,type:"position",position:{x:h.position.x+M,y:h.position.y+f}})});if(T.width<W.width||T.height<W.height||M||f)X.push({id:R,type:"dimensions",setAttributes:!0,dimensions:{width:I+(M?L[0]*M-S:0),height:k+(f?L[1]*f-D:0)}})});return X}function PM(Q,U,Z,K,X,Y,W){let B=K?.querySelector(".xyflow__viewport"),R=!1;if(!B)return{changes:[],updatedInternals:R};let O=[],T=window.getComputedStyle(B),{m22:L}=new window.DOMMatrixReadOnly(T.transform),M=[];for(let f of Q.values()){let I=U.get(f.id);if(!I)continue;if(I.hidden){U.set(I.id,{...I,internals:{...I.internals,handleBounds:void 0}}),R=!0;continue}let k=jq(f.nodeElement),S=I.measured.width!==k.width||I.measured.height!==k.height;if(!!(k.width&&k.height&&(S||!I.internals.handleBounds||f.force))){let h=f.nodeElement.getBoundingClientRect(),P=I8(I.extent)?I.extent:Y,{positionAbsolute:j}=I.internals;if(I.parentId&&I.extent==="parent"){let x=U.get(I.parentId);if(x)j=HM(j,k,x)}else if(P)j=O8(j,P,k);let b={...I,measured:k,internals:{...I.internals,positionAbsolute:j,handleBounds:{source:tL("source",f.nodeElement,h,L,I.id),target:tL("target",f.nodeElement,h,L,I.id)}}};if(U.set(I.id,b),I.parentId)OX(b,U,Z,{nodeOrigin:X,zIndexMode:W});if(R=!0,S){if(O.push({id:I.id,type:"dimensions",dimensions:k}),I.expandParent&&I.parentId)M.push({id:I.id,parentId:I.parentId,rect:s7(b,X)})}}}if(M.length>0){let f=yq(M,U,Z,X);O.push(...f)}return{changes:O,updatedInternals:R}}async function NM({delta:Q,panZoom:U,transform:Z,translateExtent:K,width:X,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let W=await U.setViewportConstrained({x:Z[0]+Q.x,y:Z[1]+Q.y,zoom:Z[2]},[[0,0],[X,Y]],K);return!!W&&(W.x!==Z[0]||W.y!==Z[1]||W.k!==Z[2])}function QM(Q,U,Z,K,X,Y){let W=X,B=K.get(W)||new Map;K.set(W,B.set(Z,U)),W=`${X}-${Q}`;let R=K.get(W)||new Map;if(K.set(W,R.set(Z,U)),Y){W=`${X}-${Q}-${Y}`;let O=K.get(W)||new Map;K.set(W,O.set(Z,U))}}function wX(Q,U,Z){Q.clear(),U.clear();for(let K of Z){let{source:X,target:Y,sourceHandle:W=null,targetHandle:B=null}=K,R={edgeId:K.id,source:X,target:Y,sourceHandle:W,targetHandle:B},O=`${X}-${W}--${Y}-${B}`,T=`${Y}-${B}--${X}-${W}`;QM("source",R,T,Q,X,W),QM("target",R,O,Q,Y,B),U.set(K.id,K)}}function jM(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return jM(Z,U)}function qM(Q,U,Z){let K=Q;do{if(K?.matches?.(U))return!0;if(K===Z)return!1;K=K?.parentElement}while(K);return!1}function Uj(Q,U,Z,K){let X=new Map;for(let[Y,W]of Q)if((W.selected||W.id===K)&&(!W.parentId||!jM(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let B=Q.get(Y);if(B)X.set(Y,{id:Y,position:B.position||{x:0,y:0},distance:{x:Z.x-B.internals.positionAbsolute.x,y:Z.y-B.internals.positionAbsolute.y},extent:B.extent,parentId:B.parentId,origin:B.origin,expandParent:B.expandParent,internals:{positionAbsolute:B.internals.positionAbsolute||{x:0,y:0}},measured:{width:B.measured.width??0,height:B.measured.height??0}})}return X}function tK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!0}){let X=[];for(let[W,B]of U){let R=Z.get(W)?.internals.userNode;if(R)X.push({...R,position:B.position,dragging:K})}if(!Q)return[X[0],X];let Y=Z.get(Q)?.internals.userNode;return[!Y?X[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:K},X]}function Gj({dragItems:Q,snapGrid:U,x:Z,y:K}){let X=Q.values().next().value;if(!X)return null;let Y={x:Z-X.distance.x,y:K-X.distance.y},W=t7(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function CM({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,onDragStop:X}){let Y={x:null,y:null},W=0,B=new Map,R=!1,O={x:0,y:0},T=null,L=!1,M=null,f=!1,I=!1,k=null;function S({noDragClassName:h,handleSelector:P,domNode:j,isSelectable:b,nodeId:x,nodeClickDistance:E=0}){M=o0(j);function p({x:$1,y:_1}){let{nodeLookup:y,nodeExtent:u,snapGrid:v,snapToGrid:r,nodeOrigin:n,onNodeDrag:o,onSelectionDrag:V,onError:m,updateNodePositions:J1}=U();Y={x:$1,y:_1};let X1=!1,W1=B.size>1,O1=W1&&u?eK(f8(B)):null,z1=W1&&r?Gj({dragItems:B,snapGrid:v,x:$1,y:_1}):null;for(let[I1,K1]of B){if(!y.has(I1))continue;let f1={x:$1-K1.distance.x,y:_1-K1.distance.y};if(r)f1=z1?{x:Math.round(f1.x+z1.x),y:Math.round(f1.y+z1.y)}:t7(f1,v);let l1=null;if(W1&&u&&!K1.extent&&O1){let{positionAbsolute:y1}=K1.internals,c1=y1.x-O1.x+u[0][0],v1=y1.x+K1.measured.width-O1.x2+u[1][0],V1=y1.y-O1.y+u[0][1],S0=y1.y+K1.measured.height-O1.y2+u[1][1];l1=[[c1,V1],[v1,S0]]}let{position:Y1,positionAbsolute:C1}=GX({nodeId:I1,nextPosition:f1,nodeLookup:y,nodeExtent:l1?l1:u,nodeOrigin:n,onError:m});X1=X1||K1.position.x!==Y1.x||K1.position.y!==Y1.y,K1.position=Y1,K1.internals.positionAbsolute=C1}if(I=I||X1,!X1)return;if(J1(B,!0),k&&(K||o||!x&&V)){let[I1,K1]=tK({nodeId:x,dragItems:B,nodeLookup:y});if(K?.(k,B,I1,K1),o?.(k,I1,K1),!x)V?.(k,K1)}}async function a(){if(!T)return;let{transform:$1,panBy:_1,autoPanSpeed:y,autoPanOnNodeDrag:u}=U();if(!u){R=!1,cancelAnimationFrame(W);return}let[v,r]=fq(O,T,y);if(v!==0||r!==0){if(Y.x=(Y.x??0)-v/$1[2],Y.y=(Y.y??0)-r/$1[2],await _1({x:v,y:r}))p(Y)}W=requestAnimationFrame(a)}function t($1){let{nodeLookup:_1,multiSelectionActive:y,nodesDraggable:u,transform:v,snapGrid:r,snapToGrid:n,selectNodesOnDrag:o,onNodeDragStart:V,onSelectionDragStart:m,unselectNodesAndEdges:J1}=U();if(L=!0,(!o||!b)&&!y&&x){if(!_1.get(x)?.selected)J1()}if(b&&o&&x)Q?.(x);let X1=WJ($1.sourceEvent,{transform:v,snapGrid:r,snapToGrid:n,containerBounds:T});if(Y=X1,B=Uj(_1,u,X1,x),B.size>0&&(Z||V||!x&&m)){let[W1,O1]=tK({nodeId:x,dragItems:B,nodeLookup:_1});if(Z?.($1.sourceEvent,B,W1,O1),V?.($1.sourceEvent,W1,O1),!x)m?.($1.sourceEvent,O1)}}let Q1=a_().clickDistance(E).on("start",($1)=>{let{domNode:_1,nodeDragThreshold:y,transform:u,snapGrid:v,snapToGrid:r}=U();if(T=_1?.getBoundingClientRect()||null,f=!1,I=!1,k=$1.sourceEvent,y===0)t($1);Y=WJ($1.sourceEvent,{transform:u,snapGrid:v,snapToGrid:r,containerBounds:T}),O=C5($1.sourceEvent,T)}).on("drag",($1)=>{let{autoPanOnNodeDrag:_1,transform:y,snapGrid:u,snapToGrid:v,nodeDragThreshold:r,nodeLookup:n}=U(),o=WJ($1.sourceEvent,{transform:y,snapGrid:u,snapToGrid:v,containerBounds:T});if(k=$1.sourceEvent,$1.sourceEvent.type==="touchmove"&&$1.sourceEvent.touches.length>1||x&&!n.has(x))f=!0;if(f)return;if(!R&&_1&&L)R=!0,a();if(!L){let V=C5($1.sourceEvent,T),m=V.x-O.x,J1=V.y-O.y;if(Math.sqrt(m*m+J1*J1)>r)t($1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&B&&L)O=C5($1.sourceEvent,T),p(o)}).on("end",($1)=>{if(!L||f){if(f&&B.size>0)U().updateNodePositions(B,!1);return}if(R=!1,L=!1,cancelAnimationFrame(W),B.size>0){let{nodeLookup:_1,updateNodePositions:y,onNodeDragStop:u,onSelectionDragStop:v}=U();if(I)y(B,!1),I=!1;if(X||u||!x&&v){let[r,n]=tK({nodeId:x,dragItems:B,nodeLookup:_1,dragging:!1});if(X?.($1.sourceEvent,B,r,n),u?.($1.sourceEvent,r,n),!x)v?.($1.sourceEvent,n)}}}).filter(($1)=>{let _1=$1.target;return!$1.button&&(!h||!qM(_1,`.${h}`,j))&&(!P||qM(_1,P,j))});M.call(Q1)}function D(){M?.on(".drag",null)}return{update:S,destroy:D}}function Zj(Q,U,Z){let K=[],X={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(BJ(X,s7(Y))>0)K.push(Y);return K}var Fj=250;function Kj(Q,U,Z,K){let X=[],Y=1/0,W=Zj(Q,Z,U+Fj);for(let B of W){let R=[...B.internals.handleBounds?.source??[],...B.internals.handleBounds?.target??[]];for(let O of R){if(K.nodeId===O.nodeId&&K.type===O.type&&K.id===O.id)continue;let{x:T,y:L}=B6(B,O,O.position,!0),M=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(L-Q.y,2));if(M>U)continue;if(M<Y)X=[{...O,x:T,y:L}],Y=M;else if(M===Y)X.push({...O,x:T,y:L})}}if(!X.length)return null;if(X.length>1){let B=K.type==="source"?"target":"source";return X.find((R)=>R.type===B)??X[0]}return X[0]}function VM(Q,U,Z,K,X,Y=!1){let W=K.get(Q);if(!W)return null;let B=X==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],R=(Z?B?.find((O)=>O.id===Z):B?.[0])??null;return R&&Y?{...R,...B6(W,R,R.position,!0)}:R}function SM(Q,U){if(Q)return Q;else if(U?.classList.contains("target"))return"target";else if(U?.classList.contains("source"))return"source";return null}function Xj(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var DM=()=>!0;function Hj(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:X,edgeUpdaterType:Y,isTarget:W,domNode:B,nodeLookup:R,lib:O,autoPanOnConnect:T,flowId:L,panBy:M,cancelConnection:f,onConnectStart:I,onConnect:k,onConnectEnd:S,isValidConnection:D=DM,onReconnectEnd:h,updateConnection:P,getTransform:j,getFromHandle:b,autoPanSpeed:x,dragThreshold:E=1,handleDomNode:p}){let a=AX(Q.target),t=0,Q1,{x:$1,y:_1}=C5(Q),y=SM(Y,p),u=B?.getBoundingClientRect(),v=!1;if(!u||!y)return;let r=VM(X,y,K,R,U);if(!r)return;let n=C5(Q,u),o=!1,V=null,m=!1,J1=null;function X1(){if(!T||!u)return;let[Y1,C1]=fq(n,u,x);M({x:Y1,y:C1}),t=requestAnimationFrame(X1)}let W1={...r,nodeId:X,type:y,position:r.position},O1=R.get(X),I1={inProgress:!0,isValid:null,from:B6(O1,W1,j1.Left,!0),fromHandle:W1,fromPosition:W1.position,fromNode:O1,to:n,toHandle:null,toPosition:iL[W1.position],toNode:null,pointer:n};function K1(){v=!0,P(I1),I?.(Q,{nodeId:X,handleId:K,handleType:y})}if(E===0)K1();function f1(Y1){if(!v){let{x:S0,y:E1}=C5(Y1),G2=S0-$1,_0=E1-_1;if(!(G2*G2+_0*_0>E*E))return;K1()}if(!b()||!W1){l1(Y1);return}let C1=j();if(n=C5(Y1,u),Q1=Kj(o7(n,C1,!1,[1,1]),Z,R,W1),!o)X1(),o=!0;let y1=kM(Y1,{handle:Q1,connectionMode:U,fromNodeId:X,fromHandleId:K,fromType:W?"target":"source",isValidConnection:D,doc:a,lib:O,flowId:L,nodeLookup:R});J1=y1.handleDomNode,V=y1.connection,m=Xj(!!Q1,y1.isValid);let c1=R.get(X),v1=c1?B6(c1,W1,j1.Left,!0):I1.from,V1={...I1,from:v1,isValid:m,to:y1.toHandle&&m?w8({x:y1.toHandle.x,y:y1.toHandle.y},C1):n,toHandle:y1.toHandle,toPosition:m&&y1.toHandle?y1.toHandle.position:iL[W1.position],toNode:y1.toHandle?R.get(y1.toHandle.nodeId):null,pointer:n};P(V1),I1=V1}function l1(Y1){if("touches"in Y1&&Y1.touches.length>0)return;if(v){if((Q1||J1)&&V&&m)k?.(V);let{inProgress:C1,...y1}=I1,c1={...y1,toPosition:I1.toHandle?I1.toPosition:null};if(S?.(Y1,c1),Y)h?.(Y1,c1)}f(),cancelAnimationFrame(t),o=!1,m=!1,V=null,J1=null,a.removeEventListener("mousemove",f1),a.removeEventListener("mouseup",l1),a.removeEventListener("touchmove",f1),a.removeEventListener("touchend",l1)}a.addEventListener("mousemove",f1),a.addEventListener("mouseup",l1),a.addEventListener("touchmove",f1),a.addEventListener("touchend",l1)}function kM(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:X,fromType:Y,doc:W,lib:B,flowId:R,isValidConnection:O=DM,nodeLookup:T}){let L=Y==="target",M=U?W.querySelector(`.${B}-flow__handle[data-id="${R}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:f,y:I}=C5(Q),k=W.elementFromPoint(f,I),S=k?.classList.contains(`${B}-flow__handle`)?k:M,D={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let h=SM(void 0,S),P=S.getAttribute("data-nodeid"),j=S.getAttribute("data-handleid"),b=S.classList.contains("connectable"),x=S.classList.contains("connectableend");if(!P||!h)return D;let E={source:L?P:K,sourceHandle:L?j:X,target:L?K:P,targetHandle:L?X:j};D.connection=E;let a=b&&x&&(Z===A6.Strict?L&&h==="source"||!L&&h==="target":P!==K||j!==X);D.isValid=a&&O(E),D.toHandle=VM(P,h,j,T,Z,!0)}return D}var vq={onPointerDown:Hj,isValid:kM};function yM({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let X=o0(Q);function Y({translateExtent:B,width:R,height:O,zoomStep:T=1,pannable:L=!0,zoomable:M=!0,inversePan:f=!1}){let I=(P)=>{if(P.sourceEvent.type!=="wheel"||!U)return;let j=Z(),b=P.sourceEvent.ctrlKey&&n7()?10:1,x=-P.sourceEvent.deltaY*(P.sourceEvent.deltaMode===1?0.05:P.sourceEvent.deltaMode?1:0.002)*T,E=j[2]*Math.pow(2,x*b);U.scaleTo(E)},k=[0,0],S=(P)=>{if(P.sourceEvent.type==="mousedown"||P.sourceEvent.type==="touchstart")k=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY]},D=(P)=>{let j=Z();if(P.sourceEvent.type!=="mousemove"&&P.sourceEvent.type!=="touchmove"||!U)return;let b=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY],x=[b[0]-k[0],b[1]-k[1]];k=b;let E=K()*Math.max(j[2],Math.log(j[2]))*(f?-1:1),p={x:j[0]-x[0]*E,y:j[1]-x[1]*E},a=[[0,0],[R,O]];U.setViewportConstrained({x:p.x,y:p.y,zoom:j[2]},a,B)},h=YJ().on("start",S).on("zoom",L?D:null).on("zoom.wheel",M?I:null);X.call(h,{})}function W(){X.on("zoom",null)}return{update:Y,destroy:W,pointer:O2}}var Eq=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),oK=({x:Q,y:U,zoom:Z})=>M8.translate(Q,U).scale(Z),W6=(Q,U)=>Q.target.closest(`.${U}`),vM=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),Yj=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,nK=(Q,U=0,Z=Yj,K=()=>{})=>{let X=typeof U==="number"&&U>0;if(!X)K();return X?Q.transition().duration(U).ease(Z).on("end",K):Q},EM=(Q)=>{let U=Q.ctrlKey&&n7()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function Wj({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:X,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:B,onPanZoom:R,onPanZoomEnd:O}){return(T)=>{if(W6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let L=Z.property("__zoom").k||1;if(T.ctrlKey&&W){let S=O2(T),D=EM(T),h=L*Math.pow(2,D);K.scaleTo(Z,h,S,T);return}let M=T.deltaMode===1?20:1,f=X===W3.Vertical?0:T.deltaX*M,I=X===W3.Horizontal?0:T.deltaY*M;if(!n7()&&T.shiftKey&&X!==W3.Vertical)f=T.deltaY*M,I=0;K.translateBy(Z,-(f/L)*Y,-(I/L)*Y,{internal:!0});let k=Eq(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,B?.(T,k);else R?.(T,k);Q.panScrollTimeout=setTimeout(()=>{O?.(T,k),Q.isPanScrolling=!1},150)}}function Aj({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,X){let Y=K.type==="wheel",W=!U&&Y&&!K.ctrlKey,B=W6(K,Q);if(K.ctrlKey&&Y&&B)K.preventDefault();if(W||B)return null;K.preventDefault(),Z.call(this,K,X)}}function Bj({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let X=Eq(K.transform);if(Q.mouseButton=K.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=X,K.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(K.sourceEvent,X)}}function zj({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:X}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&vM(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)K([Y.transform.x,Y.transform.y,Y.transform.k]);if(X&&!Y.sourceEvent?.internal)X?.(Y.sourceEvent,Eq(Y.transform))}}function Lj({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:X,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&vM(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),X){let B=Eq(W.transform);Q.prevViewport=B,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{X?.(W.sourceEvent,B)},Z?150:0)}}}function Mj({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:X,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:B,noWheelClassName:R,noPanClassName:O,lib:T,connectionInProgress:L}){return(M)=>{let f=U||Z,I=K&&M.ctrlKey,k=M.type==="wheel";if(M.button===1&&M.type==="mousedown"&&(W6(M,`${T}-flow__node`)||W6(M,`${T}-flow__edge`)||W6(M,`${T}-flow__selection`)||W6(M,`${T}-flow__nodesselection`)))return!0;if(!X&&!f&&!Y&&!W&&!K)return!1;if(B)return!1;if(L&&!k)return!1;if(W6(M,R)&&k)return!1;if(W6(M,O)&&(!k||Y&&k&&!U))return!1;if(!K&&M.ctrlKey&&k)return!1;if(!K&&M.type==="touchstart"&&M.touches?.length>1)return M.preventDefault(),!1;if(!f&&!Y&&!I&&k)return!1;if(!X&&(M.type==="mousedown"||M.type==="touchstart"))return!1;if(Array.isArray(X)&&!X.includes(M.button)&&M.type==="mousedown")return!1;let S=Array.isArray(X)&&X.includes(M.button)||!M.button||M.button<=1;return(!M.ctrlKey||k||Q)&&S}}function bM({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,viewport:X,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:B,onDraggingChange:R}){let O={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},T=Q.getBoundingClientRect(),L=[[0,0],[T.width,T.height]];(typeof ResizeObserver<"u"?new ResizeObserver((_1)=>{let y=_1[0];if(y)L=[[0,0],[y.contentRect.width,y.contentRect.height]]}):null)?.observe(Q);let f=YJ().extent(()=>L).scaleExtent([U,Z]).translateExtent(K),I=o0(Q).call(f);j({x:X.x,y:X.y,zoom:i7(X.zoom,U,Z)},[[0,0],[T.width,T.height]],K);let k=I.on("wheel.zoom"),S=I.on("dblclick.zoom");f.wheelDelta(EM);async function D(_1,y){if(I)return new Promise((u)=>{f?.interpolate(y?.interpolate==="linear"?S4:z8).transform(nK(I,y?.duration,y?.ease,()=>u(!0)),_1)});return!1}function h({noWheelClassName:_1,noPanClassName:y,onPaneContextMenu:u,userSelectionActive:v,panOnScroll:r,panOnDrag:n,panOnScrollMode:o,panOnScrollSpeed:V,preventScrolling:m,zoomOnPinch:J1,zoomOnScroll:X1,zoomOnDoubleClick:W1,panActivationKeyPressed:O1=!1,zoomActivationKeyPressed:z1,lib:I1,onTransformChange:K1,connectionInProgress:f1,paneClickDistance:l1,selectionOnDrag:Y1}){if(v&&!O.isZoomingOrPanning)P();let C1=r&&!z1&&!v;f.clickDistance(Y1?1/0:!j5(l1)||l1<0?0:l1);let y1=C1?Wj({zoomPanValues:O,noWheelClassName:_1,d3Selection:I,d3Zoom:f,panOnScrollMode:o,panOnScrollSpeed:V,zoomOnPinch:J1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:B}):Aj({noWheelClassName:_1,preventScrolling:m,d3ZoomHandler:k});I.on("wheel.zoom",y1,{passive:!1});let c1=Bj({zoomPanValues:O,onDraggingChange:R,onPanZoomStart:W});f.on("start",c1);let v1=zj({zoomPanValues:O,panOnDrag:n,onPaneContextMenu:!!u,onPanZoom:Y,onTransformChange:K1});f.on("zoom",v1);let V1=Lj({zoomPanValues:O,panOnDrag:n,panOnScroll:r,onPaneContextMenu:u,onPanZoomEnd:B,onDraggingChange:R});f.on("end",V1);let S0=Mj({panActivationKeyPressed:O1,zoomActivationKeyPressed:z1,panOnDrag:n,zoomOnScroll:X1,panOnScroll:r,zoomOnDoubleClick:W1,zoomOnPinch:J1,userSelectionActive:v,noPanClassName:y,noWheelClassName:_1,lib:I1,connectionInProgress:f1});if(f.filter(S0),W1)I.on("dblclick.zoom",S);else I.on("dblclick.zoom",null)}function P(){f.on("zoom",null)}async function j(_1,y,u){let v=oK(_1),r=f?.constrain()(v,y,u);if(r)await D(r);return r}async function b(_1,y){let u=oK(_1);return await D(u,y),u}function x(_1){if(I){let y=oK(_1),u=I.property("__zoom");if(u.k!==_1.zoom||u.x!==_1.x||u.y!==_1.y)f?.transform(I,y,null,{sync:!0})}}function E(){let _1=I?HJ(I.node()):{x:0,y:0,k:1};return{x:_1.x,y:_1.y,zoom:_1.k}}async function p(_1,y){if(I)return new Promise((u)=>{f?.interpolate(y?.interpolate==="linear"?S4:z8).scaleTo(nK(I,y?.duration,y?.ease,()=>u(!0)),_1)});return!1}async function a(_1,y){if(I)return new Promise((u)=>{f?.interpolate(y?.interpolate==="linear"?S4:z8).scaleBy(nK(I,y?.duration,y?.ease,()=>u(!0)),_1)});return!1}function t(_1){f?.scaleExtent(_1)}function Q1(_1){f?.translateExtent(_1)}function $1(_1){let y=!j5(_1)||_1<0?0:_1;f?.clickDistance(y)}return{update:h,destroy:P,setViewport:b,setViewportConstrained:j,getViewport:E,scaleTo:p,scaleBy:a,setScaleExtent:t,setTranslateExtent:Q1,syncViewport:x,setClickDistance:$1}}var z6;(function(Q){Q.Line="line",Q.Handle="handle"})(z6||(z6={}));function Tj({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:X,affectsY:Y}){let W=Q-U,B=Z-K,R=[W>0?1:W<0?-1:0,B>0?1:B<0?-1:0];if(W&&X)R[0]=R[0]*-1;if(B&&Y)R[1]=R[1]*-1;return R}function UM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),X=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:K,affectsY:X}}function H6(Q,U){return Math.max(0,U-Q)}function Y6(Q,U){return Math.max(0,Q-U)}function Oq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function GM(Q,U){return Q?!U:U}function Rj(Q,U,Z,K,X,Y,W,B){let{affectsX:R,affectsY:O}=U,{isHorizontal:T,isVertical:L}=U,M=T&&L,{xSnapped:f,ySnapped:I}=Z,{minWidth:k,maxWidth:S,minHeight:D,maxHeight:h}=K,{x:P,y:j,width:b,height:x,aspectRatio:E}=Q,p=Math.floor(T?f-Q.pointerX:0),a=Math.floor(L?I-Q.pointerY:0),t=b+(R?-p:p),Q1=x+(O?-a:a),$1=-Y[0]*b,_1=-Y[1]*x,y=Oq(t,k,S),u=Oq(Q1,D,h);if(W){let n=0,o=0;if(R&&p<0)n=H6(P+p+$1,W[0][0]);else if(!R&&p>0)n=Y6(P+t+$1,W[1][0]);if(O&&a<0)o=H6(j+a+_1,W[0][1]);else if(!O&&a>0)o=Y6(j+Q1+_1,W[1][1]);y=Math.max(y,n),u=Math.max(u,o)}if(B){let n=0,o=0;if(R&&p>0)n=Y6(P+p,B[0][0]);else if(!R&&p<0)n=H6(P+t,B[1][0]);if(O&&a>0)o=Y6(j+a,B[0][1]);else if(!O&&a<0)o=H6(j+Q1,B[1][1]);y=Math.max(y,n),u=Math.max(u,o)}if(X){if(T){let n=Oq(t/E,D,h)*E;if(y=Math.max(y,n),W){let o=0;if(!R&&!O||R&&!O&&M)o=Y6(j+_1+t/E,W[1][1])*E;else o=H6(j+_1+(R?p:-p)/E,W[0][1])*E;y=Math.max(y,o)}if(B){let o=0;if(!R&&!O||R&&!O&&M)o=H6(j+t/E,B[1][1])*E;else o=Y6(j+(R?p:-p)/E,B[0][1])*E;y=Math.max(y,o)}}if(L){let n=Oq(Q1*E,k,S)/E;if(u=Math.max(u,n),W){let o=0;if(!R&&!O||O&&!R&&M)o=Y6(P+Q1*E+$1,W[1][0])/E;else o=H6(P+(O?a:-a)*E+$1,W[0][0])/E;u=Math.max(u,o)}if(B){let o=0;if(!R&&!O||O&&!R&&M)o=H6(P+Q1*E,B[1][0])/E;else o=Y6(P+(O?a:-a)*E,B[0][0])/E;u=Math.max(u,o)}}}if(a=a+(a<0?u:-u),p=p+(p<0?y:-y),X)if(M)if(t>Q1*E)a=(GM(R,O)?-p:p)/E;else p=(GM(R,O)?-a:a)*E;else if(T)a=p/E,O=R;else p=a*E,R=O;let v=R?P+p:P,r=O?j+a:j;return{width:b+(R?-p:p),height:x+(O?-a:a),x:Y[0]*p*(!R?1:-1)+v,y:Y[1]*a*(!O?1:-1)+r}}var xM={width:0,height:0,x:0,y:0},Oj={...xM,pointerX:0,pointerY:0,aspectRatio:1};function wj(Q,U,Z){let K=U.position.x+Q.position.x,X=U.position.y+Q.position.y,Y=Q.measured.width??0,W=Q.measured.height??0,B=Z[0]*Y,R=Z[1]*W;return[[K-B,X-R],[K+Y-B,X+W-R]]}function uM({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:X}){let Y=o0(Q),W={controlDirection:UM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function B({controlPosition:O,boundaries:T,keepAspectRatio:L,resizeDirection:M,onResizeStart:f,onResize:I,onResizeEnd:k,shouldResize:S}){let D={...xM},h={...Oj};W={boundaries:T,resizeDirection:M,keepAspectRatio:L,controlDirection:UM(O)};let P=void 0,j=null,b=[],x=void 0,E=void 0,p=void 0,a=a_().on("start",(t)=>{let{nodeLookup:Q1,transform:$1,snapGrid:_1,snapToGrid:y,nodeOrigin:u,paneDomNode:v}=Z();if(P=Q1.get(U),!P)return;j=v?.getBoundingClientRect()??null;let{xSnapped:r,ySnapped:n}=WJ(t.sourceEvent,{transform:$1,snapGrid:_1,snapToGrid:y,containerBounds:j});if(D={width:P.measured.width??0,height:P.measured.height??0,x:P.position.x??0,y:P.position.y??0},h={...D,pointerX:r,pointerY:n,aspectRatio:D.width/D.height},x=void 0,E=I8(P.extent)?P.extent:void 0,P.parentId&&(P.extent==="parent"||P.expandParent))x=Q1.get(P.parentId);if(x&&P.extent==="parent")E=[[0,0],[x.measured.width,x.measured.height]];b=[],p=void 0;for(let[o,V]of Q1)if(V.parentId===U){if(b.push({id:o,position:{...V.position},extent:V.extent}),V.extent==="parent"||V.expandParent){let m=wj(V,P,V.origin??u);if(p)p=[[Math.min(m[0][0],p[0][0]),Math.min(m[0][1],p[0][1])],[Math.max(m[1][0],p[1][0]),Math.max(m[1][1],p[1][1])]];else p=m}}f?.(t,{...D})}).on("drag",(t)=>{let{transform:Q1,snapGrid:$1,snapToGrid:_1,nodeOrigin:y}=Z(),u=WJ(t.sourceEvent,{transform:Q1,snapGrid:$1,snapToGrid:_1,containerBounds:j}),v=[];if(!P)return;let{x:r,y:n,width:o,height:V}=D,m={},J1=P.origin??y,{width:X1,height:W1,x:O1,y:z1}=Rj(h,W.controlDirection,u,W.boundaries,W.keepAspectRatio,J1,E,p),I1=X1!==o,K1=W1!==V,f1=O1!==r&&I1,l1=z1!==n&&K1;if(!f1&&!l1&&!I1&&!K1)return;let Y1={prevValues:{...D},startX:h.x,startY:h.y,childNodes:b.map((v1)=>({...v1,position:{...v1.position}}))};if(f1||l1||J1[0]===1||J1[1]===1){if(m.x=f1?O1:D.x,m.y=l1?z1:D.y,D.x=m.x,D.y=m.y,b.length>0){let v1=O1-r,V1=z1-n;for(let S0 of b)S0.position={x:S0.position.x-v1+J1[0]*(X1-o),y:S0.position.y-V1+J1[1]*(W1-V)},v.push(S0)}}if(I1||K1)m.width=I1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?X1:D.width,m.height=K1&&(!W.resizeDirection||W.resizeDirection==="vertical")?W1:D.height,D.width=m.width,D.height=m.height;if(x&&P.expandParent){let v1=J1[0]*(m.width??0);if(m.x&&m.x<v1)D.x=v1,h.x=h.x-(m.x-v1);let V1=J1[1]*(m.height??0);if(m.y&&m.y<V1)D.y=V1,h.y=h.y-(m.y-V1)}let C1=Tj({width:D.width,prevWidth:o,height:D.height,prevHeight:V,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),y1={...D,direction:C1};if(S?.(t,y1)===!1){D=Y1.prevValues,h.x=Y1.startX,h.y=Y1.startY,b.forEach((v1,V1)=>{v1.position=Y1.childNodes[V1].position});return}I?.(t,y1),K(m,v)}).on("end",(t)=>{k?.(t,{...D}),X?.({...D})});Y.call(a)}function R(){Y.on(".drag",null)}return{update:B,destroy:R}}var lM=b0(l5(),1),rM=b0(mM(),1);var gM=(Q)=>{let U,Z=new Set,K=(T,L)=>{let M=typeof T==="function"?T(U):T;if(!Object.is(M,U)){let f=U;U=(L!=null?L:typeof M!=="object"||M===null)?M:Object.assign({},U,M),Z.forEach((I)=>I(U,f))}},X=()=>U,R={setState:K,getState:X,getInitialState:()=>O,subscribe:(T)=>{return Z.add(T),()=>Z.delete(T)},destroy:()=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");Z.clear()}},O=U=Q(K,X,R);return R},pM=(Q)=>Q?gM(Q):gM;var{useDebugValue:Pj}=lM.default,{useSyncExternalStoreWithSelector:Nj}=rM.default,jj=(Q)=>Q;function IX(Q,U=jj,Z){let K=Nj(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return Pj(K),K}var cM=(Q,U)=>{let Z=pM(Q),K=(X,Y=U)=>IX(Z,X,Y);return Object.assign(K,Z),K},dM=(Q,U)=>Q?cM(Q,U):cM;function P0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[K,X]of Q)if(!Object.is(X,U.get(K)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let K of Q)if(!U.has(K))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let K of Z)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var OT=b0(PX(),1),mq=F1.createContext(null),Sj=mq.Provider,wT=u2.error001("react");function U0(Q,U){let Z=F1.useContext(mq);if(Z===null)throw Error(wT);return IX(Z,Q,U)}function N0(){let Q=F1.useContext(mq);if(Q===null)throw Error(wT);return F1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var sM={display:"none"},Dj={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},IT="react-flow__node-desc",fT="react-flow__edge-desc",kj="react-flow__aria-live",yj=(Q)=>Q.ariaLiveMessage,vj=(Q)=>Q.ariaLabelConfig;function Ej({rfId:Q}){let U=U0(yj);return Z1.jsx("div",{id:`${kj}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:Dj,children:U})}function bj({rfId:Q,disableKeyboardA11y:U}){let Z=U0(vj);return Z1.jsxs(Z1.Fragment,{children:[Z1.jsx("div",{id:`${IT}-${Q}`,style:sM,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),Z1.jsx("div",{id:`${fT}-${Q}`,style:sM,children:Z["edge.a11yDescription.default"]}),!U&&Z1.jsx(Ej,{rfId:Q})]})}var N8=F1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...X},Y)=>{let W=`${Q}`.split("-");return Z1.jsx("div",{className:y0(["react-flow__panel",Z,...W]),style:K,ref:Y,...X,children:U})});N8.displayName="Panel";var tM="https://reactflow.dev/attribution";function xj({proOptions:Q,position:U="bottom-right"}){if(F1.useEffect(()=>{BM("react")},[]),Q?.hideAttribution)return null;return Z1.jsx(N8,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${tM}`,children:Z1.jsx("a",{href:tM,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var uj=(Q)=>{let U=[],Z=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)Z.push(K);return{selectedNodes:U,selectedEdges:Z}},bq=(Q)=>Q.id;function hj(Q,U){return P0(Q.selectedNodes.map(bq),U.selectedNodes.map(bq))&&P0(Q.selectedEdges.map(bq),U.selectedEdges.map(bq))}function mj({onSelectionChange:Q}){let U=N0(),{selectedNodes:Z,selectedEdges:K}=U0(uj,hj);return F1.useEffect(()=>{let X={nodes:Z,edges:K};Q?.(X),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(X))},[Z,K,Q]),null}var gj=(Q)=>!!Q.onSelectionChangeHandlers;function pj({onSelectionChange:Q}){let U=U0(gj);if(Q||U)return Z1.jsx(mj,{onSelectionChange:Q});return null}var PT=[0,0],cj={x:0,y:0,zoom:1},lj=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],oM=[...lj,"rfId"],rj=(Q)=>({setNodes:Q.setNodes,setEdges:Q.setEdges,setMinZoom:Q.setMinZoom,setMaxZoom:Q.setMaxZoom,setTranslateExtent:Q.setTranslateExtent,setNodeExtent:Q.setNodeExtent,reset:Q.reset,setDefaultNodesAndEdges:Q.setDefaultNodesAndEdges}),nM={translateExtent:a7,nodeOrigin:PT,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function dj(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:X,setTranslateExtent:Y,setNodeExtent:W,reset:B,setDefaultNodesAndEdges:R}=U0(rj,P0),O=N0();F1.useEffect(()=>{return R(Q.defaultNodes,Q.defaultEdges),()=>{T.current=nM,B()}},[]);let T=F1.useRef(nM);return F1.useEffect(()=>{for(let L of oM){let M=Q[L],f=T.current[L];if(M===f)continue;if(typeof Q[L]>"u")continue;if(L==="nodes")U(M);else if(L==="edges")Z(M);else if(L==="minZoom")K(M);else if(L==="maxZoom")X(M);else if(L==="translateExtent")Y(M);else if(L==="nodeExtent")W(M);else if(L==="ariaLabelConfig")O.setState({ariaLabelConfig:AM(M)});else if(L==="fitView")O.setState({fitViewQueued:M});else if(L==="fitViewOptions")O.setState({fitViewOptions:M});else O.setState({[L]:M})}T.current=Q},oM.map((L)=>Q[L])),null}function eM(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function ij(Q){let[U,Z]=F1.useState(Q==="system"?null:Q);return F1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=eM(),X=()=>Z(K?.matches?"dark":"light");return X(),K?.addEventListener("change",X),()=>{K?.removeEventListener("change",X)}},[Q]),U!==null?U:eM()?.matches?"dark":"light"}var _T=typeof document<"u"?document:null;function MJ(Q=null,U={target:_T,actInsideInputWithModifier:!0}){let[Z,K]=F1.useState(!1),X=F1.useRef(!1),Y=F1.useRef(new Set([])),[W,B]=F1.useMemo(()=>{if(Q!==null){let O=(Array.isArray(Q)?Q:[Q]).filter((L)=>typeof L==="string").map((L)=>L.replace(/\+/g,`
240
+ root.render(<App />);`),J.unstable_strictMode===!0&&($=!0),J.identifierPrefix!==void 0&&(q=J.identifierPrefix),J.onUncaughtError!==void 0&&(G=J.onUncaughtError),J.onCaughtError!==void 0&&(F=J.onCaughtError),J.onRecoverableError!==void 0&&(Y=J.onRecoverableError)),J=zz(_,1,!1,null,null,$,q,null,G,F,Y,fz),_[h3]=J.current,vG(_),new eG(J)},KV.hydrateRoot=function(_,J,$){if(!j(_))throw Error("Target container is not a DOM element.");Pz(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",F=wY,Y=IY,A=fY,w=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(F=$.onUncaughtError),$.onCaughtError!==void 0&&(Y=$.onCaughtError),$.onRecoverableError!==void 0&&(A=$.onRecoverableError),$.formState!==void 0&&(w=$.formState)),J=zz(_,1,!0,J,$!=null?$:null,q,G,w,F,Y,A,fz),J.context=Bz(null),$=J.current,q=Q5($),q=x4(q),G=S3(q),G.callback=null,j3($,G,q),q4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,L2(J,$),B4(J),_[h3]=J.current,vG(_),new d$(J)},KV.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var CR=j4((pm,NR)=>{var XV=u0(PR());NR.exports=XV});var A1=u0(i5(),1);var F1=u0(zL(),1),K1=u0(i5(),1);function y0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,K;Z<Q.length;Z++)if((K=y0(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var Ef={value:()=>{}};function AL(){for(var Q=0,U=arguments.length,Z={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in Z||/[\s.]/.test(K))throw Error("illegal type: "+K);Z[K]=[]}return new _q(Z)}function _q(Q){this._=Q}function bf(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var K="",X=Z.indexOf(".");if(X>=0)K=Z.slice(X+1),Z=Z.slice(0,X);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:K}})}_q.prototype=AL.prototype={constructor:_q,on:function(Q,U){var Z=this._,K=bf(Q+"",Z),X,W=-1,z=K.length;if(arguments.length<2){while(++W<z)if((X=(Q=K[W]).type)&&(X=uf(Z[X],Q.name)))return X;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++W<z)if(X=(Q=K[W]).type)Z[X]=BL(Z[X],Q.name,U);else if(U==null)for(X in Z)Z[X]=BL(Z[X],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new _q(Q)},call:function(Q,U){if((X=arguments.length-2)>0)for(var Z=Array(X),K=0,X,W;K<X;++K)Z[K]=arguments[K+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(W=this._[Q],K=0,X=W.length;K<X;++K)W[K].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var K=this._[Q],X=0,W=K.length;X<W;++X)K[X].value.apply(U,Z)}};function uf(Q,U){for(var Z=0,K=Q.length,X;Z<K;++Z)if((X=Q[Z]).name===U)return X.value}function BL(Q,U,Z){for(var K=0,X=Q.length;K<X;++K)if(Q[K].name===U){Q[K]=Ef,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var H8=AL;function x7(Q){return function(){return this.matches(Q)}}function Jq(Q){return function(U){return U.matches(Q)}}var $q="http://www.w3.org/1999/xhtml",SF={svg:"http://www.w3.org/2000/svg",xhtml:$q,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function V4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return SF.hasOwnProperty(U)?{space:SF[U],local:Q}:Q}function jF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function O2(Q,U){if(Q=jF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var K=Z.createSVGPoint();return K.x=Q.clientX,K.y=Q.clientY,K=K.matrixTransform(U.getScreenCTM().inverse()),[K.x,K.y]}if(U.getBoundingClientRect){var X=U.getBoundingClientRect();return[Q.clientX-X.left-U.clientLeft,Q.clientY-X.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function xf(){}function X6(Q){return Q==null?xf:function(){return this.querySelector(Q)}}function VF(Q){if(typeof Q!=="function")Q=X6(Q);for(var U=this._groups,Z=U.length,K=Array(Z),X=0;X<Z;++X)for(var W=U[X],z=W.length,B=K[X]=Array(z),O,T,R=0;R<z;++R)if((O=W[R])&&(T=Q.call(O,O.__data__,R,W))){if("__data__"in O)T.__data__=O.__data__;B[R]=T}return new x0(K,this._parents)}function kF(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function hf(){return[]}function h7(Q){return Q==null?hf:function(){return this.querySelectorAll(Q)}}function mf(Q){return function(){return kF(Q.apply(this,arguments))}}function DF(Q){if(typeof Q==="function")Q=mf(Q);else Q=h7(Q);for(var U=this._groups,Z=U.length,K=[],X=[],W=0;W<Z;++W)for(var z=U[W],B=z.length,O,T=0;T<B;++T)if(O=z[T])K.push(Q.call(O,O.__data__,T,z)),X.push(O);return new x0(K,X)}var gf=Array.prototype.find;function pf(Q){return function(){return gf.call(this.children,Q)}}function cf(){return this.firstElementChild}function yF(Q){return this.select(Q==null?cf:pf(typeof Q==="function"?Q:Jq(Q)))}var lf=Array.prototype.filter;function rf(){return Array.from(this.children)}function df(Q){return function(){return lf.call(this.children,Q)}}function vF(Q){return this.selectAll(Q==null?rf:df(typeof Q==="function"?Q:Jq(Q)))}function EF(Q){if(typeof Q!=="function")Q=x7(Q);for(var U=this._groups,Z=U.length,K=Array(Z),X=0;X<Z;++X)for(var W=U[X],z=W.length,B=K[X]=[],O,T=0;T<z;++T)if((O=W[T])&&Q.call(O,O.__data__,T,W))B.push(O);return new x0(K,this._parents)}function c_(Q){return Array(Q.length)}function bF(){return new x0(this._enter||this._groups.map(c_),this._parents)}function l_(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}l_.prototype={constructor:l_,appendChild:function(Q){return this._parent.insertBefore(Q,this._next)},insertBefore:function(Q,U){return this._parent.insertBefore(Q,U)},querySelector:function(Q){return this._parent.querySelector(Q)},querySelectorAll:function(Q){return this._parent.querySelectorAll(Q)}};function uF(Q){return function(){return Q}}function af(Q,U,Z,K,X,W){var z=0,B,O=U.length,T=W.length;for(;z<T;++z)if(B=U[z])B.__data__=W[z],K[z]=B;else Z[z]=new l_(Q,W[z]);for(;z<O;++z)if(B=U[z])X[z]=B}function sf(Q,U,Z,K,X,W,z){var B,O,T=new Map,R=U.length,L=W.length,M=Array(R),I;for(B=0;B<R;++B)if(O=U[B])if(M[B]=I=z.call(O,O.__data__,B,U)+"",T.has(I))X[B]=O;else T.set(I,O);for(B=0;B<L;++B)if(I=z.call(Q,W[B],B,W)+"",O=T.get(I))K[B]=O,O.__data__=W[B],T.delete(I);else Z[B]=new l_(Q,W[B]);for(B=0;B<R;++B)if((O=U[B])&&T.get(M[B])===O)X[B]=O}function tf(Q){return Q.__data__}function xF(Q,U){if(!arguments.length)return Array.from(this,tf);var Z=U?sf:af,K=this._parents,X=this._groups;if(typeof Q!=="function")Q=uF(Q);for(var W=X.length,z=Array(W),B=Array(W),O=Array(W),T=0;T<W;++T){var R=K[T],L=X[T],M=L.length,I=of(Q.call(R,R&&R.__data__,T,K)),f=I.length,D=B[T]=Array(f),j=z[T]=Array(f),k=O[T]=Array(M);Z(R,L,D,j,k,I,U);for(var h=0,P=0,C,b;h<f;++h)if(C=D[h]){if(h>=P)P=h+1;while(!(b=j[P])&&++P<f);C._next=b||null}}return z=new x0(z,K),z._enter=B,z._exit=O,z}function of(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function hF(){return new x0(this._exit||this._groups.map(c_),this._parents)}function mF(Q,U,Z){var K=this.enter(),X=this,W=this.exit();if(typeof Q==="function"){if(K=Q(K),K)K=K.selection()}else K=K.append(Q+"");if(U!=null){if(X=U(X),X)X=X.selection()}if(Z==null)W.remove();else Z(W);return K&&X?K.merge(X).order():X}function gF(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,K=U._groups,X=Z.length,W=K.length,z=Math.min(X,W),B=Array(X),O=0;O<z;++O)for(var T=Z[O],R=K[O],L=T.length,M=B[O]=Array(L),I,f=0;f<L;++f)if(I=T[f]||R[f])M[f]=I;for(;O<X;++O)B[O]=Z[O];return new x0(B,this._parents)}function pF(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var K=Q[U],X=K.length-1,W=K[X],z;--X>=0;)if(z=K[X]){if(W&&z.compareDocumentPosition(W)^4)W.parentNode.insertBefore(z,W);W=z}return this}function cF(Q){if(!Q)Q=nf;function U(L,M){return L&&M?Q(L.__data__,M.__data__):!L-!M}for(var Z=this._groups,K=Z.length,X=Array(K),W=0;W<K;++W){for(var z=Z[W],B=z.length,O=X[W]=Array(B),T,R=0;R<B;++R)if(T=z[R])O[R]=T;O.sort(U)}return new x0(X,this._parents).order()}function nf(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function lF(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function rF(){return Array.from(this)}function dF(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],X=0,W=K.length;X<W;++X){var z=K[X];if(z)return z}return null}function iF(){let Q=0;for(let U of this)++Q;return Q}function aF(){return!this.node()}function sF(Q){for(var U=this._groups,Z=0,K=U.length;Z<K;++Z)for(var X=U[Z],W=0,z=X.length,B;W<z;++W)if(B=X[W])Q.call(B,B.__data__,W,X);return this}function ef(Q){return function(){this.removeAttribute(Q)}}function _P(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function JP(Q,U){return function(){this.setAttribute(Q,U)}}function $P(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function QP(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function qP(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttributeNS(Q.space,Q.local);else this.setAttributeNS(Q.space,Q.local,Z)}}function tF(Q,U){var Z=V4(Q);if(arguments.length<2){var K=this.node();return Z.local?K.getAttributeNS(Z.space,Z.local):K.getAttribute(Z)}return this.each((U==null?Z.local?_P:ef:typeof U==="function"?Z.local?qP:QP:Z.local?$P:JP)(Z,U))}function r_(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function UP(Q){return function(){this.style.removeProperty(Q)}}function GP(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function ZP(Q,U,Z){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,Z)}}function oF(Q,U,Z){return arguments.length>1?this.each((U==null?UP:typeof U==="function"?ZP:GP)(Q,U,Z==null?"":Z)):H6(this.node(),Q)}function H6(Q,U){return Q.style.getPropertyValue(U)||r_(Q).getComputedStyle(Q,null).getPropertyValue(U)}function FP(Q){return function(){delete this[Q]}}function KP(Q,U){return function(){this[Q]=U}}function XP(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function nF(Q,U){return arguments.length>1?this.each((U==null?FP:typeof U==="function"?XP:KP)(Q,U)):this.node()[Q]}function LL(Q){return Q.trim().split(/^|\s+/)}function eF(Q){return Q.classList||new ML(Q)}function ML(Q){this._node=Q,this._names=LL(Q.getAttribute("class")||"")}ML.prototype={add:function(Q){var U=this._names.indexOf(Q);if(U<0)this._names.push(Q),this._node.setAttribute("class",this._names.join(" "))},remove:function(Q){var U=this._names.indexOf(Q);if(U>=0)this._names.splice(U,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(Q){return this._names.indexOf(Q)>=0}};function TL(Q,U){var Z=eF(Q),K=-1,X=U.length;while(++K<X)Z.add(U[K])}function RL(Q,U){var Z=eF(Q),K=-1,X=U.length;while(++K<X)Z.remove(U[K])}function HP(Q){return function(){TL(this,Q)}}function YP(Q){return function(){RL(this,Q)}}function WP(Q,U){return function(){(U.apply(this,arguments)?TL:RL)(this,Q)}}function _K(Q,U){var Z=LL(Q+"");if(arguments.length<2){var K=eF(this.node()),X=-1,W=Z.length;while(++X<W)if(!K.contains(Z[X]))return!1;return!0}return this.each((typeof U==="function"?WP:U?HP:YP)(Z,U))}function zP(){this.textContent=""}function BP(Q){return function(){this.textContent=Q}}function AP(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function JK(Q){return arguments.length?this.each(Q==null?zP:(typeof Q==="function"?AP:BP)(Q)):this.node().textContent}function LP(){this.innerHTML=""}function MP(Q){return function(){this.innerHTML=Q}}function TP(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function $K(Q){return arguments.length?this.each(Q==null?LP:(typeof Q==="function"?TP:MP)(Q)):this.node().innerHTML}function RP(){if(this.nextSibling)this.parentNode.appendChild(this)}function QK(){return this.each(RP)}function OP(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function qK(){return this.each(OP)}function wP(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===$q&&U.documentElement.namespaceURI===$q?U.createElement(Q):U.createElementNS(Z,Q)}}function IP(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function d_(Q){var U=V4(Q);return(U.local?IP:wP)(U)}function UK(Q){var U=typeof Q==="function"?Q:d_(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function fP(){return null}function GK(Q,U){var Z=typeof Q==="function"?Q:d_(Q),K=U==null?fP:typeof U==="function"?U:X6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function PP(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function ZK(){return this.each(PP)}function NP(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function CP(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function FK(Q){return this.select(Q?CP:NP)}function KK(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function SP(Q){return function(U){Q.call(this,U,this.__data__)}}function jP(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",K=U.indexOf(".");if(K>=0)Z=U.slice(K+1),U=U.slice(0,K);return{type:U,name:Z}})}function VP(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,K=-1,X=U.length,W;Z<X;++Z)if(W=U[Z],(!Q.type||W.type===Q.type)&&W.name===Q.name)this.removeEventListener(W.type,W.listener,W.options);else U[++K]=W;if(++K)U.length=K;else delete this.__on}}function kP(Q,U,Z){return function(){var K=this.__on,X,W=SP(U);if(K){for(var z=0,B=K.length;z<B;++z)if((X=K[z]).type===Q.type&&X.name===Q.name){this.removeEventListener(X.type,X.listener,X.options),this.addEventListener(X.type,X.listener=W,X.options=Z),X.value=U;return}}if(this.addEventListener(Q.type,W,Z),X={type:Q.type,name:Q.name,value:U,listener:W,options:Z},!K)this.__on=[X];else K.push(X)}}function XK(Q,U,Z){var K=jP(Q+""),X,W=K.length,z;if(arguments.length<2){var B=this.node().__on;if(B){for(var O=0,T=B.length,R;O<T;++O)for(X=0,R=B[O];X<W;++X)if((z=K[X]).type===R.type&&z.name===R.name)return R.value}return}B=U?kP:VP;for(X=0;X<W;++X)this.each(B(K[X],U,Z));return this}function OL(Q,U,Z){var K=r_(Q),X=K.CustomEvent;if(typeof X==="function")X=new X(U,Z);else if(X=K.document.createEvent("Event"),Z)X.initEvent(U,Z.bubbles,Z.cancelable),X.detail=Z.detail;else X.initEvent(U,!1,!1);Q.dispatchEvent(X)}function DP(Q,U){return function(){return OL(this,Q,U)}}function yP(Q,U){return function(){return OL(this,Q,U.apply(this,arguments))}}function HK(Q,U){return this.each((typeof U==="function"?yP:DP)(Q,U))}function*YK(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],X=0,W=K.length,z;X<W;++X)if(z=K[X])yield z}var WK=[null];function x0(Q,U){this._groups=Q,this._parents=U}function wL(){return new x0([[document.documentElement]],WK)}function vP(){return this}x0.prototype=wL.prototype={constructor:x0,select:VF,selectAll:DF,selectChild:yF,selectChildren:vF,filter:EF,data:xF,enter:bF,exit:hF,join:mF,merge:gF,selection:vP,order:pF,sort:cF,call:lF,nodes:rF,node:dF,size:iF,empty:aF,each:sF,attr:tF,style:oF,property:nF,classed:_K,text:JK,html:$K,raise:QK,lower:qK,append:UK,insert:GK,remove:ZK,clone:FK,datum:KK,on:XK,dispatch:HK,[Symbol.iterator]:YK};var H3=wL;function n0(Q){return typeof Q==="string"?new x0([[document.querySelector(Q)]],[document.documentElement]):new x0([[Q]],WK)}var IL={passive:!1},Y8={capture:!0,passive:!1};function Qq(Q){Q.stopImmediatePropagation()}function Y3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function m7(Q){var U=Q.document.documentElement,Z=n0(Q).on("dragstart.drag",Y3,Y8);if("onselectstart"in U)Z.on("selectstart.drag",Y3,Y8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function i_(Q,U){var Z=Q.document.documentElement,K=n0(Q).on("dragstart.drag",null);if(U)K.on("click.drag",Y3,Y8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in Z)K.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var a_=(Q)=>()=>Q;function s_(Q,{sourceEvent:U,subject:Z,target:K,identifier:X,active:W,x:z,y:B,dx:O,dy:T,dispatch:R}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},subject:{value:Z,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},identifier:{value:X,enumerable:!0,configurable:!0},active:{value:W,enumerable:!0,configurable:!0},x:{value:z,enumerable:!0,configurable:!0},y:{value:B,enumerable:!0,configurable:!0},dx:{value:O,enumerable:!0,configurable:!0},dy:{value:T,enumerable:!0,configurable:!0},_:{value:R}})}s_.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function EP(Q){return!Q.ctrlKey&&!Q.button}function bP(){return this.parentNode}function uP(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function xP(){return navigator.maxTouchPoints||"ontouchstart"in this}function t_(){var Q=EP,U=bP,Z=uP,K=xP,X={},W=H8("start","drag","end"),z=0,B,O,T,R,L=0;function M(C){C.on("mousedown.drag",I).filter(K).on("touchstart.drag",j).on("touchmove.drag",k,IL).on("touchend.drag touchcancel.drag",h).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function I(C,b){if(R||!Q.call(this,C,b))return;var x=P(this,U.call(this,C,b),C,b,"mouse");if(!x)return;n0(C.view).on("mousemove.drag",f,Y8).on("mouseup.drag",D,Y8),m7(C.view),Qq(C),T=!1,B=C.clientX,O=C.clientY,x("start",C)}function f(C){if(Y3(C),!T){var b=C.clientX-B,x=C.clientY-O;T=b*b+x*x>L}X.mouse("drag",C)}function D(C){n0(C.view).on("mousemove.drag mouseup.drag",null),i_(C.view,T),Y3(C),X.mouse("end",C)}function j(C,b){if(!Q.call(this,C,b))return;var x=C.changedTouches,u=U.call(this,C,b),g=x.length,i,m;for(i=0;i<g;++i)if(m=P(this,u,C,b,x[i].identifier,x[i]))Qq(C),m("start",C,x[i])}function k(C){var b=C.changedTouches,x=b.length,u,g;for(u=0;u<x;++u)if(g=X[b[u].identifier])Y3(C),g("drag",C,b[u])}function h(C){var b=C.changedTouches,x=b.length,u,g;if(R)clearTimeout(R);R=setTimeout(function(){R=null},500);for(u=0;u<x;++u)if(g=X[b[u].identifier])Qq(C),g("end",C,b[u])}function P(C,b,x,u,g,i){var m=W.copy(),J1=O2(i||x,b),$1,d,y;if((y=Z.call(C,new s_("beforestart",{sourceEvent:x,target:M,identifier:g,active:z,x:J1[0],y:J1[1],dx:0,dy:0,dispatch:m}),u))==null)return;return $1=y.x-J1[0]||0,d=y.y-J1[1]||0,function E(v,r,n){var e=J1,V;switch(v){case"start":X[g]=E,V=z++;break;case"end":delete X[g],--z;case"drag":J1=O2(n||r,b),V=z;break}m.call(v,C,new s_(v,{sourceEvent:r,subject:y,target:M,identifier:g,active:V,x:J1[0]+$1,y:J1[1]+d,dx:J1[0]-e[0],dy:J1[1]-e[1],dispatch:m}),u)}}return M.filter=function(C){return arguments.length?(Q=typeof C==="function"?C:a_(!!C),M):Q},M.container=function(C){return arguments.length?(U=typeof C==="function"?C:a_(C),M):U},M.subject=function(C){return arguments.length?(Z=typeof C==="function"?C:a_(C),M):Z},M.touchable=function(C){return arguments.length?(K=typeof C==="function"?C:a_(!!C),M):K},M.on=function(){var C=W.on.apply(W,arguments);return C===W?M:C},M.clickDistance=function(C){return arguments.length?(L=(C=+C)*C,M):Math.sqrt(L)},M}function o_(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function zK(Q,U){var Z=Object.create(Q.prototype);for(var K in U)Z[K]=U[K];return Z}function _J(){}var n_=0.7,Gq=1/n_,g7="\\s*([+-]?\\d+)\\s*",e_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",k4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hP=/^#([0-9a-f]{3,8})$/,mP=new RegExp(`^rgb\\(${g7},${g7},${g7}\\)$`),gP=new RegExp(`^rgb\\(${k4},${k4},${k4}\\)$`),pP=new RegExp(`^rgba\\(${g7},${g7},${g7},${e_}\\)$`),cP=new RegExp(`^rgba\\(${k4},${k4},${k4},${e_}\\)$`),lP=new RegExp(`^hsl\\(${e_},${k4},${k4}\\)$`),rP=new RegExp(`^hsla\\(${e_},${k4},${k4},${e_}\\)$`),fL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};o_(_J,s5,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:PL,formatHex:PL,formatHex8:dP,formatHsl:iP,formatRgb:NL,toString:NL});function PL(){return this.rgb().formatHex()}function dP(){return this.rgb().formatHex8()}function iP(){return DL(this).formatHsl()}function NL(){return this.rgb().formatRgb()}function s5(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=hP.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?CL(U):Z===3?new s2(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?qq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?qq(U>>12&15|U>>8&240,U>>8&15|U>>4&240,U>>4&15|U&240,((U&15)<<4|U&15)/255):null):(U=mP.exec(Q))?new s2(U[1],U[2],U[3],1):(U=gP.exec(Q))?new s2(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=pP.exec(Q))?qq(U[1],U[2],U[3],U[4]):(U=cP.exec(Q))?qq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=lP.exec(Q))?VL(U[1],U[2]/100,U[3]/100,1):(U=rP.exec(Q))?VL(U[1],U[2]/100,U[3]/100,U[4]):fL.hasOwnProperty(Q)?CL(fL[Q]):Q==="transparent"?new s2(NaN,NaN,NaN,0):null}function CL(Q){return new s2(Q>>16&255,Q>>8&255,Q&255,1)}function qq(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new s2(Q,U,Z,K)}function aP(Q){if(!(Q instanceof _J))Q=s5(Q);if(!Q)return new s2;return Q=Q.rgb(),new s2(Q.r,Q.g,Q.b,Q.opacity)}function p7(Q,U,Z,K){return arguments.length===1?aP(Q):new s2(Q,U,Z,K==null?1:K)}function s2(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}o_(s2,p7,zK(_J,{brighter(Q){return Q=Q==null?Gq:Math.pow(Gq,Q),new s2(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?n_:Math.pow(n_,Q),new s2(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new s2(z8(this.r),z8(this.g),z8(this.b),Zq(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:SL,formatHex:SL,formatHex8:sP,formatRgb:jL,toString:jL}));function SL(){return`#${W8(this.r)}${W8(this.g)}${W8(this.b)}`}function sP(){return`#${W8(this.r)}${W8(this.g)}${W8(this.b)}${W8((isNaN(this.opacity)?1:this.opacity)*255)}`}function jL(){let Q=Zq(this.opacity);return`${Q===1?"rgb(":"rgba("}${z8(this.r)}, ${z8(this.g)}, ${z8(this.b)}${Q===1?")":`, ${Q})`}`}function Zq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function z8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function W8(Q){return Q=z8(Q),(Q<16?"0":"")+Q.toString(16)}function VL(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new a5(Q,U,Z,K)}function DL(Q){if(Q instanceof a5)return new a5(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof _J))Q=s5(Q);if(!Q)return new a5;if(Q instanceof a5)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,K=Q.b/255,X=Math.min(U,Z,K),W=Math.max(U,Z,K),z=NaN,B=W-X,O=(W+X)/2;if(B){if(U===W)z=(Z-K)/B+(Z<K)*6;else if(Z===W)z=(K-U)/B+2;else z=(U-Z)/B+4;B/=O<0.5?W+X:2-W-X,z*=60}else B=O>0&&O<1?0:z;return new a5(z,B,O,Q.opacity)}function yL(Q,U,Z,K){return arguments.length===1?DL(Q):new a5(Q,U,Z,K==null?1:K)}function a5(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}o_(a5,yL,zK(_J,{brighter(Q){return Q=Q==null?Gq:Math.pow(Gq,Q),new a5(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?n_:Math.pow(n_,Q),new a5(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,K=Z+(Z<0.5?Z:1-Z)*U,X=2*Z-K;return new s2(BK(Q>=240?Q-240:Q+120,X,K),BK(Q,X,K),BK(Q<120?Q+240:Q-120,X,K),this.opacity)},clamp(){return new a5(kL(this.h),Uq(this.s),Uq(this.l),Zq(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let Q=Zq(this.opacity);return`${Q===1?"hsl(":"hsla("}${kL(this.h)}, ${Uq(this.s)*100}%, ${Uq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function kL(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Uq(Q){return Math.max(0,Math.min(1,Q||0))}function BK(Q,U,Z){return(Q<60?U+(Z-U)*Q/60:Q<180?Z:Q<240?U+(Z-U)*(240-Q)/60:U)*255}function AK(Q,U,Z,K,X){var W=Q*Q,z=W*Q;return((1-3*Q+3*W-z)*U+(4-6*W+3*z)*Z+(1+3*Q+3*W-3*z)*K+z*X)/6}function LK(Q){var U=Q.length-1;return function(Z){var K=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),X=Q[K],W=Q[K+1],z=K>0?Q[K-1]:2*X-W,B=K<U-1?Q[K+2]:2*W-X;return AK((Z-K/U)*U,z,X,W,B)}}function MK(Q){var U=Q.length;return function(Z){var K=Math.floor(((Z%=1)<0?++Z:Z)*U),X=Q[(K+U-1)%U],W=Q[K%U],z=Q[(K+1)%U],B=Q[(K+2)%U];return AK((Z-K/U)*U,X,W,z,B)}}var JJ=(Q)=>()=>Q;function tP(Q,U){return function(Z){return Q+Z*U}}function oP(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(K){return Math.pow(Q+K*U,Z)}}function vL(Q){return(Q=+Q)===1?Fq:function(U,Z){return Z-U?oP(U,Z,Q):JJ(isNaN(U)?Z:U)}}function Fq(Q,U){var Z=U-Q;return Z?tP(Q,Z):JJ(isNaN(Q)?U:Q)}var B8=function Q(U){var Z=vL(U);function K(X,W){var z=Z((X=p7(X)).r,(W=p7(W)).r),B=Z(X.g,W.g),O=Z(X.b,W.b),T=Fq(X.opacity,W.opacity);return function(R){return X.r=z(R),X.g=B(R),X.b=O(R),X.opacity=T(R),X+""}}return K.gamma=Q,K}(1);function EL(Q){return function(U){var Z=U.length,K=Array(Z),X=Array(Z),W=Array(Z),z,B;for(z=0;z<Z;++z)B=p7(U[z]),K[z]=B.r||0,X[z]=B.g||0,W[z]=B.b||0;return K=Q(K),X=Q(X),W=Q(W),B.opacity=1,function(O){return B.r=K(O),B.g=X(O),B.b=W(O),B+""}}}var nP=EL(LK),eP=EL(MK);function TK(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,K=U.slice(),X;return function(W){for(X=0;X<Z;++X)K[X]=Q[X]*(1-W)+U[X]*W;return K}}function bL(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function uL(Q,U){var Z=U?U.length:0,K=Q?Math.min(Z,Q.length):0,X=Array(K),W=Array(Z),z;for(z=0;z<K;++z)X[z]=D4(Q[z],U[z]);for(;z<Z;++z)W[z]=U[z];return function(B){for(z=0;z<K;++z)W[z]=X[z](B);return W}}function RK(Q,U){var Z=new Date;return Q=+Q,U=+U,function(K){return Z.setTime(Q*(1-K)+U*K),Z}}function w2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function OK(Q,U){var Z={},K={},X;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(X in U)if(X in Q)Z[X]=D4(Q[X],U[X]);else K[X]=U[X];return function(W){for(X in Z)K[X]=Z[X](W);return K}}var IK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wK=new RegExp(IK.source,"g");function _N(Q){return function(){return Q}}function JN(Q){return function(U){return Q(U)+""}}function c7(Q,U){var Z=IK.lastIndex=wK.lastIndex=0,K,X,W,z=-1,B=[],O=[];Q=Q+"",U=U+"";while((K=IK.exec(Q))&&(X=wK.exec(U))){if((W=X.index)>Z)if(W=U.slice(Z,W),B[z])B[z]+=W;else B[++z]=W;if((K=K[0])===(X=X[0]))if(B[z])B[z]+=X;else B[++z]=X;else B[++z]=null,O.push({i:z,x:w2(K,X)});Z=wK.lastIndex}if(Z<U.length)if(W=U.slice(Z),B[z])B[z]+=W;else B[++z]=W;return B.length<2?O[0]?JN(O[0].x):_N(U):(U=O.length,function(T){for(var R=0,L;R<U;++R)B[(L=O[R]).i]=L.x(T);return B.join("")})}function D4(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?JJ(U):(Z==="number"?w2:Z==="string"?(K=s5(U))?(U=K,B8):c7:U instanceof s5?B8:U instanceof Date?RK:bL(U)?TK:Array.isArray(U)?uL:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?OK:w2)(Q,U)}var xL=180/Math.PI,Kq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Xq(Q,U,Z,K,X,W){var z,B,O;if(z=Math.sqrt(Q*Q+U*U))Q/=z,U/=z;if(O=Q*Z+U*K)Z-=Q*O,K-=U*O;if(B=Math.sqrt(Z*Z+K*K))Z/=B,K/=B,O/=B;if(Q*K<U*Z)Q=-Q,U=-U,O=-O,z=-z;return{translateX:X,translateY:W,rotate:Math.atan2(U,Q)*xL,skewX:Math.atan(O)*xL,scaleX:z,scaleY:B}}var Hq;function hL(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Kq:Xq(U.a,U.b,U.c,U.d,U.e,U.f)}function mL(Q){if(Q==null)return Kq;if(!Hq)Hq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Hq.setAttribute("transform",Q),!(Q=Hq.transform.baseVal.consolidate()))return Kq;return Q=Q.matrix,Xq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function gL(Q,U,Z,K){function X(T){return T.length?T.pop()+" ":""}function W(T,R,L,M,I,f){if(T!==L||R!==M){var D=I.push("translate(",null,U,null,Z);f.push({i:D-4,x:w2(T,L)},{i:D-2,x:w2(R,M)})}else if(L||M)I.push("translate("+L+U+M+Z)}function z(T,R,L,M){if(T!==R){if(T-R>180)R+=360;else if(R-T>180)T+=360;M.push({i:L.push(X(L)+"rotate(",null,K)-2,x:w2(T,R)})}else if(R)L.push(X(L)+"rotate("+R+K)}function B(T,R,L,M){if(T!==R)M.push({i:L.push(X(L)+"skewX(",null,K)-2,x:w2(T,R)});else if(R)L.push(X(L)+"skewX("+R+K)}function O(T,R,L,M,I,f){if(T!==L||R!==M){var D=I.push(X(I)+"scale(",null,",",null,")");f.push({i:D-4,x:w2(T,L)},{i:D-2,x:w2(R,M)})}else if(L!==1||M!==1)I.push(X(I)+"scale("+L+","+M+")")}return function(T,R){var L=[],M=[];return T=Q(T),R=Q(R),W(T.translateX,T.translateY,R.translateX,R.translateY,L,M),z(T.rotate,R.rotate,L,M),B(T.skewX,R.skewX,L,M),O(T.scaleX,T.scaleY,R.scaleX,R.scaleY,L,M),T=R=null,function(I){var f=-1,D=M.length,j;while(++f<D)L[(j=M[f]).i]=j.x(I);return L.join("")}}}var fK=gL(hL,"px, ","px)","deg)"),PK=gL(mL,", ",")",")");var $N=0.000000000001;function pL(Q){return((Q=Math.exp(Q))+1/Q)/2}function QN(Q){return((Q=Math.exp(Q))-1/Q)/2}function qN(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var A8=function Q(U,Z,K){function X(W,z){var B=W[0],O=W[1],T=W[2],R=z[0],L=z[1],M=z[2],I=R-B,f=L-O,D=I*I+f*f,j,k;if(D<$N)k=Math.log(M/T)/U,j=function(u){return[B+u*I,O+u*f,T*Math.exp(U*u*k)]};else{var h=Math.sqrt(D),P=(M*M-T*T+K*D)/(2*T*Z*h),C=(M*M-T*T-K*D)/(2*M*Z*h),b=Math.log(Math.sqrt(P*P+1)-P),x=Math.log(Math.sqrt(C*C+1)-C);k=(x-b)/U,j=function(u){var g=u*k,i=pL(b),m=T/(Z*h)*(i*qN(U*g+b)-QN(b));return[B+m*I,O+m*f,T*i/pL(U*g+b)]}}return j.duration=k*1000*U/Math.SQRT2,j}return X.rho=function(W){var z=Math.max(0.001,+W),B=z*z,O=B*B;return Q(z,B,O)},X}(Math.SQRT2,2,4);var l7=0,QJ=0,$J=0,lL=1000,Yq,qJ,Wq=0,L8=0,zq=0,UJ=typeof performance==="object"&&performance.now?performance:Date,rL=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function ZJ(){return L8||(rL(UN),L8=UJ.now()+zq)}function UN(){L8=0}function GJ(){this._call=this._time=this._next=null}GJ.prototype=Bq.prototype={constructor:GJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?ZJ():+Z)+(U==null?0:+U),!this._next&&qJ!==this){if(qJ)qJ._next=this;else Yq=this;qJ=this}this._call=Q,this._time=Z,NK()},stop:function(){if(this._call)this._call=null,this._time=1/0,NK()}};function Bq(Q,U,Z){var K=new GJ;return K.restart(Q,U,Z),K}function dL(){ZJ(),++l7;var Q=Yq,U;while(Q){if((U=L8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--l7}function cL(){L8=(Wq=UJ.now())+zq,l7=QJ=0;try{dL()}finally{l7=0,ZN(),L8=0}}function GN(){var Q=UJ.now(),U=Q-Wq;if(U>lL)zq-=U,Wq=Q}function ZN(){var Q,U=Yq,Z,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:Yq=Z;qJ=Q,NK(K)}function NK(Q){if(l7)return;if(QJ)QJ=clearTimeout(QJ);var U=Q-L8;if(U>24){if(Q<1/0)QJ=setTimeout(cL,Q-UJ.now()-zq);if($J)$J=clearInterval($J)}else{if(!$J)Wq=UJ.now(),$J=setInterval(GN,lL);l7=1,rL(cL)}}function FJ(Q,U,Z){var K=new GJ;return U=U==null?0:+U,K.restart((X)=>{K.stop(),Q(X+U)},U,Z),K}var FN=H8("start","end","cancel","interrupt"),KN=[],sL=0,iL=1,Lq=2,Aq=3,aL=4,Mq=5,KJ=6;function W3(Q,U,Z,K,X,W){var z=Q.__transition;if(!z)Q.__transition={};else if(Z in z)return;XN(Q,Z,{name:U,index:K,group:X,on:FN,tween:KN,time:W.time,delay:W.delay,duration:W.duration,ease:W.ease,timer:null,state:sL})}function XJ(Q,U){var Z=e0(Q,U);if(Z.state>sL)throw Error("too late; already scheduled");return Z}function W2(Q,U){var Z=e0(Q,U);if(Z.state>Aq)throw Error("too late; already running");return Z}function e0(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function XN(Q,U,Z){var K=Q.__transition,X;K[U]=Z,Z.timer=Bq(W,0,Z.time);function W(T){if(Z.state=iL,Z.timer.restart(z,Z.delay,Z.time),Z.delay<=T)z(T-Z.delay)}function z(T){var R,L,M,I;if(Z.state!==iL)return O();for(R in K){if(I=K[R],I.name!==Z.name)continue;if(I.state===Aq)return FJ(z);if(I.state===aL)I.state=KJ,I.timer.stop(),I.on.call("interrupt",Q,Q.__data__,I.index,I.group),delete K[R];else if(+R<U)I.state=KJ,I.timer.stop(),I.on.call("cancel",Q,Q.__data__,I.index,I.group),delete K[R]}if(FJ(function(){if(Z.state===Aq)Z.state=aL,Z.timer.restart(B,Z.delay,Z.time),B(T)}),Z.state=Lq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==Lq)return;Z.state=Aq,X=Array(M=Z.tween.length);for(R=0,L=-1;R<M;++R)if(I=Z.tween[R].value.call(Q,Q.__data__,Z.index,Z.group))X[++L]=I;X.length=L+1}function B(T){var R=T<Z.duration?Z.ease.call(null,T/Z.duration):(Z.timer.restart(O),Z.state=Mq,1),L=-1,M=X.length;while(++L<M)X[L].call(Q,R);if(Z.state===Mq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),O()}function O(){Z.state=KJ,Z.timer.stop(),delete K[U];for(var T in K)return;delete Q.__transition}}function Y6(Q,U){var Z=Q.__transition,K,X,W=!0,z;if(!Z)return;U=U==null?null:U+"";for(z in Z){if((K=Z[z]).name!==U){W=!1;continue}X=K.state>Lq&&K.state<Mq,K.state=KJ,K.timer.stop(),K.on.call(X?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete Z[z]}if(W)delete Q.__transition}function CK(Q){return this.each(function(){Y6(this,Q)})}function HN(Q,U){var Z,K;return function(){var X=W2(this,Q),W=X.tween;if(W!==Z){K=Z=W;for(var z=0,B=K.length;z<B;++z)if(K[z].name===U){K=K.slice(),K.splice(z,1);break}}X.tween=K}}function YN(Q,U,Z){var K,X;if(typeof Z!=="function")throw Error();return function(){var W=W2(this,Q),z=W.tween;if(z!==K){X=(K=z).slice();for(var B={name:U,value:Z},O=0,T=X.length;O<T;++O)if(X[O].name===U){X[O]=B;break}if(O===T)X.push(B)}W.tween=X}}function SK(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=e0(this.node(),Z).tween;for(var X=0,W=K.length,z;X<W;++X)if((z=K[X]).name===Q)return z.value;return null}return this.each((U==null?HN:YN)(Z,Q,U))}function r7(Q,U,Z){var K=Q._id;return Q.each(function(){var X=W2(this,K);(X.value||(X.value={}))[U]=Z.apply(this,arguments)}),function(X){return e0(X,K).value[U]}}function HJ(Q,U){var Z;return(typeof U==="number"?w2:U instanceof s5?B8:(Z=s5(U))?(U=Z,B8):c7)(Q,U)}function WN(Q){return function(){this.removeAttribute(Q)}}function zN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function BN(Q,U,Z){var K,X=Z+"",W;return function(){var z=this.getAttribute(Q);return z===X?null:z===K?W:W=U(K=z,Z)}}function AN(Q,U,Z){var K,X=Z+"",W;return function(){var z=this.getAttributeNS(Q.space,Q.local);return z===X?null:z===K?W:W=U(K=z,Z)}}function LN(Q,U,Z){var K,X,W;return function(){var z,B=Z(this),O;if(B==null)return void this.removeAttribute(Q);return z=this.getAttribute(Q),O=B+"",z===O?null:z===K&&O===X?W:(X=O,W=U(K=z,B))}}function MN(Q,U,Z){var K,X,W;return function(){var z,B=Z(this),O;if(B==null)return void this.removeAttributeNS(Q.space,Q.local);return z=this.getAttributeNS(Q.space,Q.local),O=B+"",z===O?null:z===K&&O===X?W:(X=O,W=U(K=z,B))}}function jK(Q,U){var Z=V4(Q),K=Z==="transform"?PK:HJ;return this.attrTween(Q,typeof U==="function"?(Z.local?MN:LN)(Z,K,r7(this,"attr."+Q,U)):U==null?(Z.local?zN:WN)(Z):(Z.local?AN:BN)(Z,K,U))}function TN(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function RN(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function ON(Q,U){var Z,K;function X(){var W=U.apply(this,arguments);if(W!==K)Z=(K=W)&&RN(Q,W);return Z}return X._value=U,X}function wN(Q,U){var Z,K;function X(){var W=U.apply(this,arguments);if(W!==K)Z=(K=W)&&TN(Q,W);return Z}return X._value=U,X}function VK(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var K=V4(Q);return this.tween(Z,(K.local?ON:wN)(K,U))}function IN(Q,U){return function(){XJ(this,Q).delay=+U.apply(this,arguments)}}function fN(Q,U){return U=+U,function(){XJ(this,Q).delay=U}}function kK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?IN:fN)(U,Q)):e0(this.node(),U).delay}function PN(Q,U){return function(){W2(this,Q).duration=+U.apply(this,arguments)}}function NN(Q,U){return U=+U,function(){W2(this,Q).duration=U}}function DK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?PN:NN)(U,Q)):e0(this.node(),U).duration}function CN(Q,U){if(typeof U!=="function")throw Error();return function(){W2(this,Q).ease=U}}function yK(Q){var U=this._id;return arguments.length?this.each(CN(U,Q)):e0(this.node(),U).ease}function SN(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();W2(this,Q).ease=Z}}function vK(Q){if(typeof Q!=="function")throw Error();return this.each(SN(this._id,Q))}function EK(Q){if(typeof Q!=="function")Q=x7(Q);for(var U=this._groups,Z=U.length,K=Array(Z),X=0;X<Z;++X)for(var W=U[X],z=W.length,B=K[X]=[],O,T=0;T<z;++T)if((O=W[T])&&Q.call(O,O.__data__,T,W))B.push(O);return new u2(K,this._parents,this._name,this._id)}function bK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,K=U.length,X=Z.length,W=Math.min(K,X),z=Array(K),B=0;B<W;++B)for(var O=U[B],T=Z[B],R=O.length,L=z[B]=Array(R),M,I=0;I<R;++I)if(M=O[I]||T[I])L[I]=M;for(;B<K;++B)z[B]=U[B];return new u2(z,this._parents,this._name,this._id)}function jN(Q){return(Q+"").trim().split(/^|\s+/).every(function(U){var Z=U.indexOf(".");if(Z>=0)U=U.slice(0,Z);return!U||U==="start"})}function VN(Q,U,Z){var K,X,W=jN(U)?XJ:W2;return function(){var z=W(this,Q),B=z.on;if(B!==K)(X=(K=B).copy()).on(U,Z);z.on=X}}function uK(Q,U){var Z=this._id;return arguments.length<2?e0(this.node(),Z).on.on(Q):this.each(VN(Z,Q,U))}function kN(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function xK(){return this.on("end.remove",kN(this._id))}function hK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=X6(Q);for(var K=this._groups,X=K.length,W=Array(X),z=0;z<X;++z)for(var B=K[z],O=B.length,T=W[z]=Array(O),R,L,M=0;M<O;++M)if((R=B[M])&&(L=Q.call(R,R.__data__,M,B))){if("__data__"in R)L.__data__=R.__data__;T[M]=L,W3(T[M],U,Z,M,T,e0(R,Z))}return new u2(W,this._parents,U,Z)}function mK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=h7(Q);for(var K=this._groups,X=K.length,W=[],z=[],B=0;B<X;++B)for(var O=K[B],T=O.length,R,L=0;L<T;++L)if(R=O[L]){for(var M=Q.call(R,R.__data__,L,O),I,f=e0(R,Z),D=0,j=M.length;D<j;++D)if(I=M[D])W3(I,U,Z,D,M,f);W.push(M),z.push(R)}return new u2(W,z,U,Z)}var DN=H3.prototype.constructor;function gK(){return new DN(this._groups,this._parents)}function yN(Q,U){var Z,K,X;return function(){var W=H6(this,Q),z=(this.style.removeProperty(Q),H6(this,Q));return W===z?null:W===Z&&z===K?X:X=U(Z=W,K=z)}}function tL(Q){return function(){this.style.removeProperty(Q)}}function vN(Q,U,Z){var K,X=Z+"",W;return function(){var z=H6(this,Q);return z===X?null:z===K?W:W=U(K=z,Z)}}function EN(Q,U,Z){var K,X,W;return function(){var z=H6(this,Q),B=Z(this),O=B+"";if(B==null)O=B=(this.style.removeProperty(Q),H6(this,Q));return z===O?null:z===K&&O===X?W:(X=O,W=U(K=z,B))}}function bN(Q,U){var Z,K,X,W="style."+U,z="end."+W,B;return function(){var O=W2(this,Q),T=O.on,R=O.value[W]==null?B||(B=tL(U)):void 0;if(T!==Z||X!==R)(K=(Z=T).copy()).on(z,X=R);O.on=K}}function pK(Q,U,Z){var K=(Q+="")==="transform"?fK:HJ;return U==null?this.styleTween(Q,yN(Q,K)).on("end.style."+Q,tL(Q)):typeof U==="function"?this.styleTween(Q,EN(Q,K,r7(this,"style."+Q,U))).each(bN(this._id,Q)):this.styleTween(Q,vN(Q,K,U),Z).on("end.style."+Q,null)}function uN(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function xN(Q,U,Z){var K,X;function W(){var z=U.apply(this,arguments);if(z!==X)K=(X=z)&&uN(Q,z,Z);return K}return W._value=U,W}function cK(Q,U,Z){var K="style."+(Q+="");if(arguments.length<2)return(K=this.tween(K))&&K._value;if(U==null)return this.tween(K,null);if(typeof U!=="function")throw Error();return this.tween(K,xN(Q,U,Z==null?"":Z))}function hN(Q){return function(){this.textContent=Q}}function mN(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function lK(Q){return this.tween("text",typeof Q==="function"?mN(r7(this,"text",Q)):hN(Q==null?"":Q+""))}function gN(Q){return function(U){this.textContent=Q.call(this,U)}}function pN(Q){var U,Z;function K(){var X=Q.apply(this,arguments);if(X!==Z)U=(Z=X)&&gN(X);return U}return K._value=Q,K}function rK(Q){var U="text";if(arguments.length<1)return(U=this.tween(U))&&U._value;if(Q==null)return this.tween(U,null);if(typeof Q!=="function")throw Error();return this.tween(U,pN(Q))}function dK(){var Q=this._name,U=this._id,Z=Tq();for(var K=this._groups,X=K.length,W=0;W<X;++W)for(var z=K[W],B=z.length,O,T=0;T<B;++T)if(O=z[T]){var R=e0(O,U);W3(O,Q,Z,T,z,{time:R.time+R.delay+R.duration,delay:0,duration:R.duration,ease:R.ease})}return new u2(K,this._parents,Q,Z)}function iK(){var Q,U,Z=this,K=Z._id,X=Z.size();return new Promise(function(W,z){var B={value:z},O={value:function(){if(--X===0)W()}};if(Z.each(function(){var T=W2(this,K),R=T.on;if(R!==Q)U=(Q=R).copy(),U._.cancel.push(B),U._.interrupt.push(B),U._.end.push(O);T.on=U}),X===0)W()})}var cN=0;function u2(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function oL(Q){return H3().transition(Q)}function Tq(){return++cN}var z3=H3.prototype;u2.prototype=oL.prototype={constructor:u2,select:hK,selectAll:mK,selectChild:z3.selectChild,selectChildren:z3.selectChildren,filter:EK,merge:bK,selection:gK,transition:dK,call:z3.call,nodes:z3.nodes,node:z3.node,size:z3.size,empty:z3.empty,each:z3.each,on:uK,attr:jK,attrTween:VK,style:pK,styleTween:cK,text:lK,textTween:rK,remove:xK,tween:SK,delay:kK,duration:DK,ease:yK,easeVarying:vK,end:iK,[Symbol.iterator]:z3[Symbol.iterator]};function Rq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var lN={time:null,delay:0,duration:250,ease:Rq};function rN(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function aK(Q){var U,Z;if(Q instanceof u2)U=Q._id,Q=Q._name;else U=Tq(),(Z=lN).time=ZJ(),Q=Q==null?null:Q+"";for(var K=this._groups,X=K.length,W=0;W<X;++W)for(var z=K[W],B=z.length,O,T=0;T<B;++T)if(O=z[T])W3(O,Q,U,T,z,Z||rN(O,U));return new u2(K,this._parents,Q,U)}H3.prototype.interrupt=CK;H3.prototype.transition=aK;var YJ=(Q)=>()=>Q;function sK(Q,{sourceEvent:U,target:Z,transform:K,dispatch:X}){Object.defineProperties(this,{type:{value:Q,enumerable:!0,configurable:!0},sourceEvent:{value:U,enumerable:!0,configurable:!0},target:{value:Z,enumerable:!0,configurable:!0},transform:{value:K,enumerable:!0,configurable:!0},_:{value:X}})}function t5(Q,U,Z){this.k=Q,this.x=U,this.y=Z}t5.prototype={constructor:t5,scale:function(Q){return Q===1?this:new t5(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new t5(this.k,this.x+this.k*Q,this.y+this.k*U)},apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},applyX:function(Q){return Q*this.k+this.x},applyY:function(Q){return Q*this.k+this.y},invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},invertX:function(Q){return(Q-this.x)/this.k},invertY:function(Q){return(Q-this.y)/this.k},rescaleX:function(Q){return Q.copy().domain(Q.range().map(this.invertX,this).map(Q.invert,Q))},rescaleY:function(Q){return Q.copy().domain(Q.range().map(this.invertY,this).map(Q.invert,Q))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var M8=new t5(1,0,0);WJ.prototype=t5.prototype;function WJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return M8;return Q.__zoom}function Oq(Q){Q.stopImmediatePropagation()}function T8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function dN(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function iN(){var Q=this;if(Q instanceof SVGElement){if(Q=Q.ownerSVGElement||Q,Q.hasAttribute("viewBox"))return Q=Q.viewBox.baseVal,[[Q.x,Q.y],[Q.x+Q.width,Q.y+Q.height]];return[[0,0],[Q.width.baseVal.value,Q.height.baseVal.value]]}return[[0,0],[Q.clientWidth,Q.clientHeight]]}function nL(){return this.__zoom||M8}function aN(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function sN(){return navigator.maxTouchPoints||"ontouchstart"in this}function tN(Q,U,Z){var K=Q.invertX(U[0][0])-Z[0][0],X=Q.invertX(U[1][0])-Z[1][0],W=Q.invertY(U[0][1])-Z[0][1],z=Q.invertY(U[1][1])-Z[1][1];return Q.translate(X>K?(K+X)/2:Math.min(0,K)||Math.max(0,X),z>W?(W+z)/2:Math.min(0,W)||Math.max(0,z))}function zJ(){var Q=dN,U=iN,Z=tN,K=aN,X=sN,W=[0,1/0],z=[[-1/0,-1/0],[1/0,1/0]],B=250,O=A8,T=H8("start","zoom","end"),R,L,M,I=500,f=150,D=0,j=10;function k(y){y.property("__zoom",nL).on("wheel.zoom",g,{passive:!1}).on("mousedown.zoom",i).on("dblclick.zoom",m).filter(X).on("touchstart.zoom",J1).on("touchmove.zoom",$1).on("touchend.zoom touchcancel.zoom",d).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(y,E,v,r){var n=y.selection?y.selection():y;if(n.property("__zoom",nL),y!==n)b(y,E,v,r);else n.interrupt().each(function(){x(this,arguments).event(r).start().zoom(null,typeof E==="function"?E.apply(this,arguments):E).end()})},k.scaleBy=function(y,E,v,r){k.scaleTo(y,function(){var n=this.__zoom.k,e=typeof E==="function"?E.apply(this,arguments):E;return n*e},v,r)},k.scaleTo=function(y,E,v,r){k.transform(y,function(){var n=U.apply(this,arguments),e=this.__zoom,V=v==null?C(n):typeof v==="function"?v.apply(this,arguments):v,s=e.invert(V),U1=typeof E==="function"?E.apply(this,arguments):E;return Z(P(h(e,U1),V,s),n,z)},v,r)},k.translateBy=function(y,E,v,r){k.transform(y,function(){return Z(this.__zoom.translate(typeof E==="function"?E.apply(this,arguments):E,typeof v==="function"?v.apply(this,arguments):v),U.apply(this,arguments),z)},null,r)},k.translateTo=function(y,E,v,r,n){k.transform(y,function(){var e=U.apply(this,arguments),V=this.__zoom,s=r==null?C(e):typeof r==="function"?r.apply(this,arguments):r;return Z(M8.translate(s[0],s[1]).scale(V.k).translate(typeof E==="function"?-E.apply(this,arguments):-E,typeof v==="function"?-v.apply(this,arguments):-v),e,z)},r,n)};function h(y,E){return E=Math.max(W[0],Math.min(W[1],E)),E===y.k?y:new t5(E,y.x,y.y)}function P(y,E,v){var r=E[0]-v[0]*y.k,n=E[1]-v[1]*y.k;return r===y.x&&n===y.y?y:new t5(y.k,r,n)}function C(y){return[(+y[0][0]+ +y[1][0])/2,(+y[0][1]+ +y[1][1])/2]}function b(y,E,v,r){y.on("start.zoom",function(){x(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(r).end()}).tween("zoom",function(){var n=this,e=arguments,V=x(n,e).event(r),s=U.apply(n,e),U1=v==null?C(s):typeof v==="function"?v.apply(n,e):v,Q1=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),Y1=n.__zoom,L1=typeof E==="function"?E.apply(n,e):E,M1=O(Y1.invert(U1).concat(Q1/Y1.k),L1.invert(U1).concat(Q1/L1.k));return function(I1){if(I1===1)I1=L1;else{var X1=M1(I1),f1=Q1/X1[2];I1=new t5(f1,U1[0]-X1[0]*f1,U1[1]-X1[1]*f1)}V.zoom(null,I1)}})}function x(y,E,v){return!v&&y.__zooming||new u(y,E)}function u(y,E){this.that=y,this.args=E,this.active=0,this.sourceEvent=null,this.extent=U.apply(y,E),this.taps=0}u.prototype={event:function(y){if(y)this.sourceEvent=y;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(y,E){if(this.mouse&&y!=="mouse")this.mouse[1]=E.invert(this.mouse[0]);if(this.touch0&&y!=="touch")this.touch0[1]=E.invert(this.touch0[0]);if(this.touch1&&y!=="touch")this.touch1[1]=E.invert(this.touch1[0]);return this.that.__zoom=E,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(y){var E=n0(this.that).datum();T.call(y,this.that,new sK(y,{sourceEvent:this.sourceEvent,target:k,type:y,transform:this.that.__zoom,dispatch:T}),E)}};function g(y,...E){if(!Q.apply(this,arguments))return;var v=x(this,E).event(y),r=this.__zoom,n=Math.max(W[0],Math.min(W[1],r.k*Math.pow(2,K.apply(this,arguments)))),e=O2(y);if(v.wheel){if(v.mouse[0][0]!==e[0]||v.mouse[0][1]!==e[1])v.mouse[1]=r.invert(v.mouse[0]=e);clearTimeout(v.wheel)}else if(r.k===n)return;else v.mouse=[e,r.invert(e)],Y6(this),v.start();T8(y),v.wheel=setTimeout(V,f),v.zoom("mouse",Z(P(h(r,n),v.mouse[0],v.mouse[1]),v.extent,z));function V(){v.wheel=null,v.end()}}function i(y,...E){if(M||!Q.apply(this,arguments))return;var v=y.currentTarget,r=x(this,E,!0).event(y),n=n0(y.view).on("mousemove.zoom",U1,!0).on("mouseup.zoom",Q1,!0),e=O2(y,v),V=y.clientX,s=y.clientY;m7(y.view),Oq(y),r.mouse=[e,this.__zoom.invert(e)],Y6(this),r.start();function U1(Y1){if(T8(Y1),!r.moved){var L1=Y1.clientX-V,M1=Y1.clientY-s;r.moved=L1*L1+M1*M1>D}r.event(Y1).zoom("mouse",Z(P(r.that.__zoom,r.mouse[0]=O2(Y1,v),r.mouse[1]),r.extent,z))}function Q1(Y1){n.on("mousemove.zoom mouseup.zoom",null),i_(Y1.view,r.moved),T8(Y1),r.event(Y1).end()}}function m(y,...E){if(!Q.apply(this,arguments))return;var v=this.__zoom,r=O2(y.changedTouches?y.changedTouches[0]:y,this),n=v.invert(r),e=v.k*(y.shiftKey?0.5:2),V=Z(P(h(v,e),r,n),U.apply(this,E),z);if(T8(y),B>0)n0(this).transition().duration(B).call(b,V,r,y);else n0(this).call(k.transform,V,r,y)}function J1(y,...E){if(!Q.apply(this,arguments))return;var v=y.touches,r=v.length,n=x(this,E,y.changedTouches.length===r).event(y),e,V,s,U1;Oq(y);for(V=0;V<r;++V)if(s=v[V],U1=O2(s,this),U1=[U1,this.__zoom.invert(U1),s.identifier],!n.touch0)n.touch0=U1,e=!0,n.taps=1+!!R;else if(!n.touch1&&n.touch0[2]!==U1[2])n.touch1=U1,n.taps=0;if(R)R=clearTimeout(R);if(e){if(n.taps<2)L=U1[0],R=setTimeout(function(){R=null},I);Y6(this),n.start()}}function $1(y,...E){if(!this.__zooming)return;var v=x(this,E).event(y),r=y.changedTouches,n=r.length,e,V,s,U1;T8(y);for(e=0;e<n;++e)if(V=r[e],s=O2(V,this),v.touch0&&v.touch0[2]===V.identifier)v.touch0[0]=s;else if(v.touch1&&v.touch1[2]===V.identifier)v.touch1[0]=s;if(V=v.that.__zoom,v.touch1){var Q1=v.touch0[0],Y1=v.touch0[1],L1=v.touch1[0],M1=v.touch1[1],I1=(I1=L1[0]-Q1[0])*I1+(I1=L1[1]-Q1[1])*I1,X1=(X1=M1[0]-Y1[0])*X1+(X1=M1[1]-Y1[1])*X1;V=h(V,Math.sqrt(I1/X1)),s=[(Q1[0]+L1[0])/2,(Q1[1]+L1[1])/2],U1=[(Y1[0]+M1[0])/2,(Y1[1]+M1[1])/2]}else if(v.touch0)s=v.touch0[0],U1=v.touch0[1];else return;v.zoom("touch",Z(P(V,s,U1),v.extent,z))}function d(y,...E){if(!this.__zooming)return;var v=x(this,E).event(y),r=y.changedTouches,n=r.length,e,V;if(Oq(y),M)clearTimeout(M);M=setTimeout(function(){M=null},I);for(e=0;e<n;++e)if(V=r[e],v.touch0&&v.touch0[2]===V.identifier)delete v.touch0;else if(v.touch1&&v.touch1[2]===V.identifier)delete v.touch1;if(v.touch1&&!v.touch0)v.touch0=v.touch1,delete v.touch1;if(v.touch0)v.touch0[1]=this.__zoom.invert(v.touch0[0]);else if(v.end(),v.taps===2){if(V=O2(V,this),Math.hypot(L[0]-V[0],L[1]-V[1])<j){var s=n0(this).on("dblclick.zoom");if(s)s.apply(this,arguments)}}}return k.wheelDelta=function(y){return arguments.length?(K=typeof y==="function"?y:YJ(+y),k):K},k.filter=function(y){return arguments.length?(Q=typeof y==="function"?y:YJ(!!y),k):Q},k.touchable=function(y){return arguments.length?(X=typeof y==="function"?y:YJ(!!y),k):X},k.extent=function(y){return arguments.length?(U=typeof y==="function"?y:YJ([[+y[0][0],+y[0][1]],[+y[1][0],+y[1][1]]]),k):U},k.scaleExtent=function(y){return arguments.length?(W[0]=+y[0],W[1]=+y[1],k):[W[0],W[1]]},k.translateExtent=function(y){return arguments.length?(z[0][0]=+y[0][0],z[1][0]=+y[1][0],z[0][1]=+y[0][1],z[1][1]=+y[1][1],k):[[z[0][0],z[0][1]],[z[1][0],z[1][1]]]},k.constrain=function(y){return arguments.length?(Z=y,k):Z},k.duration=function(y){return arguments.length?(B=+y,k):B},k.interpolate=function(y){return arguments.length?(O=y,k):O},k.on=function(){var y=T.on.apply(T,arguments);return y===T?k:y},k.clickDistance=function(y){return arguments.length?(D=(y=+y)*y,k):Math.sqrt(D)},k.tapDistance=function(y){return arguments.length?(j=+y,k):j},k}var x2={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:K}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},s7=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],_X=["Enter"," ","Escape"],JX={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:Q,x:U,y:Z})=>`Moved selected node ${Q}. New position, x: ${U}, y: ${Z}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"},A6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(A6||(A6={}));var B3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(B3||(B3={}));var R8;(function(Q){Q.Partial="partial",Q.Full="full"})(R8||(R8={}));var $X={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},y4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(y4||(y4={}));var i7;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(i7||(i7={}));var C1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(C1||(C1={}));var eL={[C1.Left]:C1.Right,[C1.Right]:C1.Left,[C1.Top]:C1.Bottom,[C1.Bottom]:C1.Top},QX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),WM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),qX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var AJ=(Q,U=[0,0])=>{let{width:Z,height:K}=y5(Q),X=Q.origin??U,W=Z*X[0],z=K*X[1];return{x:Q.position.x-W,y:Q.position.y-z}},UX=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,K=Q.reduce((X,W)=>{let z=typeof W==="string",B=!U.nodeLookup&&!z?W:void 0;if(U.nodeLookup)B=z?U.nodeLookup.get(W):!qX(W)?U.nodeLookup.get(W.id):W;if(!B)return X;return Z=!0,Cq(X,fq(B,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?Sq(K):{x:0,y:0,width:0,height:0}},f8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},K=!1;return Q.forEach((X)=>{if(U.filter===void 0||U.filter(X))Z=Cq(Z,fq(X)),K=!0}),K?Sq(Z):{x:0,y:0,width:0,height:0}},Pq=(Q,U,[Z,K,X]=[0,0,1],W=!1,z=!1)=>{let B=(U.x-Z)/X,O=(U.y-K)/X,T=U.width/X,R=U.height/X,L=[];for(let M of Q.values()){let{measured:I,selectable:f=!0,hidden:D=!1}=M;if(z&&!f||D)continue;let j=I.width??M.width??M.initialWidth??0,k=I.height??M.height??M.initialHeight??0,{x:h,y:P}=M.internals.positionAbsolute,C=MM(B,O,T,R,h,P,j,k),b=j*k,x=W&&C>0;if(!M.internals.handleBounds||x||C>=b||M.dragging)L.push(M)}return L},zM=(Q,U)=>{let Z=new Set;return Q.forEach((K)=>{Z.add(K.id)}),U.filter((K)=>Z.has(K.source)||Z.has(K.target))};function oN(Q,U){let Z=new Map,K=U?.nodes?new Set(U.nodes.map((X)=>X.id)):null;return Q.forEach((X)=>{let W;if(U?.includeHiddenNodes){let{width:z,height:B}=y5(X);W=z>0&&B>0}else W=Boolean(X.measured.width&&X.measured.height&&!X.hidden);if(W&&(!K||K.has(X.id)))Z.set(X.id,X)}),Z}async function BM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:X,maxZoom:W},z){if(Q.size===0)return!0;let B=oN(Q,z),O=f8(B),T=MJ(O,U,Z,z?.minZoom??X,z?.maxZoom??W,z?.padding??0.1);return await K.setViewport(T,{duration:z?.duration,ease:z?.ease,interpolate:z?.interpolate}),!0}function GX({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:K=[0,0],nodeExtent:X,onError:W}){let z=Z.get(Q),B=z.parentId?Z.get(z.parentId):void 0,{x:O,y:T}=B?B.internals.positionAbsolute:{x:0,y:0},R=z.origin??K,L=z.extent||X;if(z.extent==="parent"&&!z.expandParent)if(!B)W?.("005",x2.error005());else{let{width:I,height:f}=y5(B);if(I&&f)L=[[O,T],[O+I,T+f]]}else if(B&&I8(z.extent))L=[[z.extent[0][0]+O,z.extent[0][1]+T],[z.extent[1][0]+O,z.extent[1][1]+T]];let M=I8(L)?O8(U,L,z.measured):U;if(z.measured.width===void 0||z.measured.height===void 0)W?.("015",x2.error015());return{position:{x:M.x-O+(z.measured.width??0)*R[0],y:M.y-T+(z.measured.height??0)*R[1]},positionAbsolute:M}}async function AM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:X}){let W=new Set(Q.map((M)=>M.id)),z=[];for(let M of Z){if(M.deletable===!1)continue;let I=W.has(M.id),f=!I&&M.parentId&&z.find((D)=>D.id===M.parentId);if(I||f)z.push(M)}let B=new Set(U.map((M)=>M.id)),O=K.filter((M)=>M.deletable!==!1),R=zM(z,O);for(let M of O)if(B.has(M.id)&&!R.find((f)=>f.id===M.id))R.push(M);if(!X)return{edges:R,nodes:z};let L=await X({nodes:z,edges:R});if(typeof L==="boolean")return L?{edges:R,nodes:z}:{edges:[],nodes:[]};return L}var a7=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),O8=(Q={x:0,y:0},U,Z)=>({x:a7(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:a7(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function LM(Q,U,Z){let{width:K,height:X}=y5(Z),{x:W,y:z}=Z.internals.positionAbsolute;return O8(Q,[[W,z],[W+K,z+X]],U)}var _M=(Q,U,Z)=>{if(Q<U)return a7(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-a7(Math.abs(Q-Z),1,U)/U;return 0},Nq=(Q,U,Z=15,K=40)=>{let X=_M(Q.x,K,U.width-K)*Z,W=_M(Q.y,K,U.height-K)*Z;return[X,W]},Cq=(Q,U)=>({x:Math.min(Q.x,U.x),y:Math.min(Q.y,U.y),x2:Math.max(Q.x2,U.x2),y2:Math.max(Q.y2,U.y2)}),eK=({x:Q,y:U,width:Z,height:K})=>({x:Q,y:U,x2:Q+Z,y2:U+K}),Sq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),t7=(Q,U=[0,0])=>{let{x:Z,y:K}=qX(Q)?Q.internals.positionAbsolute:AJ(Q,U);return{x:Z,y:K,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},fq=(Q,U=[0,0])=>{let{x:Z,y:K}=qX(Q)?Q.internals.positionAbsolute:AJ(Q,U);return{x:Z,y:K,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},ZX=(Q,U)=>Sq(Cq(eK(Q),eK(U))),MM=(Q,U,Z,K,X,W,z,B)=>{let O=Math.max(0,Math.min(Q+Z,X+z)-Math.max(Q,X)),T=Math.max(0,Math.min(U+K,W+B)-Math.max(U,W));return Math.ceil(O*T)},LJ=(Q,U)=>MM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),FX=(Q)=>k5(Q.width)&&k5(Q.height)&&k5(Q.x)&&k5(Q.y),k5=(Q)=>!isNaN(Q)&&isFinite(Q),KX=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},o7=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},n7=({x:Q,y:U},[Z,K,X],W=!1,z=[1,1])=>{let B={x:(Q-Z)/X,y:(U-K)/X};return W?o7(B,z):B},w8=({x:Q,y:U},[Z,K,X])=>{return{x:Q*X+Z,y:U*X+K}};function d7(Q,U){if(typeof Q==="number")return Math.floor((U-U/(1+Q))*0.5);if(typeof Q==="string"&&Q.endsWith("px")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(Z)}if(typeof Q==="string"&&Q.endsWith("%")){let Z=parseFloat(Q);if(!Number.isNaN(Z))return Math.floor(U*Z*0.01)}return console.error(`The padding value "${Q}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function nN(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=d7(Q,Z),X=d7(Q,U);return{top:K,right:X,bottom:K,left:X,x:X*2,y:K*2}}if(typeof Q==="object"){let K=d7(Q.top??Q.y??0,Z),X=d7(Q.bottom??Q.y??0,Z),W=d7(Q.left??Q.x??0,U),z=d7(Q.right??Q.x??0,U);return{top:K,right:z,bottom:X,left:W,x:W+z,y:K+X}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function eN(Q,U,Z,K,X,W){let{x:z,y:B}=w8(Q,[U,Z,K]),{x:O,y:T}=w8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),R=X-O,L=W-T;return{left:Math.floor(z),top:Math.floor(B),right:Math.floor(R),bottom:Math.floor(L)}}var MJ=(Q,U,Z,K,X,W)=>{let z=nN(W,U,Z),B=(U-z.x)/Q.width,O=(Z-z.y)/Q.height,T=Math.min(B,O),R=a7(T,K,X),L=Q.x+Q.width/2,M=Q.y+Q.height/2,I=U/2-L*R,f=Z/2-M*R,D=eN(Q,I,f,R,U,Z),j={left:Math.min(D.left-z.left,0),top:Math.min(D.top-z.top,0),right:Math.min(D.right-z.right,0),bottom:Math.min(D.bottom-z.bottom,0)};return{x:I-j.left+j.right,y:f-j.top+j.bottom,zoom:R}},e7=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function I8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function y5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function XX(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function HX(Q,U={width:0,height:0},Z,K,X){let W={...Q},z=K.get(Z);if(z){let B=z.origin||X;W.x+=z.internals.positionAbsolute.x-(U.width??0)*B[0],W.y+=z.internals.positionAbsolute.y-(U.height??0)*B[1]}return W}function YX(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function TM(){let Q,U;return{promise:new Promise((K,X)=>{Q=K,U=X}),resolve:Q,reject:U}}function RM(Q){return{...JX,...Q||{}}}function _C(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let K=U.getBoundingClientRect();if(K.width===0&&K.height===0)return!0;let X=document.querySelector(`.${Q}-flow__attribution`);if(!X||!X.isConnected)return!1;let W=getComputedStyle(X);if(W.display==="none")return!1;if(W.visibility==="hidden"||W.visibility==="collapse")return!1;if(W.opacity==="0")return!1;let z=X.getBoundingClientRect();if(z.width===0&&z.height===0)return!1;return!0}var JM=!1;function OM(Q){if(JM)return;JM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!_C(Q))console.warn(`${U}: It seems like you are hiding the attribution. Please only do this when you are subscribed to ${U} Pro: https://${Q}flow.dev/remove-attr
241
+ %cYou can ignore this warning if you are subscribed.`,"font-style: italic;")},1000)}function WX(Q){return Q===null?null:Q?"valid":"invalid"}function BJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:X}){let{x:W,y:z}=D5(Q),B=n7({x:W-(X?.left??0),y:z-(X?.top??0)},K),{x:O,y:T}=Z?o7(B,U):B;return{xSnapped:O,ySnapped:T,...B}}var jq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),zX=(Q)=>Q?.getRootNode?.()||window?.document,JC=["INPUT","SELECT","TEXTAREA"];function BX(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return JC.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var AX=(Q)=>("clientX"in Q),D5=(Q,U)=>{let Z=AX(Q),K=Z?Q.clientX:Q.touches?.[0].clientX,X=Z?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:X-(U?.top??0)}},$M=(Q,U,Z,K,X)=>{let W=U.querySelectorAll(`.${Q}`);if(!W||!W.length)return null;return Array.from(W).map((z)=>{let B=z.getBoundingClientRect();return{id:z.getAttribute("data-handleid"),type:Q,nodeId:X,position:z.getAttribute("data-handlepos"),x:(B.left-Z.left)/K,y:(B.top-Z.top)/K,...jq(z)}})};function Vq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,sourceControlX:X,sourceControlY:W,targetControlX:z,targetControlY:B}){let O=Q*0.125+X*0.375+z*0.375+Z*0.125,T=U*0.125+W*0.375+B*0.375+K*0.125,R=Math.abs(O-Q),L=Math.abs(T-U);return[O,T,R,L]}function wq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function QM({pos:Q,x1:U,y1:Z,x2:K,y2:X,c:W}){switch(Q){case C1.Left:return[U-wq(U-K,W),Z];case C1.Right:return[U+wq(K-U,W),Z];case C1.Top:return[U,Z-wq(Z-X,W)];case C1.Bottom:return[U,Z+wq(X-Z,W)]}}function kq({sourceX:Q,sourceY:U,sourcePosition:Z=C1.Bottom,targetX:K,targetY:X,targetPosition:W=C1.Top,curvature:z=0.25}){let[B,O]=QM({pos:Z,x1:Q,y1:U,x2:K,y2:X,c:z}),[T,R]=QM({pos:W,x1:K,y1:X,x2:Q,y2:U,c:z}),[L,M,I,f]=Vq({sourceX:Q,sourceY:U,targetX:K,targetY:X,sourceControlX:B,sourceControlY:O,targetControlX:T,targetControlY:R});return[`M${Q},${U} C${B},${O} ${T},${R} ${K},${X}`,L,M,I,f]}function LX({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let X=Math.abs(Z-Q)/2,W=Z<Q?Z+X:Z-X,z=Math.abs(K-U)/2,B=K<U?K+z:K-z;return[W,B,X,z]}function wM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:K=0,elevateOnSelect:X=!1,zIndexMode:W="basic"}){if(W==="manual")return K;let z=X&&Z?K+1000:K,B=Math.max(Q.parentId||X&&Q.selected?Q.internals.z:0,U.parentId||X&&U.selected?U.internals.z:0);return z+B}function IM({sourceNode:Q,targetNode:U,width:Z,height:K,transform:X}){let W=Cq(fq(Q),fq(U));if(W.x===W.x2)W.x2+=1;if(W.y===W.y2)W.y2+=1;let z={x:-X[0]/X[2],y:-X[1]/X[2],width:Z/X[2],height:K/X[2]};return LJ(z,Sq(W))>0}var $C=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,QC=(Q,U)=>{return U.some((Z)=>Z.source===Q.source&&Z.target===Q.target&&(Z.sourceHandle===Q.sourceHandle||!Z.sourceHandle&&!Q.sourceHandle)&&(Z.targetHandle===Q.targetHandle||!Z.targetHandle&&!Q.targetHandle))},fM=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",x2.error006()),U;let K=Z.getEdgeId||$C,X;if(QX(Q))X={...Q};else X={...Q,id:K(Q)};if(QC(X,U))return U;if(X.sourceHandle===null)delete X.sourceHandle;if(X.targetHandle===null)delete X.targetHandle;return U.concat(X)};function Dq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[X,W,z,B]=LX({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,X,W,z,B]}var qM={[C1.Left]:{x:-1,y:0},[C1.Right]:{x:1,y:0},[C1.Top]:{x:0,y:-1},[C1.Bottom]:{x:0,y:1}},qC=({source:Q,sourcePosition:U=C1.Bottom,target:Z})=>{if(U===C1.Left||U===C1.Right)return Q.x<Z.x?{x:1,y:0}:{x:-1,y:0};return Q.y<Z.y?{x:0,y:1}:{x:0,y:-1}},UM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function UC({source:Q,sourcePosition:U=C1.Bottom,target:Z,targetPosition:K=C1.Top,center:X,offset:W,stepPosition:z}){let B=qM[U],O=qM[K],T={x:Q.x+B.x*W,y:Q.y+B.y*W},R={x:Z.x+O.x*W,y:Z.y+O.y*W},L=qC({source:T,sourcePosition:U,target:R}),M=L.x!==0?"x":"y",I=L[M],f=[],D,j,k={x:0,y:0},h={x:0,y:0},[,,P,C]=LX({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(B[M]*O[M]===-1){if(M==="x")D=X.x??T.x+(R.x-T.x)*z,j=X.y??(T.y+R.y)/2;else D=X.x??(T.x+R.x)/2,j=X.y??T.y+(R.y-T.y)*z;let g=[{x:D,y:T.y},{x:D,y:R.y}],i=[{x:T.x,y:j},{x:R.x,y:j}];if(B[M]===I)f=M==="x"?g:i;else f=M==="x"?i:g}else{let g=[{x:T.x,y:R.y}],i=[{x:R.x,y:T.y}];if(M==="x")f=B.x===I?i:g;else f=B.y===I?g:i;if(U===K){let y=Math.abs(Q[M]-Z[M]);if(y<=W){let E=Math.min(W-1,W-y);if(B[M]===I)k[M]=(T[M]>Q[M]?-1:1)*E;else h[M]=(R[M]>Z[M]?-1:1)*E}}if(U!==K){let y=M==="x"?"y":"x",E=B[M]===O[y],v=T[y]>R[y],r=T[y]<R[y];if(B[M]===1&&(!E&&v||E&&r)||B[M]!==1&&(!E&&r||E&&v))f=M==="x"?g:i}let m={x:T.x+k.x,y:T.y+k.y},J1={x:R.x+h.x,y:R.y+h.y},$1=Math.max(Math.abs(m.x-f[0].x),Math.abs(J1.x-f[0].x)),d=Math.max(Math.abs(m.y-f[0].y),Math.abs(J1.y-f[0].y));if($1>=d)D=(m.x+J1.x)/2,j=f[0].y;else D=f[0].x,j=(m.y+J1.y)/2}let b={x:T.x+k.x,y:T.y+k.y},x={x:R.x+h.x,y:R.y+h.y};return[[Q,...b.x!==f[0].x||b.y!==f[0].y?[b]:[],...f,...x.x!==f[f.length-1].x||x.y!==f[f.length-1].y?[x]:[],Z],D,j,P,C]}function GC(Q,U,Z,K){let X=Math.min(UM(Q,U)/2,UM(U,Z)/2,K),{x:W,y:z}=U;if(Q.x===W&&W===Z.x||Q.y===z&&z===Z.y)return`L${W} ${z}`;if(Q.y===z){let T=Q.x<Z.x?-1:1,R=Q.y<Z.y?1:-1;return`L ${W+X*T},${z}Q ${W},${z} ${W},${z+X*R}`}let B=Q.x<Z.x?1:-1,O=Q.y<Z.y?-1:1;return`L ${W},${z+X*O}Q ${W},${z} ${W+X*B},${z}`}function TJ({sourceX:Q,sourceY:U,sourcePosition:Z=C1.Bottom,targetX:K,targetY:X,targetPosition:W=C1.Top,borderRadius:z=5,centerX:B,centerY:O,offset:T=20,stepPosition:R=0.5}){let[L,M,I,f,D]=UC({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:X},targetPosition:W,center:{x:B,y:O},offset:T,stepPosition:R}),j=`M${L[0].x} ${L[0].y}`;for(let k=1;k<L.length-1;k++)j+=GC(L[k-1],L[k],L[k+1],z);return j+=`L${L[L.length-1].x} ${L[L.length-1].y}`,[j,M,I,f,D]}function GM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function PM(Q){let{sourceNode:U,targetNode:Z}=Q;if(!GM(U)||!GM(Z))return null;let K=U.internals.handleBounds||ZM(U.handles),X=Z.internals.handleBounds||ZM(Z.handles),W=FM(K?.source??[],Q.sourceHandle),z=FM(Q.connectionMode===A6.Strict?X?.target??[]:(X?.target??[]).concat(X?.source??[]),Q.targetHandle);if(!W||!z)return Q.onError?.("008",x2.error008(!W?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let B=W?.position||C1.Bottom,O=z?.position||C1.Top,T=L6(U,W,B),R=L6(Z,z,O);return{sourceX:T.x,sourceY:T.y,targetX:R.x,targetY:R.y,sourcePosition:B,targetPosition:O}}function ZM(Q){if(!Q)return null;let U=[],Z=[];for(let K of Q)if(K.width=K.width??1,K.height=K.height??1,K.type==="source")U.push(K);else if(K.type==="target")Z.push(K);return{source:U,target:Z}}function L6(Q,U,Z=C1.Left,K=!1){let X=(U?.x??0)+Q.internals.positionAbsolute.x,W=(U?.y??0)+Q.internals.positionAbsolute.y,{width:z,height:B}=U??y5(Q);if(K)return{x:X+z/2,y:W+B/2};switch(U?.position??Z){case C1.Top:return{x:X+z/2,y:W};case C1.Right:return{x:X+z,y:W+B/2};case C1.Bottom:return{x:X+z/2,y:W+B};case C1.Left:return{x:X,y:W+B/2}}}function FM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function yq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((K)=>`${K}=${Q[K]}`).join("&")}`}function NM(Q,{id:U,defaultColor:Z,defaultMarkerStart:K,defaultMarkerEnd:X}){let W=new Set;return Q.reduce((z,B)=>{return[B.markerStart||K,B.markerEnd||X].forEach((O)=>{if(O&&typeof O==="object"){let T=yq(O,U);if(!W.has(T))z.push({id:T,color:O.color||Z,...O}),W.add(T)}}),z},[]).sort((z,B)=>z.id.localeCompare(B.id))}function CM(Q,U,Z,K,X){let W=0.5;if(X==="start")W=0;else if(X==="end")W=1;let z=[(Q.x+Q.width*W)*U.zoom+U.x,Q.y*U.zoom+U.y-K],B=[-100*W,-100];switch(Z){case C1.Right:z=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*W)*U.zoom+U.y],B=[0,-100*W];break;case C1.Bottom:z[1]=(Q.y+Q.height)*U.zoom+U.y+K,B[1]=0;break;case C1.Left:z=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*W)*U.zoom+U.y],B=[-100,-100*W];break}return`translate(${z[0]}px, ${z[1]}px) translate(${B[0]}%, ${B[1]}%)`}var SM=1000,ZC=10,MX={nodeOrigin:[0,0],nodeExtent:s7,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},FC={...MX,checkEquality:!0};function TX(Q,U){let Z={...Q};for(let K in U)if(U[K]!==void 0)Z[K]=U[K];return Z}function jM(Q,U,Z){let K=TX(MX,Z);for(let X of Q.values())if(X.parentId)OX(X,Q,U,K);else{let W=AJ(X,K.nodeOrigin),z=I8(X.extent)?X.extent:K.nodeExtent,B=O8(W,z,y5(X));X.internals.positionAbsolute=B}}function KC(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],K=[];for(let X of Q.handles){let W={id:X.id,width:X.width??1,height:X.height??1,nodeId:Q.id,x:X.x,y:X.y,position:X.position,type:X.type};if(X.type==="source")Z.push(W);else if(X.type==="target")K.push(W)}return{source:Z,target:K}}function RX(Q){return Q==="manual"}function vq(Q,U,Z,K={}){let X=TX(FC,K),W={i:0},z=new Map(U),B=X?.elevateNodesOnSelect&&!RX(X.zIndexMode)?SM:0,O=Q.length>0,T=!1;U.clear(),Z.clear();for(let R of Q){let L=z.get(R.id);if(X.checkEquality&&R===L?.internals.userNode)U.set(R.id,L);else{let M=AJ(R,X.nodeOrigin),I=I8(R.extent)?R.extent:X.nodeExtent,f=O8(M,I,y5(R));L={...X.defaults,...R,measured:{width:R.measured?.width,height:R.measured?.height},internals:{positionAbsolute:f,handleBounds:KC(R,L),z:VM(R,B,X.zIndexMode),userNode:R}},U.set(R.id,L)}if((L.measured===void 0||L.measured.width===void 0||L.measured.height===void 0)&&!L.hidden)O=!1;if(R.parentId)OX(L,U,Z,K,W);T||=R.selected??!1}return{nodesInitialized:O,hasSelectedNodes:T}}function XC(Q,U){if(!Q.parentId)return;let Z=U.get(Q.parentId);if(Z)Z.set(Q.id,Q);else U.set(Q.parentId,new Map([[Q.id,Q]]))}function OX(Q,U,Z,K,X){let{elevateNodesOnSelect:W,nodeOrigin:z,nodeExtent:B,zIndexMode:O}=TX(MX,K),T=Q.parentId,R=U.get(T);if(!R){console.warn(`Parent node ${T} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(XC(Q,Z),X&&!R.parentId&&R.internals.rootParentIndex===void 0&&O==="auto")R.internals.rootParentIndex=++X.i,R.internals.z=R.internals.z+X.i*ZC;if(X&&R.internals.rootParentIndex!==void 0)X.i=R.internals.rootParentIndex;let L=W&&!RX(O)?SM:0,{x:M,y:I,z:f}=HC(Q,R,z,B,L,O),{positionAbsolute:D}=Q.internals,j=M!==D.x||I!==D.y;if(j||f!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:j?{x:M,y:I}:D,z:f}})}function VM(Q,U,Z){let K=k5(Q.zIndex)?Q.zIndex:0;if(RX(Z))return K;return K+(Q.selected?U:0)}function HC(Q,U,Z,K,X,W){let{x:z,y:B}=U.internals.positionAbsolute,O=y5(Q),T=AJ(Q,Z),R=I8(Q.extent)?O8(T,Q.extent,O):T,L=O8({x:z+R.x,y:B+R.y},K,O);if(Q.extent==="parent")L=LM(L,O,U);let M=VM(Q,X,W),I=U.internals.z??0;return{x:L.x,y:L.y,z:I>=M?I+1:M}}function Eq(Q,U,Z,K=[0,0]){let X=[],W=new Map;for(let z of Q){let B=U.get(z.parentId);if(!B)continue;let O=W.get(z.parentId)?.expandedRect??t7(B),T=ZX(O,z.rect);W.set(z.parentId,{expandedRect:T,parent:B})}if(W.size>0)W.forEach(({expandedRect:z,parent:B},O)=>{let T=B.internals.positionAbsolute,R=y5(B),L=B.origin??K,M=z.x<T.x?Math.round(Math.abs(T.x-z.x)):0,I=z.y<T.y?Math.round(Math.abs(T.y-z.y)):0,f=Math.max(R.width,Math.round(z.width)),D=Math.max(R.height,Math.round(z.height)),j=(f-R.width)*L[0],k=(D-R.height)*L[1];if(M>0||I>0||j||k)X.push({id:O,type:"position",position:{x:B.position.x-M+j,y:B.position.y-I+k}}),Z.get(O)?.forEach((h)=>{if(!Q.some((P)=>P.id===h.id))X.push({id:h.id,type:"position",position:{x:h.position.x+M,y:h.position.y+I}})});if(R.width<z.width||R.height<z.height||M||I)X.push({id:O,type:"dimensions",setAttributes:!0,dimensions:{width:f+(M?L[0]*M-j:0),height:D+(I?L[1]*I-k:0)}})});return X}function kM(Q,U,Z,K,X,W,z){let B=K?.querySelector(".xyflow__viewport"),O=!1;if(!B)return{changes:[],updatedInternals:O};let T=[],R=window.getComputedStyle(B),{m22:L}=new window.DOMMatrixReadOnly(R.transform),M=[];for(let I of Q.values()){let f=U.get(I.id);if(!f)continue;if(f.hidden){U.set(f.id,{...f,internals:{...f.internals,handleBounds:void 0}}),O=!0;continue}let D=jq(I.nodeElement),j=f.measured.width!==D.width||f.measured.height!==D.height;if(!!(D.width&&D.height&&(j||!f.internals.handleBounds||I.force))){let h=I.nodeElement.getBoundingClientRect(),P=I8(f.extent)?f.extent:W,{positionAbsolute:C}=f.internals;if(f.parentId&&f.extent==="parent"){let x=U.get(f.parentId);if(x)C=LM(C,D,x)}else if(P)C=O8(C,P,D);let b={...f,measured:D,internals:{...f.internals,positionAbsolute:C,handleBounds:{source:$M("source",I.nodeElement,h,L,f.id),target:$M("target",I.nodeElement,h,L,f.id)}}};if(U.set(f.id,b),f.parentId)OX(b,U,Z,{nodeOrigin:X,zIndexMode:z});if(O=!0,j){if(T.push({id:f.id,type:"dimensions",dimensions:D}),f.expandParent&&f.parentId)M.push({id:f.id,parentId:f.parentId,rect:t7(b,X)})}}}if(M.length>0){let I=Eq(M,U,Z,X);T.push(...I)}return{changes:T,updatedInternals:O}}async function DM({delta:Q,panZoom:U,transform:Z,translateExtent:K,width:X,height:W}){if(!U||!Q.x&&!Q.y)return!1;let z=await U.setViewportConstrained({x:Z[0]+Q.x,y:Z[1]+Q.y,zoom:Z[2]},[[0,0],[X,W]],K);return!!z&&(z.x!==Z[0]||z.y!==Z[1]||z.k!==Z[2])}function KM(Q,U,Z,K,X,W){let z=X,B=K.get(z)||new Map;K.set(z,B.set(Z,U)),z=`${X}-${Q}`;let O=K.get(z)||new Map;if(K.set(z,O.set(Z,U)),W){z=`${X}-${Q}-${W}`;let T=K.get(z)||new Map;K.set(z,T.set(Z,U))}}function wX(Q,U,Z){Q.clear(),U.clear();for(let K of Z){let{source:X,target:W,sourceHandle:z=null,targetHandle:B=null}=K,O={edgeId:K.id,source:X,target:W,sourceHandle:z,targetHandle:B},T=`${X}-${z}--${W}-${B}`,R=`${W}-${B}--${X}-${z}`;KM("source",O,R,Q,X,z),KM("target",O,T,Q,W,B),U.set(K.id,K)}}function yM(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return yM(Z,U)}function XM(Q,U,Z){let K=Q;do{if(K?.matches?.(U))return!0;if(K===Z)return!1;K=K?.parentElement}while(K);return!1}function YC(Q,U,Z,K){let X=new Map;for(let[W,z]of Q)if((z.selected||z.id===K)&&(!z.parentId||!yM(z,Q))&&(z.draggable||U&&typeof z.draggable>"u")){let B=Q.get(W);if(B)X.set(W,{id:W,position:B.position||{x:0,y:0},distance:{x:Z.x-B.internals.positionAbsolute.x,y:Z.y-B.internals.positionAbsolute.y},extent:B.extent,parentId:B.parentId,origin:B.origin,expandParent:B.expandParent,internals:{positionAbsolute:B.internals.positionAbsolute||{x:0,y:0}},measured:{width:B.measured.width??0,height:B.measured.height??0}})}return X}function tK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!0}){let X=[];for(let[z,B]of U){let O=Z.get(z)?.internals.userNode;if(O)X.push({...O,position:B.position,dragging:K})}if(!Q)return[X[0],X];let W=Z.get(Q)?.internals.userNode;return[!W?X[0]:{...W,position:U.get(Q)?.position||W.position,dragging:K},X]}function WC({dragItems:Q,snapGrid:U,x:Z,y:K}){let X=Q.values().next().value;if(!X)return null;let W={x:Z-X.distance.x,y:K-X.distance.y},z=o7(W,U);return{x:z.x-W.x,y:z.y-W.y}}function vM({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,onDragStop:X}){let W={x:null,y:null},z=0,B=new Map,O=!1,T={x:0,y:0},R=null,L=!1,M=null,I=!1,f=!1,D=null;function j({noDragClassName:h,handleSelector:P,domNode:C,isSelectable:b,nodeId:x,nodeClickDistance:u=0}){M=n0(C);function g({x:$1,y:d}){let{nodeLookup:y,nodeExtent:E,snapGrid:v,snapToGrid:r,nodeOrigin:n,onNodeDrag:e,onSelectionDrag:V,onError:s,updateNodePositions:U1}=U();W={x:$1,y:d};let Q1=!1,Y1=B.size>1,L1=Y1&&E?eK(f8(B)):null,M1=Y1&&r?WC({dragItems:B,snapGrid:v,x:$1,y:d}):null;for(let[I1,X1]of B){if(!y.has(I1))continue;let f1={x:$1-X1.distance.x,y:d-X1.distance.y};if(r)f1=M1?{x:Math.round(f1.x+M1.x),y:Math.round(f1.y+M1.y)}:o7(f1,v);let l1=null;if(Y1&&E&&!X1.extent&&L1){let{positionAbsolute:v1}=X1.internals,c1=v1.x-L1.x+E[0][0],E1=v1.x+X1.measured.width-L1.x2+E[1][0],j1=v1.y-L1.y+E[0][1],V0=v1.y+X1.measured.height-L1.y2+E[1][1];l1=[[c1,j1],[E1,V0]]}let{position:W1,positionAbsolute:S1}=GX({nodeId:I1,nextPosition:f1,nodeLookup:y,nodeExtent:l1?l1:E,nodeOrigin:n,onError:s});Q1=Q1||X1.position.x!==W1.x||X1.position.y!==W1.y,X1.position=W1,X1.internals.positionAbsolute=S1}if(f=f||Q1,!Q1)return;if(U1(B,!0),D&&(K||e||!x&&V)){let[I1,X1]=tK({nodeId:x,dragItems:B,nodeLookup:y});if(K?.(D,B,I1,X1),e?.(D,I1,X1),!x)V?.(D,X1)}}async function i(){if(!R)return;let{transform:$1,panBy:d,autoPanSpeed:y,autoPanOnNodeDrag:E}=U();if(!E){O=!1,cancelAnimationFrame(z);return}let[v,r]=Nq(T,R,y);if(v!==0||r!==0){if(W.x=(W.x??0)-v/$1[2],W.y=(W.y??0)-r/$1[2],await d({x:v,y:r}))g(W)}z=requestAnimationFrame(i)}function m($1){let{nodeLookup:d,multiSelectionActive:y,nodesDraggable:E,transform:v,snapGrid:r,snapToGrid:n,selectNodesOnDrag:e,onNodeDragStart:V,onSelectionDragStart:s,unselectNodesAndEdges:U1}=U();if(L=!0,(!e||!b)&&!y&&x){if(!d.get(x)?.selected)U1()}if(b&&e&&x)Q?.(x);let Q1=BJ($1.sourceEvent,{transform:v,snapGrid:r,snapToGrid:n,containerBounds:R});if(W=Q1,B=YC(d,E,Q1,x),B.size>0&&(Z||V||!x&&s)){let[Y1,L1]=tK({nodeId:x,dragItems:B,nodeLookup:d});if(Z?.($1.sourceEvent,B,Y1,L1),V?.($1.sourceEvent,Y1,L1),!x)s?.($1.sourceEvent,L1)}}let J1=t_().clickDistance(u).on("start",($1)=>{let{domNode:d,nodeDragThreshold:y,transform:E,snapGrid:v,snapToGrid:r}=U();if(R=d?.getBoundingClientRect()||null,I=!1,f=!1,D=$1.sourceEvent,y===0)m($1);W=BJ($1.sourceEvent,{transform:E,snapGrid:v,snapToGrid:r,containerBounds:R}),T=D5($1.sourceEvent,R)}).on("drag",($1)=>{let{autoPanOnNodeDrag:d,transform:y,snapGrid:E,snapToGrid:v,nodeDragThreshold:r,nodeLookup:n}=U(),e=BJ($1.sourceEvent,{transform:y,snapGrid:E,snapToGrid:v,containerBounds:R});if(D=$1.sourceEvent,$1.sourceEvent.type==="touchmove"&&$1.sourceEvent.touches.length>1||x&&!n.has(x))I=!0;if(I)return;if(!O&&d&&L)O=!0,i();if(!L){let V=D5($1.sourceEvent,R),s=V.x-T.x,U1=V.y-T.y;if(Math.sqrt(s*s+U1*U1)>r)m($1)}if((W.x!==e.xSnapped||W.y!==e.ySnapped)&&B&&L)T=D5($1.sourceEvent,R),g(e)}).on("end",($1)=>{if(!L||I){if(I&&B.size>0)U().updateNodePositions(B,!1);return}if(O=!1,L=!1,cancelAnimationFrame(z),B.size>0){let{nodeLookup:d,updateNodePositions:y,onNodeDragStop:E,onSelectionDragStop:v}=U();if(f)y(B,!1),f=!1;if(X||E||!x&&v){let[r,n]=tK({nodeId:x,dragItems:B,nodeLookup:d,dragging:!1});if(X?.($1.sourceEvent,B,r,n),E?.($1.sourceEvent,r,n),!x)v?.($1.sourceEvent,n)}}}).filter(($1)=>{let d=$1.target;return!$1.button&&(!h||!XM(d,`.${h}`,C))&&(!P||XM(d,P,C))});M.call(J1)}function k(){M?.on(".drag",null)}return{update:j,destroy:k}}function zC(Q,U,Z){let K=[],X={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let W of U.values())if(LJ(X,t7(W))>0)K.push(W);return K}var BC=250;function AC(Q,U,Z,K){let X=[],W=1/0,z=zC(Q,Z,U+BC);for(let B of z){let O=[...B.internals.handleBounds?.source??[],...B.internals.handleBounds?.target??[]];for(let T of O){if(K.nodeId===T.nodeId&&K.type===T.type&&K.id===T.id)continue;let{x:R,y:L}=L6(B,T,T.position,!0),M=Math.sqrt(Math.pow(R-Q.x,2)+Math.pow(L-Q.y,2));if(M>U)continue;if(M<W)X=[{...T,x:R,y:L}],W=M;else if(M===W)X.push({...T,x:R,y:L})}}if(!X.length)return null;if(X.length>1){let B=K.type==="source"?"target":"source";return X.find((O)=>O.type===B)??X[0]}return X[0]}function EM(Q,U,Z,K,X,W=!1){let z=K.get(Q);if(!z)return null;let B=X==="strict"?z.internals.handleBounds?.[U]:[...z.internals.handleBounds?.source??[],...z.internals.handleBounds?.target??[]],O=(Z?B?.find((T)=>T.id===Z):B?.[0])??null;return O&&W?{...O,...L6(z,O,O.position,!0)}:O}function bM(Q,U){if(Q)return Q;else if(U?.classList.contains("target"))return"target";else if(U?.classList.contains("source"))return"source";return null}function LC(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var uM=()=>!0;function MC(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:X,edgeUpdaterType:W,isTarget:z,domNode:B,nodeLookup:O,lib:T,autoPanOnConnect:R,flowId:L,panBy:M,cancelConnection:I,onConnectStart:f,onConnect:D,onConnectEnd:j,isValidConnection:k=uM,onReconnectEnd:h,updateConnection:P,getTransform:C,getFromHandle:b,autoPanSpeed:x,dragThreshold:u=1,handleDomNode:g}){let i=zX(Q.target),m=0,J1,{x:$1,y:d}=D5(Q),y=bM(W,g),E=B?.getBoundingClientRect(),v=!1;if(!E||!y)return;let r=EM(X,y,K,O,U);if(!r)return;let n=D5(Q,E),e=!1,V=null,s=!1,U1=null;function Q1(){if(!R||!E)return;let[W1,S1]=Nq(n,E,x);M({x:W1,y:S1}),m=requestAnimationFrame(Q1)}let Y1={...r,nodeId:X,type:y,position:r.position},L1=O.get(X),I1={inProgress:!0,isValid:null,from:L6(L1,Y1,C1.Left,!0),fromHandle:Y1,fromPosition:Y1.position,fromNode:L1,to:n,toHandle:null,toPosition:eL[Y1.position],toNode:null,pointer:n};function X1(){v=!0,P(I1),f?.(Q,{nodeId:X,handleId:K,handleType:y})}if(u===0)X1();function f1(W1){if(!v){let{x:V0,y:b1}=D5(W1),Z2=V0-$1,_0=b1-d;if(!(Z2*Z2+_0*_0>u*u))return;X1()}if(!b()||!Y1){l1(W1);return}let S1=C();if(n=D5(W1,E),J1=AC(n7(n,S1,!1,[1,1]),Z,O,Y1),!e)Q1(),e=!0;let v1=xM(W1,{handle:J1,connectionMode:U,fromNodeId:X,fromHandleId:K,fromType:z?"target":"source",isValidConnection:k,doc:i,lib:T,flowId:L,nodeLookup:O});U1=v1.handleDomNode,V=v1.connection,s=LC(!!J1,v1.isValid);let c1=O.get(X),E1=c1?L6(c1,Y1,C1.Left,!0):I1.from,j1={...I1,from:E1,isValid:s,to:v1.toHandle&&s?w8({x:v1.toHandle.x,y:v1.toHandle.y},S1):n,toHandle:v1.toHandle,toPosition:s&&v1.toHandle?v1.toHandle.position:eL[Y1.position],toNode:v1.toHandle?O.get(v1.toHandle.nodeId):null,pointer:n};P(j1),I1=j1}function l1(W1){if("touches"in W1&&W1.touches.length>0)return;if(v){if((J1||U1)&&V&&s)D?.(V);let{inProgress:S1,...v1}=I1,c1={...v1,toPosition:I1.toHandle?I1.toPosition:null};if(j?.(W1,c1),W)h?.(W1,c1)}I(),cancelAnimationFrame(m),e=!1,s=!1,V=null,U1=null,i.removeEventListener("mousemove",f1),i.removeEventListener("mouseup",l1),i.removeEventListener("touchmove",f1),i.removeEventListener("touchend",l1)}i.addEventListener("mousemove",f1),i.addEventListener("mouseup",l1),i.addEventListener("touchmove",f1),i.addEventListener("touchend",l1)}function xM(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:X,fromType:W,doc:z,lib:B,flowId:O,isValidConnection:T=uM,nodeLookup:R}){let L=W==="target",M=U?z.querySelector(`.${B}-flow__handle[data-id="${O}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:I,y:f}=D5(Q),D=z.elementFromPoint(I,f),j=D?.classList.contains(`${B}-flow__handle`)?D:M,k={handleDomNode:j,isValid:!1,connection:null,toHandle:null};if(j){let h=bM(void 0,j),P=j.getAttribute("data-nodeid"),C=j.getAttribute("data-handleid"),b=j.classList.contains("connectable"),x=j.classList.contains("connectableend");if(!P||!h)return k;let u={source:L?P:K,sourceHandle:L?C:X,target:L?K:P,targetHandle:L?X:C};k.connection=u;let i=b&&x&&(Z===A6.Strict?L&&h==="source"||!L&&h==="target":P!==K||C!==X);k.isValid=i&&T(u),k.toHandle=EM(P,h,C,R,Z,!0)}return k}var bq={onPointerDown:MC,isValid:xM};function hM({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let X=n0(Q);function W({translateExtent:B,width:O,height:T,zoomStep:R=1,pannable:L=!0,zoomable:M=!0,inversePan:I=!1}){let f=(P)=>{if(P.sourceEvent.type!=="wheel"||!U)return;let C=Z(),b=P.sourceEvent.ctrlKey&&e7()?10:1,x=-P.sourceEvent.deltaY*(P.sourceEvent.deltaMode===1?0.05:P.sourceEvent.deltaMode?1:0.002)*R,u=C[2]*Math.pow(2,x*b);U.scaleTo(u)},D=[0,0],j=(P)=>{if(P.sourceEvent.type==="mousedown"||P.sourceEvent.type==="touchstart")D=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY]},k=(P)=>{let C=Z();if(P.sourceEvent.type!=="mousemove"&&P.sourceEvent.type!=="touchmove"||!U)return;let b=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY],x=[b[0]-D[0],b[1]-D[1]];D=b;let u=K()*Math.max(C[2],Math.log(C[2]))*(I?-1:1),g={x:C[0]-x[0]*u,y:C[1]-x[1]*u},i=[[0,0],[O,T]];U.setViewportConstrained({x:g.x,y:g.y,zoom:C[2]},i,B)},h=zJ().on("start",j).on("zoom",L?k:null).on("zoom.wheel",M?f:null);X.call(h,{})}function z(){X.on("zoom",null)}return{update:W,destroy:z,pointer:O2}}var uq=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),oK=({x:Q,y:U,zoom:Z})=>M8.translate(Q,U).scale(Z),B6=(Q,U)=>Q.target.closest(`.${U}`),mM=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),TC=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,nK=(Q,U=0,Z=TC,K=()=>{})=>{let X=typeof U==="number"&&U>0;if(!X)K();return X?Q.transition().duration(U).ease(Z).on("end",K):Q},gM=(Q)=>{let U=Q.ctrlKey&&e7()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function RC({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:X,panOnScrollSpeed:W,zoomOnPinch:z,onPanZoomStart:B,onPanZoom:O,onPanZoomEnd:T}){return(R)=>{if(B6(R,U)){if(R.ctrlKey)R.preventDefault();return!1}R.preventDefault(),R.stopImmediatePropagation();let L=Z.property("__zoom").k||1;if(R.ctrlKey&&z){let j=O2(R),k=gM(R),h=L*Math.pow(2,k);K.scaleTo(Z,h,j,R);return}let M=R.deltaMode===1?20:1,I=X===B3.Vertical?0:R.deltaX*M,f=X===B3.Horizontal?0:R.deltaY*M;if(!e7()&&R.shiftKey&&X!==B3.Vertical)I=R.deltaY*M,f=0;K.translateBy(Z,-(I/L)*W,-(f/L)*W,{internal:!0});let D=uq(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,B?.(R,D);else O?.(R,D);Q.panScrollTimeout=setTimeout(()=>{T?.(R,D),Q.isPanScrolling=!1},150)}}function OC({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,X){let W=K.type==="wheel",z=!U&&W&&!K.ctrlKey,B=B6(K,Q);if(K.ctrlKey&&W&&B)K.preventDefault();if(z||B)return null;K.preventDefault(),Z.call(this,K,X)}}function wC({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let X=uq(K.transform);if(Q.mouseButton=K.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=X,K.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(K.sourceEvent,X)}}function IC({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:X}){return(W)=>{if(Q.usedRightMouseButton=!!(Z&&mM(U,Q.mouseButton??0)),!W.sourceEvent?.sync)K([W.transform.x,W.transform.y,W.transform.k]);if(X&&!W.sourceEvent?.internal)X?.(W.sourceEvent,uq(W.transform))}}function fC({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:X,onPaneContextMenu:W}){return(z)=>{if(z.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,W&&mM(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&z.sourceEvent)W(z.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),X){let B=uq(z.transform);Q.prevViewport=B,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{X?.(z.sourceEvent,B)},Z?150:0)}}}function PC({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:X,panOnScroll:W,zoomOnDoubleClick:z,userSelectionActive:B,noWheelClassName:O,noPanClassName:T,lib:R,connectionInProgress:L}){return(M)=>{let I=U||Z,f=K&&M.ctrlKey,D=M.type==="wheel";if(M.button===1&&M.type==="mousedown"&&(B6(M,`${R}-flow__node`)||B6(M,`${R}-flow__edge`)||B6(M,`${R}-flow__selection`)||B6(M,`${R}-flow__nodesselection`)))return!0;if(!X&&!I&&!W&&!z&&!K)return!1;if(B)return!1;if(L&&!D)return!1;if(B6(M,O)&&D)return!1;if(B6(M,T)&&(!D||W&&D&&!U))return!1;if(!K&&M.ctrlKey&&D)return!1;if(!K&&M.type==="touchstart"&&M.touches?.length>1)return M.preventDefault(),!1;if(!I&&!W&&!f&&D)return!1;if(!X&&(M.type==="mousedown"||M.type==="touchstart"))return!1;if(Array.isArray(X)&&!X.includes(M.button)&&M.type==="mousedown")return!1;let j=Array.isArray(X)&&X.includes(M.button)||!M.button||M.button<=1;return(!M.ctrlKey||D||Q)&&j}}function pM({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,viewport:X,onPanZoom:W,onPanZoomStart:z,onPanZoomEnd:B,onDraggingChange:O}){let T={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},R=Q.getBoundingClientRect(),L=[[0,0],[R.width,R.height]];(typeof ResizeObserver<"u"?new ResizeObserver((d)=>{let y=d[0];if(y)L=[[0,0],[y.contentRect.width,y.contentRect.height]]}):null)?.observe(Q);let I=zJ().extent(()=>L).scaleExtent([U,Z]).translateExtent(K),f=n0(Q).call(I);C({x:X.x,y:X.y,zoom:a7(X.zoom,U,Z)},[[0,0],[R.width,R.height]],K);let D=f.on("wheel.zoom"),j=f.on("dblclick.zoom");I.wheelDelta(gM);async function k(d,y){if(f)return new Promise((E)=>{I?.interpolate(y?.interpolate==="linear"?D4:A8).transform(nK(f,y?.duration,y?.ease,()=>E(!0)),d)});return!1}function h({noWheelClassName:d,noPanClassName:y,onPaneContextMenu:E,userSelectionActive:v,panOnScroll:r,panOnDrag:n,panOnScrollMode:e,panOnScrollSpeed:V,preventScrolling:s,zoomOnPinch:U1,zoomOnScroll:Q1,zoomOnDoubleClick:Y1,panActivationKeyPressed:L1=!1,zoomActivationKeyPressed:M1,lib:I1,onTransformChange:X1,connectionInProgress:f1,paneClickDistance:l1,selectionOnDrag:W1}){if(v&&!T.isZoomingOrPanning)P();let S1=r&&!M1&&!v;I.clickDistance(W1?1/0:!k5(l1)||l1<0?0:l1);let v1=S1?RC({zoomPanValues:T,noWheelClassName:d,d3Selection:f,d3Zoom:I,panOnScrollMode:e,panOnScrollSpeed:V,zoomOnPinch:U1,onPanZoomStart:z,onPanZoom:W,onPanZoomEnd:B}):OC({noWheelClassName:d,preventScrolling:s,d3ZoomHandler:D});f.on("wheel.zoom",v1,{passive:!1});let c1=wC({zoomPanValues:T,onDraggingChange:O,onPanZoomStart:z});I.on("start",c1);let E1=IC({zoomPanValues:T,panOnDrag:n,onPaneContextMenu:!!E,onPanZoom:W,onTransformChange:X1});I.on("zoom",E1);let j1=fC({zoomPanValues:T,panOnDrag:n,panOnScroll:r,onPaneContextMenu:E,onPanZoomEnd:B,onDraggingChange:O});I.on("end",j1);let V0=PC({panActivationKeyPressed:L1,zoomActivationKeyPressed:M1,panOnDrag:n,zoomOnScroll:Q1,panOnScroll:r,zoomOnDoubleClick:Y1,zoomOnPinch:U1,userSelectionActive:v,noPanClassName:y,noWheelClassName:d,lib:I1,connectionInProgress:f1});if(I.filter(V0),Y1)f.on("dblclick.zoom",j);else f.on("dblclick.zoom",null)}function P(){I.on("zoom",null)}async function C(d,y,E){let v=oK(d),r=I?.constrain()(v,y,E);if(r)await k(r);return r}async function b(d,y){let E=oK(d);return await k(E,y),E}function x(d){if(f){let y=oK(d),E=f.property("__zoom");if(E.k!==d.zoom||E.x!==d.x||E.y!==d.y)I?.transform(f,y,null,{sync:!0})}}function u(){let d=f?WJ(f.node()):{x:0,y:0,k:1};return{x:d.x,y:d.y,zoom:d.k}}async function g(d,y){if(f)return new Promise((E)=>{I?.interpolate(y?.interpolate==="linear"?D4:A8).scaleTo(nK(f,y?.duration,y?.ease,()=>E(!0)),d)});return!1}async function i(d,y){if(f)return new Promise((E)=>{I?.interpolate(y?.interpolate==="linear"?D4:A8).scaleBy(nK(f,y?.duration,y?.ease,()=>E(!0)),d)});return!1}function m(d){I?.scaleExtent(d)}function J1(d){I?.translateExtent(d)}function $1(d){let y=!k5(d)||d<0?0:d;I?.clickDistance(y)}return{update:h,destroy:P,setViewport:b,setViewportConstrained:C,getViewport:u,scaleTo:g,scaleBy:i,setScaleExtent:m,setTranslateExtent:J1,syncViewport:x,setClickDistance:$1}}var M6;(function(Q){Q.Line="line",Q.Handle="handle"})(M6||(M6={}));function NC({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:X,affectsY:W}){let z=Q-U,B=Z-K,O=[z>0?1:z<0?-1:0,B>0?1:B<0?-1:0];if(z&&X)O[0]=O[0]*-1;if(B&&W)O[1]=O[1]*-1;return O}function HM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),X=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:K,affectsY:X}}function W6(Q,U){return Math.max(0,U-Q)}function z6(Q,U){return Math.max(0,Q-U)}function Iq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function YM(Q,U){return Q?!U:U}function CC(Q,U,Z,K,X,W,z,B){let{affectsX:O,affectsY:T}=U,{isHorizontal:R,isVertical:L}=U,M=R&&L,{xSnapped:I,ySnapped:f}=Z,{minWidth:D,maxWidth:j,minHeight:k,maxHeight:h}=K,{x:P,y:C,width:b,height:x,aspectRatio:u}=Q,g=Math.floor(R?I-Q.pointerX:0),i=Math.floor(L?f-Q.pointerY:0),m=b+(O?-g:g),J1=x+(T?-i:i),$1=-W[0]*b,d=-W[1]*x,y=Iq(m,D,j),E=Iq(J1,k,h);if(z){let n=0,e=0;if(O&&g<0)n=W6(P+g+$1,z[0][0]);else if(!O&&g>0)n=z6(P+m+$1,z[1][0]);if(T&&i<0)e=W6(C+i+d,z[0][1]);else if(!T&&i>0)e=z6(C+J1+d,z[1][1]);y=Math.max(y,n),E=Math.max(E,e)}if(B){let n=0,e=0;if(O&&g>0)n=z6(P+g,B[0][0]);else if(!O&&g<0)n=W6(P+m,B[1][0]);if(T&&i>0)e=z6(C+i,B[0][1]);else if(!T&&i<0)e=W6(C+J1,B[1][1]);y=Math.max(y,n),E=Math.max(E,e)}if(X){if(R){let n=Iq(m/u,k,h)*u;if(y=Math.max(y,n),z){let e=0;if(!O&&!T||O&&!T&&M)e=z6(C+d+m/u,z[1][1])*u;else e=W6(C+d+(O?g:-g)/u,z[0][1])*u;y=Math.max(y,e)}if(B){let e=0;if(!O&&!T||O&&!T&&M)e=W6(C+m/u,B[1][1])*u;else e=z6(C+(O?g:-g)/u,B[0][1])*u;y=Math.max(y,e)}}if(L){let n=Iq(J1*u,D,j)/u;if(E=Math.max(E,n),z){let e=0;if(!O&&!T||T&&!O&&M)e=z6(P+J1*u+$1,z[1][0])/u;else e=W6(P+(T?i:-i)*u+$1,z[0][0])/u;E=Math.max(E,e)}if(B){let e=0;if(!O&&!T||T&&!O&&M)e=W6(P+J1*u,B[1][0])/u;else e=z6(P+(T?i:-i)*u,B[0][0])/u;E=Math.max(E,e)}}}if(i=i+(i<0?E:-E),g=g+(g<0?y:-y),X)if(M)if(m>J1*u)i=(YM(O,T)?-g:g)/u;else g=(YM(O,T)?-i:i)*u;else if(R)i=g/u,T=O;else g=i*u,O=T;let v=O?P+g:P,r=T?C+i:C;return{width:b+(O?-g:g),height:x+(T?-i:i),x:W[0]*g*(!O?1:-1)+v,y:W[1]*i*(!T?1:-1)+r}}var cM={width:0,height:0,x:0,y:0},SC={...cM,pointerX:0,pointerY:0,aspectRatio:1};function jC(Q,U,Z){let K=U.position.x+Q.position.x,X=U.position.y+Q.position.y,W=Q.measured.width??0,z=Q.measured.height??0,B=Z[0]*W,O=Z[1]*z;return[[K-B,X-O],[K+W-B,X+z-O]]}function lM({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:X}){let W=n0(Q),z={controlDirection:HM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function B({controlPosition:T,boundaries:R,keepAspectRatio:L,resizeDirection:M,onResizeStart:I,onResize:f,onResizeEnd:D,shouldResize:j}){let k={...cM},h={...SC};z={boundaries:R,resizeDirection:M,keepAspectRatio:L,controlDirection:HM(T)};let P=void 0,C=null,b=[],x=void 0,u=void 0,g=void 0,i=t_().on("start",(m)=>{let{nodeLookup:J1,transform:$1,snapGrid:d,snapToGrid:y,nodeOrigin:E,paneDomNode:v}=Z();if(P=J1.get(U),!P)return;C=v?.getBoundingClientRect()??null;let{xSnapped:r,ySnapped:n}=BJ(m.sourceEvent,{transform:$1,snapGrid:d,snapToGrid:y,containerBounds:C});if(k={width:P.measured.width??0,height:P.measured.height??0,x:P.position.x??0,y:P.position.y??0},h={...k,pointerX:r,pointerY:n,aspectRatio:k.width/k.height},x=void 0,u=I8(P.extent)?P.extent:void 0,P.parentId&&(P.extent==="parent"||P.expandParent))x=J1.get(P.parentId);if(x&&P.extent==="parent")u=[[0,0],[x.measured.width,x.measured.height]];b=[],g=void 0;for(let[e,V]of J1)if(V.parentId===U){if(b.push({id:e,position:{...V.position},extent:V.extent}),V.extent==="parent"||V.expandParent){let s=jC(V,P,V.origin??E);if(g)g=[[Math.min(s[0][0],g[0][0]),Math.min(s[0][1],g[0][1])],[Math.max(s[1][0],g[1][0]),Math.max(s[1][1],g[1][1])]];else g=s}}I?.(m,{...k})}).on("drag",(m)=>{let{transform:J1,snapGrid:$1,snapToGrid:d,nodeOrigin:y}=Z(),E=BJ(m.sourceEvent,{transform:J1,snapGrid:$1,snapToGrid:d,containerBounds:C}),v=[];if(!P)return;let{x:r,y:n,width:e,height:V}=k,s={},U1=P.origin??y,{width:Q1,height:Y1,x:L1,y:M1}=CC(h,z.controlDirection,E,z.boundaries,z.keepAspectRatio,U1,u,g),I1=Q1!==e,X1=Y1!==V,f1=L1!==r&&I1,l1=M1!==n&&X1;if(!f1&&!l1&&!I1&&!X1)return;let W1={prevValues:{...k},startX:h.x,startY:h.y,childNodes:b.map((E1)=>({...E1,position:{...E1.position}}))};if(f1||l1||U1[0]===1||U1[1]===1){if(s.x=f1?L1:k.x,s.y=l1?M1:k.y,k.x=s.x,k.y=s.y,b.length>0){let E1=L1-r,j1=M1-n;for(let V0 of b)V0.position={x:V0.position.x-E1+U1[0]*(Q1-e),y:V0.position.y-j1+U1[1]*(Y1-V)},v.push(V0)}}if(I1||X1)s.width=I1&&(!z.resizeDirection||z.resizeDirection==="horizontal")?Q1:k.width,s.height=X1&&(!z.resizeDirection||z.resizeDirection==="vertical")?Y1:k.height,k.width=s.width,k.height=s.height;if(x&&P.expandParent){let E1=U1[0]*(s.width??0);if(s.x&&s.x<E1)k.x=E1,h.x=h.x-(s.x-E1);let j1=U1[1]*(s.height??0);if(s.y&&s.y<j1)k.y=j1,h.y=h.y-(s.y-j1)}let S1=NC({width:k.width,prevWidth:e,height:k.height,prevHeight:V,affectsX:z.controlDirection.affectsX,affectsY:z.controlDirection.affectsY}),v1={...k,direction:S1};if(j?.(m,v1)===!1){k=W1.prevValues,h.x=W1.startX,h.y=W1.startY,b.forEach((E1,j1)=>{E1.position=W1.childNodes[j1].position});return}f?.(m,v1),K(s,v)}).on("end",(m)=>{D?.(m,{...k}),X?.({...k})});W.call(i)}function O(){W.on(".drag",null)}return{update:B,destroy:O}}var tM=u0(i5(),1),oM=u0(dM(),1);var iM=(Q)=>{let U,Z=new Set,K=(R,L)=>{let M=typeof R==="function"?R(U):R;if(!Object.is(M,U)){let I=U;U=(L!=null?L:typeof M!=="object"||M===null)?M:Object.assign({},U,M),Z.forEach((f)=>f(U,I))}},X=()=>U,O={setState:K,getState:X,getInitialState:()=>T,subscribe:(R)=>{return Z.add(R),()=>Z.delete(R)},destroy:()=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production")console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");Z.clear()}},T=U=Q(K,X,O);return O},aM=(Q)=>Q?iM(Q):iM;var{useDebugValue:DC}=tM.default,{useSyncExternalStoreWithSelector:yC}=oM.default,vC=(Q)=>Q;function IX(Q,U=vC,Z){let K=yC(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return DC(K),K}var sM=(Q,U)=>{let Z=aM(Q),K=(X,W=U)=>IX(Z,X,W);return Object.assign(K,Z),K},nM=(Q,U)=>Q?sM(Q,U):sM;function N0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[K,X]of Q)if(!Object.is(X,U.get(K)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let K of Q)if(!U.has(K))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let K of Z)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var CT=u0(PX(),1),pq=K1.createContext(null),uC=pq.Provider,ST=x2.error001("react");function G0(Q,U){let Z=K1.useContext(pq);if(Z===null)throw Error(ST);return IX(Z,Q,U)}function C0(){let Q=K1.useContext(pq);if(Q===null)throw Error(ST);return K1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var JT={display:"none"},xC={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},jT="react-flow__node-desc",VT="react-flow__edge-desc",hC="react-flow__aria-live",mC=(Q)=>Q.ariaLiveMessage,gC=(Q)=>Q.ariaLabelConfig;function pC({rfId:Q}){let U=G0(mC);return F1.jsx("div",{id:`${hC}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:xC,children:U})}function cC({rfId:Q,disableKeyboardA11y:U}){let Z=G0(gC);return F1.jsxs(F1.Fragment,{children:[F1.jsx("div",{id:`${jT}-${Q}`,style:JT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),F1.jsx("div",{id:`${VT}-${Q}`,style:JT,children:Z["edge.a11yDescription.default"]}),!U&&F1.jsx(pC,{rfId:Q})]})}var N8=K1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...X},W)=>{let z=`${Q}`.split("-");return F1.jsx("div",{className:y0(["react-flow__panel",Z,...z]),style:K,ref:W,...X,children:U})});N8.displayName="Panel";var $T="https://reactflow.dev/attribution";function lC({proOptions:Q,position:U="bottom-right"}){if(K1.useEffect(()=>{OM("react")},[]),Q?.hideAttribution)return null;return F1.jsx(N8,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${$T}`,children:F1.jsx("a",{href:$T,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var rC=(Q)=>{let U=[],Z=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)Z.push(K);return{selectedNodes:U,selectedEdges:Z}},xq=(Q)=>Q.id;function dC(Q,U){return N0(Q.selectedNodes.map(xq),U.selectedNodes.map(xq))&&N0(Q.selectedEdges.map(xq),U.selectedEdges.map(xq))}function iC({onSelectionChange:Q}){let U=C0(),{selectedNodes:Z,selectedEdges:K}=G0(rC,dC);return K1.useEffect(()=>{let X={nodes:Z,edges:K};Q?.(X),U.getState().onSelectionChangeHandlers.forEach((W)=>W(X))},[Z,K,Q]),null}var aC=(Q)=>!!Q.onSelectionChangeHandlers;function sC({onSelectionChange:Q}){let U=G0(aC);if(Q||U)return F1.jsx(iC,{onSelectionChange:Q});return null}var kT=[0,0],tC={x:0,y:0,zoom:1},oC=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],QT=[...oC,"rfId"],nC=(Q)=>({setNodes:Q.setNodes,setEdges:Q.setEdges,setMinZoom:Q.setMinZoom,setMaxZoom:Q.setMaxZoom,setTranslateExtent:Q.setTranslateExtent,setNodeExtent:Q.setNodeExtent,reset:Q.reset,setDefaultNodesAndEdges:Q.setDefaultNodesAndEdges}),qT={translateExtent:s7,nodeOrigin:kT,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function eC(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:X,setTranslateExtent:W,setNodeExtent:z,reset:B,setDefaultNodesAndEdges:O}=G0(nC,N0),T=C0();K1.useEffect(()=>{return O(Q.defaultNodes,Q.defaultEdges),()=>{R.current=qT,B()}},[]);let R=K1.useRef(qT);return K1.useEffect(()=>{for(let L of QT){let M=Q[L],I=R.current[L];if(M===I)continue;if(typeof Q[L]>"u")continue;if(L==="nodes")U(M);else if(L==="edges")Z(M);else if(L==="minZoom")K(M);else if(L==="maxZoom")X(M);else if(L==="translateExtent")W(M);else if(L==="nodeExtent")z(M);else if(L==="ariaLabelConfig")T.setState({ariaLabelConfig:RM(M)});else if(L==="fitView")T.setState({fitViewQueued:M});else if(L==="fitViewOptions")T.setState({fitViewOptions:M});else T.setState({[L]:M})}R.current=Q},QT.map((L)=>Q[L])),null}function UT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function _S(Q){let[U,Z]=K1.useState(Q==="system"?null:Q);return K1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=UT(),X=()=>Z(K?.matches?"dark":"light");return X(),K?.addEventListener("change",X),()=>{K?.removeEventListener("change",X)}},[Q]),U!==null?U:UT()?.matches?"dark":"light"}var GT=typeof document<"u"?document:null;function RJ(Q=null,U={target:GT,actInsideInputWithModifier:!0}){let[Z,K]=K1.useState(!1),X=K1.useRef(!1),W=K1.useRef(new Set([])),[z,B]=K1.useMemo(()=>{if(Q!==null){let T=(Array.isArray(Q)?Q:[Q]).filter((L)=>typeof L==="string").map((L)=>L.replace(/\+/g,`
242
242
  `).replace(`
243
243
 
244
244
  `,`
245
245
  +`).split(`
246
- `)),T=O.reduce((L,M)=>L.concat(...M),[]);return[O,T]}return[[],[]]},[Q]);return F1.useEffect(()=>{let R=U?.target??_T,O=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(f)=>{if(X.current=f.ctrlKey||f.metaKey||f.shiftKey||f.altKey,(!X.current||X.current&&!O)&&BX(f))return!1;let k=$T(f.code,B);if(Y.current.add(f[k]),JT(W,Y.current,!1)){let S=f.composedPath?.()?.[0]||f.target,D=S?.nodeName==="BUTTON"||S?.nodeName==="A";if(U.preventDefault!==!1&&(X.current||!D))f.preventDefault();K(!0)}},L=(f)=>{let I=$T(f.code,B);if(JT(W,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(f[I]);if(f.key==="Meta")Y.current.clear();X.current=!1},M=()=>{Y.current.clear(),K(!1)};return R?.addEventListener("keydown",T),R?.addEventListener("keyup",L),window.addEventListener("blur",M),window.addEventListener("contextmenu",M),()=>{R?.removeEventListener("keydown",T),R?.removeEventListener("keyup",L),window.removeEventListener("blur",M),window.removeEventListener("contextmenu",M)}}},[Q,K]),Z}function JT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((X)=>U.has(X)))}function $T(Q,U){return U.includes(Q)?"code":"key"}var aj=()=>{let Q=N0();return F1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,Z)=>{let{panZoom:K}=Q.getState();return K?K.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[K,X,Y],panZoom:W}=Q.getState();if(!W)return!1;return await W.setViewport({x:U.x??K,y:U.y??X,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,K]=Q.getState().transform;return{x:U,y:Z,zoom:K}},setCenter:async(U,Z,K)=>{return Q.getState().setCenter(U,Z,K)},fitBounds:async(U,Z)=>{let{width:K,height:X,minZoom:Y,maxZoom:W,panZoom:B}=Q.getState(),R=zJ(U,K,X,Y,W,Z?.padding??0.1);if(!B)return!1;return await B.setViewport(R,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:K,snapGrid:X,snapToGrid:Y,domNode:W}=Q.getState();if(!W)return U;let{x:B,y:R}=W.getBoundingClientRect(),O={x:U.x-B,y:U.y-R},T=Z.snapGrid??X,L=Z.snapToGrid??Y;return o7(O,K,L,T)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:X,y:Y}=K.getBoundingClientRect(),W=w8(U,Z);return{x:W.x+X,y:W.y+Y}}}},[])};function NT(Q,U){let Z=[],K=new Map,X=[];for(let Y of Q)if(Y.type==="add"){X.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")K.set(Y.id,[Y]);else{let W=K.get(Y.id);if(W)W.push(Y);else K.set(Y.id,[Y])}for(let Y of U){let W=K.get(Y.id);if(!W){Z.push(Y);continue}if(W[0].type==="remove")continue;if(W[0].type==="replace"){Z.push({...W[0].item});continue}let B={...Y};for(let R of W)sj(R,B);Z.push(B)}if(X.length)X.forEach((Y)=>{if(Y.index!==void 0)Z.splice(Y.index,0,{...Y.item});else Z.push({...Y.item})});return Z}function sj(Q,U){switch(Q.type){case"select":{U.selected=Q.selected;break}case"position":{if(typeof Q.position<"u")U.position=Q.position;if(typeof Q.dragging<"u")U.dragging=Q.dragging;break}case"dimensions":{if(typeof Q.dimensions<"u"){if(U.measured={...Q.dimensions},Q.setAttributes){if(Q.setAttributes===!0||Q.setAttributes==="width")U.width=Q.dimensions.width;if(Q.setAttributes===!0||Q.setAttributes==="height")U.height=Q.dimensions.height}}if(typeof Q.resizing==="boolean")U.resizing=Q.resizing;break}}}function jT(Q,U){return NT(Q,U)}function tj(Q,U){return NT(Q,U)}function P8(Q,U){return{id:Q,type:"select",selected:U}}function e7(Q,U=new Set,Z=!1){let K=[];for(let[X,Y]of Q){let W=U.has(X);if(!(Y.selected===void 0&&!W)&&Y.selected!==W){if(Z)Y.selected=W;K.push(P8(Y.id,W))}}return K}function QT({items:Q=[],lookup:U}){let Z=[],K=new Map(Q.map((X)=>[X.id,X]));for(let[X,Y]of Q.entries()){let W=U.get(Y.id),B=W?.internals?.userNode??W;if(B!==void 0&&B!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(B===void 0)Z.push({item:Y,type:"add",index:X})}for(let[X]of U)if(K.get(X)===void 0)Z.push({id:X,type:"remove"});return Z}function qT(Q){return{id:Q.id,type:"remove"}}var oj=KX("React Flow","https://reactflow.dev/");function nj(Q,U,Z={}){return MM(Q,U,{...Z,onError:Z.onError??oj})}var UT=(Q)=>ZM(Q),ej=(Q)=>QX(Q);function CT(Q){return F1.forwardRef(Q)}var VT=typeof window<"u"?F1.useLayoutEffect:F1.useEffect;function GT(Q){let[U,Z]=F1.useState(BigInt(0)),[K]=F1.useState(()=>_C(()=>Z((X)=>X+BigInt(1))));return VT(()=>{let X=K.get();if(X.length)Q(X),K.reset()},[U]),K}function _C(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var ST=F1.createContext(null);function JC({children:Q}){let U=N0(),Z=F1.useCallback((B)=>{let{nodes:R=[],setNodes:O,hasDefaultNodes:T,onNodesChange:L,nodeLookup:M,fitViewQueued:f,onNodesChangeMiddlewareMap:I}=U.getState(),k=R;for(let D of B)k=typeof D==="function"?D(k):D;let S=QT({items:k,lookup:M});for(let D of I.values())S=D(S);if(T)O(k);if(S.length>0)L?.(S);else if(f)window.requestAnimationFrame(()=>{let{fitViewQueued:D,nodes:h,setNodes:P}=U.getState();if(D)P(h)})},[]),K=GT(Z),X=F1.useCallback((B)=>{let{edges:R=[],setEdges:O,hasDefaultEdges:T,onEdgesChange:L,edgeLookup:M}=U.getState(),f=R;for(let I of B)f=typeof I==="function"?I(f):I;if(T)O(f);else if(L)L(QT({items:f,lookup:M}))},[]),Y=GT(X),W=F1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return Z1.jsx(ST.Provider,{value:W,children:Q})}function $C(){let Q=F1.useContext(ST);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var QC=(Q)=>!!Q.panZoom;function TJ(){let Q=aj(),U=N0(),Z=$C(),K=U0(QC),X=F1.useMemo(()=>{let Y=(L)=>U.getState().nodeLookup.get(L),W=(L)=>{Z.nodeQueue.push(L)},B=(L)=>{Z.edgeQueue.push(L)},R=(L)=>{let{nodeLookup:M,nodeOrigin:f}=U.getState(),I=UT(L)?L:M.get(L.id),k=I.parentId?HX(I.position,I.measured,I.parentId,M,f):I.position,S={...I,position:k,width:I.measured?.width??I.width,height:I.measured?.height??I.height};return s7(S)},O=(L,M,f={replace:!1})=>{W((I)=>I.map((k)=>{if(k.id===L){let S=typeof M==="function"?M(k):M;return f.replace&&UT(S)?S:{...k,...S}}return k}))},T=(L,M,f={replace:!1})=>{B((I)=>I.map((k)=>{if(k.id===L){let S=typeof M==="function"?M(k):M;return f.replace&&ej(S)?S:{...k,...S}}return k}))};return{getNodes:()=>U.getState().nodes.map((L)=>({...L})),getNode:(L)=>Y(L)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:L=[]}=U.getState();return L.map((M)=>({...M}))},getEdge:(L)=>U.getState().edgeLookup.get(L),setNodes:W,setEdges:B,addNodes:(L)=>{let M=Array.isArray(L)?L:[L];Z.nodeQueue.push((f)=>[...f,...M])},addEdges:(L)=>{let M=Array.isArray(L)?L:[L];Z.edgeQueue.push((f)=>[...f,...M])},toObject:()=>{let{nodes:L=[],edges:M=[],transform:f}=U.getState(),[I,k,S]=f;return{nodes:L.map((D)=>({...D})),edges:M.map((D)=>({...D})),viewport:{x:I,y:k,zoom:S}}},deleteElements:async({nodes:L=[],edges:M=[]})=>{let{nodes:f,edges:I,onNodesDelete:k,onEdgesDelete:S,triggerNodeChanges:D,triggerEdgeChanges:h,onDelete:P,onBeforeDelete:j}=U.getState(),{nodes:b,edges:x}=await XM({nodesToRemove:L,edgesToRemove:M,nodes:f,edges:I,onBeforeDelete:j}),E=x.length>0,p=b.length>0;if(E){let a=x.map(qT);S?.(x),h(a)}if(p){let a=b.map(qT);k?.(b),D(a)}if(p||E)P?.({nodes:b,edges:x});return{deletedNodes:b,deletedEdges:x}},getIntersectingNodes:(L,M=!0,f)=>{let I=FX(L),k=I?L:R(L),S=f!==void 0;if(!k)return[];return(f||U.getState().nodes).filter((D)=>{let h=U.getState().nodeLookup.get(D.id);if(h&&!I&&(D.id===L.id||!h.internals.positionAbsolute))return!1;let P=s7(S?D:h),j=BJ(P,k);return M&&j>0||j>=P.width*P.height||j>=k.width*k.height})},isNodeIntersecting:(L,M,f=!0)=>{let k=FX(L)?L:R(L);if(!k)return!1;let S=BJ(k,M);return f&&S>0||S>=M.width*M.height||S>=k.width*k.height},updateNode:O,updateNodeData:(L,M,f={replace:!1})=>{O(L,(I)=>{let k=typeof M==="function"?M(I):M;return f.replace?{...I,data:k}:{...I,data:{...I.data,...k}}},f)},updateEdge:T,updateEdgeData:(L,M,f={replace:!1})=>{T(L,(I)=>{let k=typeof M==="function"?M(I):M;return f.replace?{...I,data:k}:{...I,data:{...I.data,...k}}},f)},getNodesBounds:(L)=>{let{nodeLookup:M,nodeOrigin:f}=U.getState();return UX(L,{nodeLookup:M,nodeOrigin:f})},getHandleConnections:({type:L,id:M,nodeId:f})=>Array.from(U.getState().connectionLookup.get(`${f}-${L}${M?`-${M}`:""}`)?.values()??[]),getNodeConnections:({type:L,handleId:M,nodeId:f})=>Array.from(U.getState().connectionLookup.get(`${f}${L?M?`-${L}-${M}`:`-${L}`:""}`)?.values()??[]),fitView:async(L)=>{let M=U.getState().fitViewResolver??WM();return U.setState({fitViewQueued:!0,fitViewOptions:L,fitViewResolver:M}),Z.nodeQueue.push((f)=>[...f]),M.promise}}},[]);return F1.useMemo(()=>{return{...X,...Q,viewportInitialized:K}},[K])}var ZT=(Q)=>Q.selected,qC=typeof window<"u"?window:void 0;function UC({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=N0(),{deleteElements:K}=TJ(),X=MJ(Q,{actInsideInputWithModifier:!1}),Y=MJ(U,{target:qC});F1.useEffect(()=>{if(X){let{edges:W,nodes:B}=Z.getState();K({nodes:B.filter(ZT),edges:W.filter(ZT)}),Z.setState({nodesSelectionActive:!1})}},[X]),F1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function GC(Q){let U=N0();F1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=jq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",u2.error004());U.setState({width:K.width||500,height:K.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let K=new ResizeObserver(()=>Z());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),K&&Q.current)K.unobserve(Q.current)}}},[])}var gq={position:"absolute",width:"100%",height:"100%",top:0,left:0},ZC=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function FC({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:X,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=W3.Free,zoomOnDoubleClick:B=!0,panOnDrag:R=!0,defaultViewport:O,translateExtent:T,minZoom:L,maxZoom:M,zoomActivationKeyCode:f,preventScrolling:I=!0,children:k,noWheelClassName:S,noPanClassName:D,onViewportChange:h,isControlledViewport:P,paneClickDistance:j,selectionOnDrag:b}){let x=N0(),E=F1.useRef(null),{userSelectionActive:p,lib:a,connectionInProgress:t}=U0(ZC,P0),Q1=MJ(f),$1=F1.useRef();GC(E);let _1=F1.useCallback((y)=>{if(h?.({x:y[0],y:y[1],zoom:y[2]}),!P)x.setState({transform:y})},[h,P]);return F1.useEffect(()=>{if(E.current){$1.current=bM({domNode:E.current,minZoom:L,maxZoom:M,translateExtent:T,viewport:O,onDraggingChange:(r)=>x.setState((n)=>n.paneDragging===r?n:{paneDragging:r}),onPanZoomStart:(r,n)=>{let{onViewportChangeStart:o,onMoveStart:V}=x.getState();V?.(r,n),o?.(n)},onPanZoom:(r,n)=>{let{onViewportChange:o,onMove:V}=x.getState();V?.(r,n),o?.(n)},onPanZoomEnd:(r,n)=>{let{onViewportChangeEnd:o,onMoveEnd:V}=x.getState();V?.(r,n),o?.(n)}});let{x:y,y:u,zoom:v}=$1.current.getViewport();return x.setState({panZoom:$1.current,transform:[y,u,v],domNode:E.current.closest(".react-flow")}),()=>{$1.current?.destroy()}}},[]),F1.useEffect(()=>{$1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:X,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:B,panOnDrag:R,zoomActivationKeyPressed:Q1,preventScrolling:I,noPanClassName:D,userSelectionActive:p,noWheelClassName:S,lib:a,onTransformChange:_1,connectionInProgress:t,selectionOnDrag:b,paneClickDistance:j})},[Q,U,Z,K,X,Y,W,B,R,Q1,I,D,p,S,a,_1,t,b,j]),Z1.jsx("div",{className:"react-flow__renderer",ref:E,style:gq,children:k})}var KC=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function XC(){let{userSelectionActive:Q,userSelectionRect:U}=U0(KC,P0);if(!(Q&&U))return null;return Z1.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:U.width,height:U.height,transform:`translate(${U.x}px, ${U.y}px)`}})}var NX=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},HC=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function YC({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=R8.Full,panOnDrag:K,autoPanOnSelection:X,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:B,onSelectionEnd:R,onPaneClick:O,onPaneContextMenu:T,onPaneScroll:L,onPaneMouseEnter:M,onPaneMouseMove:f,onPaneMouseLeave:I,children:k}){let S=F1.useRef(0),D=N0(),{userSelectionActive:h,elementsSelectable:P,dragging:j,panBy:b,autoPanSpeed:x}=U0(HC,P0),E=P&&(Q||h),p=F1.useRef(null),a=F1.useRef(),t=F1.useRef(new Set),Q1=F1.useRef(new Set),$1=F1.useRef(!1),_1=F1.useRef(!1),y=F1.useRef({x:0,y:0}),u=F1.useRef(!1),v=(K1)=>{if(_1.current||$1.current||D.getState().connection.inProgress){_1.current=!1,$1.current=!1;return}O?.(K1),D.getState().resetSelectedElements(),D.setState({nodesSelectionActive:!1})},r=(K1)=>{if(Array.isArray(K)&&K?.includes(2)){K1.preventDefault();return}T?.(K1)},n=L?(K1)=>L(K1):void 0,o=(K1)=>{if(_1.current)K1.stopPropagation(),_1.current=!1},V=(K1)=>{if(K1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:f1,transform:l1}=D.getState();if(a.current=f1?.getBoundingClientRect(),!a.current)return;let Y1=K1.target===p.current;if(!Y1&&!!K1.target.closest(".nokey")||!Q||!(W&&Y1||U)||K1.button!==0||!K1.isPrimary)return;K1.target?.setPointerCapture?.(K1.pointerId),_1.current=!1;let{x:c1,y:v1}=C5(K1.nativeEvent,a.current),V1=o7({x:c1,y:v1},l1);if(D.setState({userSelectionRect:{width:0,height:0,startX:V1.x,startY:V1.y,x:c1,y:v1}}),!Y1)K1.stopPropagation(),K1.preventDefault()};function m(K1,f1){let{userSelectionRect:l1}=D.getState();if(!l1)return;let{transform:Y1,nodeLookup:C1,edgeLookup:y1,connectionLookup:c1,triggerNodeChanges:v1,triggerEdgeChanges:V1,defaultEdgeOptions:S0}=D.getState(),E1={x:l1.startX,y:l1.startY},{x:G2,y:_0}=w8(E1,Y1),h2={startX:E1.x,startY:E1.y,x:K1<G2?K1:G2,y:f1<_0?f1:_0,width:Math.abs(K1-G2),height:Math.abs(f1-_0)},A2=t.current,I2=Q1.current;t.current=new Set(Iq(C1,h2,Y1,Z===R8.Partial,!0).map((P2)=>P2.id)),Q1.current=new Set;let f2=S0?.selectable??!0;for(let P2 of t.current){let B2=c1.get(P2);if(!B2)continue;for(let{edgeId:z2}of B2.values()){let L2=y1.get(z2);if(L2&&(L2.selectable??f2))Q1.current.add(z2)}}if(!YX(A2,t.current)){let P2=e7(C1,t.current,!0);v1(P2)}if(!YX(I2,Q1.current)){let P2=e7(y1,Q1.current);V1(P2)}D.setState({userSelectionRect:h2,userSelectionActive:!0,nodesSelectionActive:!1})}function J1(){if(!X||!a.current)return;let[K1,f1]=fq(y.current,a.current,x);b({x:K1,y:f1}).then((l1)=>{if(!_1.current||!l1){S.current=requestAnimationFrame(J1);return}let{x:Y1,y:C1}=y.current;m(Y1,C1),S.current=requestAnimationFrame(J1)})}let X1=()=>{cancelAnimationFrame(S.current),S.current=0,u.current=!1};F1.useEffect(()=>{return()=>X1()},[]);let W1=(K1)=>{let{userSelectionRect:f1,transform:l1,resetSelectedElements:Y1}=D.getState();if(!a.current||!f1)return;let{x:C1,y:y1}=C5(K1.nativeEvent,a.current);y.current={x:C1,y:y1};let c1=w8({x:f1.startX,y:f1.startY},l1);if(!_1.current){let v1=U?0:Y;if(Math.hypot(C1-c1.x,y1-c1.y)<=v1)return;Y1(),B?.(K1)}if(_1.current=!0,!u.current)J1(),u.current=!0;m(C1,y1)},O1=(K1)=>{if(!E){if(K1.target===p.current&&D.getState().connection.inProgress)$1.current=!0;return}if(K1.button!==0)return;if(K1.target?.releasePointerCapture?.(K1.pointerId),!h&&K1.target===p.current&&D.getState().userSelectionRect)v?.(K1);if(D.setState({userSelectionActive:!1,userSelectionRect:null}),_1.current)R?.(K1),D.setState({nodesSelectionActive:t.current.size>0});X1()},z1=(K1)=>{K1.target?.releasePointerCapture?.(K1.pointerId),X1()},I1=K===!0||Array.isArray(K)&&K.includes(0);return Z1.jsxs("div",{className:y0(["react-flow__pane",{draggable:I1,dragging:j,selection:Q}]),onClick:E?void 0:NX(v,p),onContextMenu:NX(r,p),onWheel:NX(n,p),onPointerEnter:E?void 0:M,onPointerMove:E?W1:f,onPointerUp:O1,onPointerCancel:E?z1:void 0,onPointerDownCapture:E?V:void 0,onClickCapture:E?o:void 0,onPointerLeave:I,ref:p,style:gq,children:[k,Z1.jsx(XC,{})]})}function CX({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:X,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:B,onError:R}=U.getState(),O=B.get(Q);if(!O){R?.("012",u2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!O.selected)X([Q]);else if(Z||O.selected&&W)Y({nodes:[O],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function DT({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:X,isSelectable:Y,nodeClickDistance:W}){let B=N0(),[R,O]=F1.useState(!1),T=F1.useRef();return F1.useEffect(()=>{if(U)return;return T.current=CM({getStoreItems:()=>B.getState(),onNodeMouseDown:(L)=>{CX({id:L,store:B,nodeRef:Q})},onDragStart:()=>{O(!0)},onDragStop:()=>{O(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,B,Q]),F1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:Z,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:X,nodeClickDistance:W})},[Z,K,U,Y,Q,X,W]),R}var WC=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function kT(){let Q=N0();return F1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:X,snapGrid:Y,nodesDraggable:W,onError:B,updateNodePositions:R,nodeLookup:O,nodeOrigin:T}=Q.getState(),L=new Map,M=WC(W),f=X?Y[0]:5,I=X?Y[1]:5,k=Z.direction.x*f*Z.factor,S=Z.direction.y*I*Z.factor;for(let[,D]of O){if(!M(D))continue;let h={x:D.internals.positionAbsolute.x+k,y:D.internals.positionAbsolute.y+S};if(X)h=t7(h,Y);let{position:P,positionAbsolute:j}=GX({nodeId:D.id,nextPosition:h,nodeLookup:O,nodeExtent:K,nodeOrigin:T,onError:B});D.position=P,D.internals.positionAbsolute=j,L.set(D.id,D)}R(L)},[])}var VX=F1.createContext(null),AC=VX.Provider;VX.Consumer;var SX=()=>{return F1.useContext(VX)},BC=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),yT=F1.createContext(null);function zC({children:Q}){let U=U0(BC,P0);return Z1.jsx(yT.Provider,{value:U,children:Q})}function LC(){let Q=F1.useContext(yT);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var MC={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},TC=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:X,connectionMode:Y,connection:W}=K,{fromHandle:B,toHandle:R,isValid:O}=W;if(!B&&!X)return MC;let T=R?.nodeId===Q&&R?.id===U&&R?.type===Z;return{connectingFrom:B?.nodeId===Q&&B?.id===U&&B?.type===Z,connectingTo:T,clickConnecting:X?.nodeId===Q&&X?.id===U&&X?.type===Z,isPossibleEndHandle:Y===A6.Strict?B?.type!==Z:Q!==B?.nodeId||U!==B?.id,connectionInProcess:!!B,clickConnectionInProcess:!!X,valid:T&&O}};function RC({type:Q="source",position:U=j1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:X=!0,isConnectableEnd:Y=!0,id:W,onConnect:B,children:R,className:O,onMouseDown:T,onTouchStart:L,...M},f){let I=W||null,k=Q==="target",S=N0(),D=SX(),{connectOnClick:h,noPanClassName:P,rfId:j}=LC(),{connectingFrom:b,connectingTo:x,clickConnecting:E,isPossibleEndHandle:p,connectionInProcess:a,clickConnectionInProcess:t,valid:Q1}=U0(TC(D,I,Q),P0);if(!D)S.getState().onError?.("010",u2.error010());let $1=(u)=>{let{defaultEdgeOptions:v,onConnect:r,hasDefaultEdges:n}=S.getState(),o={...v,...u};if(n){let{edges:V,setEdges:m,onError:J1}=S.getState();m(nj(o,V,{onError:J1}))}r?.(o),B?.(o)},_1=(u)=>{if(!D)return;let v=zX(u.nativeEvent);if(X&&(v&&u.button===0||!v)){let r=S.getState();vq.onPointerDown(u.nativeEvent,{handleDomNode:u.currentTarget,autoPanOnConnect:r.autoPanOnConnect,connectionMode:r.connectionMode,connectionRadius:r.connectionRadius,domNode:r.domNode,nodeLookup:r.nodeLookup,lib:r.lib,isTarget:k,handleId:I,nodeId:D,flowId:r.rfId,panBy:r.panBy,cancelConnection:r.cancelConnection,onConnectStart:r.onConnectStart,onConnectEnd:(...n)=>S.getState().onConnectEnd?.(...n),updateConnection:r.updateConnection,onConnect:$1,isValidConnection:Z||((...n)=>S.getState().isValidConnection?.(...n)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:r.autoPanSpeed,dragThreshold:r.connectionDragThreshold})}if(v)T?.(u);else L?.(u)},y=(u)=>{let{onClickConnectStart:v,onClickConnectEnd:r,connectionClickStartHandle:n,connectionMode:o,isValidConnection:V,lib:m,rfId:J1,nodeLookup:X1,connection:W1}=S.getState();if(!D||!n&&!X)return;if(!n){v?.(u.nativeEvent,{nodeId:D,handleId:I,handleType:Q}),S.setState({connectionClickStartHandle:{nodeId:D,type:Q,id:I}});return}let O1=AX(u.target),z1=Z||V,{connection:I1,isValid:K1}=vq.isValid(u.nativeEvent,{handle:{nodeId:D,id:I,type:Q},connectionMode:o,fromNodeId:n.nodeId,fromHandleId:n.id||null,fromType:n.type,isValidConnection:z1,flowId:J1,doc:O1,lib:m,nodeLookup:X1});if(K1&&I1)$1(I1);let f1=structuredClone(W1);delete f1.inProgress,f1.toPosition=f1.toHandle?f1.toHandle.position:null,r?.(u,f1),S.setState({connectionClickStartHandle:null})};return Z1.jsx("div",{"data-handleid":I,"data-nodeid":D,"data-handlepos":U,"data-id":`${j}-${D}-${I}-${Q}`,className:y0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",P,O,{source:!k,target:k,connectable:K,connectablestart:X,connectableend:Y,clickconnecting:E,connectingfrom:b,connectingto:x,valid:Q1,connectionindicator:K&&(!a||p)&&(a||t?Y:X)}]),onMouseDown:_1,onTouchStart:_1,onClick:h?y:void 0,ref:f,...M,children:R})}var uq=F1.memo(CT(RC));function OC({data:Q,isConnectable:U,sourcePosition:Z=j1.Bottom}){return Z1.jsxs(Z1.Fragment,{children:[Q?.label,Z1.jsx(uq,{type:"source",position:Z,isConnectable:U})]})}function wC({data:Q,isConnectable:U,targetPosition:Z=j1.Top,sourcePosition:K=j1.Bottom}){return Z1.jsxs(Z1.Fragment,{children:[Z1.jsx(uq,{type:"target",position:Z,isConnectable:U}),Q?.label,Z1.jsx(uq,{type:"source",position:K,isConnectable:U})]})}function IC(){return null}function fC({data:Q,isConnectable:U,targetPosition:Z=j1.Top}){return Z1.jsxs(Z1.Fragment,{children:[Z1.jsx(uq,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var hq={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},FT={input:OC,default:wC,output:fC,group:IC};function PC(Q){if(Q.internals.handleBounds===void 0)return{width:Q.width??Q.initialWidth??Q.style?.width,height:Q.height??Q.initialHeight??Q.style?.height};return{width:Q.width??Q.style?.width,height:Q.height??Q.style?.height}}var NC=(Q)=>{let{width:U,height:Z,x:K,y:X}=f8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:j5(U)?U:null,height:j5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${X}px)`}};function jC({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=N0(),{width:X,height:Y,transformString:W,userSelectionActive:B}=U0(NC,P0),R=kT(),O=F1.useRef(null);F1.useEffect(()=>{if(!Z)O.current?.focus({preventScroll:!0})},[Z]);let T=!B&&X!==null&&Y!==null;if(DT({nodeRef:O,disabled:!T}),!T)return null;let L=Q?(f)=>{let I=K.getState().nodes.filter((k)=>k.selected);Q(f,I)}:void 0,M=(f)=>{if(Object.prototype.hasOwnProperty.call(hq,f.key))f.preventDefault(),R({direction:hq[f.key],factor:f.shiftKey?4:1})};return Z1.jsx("div",{className:y0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:Z1.jsx("div",{ref:O,className:"react-flow__nodesselection-rect",onContextMenu:L,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:M,style:{width:X,height:Y}})})}var KT=typeof window<"u"?window:void 0,CC=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function vT({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:X,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:B,deleteKeyCode:R,selectionKeyCode:O,selectionOnDrag:T,selectionMode:L,onSelectionStart:M,onSelectionEnd:f,multiSelectionKeyCode:I,panActivationKeyCode:k,zoomActivationKeyCode:S,elementsSelectable:D,zoomOnScroll:h,zoomOnPinch:P,panOnScroll:j,panOnScrollSpeed:b,panOnScrollMode:x,zoomOnDoubleClick:E,panOnDrag:p,autoPanOnSelection:a,defaultViewport:t,translateExtent:Q1,minZoom:$1,maxZoom:_1,preventScrolling:y,onSelectionContextMenu:u,noWheelClassName:v,noPanClassName:r,disableKeyboardA11y:n,onViewportChange:o,isControlledViewport:V}){let{nodesSelectionActive:m,userSelectionActive:J1}=U0(CC,P0),X1=MJ(O,{target:KT}),W1=MJ(k,{target:KT}),O1=W1||p,z1=W1||j,I1=T&&O1!==!0,K1=X1||J1||I1;return UC({deleteKeyCode:R,multiSelectionKeyCode:I}),Z1.jsx(FC,{onPaneContextMenu:Y,elementsSelectable:D,zoomOnScroll:h,zoomOnPinch:P,panOnScroll:z1,panActivationKeyPressed:W1,panOnScrollSpeed:b,panOnScrollMode:x,zoomOnDoubleClick:E,panOnDrag:!X1&&O1,defaultViewport:t,translateExtent:Q1,minZoom:$1,maxZoom:_1,zoomActivationKeyCode:S,preventScrolling:y,noWheelClassName:v,noPanClassName:r,onViewportChange:o,isControlledViewport:V,paneClickDistance:B,selectionOnDrag:I1,children:Z1.jsxs(YC,{onSelectionStart:M,onSelectionEnd:f,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:X,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:O1,autoPanOnSelection:a,isSelecting:!!K1,selectionMode:L,selectionKeyPressed:X1,paneClickDistance:B,selectionOnDrag:I1,children:[Q,m&&Z1.jsx(jC,{onSelectionContextMenu:u,noPanClassName:r,disableKeyboardA11y:n})]})})}vT.displayName="FlowRenderer";var VC=F1.memo(vT),SC=(Q)=>(U)=>{return Q?Iq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function DC(Q){return U0(F1.useCallback(SC(Q),[Q]),P0)}var kC=(Q)=>Q.updateNodeInternals;function yC(){let Q=U0(kC),[U]=F1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let K=new Map;Z.forEach((X)=>{let Y=X.target.getAttribute("data-id");K.set(Y,{id:Y,nodeElement:X.target,force:!0})}),Q(K)})});return F1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function vC({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let X=N0(),Y=F1.useRef(null),W=F1.useRef(null),B=F1.useRef(Q.sourcePosition),R=F1.useRef(Q.targetPosition),O=F1.useRef(U),T=Z&&!!Q.internals.handleBounds;return F1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||W.current!==Y.current)){if(W.current)K?.unobserve(W.current);K?.observe(Y.current),W.current=Y.current}},[T,Q.hidden]),F1.useEffect(()=>{return()=>{if(W.current)K?.unobserve(W.current),W.current=null}},[]),F1.useEffect(()=>{if(Y.current){let L=O.current!==U,M=B.current!==Q.sourcePosition,f=R.current!==Q.targetPosition;if(L||M||f)O.current=U,B.current=Q.sourcePosition,R.current=Q.targetPosition,X.getState().updateNodeInternals(new Map([[Q.id,{id:Q.id,nodeElement:Y.current,force:!0}]]))}},[Q.id,U,Q.sourcePosition,Q.targetPosition]),Y}function EC({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:X,onContextMenu:Y,onDoubleClick:W,nodesDraggable:B,elementsSelectable:R,nodesConnectable:O,nodesFocusable:T,resizeObserver:L,noDragClassName:M,noPanClassName:f,disableKeyboardA11y:I,rfId:k,nodeTypes:S,nodeClickDistance:D,onError:h}){let{node:P,internals:j,isParent:b}=U0((K1)=>{let f1=K1.nodeLookup.get(Q),l1=K1.parentLookup.has(Q);return{node:f1,internals:f1.internals,isParent:l1}},P0),x=P.type||"default",E=S?.[x]||FT[x];if(E===void 0)h?.("003",u2.error003(x)),x="default",E=S?.default||FT.default;let p=!!(P.draggable||B&&typeof P.draggable>"u"),a=!!(P.selectable||R&&typeof P.selectable>"u"),t=!!(P.connectable||O&&typeof P.connectable>"u"),Q1=!!(P.focusable||T&&typeof P.focusable>"u"),$1=N0(),_1=XX(P),y=vC({node:P,nodeType:x,hasDimensions:_1,resizeObserver:L}),u=DT({nodeRef:y,disabled:P.hidden||!p,noDragClassName:M,handleSelector:P.dragHandle,nodeId:Q,isSelectable:a,nodeClickDistance:D}),v=kT();if(P.hidden)return null;let r=V5(P),n=PC(P),o=a||p||U||Z||K||X,V=Z?(K1)=>Z(K1,{...j.userNode}):void 0,m=K?(K1)=>K(K1,{...j.userNode}):void 0,J1=X?(K1)=>X(K1,{...j.userNode}):void 0,X1=Y?(K1)=>Y(K1,{...j.userNode}):void 0,W1=W?(K1)=>W(K1,{...j.userNode}):void 0,O1=(K1)=>{let{selectNodesOnDrag:f1,nodeDragThreshold:l1}=$1.getState();if(a&&(!f1||!p||l1>0))CX({id:Q,store:$1,nodeRef:y});if(U)U(K1,{...j.userNode})},z1=(K1)=>{if(BX(K1.nativeEvent)||I)return;if(_X.includes(K1.key)&&a){let f1=K1.key==="Escape";CX({id:Q,store:$1,unselect:f1,nodeRef:y})}else if(p&&P.selected&&Object.prototype.hasOwnProperty.call(hq,K1.key)){K1.preventDefault();let{ariaLabelConfig:f1}=$1.getState();$1.setState({ariaLiveMessage:f1["node.a11yDescription.ariaLiveMessage"]({direction:K1.key.replace("Arrow","").toLowerCase(),x:~~j.positionAbsolute.x,y:~~j.positionAbsolute.y})}),v({direction:hq[K1.key],factor:K1.shiftKey?4:1})}},I1=()=>{if(I||!y.current?.matches(":focus-visible"))return;let{transform:K1,width:f1,height:l1,autoPanOnNodeFocus:Y1,setCenter:C1}=$1.getState();if(!Y1)return;if(!(Iq(new Map([[Q,P]]),{x:0,y:0,width:f1,height:l1},K1,!0).length>0))C1(P.position.x+r.width/2,P.position.y+r.height/2,{zoom:K1[2]})};return Z1.jsx("div",{className:y0(["react-flow__node",`react-flow__node-${x}`,{[f]:p},P.className,{selected:P.selected,selectable:a,parent:b,draggable:p,dragging:u}]),ref:y,style:{zIndex:j.z,transform:`translate(${j.positionAbsolute.x}px,${j.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:_1?"visible":"hidden",...P.style,...n},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:V,onMouseMove:m,onMouseLeave:J1,onContextMenu:X1,onClick:O1,onDoubleClick:W1,onKeyDown:Q1?z1:void 0,tabIndex:Q1?0:void 0,onFocus:Q1?I1:void 0,role:P.ariaRole??(Q1?"group":void 0),"aria-roledescription":"node","aria-describedby":I?void 0:`${IT}-${k}`,"aria-label":P.ariaLabel,...P.domAttributes,children:Z1.jsx(AC,{value:Q,children:Z1.jsx(E,{id:Q,data:P.data,type:x,positionAbsoluteX:j.positionAbsolute.x,positionAbsoluteY:j.positionAbsolute.y,selected:P.selected??!1,selectable:a,draggable:p,deletable:P.deletable??!0,isConnectable:t,sourcePosition:P.sourcePosition,targetPosition:P.targetPosition,dragging:u,dragHandle:P.dragHandle,zIndex:j.z,parentId:P.parentId,...r})})})}var bC=F1.memo(EC),xC=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function ET(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:X}=U0(xC,P0),Y=DC(Q.onlyRenderVisibleElements),W=yC();return Z1.jsx("div",{className:"react-flow__nodes",style:gq,children:Y.map((B)=>{return Z1.jsx(bC,{id:B,nodeTypes:Q.nodeTypes,nodeExtent:Q.nodeExtent,onClick:Q.onNodeClick,onMouseEnter:Q.onNodeMouseEnter,onMouseMove:Q.onNodeMouseMove,onMouseLeave:Q.onNodeMouseLeave,onContextMenu:Q.onNodeContextMenu,onDoubleClick:Q.onNodeDoubleClick,noDragClassName:Q.noDragClassName,noPanClassName:Q.noPanClassName,rfId:Q.rfId,disableKeyboardA11y:Q.disableKeyboardA11y,resizeObserver:W,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:X},B)})})}ET.displayName="NodeRenderer";var uC=F1.memo(ET);function hC(Q){return U0(F1.useCallback((Z)=>{if(!Q)return Z.edges.map((X)=>X.id);let K=[];if(Z.width&&Z.height)for(let X of Z.edges){let Y=Z.nodeLookup.get(X.source),W=Z.nodeLookup.get(X.target);if(Y&&W&&LM({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))K.push(X.id)}return K},[Q]),P0)}var mC=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return Z1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},gC=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return Z1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},XT={[d7.Arrow]:mC,[d7.ArrowClosed]:gC};function pC(Q){let U=N0();return F1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(XT,Q))return U.getState().onError?.("009",u2.error009(Q)),null;return XT[Q]},[Q])}var cC=({id:Q,type:U,color:Z,width:K=12.5,height:X=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:B="auto-start-reverse"})=>{let R=pC(U);if(!R)return null;return Z1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${X}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:B,refX:"0",refY:"0",children:Z1.jsx(R,{color:Z,strokeWidth:W})})},bT=({defaultColor:Q,rfId:U})=>{let Z=U0((Y)=>Y.edges),K=U0((Y)=>Y.defaultEdgeOptions),X=F1.useMemo(()=>{return RM(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!X.length)return null;return Z1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:Z1.jsx("defs",{children:X.map((Y)=>Z1.jsx(cC,{id:Y.id,type:Y.type,color:Y.color,width:Y.width,height:Y.height,markerUnits:Y.markerUnits,strokeWidth:Y.strokeWidth,orient:Y.orient},Y.id))})})};bT.displayName="MarkerDefinitions";var lC=F1.memo(bT);function xT({x:Q,y:U,label:Z,labelStyle:K,labelShowBg:X=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:B=2,children:R,className:O,...T}){let[L,M]=F1.useState({x:1,y:0,width:0,height:0}),f=y0(["react-flow__edge-textwrapper",O]),I=F1.useRef(null);if(F1.useEffect(()=>{if(I.current){let k=I.current.getBBox();M({x:k.x,y:k.y,width:k.width,height:k.height})}},[Z]),!Z)return null;return Z1.jsxs("g",{transform:`translate(${Q-L.width/2} ${U-L.height/2})`,className:f,visibility:L.width?"visible":"hidden",...T,children:[X&&Z1.jsx("rect",{width:L.width+2*W[0],x:-W[0],y:-W[1],height:L.height+2*W[1],className:"react-flow__edge-textbg",style:Y,rx:B,ry:B}),Z1.jsx("text",{className:"react-flow__edge-text",y:L.height/2,dy:"0.3em",ref:I,style:K,children:Z}),R]})}xT.displayName="EdgeText";var rC=F1.memo(xT);function pq({path:Q,labelX:U,labelY:Z,label:K,labelStyle:X,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:R,interactionWidth:O=20,...T}){return Z1.jsxs(Z1.Fragment,{children:[Z1.jsx("path",{...T,d:Q,fill:"none",className:y0(["react-flow__edge-path",T.className])}),O?Z1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:O,className:"react-flow__edge-interaction"}):null,K&&j5(U)&&j5(Z)?Z1.jsx(rC,{x:U,y:Z,label:K,labelStyle:X,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:R}):null]})}function HT({pos:Q,x1:U,y1:Z,x2:K,y2:X}){if(Q===j1.Left||Q===j1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+X)]}function uT({sourceX:Q,sourceY:U,sourcePosition:Z=j1.Bottom,targetX:K,targetY:X,targetPosition:Y=j1.Top}){let[W,B]=HT({pos:Z,x1:Q,y1:U,x2:K,y2:X}),[R,O]=HT({pos:Y,x1:K,y1:X,x2:Q,y2:U}),[T,L,M,f]=Cq({sourceX:Q,sourceY:U,targetX:K,targetY:X,sourceControlX:W,sourceControlY:B,targetControlX:R,targetControlY:O});return[`M${Q},${U} C${W},${B} ${R},${O} ${K},${X}`,T,L,M,f]}function hT(Q){return F1.memo(({id:U,sourceX:Z,sourceY:K,targetX:X,targetY:Y,sourcePosition:W,targetPosition:B,label:R,labelStyle:O,labelShowBg:T,labelBgStyle:L,labelBgPadding:M,labelBgBorderRadius:f,style:I,markerEnd:k,markerStart:S,interactionWidth:D})=>{let[h,P,j]=uT({sourceX:Z,sourceY:K,sourcePosition:W,targetX:X,targetY:Y,targetPosition:B}),b=Q.isInternal?void 0:U;return Z1.jsx(pq,{id:b,path:h,labelX:P,labelY:j,label:R,labelStyle:O,labelShowBg:T,labelBgStyle:L,labelBgPadding:M,labelBgBorderRadius:f,style:I,markerEnd:k,markerStart:S,interactionWidth:D})})}var dC=hT({isInternal:!1}),mT=hT({isInternal:!0});dC.displayName="SimpleBezierEdge";mT.displayName="SimpleBezierEdgeInternal";function gT(Q){return F1.memo(({id:U,sourceX:Z,sourceY:K,targetX:X,targetY:Y,label:W,labelStyle:B,labelShowBg:R,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:L,style:M,sourcePosition:f=j1.Bottom,targetPosition:I=j1.Top,markerEnd:k,markerStart:S,pathOptions:D,interactionWidth:h})=>{let[P,j,b]=LJ({sourceX:Z,sourceY:K,sourcePosition:f,targetX:X,targetY:Y,targetPosition:I,borderRadius:D?.borderRadius,offset:D?.offset,stepPosition:D?.stepPosition}),x=Q.isInternal?void 0:U;return Z1.jsx(pq,{id:x,path:P,labelX:j,labelY:b,label:W,labelStyle:B,labelShowBg:R,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:L,style:M,markerEnd:k,markerStart:S,interactionWidth:h})})}var pT=gT({isInternal:!1}),cT=gT({isInternal:!0});pT.displayName="SmoothStepEdge";cT.displayName="SmoothStepEdgeInternal";function lT(Q){return F1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return Z1.jsx(pT,{...Z,id:K,pathOptions:F1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var iC=lT({isInternal:!1}),rT=lT({isInternal:!0});iC.displayName="StepEdge";rT.displayName="StepEdgeInternal";function dT(Q){return F1.memo(({id:U,sourceX:Z,sourceY:K,targetX:X,targetY:Y,label:W,labelStyle:B,labelShowBg:R,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:L,style:M,markerEnd:f,markerStart:I,interactionWidth:k})=>{let[S,D,h]=Sq({sourceX:Z,sourceY:K,targetX:X,targetY:Y}),P=Q.isInternal?void 0:U;return Z1.jsx(pq,{id:P,path:S,labelX:D,labelY:h,label:W,labelStyle:B,labelShowBg:R,labelBgStyle:O,labelBgPadding:T,labelBgBorderRadius:L,style:M,markerEnd:f,markerStart:I,interactionWidth:k})})}var aC=dT({isInternal:!1}),iT=dT({isInternal:!0});aC.displayName="StraightEdge";iT.displayName="StraightEdgeInternal";function aT(Q){return F1.memo(({id:U,sourceX:Z,sourceY:K,targetX:X,targetY:Y,sourcePosition:W=j1.Bottom,targetPosition:B=j1.Top,label:R,labelStyle:O,labelShowBg:T,labelBgStyle:L,labelBgPadding:M,labelBgBorderRadius:f,style:I,markerEnd:k,markerStart:S,pathOptions:D,interactionWidth:h})=>{let[P,j,b]=Vq({sourceX:Z,sourceY:K,sourcePosition:W,targetX:X,targetY:Y,targetPosition:B,curvature:D?.curvature}),x=Q.isInternal?void 0:U;return Z1.jsx(pq,{id:x,path:P,labelX:j,labelY:b,label:R,labelStyle:O,labelShowBg:T,labelBgStyle:L,labelBgPadding:M,labelBgBorderRadius:f,style:I,markerEnd:k,markerStart:S,interactionWidth:h})})}var sC=aT({isInternal:!1}),sT=aT({isInternal:!0});sC.displayName="BezierEdge";sT.displayName="BezierEdgeInternal";var YT={default:sT,straight:iT,step:rT,smoothstep:cT,simplebezier:mT},WT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},tC=(Q,U,Z)=>{if(Z===j1.Left)return Q-U;if(Z===j1.Right)return Q+U;return Q},oC=(Q,U,Z)=>{if(Z===j1.Top)return Q-U;if(Z===j1.Bottom)return Q+U;return Q},AT="react-flow__edgeupdater";function BT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:X,onMouseEnter:Y,onMouseOut:W,type:B}){return Z1.jsx("circle",{onMouseDown:X,onMouseEnter:Y,onMouseOut:W,className:y0([AT,`${AT}-${B}`]),cx:tC(U,K,Q),cy:oC(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function nC({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:X,targetX:Y,targetY:W,sourcePosition:B,targetPosition:R,onReconnect:O,onReconnectStart:T,onReconnectEnd:L,setReconnecting:M,setUpdateHover:f}){let I=N0(),k=(j,b)=>{if(j.button!==0)return;let{autoPanOnConnect:x,domNode:E,connectionMode:p,connectionRadius:a,lib:t,onConnectStart:Q1,cancelConnection:$1,nodeLookup:_1,rfId:y,panBy:u,updateConnection:v}=I.getState(),r=b.type==="target",n=(m,J1)=>{M(!1),L?.(m,Z,b.type,J1)},o=(m)=>O?.(Z,m),V=(m,J1)=>{M(!0),T?.(j,Z,b.type),Q1?.(m,J1)};vq.onPointerDown(j.nativeEvent,{autoPanOnConnect:x,connectionMode:p,connectionRadius:a,domNode:E,handleId:b.id,nodeId:b.nodeId,nodeLookup:_1,isTarget:r,edgeUpdaterType:b.type,lib:t,flowId:y,cancelConnection:$1,panBy:u,isValidConnection:(...m)=>I.getState().isValidConnection?.(...m)??!0,onConnect:o,onConnectStart:V,onConnectEnd:(...m)=>I.getState().onConnectEnd?.(...m),onReconnectEnd:n,updateConnection:v,getTransform:()=>I.getState().transform,getFromHandle:()=>I.getState().connection.fromHandle,dragThreshold:I.getState().connectionDragThreshold,handleDomNode:j.currentTarget})},S=(j)=>k(j,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),D=(j)=>k(j,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),h=()=>f(!0),P=()=>f(!1);return Z1.jsxs(Z1.Fragment,{children:[(Q===!0||Q==="source")&&Z1.jsx(BT,{position:B,centerX:K,centerY:X,radius:U,onMouseDown:S,onMouseEnter:h,onMouseOut:P,type:"source"}),(Q===!0||Q==="target")&&Z1.jsx(BT,{position:R,centerX:Y,centerY:W,radius:U,onMouseDown:D,onMouseEnter:h,onMouseOut:P,type:"target"})]})}function eC({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:X,onDoubleClick:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:R,onMouseLeave:O,reconnectRadius:T,onReconnect:L,onReconnectStart:M,onReconnectEnd:f,rfId:I,edgeTypes:k,noPanClassName:S,onError:D,disableKeyboardA11y:h}){let P=U0((C1)=>C1.edgeLookup.get(Q)),j=U0((C1)=>C1.defaultEdgeOptions);P=j?{...j,...P}:P;let b=P.type||"default",x=k?.[b]||YT[b];if(x===void 0)D?.("011",u2.error011(b)),b="default",x=k?.default||YT.default;let E=!!(P.focusable||U&&typeof P.focusable>"u"),p=typeof L<"u"&&(P.reconnectable||Z&&typeof P.reconnectable>"u"),a=!!(P.selectable||K&&typeof P.selectable>"u"),t=F1.useRef(null),[Q1,$1]=F1.useState(!1),[_1,y]=F1.useState(!1),u=N0(),{zIndex:v=P.zIndex,sourceX:r,sourceY:n,targetX:o,targetY:V,sourcePosition:m,targetPosition:J1}=U0(F1.useCallback((C1)=>{let y1=C1.nodeLookup.get(P.source),c1=C1.nodeLookup.get(P.target);if(!y1||!c1)return WT;let v1=TM({id:Q,sourceNode:y1,targetNode:c1,sourceHandle:P.sourceHandle||null,targetHandle:P.targetHandle||null,connectionMode:C1.connectionMode,onError:D}),V1=zM({selected:P.selected,zIndex:P.zIndex,sourceNode:y1,targetNode:c1,elevateOnSelect:C1.elevateEdgesOnSelect,zIndexMode:C1.zIndexMode});return{...v1||WT,zIndex:V1}},[P.source,P.target,P.sourceHandle,P.targetHandle,P.selected,P.zIndex,D]),P0),X1=F1.useMemo(()=>P.markerStart?`url('#${Dq(P.markerStart,I)}')`:void 0,[P.markerStart,I]),W1=F1.useMemo(()=>P.markerEnd?`url('#${Dq(P.markerEnd,I)}')`:void 0,[P.markerEnd,I]);if(P.hidden||r===null||n===null||o===null||V===null)return null;let O1=(C1)=>{let{addSelectedEdges:y1,unselectNodesAndEdges:c1,multiSelectionActive:v1}=u.getState();if(a)if(u.setState({nodesSelectionActive:!1}),P.selected&&v1)c1({nodes:[],edges:[P]}),t.current?.blur();else y1([Q]);if(X)X(C1,P)},z1=Y?(C1)=>{Y(C1,{...P})}:void 0,I1=W?(C1)=>{W(C1,{...P})}:void 0,K1=B?(C1)=>{B(C1,{...P})}:void 0,f1=R?(C1)=>{R(C1,{...P})}:void 0,l1=O?(C1)=>{O(C1,{...P})}:void 0,Y1=(C1)=>{if(!h&&_X.includes(C1.key)&&a){let{unselectNodesAndEdges:y1,addSelectedEdges:c1}=u.getState();if(C1.key==="Escape")t.current?.blur(),y1({edges:[P]});else c1([Q])}};return Z1.jsx("svg",{style:{zIndex:v},children:Z1.jsxs("g",{className:y0(["react-flow__edge",`react-flow__edge-${b}`,P.className,S,{selected:P.selected,animated:P.animated,inactive:!a&&!X,updating:Q1,selectable:a}]),onClick:O1,onDoubleClick:z1,onContextMenu:I1,onMouseEnter:K1,onMouseMove:f1,onMouseLeave:l1,onKeyDown:E?Y1:void 0,tabIndex:E?0:void 0,role:P.ariaRole??(E?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":P.ariaLabel===null?void 0:P.ariaLabel||`Edge from ${P.source} to ${P.target}`,"aria-describedby":E?`${fT}-${I}`:void 0,ref:t,...P.domAttributes,children:[!_1&&Z1.jsx(x,{id:Q,source:P.source,target:P.target,type:P.type,selected:P.selected,animated:P.animated,selectable:a,deletable:P.deletable??!0,label:P.label,labelStyle:P.labelStyle,labelShowBg:P.labelShowBg,labelBgStyle:P.labelBgStyle,labelBgPadding:P.labelBgPadding,labelBgBorderRadius:P.labelBgBorderRadius,sourceX:r,sourceY:n,targetX:o,targetY:V,sourcePosition:m,targetPosition:J1,data:P.data,style:P.style,sourceHandleId:P.sourceHandle,targetHandleId:P.targetHandle,markerStart:X1,markerEnd:W1,pathOptions:"pathOptions"in P?P.pathOptions:void 0,interactionWidth:P.interactionWidth}),p&&Z1.jsx(nC,{edge:P,isReconnectable:p,reconnectRadius:T,onReconnect:L,onReconnectStart:M,onReconnectEnd:f,sourceX:r,sourceY:n,targetX:o,targetY:V,sourcePosition:m,targetPosition:J1,setUpdateHover:$1,setReconnecting:y})]})})}var _V=F1.memo(eC),JV=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function tT({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:X,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:B,onEdgeMouseMove:R,onEdgeMouseLeave:O,onEdgeClick:T,reconnectRadius:L,onEdgeDoubleClick:M,onReconnectStart:f,onReconnectEnd:I,disableKeyboardA11y:k}){let{edgesFocusable:S,edgesReconnectable:D,elementsSelectable:h,onError:P}=U0(JV,P0),j=hC(U);return Z1.jsxs("div",{className:"react-flow__edges",children:[Z1.jsx(lC,{defaultColor:Q,rfId:Z}),j.map((b)=>{return Z1.jsx(_V,{id:b,edgesFocusable:S,edgesReconnectable:D,elementsSelectable:h,noPanClassName:X,onReconnect:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:R,onMouseLeave:O,onClick:T,reconnectRadius:L,onDoubleClick:M,onReconnectStart:f,onReconnectEnd:I,rfId:Z,onError:P,edgeTypes:K,disableKeyboardA11y:k},b)})]})}tT.displayName="EdgeRenderer";var $V=F1.memo(tT),zT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function QV({children:Q}){let U=N0(),Z=F1.useRef(null),[K]=F1.useState(()=>U.getState().transform);return VT(()=>{let X=null,Y=()=>{let W=U.getState().transform;if(X&&W[0]===X[0]&&W[1]===X[1]&&W[2]===X[2])return;if(X=W,Z.current)Z.current.style.transform=zT(W)};return Y(),U.subscribe(Y)},[U]),Z1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:zT(K)},children:Q})}function qV(Q){let U=TJ(),Z=F1.useRef(!1);F1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var UV=(Q)=>Q.panZoom?.syncViewport;function GV(Q){let U=U0(UV),Z=N0();return F1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function LT(Q){return Q.connection.inProgress?{...Q.connection,to:o7(Q.connection.to,Q.transform)}:{...Q.connection}}function ZV(Q){if(Q)return(Z)=>{let K=LT(Z);return Q(K)};return LT}function FV(Q){let U=ZV(Q);return U0(U,P0)}var KV=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function XV({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:X,width:Y,height:W,isValid:B,inProgress:R}=U0(KV,P0);if(!(Y&&X&&R))return null;return Z1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:Z1.jsx("g",{className:y0(["react-flow__connection",WX(B)]),children:Z1.jsx(oT,{style:U,type:Z,CustomComponent:K,isValid:B})})})}var oT=({style:Q,type:U=D4.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:X,from:Y,fromNode:W,fromHandle:B,fromPosition:R,to:O,toNode:T,toHandle:L,toPosition:M,pointer:f}=FV();if(!X)return;if(Z)return Z1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:B,fromX:Y.x,fromY:Y.y,toX:O.x,toY:O.y,fromPosition:R,toPosition:M,connectionStatus:WX(K),toNode:T,toHandle:L,pointer:f});let I="",k={sourceX:Y.x,sourceY:Y.y,sourcePosition:R,targetX:O.x,targetY:O.y,targetPosition:M};switch(U){case D4.Bezier:[I]=Vq(k);break;case D4.SimpleBezier:[I]=uT(k);break;case D4.Step:[I]=LJ({...k,borderRadius:0});break;case D4.SmoothStep:[I]=LJ(k);break;default:[I]=Sq(k)}return Z1.jsx("path",{d:I,fill:"none",className:"react-flow__connection-path",style:Q})};oT.displayName="ConnectionLine";var HV={};function MT(Q=HV){let U=F1.useRef(Q),Z=N0();F1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let X of K)if(U.current[X]!==Q[X]){Z.getState().onError?.("002",u2.error002());break}U.current=Q}},[Q])}function YV(){let Q=N0(),U=F1.useRef(!1);F1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",u2.error013("react"));U.current=!0}},[])}function nT({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:X,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:B,onNodeMouseMove:R,onNodeMouseLeave:O,onNodeContextMenu:T,onSelectionContextMenu:L,onSelectionStart:M,onSelectionEnd:f,connectionLineType:I,connectionLineStyle:k,connectionLineComponent:S,connectionLineContainerStyle:D,selectionKeyCode:h,selectionOnDrag:P,selectionMode:j,multiSelectionKeyCode:b,panActivationKeyCode:x,zoomActivationKeyCode:E,deleteKeyCode:p,onlyRenderVisibleElements:a,elementsSelectable:t,defaultViewport:Q1,translateExtent:$1,minZoom:_1,maxZoom:y,preventScrolling:u,defaultMarkerColor:v,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:V,panOnScrollMode:m,zoomOnDoubleClick:J1,panOnDrag:X1,autoPanOnSelection:W1,onPaneClick:O1,onPaneMouseEnter:z1,onPaneMouseMove:I1,onPaneMouseLeave:K1,onPaneScroll:f1,onPaneContextMenu:l1,paneClickDistance:Y1,nodeClickDistance:C1,onEdgeContextMenu:y1,onEdgeMouseEnter:c1,onEdgeMouseMove:v1,onEdgeMouseLeave:V1,reconnectRadius:S0,onReconnect:E1,onReconnectStart:G2,onReconnectEnd:_0,noDragClassName:h2,noWheelClassName:A2,noPanClassName:I2,disableKeyboardA11y:f2,nodeExtent:P2,rfId:B2,viewport:z2,onViewportChange:L2,nodesDraggable:z3}){return MT(Q),MT(U),YV(),qV(Z),GV(z2),Z1.jsx(VC,{onPaneClick:O1,onPaneMouseEnter:z1,onPaneMouseMove:I1,onPaneMouseLeave:K1,onPaneContextMenu:l1,onPaneScroll:f1,paneClickDistance:Y1,deleteKeyCode:p,selectionKeyCode:h,selectionOnDrag:P,selectionMode:j,onSelectionStart:M,onSelectionEnd:f,multiSelectionKeyCode:b,panActivationKeyCode:x,zoomActivationKeyCode:E,elementsSelectable:t,zoomOnScroll:r,zoomOnPinch:n,zoomOnDoubleClick:J1,panOnScroll:o,panOnScrollSpeed:V,panOnScrollMode:m,panOnDrag:X1,autoPanOnSelection:W1,defaultViewport:Q1,translateExtent:$1,minZoom:_1,maxZoom:y,onSelectionContextMenu:L,preventScrolling:u,noDragClassName:h2,noWheelClassName:A2,noPanClassName:I2,disableKeyboardA11y:f2,onViewportChange:L2,isControlledViewport:!!z2,children:Z1.jsxs(QV,{children:[Z1.jsx($V,{edgeTypes:U,onEdgeClick:X,onEdgeDoubleClick:W,onReconnect:E1,onReconnectStart:G2,onReconnectEnd:_0,onlyRenderVisibleElements:a,onEdgeContextMenu:y1,onEdgeMouseEnter:c1,onEdgeMouseMove:v1,onEdgeMouseLeave:V1,reconnectRadius:S0,defaultMarkerColor:v,noPanClassName:I2,disableKeyboardA11y:f2,rfId:B2}),Z1.jsx(XV,{style:k,type:I,component:S,containerStyle:D}),Z1.jsx("div",{className:"react-flow__edgelabel-renderer"}),Z1.jsx(uC,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:B,onNodeMouseMove:R,onNodeMouseLeave:O,onNodeContextMenu:T,nodeClickDistance:C1,onlyRenderVisibleElements:a,noPanClassName:I2,noDragClassName:h2,disableKeyboardA11y:f2,nodeExtent:P2,rfId:B2,nodesDraggable:z3}),Z1.jsx("div",{className:"react-flow__viewport-portal"})]})})}nT.displayName="GraphView";var WV=F1.memo(nT),AV=KX("React Flow","https://reactflow.dev/"),TT=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:X,height:Y,fitView:W,fitViewOptions:B,minZoom:R=0.5,maxZoom:O=2,nodeOrigin:T,nodeExtent:L,zIndexMode:M="basic"}={})=>{let f=new Map,I=new Map,k=new Map,S=new Map,D=K??U??[],h=Z??Q??[],P=T??[0,0],j=L??a7;wX(k,S,D);let{nodesInitialized:b}=kq(h,f,I,{nodeOrigin:P,nodeExtent:j,zIndexMode:M}),x=[0,0,1];if(W&&X&&Y){let E=f8(f,{filter:(Q1)=>!!((Q1.width||Q1.initialWidth)&&(Q1.height||Q1.initialHeight))}),{x:p,y:a,zoom:t}=zJ(E,X,Y,R,O,B?.padding??0.1);x=[p,a,t]}return{rfId:"1",width:X??0,height:Y??0,transform:x,nodes:h,nodesInitialized:b,nodeLookup:f,parentLookup:I,edges:D,edgeLookup:S,connectionLookup:k,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:R,maxZoom:O,translateExtent:a7,nodeExtent:j,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:A6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:P,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:W??!1,fitViewOptions:B,fitViewResolver:null,connection:{...$X},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:AV,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:JX,zIndexMode:M,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},BV=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:X,height:Y,fitView:W,fitViewOptions:B,minZoom:R,maxZoom:O,nodeOrigin:T,nodeExtent:L,zIndexMode:M})=>dM((f,I)=>{async function k(){let{nodeLookup:S,panZoom:D,fitViewOptions:h,fitViewResolver:P,width:j,height:b,minZoom:x,maxZoom:E}=I();if(!D)return;await KM({nodes:S,width:j,height:b,panZoom:D,minZoom:x,maxZoom:E},h),P?.resolve(!0),f({fitViewResolver:null})}return{...TT({nodes:Q,edges:U,width:X,height:Y,fitView:W,fitViewOptions:B,minZoom:R,maxZoom:O,nodeOrigin:T,nodeExtent:L,defaultNodes:Z,defaultEdges:K,zIndexMode:M}),setNodes:(S)=>{let{nodeLookup:D,parentLookup:h,nodeOrigin:P,nodeExtent:j,elevateNodesOnSelect:b,fitViewQueued:x,zIndexMode:E,nodesSelectionActive:p}=I(),{nodesInitialized:a,hasSelectedNodes:t}=kq(S,D,h,{nodeOrigin:P,nodeExtent:j,elevateNodesOnSelect:b,checkEquality:!0,zIndexMode:E}),Q1=p&&t;if(x&&a)k(),f({nodes:S,nodesInitialized:a,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:Q1});else f({nodes:S,nodesInitialized:a,nodesSelectionActive:Q1})},setEdges:(S)=>{let{connectionLookup:D,edgeLookup:h}=I();wX(D,h,S),f({edges:S})},setDefaultNodesAndEdges:(S,D)=>{if(S){let{setNodes:h}=I();h(S),f({hasDefaultNodes:!0})}if(D){let{setEdges:h}=I();h(D),f({hasDefaultEdges:!0})}},updateNodeInternals:(S)=>{let{triggerNodeChanges:D,nodeLookup:h,parentLookup:P,domNode:j,nodeOrigin:b,nodeExtent:x,debug:E,fitViewQueued:p,zIndexMode:a}=I(),{changes:t,updatedInternals:Q1}=PM(S,h,P,j,b,x,a);if(!Q1)return;if(IM(h,P,{nodeOrigin:b,nodeExtent:x,zIndexMode:a}),p)k(),f({fitViewQueued:!1,fitViewOptions:void 0});else f({});if(t?.length>0){if(E)console.log("React Flow: trigger node changes",t);D?.(t)}},updateNodePositions:(S,D=!1)=>{let h=[],P=[],{nodeLookup:j,triggerNodeChanges:b,connection:x,updateConnection:E,onNodesChangeMiddlewareMap:p}=I();for(let[a,t]of S){let Q1=j.get(a),$1=!!(Q1?.expandParent&&Q1?.parentId&&t?.position),_1={id:a,type:"position",position:$1?{x:Math.max(0,t.position.x),y:Math.max(0,t.position.y)}:t.position,dragging:D};if(Q1&&x.inProgress&&x.fromNode.id===Q1.id){let y=B6(Q1,x.fromHandle,j1.Left,!0);E({...x,from:y})}if($1&&Q1.parentId)h.push({id:a,parentId:Q1.parentId,rect:{...t.internals.positionAbsolute,width:t.measured.width??0,height:t.measured.height??0}});P.push(_1)}if(h.length>0){let{parentLookup:a,nodeOrigin:t}=I(),Q1=yq(h,j,a,t);P.push(...Q1)}for(let a of p.values())P=a(P);b(P)},triggerNodeChanges:(S)=>{let{onNodesChange:D,setNodes:h,nodes:P,hasDefaultNodes:j,debug:b}=I();if(S?.length){if(j){let x=jT(S,P);h(x)}if(b)console.log("React Flow: trigger node changes",S);D?.(S)}},triggerEdgeChanges:(S)=>{let{onEdgesChange:D,setEdges:h,edges:P,hasDefaultEdges:j,debug:b}=I();if(S?.length){if(j){let x=tj(S,P);h(x)}if(b)console.log("React Flow: trigger edge changes",S);D?.(S)}},addSelectedNodes:(S)=>{let{multiSelectionActive:D,edgeLookup:h,nodeLookup:P,triggerNodeChanges:j,triggerEdgeChanges:b}=I();if(D){let x=S.map((E)=>P8(E,!0));j(x);return}j(e7(P,new Set([...S]),!0)),b(e7(h))},addSelectedEdges:(S)=>{let{multiSelectionActive:D,edgeLookup:h,nodeLookup:P,triggerNodeChanges:j,triggerEdgeChanges:b}=I();if(D){let x=S.map((E)=>P8(E,!0));b(x);return}b(e7(h,new Set([...S]))),j(e7(P,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:D}={})=>{let{edges:h,nodes:P,nodeLookup:j,triggerNodeChanges:b,triggerEdgeChanges:x}=I(),E=S?S:P,p=D?D:h,a=[];for(let Q1 of E){if(!Q1.selected)continue;let $1=j.get(Q1.id);if($1)$1.selected=!1;a.push(P8(Q1.id,!1))}let t=[];for(let Q1 of p){if(!Q1.selected)continue;t.push(P8(Q1.id,!1))}b(a),x(t)},setMinZoom:(S)=>{let{panZoom:D,maxZoom:h}=I();D?.setScaleExtent([S,h]),f({minZoom:S})},setMaxZoom:(S)=>{let{panZoom:D,minZoom:h}=I();D?.setScaleExtent([h,S]),f({maxZoom:S})},setTranslateExtent:(S)=>{I().panZoom?.setTranslateExtent(S),f({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:D,triggerNodeChanges:h,triggerEdgeChanges:P,elementsSelectable:j}=I();if(!j)return;let b=D.reduce((E,p)=>p.selected?[...E,P8(p.id,!1)]:E,[]),x=S.reduce((E,p)=>p.selected?[...E,P8(p.id,!1)]:E,[]);h(b),P(x)},setNodeExtent:(S)=>{let{nodes:D,nodeLookup:h,parentLookup:P,nodeOrigin:j,elevateNodesOnSelect:b,nodeExtent:x,zIndexMode:E}=I();if(S[0][0]===x[0][0]&&S[0][1]===x[0][1]&&S[1][0]===x[1][0]&&S[1][1]===x[1][1])return;kq(D,h,P,{nodeOrigin:j,nodeExtent:S,elevateNodesOnSelect:b,checkEquality:!1,zIndexMode:E}),f({nodeExtent:S})},panBy:(S)=>{let{transform:D,width:h,height:P,panZoom:j,translateExtent:b}=I();return NM({delta:S,panZoom:j,transform:D,translateExtent:b,width:h,height:P})},setCenter:async(S,D,h)=>{let{width:P,height:j,maxZoom:b,panZoom:x}=I();if(!x)return!1;let E=typeof h?.zoom<"u"?h.zoom:b;return await x.setViewport({x:P/2-S*E,y:j/2-D*E,zoom:E},{duration:h?.duration,ease:h?.ease,interpolate:h?.interpolate}),!0},cancelConnection:()=>{f({connection:{...$X}})},updateConnection:(S)=>{f({connection:S})},reset:()=>f({...TT()})}},Object.is);function DX({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:X,initialHeight:Y,initialMinZoom:W,initialMaxZoom:B,initialFitViewOptions:R,fitView:O,nodeOrigin:T,nodeExtent:L,zIndexMode:M,children:f}){let[I]=F1.useState(()=>BV({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:X,height:Y,fitView:O,minZoom:W,maxZoom:B,fitViewOptions:R,nodeOrigin:T,nodeExtent:L,zIndexMode:M}));return Z1.jsx(Sj,{value:I,children:Z1.jsx(JC,{children:Z1.jsx(zC,{children:f})})})}function zV({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:X,width:Y,height:W,fitView:B,fitViewOptions:R,minZoom:O,maxZoom:T,nodeOrigin:L,nodeExtent:M,zIndexMode:f}){if(F1.useContext(mq))return Z1.jsx(Z1.Fragment,{children:Q});return Z1.jsx(DX,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:X,initialWidth:Y,initialHeight:W,fitView:B,initialFitViewOptions:R,initialMinZoom:O,initialMaxZoom:T,nodeOrigin:L,nodeExtent:M,zIndexMode:f,children:Q})}var LV={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function MV({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:X,nodeTypes:Y,edgeTypes:W,onNodeClick:B,onEdgeClick:R,onInit:O,onMove:T,onMoveStart:L,onMoveEnd:M,onConnect:f,onConnectStart:I,onConnectEnd:k,onClickConnectStart:S,onClickConnectEnd:D,onNodeMouseEnter:h,onNodeMouseMove:P,onNodeMouseLeave:j,onNodeContextMenu:b,onNodeDoubleClick:x,onNodeDragStart:E,onNodeDrag:p,onNodeDragStop:a,onNodesDelete:t,onEdgesDelete:Q1,onDelete:$1,onSelectionChange:_1,onSelectionDragStart:y,onSelectionDrag:u,onSelectionDragStop:v,onSelectionContextMenu:r,onSelectionStart:n,onSelectionEnd:o,onBeforeDelete:V,connectionMode:m,connectionLineType:J1=D4.Bezier,connectionLineStyle:X1,connectionLineComponent:W1,connectionLineContainerStyle:O1,deleteKeyCode:z1="Backspace",selectionKeyCode:I1="Shift",selectionOnDrag:K1=!1,selectionMode:f1=R8.Full,panActivationKeyCode:l1="Space",multiSelectionKeyCode:Y1=n7()?"Meta":"Control",zoomActivationKeyCode:C1=n7()?"Meta":"Control",snapToGrid:y1,snapGrid:c1,onlyRenderVisibleElements:v1=!1,selectNodesOnDrag:V1,nodesDraggable:S0,autoPanOnNodeFocus:E1,nodesConnectable:G2,nodesFocusable:_0,nodeOrigin:h2=PT,edgesFocusable:A2,edgesReconnectable:I2,elementsSelectable:f2=!0,defaultViewport:P2=cj,minZoom:B2=0.5,maxZoom:z2=2,translateExtent:L2=a7,preventScrolling:z3=!0,nodeExtent:D5,defaultMarkerColor:v4="#b1b1b7",zoomOnScroll:E4=!0,zoomOnPinch:b4=!0,panOnScroll:I6=!1,panOnScrollSpeed:o5=0.5,panOnScrollMode:C=W3.Free,zoomOnDoubleClick:e=!0,panOnDrag:B1=!0,onPaneClick:T1,onPaneMouseEnter:P1,onPaneMouseMove:h1,onPaneMouseLeave:m1,onPaneScroll:q0,onPaneContextMenu:S1,paneClickDistance:_2=1,nodeClickDistance:N2=0,children:n5,onReconnect:f6,onReconnectStart:NJ,onReconnectEnd:y8,onEdgeContextMenu:v8,onEdgeDoubleClick:k5,onEdgeMouseEnter:m2,onEdgeMouseMove:jJ,onEdgeMouseLeave:eq,reconnectRadius:q9=10,onNodesChange:CJ,onEdgesChange:E8,noDragClassName:g2="nodrag",noWheelClassName:VJ="nowheel",noPanClassName:b8="nopan",fitView:U9,fitViewOptions:x8,connectOnClick:SJ,attributionPosition:DJ,proOptions:L3,defaultEdgeOptions:kJ,elevateNodesOnSelect:yJ=!0,elevateEdgesOnSelect:vJ=!1,disableKeyboardA11y:G9=!1,autoPanOnConnect:EJ,autoPanOnNodeDrag:j2,autoPanOnSelection:M3=!0,autoPanSpeed:x4,connectionRadius:bJ,isValidConnection:P6,onError:u8,style:Z9,id:T3,nodeDragThreshold:R3,connectionDragThreshold:F9,viewport:_U,onViewportChange:JU,width:xJ,height:K9,colorMode:X9="light",debug:uJ,onScroll:H9,ariaLabelConfig:hJ,zIndexMode:mJ="basic",...gJ},Y9){let O3=T3||"1",N6=ij(X9),$U=F1.useCallback((W9)=>{W9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),H9?.(W9)},[H9]);return Z1.jsx("div",{"data-testid":"rf__wrapper",...gJ,onScroll:$U,style:{...Z9,...LV},ref:Y9,className:y0(["react-flow",X,N6]),id:T3,role:"application",children:Z1.jsxs(zV,{nodes:Q,edges:U,width:xJ,height:K9,fitView:U9,fitViewOptions:x8,minZoom:B2,maxZoom:z2,nodeOrigin:h2,nodeExtent:D5,zIndexMode:mJ,children:[Z1.jsx(dj,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:f,onConnectStart:I,onConnectEnd:k,onClickConnectStart:S,onClickConnectEnd:D,nodesDraggable:S0,autoPanOnNodeFocus:E1,nodesConnectable:G2,nodesFocusable:_0,edgesFocusable:A2,edgesReconnectable:I2,elementsSelectable:f2,elevateNodesOnSelect:yJ,elevateEdgesOnSelect:vJ,minZoom:B2,maxZoom:z2,nodeExtent:D5,onNodesChange:CJ,onEdgesChange:E8,snapToGrid:y1,snapGrid:c1,connectionMode:m,translateExtent:L2,connectOnClick:SJ,defaultEdgeOptions:kJ,fitView:U9,fitViewOptions:x8,onNodesDelete:t,onEdgesDelete:Q1,onDelete:$1,onNodeDragStart:E,onNodeDrag:p,onNodeDragStop:a,onSelectionDrag:u,onSelectionDragStart:y,onSelectionDragStop:v,onMove:T,onMoveStart:L,onMoveEnd:M,noPanClassName:b8,nodeOrigin:h2,rfId:O3,autoPanOnConnect:EJ,autoPanOnNodeDrag:j2,autoPanSpeed:x4,onError:u8,connectionRadius:bJ,isValidConnection:P6,selectNodesOnDrag:V1,nodeDragThreshold:R3,connectionDragThreshold:F9,onBeforeDelete:V,debug:uJ,ariaLabelConfig:hJ,zIndexMode:mJ}),Z1.jsx(WV,{onInit:O,onNodeClick:B,onEdgeClick:R,onNodeMouseEnter:h,onNodeMouseMove:P,onNodeMouseLeave:j,onNodeContextMenu:b,onNodeDoubleClick:x,nodeTypes:Y,edgeTypes:W,connectionLineType:J1,connectionLineStyle:X1,connectionLineComponent:W1,connectionLineContainerStyle:O1,selectionKeyCode:I1,selectionOnDrag:K1,selectionMode:f1,deleteKeyCode:z1,multiSelectionKeyCode:Y1,panActivationKeyCode:l1,zoomActivationKeyCode:C1,onlyRenderVisibleElements:v1,defaultViewport:P2,translateExtent:L2,minZoom:B2,maxZoom:z2,preventScrolling:z3,zoomOnScroll:E4,zoomOnPinch:b4,zoomOnDoubleClick:e,panOnScroll:I6,panOnScrollSpeed:o5,panOnScrollMode:C,panOnDrag:B1,autoPanOnSelection:M3,onPaneClick:T1,onPaneMouseEnter:P1,onPaneMouseMove:h1,onPaneMouseLeave:m1,onPaneScroll:q0,onPaneContextMenu:S1,paneClickDistance:_2,nodeClickDistance:N2,onSelectionContextMenu:r,onSelectionStart:n,onSelectionEnd:o,onReconnect:f6,onReconnectStart:NJ,onReconnectEnd:y8,onEdgeContextMenu:v8,onEdgeDoubleClick:k5,onEdgeMouseEnter:m2,onEdgeMouseMove:jJ,onEdgeMouseLeave:eq,reconnectRadius:q9,defaultMarkerColor:v4,noDragClassName:g2,noWheelClassName:VJ,noPanClassName:b8,rfId:O3,disableKeyboardA11y:G9,nodeExtent:D5,viewport:_U,onViewportChange:JU,nodesDraggable:S0}),Z1.jsx(pj,{onSelectionChange:_1}),n5,Z1.jsx(xj,{proOptions:L3,position:DJ}),Z1.jsx(bj,{rfId:O3,disableKeyboardA11y:G9})]})})}var eT=CT(MV);function _R(Q){let[U,Z]=F1.useState(Q),K=F1.useCallback((X)=>Z((Y)=>jT(X,Y)),[]);return[U,Z,K]}var eh=u2.error014();function TV({dimensions:Q,lineWidth:U,variant:Z,className:K}){return Z1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:y0(["react-flow__background-pattern",Z,K])})}function RV({radius:Q,className:U}){return Z1.jsx("circle",{cx:Q,cy:Q,r:Q,className:y0(["react-flow__background-pattern","dots",U])})}var k4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(k4||(k4={}));var OV={[k4.Dots]:1,[k4.Lines]:1,[k4.Cross]:6},wV=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function JR({id:Q,variant:U=k4.Dots,gap:Z=20,size:K,lineWidth:X=1,offset:Y=0,color:W,bgColor:B,style:R,className:O,patternClassName:T}){let L=F1.useRef(null),{transform:M,patternId:f}=U0(wV,P0),I=K||OV[U],k=U===k4.Dots,S=U===k4.Cross,D=Array.isArray(Z)?Z:[Z,Z],h=[D[0]*M[2]||1,D[1]*M[2]||1],P=I*M[2],j=Array.isArray(Y)?Y:[Y,Y],b=S?[P,P]:h,x=[j[0]*M[2]+b[0]/2,j[1]*M[2]+b[1]/2],E=`${f}${Q?Q:""}`;return Z1.jsxs("svg",{className:y0(["react-flow__background",O]),style:{...R,...gq,"--xy-background-color-props":B,"--xy-background-pattern-color-props":W},ref:L,"data-testid":"rf__background",children:[Z1.jsx("pattern",{id:E,x:M[0]%h[0],y:M[1]%h[1],width:h[0],height:h[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${x[0]},-${x[1]})`,children:k?Z1.jsx(RV,{radius:P/2,className:T}):Z1.jsx(TV,{dimensions:b,lineWidth:X,variant:U,className:T})}),Z1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}JR.displayName="Background";var $R=F1.memo(JR);function IV(){return Z1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:Z1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function fV(){return Z1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:Z1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function PV(){return Z1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:Z1.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function NV(){return Z1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:Z1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function jV(){return Z1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:Z1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function xq({children:Q,className:U,...Z}){return Z1.jsx("button",{type:"button",className:y0(["react-flow__controls-button",U]),...Z,children:Q})}var CV=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function QR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:X,onZoomIn:Y,onZoomOut:W,onFitView:B,onInteractiveChange:R,className:O,children:T,position:L="bottom-left",orientation:M="vertical","aria-label":f}){let I=N0(),{isInteractive:k,minZoomReached:S,maxZoomReached:D,ariaLabelConfig:h}=U0(CV,P0),{zoomIn:P,zoomOut:j,fitView:b}=TJ(),x=()=>{P(),Y?.()},E=()=>{j(),W?.()},p=()=>{b(X),B?.()},a=()=>{I.setState({nodesDraggable:!k,nodesConnectable:!k,elementsSelectable:!k}),R?.(!k)};return Z1.jsxs(N8,{className:y0(["react-flow__controls",M==="horizontal"?"horizontal":"vertical",O]),position:L,style:Q,"data-testid":"rf__controls","aria-label":f??h["controls.ariaLabel"],children:[U&&Z1.jsxs(Z1.Fragment,{children:[Z1.jsx(xq,{onClick:x,className:"react-flow__controls-zoomin",title:h["controls.zoomIn.ariaLabel"],"aria-label":h["controls.zoomIn.ariaLabel"],disabled:D,children:Z1.jsx(IV,{})}),Z1.jsx(xq,{onClick:E,className:"react-flow__controls-zoomout",title:h["controls.zoomOut.ariaLabel"],"aria-label":h["controls.zoomOut.ariaLabel"],disabled:S,children:Z1.jsx(fV,{})})]}),Z&&Z1.jsx(xq,{className:"react-flow__controls-fitview",onClick:p,title:h["controls.fitView.ariaLabel"],"aria-label":h["controls.fitView.ariaLabel"],children:Z1.jsx(PV,{})}),K&&Z1.jsx(xq,{className:"react-flow__controls-interactive",onClick:a,title:h["controls.interactive.ariaLabel"],"aria-label":h["controls.interactive.ariaLabel"],children:k?Z1.jsx(jV,{}):Z1.jsx(NV,{})}),T]})}QR.displayName="Controls";var qR=F1.memo(QR);function VV({id:Q,x:U,y:Z,width:K,height:X,style:Y,color:W,strokeColor:B,strokeWidth:R,className:O,borderRadius:T,shapeRendering:L,selected:M,onClick:f}){let{background:I,backgroundColor:k}=Y||{},S=W||I||k;return Z1.jsx("rect",{className:y0(["react-flow__minimap-node",{selected:M},O]),x:U,y:Z,rx:T,ry:T,width:K,height:X,style:{fill:S,stroke:B,strokeWidth:R},shapeRendering:L,onClick:f?(D)=>f(D,Q):void 0})}var SV=F1.memo(VV),DV=(Q)=>Q.nodes.map((U)=>U.id),jX=(Q)=>Q instanceof Function?Q:()=>Q;function kV({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:X,nodeComponent:Y=SV,onClick:W}){let B=U0(DV,P0),R=jX(U),O=jX(Q),T=jX(Z),L=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return Z1.jsx(Z1.Fragment,{children:B.map((M)=>Z1.jsx(vV,{id:M,nodeColorFunc:R,nodeStrokeColorFunc:O,nodeClassNameFunc:T,nodeBorderRadius:K,nodeStrokeWidth:X,NodeComponent:Y,onClick:W,shapeRendering:L},M))})}function yV({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:X,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:B,onClick:R}){let{node:O,x:T,y:L,width:M,height:f}=U0((I)=>{let k=I.nodeLookup.get(Q);if(!k)return{node:void 0,x:0,y:0,width:0,height:0};let S=k.internals.userNode,{x:D,y:h}=k.internals.positionAbsolute,{width:P,height:j}=V5(S);return{node:S,x:D,y:h,width:P,height:j}},P0);if(!O||O.hidden||!XX(O))return null;return Z1.jsx(B,{x:T,y:L,width:M,height:f,style:O.style,selected:!!O.selected,className:K(O),color:U(O),borderRadius:X,strokeColor:Z(O),strokeWidth:Y,shapeRendering:W,onClick:R,id:O.id})}var vV=F1.memo(yV),EV=F1.memo(kV),bV=200,xV=150,uV=(Q)=>!Q.hidden,hV=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?ZX(f8(Q.nodeLookup,{filter:uV}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},RT=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,mV=(Q,U)=>RT(Q.viewBB,U.viewBB)&&RT(Q.boundingRect,U.boundingRect)&&Q.rfId===U.rfId&&Q.panZoom===U.panZoom&&Q.translateExtent===U.translateExtent&&Q.flowWidth===U.flowWidth&&Q.flowHeight===U.flowHeight&&Q.ariaLabelConfig===U.ariaLabelConfig,gV="react-flow__minimap-desc";function UR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:X="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:B,bgColor:R,maskColor:O,maskStrokeColor:T,maskStrokeWidth:L,position:M="bottom-right",onClick:f,onNodeClick:I,pannable:k=!1,zoomable:S=!1,ariaLabel:D,inversePan:h,zoomStep:P=1,offsetScale:j=5}){let b=N0(),x=F1.useRef(null),{boundingRect:E,panZoom:p,viewBB:a,rfId:t,translateExtent:Q1,flowWidth:$1,flowHeight:_1,ariaLabelConfig:y}=U0(hV,mV),u=Q?.width??bV,v=Q?.height??xV,r=E.width/u,n=E.height/v,o=Math.max(r,n),V=o*u,m=o*v,J1=j*o,X1=E.x-(V-E.width)/2-J1,W1=E.y-(m-E.height)/2-J1,O1=V+J1*2,z1=m+J1*2,I1=`${gV}-${t}`,K1=F1.useRef(0),f1=F1.useRef();K1.current=o,F1.useEffect(()=>{let c1=b.getState().panZoom;if(x.current&&c1)return f1.current=yM({domNode:x.current,panZoom:c1,getTransform:()=>b.getState().transform,getViewScale:()=>K1.current}),()=>{f1.current?.destroy()}},[p]),F1.useEffect(()=>{f1.current?.update({translateExtent:Q1,width:$1,height:_1,inversePan:h,pannable:k,zoomStep:P,zoomable:S})},[k,S,h,P,Q1,$1,_1]);let l1=f?(c1)=>{let[v1,V1]=f1.current?.pointer(c1)||[0,0];f(c1,{x:v1,y:V1})}:void 0,Y1=F1.useCallback((c1,v1)=>{let V1=b.getState().nodeLookup.get(v1).internals.userNode;I?.(c1,V1)},[I]),C1=I?Y1:void 0,y1=D??y["minimap.ariaLabel"];return Z1.jsx(N8,{position:M,style:{...Q,"--xy-minimap-background-color-props":typeof R==="string"?R:void 0,"--xy-minimap-mask-background-color-props":typeof O==="string"?O:void 0,"--xy-minimap-mask-stroke-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-stroke-width-props":typeof L==="number"?L*o:void 0,"--xy-minimap-node-background-color-props":typeof K==="string"?K:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof W==="number"?W:void 0},className:y0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:Z1.jsxs("svg",{width:u,height:v,viewBox:`${X1} ${W1} ${O1} ${z1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":I1,ref:x,onClick:l1,children:[y1&&Z1.jsx("title",{id:I1,children:y1}),Z1.jsx(EV,{onClick:C1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:X,nodeStrokeWidth:W,nodeComponent:B}),Z1.jsx("path",{className:"react-flow__minimap-mask",d:`M${X1-J1},${W1-J1}h${O1+J1*2}v${z1+J1*2}h${-O1-J1*2}z
247
- M${a.x},${a.y}h${a.width}v${a.height}h${-a.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}UR.displayName="MiniMap";var GR=F1.memo(UR),pV=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,cV={[z6.Line]:"right",[z6.Handle]:"bottom-right"};function lV({nodeId:Q,position:U,variant:Z=z6.Handle,className:K,style:X=void 0,children:Y,color:W,minWidth:B=10,minHeight:R=10,maxWidth:O=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:L=!1,resizeDirection:M,autoScale:f=!0,shouldResize:I,onResizeStart:k,onResize:S,onResizeEnd:D}){let h=SX(),P=typeof Q==="string"?Q:h,j=N0(),b=F1.useRef(null),x=Z===z6.Handle,E=U0(F1.useCallback(pV(x&&f),[x,f]),P0),p=F1.useRef(null),a=U??cV[Z];F1.useEffect(()=>{if(!b.current||!P)return;if(!p.current)p.current=uM({domNode:b.current,nodeId:P,getStoreItems:()=>{let{nodeLookup:Q1,transform:$1,snapGrid:_1,snapToGrid:y,nodeOrigin:u,domNode:v}=j.getState();return{nodeLookup:Q1,transform:$1,snapGrid:_1,snapToGrid:y,nodeOrigin:u,paneDomNode:v}},onChange:(Q1,$1)=>{let{triggerNodeChanges:_1,nodeLookup:y,parentLookup:u,nodeOrigin:v}=j.getState(),r=[],n={x:Q1.x,y:Q1.y},o=y.get(P);if(o&&o.expandParent&&o.parentId){let V=o.origin??v,m=Q1.width??o.measured.width??0,J1=Q1.height??o.measured.height??0,X1={id:o.id,parentId:o.parentId,rect:{width:m,height:J1,...HX({x:Q1.x??o.position.x,y:Q1.y??o.position.y},{width:m,height:J1},o.parentId,y,V)}},W1=yq([X1],y,u,v);r.push(...W1),n.x=Q1.x?Math.max(V[0]*m,Q1.x):void 0,n.y=Q1.y?Math.max(V[1]*J1,Q1.y):void 0}if(n.x!==void 0&&n.y!==void 0){let V={id:P,type:"position",position:{...n}};r.push(V)}if(Q1.width!==void 0&&Q1.height!==void 0){let m={id:P,type:"dimensions",resizing:!0,setAttributes:!M?!0:M==="horizontal"?"width":"height",dimensions:{width:Q1.width,height:Q1.height}};r.push(m)}for(let V of $1){let m={...V,type:"position"};r.push(m)}_1(r)},onEnd:({width:Q1,height:$1})=>{let _1={id:P,type:"dimensions",resizing:!1,dimensions:{width:Q1,height:$1}};j.getState().triggerNodeChanges([_1])}});return p.current.update({controlPosition:a,boundaries:{minWidth:B,minHeight:R,maxWidth:O,maxHeight:T},keepAspectRatio:L,resizeDirection:M,onResizeStart:k,onResize:S,onResizeEnd:D,shouldResize:I}),()=>{p.current?.destroy()}},[a,B,R,O,T,L,k,S,D,I]);let t=a.split("-");return Z1.jsx("div",{className:y0(["react-flow__resize-control","nodrag",...t,Z,K]),ref:b,style:{...X,scale:E,...W&&{[x?"backgroundColor":"borderColor"]:W}},children:Y})}var _m=F1.memo(lV);var rV=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function dV({children:Q}){let U=U0(rV);if(!U)return null;return OT.createPortal(Q,U)}var iV=(Q,U)=>Q?.internals.positionAbsolute.x!==U?.internals.positionAbsolute.x||Q?.internals.positionAbsolute.y!==U?.internals.positionAbsolute.y||Q?.measured.width!==U?.measured.width||Q?.measured.height!==U?.measured.height||Q?.selected!==U?.selected||Q?.internals.z!==U?.internals.z,aV=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,K]of Q)if(iV(K,U.get(Z)))return!1;return!0},sV=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function ZR({nodeId:Q,children:U,className:Z,style:K,isVisible:X,position:Y=j1.Top,offset:W=10,align:B="center",...R}){let O=SX(),T=F1.useCallback((b)=>{return(Array.isArray(Q)?Q:[Q||O||""]).reduce((p,a)=>{let t=b.nodeLookup.get(a);if(t)p.set(t.id,t);return p},new Map)},[Q,O]),L=U0(T,aV),{x:M,y:f,zoom:I,selectedNodesCount:k}=U0(sV,P0);if(!(typeof X==="boolean"?X:L.size===1&&L.values().next().value?.selected&&k===1)||!L.size)return null;let D=f8(L),h=Array.from(L.values()),P=Math.max(...h.map((b)=>b.internals.z+1)),j={position:"absolute",transform:OM(D,{x:M,y:f,zoom:I},Y,W,B),zIndex:P,...K};return Z1.jsx(dV,{children:Z1.jsx("div",{style:j,className:y0(["react-flow__node-toolbar",Z]),...R,"data-id":h.reduce((b,x)=>`${b}${x.id} `,"").trim(),children:U})})}var e0=b0(l5(),1);var FR={x:{title:"X",fill:"currentColor",d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},youtube:{title:"YouTube",fill:"#FF0000",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},tiktok:{title:"TikTok",fill:"currentColor",d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},discord:{title:"Discord",fill:"#5865F2",d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},resend:{title:"Resend",fill:"currentColor",d:"M2.023 0v24h5.553v-8.434h2.998L15.326 24h6.65l-5.372-9.258a7.652 7.652 0 0 0 3.316-3.016c.709-1.21 1.062-2.57 1.062-4.08 0-1.462-.353-2.767-1.062-3.91-.709-1.165-1.692-2.079-2.95-2.742C15.737.331 14.355 0 12.823 0Zm5.553 4.87h4.219c.731 0 1.349.125 1.851.376.526.252.925.618 1.2 1.098.274.457.412.994.412 1.611S15.132 9.12 14.88 9.6c-.229.48-.572.856-1.03 1.13-.434.252-.948.38-1.542.38H7.576Z"},linkedin:{title:"LinkedIn",fill:"#0A66C2",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},reddit:{title:"Reddit",fill:"#FF4500",d:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"},bluesky:{title:"Bluesky",fill:"#0285FF",d:"M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"},instagram:{title:"Instagram",fill:"#FF0069",d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},github:{title:"GitHub",fill:"currentColor",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"},stripe:{title:"Stripe",fill:"#635BFF",d:"M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"},slack:{title:"Slack",fill:"#4A154B",d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},openai:{title:"OpenAI",fill:"#412991",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"},anthropic:{title:"Anthropic",fill:"currentColor",d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"},twilio:{title:"Twilio",fill:"#F22F46",d:"M12 0C5.381-.008.008 5.352 0 11.971V12c0 6.64 5.359 12 12 12 6.64 0 12-5.36 12-12 0-6.641-5.36-12-12-12zm0 20.801c-4.846.015-8.786-3.904-8.801-8.75V12c-.014-4.846 3.904-8.786 8.75-8.801H12c4.847-.014 8.786 3.904 8.801 8.75V12c.015 4.847-3.904 8.786-8.75 8.801H12zm5.44-11.76c0 1.359-1.12 2.479-2.481 2.479-1.366-.007-2.472-1.113-2.479-2.479 0-1.361 1.12-2.481 2.479-2.481 1.361 0 2.481 1.12 2.481 2.481zm0 5.919c0 1.36-1.12 2.48-2.481 2.48-1.367-.008-2.473-1.114-2.479-2.48 0-1.359 1.12-2.479 2.479-2.479 1.361-.001 2.481 1.12 2.481 2.479zm-5.919 0c0 1.36-1.12 2.48-2.479 2.48-1.368-.007-2.475-1.113-2.481-2.48 0-1.359 1.12-2.479 2.481-2.479 1.358-.001 2.479 1.12 2.479 2.479zm0-5.919c0 1.359-1.12 2.479-2.479 2.479-1.367-.007-2.475-1.112-2.481-2.479 0-1.361 1.12-2.481 2.481-2.481 1.358 0 2.479 1.12 2.479 2.481z"},sendgrid:{title:"SendGrid",fill:"#51A9E3",d:"M.8 24h13.6c.88 0 1.6-.72 1.6-1.6v-4.8c0-.88-.72-1.6-1.6-1.6H9.6c-.88 0-1.6-.72-1.6-1.6V9.6C8 8.72 7.28 8 6.4 8H1.6C.72 8 0 8.72 0 9.6v13.6c0 .44.36.8.8.8zM23.2 0H9.6C8.72 0 8 .72 8 1.6v4.8C8 7.28 8.72 8 9.6 8h4.8c.88 0 1.6.72 1.6 1.6v4.8c0 .88.72 1.6 1.6 1.6h4.8c.88 0 1.6-.72 1.6-1.6V.8c0-.44-.36-.8-.8-.8Z"},mailgun:{title:"Mailgun",fill:"#F06B66",d:"M11.837 0c6.602 0 11.984 5.381 11.984 11.994-.017 2.99-3.264 4.84-5.844 3.331a3.805 3.805 0 0 1-.06-.035l-.055-.033-.022.055c-2.554 4.63-9.162 4.758-11.894.232-2.732-4.527.46-10.313 5.746-10.416a6.868 6.868 0 0 1 7.002 6.866 1.265 1.265 0 0 0 2.52 0c0-5.18-4.197-9.38-9.377-9.387C4.611 2.594.081 10.41 3.683 16.673c3.238 5.632 11.08 6.351 15.289 1.402l1.997 1.686A11.95 11.95 0 0 1 11.837 24C2.6 23.72-2.87 13.543 1.992 5.684A12.006 12.006 0 0 1 11.837 0Zm0 7.745c-3.276-.163-5.5 3.281-4.003 6.2a4.26 4.26 0 0 0 4.014 2.31c3.276-.171 5.137-3.824 3.35-6.575a4.26 4.26 0 0 0-3.36-1.935Zm0 2.53c1.324 0 2.152 1.433 1.49 2.58a1.72 1.72 0 0 1-1.49.86 1.72 1.72 0 1 1 0-3.44Z"},notion:{title:"Notion",fill:"currentColor",d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"},linear:{title:"Linear",fill:"#5E6AD2",d:"M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"},jira:{title:"Jira",fill:"#0052CC",d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"},hubspot:{title:"HubSpot",fill:"#FF7A59",d:"M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"},paypal:{title:"PayPal",fill:"#003087",d:"M7.016 19.198h-4.2a.562.562 0 0 1-.555-.65L5.093.584A.692.692 0 0 1 5.776 0h7.222c3.417 0 5.904 2.488 5.846 5.5-.006.25-.027.5-.066.747A6.794 6.794 0 0 1 12.071 12H8.743a.69.69 0 0 0-.682.583l-.325 2.056-.013.083-.692 4.39-.015.087zM19.79 6.142c-.01.087-.01.175-.023.261a7.76 7.76 0 0 1-7.695 6.598H9.007l-.283 1.795-.013.083-.692 4.39-.134.843-.014.088H6.86l-.497 3.15a.562.562 0 0 0 .555.65h3.612c.34 0 .63-.249.683-.585l.952-6.031a.692.692 0 0 1 .683-.584h2.126a6.793 6.793 0 0 0 6.707-5.752c.306-1.95-.466-3.744-1.89-4.906z"},shopify:{title:"Shopify",fill:"#7AB55C",d:"M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023zM11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z"},sentry:{title:"Sentry",fill:"#362D59",d:"M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"},vercel:{title:"Vercel",fill:"currentColor",d:"M24 22.525H0l12-21.05 12 21.05z"},supabase:{title:"Supabase",fill:"#3FCF8E",d:"M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"},clerk:{title:"Clerk",fill:"#6C47FF",d:"m21.47 20.829-2.881-2.881a.572.572 0 0 0-.7-.084 6.854 6.854 0 0 1-7.081 0 .576.576 0 0 0-.7.084l-2.881 2.881a.576.576 0 0 0-.103.69.57.57 0 0 0 .166.186 12 12 0 0 0 14.113 0 .58.58 0 0 0 .239-.423.576.576 0 0 0-.172-.453Zm.002-17.668-2.88 2.88a.569.569 0 0 1-.701.084A6.857 6.857 0 0 0 8.724 8.08a6.862 6.862 0 0 0-1.222 3.692 6.86 6.86 0 0 0 .978 3.764.573.573 0 0 1-.083.699l-2.881 2.88a.567.567 0 0 1-.864-.063A11.993 11.993 0 0 1 6.771 2.7a11.99 11.99 0 0 1 14.637-.405.566.566 0 0 1 .232.418.57.57 0 0 1-.168.448Zm-7.118 12.261a3.427 3.427 0 1 0 0-6.854 3.427 3.427 0 0 0 0 6.854Z"},aws:{title:"Amazon Web Services",fill:"#232F3E",d:"M6.763 10.036c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 0 1-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 0 1-.287-.375 6.18 6.18 0 0 1-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.391-.384-.59-.894-.59-1.533 0-.678.239-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272a2.287 2.287 0 0 1-.28.104.488.488 0 0 1-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 0 1 .224-.167c.279-.144.614-.264 1.005-.36a4.84 4.84 0 0 1 1.246-.151c.95 0 1.644.216 2.091.647.439.43.662 1.085.662 1.963v2.586zm-3.24 1.214c.263 0 .534-.048.822-.144.287-.096.543-.271.758-.51.128-.152.224-.32.272-.512.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 0 0-.735-.136 6.02 6.02 0 0 0-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 5.55a1.398 1.398 0 0 1-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 0 1 .32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 0 1 .311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 0 1-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 0 1-.303.08h-.687c-.151 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32l-1.238-5.148-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 0 1-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.319.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 0 0 .415-.758.777.777 0 0 0-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 0 1-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .359.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 0 1 .24.2.43.43 0 0 1 .071.263v.375c0 .168-.064.256-.184.256a.83.83 0 0 1-.303-.096 3.652 3.652 0 0 0-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.159.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926-.144.272-.336.511-.583.703-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167zM21.698 16.207c-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351 3.384 1.963 7.559 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.439-.2.814.287.383.607zM22.792 14.961c-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151.32-.79 1.03-2.57.695-2.994z"},figma:{title:"Figma",fill:"#F24E1E",d:"M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.097-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z"},airtable:{title:"Airtable",fill:"#18BFFF",d:"M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"},intercom:{title:"Intercom",fill:"#6AFDEF",d:"M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"},posthog:{title:"PostHog",fill:"currentColor",d:"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z"},datadog:{title:"Datadog",fill:"#632CA6",d:"M19.57 17.04l-1.997-1.316-1.665 2.782-1.937-.567-1.706 2.604.087.82 9.274-1.71-.538-5.794zm-8.649-2.498l1.488-.204c.241.108.409.15.697.223.45.117.97.23 1.741-.16.18-.088.553-.43.704-.625l6.096-1.106.622 7.527-10.444 1.882zm11.325-2.712l-.602.115L20.488 0 .789 2.285l2.427 19.693 2.306-.334c-.184-.263-.471-.581-.96-.989-.68-.564-.44-1.522-.039-2.127.53-1.022 3.26-2.322 3.106-3.956-.056-.594-.15-1.368-.702-1.898-.02.22.017.432.017.432s-.227-.289-.34-.683c-.112-.15-.2-.199-.319-.4-.085.233-.073.503-.073.503s-.186-.437-.216-.807c-.11.166-.137.48-.137.48s-.241-.69-.186-1.062c-.11-.323-.436-.965-.343-2.424.6.421 1.924.321 2.44-.439.171-.251.288-.939-.086-2.293-.24-.868-.835-2.16-1.066-2.651l-.028.02c.122.395.374 1.223.47 1.625.293 1.218.372 1.642.234 2.204-.116.488-.397.808-1.107 1.165-.71.358-1.653-.514-1.713-.562-.69-.55-1.224-1.447-1.284-1.883-.062-.477.275-.763.445-1.153-.243.07-.514.192-.514.192s.323-.334.722-.624c.165-.109.262-.178.436-.323a9.762 9.762 0 0 0-.456.003s.42-.227.855-.392c-.318-.014-.623-.003-.623-.003s.937-.419 1.678-.727c.509-.208 1.006-.147 1.286.257.367.53.752.817 1.569.996.501-.223.653-.337 1.284-.509.554-.61.99-.688.99-.688s-.216.198-.274.51c.314-.249.66-.455.66-.455s-.134.164-.259.426l.03.043c.366-.22.797-.394.797-.394s-.123.156-.268.358c.277-.002.838.012 1.056.037 1.285.028 1.552-1.374 2.045-1.55.618-.22.894-.353 1.947.68.903.888 1.609 2.477 1.259 2.833-.294.295-.874-.115-1.516-.916a3.466 3.466 0 0 1-.716-1.562 1.533 1.533 0 0 0-.497-.85s.23.51.23.96c0 .246.03 1.165.424 1.68-.039.076-.057.374-.1.43-.458-.554-1.443-.95-1.604-1.067.544.445 1.793 1.468 2.273 2.449.453.927.186 1.777.416 1.997.065.063.976 1.197 1.15 1.767.306.994.019 2.038-.381 2.685l-1.117.174c-.163-.045-.273-.068-.42-.153.08-.143.241-.5.243-.572l-.063-.111c-.348.492-.93.97-1.414 1.245-.633.359-1.363.304-1.838.156-1.348-.415-2.623-1.327-2.93-1.566 0 0-.01.191.048.234.34.383 1.119 1.077 1.872 1.56l-1.605.177.759 5.908c-.337.048-.39.071-.757.124-.325-1.147-.946-1.895-1.624-2.332-.599-.384-1.424-.47-2.214-.314l-.05.059a2.851 2.851 0 0 1 1.863.444c.654.413 1.181 1.481 1.375 2.124.248.822.42 1.7-.248 2.632-.476.662-1.864 1.028-2.986.237.3.481.705.876 1.25.95.809.11 1.577-.03 2.106-.574.452-.464.69-1.434.628-2.456l.714-.104.258 1.834 11.827-1.424zM15.05 6.848c-.034.075-.085.125-.007.37l.004.014.013.032.032.073c.14.287.295.558.552.696.067-.011.136-.019.207-.023.242-.01.395.028.492.08.009-.048.01-.119.005-.222-.018-.364.072-.982-.626-1.308-.264-.122-.634-.084-.757.068a.302.302 0 0 1 .058.013c.186.066.06.13.027.207m1.958 3.392c-.092-.05-.52-.03-.821.005-.574.068-1.193.267-1.328.372-.247.191-.135.523.047.66.511.382.96.638 1.432.575.29-.038.546-.497.728-.914.124-.288.124-.598-.058-.698m-5.077-2.942c.162-.154-.805-.355-1.556.156-.554.378-.571 1.187-.041 1.646.053.046.096.078.137.104a4.77 4.77 0 0 1 1.396-.412c.113-.125.243-.345.21-.745-.044-.542-.455-.456-.146-.749"},algolia:{title:"Algolia",fill:"#003DFF",d:"M12 0C5.445 0 .103 5.285.01 11.817c-.097 6.634 5.285 12.131 11.92 12.17a11.91 11.91 0 0 0 5.775-1.443.281.281 0 0 0 .052-.457l-1.122-.994a.79.79 0 0 0-.833-.14 9.693 9.693 0 0 1-3.923.77c-5.36-.067-9.692-4.527-9.607-9.888.084-5.293 4.417-9.573 9.73-9.573h9.73v17.296l-5.522-4.907a.407.407 0 0 0-.596.063 4.52 4.52 0 0 1-3.934 1.793 4.538 4.538 0 0 1-4.192-4.168 4.53 4.53 0 0 1 4.512-4.872 4.532 4.532 0 0 1 4.509 4.126c.018.205.11.397.265.533l1.438 1.275a.28.28 0 0 0 .462-.158 6.82 6.82 0 0 0 .099-1.725c-.232-3.376-2.966-6.092-6.345-6.3-3.873-.24-7.11 2.79-7.214 6.588-.1 3.7 2.933 6.892 6.634 6.974a6.75 6.75 0 0 0 4.136-1.294l7.212 6.394a.48.48 0 0 0 .797-.36V.456A.456.456 0 0 0 23.54 0Z"},cloudflare:{title:"Cloudflare",fill:"#F38020",d:"M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727"},upstash:{title:"Upstash",fill:"#00E9A3",d:"M13.8027 0C11.193 0 8.583.9952 6.5918 2.9863c-3.9823 3.9823-3.9823 10.4396 0 14.4219 1.9911 1.9911 5.2198 1.9911 7.211 0 1.991-1.9911 1.991-5.2198 0-7.211L12 12c.9956.9956.9956 2.6098 0 3.6055-.9956.9955-2.6099.9955-3.6055 0-2.9866-2.9868-2.9866-7.8297 0-10.8164 2.9868-2.9868 7.8297-2.9868 10.8164 0l1.8028-1.8028C19.0225.9952 16.4125 0 13.8027 0zM12 12c-.9956-.9956-.9956-2.6098 0-3.6055.9956-.9955 2.6098-.9955 3.6055 0 2.9867 2.9868 2.9867 7.8297 0 10.8164-2.9867 2.9868-7.8297 2.9868-10.8164 0l-1.8028 1.8028c3.9823 3.9822 10.4396 3.9822 14.4219 0 3.9823-3.9824 3.9823-10.4396 0-14.4219-.9956-.9956-2.3006-1.4922-3.6055-1.4922-1.3048 0-2.6099.4966-3.6054 1.4922-1.9912 1.9912-1.9912 5.2198 0 7.211z"},mixpanel:{title:"Mixpanel",fill:"#7856FF",d:"M6.967 9.996h3.053c-.763-.477-1.048-1.145-1.431-2.384L7.443 3.366C6.919 1.458 6.49.551 4.39.551H.004v1.145h.621c1.286 0 1.431.477 1.814 1.908L3.44 7.326c.524 1.814 1.337 2.67 3.53 2.67h-.003Zm7.06 0h3.053c2.194 0 2.956-.86 3.484-2.67l1.001-3.722c.382-1.431.57-1.908 1.814-1.908H24V.551h-4.34c-2.146 0-2.576.86-3.053 2.815l-1.145 4.246c-.384 1.286-.673 1.907-1.435 2.384Zm-4.007 4.008h4.007V9.996H10.02v4.008ZM0 23.449h4.39c2.1 0 2.529-.907 3.053-2.815l1.146-4.246c.383-1.239.668-1.907 1.431-2.384H6.967c-2.194 0-3.007.86-3.531 2.67l-1.001 3.722c-.383 1.431-.524 1.907-1.814 1.907H0v1.146Zm19.65 0h4.343v-1.146h-.622c-1.239 0-1.431-.476-1.814-1.907l-1.001-3.722c-.524-1.814-1.286-2.67-3.483-2.67h-3.046c.762.477 1.041 1.098 1.424 2.384l1.145 4.246c.477 1.955.907 2.815 3.054 2.815Z"},gemini:{title:"Google Gemini",fill:"#8E75B2",d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"}};var x1=b0(RJ(),1),oV="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function cq({href:Q,onClick:U}){return x1.jsxDEV("h1",{children:x1.jsxDEV("a",{href:Q,onClick:U,children:[x1.jsxDEV("img",{src:oV,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),x1.jsxDEV("span",{className:"brand-name",children:" Volter World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}async function a5(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function XR(Q,U,Z=0,K=""){let[X,Y]=e0.useState({state:"loading"});return e0.useEffect(()=>{Y({state:"loading"})},[K,U]),e0.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let B=await Q(U),R=B.ok?{state:"ok",data:await B.json()}:{state:"error",status:B.status,error:await a5(B)};if(W)Y(R)}catch(B){if(W)Y({state:"error",status:0,error:String(B)})}})(),()=>{W=!1}},[K,U,Z]),X}function s5({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return x1.jsxDEV(nV,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return x1.jsxDEV("div",{role:"alert",className:"error-state",children:[x1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?x1.jsxDEV("button",{type:"button",onClick:Z,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function nV({lines:Q=3,label:U="Loading…"}){return x1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,K)=>x1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function W2({iso:Q,time:U}){if(!Q)return x1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return x1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var OJ=(Q)=>Q?new Date(Q).toLocaleString():"—";function lq(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let Z=Math.max(0,Math.round((Date.now()-U)/1000));return Z<60?"just now":Z<3600?`${Math.round(Z/60)}m ago`:Z<86400?`${Math.round(Z/3600)}h ago`:`${Math.round(Z/86400)}d ago`}function _9(Q,U){let Z=U.replace(/[_-]+/g," "),K=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:K}`}var eV={github:"GitHub",openai:"OpenAI",aws:"AWS",hubspot:"HubSpot",paypal:"PayPal",youtube:"YouTube",tiktok:"TikTok",linkedin:"LinkedIn",xai:"xAI",sendgrid:"SendGrid",elevenlabs:"ElevenLabs",assemblyai:"AssemblyAI",planetscale:"PlanetScale",googleoauth:"Google sign-in",npm:"npm","npm-registry":"npm registry",posthog:"PostHog",mongodb:"MongoDB",pagerduty:"PagerDuty",mailgun:"Mailgun",turbopuffer:"turbopuffer"},W0=(Q)=>eV[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function W5({vendor:Q}){let U=FR[Q];return x1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?x1.jsxDEV("svg",{viewBox:"0 0 24 24",children:x1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):W0(Q).charAt(0)},void 0,!1,void 0,this)}var KR=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},kX="volter.theme",HR=()=>{try{let Q=localStorage.getItem(kX);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function EX(Q=HR()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function YR(){let[Q,U]=e0.useState(HR),Z=(K)=>{try{if(K==="system")localStorage.removeItem(kX);else localStorage.setItem(kX,K)}catch{}EX(K),U(K)};return x1.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Theme",children:["system","light","dark"].map((K)=>x1.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===K,onClick:()=>Z(K),children:K==="system"?"System":K==="light"?"Light":"Dark"},K,!1,void 0,this))},void 0,!1,void 0,this)}function WR(){return e0.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(K)=>{if(K.key!=="Escape"||document.querySelector("dialog[open]"))return;let X=Q();if(!X.length)return;for(let Y of X)Y.removeAttribute("open");X[X.length-1].querySelector("summary")?.focus()},Z=(K)=>{let X=K.target;for(let Y of Q())if(!X||!Y.contains(X))Y.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function wJ({open:Q,onClose:U,title:Z,children:K,footer:X,wide:Y}){let W=e0.useRef(null),B=e0.useId();return e0.useEffect(()=>{let R=W.current;if(!R)return;if(Q&&!R.open){R.showModal();let O=R.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(O?.focus(),O instanceof HTMLInputElement&&O.value&&/^(text|search|email|url)$/.test(O.type))O.select()}if(!Q&&R.open)R.close()},[Q]),x1.jsxDEV("dialog",{ref:W,className:Y?"dialog wide":"dialog","aria-labelledby":B,onClose:U,onCancel:(R)=>{R.preventDefault(),U()},onMouseDown:(R)=>{if(R.target===W.current)U()},children:Q?x1.jsxDEV(x1.Fragment,{children:[x1.jsxDEV("div",{className:"dialog-head",children:[x1.jsxDEV("h2",{id:B,children:Z},void 0,!1,void 0,this),x1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Close",onClick:U,children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),X?x1.jsxDEV("div",{className:"dialog-foot",children:X},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)}var yX="volter:confirm";function B3(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(yX,{detail:{ask:Q,resolve:U}}))})}function AR(){let[Q,U]=e0.useState(null),[Z,K]=e0.useState("");e0.useEffect(()=>{let B=(R)=>{K(""),U(R.detail)};return window.addEventListener(yX,B),()=>window.removeEventListener(yX,B)},[]);let X=(B)=>{Q?.resolve(B),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return x1.jsxDEV(wJ,{open:Boolean(Q),onClose:()=>X(!1),title:Y?.title??"",footer:x1.jsxDEV(x1.Fragment,{children:[x1.jsxDEV("button",{type:"button",onClick:()=>X(!1),children:"Cancel"},void 0,!1,void 0,this),x1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!W,onClick:()=>X(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?x1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?x1.jsxDEV("div",{className:"typed-confirm",children:[x1.jsxDEV("p",{children:["Type ",x1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),x1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(B)=>K(B.target.value),onKeyDown:(B)=>{if(B.key==="Enter"&&W)X(!0)},autoComplete:"off",spellCheck:!1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}var vX="volter:toast";function L6(Q,U="ok"){window.dispatchEvent(new CustomEvent(vX,{detail:{text:Q,kind:U}}))}function BR(){let[Q,U]=e0.useState([]);return e0.useEffect(()=>{let Z=0,K=(X)=>{let{text:Y,kind:W}=X.detail,B=++Z;if(U((R)=>[...R.slice(-3),{id:B,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((R)=>R.filter((O)=>O.id!==B)),4500)};return window.addEventListener(vX,K),()=>window.removeEventListener(vX,K)},[]),x1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>x1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[x1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),x1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.filter((X)=>X.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function bX({value:Q,label:U,secret:Z}){let[K,X]=e0.useState(!1);return x1.jsxDEV("div",{className:"copy-field",children:[U?x1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,x1.jsxDEV("div",{className:"copy-row",children:[x1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),x1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{X(!0),setTimeout(()=>X(!1),1600),L6(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>L6("Your browser would not copy it: select it and copy","error"))},children:K?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function zR({label:Q,items:U}){return x1.jsxDEV("details",{className:"menu row-menu",children:[x1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),x1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?x1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:KR,children:Z.label},Z.label,!1,void 0,this):x1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(K)=>{KR(K),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function LR(){return e0.useEffect(()=>{let Q=(Z)=>{let K=document.querySelector("main.app"),X=Z.target;if(K?.hasAttribute("data-drawer")&&X&&!X.closest(".side")&&!X.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")_S()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),x1.jsxDEV("button",{type:"button",className:"icon-button drawer-button","aria-label":"Menu",onClick:()=>{document.querySelector("main.app")?.toggleAttribute("data-drawer")},children:"☰"},void 0,!1,void 0,this)}var _S=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var VR=b0(OR(),1);function uX(Q={}){let U=(K,X)=>Q.tools?`${X} (\`${K}\`)`:`\`${K}\``,Z=["Set up Volter World for this app, so its calls to Stripe, Slack, GitHub, OpenAI and the other services it uses go to local twins instead of the real APIs. The app keeps its real SDKs and code.","",Q.tools?"1. You have the Volter World tools (volter mcp). If the `volter` command is missing, install it: `npm install -g @volter/world`.":"1. Install the command and your agent tooling: `npm install -g @volter/world`, then `volter agents install --yes`.",`2. In the app's folder, ${U("volter world init --install","world_init")}: it detects the vendors the app calls and installs their twins. Show me the vendors it detected and why, before keeping them.`,`3. ${Q.tools?"Start it with world_up":"Start it: `volter world up`"}, then run the tests inside it: ${U("volter world run -- <the test command>","world_run")}. Fix anything that fails because a call went to the real service.`,`4. Tell me what the app did at each vendor (${U("volter world log","world_log")}), and give me the dashboard link (${Q.tools?"world_view":"`volter world view --no-open`, started in the background: it keeps running"}).`];if(Q.platform){let K=Q.world??"<org>/<world>";Z.push(`5. Share it with my team on ${Q.platform}: ${U(`volter login ${Q.platform}`,"platform_login")} gives a link and a code for me to approve in my browser. Once I have, link it with ${U(`volter remote add origin ${K} --create`,"remote_link with create: true")}${Q.world?"":" (ask me for <org>/<world>)"}, then send what the app did: ${U('volter world changeset -m "<what and why>"',"world_changeset")} and ${U("volter world push","world_push")}.`)}return Z.push("","The guide: https://github.com/volter-ai/twin/blob/main/docs/guides/use-with-a-coding-agent.md"),Z.join(`
248
- `)}var A=b0(RJ(),1),rq="volter.console.token",fJ=document.getElementById("root"),F0=fJ.dataset.base??"/-/console",j0=window.location.origin,O6=(fJ.dataset.worlds??j0).replace(/\/+$/,""),SR=(fJ.dataset.names??"").split(",").filter((Q)=>Q!==""),T6=fJ.dataset.worldOrigin==="1",S8=window.fetch.bind(window),R6="(session)",DR="(pass)",IJ=(Q)=>{try{if(Q&&!T6)sessionStorage.setItem(rq,Q);else sessionStorage.removeItem(rq);localStorage.removeItem(rq)}catch{}},kR="volter.console.portal",yR=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(kR,new URL(Q).origin)}catch{}},qS=()=>{return k8.get("token")??""},t2=()=>{try{let Q=sessionStorage.getItem(kR)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},US=()=>{let Q=qS();if(T6){if(IJ(""),k8.get("pass"))return DR;let U=new URLSearchParams(window.location.search).has("signin");if(U)try{window.history.replaceState(null,"",window.location.pathname+window.location.hash)}catch{}return Q||(U?"":R6)}if(Q)return IJ(Q),Q;try{return sessionStorage.getItem(rq)??""}catch{return""}};async function L0(Q,U,Z={}){return S8(`${j0}${U}`,{...Z,headers:{...Z.headers??{},...Q===R6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function S5(Q,U,Z=0){return XR((K)=>L0(Q,K),U,Z,Q)}var tq=(Q)=>{let U=new Date(Q),Z=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},wR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),nq=(Q)=>Q.operation==="observed"?`observed${Q.provenance==="placeholder"?" (default data)":" (vendor)"}`:Q.receipt?`${Q.receipt.status??""} ${Q.receipt.externalId??""} ${Q.receipt.reason??""}`.trim():Q.provenance==="placeholder"?"default data":"unpushed",vR=(Q)=>Q.actor?`${Q.actor.kind}${Q.actor.id?` ${Q.actor.id}`:""}`:"—",ER=(Q)=>{let U=/^[0-9a-f]{2}-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/.exec(Q??"");return U?{trace:U[1],span:U[2]}:null},gX="volter.console.snapshots",w6=()=>{try{return JSON.parse(sessionStorage.getItem(gX)??"{}")}catch{return{}}},bR=new Map,xR=(Q)=>{if(T6){if(Q.token||Q.readToken)bR.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(gX,JSON.stringify({...w6(),[Q.name]:Q}))}catch{}},GS=(Q)=>bR.get(Q)?.readToken||w6()[Q]?.readToken||"",dq=(Q)=>{try{let U=w6();delete U[Q],sessionStorage.setItem(gX,JSON.stringify(U))}catch{}},k8=new URLSearchParams(window.location.hash.slice(1)),$9=k8.get("close")??"";function PJ(Q){if(typeof Q!=="string")return null;let U;try{U=new URL(Q)}catch{return null}return(U.protocol==="http:"||U.protocol==="https:")&&U.origin===Q.replace(/\/+$/,"")?U:null}function uR(Q){let U=PJ(Q);if(!U)return null;let Z=new URL(j0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let K=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!K.test(U.hostname))return null;let X=U.hostname.replace(K,"");return X===Z.hostname||K.test(Z.hostname)&&X===Z.hostname.replace(K,"")?U.origin:null}function ZS(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:uR(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...K?{parentOrigin:K}:{}}}{let Q=k8.get("snapshot");if(Q){let U=ZS(Q);if(U&&!w6()[U.name])xR(U)}}var hR="volter.console.home",mR=(Q)=>{let U=PJ(Q);if(!U)return null;let Z=new URL(j0).hostname,K=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===K?U.origin:null};{let Q=mR(k8.get("home"));if(Q)try{sessionStorage.setItem(hR,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>k8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var Q9=()=>{try{return mR(sessionStorage.getItem(hR))??""}catch{return""}};function gR(Q,U,Z,K){let X=new URLSearchParams({token:U,home:Q9()||j0}),Y=w6()[Z];if(Y)X.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${X.toString()}`)}function V8(){return window.location.pathname.slice(F0.length).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var IR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,M6=(Q,U)=>Q&&U&&IR.test(Q)&&IR.test(U)?`${Q}/${U}`:"";function u0(Q){window.history.pushState(null,"",`${F0}/${Q.map(encodeURIComponent).join("/")}`),window.dispatchEvent(new PopStateEvent("popstate"))}async function fR(){let[Q,U]=V8(),Z=M6(Q,U),K=Z?[Z]:SR;if(K.length===0){let X=await S8(`${j0}/-/ping`).catch(()=>null);K=X?.ok?(await X.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((X)=>{let[Y,W,...B]=X.split("/");return B.length===0&&M6(Y,W)===X});for(let X of K){let Y=await S8(`${j0}/-/${X}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),B=PJ(W.origin)?.origin;if(Y.status===409&&B&&B!==j0)return window.location.replace(`${B}${F0}/${X}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:R6}}return null}function FS(){let[Q,U]=M1.useState(US()),[Z,K]=M1.useState(!1),[X,Y]=M1.useState(!1),[W,B]=M1.useState(""),[R,O]=M1.useState(null),[T,L]=M1.useState(null),[M,f]=M1.useState(V8());M1.useEffect(()=>{let v=()=>f(V8());return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)},[]),M1.useEffect(()=>{let[v,r]=V8(),n=M6(v,r),[o,V]=n?n.split("/"):[],m=w6()[$9];if(!$9||!Q||!o||!V||!m?.made||m.parent!==`${o}/${V}`||M6(...$9.split("/"))!==$9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}L0(Q,`/-/${o}/${V}/branches/${$9}`,{method:"DELETE"}).catch(()=>null).then(()=>dq($9))},[Q]);let I=M1.useCallback(async(v)=>{if(L(null),!v){let V=await fR();if(V==="moved")return;if(V){if(K(!0),V.token!==R6)IJ(V.token);U(V.token);return}O(null),Y(!0);return}if(T6&&v===R6){let V=await fR();if(V==="moved")return;if(V)K(!0)}if(T6&&v===DR){let[V,m]=V8(),J1=M6(V,m),[X1,W1]=J1?J1.split("/"):[],O1=X1&&W1?await S8(`${j0}/-/${X1}/${W1}/session`,{method:"POST",headers:{"x-volter-pass":k8.get("pass")??""}}).catch(()=>null):null;if(!O1){L(`${j0} did not answer: no session was opened`),O(null);return}if(!O1.ok){L(`${await a5(O1)}. Open it again from the platform.`),O(null);return}yR((await O1.json().catch(()=>({}))).issuer),U(R6);return}if(T6&&v!==R6){let[V,m]=V8(),J1=M6(V,m),[X1,W1]=J1?J1.split("/"):[],O1=X1&&W1?await S8(`${j0}/-/${X1}/${W1}/session`,{method:"POST",headers:{"x-volter-token":v}}).catch(()=>null):null;if(!O1){L(`${j0} did not answer: no session was opened`),O(null);return}if(!O1.ok){let z1=await a5(O1);L(O1.status===401||O1.status===403?`That token does not open ${X1}/${W1}.`:O1.status===409?`${X1}/${W1}'s session lives at another origin: ${z1}`:`The World could not open a session (${O1.status}): ${z1}`),O(null);return}U(R6);return}let r=T6?new Response(null,{status:404}):await L0(v,"/-/worlds");if(r.ok){let{worlds:V}=await r.json();O({kind:"admin",worlds:V});return}if(r.status===429){L("You are asking faster than the platform allows — wait a moment and reload."),O(null);return}if(r.status>=500){let V=await r.json().catch(()=>({}));L(`The platform could not list your worlds${V.error?`: ${V.error}`:""}. Reload; if it stays, the status page says what is wrong.`),O(null);return}let n=SR;if(n.length===0){let V=await S8(`${j0}/-/ping`);if(!V.ok){L(`${j0} does not answer as a host`),O(null);return}if(n=(await V.json()).worlds??[],n.length===0){L(`${j0} does not list its worlds: open the console with the World's URL (volter world console <url>/<org>/<world>)`),O(null);return}}let o=[];for(let V of n){let m=await L0(v,`/-/${V}/twins`);if(m.ok){let J1=await m.json();o.push({name:V,base:`${O6}/${V}`,twins:(J1.twins??[]).map((X1)=>({vendor:X1.twin,protocol:X1.protocol??null,root:X1.root??null}))})}}if(o.length===0){L("This link or key opens no World here: it was revoked, or it has ended."),O(null);return}O({kind:"world",worlds:o})},[]);M1.useEffect(()=>{I(Q)},[Q,I]);let k=(v)=>R?.kind==="admin"?R.worlds.find((r)=>r.name===v)?.token??Q:Q,[S,D]=M1.useState("");if(!Q||!R&&!T)return A.jsxDEV("main",{children:[A.jsxDEV(cq,{href:`${F0}/`},void 0,!1,void 0,this),Q&&!R&&!T||!Q&&!X?A.jsxDEV("p",{children:"Opening…"},void 0,!1,void 0,this):A.jsxDEV("form",{onSubmit:(v)=>{v.preventDefault(),IJ(W.trim()),U(W.trim())},children:[A.jsxDEV("p",{children:"A host's admin token opens every world it serves; a world's token opens that world."},void 0,!1,void 0,this),A.jsxDEV("label",{children:["Token ",A.jsxDEV("input",{name:"token",type:"password",value:W,onChange:(v)=>B(v.target.value),autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("button",{type:"submit",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);let h=()=>{if(Z){window.location.reload();return}if(T6){let[v,r]=V8(),n=M6(v,r),[o,V]=n?n.split("/"):[],m=()=>window.location.replace(t2()?`${t2()}/`:`${j0}${F0}/${o&&V?`${o}/${V}`:""}?signin`);if(setTimeout(m,2000),o&&V)S8(`${j0}/-/${o}/${V}/session/end`,{method:"POST"}).catch(()=>null).then(m);else m();return}if(R)for(let v of R.worlds)navigator.sendBeacon(`${v.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${v.name}/session/end`);IJ(""),U(""),B(""),O(null),u0([])};if(T||!R)return A.jsxDEV("main",{children:[A.jsxDEV(cq,{href:`${F0}/`},void 0,!1,void 0,this),A.jsxDEV("p",{role:"alert",children:T??"nothing answered"},void 0,!1,void 0,this),t2()?A.jsxDEV("a",{className:"button",href:`${t2()}/`,children:["Back to ",new URL(t2()).host]},void 0,!0,void 0,this):A.jsxDEV("button",{onClick:h,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let[P,j,b,x,E]=M,p=b==="~",a=/^[A-Za-z0-9_-]+$/,t=p||!b||!a.test(b)?void 0:b,Q1=E&&a.test(E)?E:void 0,$1=M6(P,j),_1=$1?w6()[$1]??null:null,y=(v)=>GS(v)||k(v),u=async(v)=>{let r=uR(v.parentOrigin);if(r&&r!==j0){dq(v.name),window.location.assign(`${r}${F0}/${v.parent}#close=${encodeURIComponent(v.name)}`);return}if(v.made)await L0(k(v.parent),`/-/${v.parent}/branches/${v.name}`,{method:"DELETE"}).catch(()=>null);dq(v.name),u0(v.parent.split("/"))};return A.jsxDEV("main",{className:$1?"app":void 0,children:[A.jsxDEV("header",{children:[$1?A.jsxDEV(LR,{},void 0,!1,void 0,this):null,A.jsxDEV(cq,{href:`${Q9()&&Q9()!==j0?Q9():""}${F0}/`,onClick:(v)=>{if(Q9()&&Q9()!==j0)return;v.preventDefault(),u0([])}},void 0,!1,void 0,this),A.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[$1?A.jsxDEV(A.Fragment,{children:[A.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),A.jsxDEV("span",{children:$1.split("/")[0]},void 0,!1,void 0,this),A.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),A.jsxDEV("a",{href:`${F0}/${$1}`,className:"crumb-world",onClick:(v)=>{v.preventDefault(),u0($1.split("/"))},children:$1.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t?A.jsxDEV("span",{children:[" / ",t]},void 0,!0,void 0,this):null,p&&x==="trace"?A.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),t2()?A.jsxDEV("a",{href:`${t2()}/${$1?encodeURIComponent($1.split("/")[0]):""}`,title:`Back to the platform at ${new URL(t2()).host}`,className:"back-link",children:["← ",A.jsxDEV("span",{className:"back-text",children:$1?`${$1.split("/")[0]}'s Worlds`:new URL(t2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,A.jsxDEV("span",{className:"mode",children:Z?"on this machine":_1?"a snapshot, read only":S?`signed in as ${S}`:R.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),Z?null:A.jsxDEV("button",{onClick:h,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$1?A.jsxDEV(YS,{name:$1,token:y($1),twin:t,tab:p?x??"overview":"overview",arg:p?Q1:void 0,admin:_1?null:R.kind==="admin"?Q:null,snapshot:_1,onReturn:u,opens:(v)=>!!w6()[v]||R.kind==="admin"&&R.worlds.some((r)=>r.name===v),onRemoved:()=>{I(Q),u0([])},onWho:D},$1,!1,void 0,this):A.jsxDEV(KS,{mode:R,admin:R.kind==="admin"?Q:null,reload:()=>I(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KS({mode:Q,admin:U,reload:Z}){let[K,X]=M1.useState(""),[Y,W]=M1.useState(""),[B,R]=M1.useState(""),[O,T]=M1.useState(null),L=async(S)=>{if(!await B3({title:`Rotate the tokens of ${S}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let D=await L0(U,`/-/worlds/${S}/rotate`,{method:"POST"}),h=await D.json().catch(()=>({}));T(D.ok?`rotated ${S}: the new tokens are shown once — token ${h.token} · read token ${h.readToken}`:h.error??`answered ${D.status}`),await Z()},M=async(S)=>{let D=await L0(U,`/-/worlds/${S}`,{method:"DELETE"}),h=await D.json().catch(()=>({}));T(D.ok?`removed ${S}`:h.error??`answered ${D.status}`),await Z()},[f,I]=M1.useState(!1),k=async(S)=>{S.preventDefault(),T(null),I(!0);try{let D=await L0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:B.split(",").map((P)=>P.trim()).filter(Boolean)})}),h=await D.json();if(!D.ok){T(h.error??`the host answered ${D.status}`);return}T(`provisioned ${h.name}`),W(""),R(""),await Z()}finally{I(!1)}};return A.jsxDEV("section",{"aria-labelledby":"worlds",children:[A.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),A.jsxDEV("p",{className:"lede",children:"A World is a copy of the services your app uses (Stripe, Slack, GitHub…), with none of the real consequences: your app talks to it, and you can see everything it did on each vendor's own screens."},void 0,!1,void 0,this),A.jsxDEV("table",{children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{children:"world"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"address"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"stand-ins for"},void 0,!1,void 0,this),U?A.jsxDEV("th",{children:"actions"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:Q.worlds.map((S)=>A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:A.jsxDEV("a",{href:`${F0}/${S.name}`,onClick:(D)=>{D.preventDefault(),u0(S.name.split("/"))},children:S.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:A.jsxDEV("code",{children:S.base},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:S.twins.map((D)=>W0(D.vendor)).join(", ")||"—"},void 0,!1,void 0,this),U?A.jsxDEV("td",{children:[A.jsxDEV("button",{type:"button","aria-label":`Rotate the tokens of ${S.name}`,onClick:()=>void L(S.name),children:"Rotate tokens"},void 0,!1,void 0,this)," ",A.jsxDEV("button",{type:"button","aria-label":`Remove ${S.name}`,onClick:()=>void B3({title:`Remove ${S.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:S.name}).then((D)=>{if(D)M(S.name)}),children:"Remove world"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},S.name,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?A.jsxDEV("form",{onSubmit:k,"aria-labelledby":"provision",children:[A.jsxDEV("h3",{id:"provision",children:"Provision a world"},void 0,!1,void 0,this),A.jsxDEV("label",{children:["Org ",A.jsxDEV("input",{name:"org",value:K,onChange:(S)=>X(S.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("label",{children:["World ",A.jsxDEV("input",{name:"world",value:Y,onChange:(S)=>W(S.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("label",{children:["Twins ",A.jsxDEV("input",{name:"vendors",value:B,onChange:(S)=>R(S.target.value),placeholder:"github, slack",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("button",{type:"submit",disabled:f,children:f?"Provisioning… (a host boots the world; ten seconds or so)":"Provision"},void 0,!1,void 0,this),O?A.jsxDEV("p",{role:"status",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):O?A.jsxDEV("p",{role:"status",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var hX=[["overview","Dashboard"],["branches","Branches"],["settings","Settings"],["branch","Overview"],["changes","Changes"],["activity","Activity"],["vendors","Vendors"],["canvas","All screens"]],XS={dashboard:"overview",mirrors:"vendors",screens:"canvas",timeline:"activity",monitoring:"activity",trace:"activity",operations:"settings"},D8=(Q,U)=>`${O6}/${Q}/${U}/`,PR={verify:"verified",use:"used",issue:"issued",revoke:"revoked",rotate:"rotated",seed:"seeded",upsert:"saved",set:"set",start:"started",finish:"finished",fail:"failed",schedule:"scheduled",deliver:"delivered",like:"liked",follow:"followed",reply:"replied",create:"created",update:"updated",delete:"deleted",record:"recorded",remove:"removed",add:"added",send:"sent",post:"posted",postmessage:"posted",cancel:"canceled",close:"closed",open:"opened",publish:"published",upload:"uploaded",invite:"invited",archive:"archived",merge:"merged",refund:"refunded",capture:"captured",confirm:"confirmed",pay:"paid"};function t5(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),K=Q.subject.type.replace(/[_-]+/g," ").trim(),X=`${K.charAt(0).toUpperCase()}${K.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),W=U.replace(/[._]+/g," ").trim(),B=Y?`${X} seeded`:PR[Z]?`${X} ${PR[Z]}`:`${W.charAt(0).toUpperCase()}${W.slice(1)}`,R=Q.fields??{},O=["title","name","email","text","subject","summary","description"].map((L)=>R[L]).find((L)=>typeof L==="string"&&L.trim()!=="")??null,T=O===null?null:O.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(L,M,f)=>`${M==="!"?"@":M}${f}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:B,label:T===null?null:T.length>80?`${T.slice(0,79)}…`:T}}var iq=(Q)=>/token|password|secret|key|credential/i.test(Q.subject.type)&&Q.subject.id.length>6?`••••${Q.subject.id.slice(-4)}`:Q.subject.id,oq=(Q,U)=>!Q.actor?"":Q.actor.kind==="system"?`by ${W0(U)}`:Q.actor.id?`by ${Q.actor.id}`:Q.actor.kind==="agent"||Q.actor.kind==="app"?"by your app":`by ${Q.actor.kind}`,HS=(Q)=>Q.operation==="observed"||Q.receipt||Q.provenance==="placeholder"?nq(Q):null;function YS({name:Q,token:U,twin:Z,tab:K,arg:X,admin:Y,snapshot:W,onReturn:B,opens:R,onRemoved:O,onWho:T}){let[L,M]=M1.useState("pending"),[f,I]=M1.useState(null),[k,S]=M1.useState(0);M1.useEffect(()=>{let m=!0;return I(null),L0(U,`/-/${Q}/session`,{method:"POST"}).then(async(J1)=>{let X1=await J1.json().catch(()=>({}));if(yR(X1.issuer),X1.who)T?.(X1.who);let W1=PJ(X1.origin)?.origin;if(J1.status===409&&W1&&W1!==j0){gR(W1,U,Q);return}if(!m)return;if(M(!J1.ok?"unknown":X1.scope==="read"?"read":X1.scope==="write"?"write":"unknown"),!J1.ok)I(X1.error??`answered ${J1.status}`)}).catch((J1)=>{if(m)M("unknown"),I(`the World did not answer: ${J1 instanceof Error?J1.message:String(J1)}`)}),()=>{m=!1}},[Q,U,k]);let D=f?{state:"error",error:f}:L==="pending"?{state:"pending"}:{state:"ok",scope:L},h=L==="write",P=(m)=>{if(m.status===403)M("read")},[j,b]=M1.useState(0);M1.useEffect(()=>{let m=setInterval(()=>{if(!document.hidden)b((J1)=>J1+1)},5000);return()=>clearInterval(m)},[]);let[x,E]=M1.useState(0),p=S5(U,`/-/${Q}/clock`,j+x),a=S5(U,`/-/${Q}/twins`),t=S5(U,`/-/${Q}/branches`,x),Q1=S5(U,`/-/${Q}/map`,Math.floor(j/2)),$1=!(t.state==="error"&&(t.status===404||t.status===405));if(Z)return A.jsxDEV(ES,{name:Q,token:U,twin:Z},void 0,!1,void 0,this);let _1=hX.some(([m])=>m===K)?K:XS[K]??"overview",y=a.state==="ok"?a.data.twins.map((m)=>m.twin):[],u=(m)=>Q1.state==="ok"?(Q1.data.twins.find((J1)=>J1.twin===m)?.resources??[]).reduce((J1,X1)=>J1+X1.count,0):0,v=_1==="vendors"&&X?X:void 0,r=()=>{M("pending"),S((m)=>m+1)};if(_1==="canvas"||_1==="vendors"&&!v)return A.jsxDEV(SS,{name:Q,twins:a,session:D,retry:r,snapshot:W,back:()=>u0(Q.split("/"))},void 0,!1,void 0,this);let n=v?W0(v):hX.find(([m])=>m===_1)?.[1]??"",o=(m)=>(J1)=>{J1.preventDefault(),u0([...Q.split("/"),...m])},V=(m,J1=hX.find(([X1])=>X1===m)?.[1]??m)=>{let X1=_1===m&&!v;return A.jsxDEV("a",{href:`${F0}/${Q}/~/${m}`,"aria-current":X1?"page":void 0,className:X1?"on":void 0,onClick:o(["~",m]),children:J1},void 0,!1,void 0,this)};return A.jsxDEV("div",{className:"shell",children:[A.jsxDEV("aside",{className:"side",children:[A.jsxDEV("nav",{"aria-label":`${Q} pages`,className:"side-nav",children:[A.jsxDEV(WS,{name:Q},void 0,!1,void 0,this),A.jsxDEV("p",{className:"side-group",children:"World"},void 0,!1,void 0,this),V("overview"),$1?V("branches"):null,V("settings"),A.jsxDEV(AS,{name:Q,snapshot:W,branches:$1?t:null,opens:R},void 0,!1,void 0,this),A.jsxDEV("p",{className:"side-group",children:"Branch"},void 0,!1,void 0,this),V("branch"),V("changes"),V("activity"),A.jsxDEV("p",{className:"side-group",children:"Vendors"},void 0,!1,void 0,this),A.jsxDEV("a",{href:`${F0}/${Q}/~/canvas`,className:"all-screens",onClick:o(["~","canvas"]),children:[A.jsxDEV("span",{className:"mark","aria-hidden":"true",children:"▦"},void 0,!1,void 0,this),A.jsxDEV("span",{children:"All screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("ul",{className:"side-vendors",children:y.map((m)=>A.jsxDEV("li",{children:A.jsxDEV("a",{href:`${F0}/${Q}/~/vendors/${m}`,"aria-current":v===m?"page":void 0,className:v===m?"on":void 0,onClick:o(["~","vendors",m]),children:[A.jsxDEV(W5,{vendor:m},void 0,!1,void 0,this),A.jsxDEV("span",{children:W0(m)},void 0,!1,void 0,this),A.jsxDEV("span",{className:"count",children:u(m)||""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},m,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("div",{className:"side-foot",children:A.jsxDEV(YR,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("div",{className:"content",children:[W?A.jsxDEV("div",{className:"snapshot",role:"region","aria-label":"Snapshot",children:[A.jsxDEV("span",{children:["You are looking at ",A.jsxDEV("strong",{children:W.parent},void 0,!1,void 0,this)," as it was at ",A.jsxDEV(W2,{iso:W.at},void 0,!1,void 0,this)," · a read-only copy (read-only snapshot) · ",W.expiresAt?Date.parse(W.expiresAt)<=Date.now()?A.jsxDEV(A.Fragment,{children:["gone since ",A.jsxDEV(W2,{iso:W.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):A.jsxDEV(A.Fragment,{children:["goes away ",A.jsxDEV(W2,{iso:W.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"kept until you go back"]},void 0,!0,void 0,this),A.jsxDEV("button",{type:"button",onClick:()=>void B(W),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,A.jsxDEV("div",{className:"content-head",children:[A.jsxDEV("h2",{id:"world",children:[v?A.jsxDEV("span",{className:"vendor-cell",children:[A.jsxDEV(W5,{vendor:v},void 0,!1,void 0,this),n]},void 0,!0,void 0,this):n,L==="read"?A.jsxDEV(A.Fragment,{children:[" ",A.jsxDEV("span",{className:"badge read-only",title:"This token reads the World; it changes nothing",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),A.jsxDEV("div",{className:"head-actions",children:[A.jsxDEV(LS,{name:Q,token:U,clock:p,canWrite:h&&!W,onChanged:()=>E((m)=>m+1),refused:P},void 0,!1,void 0,this),!W&&h&&$1&&t.state!=="loading"?A.jsxDEV(MS,{name:Q,token:U,clock:p,refused:P},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("div",{role:"region","aria-labelledby":"world",className:"panel",children:[_1==="overview"?A.jsxDEV(zS,{name:Q,token:U,map:Q1,vendors:y,twins:a,session:D,branches:$1?t:null,canWrite:h&&!W,tick:j,...W?{snapshotOf:W.parent}:{}},void 0,!1,void 0,this):null,_1==="branch"?A.jsxDEV(BS,{name:Q,token:U,map:Q1,vendors:y,tick:j},void 0,!1,void 0,this):null,_1==="vendors"?A.jsxDEV(OS,{name:Q,token:U,twins:a,session:D,retry:r,selected:v},void 0,!1,void 0,this):null,_1==="activity"&&K==="trace"?A.jsxDEV(jS,{name:Q,token:U,id:X??""},void 0,!1,void 0,this):null,_1==="activity"&&K!=="trace"?A.jsxDEV(NS,{name:Q,token:U,vendors:y},void 0,!1,void 0,this):null,_1==="changes"?A.jsxDEV(kS,{name:Q,token:U},void 0,!1,void 0,this):null,_1==="branches"?A.jsxDEV(TS,{name:Q,token:U,canWrite:h,branches:$1?t:null,opens:R,onBranchesChanged:()=>E((m)=>m+1),refused:P},void 0,!1,void 0,this):null,_1==="settings"?A.jsxDEV(vS,{name:Q,token:U,admin:Y,canWrite:h,refused:P,onRemoved:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function NR({text:Q}){return A.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>L6("Copied the prompt: paste it into your coding agent"),()=>L6("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}function WS({name:Q}){return A.jsxDEV("details",{className:"menu connect-side",children:[A.jsxDEV("summary",{className:"button connect-button",children:"Connect"},void 0,!1,void 0,this),t2()?A.jsxDEV("div",{className:"popover",children:[A.jsxDEV("p",{children:"Point your app's SDKs here, with a key made on the platform; its calls to these vendors land in this World:"},void 0,!1,void 0,this),A.jsxDEV("pre",{children:[O6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),A.jsxDEV("a",{className:"button",href:`${t2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this),A.jsxDEV("p",{className:"mode",children:["Or push a World from your machine: ",A.jsxDEV("code",{children:["volter remote add origin ",Q]},void 0,!0,void 0,this),", then ",A.jsxDEV("code",{children:"volter world push"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),A.jsxDEV(NR,{text:uX({platform:t2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):A.jsxDEV("div",{className:"popover",children:[A.jsxDEV("p",{children:"Run your app in this World; its calls to these vendors land here:"},void 0,!1,void 0,this),A.jsxDEV("pre",{children:"volter world run -- npm start"},void 0,!1,void 0,this),A.jsxDEV("p",{className:"mode",children:["Or point an SDK at ",A.jsxDEV("code",{children:[O6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this)," with the token in ",A.jsxDEV("code",{children:".volter/token"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),A.jsxDEV(NR,{text:uX()},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function AS({name:Q,snapshot:U,branches:Z,opens:K}){let X=(B)=>B.split("/").pop()??B,Y=U?.parent??Q,W=Z?.state==="ok"?Z.data.branches.filter((B)=>B.name!==Q):[];return A.jsxDEV("details",{className:"menu branch-picker",children:[A.jsxDEV("summary",{children:[A.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:A.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("span",{className:"branch-name",children:U?X(Q):X(Y)},void 0,!1,void 0,this),A.jsxDEV("span",{className:"badge",children:U?"snapshot":"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("div",{className:"popover",children:[A.jsxDEV("p",{className:"mode",children:"Branch"},void 0,!1,void 0,this),A.jsxDEV("ul",{className:"branch-list",children:[A.jsxDEV("li",{children:A.jsxDEV("a",{href:`${F0}/${Y}`,"aria-current":!U?"page":void 0,onClick:(B)=>{B.preventDefault(),u0(Y.split("/"))},children:[X(Y)," ",A.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U?A.jsxDEV("li",{children:A.jsxDEV("a",{href:`${F0}/${Q}`,"aria-current":"page",onClick:(B)=>B.preventDefault(),children:[X(Q)," ",A.jsxDEV("span",{className:"mode",children:["as of ",A.jsxDEV(W2,{iso:U.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,W.map((B)=>A.jsxDEV("li",{children:K(B.name)?A.jsxDEV("a",{href:`${F0}/${B.name}`,onClick:(R)=>{R.preventDefault(),u0(B.name.split("/"))},children:[X(B.name)," ",A.jsxDEV("span",{className:"mode",children:B.at?.instant?A.jsxDEV(A.Fragment,{children:["as of ",A.jsxDEV(W2,{iso:B.at.instant},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):A.jsxDEV("span",{className:"mode",title:"Its token was handed to whoever made it",children:X(B.name)},void 0,!1,void 0,this)},B.name,!1,void 0,this))]},void 0,!0,void 0,this),Z?.state==="ok"&&W.length===0&&!U?A.jsxDEV("p",{className:"mode",children:"No branches yet. “View an earlier moment…” opens one."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function BS({name:Q,token:U,map:Z,vendors:K,tick:X}){let Y=S5(U,`/-/${Q}/timeline?limit=500`,Math.floor(X/3)),W=Z.state==="ok"?Z.data.twins:[],B=(P)=>(j)=>{j.preventDefault(),u0([...Q.split("/"),...P])},R=Date.now(),O=24,T=3600000,L=Y.state==="ok"?Y.data.entries:[],M=K.map((P)=>{let j=Array(24).fill(0);for(let b of L){if(b.twin!==P)continue;let x=Date.parse(b.entry.occurredAt),E=23-Math.floor((R-x)/3600000);if(E>=0&&E<24)j[E]+=1}return{vendor:P,counts:j}}),f=Array(24).fill(0).map((P,j)=>M.reduce((b,x)=>b+x.counts[j],0)),I=Math.max(1,...f),k=720,S=160,D=30,h=["var(--volter-data-base)","#7c5cff","#e3572b","#1f9d6b","#d9a400","#2b7de3","#c2417e","#6b7280","#0ea5a4"];return A.jsxDEV(A.Fragment,{children:[A.jsxDEV("div",{className:"block",children:A.jsxDEV("table",{className:"dense services","aria-label":"Vendors on this branch",children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"Details"},void 0,!1,void 0,this),A.jsxDEV("th",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:K.map((P)=>{let j=W.find((x)=>x.twin===P),b=[...j?.resources??[]].filter((x)=>x.count>0).sort((x,E)=>E.count-x.count);return A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:A.jsxDEV("span",{className:"vendor-cell",children:[A.jsxDEV(W5,{vendor:P},void 0,!1,void 0,this),A.jsxDEV("a",{href:`${F0}/${Q}/~/vendors/${P}`,onClick:B(["~","vendors",P]),children:W0(P)},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:j?.root?"badge rooted":"badge",children:j?.root?"connected":"stand-in"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{className:"mode",children:b.length?b.slice(0,4).map((x)=>_9(x.count,x.type)).join(" · "):"nothing yet"},void 0,!1,void 0,this),A.jsxDEV("td",{className:"num",children:j?.mirror?A.jsxDEV("a",{href:`${F0}/${Q}/~/vendors/${P}`,onClick:B(["~","vendors",P]),children:"Screens"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},P,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("div",{className:"block chart-block",children:[A.jsxDEV("div",{className:"block-head",children:[A.jsxDEV("h3",{children:"Activity, last 24 hours"},void 0,!1,void 0,this),A.jsxDEV("a",{href:`${F0}/${Q}/~/activity`,onClick:B(["~","activity"]),children:"All activity"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV(s5,{load:Y,what:"the activity"},void 0,!1,void 0,this),Y.state==="ok"?A.jsxDEV("div",{className:"pad",children:[A.jsxDEV("svg",{viewBox:"0 0 720 182",className:"chart",role:"img","aria-label":`Writes per hour over the last day: ${f.reduce((P,j)=>P+j,0)} in all`,children:[[0.5,1].map((P)=>A.jsxDEV("line",{x1:0,x2:720,y1:160-P*160,y2:160-P*160,className:"grid"},P,!1,void 0,this)),A.jsxDEV("line",{x1:0,x2:720,y1:160,y2:160,className:"axis"},void 0,!1,void 0,this),f.map((P,j)=>{let b=160;return A.jsxDEV("g",{children:M.map((x,E)=>{let p=x.counts[j]/I*152;if(p===0)return null;return b-=p,A.jsxDEV("rect",{x:j*30+2,y:b,width:26,height:p,fill:h[E%h.length],rx:2,children:A.jsxDEV("title",{children:`${W0(x.vendor)}: ${x.counts[j]} in the hour ${23-j===0?"now":`${23-j}h ago`}`},void 0,!1,void 0,this)},x.vendor,!1,void 0,this)})},j,!1,void 0,this)}),[0,6,12,18,23].map((P)=>A.jsxDEV("text",{x:P*30+15,y:176,className:"tick",children:23-P===0?"now":`-${23-P}h`},P,!1,void 0,this))]},void 0,!0,void 0,this),A.jsxDEV("ul",{className:"legend",children:M.filter((P)=>P.counts.some((j)=>j>0)).map((P)=>A.jsxDEV("li",{children:[A.jsxDEV("span",{className:"swatch",style:{background:h[K.indexOf(P.vendor)%h.length]}},void 0,!1,void 0,this),W0(P.vendor)," ",A.jsxDEV("span",{className:"mode",children:P.counts.reduce((j,b)=>j+b,0)},void 0,!1,void 0,this)]},P.vendor,!0,void 0,this))},void 0,!1,void 0,this),f.every((P)=>P===0)?A.jsxDEV("p",{className:"mode",children:"Nothing was written in the last day. Run your app in this World and its calls show up here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var mX=0.2;function zS({name:Q,token:U,map:Z,vendors:K,twins:X,session:Y,branches:W,canWrite:B,tick:R,snapshotOf:O}){let T=S5(U,`/-/${Q}/diff`,Math.floor(R/2)),L=S5(U,`/-/${Q}/timeline?limit=8`,R),M=Z.state==="ok"?Z.data.twins:[],f=L.state==="ok"?L.data.entries:[],I=X.state==="ok"?X.data.twins.filter((P)=>P.mirror).map((P)=>P.twin):[],k=(P)=>(j)=>{j.preventDefault(),u0([...Q.split("/"),...P])},S=(P)=>{let j=[...M.find((b)=>b.twin===P)?.resources??[]].filter((b)=>b.count>0).sort((b,x)=>x.count-b.count);return j.length?j.slice(0,2).map((b)=>_9(b.count,b.type)).join(" · "):"empty"},D=T.state==="ok"?T.data.changes.length:null,h=W?.state==="ok"?W.data.branches:[];return A.jsxDEV("div",{className:"dash",children:[A.jsxDEV("section",{className:"block dash-screens","aria-labelledby":"screens-head",children:[A.jsxDEV("div",{className:"block-head",children:[A.jsxDEV("h3",{id:"screens-head",children:["Screens ",A.jsxDEV("span",{className:"badge live",children:"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("span",{className:"mode",children:[K.length," vendor",K.length===1?"":"s",D!==null?A.jsxDEV(A.Fragment,{children:[" · ",A.jsxDEV("a",{href:`${F0}/${Q}/~/changes`,onClick:k(["~","changes"]),children:[D," change",D===1?"":"s"," since start"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),A.jsxDEV("a",{className:"button",href:`${F0}/${Q}/~/canvas`,onClick:k(["~","canvas"]),children:"Open all screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.state==="ok"?A.jsxDEV("ul",{className:"thumbs",children:K.map((P)=>A.jsxDEV("li",{children:A.jsxDEV("a",{href:`${F0}/${Q}/~/vendors/${P}`,onClick:k(["~","vendors",P]),"aria-label":`${W0(P)}'s screens`,children:[A.jsxDEV("span",{className:"thumb",children:[I.includes(P)?A.jsxDEV("iframe",{title:`${W0(P)} preview`,src:D8(Q,P),loading:"lazy",tabIndex:-1,style:{width:`${100/mX}%`,height:`${100/mX}%`,transform:`scale(${mX})`}},void 0,!1,void 0,this):A.jsxDEV("span",{className:"thumb-none",children:"No screens"},void 0,!1,void 0,this),A.jsxDEV("span",{className:M.find((j)=>j.twin===P)?.root?"badge rooted thumb-status":"badge thumb-status",children:M.find((j)=>j.twin===P)?.root?"connected":"stand-in"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("span",{className:"thumb-foot",children:[A.jsxDEV(W5,{vendor:P},void 0,!1,void 0,this),A.jsxDEV("b",{children:W0(P)},void 0,!1,void 0,this),A.jsxDEV("span",{className:"mode",children:S(P)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},P,!1,void 0,this))},void 0,!1,void 0,this):A.jsxDEV("p",{className:"mode pad",children:Y.state==="error"?`The World did not open its screens: ${Y.error}`:"Opening…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("div",{className:"dash-side",children:W?A.jsxDEV("section",{className:"block","aria-labelledby":"branches-head",children:[A.jsxDEV("div",{className:"block-head",children:[A.jsxDEV("h3",{id:"branches-head",children:"Branches"},void 0,!1,void 0,this),A.jsxDEV("a",{href:`${F0}/${Q}/~/branches`,onClick:k(["~","branches"]),children:"All"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("ul",{className:"mini-feed",children:[A.jsxDEV("li",{children:[A.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:A.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("span",{className:"mini-what",children:O?A.jsxDEV(A.Fragment,{children:[A.jsxDEV("b",{children:Q.split("/")[1]},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"badge",children:"snapshot"},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:["of ",O.split("/")[1]]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):A.jsxDEV(A.Fragment,{children:[A.jsxDEV("b",{children:Q.split("/")[1]},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"badge",children:"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.slice(0,3).map((P)=>A.jsxDEV("li",{children:[A.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:A.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("span",{className:"mini-what",children:[P.name.split("/").pop()," ",A.jsxDEV("span",{className:"mode",children:P.at?.instant?`as of ${new Date(P.at.instant).toLocaleString()}`:"copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},P.name,!0,void 0,this))]},void 0,!0,void 0,this),B?A.jsxDEV("p",{className:"mode pad",children:"“View an earlier moment…” above opens a branch as the World was then."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),A.jsxDEV("section",{className:"block dash-activity","aria-labelledby":"activity-head",children:[A.jsxDEV("div",{className:"block-head",children:[A.jsxDEV("h3",{id:"activity-head",children:"Recent activity"},void 0,!1,void 0,this),A.jsxDEV("a",{href:`${F0}/${Q}/~/activity`,onClick:k(["~","activity"]),children:"View all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV(s5,{load:L,what:"the activity"},void 0,!1,void 0,this),L.state==="ok"&&f.length===0?A.jsxDEV("div",{className:"empty-block",children:[A.jsxDEV("strong",{children:"No activity yet"},void 0,!1,void 0,this),A.jsxDEV("span",{className:"mode",children:"Run your app in this World and its calls show up here."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):A.jsxDEV("ul",{className:"mini-feed",children:f.map((P)=>{let j=t5(P.entry);return A.jsxDEV("li",{children:[A.jsxDEV(W5,{vendor:P.twin},void 0,!1,void 0,this),A.jsxDEV("span",{className:"mini-what",children:[A.jsxDEV("strong",{children:j.what},void 0,!1,void 0,this),j.label?A.jsxDEV("span",{className:"mode",children:[" ",j.label]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),A.jsxDEV("span",{className:"mode num",title:P.entry.occurredAt,children:lq(P.entry.occurredAt)},void 0,!1,void 0,this)]},y4(P),!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function LS({name:Q,token:U,clock:Z,canWrite:K,onChanged:X,refused:Y}){let[W,B]=M1.useState(!1),[R,O]=M1.useState(""),[T,L]=M1.useState(""),[M,f]=M1.useState(null),[I,k]=M1.useState(!1),S=Z.state==="ok"?Z.data:null,D=async(b,x,E)=>{k(!0),f(null);try{let p=await L0(U,`/-/${Q}/${x}`,{method:x==="clock"?"PUT":"POST",body:JSON.stringify(E)});if(!p.ok){Y(p),f({ok:!1,text:await a5(p)});return}let a=await p.json();f({ok:!0,text:`${b} — the World is at ${new Date(a.at).toLocaleString()}`}),B(!1),X()}catch(p){f({ok:!1,text:`the World did not answer: ${p instanceof Error?p.message:String(p)}`})}finally{k(!1)}},h=(b)=>{b.preventDefault();let x=new Date(R);if(Number.isNaN(x.getTime())){f({ok:!1,text:"Pick a date and time."});return}if(S&&x.getTime()<Date.parse(S.at)){f({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(S.at).toLocaleString()}.`});return}D("Clock set","clock",{at:x.toISOString()})},P=(b,x)=>{D(`Advanced ${x}`,"clock/advance",{by:b})},j=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return A.jsxDEV("div",{className:`clock${S?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[A.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?A.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?A.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):S.frozen?A.jsxDEV(A.Fragment,{children:[A.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",A.jsxDEV("strong",{children:A.jsxDEV(W2,{iso:S.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):A.jsxDEV(A.Fragment,{children:["World time ",A.jsxDEV("strong",{children:A.jsxDEV(W2,{iso:S.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:"· real time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&S?A.jsxDEV("details",{className:"clock-more",children:[A.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),A.jsxDEV("div",{className:"popover",children:[A.jsxDEV("p",{className:"mode",children:"Move this World's clock forward to see what happens later: renewals, expiries, scheduled sends. Like a test clock, it only moves forward; to look back, use “View an earlier moment…”."},void 0,!1,void 0,this),A.jsxDEV("div",{className:"clock-controls",children:[A.jsxDEV("button",{type:"button","aria-expanded":W,onClick:()=>{B(!W),O(tq(wR(S.at))),f(null)},children:"Set time…"},void 0,!1,void 0,this),A.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[A.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),j.map(([b,x])=>A.jsxDEV("button",{type:"button","aria-label":`Advance ${x}`,disabled:I||!S.frozen,title:S.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>P(b,x),children:x},b,!1,void 0,this)),A.jsxDEV("form",{className:"inline",onSubmit:(b)=>{if(b.preventDefault(),!/^\d+[smhd]$/.test(T.trim())){f({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}P(T.trim(),`by ${T.trim()}`)},children:[A.jsxDEV("label",{className:"sr",children:["Advance by ",A.jsxDEV("input",{name:"advanceBy",value:T,onChange:(b)=>L(b.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!S.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("button",{type:"submit",disabled:I||!S.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!S.frozen?A.jsxDEV("p",{className:"mode",children:"The World runs on real time. Set a time to start simulating; then advance it."},void 0,!1,void 0,this):null,W?A.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:h,noValidate:!0,children:[A.jsxDEV("label",{children:["World time ",A.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:tq(wR(S.at)),onChange:(b)=>O(b.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),A.jsxDEV("button",{type:"submit",disabled:I,children:"Set time"},void 0,!1,void 0,this),A.jsxDEV("button",{type:"button",onClick:()=>B(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,M?A.jsxDEV("p",{role:M.ok?"status":"alert",children:M.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function MS({name:Q,token:U,clock:Z,refused:K}){let[X,Y]=M1.useState(!1),[W,B]=M1.useState(""),[R,O]=M1.useState(null),[T,L]=M1.useState(!1),M=Z.state==="ok"?Z.data.at:new Date().toISOString(),f=M1.useRef(null);return M1.useEffect(()=>{if(!X)return;let k=(D)=>{if(D.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),f.current?.querySelector("button")?.focus()},S=(D)=>{if(!f.current?.contains(D.target))Y(!1)};return document.addEventListener("keydown",k),document.addEventListener("click",S),()=>{document.removeEventListener("keydown",k),document.removeEventListener("click",S)}},[X]),A.jsxDEV("div",{className:"as-of",ref:f,children:[A.jsxDEV("button",{type:"button","aria-expanded":X,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!X),B(tq(M)),O(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),X?A.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(k)=>{k.preventDefault(),O(null);let S=new Date(W);if(Number.isNaN(S.getTime())){O("Pick a date and time.");return}if(S.getTime()>Date.parse(M)){O(`That is after the World's present (${new Date(M).toLocaleString()}); a snapshot looks back.`);return}L(!0);try{let D=await L0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:S.toISOString()},ttl:3600})});if(!D.ok){K(D),O(await a5(D));return}let h=await D.json();xR({name:h.name,parent:Q,token:h.token,readToken:h.readToken,at:S.toISOString(),expiresAt:h.expiresAt??null,parentOrigin:j0,made:!0});let P=PJ(h.origin)?.origin;if(P&&P!==j0){gR(P,h.readToken,h.name,`${F0}/${h.name}`);return}u0(h.name.split("/"))}catch(D){O(`the World did not answer: ${D instanceof Error?D.message:String(D)}`)}finally{L(!1)}},noValidate:!0,children:[A.jsxDEV("label",{children:["As of ",A.jsxDEV("input",{name:"asOf",type:"datetime-local",value:W,max:tq(M),onChange:(k)=>B(k.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("button",{type:"submit",disabled:T,children:T?"Opening…":"Open snapshot"},void 0,!1,void 0,this),A.jsxDEV("span",{className:"mode",children:"Opens a read-only copy of this World as it was then; the copy goes away within the hour."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,R?A.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function TS({name:Q,token:U,canWrite:Z,branches:K,opens:X,onBranchesChanged:Y,refused:W}){let B=S5(U,`/-/${Q}/map`),[R,O]=M1.useState(null),T=async(M)=>{if(!await B3({title:`Delete the branch ${M}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Delete branch",danger:!0}))return;let f=await L0(U,`/-/${Q}/branches/${M}`,{method:"DELETE"}).catch((I)=>I);if(f instanceof Error){O(`delete ${M}: the World did not answer (${f.message})`);return}if(!f.ok){W(f),O(`delete ${M}: ${await a5(f)}`);return}dq(M),O(`deleted ${M}`),Y()},L=B.state==="ok"?B.data.twins.reduce((M,f)=>M+f.resources.reduce((I,k)=>I+k.count,0),0):0;if(K)return A.jsxDEV(RS,{name:Q,token:U,canWrite:Z,branches:K,opens:X,note:R,remove:T},void 0,!1,void 0,this);return A.jsxDEV(A.Fragment,{children:[A.jsxDEV("h3",{children:"Map"},void 0,!1,void 0,this),A.jsxDEV(s5,{load:B,what:"the World's map"},void 0,!1,void 0,this),B.state==="ok"?B.data.twins.length===0?A.jsxDEV("p",{children:"This World holds no twins."},void 0,!1,void 0,this):A.jsxDEV(A.Fragment,{children:[A.jsxDEV("p",{className:"mode",children:[B.data.twins.length," twin",B.data.twins.length===1?"":"s"," · ",L," resource",L===1?"":"s"]},void 0,!0,void 0,this),A.jsxDEV("ul",{className:"map","aria-label":"Twins in this World",children:B.data.twins.map((M)=>{let f=[...M.resources].sort((I,k)=>k.count-I.count);return A.jsxDEV("li",{className:"card","aria-labelledby":`map-${M.twin}`,children:[A.jsxDEV("div",{className:"card-head",children:[A.jsxDEV("h4",{id:`map-${M.twin}`,className:"vendor",children:M.twin},void 0,!1,void 0,this),A.jsxDEV("span",{className:M.root?"badge rooted":"badge",children:M.root?"rooted":"simulated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("p",{className:"mode",children:[M.root?A.jsxDEV(A.Fragment,{children:["rooted at ",A.jsxDEV("code",{children:M.root.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"simulated — no vendor behind it"," · position ",M.position]},void 0,!0,void 0,this),f.length===0?A.jsxDEV("p",{className:"mode",children:"Holds nothing yet."},void 0,!1,void 0,this):A.jsxDEV("ul",{className:"resources",children:[f.slice(0,6).map((I)=>A.jsxDEV("li",{children:[A.jsxDEV("span",{children:I.type},void 0,!1,void 0,this)," ",A.jsxDEV("strong",{children:I.count},void 0,!1,void 0,this)]},I.type,!0,void 0,this)),f.length>6?A.jsxDEV("li",{className:"mode",children:["+",f.length-6," more types"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),A.jsxDEV("p",{className:"card-actions",children:[M.mirror?A.jsxDEV("a",{className:"button",href:D8(Q,M.twin),target:"_blank",rel:"noopener noreferrer",children:["Open ",M.twin]},void 0,!0,void 0,this):A.jsxDEV("span",{className:"mode",children:"no mirror"},void 0,!1,void 0,this),A.jsxDEV("a",{href:`${F0}/${Q}/${M.twin}`,"aria-label":`Log and tree of ${M.twin}`,onClick:(I)=>{I.preventDefault(),u0([...Q.split("/"),M.twin])},children:"Log & tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},M.twin,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function RS({name:Q,canWrite:U,branches:Z,opens:K,note:X,remove:Y}){let W=(R)=>R.split("/").pop()??R,B=Z.state==="ok"?Z.data.branches:[];return A.jsxDEV("div",{"aria-labelledby":"branches",children:[A.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",A.jsxDEV("b",{children:W(Q)},void 0,!1,void 0,this),". ",U?"“View an earlier moment…” above makes one as the World was then.":""]},void 0,!0,void 0,this),X?A.jsxDEV("p",{role:"status",children:X},void 0,!1,void 0,this):null,A.jsxDEV(s5,{load:Z,what:"the branches"},void 0,!1,void 0,this),Z.state==="ok"?A.jsxDEV("div",{className:"block",children:[A.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this),A.jsxDEV("th",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:[A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:[A.jsxDEV("b",{children:W(Q)},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"badge",children:"default"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),A.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),A.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),A.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this),A.jsxDEV("td",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B.map((R)=>A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:A.jsxDEV("b",{children:W(R.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:W(Q)},void 0,!1,void 0,this),A.jsxDEV("td",{children:R.at?.instant?A.jsxDEV(W2,{iso:R.at.instant},void 0,!1,void 0,this):"when it was made"},void 0,!1,void 0,this),A.jsxDEV("td",{children:A.jsxDEV(W2,{iso:R.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:R.expiresAt?A.jsxDEV(W2,{iso:R.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this),A.jsxDEV("td",{className:"num",children:[K(R.name)?A.jsxDEV("button",{type:"button","aria-label":`Open ${R.name}`,onClick:()=>u0(R.name.split("/")),children:"Open"},void 0,!1,void 0,this):A.jsxDEV("span",{className:"mode",title:"Its token was handed to whoever made it",children:"opened by whoever made it"},void 0,!1,void 0,this)," ",U?A.jsxDEV("button",{type:"button","aria-label":`Delete ${R.name}`,onClick:()=>void Y(R.name),children:"Delete"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},R.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B.length===0?A.jsxDEV("p",{className:"mode pad",children:"No branches yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function OS({name:Q,token:U,twins:Z,session:K,retry:X,selected:Y}){let W=S5(U,`/-/${Q}/map`),B=Z.state==="ok"?Z.data.twins:[],R=(L)=>{let M=W.state==="ok"?W.data.twins.find((I)=>I.twin===L):void 0;if(!M)return"";let f=[...M.resources].filter((I)=>I.count>0).sort((I,k)=>k.count-I.count);return f.length===0?"nothing yet":f.slice(0,3).map((I)=>_9(I.count,I.type)).join(" · ")+(f.length>3?" · …":"")},O=(L)=>W.state==="ok"?W.data.twins.find((M)=>M.twin===L)?.root?.url??null:null,T=B.find((L)=>L.twin===Y);if(!T)return Z.state==="ok"?A.jsxDEV("p",{className:"mode",children:["This World has no vendor named ",Y,". ",A.jsxDEV("a",{href:`${F0}/${Q}/~/canvas`,onClick:(L)=>{L.preventDefault(),u0([...Q.split("/"),"~","canvas"])},children:"All screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):A.jsxDEV(s5,{load:Z,what:"the vendors"},void 0,!1,void 0,this);return A.jsxDEV(A.Fragment,{children:[A.jsxDEV(s5,{load:Z,what:"the vendors"},void 0,!1,void 0,this),Z.state==="ok"&&B.length===0?A.jsxDEV("p",{children:"No vendors in this World yet."},void 0,!1,void 0,this):null,T?A.jsxDEV("div",{className:"vendors",children:A.jsxDEV("div",{className:"stage",children:[A.jsxDEV("div",{className:"stage-bar",children:[A.jsxDEV(W5,{vendor:T.twin},void 0,!1,void 0,this),A.jsxDEV("span",{className:"mode",children:[R(T.twin)||"empty",O(T.twin)?` · connected to ${O(T.twin)}`:" · stand-in"]},void 0,!0,void 0,this),A.jsxDEV("span",{className:"stage-actions",children:[B.filter((L)=>L.mirror).length>1?A.jsxDEV("a",{className:"button",href:`${F0}/${Q}/~/vendors`,onClick:(L)=>{L.preventDefault(),u0([...Q.split("/"),"~","vendors"])},children:"All vendors"},void 0,!1,void 0,this):null,T.mirror?A.jsxDEV("a",{className:"button",href:D8(Q,T.twin),target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${W0(T.twin)} in a new tab`,children:"Open in new tab ↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),K.state==="ok"&&K.scope==="read"?A.jsxDEV("p",{className:"mode stage-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,K.state==="pending"?A.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,K.state==="error"?A.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",K.error," ",A.jsxDEV("button",{type:"button",onClick:X,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K.state==="ok"?T.mirror?A.jsxDEV("iframe",{title:`${T.twin} mirror`,src:D8(Q,T.twin)},T.twin,!1,void 0,this):A.jsxDEV("p",{className:"empty",children:[W0(T.twin)," has no screens here yet. What your app did there is in ",A.jsxDEV("a",{href:`${F0}/${Q}/~/activity`,onClick:(L)=>{L.preventDefault(),u0([...Q.split("/"),"~","activity"])},children:"Activity"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function wS(Q){let U=[];for(let Z of Q){let K=U[U.length-1];if(K&&(K[0].operation??K[0].op)===(Z.operation??Z.op))K.push(Z);else U.push([Z])}return U}function IS(Q){let U=[];for(let Z of Q){let K=U[U.length-1],X=Array.isArray(K)?K[0]:K;if(X&&X.twin===Z.twin&&(X.entry.operation??X.entry.op)===(Z.entry.operation??Z.entry.op))if(Array.isArray(K))K.push(Z);else U[U.length-1]=[X,Z];else U.push(Z)}return U.flatMap((Z)=>Array.isArray(Z)&&Z.length<3?Z:[Z])}var fS=50,y4=(Q)=>`${Q.twin}:${Q.position}`,pR=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position;function PS(Q){let U=[];for(let Z of Q){let K=new Date(Z.entry.occurredAt),X=K.toDateString(),Y=U[U.length-1];if(!Y||Y.day!==X)Y={day:X,label:K.toLocaleDateString(void 0,{weekday:"short",year:"numeric",month:"short",day:"numeric"}),instants:[]},U.push(Y);let W=Y.instants[Y.instants.length-1];if(W&&Date.parse(W.at)===K.getTime())W.items.push(Z);else Y.instants.push({at:Z.entry.occurredAt,items:[Z]})}return U}function jR({name:Q,p:U}){let Z=U.entry,K=ER(Z.traceparent),X=t5(Z),Y=HS(Z);return A.jsxDEV("li",{className:"entry",title:`${Z.operation??Z.op} ${Z.subject.type}:${Z.subject.id} · ${vR(Z)} · ${nq(Z)}`,children:[A.jsxDEV("span",{className:"twin-chip",children:[A.jsxDEV(W5,{vendor:U.twin},void 0,!1,void 0,this),W0(U.twin)]},void 0,!0,void 0,this),A.jsxDEV("span",{className:"op",children:X.what},void 0,!1,void 0,this),X.label?A.jsxDEV("span",{className:"label",children:["“",X.label,"”"]},void 0,!0,void 0,this):A.jsxDEV("code",{className:"subject",children:iq(Z)},void 0,!1,void 0,this),A.jsxDEV("span",{className:"actor mode",children:oq(Z,U.twin)},void 0,!1,void 0,this),Y?A.jsxDEV("span",{className:"standing",children:Y},void 0,!1,void 0,this):null,K?A.jsxDEV("a",{className:"trace-link",href:`${F0}/${Q}/~/trace/${K.trace}`,"aria-label":`View trace ${K.trace.slice(0,8)}`,onClick:(W)=>{W.preventDefault(),u0([...Q.split("/"),"~","trace",K.trace])},children:"trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function NS({name:Q,token:U,vendors:Z}){let[K,X]=M1.useState(null),[Y,W]=M1.useState(null),[B,R]=M1.useState(null),[O,T]=M1.useState(null),[L,M]=M1.useState(!1),[f,I]=M1.useState(null),[k,S]=M1.useState({items:[],gap:null}),D=M1.useCallback((E)=>`/-/${Q}/timeline?limit=${fS}${K?`&twin=${encodeURIComponent(K)}`:""}${E?`&before=${encodeURIComponent(E)}`:""}`,[Q,K]),h=M1.useRef(null);h.current=Y,M1.useEffect(()=>{let E=!0;W(null),T(null),S({items:[],gap:null}),(async()=>{let a=await L0(U,D());if(!E)return;if(!a.ok){T(await a5(a));return}let t=await a.json();if(!E)return;W(t.entries),R(t.next)})().catch((a)=>{if(E)T(`the World did not answer: ${a instanceof Error?a.message:String(a)}`)});let p=setInterval(()=>{let a=h.current;if(a===null||document.hidden)return;L0(U,D()).then(async(t)=>{if(!t.ok||!E)return;let Q1=await t.json();if(!E)return;if(a.length===0){if(Q1.entries.length)W(Q1.entries),R(Q1.next);return}let $1=new Set((h.current??a).map(y4)),_1=Q1.entries.filter((y)=>!$1.has(y4(y)));S({items:_1,gap:_1.length===Q1.entries.length&&Q1.next?Q1:null})}).catch(()=>null)},3000);return()=>{E=!1,clearInterval(p)}},[U,D]);let P=()=>{if(k.gap)W(k.gap.entries),R(k.gap.next);else W((E)=>[...k.items,...E??[]].sort(pR));S({items:[],gap:null})},j=async()=>{if(!B)return;M(!0),I(null);try{let E=await L0(U,D(B));if(!E.ok){I(await a5(E));return}let p=await E.json();W((a)=>{let t=new Set((a??[]).map(y4));return[...a??[],...p.entries.filter((Q1)=>!t.has(y4(Q1)))]}),R(p.next)}catch(E){I(`the World did not answer: ${E instanceof Error?E.message:String(E)}`)}finally{M(!1)}},b=M1.useMemo(()=>PS(Y??[]),[Y]),x=k.items.length;return A.jsxDEV(A.Fragment,{children:[A.jsxDEV("div",{role:"group","aria-label":"Filter by twin",className:"chips",children:[A.jsxDEV("button",{type:"button","aria-pressed":K===null,onClick:()=>X(null),children:"All vendors"},void 0,!1,void 0,this),Z.map((E)=>A.jsxDEV("button",{type:"button","aria-pressed":K===E,"aria-label":E,onClick:()=>X(K===E?null:E),children:W0(E)},E,!1,void 0,this))]},void 0,!0,void 0,this),A.jsxDEV("div",{"aria-live":"polite",className:"pill-slot",children:x>0?A.jsxDEV("button",{type:"button",className:"pill",onClick:P,children:[k.gap?`${x}+`:x," new change",x===1?"":"s"," — show"]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),O?A.jsxDEV("p",{role:"alert",children:["Could not read the timeline: ",O]},void 0,!0,void 0,this):Y===null?A.jsxDEV("p",{className:"mode",role:"status",children:"Loading the timeline…"},void 0,!1,void 0,this):Y.length===0?K?A.jsxDEV("p",{children:["Nothing has happened in ",K," yet."]},void 0,!0,void 0,this):A.jsxDEV("div",{className:"empty",children:[A.jsxDEV("p",{children:A.jsxDEV("strong",{children:"Nothing has happened in this World yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("p",{className:"mode",children:["An entry arrives each time something changes a twin: an app (or a seed script) calling a twin's API at ",A.jsxDEV("code",{children:[O6,"/",Q,"/<twin>"]},void 0,!0,void 0,this),", a mirror's form, a changeset landing. They show here within a few seconds."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):A.jsxDEV("div",{className:"feed","aria-label":"Timeline",children:[b.map((E)=>A.jsxDEV("div",{role:"group","aria-label":E.label,className:"day",children:[A.jsxDEV("h3",{className:"day-head",children:E.label},void 0,!1,void 0,this),A.jsxDEV("ol",{className:"instants",children:E.instants.map((p)=>A.jsxDEV("li",{className:"instant",children:[A.jsxDEV("div",{className:"instant-time",title:p.items.length>1?"These happened at the same moment of the World's clock: their order across vendors is not known.":void 0,children:A.jsxDEV(W2,{iso:p.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("ul",{className:"entries",children:IS(p.items).map((a)=>Array.isArray(a)?A.jsxDEV("li",{className:"entry run",children:A.jsxDEV("details",{children:[A.jsxDEV("summary",{children:[A.jsxDEV("span",{className:"twin-chip",children:[A.jsxDEV(W5,{vendor:a[0].twin},void 0,!1,void 0,this),W0(a[0].twin)]},void 0,!0,void 0,this)," ",A.jsxDEV("span",{className:"op",children:[_9(a.length,a[0].entry.subject.type)," ",t5(a[0].entry).what.split(" ").slice(-1)[0]]},void 0,!0,void 0,this)," ",A.jsxDEV("span",{className:"actor mode",children:oq(a[0].entry,a[0].twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("ul",{className:"entries",children:a.map((t)=>A.jsxDEV(jR,{name:Q,p:t},y4(t),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},y4(a[0]),!1,void 0,this):A.jsxDEV(jR,{name:Q,p:a},y4(a),!1,void 0,this))},void 0,!1,void 0,this)]},`${p.at}:${y4(p.items[0])}`,!0,void 0,this))},void 0,!1,void 0,this)]},E.day,!0,void 0,this)),B?A.jsxDEV("button",{type:"button",onClick:()=>void j(),disabled:L,"aria-busy":L,children:"Load older"},void 0,!1,void 0,this):A.jsxDEV("p",{className:"mode",children:["The beginning of this World",K?`'s ${K}`:"","."]},void 0,!0,void 0,this),f?A.jsxDEV("p",{role:"alert",children:["Could not load older changes: ",f]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function jS({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),X=S5(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=X.state==="ok"?[...X.data.entries].sort((O,T)=>-pR(O,T)):[],W=[...new Set(Y.map((O)=>O.twin))],B=Y[0]?Date.parse(Y[0].entry.occurredAt):0,R=A.jsxDEV("a",{href:`${F0}/${Q}/~/timeline`,onClick:(O)=>{O.preventDefault(),u0([...Q.split("/"),"~","timeline"])},children:"← Timeline"},void 0,!1,void 0,this);return A.jsxDEV(A.Fragment,{children:[A.jsxDEV("p",{children:R},void 0,!1,void 0,this),A.jsxDEV("h3",{children:["Trace ",A.jsxDEV("code",{children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!K?A.jsxDEV("p",{role:"alert",children:[Z?`${Z} is not a trace id`:"No trace named",": a W3C trace id is 32 hex characters."]},void 0,!0,void 0,this):A.jsxDEV(s5,{load:X,what:"the trace"},void 0,!1,void 0,this),X.state==="ok"&&Y.length===0?A.jsxDEV("div",{className:"empty",children:[A.jsxDEV("p",{children:A.jsxDEV("strong",{children:"Nothing in this World carries this trace."},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("p",{className:"mode",children:["Causes are followed through the W3C ",A.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," header: an app instrumented with OpenTelemetry sends it with each call, and every entry that call writes keeps it — so one click in the app can be read across Stripe, Slack and the rest. Without it the World knows the order of what happened, not what caused what."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,Y.length>0?A.jsxDEV(A.Fragment,{children:[A.jsxDEV("p",{className:"mode",children:[Y.length," step",Y.length===1?"":"s"," across ",W.length," twin",W.length===1?"":"s",X.state==="ok"&&X.data.next?" · the first 500 shown":""]},void 0,!0,void 0,this),A.jsxDEV("div",{role:"table","aria-label":"Trace waterfall",className:"waterfall",style:{gridTemplateColumns:`minmax(130px, auto) repeat(${W.length}, minmax(140px, 1fr))`},children:[A.jsxDEV("div",{role:"row",className:"wf-row wf-head",children:[A.jsxDEV("span",{role:"columnheader",children:"time"},void 0,!1,void 0,this),W.map((O)=>A.jsxDEV("span",{role:"columnheader",children:O},O,!1,void 0,this))]},void 0,!0,void 0,this),Y.map((O)=>{let T=Date.parse(O.entry.occurredAt)-B,L=ER(O.entry.traceparent)?.span;return A.jsxDEV("div",{role:"row",className:"wf-row",children:[A.jsxDEV("span",{role:"cell",className:"wf-time",children:[A.jsxDEV(W2,{iso:O.entry.occurredAt,time:!0},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:["+",T," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.map((M)=>A.jsxDEV("span",{role:"cell",className:M===O.twin?"wf-cell on":"wf-cell",children:M===O.twin?A.jsxDEV("details",{children:[A.jsxDEV("summary",{children:[O.entry.operation??O.entry.op," ",A.jsxDEV("code",{children:[O.entry.subject.type,":",O.entry.subject.id]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("p",{className:"mode",children:[vR(O.entry)," · ",nq(O.entry)," · position ",O.position,L?A.jsxDEV(A.Fragment,{children:[" · span ",A.jsxDEV("code",{children:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),A.jsxDEV(cR,{fields:O.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},M,!1,void 0,this))]},y4(O),!0,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function cR({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return A.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return A.jsxDEV("dl",{className:"fields",children:U.map(([Z,K])=>A.jsxDEV(M1.default.Fragment,{children:[A.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),A.jsxDEV("dd",{children:A.jsxDEV("code",{children:typeof K==="string"?K:JSON.stringify(K)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var aq=1280,sq=820,CR=160;function CS({data:Q}){let{world:U,vendor:Z,active:K,open:X}=Q;return A.jsxDEV(A.Fragment,{children:[A.jsxDEV(ZR,{isVisible:!0,position:j1.Top,align:"start",className:"frame-label",children:[A.jsxDEV(W5,{vendor:Z},void 0,!1,void 0,this),A.jsxDEV("span",{children:W0(Z)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("div",{className:K?"frame on":"frame",style:{width:aq,height:sq},children:[A.jsxDEV("div",{className:"frame-bar",title:"Drag to move",children:[A.jsxDEV(W5,{vendor:Z},void 0,!1,void 0,this),A.jsxDEV("strong",{children:W0(Z)},void 0,!1,void 0,this),A.jsxDEV("span",{className:"frame-url",children:D8(U,Z).replace(/^https?:\/\//,"")},void 0,!1,void 0,this),A.jsxDEV("a",{className:"nodrag",href:`${F0}/${U}/~/vendors/${Z}`,onClick:(Y)=>{Y.preventDefault(),X(Z)},children:"Open"},void 0,!1,void 0,this),A.jsxDEV("a",{className:"nodrag",href:D8(U,Z),target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${W0(Z)} in a new tab`,children:"↗"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("div",{className:K?"frame-body nodrag nopan nowheel":"frame-body",children:A.jsxDEV("iframe",{title:`${Z} mirror`,src:D8(U,Z),loading:"lazy",style:{pointerEvents:K?"auto":"none"}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var VS={screen:CS};function SS(Q){return A.jsxDEV(DX,{children:A.jsxDEV(DS,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function DS({name:Q,twins:U,session:Z,retry:K,snapshot:X,back:Y}){let W=U.state==="ok"?U.data.twins.filter((E)=>E.mirror).map((E)=>E.twin):[],B=`volter.canvas.${Q}`,[R,O]=M1.useState(null),[T,L]=M1.useState(!0),M=TJ(),f=M1.useCallback((E)=>u0([...Q.split("/"),"~","vendors",E]),[Q]),I=Math.max(1,Math.ceil(Math.sqrt(W.length))),k=M1.useCallback(()=>{let E={};try{E=JSON.parse(localStorage.getItem(B)??"{}")}catch{}return W.map((p,a)=>({id:p,type:"screen",dragHandle:".frame-bar",position:E[p]??{x:a%I*(aq+CR),y:Math.floor(a/I)*(sq+CR)},data:{world:Q,vendor:p,active:!1,open:f}}))},[W.join(","),Q,I,f]),[S,D,h]=_R([]);M1.useEffect(()=>{D(k())},[k,D]),M1.useEffect(()=>{D((E)=>E.map((p)=>p.data.active===(p.id===R)?p:{...p,data:{...p.data,active:p.id===R}}))},[R,D]),M1.useEffect(()=>{let E=(p)=>{if(p.key==="Escape")O(null)};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[]);let P=()=>{try{localStorage.setItem(B,JSON.stringify(Object.fromEntries(S.map((E)=>[E.id,E.position]))))}catch{}},j=(E)=>{O(E);let p=M.getNode(E);if(!p)return;let a=Math.min((window.innerWidth-300)/aq,(window.innerHeight-120)/sq,1);M.setCenter(p.position.x+aq/2-130/a,p.position.y+sq/2,{zoom:a,duration:400})},b=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,x=Z.state==="ok"&&U.state==="ok";return A.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"Every vendor's screens",children:A.jsxDEV(eT,{nodes:x?S:[],onNodesChange:h,nodeTypes:VS,onNodeDragStop:P,onNodeClick:(E,p)=>O(p.id),onPaneClick:()=>O(null),fitView:!0,fitViewOptions:{padding:{top:"64px",left:"272px",right:"32px",bottom:"32px"}},minZoom:0.05,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!1,zoomOnDoubleClick:!1,colorMode:b?"dark":"light",proOptions:{hideAttribution:!0},children:[A.jsxDEV($R,{variant:k4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),A.jsxDEV(N8,{position:"top-left",className:"float layers",children:[A.jsxDEV("div",{className:"float-head",children:[A.jsxDEV("button",{type:"button",className:"back",onClick:Y,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),A.jsxDEV("span",{className:"float-title",children:[A.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),A.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],X?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("button",{type:"button",className:"ghost","aria-expanded":T,"aria-label":T?"Hide the screens list":"Show the screens list",onClick:()=>L(!T),children:T?"▾":"▸"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T?A.jsxDEV("ul",{className:"layer-list","aria-label":"Screens",children:[W.map((E)=>A.jsxDEV("li",{children:A.jsxDEV("button",{type:"button",className:R===E?"on":void 0,onClick:()=>j(E),children:[A.jsxDEV(W5,{vendor:E},void 0,!1,void 0,this),A.jsxDEV("span",{children:W0(E)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},E,!1,void 0,this)),U.state==="ok"&&W.length===0?A.jsxDEV("li",{className:"mode",children:"No vendor in this World has screens."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,A.jsxDEV(s5,{load:U,what:"the vendors"},void 0,!1,void 0,this),Z.state==="pending"?A.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Z.state==="error"?A.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",Z.error," ",A.jsxDEV("button",{type:"button",onClick:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),A.jsxDEV(N8,{position:"top-center",className:"float hint mode",children:R?`Using ${W0(R)} · Esc to leave`:"Drag to pan · scroll to zoom · click a screen to use it"},void 0,!1,void 0,this),A.jsxDEV(qR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),A.jsxDEV(GR,{pannable:!0,zoomable:!0,nodeBorderRadius:8,position:"bottom-right"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function kS({name:Q,token:U}){let Z=S5(U,`/-/${Q}/diff`),K=M1.useMemo(()=>{let X=new Map;if(Z.state==="ok")for(let Y of Z.data.changes)X.set(Y.twin,[...X.get(Y.twin)??[],Y.entry]);return[...X.entries()]},[Z]);return A.jsxDEV(A.Fragment,{children:[A.jsxDEV(s5,{load:Z,what:"the changes"},void 0,!1,void 0,this),Z.state==="ok"?A.jsxDEV(A.Fragment,{children:[A.jsxDEV("p",{className:"mode",children:["What this World changed since it started",Z.data.base.at?A.jsxDEV(A.Fragment,{children:[" (",A.jsxDEV(W2,{iso:Z.data.base.at},void 0,!1,void 0,this),", ",A.jsxDEV("code",{children:Z.data.base.id},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this):A.jsxDEV(A.Fragment,{children:[" (",A.jsxDEV("code",{children:Z.data.base.id},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this),": ",Z.data.changes.length," change",Z.data.changes.length===1?"":"s"," at ",K.length," vendor",K.length===1?"":"s",". A changeset takes these to the real services."]},void 0,!0,void 0,this),K.length===0?A.jsxDEV("p",{className:"empty",children:["No changes since ",Z.data.base.id,Z.data.base.at?A.jsxDEV(A.Fragment,{children:[" (",A.jsxDEV(W2,{iso:Z.data.base.at},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this):null,"."]},void 0,!0,void 0,this):K.map(([X,Y])=>A.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`changes-${X}`,children:[A.jsxDEV("h3",{id:`changes-${X}`,className:"vendor-cell",children:[A.jsxDEV(W5,{vendor:X},void 0,!1,void 0,this),W0(X)," ",A.jsxDEV("span",{className:"mode",children:["· ",Y.length," change",Y.length===1?"":"s"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("ul",{children:wS(Y).map((W)=>W.length>=3?A.jsxDEV("li",{children:A.jsxDEV("details",{children:[A.jsxDEV("summary",{children:[A.jsxDEV("span",{className:"op",children:[_9(W.length,W[0].subject.type)," ",t5(W[0]).what.split(" ").slice(-1)[0]]},void 0,!0,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:[W.map((B)=>t5(B).label??iq(B)).slice(0,4).join(", "),W.length>4?", …":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("ul",{children:W.map((B)=>A.jsxDEV("li",{children:[A.jsxDEV("span",{className:"op",children:t5(B).what},void 0,!1,void 0,this)," ",t5(B).label?A.jsxDEV("span",{className:"label",children:["“",t5(B).label,"”"]},void 0,!0,void 0,this):A.jsxDEV("code",{children:iq(B)},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:[A.jsxDEV(W2,{iso:B.occurredAt},void 0,!1,void 0,this)," · ",oq(B,X)]},void 0,!0,void 0,this)]},B.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},W[0].id,!1,void 0,this):W.map((B)=>A.jsxDEV("li",{children:A.jsxDEV("details",{children:[A.jsxDEV("summary",{children:[A.jsxDEV("span",{className:"op",children:t5(B).what},void 0,!1,void 0,this)," ",t5(B).label?A.jsxDEV("span",{className:"label",children:["“",t5(B).label,"”"]},void 0,!0,void 0,this):A.jsxDEV("code",{children:iq(B)},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:[A.jsxDEV(W2,{iso:B.occurredAt},void 0,!1,void 0,this)," · ",oq(B,X)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV(cR,{fields:B.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},B.id,!1,void 0,this)))},void 0,!1,void 0,this)]},X,!0,void 0,this))]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function yS({name:Q,token:U}){let[Z,K]=M1.useState(0),X=S5(U,`/-/${Q}/keys`,Z),[Y,W]=M1.useState(!1),[B,R]=M1.useState(""),[O,T]=M1.useState("write"),[L,M]=M1.useState(!1),[f,I]=M1.useState(null),[k,S]=M1.useState(null),[D,h]=M1.useState(null),P=async()=>{let x=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,E=await L0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:x,scope:"read"})}).catch(()=>null),p=E?await E.json().catch(()=>({})):{error:`${j0} did not answer`};if(!E?.ok||!p.key){L6(p.error??"refused","error");return}h(`${window.location.origin}${F0}/${Q}#${new URLSearchParams({token:p.key}).toString()}`),K((a)=>a+1)},j=async(x)=>{x.preventDefault(),M(!0),I(null);let E=await L0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:B.trim(),scope:O})}).catch(()=>null);M(!1);let p=E?await E.json().catch(()=>({})):{error:`${j0} did not answer`};if(!E?.ok||!p.key){I(p.error??"refused");return}W(!1),S({key:p.key,name:B.trim()}),R(""),K((a)=>a+1)},b=async(x)=>{if(!await B3({title:`Revoke ${x.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let E=await L0(U,`/-/${Q}/keys/${x.id}`,{method:"DELETE"});if(E.ok)L6(`Revoked ${x.name}`);else L6(await a5(E),"error");K((p)=>p+1)};return A.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[A.jsxDEV("div",{className:"keys-head",children:[A.jsxDEV("div",{children:[A.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),A.jsxDEV("p",{className:"mode",children:"What an app, a script or a CI job holds to reach this World: each named for what holds it and revoked alone. People open the World as themselves; keys are for software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t2()?A.jsxDEV("a",{className:"button primary",href:`${t2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):A.jsxDEV("div",{className:"head-actions",children:[A.jsxDEV("button",{type:"button",onClick:()=>void P(),children:"Share a read-only link"},void 0,!1,void 0,this),A.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{I(null),W(!0)},children:"Make a key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV(s5,{load:X,what:"the keys",retry:()=>K((x)=>x+1)},void 0,!1,void 0,this),X.state==="ok"?X.data.keys.length===0?A.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):A.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),A.jsxDEV("th",{className:"num",children:A.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:X.data.keys.map((x)=>A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:x.name},void 0,!1,void 0,this),A.jsxDEV("td",{children:x.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),A.jsxDEV("td",{className:"mode",children:A.jsxDEV("span",{title:OJ(x.createdAt),children:lq(x.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{className:"mode",children:x.lastUsedAt?lq(x.lastUsedAt):"never"},void 0,!1,void 0,this),A.jsxDEV("td",{className:"num",children:A.jsxDEV(zR,{label:`More for ${x.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void b(x)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},x.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,A.jsxDEV(wJ,{open:Y,onClose:()=>{if(!L)W(!1)},title:"Make a key",footer:A.jsxDEV(A.Fragment,{children:[A.jsxDEV("button",{type:"button",onClick:()=>W(!1),disabled:L,children:"Cancel"},void 0,!1,void 0,this),A.jsxDEV("button",{type:"submit",form:"make-key",disabled:L||!B.trim(),children:L?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:A.jsxDEV("form",{id:"make-key",onSubmit:j,"aria-label":"Make a key",children:[A.jsxDEV("label",{children:["Name ",A.jsxDEV("input",{autoFocus:!0,name:"keyName",value:B,onChange:(x)=>R(x.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("label",{children:["Access ",A.jsxDEV("select",{value:O,onChange:(x)=>T(x.target.value==="read"?"read":"write"),children:[A.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),A.jsxDEV("option",{value:"read",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f?A.jsxDEV("p",{role:"alert",children:f},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV(wJ,{open:Boolean(k),onClose:()=>S(null),title:`${k?.name??"The key"} is ready`,footer:A.jsxDEV("button",{type:"button",className:"primary",onClick:()=>S(null),children:"Done"},void 0,!1,void 0,this),children:[A.jsxDEV("p",{className:"mode",children:"Copy it now: it is shown this once. Put it where the app reads its secrets."},void 0,!1,void 0,this),k?A.jsxDEV(bX,{label:"Key",value:k.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),A.jsxDEV(wJ,{open:Boolean(D),onClose:()=>h(null),title:"A read-only link",footer:A.jsxDEV("button",{type:"button",className:"primary",onClick:()=>h(null),children:"Done"},void 0,!1,void 0,this),children:[A.jsxDEV("p",{className:"mode",children:"Whoever opens it sees this World's pages and changes nothing. Copy it now: it is shown this once. It is listed under Keys, where revoking it closes the link at once."},void 0,!1,void 0,this),D?A.jsxDEV(bX,{label:"Link",value:D,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function vS({name:Q,token:U,admin:Z,canWrite:K,refused:X,onRemoved:Y}){let[W,B]=M1.useState(null),[R,O]=M1.useState(null),[T,L]=M1.useState(null),[M,f]=M1.useState(null),[I,k]=M1.useState(null),S=M1.useCallback(async()=>{let j=await L0(U,`/-/${Q}/twins`);B(j.ok?(await j.json()).twins:[]);let b=await L0(U,`/-/${Q}/requests?hours=24`);k(b.ok?await b.json():null);let x=await L0(U,`/-/${Q}/changesets`);O(x.ok?(await x.json()).changesets:[])},[Q,U]);M1.useEffect(()=>{S()},[S]);let D=async(j,b,x)=>{L(null);let E=await L0(U,b,x);if(!E.ok)X(E);L(E.ok?`${j}: done`:`${j}: ${await a5(E)}`),await S()},h=async()=>{if(!await B3({title:`Rotate the tokens of ${Q}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let j=await L0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(j.ok)f(await j.json()),L("rotated: the new tokens are shown once");else L(`rotate: answered ${j.status}`)},P=async()=>{if(!await B3({title:`Remove ${Q}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:Q}))return;let j=await L0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((b)=>b);if(j instanceof Error){L(`remove: the host did not answer (${j.message})`);return}if(j.ok)Y();else L(`remove: answered ${j.status}`)};return A.jsxDEV(A.Fragment,{children:[T?A.jsxDEV("p",{role:"status",children:T},void 0,!1,void 0,this):null,M?A.jsxDEV("p",{role:"status",children:["token ",A.jsxDEV("code",{children:M.token},void 0,!1,void 0,this)," · read token ",A.jsxDEV("code",{children:M.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K?A.jsxDEV(yS,{name:Q,token:U},void 0,!1,void 0,this):null,A.jsxDEV("h3",{children:"Real services"},void 0,!1,void 0,this),A.jsxDEV("p",{className:"mode",children:"Every vendor here is a stand-in. Connect one to its real service to read the real state into this World; give it the real key to send this World's changes there (a changeset's Deploy, below)."},void 0,!1,void 0,this),W===null?A.jsxDEV("p",{children:"Loading…"},void 0,!1,void 0,this):A.jsxDEV("table",{"aria-label":"Real services",children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{children:"vendor"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"real service"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"real key"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"last read from it"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"last sent"},void 0,!1,void 0,this),K?A.jsxDEV("th",{},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:W.map((j)=>A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:A.jsxDEV("a",{href:`${F0}/${Q}/${j.twin}`,title:`Its log and stored state · ${j.position??0} changes held${j.protocol?.major!==void 0?` · protocol ${j.protocol.major}${j.protocol.standing&&j.protocol.standing!=="current"?` (${j.protocol.standing})`:""}`:""}`,onClick:(b)=>{b.preventDefault(),u0([...Q.split("/"),j.twin])},children:W0(j.twin)},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:j.root?.url?A.jsxDEV("code",{children:j.root.url},void 0,!1,void 0,this):A.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:j.credential?`sealed ${j.credential.fingerprint??""} · ${OJ(j.credential.placedAt)}`:A.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:j.refresh?.failed?A.jsxDEV("span",{role:"alert",children:["failed ×",j.refresh.failed.count??1,": ",j.refresh.failed.reason??""]},void 0,!0,void 0,this):j.root?OJ(j.refresh?.observedAt??j.refresh?.at):A.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:j.lastReceipt?`${j.lastReceipt.status??""} ${j.lastReceipt.externalId??""} ${j.lastReceipt.reason??""}`.trim():A.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),K?A.jsxDEV("td",{children:[A.jsxDEV("button",{onClick:()=>void B3({title:`Read ${W0(j.twin)} now?`,body:`The real ${W0(j.twin)}'s current state is read into this World. Nothing is written to ${W0(j.twin)}.`,action:"Read from it"}).then((b)=>{if(b)D(`refresh ${j.twin}`,`/-/${Q}/twins/${j.twin}/refresh`,{method:"POST"})}),disabled:!j.root,title:"Read the real service's current state into this World",children:"Read from it"},void 0,!1,void 0,this)," ",A.jsxDEV("button",{onClick:()=>{let b=window.prompt(`The real ${W0(j.twin)}'s address (its API's URL); empty disconnects it`,j.root?.url??"");if(b===null)return;D(`root ${j.twin}`,`/-/${Q}/twins/${j.twin}/root`,{method:"PUT",body:JSON.stringify(b?{url:b}:null)})},title:"Connect this vendor to the real service's URL (empty disconnects it)",children:"Connect…"},void 0,!1,void 0,this)," ",A.jsxDEV("button",{onClick:()=>{let b=window.prompt(`The real ${W0(j.twin)} key: it is sealed beside this World and never shown again`);if(!b)return;D(`seal ${j.twin}`,`/-/${Q}/twins/${j.twin}/credential`,{method:"PUT",body:b,headers:{"content-type":"text/plain"}})},title:"Give this World the real service's key; it is sealed and never shown again",children:"Real key…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},j.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("h3",{children:"Traffic (last 24 hours)"},void 0,!1,void 0,this),I===null?A.jsxDEV("p",{className:"mode",children:"No request report for this world."},void 0,!1,void 0,this):I.requests===0?A.jsxDEV("p",{className:"mode",children:["No requests recorded in the last 24 hours. Recording is off unless the World runs with ",A.jsxDEV("code",{children:"VOLTER_TWIN_REQUEST_JOURNAL=1"},void 0,!1,void 0,this),"; what the requests changed is always in Activity."]},void 0,!0,void 0,this):A.jsxDEV("table",{"aria-label":"Requests by twin",children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{children:"vendor"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"requests"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"by status"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"p50"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"p95"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"top routes"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:I.twins.map((j)=>A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:j.twin},void 0,!1,void 0,this),A.jsxDEV("td",{children:j.requests},void 0,!1,void 0,this),A.jsxDEV("td",{children:Object.entries(j.byStatus).map(([b,x])=>`${b}: ${x}`).join(" · ")||"—"},void 0,!1,void 0,this),A.jsxDEV("td",{children:j.p50Ms===null?"—":`${j.p50Ms} ms`},void 0,!1,void 0,this),A.jsxDEV("td",{children:j.p95Ms===null?"—":`${j.p95Ms} ms`},void 0,!1,void 0,this),A.jsxDEV("td",{children:j.topRoutes.slice(0,5).map((b)=>A.jsxDEV("div",{children:[A.jsxDEV("code",{children:b.route},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:["×",b.requests]},void 0,!0,void 0,this)]},b.route,!0,void 0,this))},void 0,!1,void 0,this)]},j.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("h3",{children:"Sending changes to the real services"},void 0,!1,void 0,this),A.jsxDEV("p",{className:"mode",children:["A changeset is a set of this World's changes (",A.jsxDEV("code",{children:'volter world changeset -m "…"'},void 0,!1,void 0,this),"), verified and approved, then deployed to each connected real service."]},void 0,!0,void 0,this),R===null?A.jsxDEV("p",{children:"Loading…"},void 0,!1,void 0,this):R.length===0?A.jsxDEV("p",{className:"mode",children:"No changesets yet."},void 0,!1,void 0,this):A.jsxDEV("table",{children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{children:"name"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"changes"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"approvals"},void 0,!1,void 0,this),K?A.jsxDEV("th",{children:"actions"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:R.map((j)=>A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:j.name},void 0,!1,void 0,this),A.jsxDEV("td",{children:Array.isArray(j.actions)?j.actions.length:"—"},void 0,!1,void 0,this),A.jsxDEV("td",{children:Array.isArray(j.approvals)?j.approvals.length:0},void 0,!1,void 0,this),K?A.jsxDEV("td",{children:[A.jsxDEV("button",{onClick:()=>void D(`verify ${j.name}`,`/-/${Q}/changesets/${encodeURIComponent(j.name)}/verify`,{method:"POST"}),children:"Verify"},void 0,!1,void 0,this)," ",A.jsxDEV("button",{onClick:()=>{let b=window.prompt(`Approve ${j.name} as`);if(!b)return;D(`approve ${j.name}`,`/-/${Q}/changesets/${encodeURIComponent(j.name)}/approve`,{method:"POST",body:JSON.stringify({as:b})})},children:"Approve"},void 0,!1,void 0,this)," ",A.jsxDEV("button",{onClick:()=>void B3({title:`Deploy ${j.name}?`,body:"Its changes are sent to the real services now. That is what the World exists to keep you from doing by accident.",action:"Deploy to the real services",danger:!0,typed:j.name}).then((b)=>{if(b)D(`deploy ${j.name}`,`/-/${Q}/deploy/${encodeURIComponent(j.name)}`,{method:"POST",body:JSON.stringify({confirm:j.name})})}),children:"Deploy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},j.name,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z?A.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[A.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),A.jsxDEV("p",{children:[A.jsxDEV("button",{onClick:()=>void h(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:"New tokens for this World; every app, script and browser using the old ones is signed out."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A.jsxDEV("p",{children:[A.jsxDEV("button",{onClick:()=>void P(),children:"Remove world"},void 0,!1,void 0,this)," ",A.jsxDEV("span",{className:"mode",children:"Deletes this World and everything in it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function ES({name:Q,token:U,twin:Z}){let[K,X]=M1.useState("log"),[Y,W]=M1.useState(null),[B,R]=M1.useState(null);M1.useEffect(()=>{(async()=>{let I=await L0(U,`/-/${Q}/log/${Z}?limit=1`);if(!I.ok){W({position:0,entries:[]});return}let{position:k}=await I.json(),S=Math.max(0,k-200),h=await(await L0(U,`/-/${Q}/log/${Z}?after=${S}&limit=200&receipts=1`)).json();W({position:h.position,entries:[...h.entries].reverse()});let P=await L0(U,`/-/${Q}/checkpoint/${Z}`);R(P.ok?(await P.json()).tree:[])})()},[Q,U,Z]);let[O,T]=M1.useState(!1);M1.useEffect(()=>{L0(U,`/-/${Q}/twins/${Z}/status`).then(async(I)=>T(I.ok&&(await I.json()).mirror===!0),()=>T(!1))},[Q,U,Z]);let L=`${O6}/${Q}/${Z}/mirror/`,M=()=>{let I=document.createElement("form");I.method="POST",I.action=`${O6}/-/${Q}/session`;for(let[k,S]of[["token",U],["next",`/${Q}/${Z}/mirror/`]]){let D=document.createElement("input");D.type="hidden",D.name=k,D.value=S,I.append(D)}document.body.append(I),I.submit(),I.remove()},f=(I)=>I.operation==="observed"?`observed${I.provenance==="placeholder"?" (default data)":" (vendor)"}`:I.receipt?`${I.receipt.status??""} ${I.receipt.externalId??""} ${I.receipt.reason??""}`.trim():I.provenance==="placeholder"?"default data":"unpushed";return A.jsxDEV("section",{"aria-labelledby":"twin",children:[A.jsxDEV("h2",{id:"twin",children:[Z," in ",Q]},void 0,!0,void 0,this),A.jsxDEV("p",{children:["position ",Y?.position??"…"," · ",A.jsxDEV("code",{children:[O6,"/",Q,"/",Z]},void 0,!0,void 0,this),O?A.jsxDEV(A.Fragment,{children:[" · ",A.jsxDEV("a",{href:L,onClick:(I)=>{I.preventDefault(),M()},children:["Open as ",Z," shows it"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),A.jsxDEV("div",{role:"tablist",children:[A.jsxDEV("button",{role:"tab","aria-selected":K==="log",onClick:()=>X("log"),children:"Log"},void 0,!1,void 0,this),A.jsxDEV("button",{role:"tab","aria-selected":K==="tree",onClick:()=>X("tree"),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K==="log"?Y===null?A.jsxDEV("p",{children:"Loading…"},void 0,!1,void 0,this):Y.entries.length===0?A.jsxDEV("p",{children:"No changes yet."},void 0,!1,void 0,this):A.jsxDEV("table",{children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{children:"when"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"operation"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"subject"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"actor"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"standing"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:Y.entries.map((I)=>A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:OJ(I.occurredAt)},void 0,!1,void 0,this),A.jsxDEV("td",{children:I.operation??I.op},void 0,!1,void 0,this),A.jsxDEV("td",{children:A.jsxDEV("code",{children:[I.subject.type,":",I.subject.id]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:I.actor?`${I.actor.kind}${I.actor.id?` ${I.actor.id}`:""}`:"—"},void 0,!1,void 0,this),A.jsxDEV("td",{children:nq(I)},void 0,!1,void 0,this)]},I.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):B===null?A.jsxDEV("p",{children:"Loading…"},void 0,!1,void 0,this):B.length===0?A.jsxDEV("p",{children:"The tree is empty."},void 0,!1,void 0,this):A.jsxDEV("table",{children:[A.jsxDEV("thead",{children:A.jsxDEV("tr",{children:[A.jsxDEV("th",{children:"type"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),A.jsxDEV("th",{children:"fields"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("tbody",{children:B.filter((I)=>I.deleted!==!0).slice(0,500).map((I)=>{let{type:k,id:S,...D}=I;return A.jsxDEV("tr",{children:[A.jsxDEV("td",{children:k},void 0,!1,void 0,this),A.jsxDEV("td",{children:A.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this),A.jsxDEV("td",{children:A.jsxDEV("pre",{children:JSON.stringify(D,null,1).slice(0,600)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${k}:${S}`,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}EX();VR.createRoot(fJ).render(A.jsxDEV(A.Fragment,{children:[A.jsxDEV(FS,{},void 0,!1,void 0,this),A.jsxDEV(BR,{},void 0,!1,void 0,this),A.jsxDEV(AR,{},void 0,!1,void 0,this),A.jsxDEV(WR,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));
246
+ `)),R=T.reduce((L,M)=>L.concat(...M),[]);return[T,R]}return[[],[]]},[Q]);return K1.useEffect(()=>{let O=U?.target??GT,T=U?.actInsideInputWithModifier??!0;if(Q!==null){let R=(I)=>{if(X.current=I.ctrlKey||I.metaKey||I.shiftKey||I.altKey,(!X.current||X.current&&!T)&&BX(I))return!1;let D=FT(I.code,B);if(W.current.add(I[D]),ZT(z,W.current,!1)){let j=I.composedPath?.()?.[0]||I.target,k=j?.nodeName==="BUTTON"||j?.nodeName==="A";if(U.preventDefault!==!1&&(X.current||!k))I.preventDefault();K(!0)}},L=(I)=>{let f=FT(I.code,B);if(ZT(z,W.current,!0))K(!1),W.current.clear();else W.current.delete(I[f]);if(I.key==="Meta")W.current.clear();X.current=!1},M=()=>{W.current.clear(),K(!1)};return O?.addEventListener("keydown",R),O?.addEventListener("keyup",L),window.addEventListener("blur",M),window.addEventListener("contextmenu",M),()=>{O?.removeEventListener("keydown",R),O?.removeEventListener("keyup",L),window.removeEventListener("blur",M),window.removeEventListener("contextmenu",M)}}},[Q,K]),Z}function ZT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((X)=>U.has(X)))}function FT(Q,U){return U.includes(Q)?"code":"key"}var JS=()=>{let Q=C0();return K1.useMemo(()=>{return{zoomIn:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(1.2,U):!1},zoomOut:async(U)=>{let{panZoom:Z}=Q.getState();return Z?Z.scaleBy(0.8333333333333334,U):!1},zoomTo:async(U,Z)=>{let{panZoom:K}=Q.getState();return K?K.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[K,X,W],panZoom:z}=Q.getState();if(!z)return!1;return await z.setViewport({x:U.x??K,y:U.y??X,zoom:U.zoom??W},Z),!0},getViewport:()=>{let[U,Z,K]=Q.getState().transform;return{x:U,y:Z,zoom:K}},setCenter:async(U,Z,K)=>{return Q.getState().setCenter(U,Z,K)},fitBounds:async(U,Z)=>{let{width:K,height:X,minZoom:W,maxZoom:z,panZoom:B}=Q.getState(),O=MJ(U,K,X,W,z,Z?.padding??0.1);if(!B)return!1;return await B.setViewport(O,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:K,snapGrid:X,snapToGrid:W,domNode:z}=Q.getState();if(!z)return U;let{x:B,y:O}=z.getBoundingClientRect(),T={x:U.x-B,y:U.y-O},R=Z.snapGrid??X,L=Z.snapToGrid??W;return n7(T,K,L,R)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:X,y:W}=K.getBoundingClientRect(),z=w8(U,Z);return{x:z.x+X,y:z.y+W}}}},[])};function DT(Q,U){let Z=[],K=new Map,X=[];for(let W of Q)if(W.type==="add"){X.push(W);continue}else if(W.type==="remove"||W.type==="replace")K.set(W.id,[W]);else{let z=K.get(W.id);if(z)z.push(W);else K.set(W.id,[W])}for(let W of U){let z=K.get(W.id);if(!z){Z.push(W);continue}if(z[0].type==="remove")continue;if(z[0].type==="replace"){Z.push({...z[0].item});continue}let B={...W};for(let O of z)$S(O,B);Z.push(B)}if(X.length)X.forEach((W)=>{if(W.index!==void 0)Z.splice(W.index,0,{...W.item});else Z.push({...W.item})});return Z}function $S(Q,U){switch(Q.type){case"select":{U.selected=Q.selected;break}case"position":{if(typeof Q.position<"u")U.position=Q.position;if(typeof Q.dragging<"u")U.dragging=Q.dragging;break}case"dimensions":{if(typeof Q.dimensions<"u"){if(U.measured={...Q.dimensions},Q.setAttributes){if(Q.setAttributes===!0||Q.setAttributes==="width")U.width=Q.dimensions.width;if(Q.setAttributes===!0||Q.setAttributes==="height")U.height=Q.dimensions.height}}if(typeof Q.resizing==="boolean")U.resizing=Q.resizing;break}}}function yT(Q,U){return DT(Q,U)}function QS(Q,U){return DT(Q,U)}function P8(Q,U){return{id:Q,type:"select",selected:U}}function _9(Q,U=new Set,Z=!1){let K=[];for(let[X,W]of Q){let z=U.has(X);if(!(W.selected===void 0&&!z)&&W.selected!==z){if(Z)W.selected=z;K.push(P8(W.id,z))}}return K}function KT({items:Q=[],lookup:U}){let Z=[],K=new Map(Q.map((X)=>[X.id,X]));for(let[X,W]of Q.entries()){let z=U.get(W.id),B=z?.internals?.userNode??z;if(B!==void 0&&B!==W)Z.push({id:W.id,item:W,type:"replace"});if(B===void 0)Z.push({item:W,type:"add",index:X})}for(let[X]of U)if(K.get(X)===void 0)Z.push({id:X,type:"remove"});return Z}function XT(Q){return{id:Q.id,type:"remove"}}var qS=KX("React Flow","https://reactflow.dev/");function US(Q,U,Z={}){return fM(Q,U,{...Z,onError:Z.onError??qS})}var HT=(Q)=>WM(Q),GS=(Q)=>QX(Q);function vT(Q){return K1.forwardRef(Q)}var ET=typeof window<"u"?K1.useLayoutEffect:K1.useEffect;function YT(Q){let[U,Z]=K1.useState(BigInt(0)),[K]=K1.useState(()=>ZS(()=>Z((X)=>X+BigInt(1))));return ET(()=>{let X=K.get();if(X.length)Q(X),K.reset()},[U]),K}function ZS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var bT=K1.createContext(null);function FS({children:Q}){let U=C0(),Z=K1.useCallback((B)=>{let{nodes:O=[],setNodes:T,hasDefaultNodes:R,onNodesChange:L,nodeLookup:M,fitViewQueued:I,onNodesChangeMiddlewareMap:f}=U.getState(),D=O;for(let k of B)D=typeof k==="function"?k(D):k;let j=KT({items:D,lookup:M});for(let k of f.values())j=k(j);if(R)T(D);if(j.length>0)L?.(j);else if(I)window.requestAnimationFrame(()=>{let{fitViewQueued:k,nodes:h,setNodes:P}=U.getState();if(k)P(h)})},[]),K=YT(Z),X=K1.useCallback((B)=>{let{edges:O=[],setEdges:T,hasDefaultEdges:R,onEdgesChange:L,edgeLookup:M}=U.getState(),I=O;for(let f of B)I=typeof f==="function"?f(I):f;if(R)T(I);else if(L)L(KT({items:I,lookup:M}))},[]),W=YT(X),z=K1.useMemo(()=>({nodeQueue:K,edgeQueue:W}),[]);return F1.jsx(bT.Provider,{value:z,children:Q})}function KS(){let Q=K1.useContext(bT);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var XS=(Q)=>!!Q.panZoom;function OJ(){let Q=JS(),U=C0(),Z=KS(),K=G0(XS),X=K1.useMemo(()=>{let W=(L)=>U.getState().nodeLookup.get(L),z=(L)=>{Z.nodeQueue.push(L)},B=(L)=>{Z.edgeQueue.push(L)},O=(L)=>{let{nodeLookup:M,nodeOrigin:I}=U.getState(),f=HT(L)?L:M.get(L.id),D=f.parentId?HX(f.position,f.measured,f.parentId,M,I):f.position,j={...f,position:D,width:f.measured?.width??f.width,height:f.measured?.height??f.height};return t7(j)},T=(L,M,I={replace:!1})=>{z((f)=>f.map((D)=>{if(D.id===L){let j=typeof M==="function"?M(D):M;return I.replace&&HT(j)?j:{...D,...j}}return D}))},R=(L,M,I={replace:!1})=>{B((f)=>f.map((D)=>{if(D.id===L){let j=typeof M==="function"?M(D):M;return I.replace&&GS(j)?j:{...D,...j}}return D}))};return{getNodes:()=>U.getState().nodes.map((L)=>({...L})),getNode:(L)=>W(L)?.internals.userNode,getInternalNode:W,getEdges:()=>{let{edges:L=[]}=U.getState();return L.map((M)=>({...M}))},getEdge:(L)=>U.getState().edgeLookup.get(L),setNodes:z,setEdges:B,addNodes:(L)=>{let M=Array.isArray(L)?L:[L];Z.nodeQueue.push((I)=>[...I,...M])},addEdges:(L)=>{let M=Array.isArray(L)?L:[L];Z.edgeQueue.push((I)=>[...I,...M])},toObject:()=>{let{nodes:L=[],edges:M=[],transform:I}=U.getState(),[f,D,j]=I;return{nodes:L.map((k)=>({...k})),edges:M.map((k)=>({...k})),viewport:{x:f,y:D,zoom:j}}},deleteElements:async({nodes:L=[],edges:M=[]})=>{let{nodes:I,edges:f,onNodesDelete:D,onEdgesDelete:j,triggerNodeChanges:k,triggerEdgeChanges:h,onDelete:P,onBeforeDelete:C}=U.getState(),{nodes:b,edges:x}=await AM({nodesToRemove:L,edgesToRemove:M,nodes:I,edges:f,onBeforeDelete:C}),u=x.length>0,g=b.length>0;if(u){let i=x.map(XT);j?.(x),h(i)}if(g){let i=b.map(XT);D?.(b),k(i)}if(g||u)P?.({nodes:b,edges:x});return{deletedNodes:b,deletedEdges:x}},getIntersectingNodes:(L,M=!0,I)=>{let f=FX(L),D=f?L:O(L),j=I!==void 0;if(!D)return[];return(I||U.getState().nodes).filter((k)=>{let h=U.getState().nodeLookup.get(k.id);if(h&&!f&&(k.id===L.id||!h.internals.positionAbsolute))return!1;let P=t7(j?k:h),C=LJ(P,D);return M&&C>0||C>=P.width*P.height||C>=D.width*D.height})},isNodeIntersecting:(L,M,I=!0)=>{let D=FX(L)?L:O(L);if(!D)return!1;let j=LJ(D,M);return I&&j>0||j>=M.width*M.height||j>=D.width*D.height},updateNode:T,updateNodeData:(L,M,I={replace:!1})=>{T(L,(f)=>{let D=typeof M==="function"?M(f):M;return I.replace?{...f,data:D}:{...f,data:{...f.data,...D}}},I)},updateEdge:R,updateEdgeData:(L,M,I={replace:!1})=>{R(L,(f)=>{let D=typeof M==="function"?M(f):M;return I.replace?{...f,data:D}:{...f,data:{...f.data,...D}}},I)},getNodesBounds:(L)=>{let{nodeLookup:M,nodeOrigin:I}=U.getState();return UX(L,{nodeLookup:M,nodeOrigin:I})},getHandleConnections:({type:L,id:M,nodeId:I})=>Array.from(U.getState().connectionLookup.get(`${I}-${L}${M?`-${M}`:""}`)?.values()??[]),getNodeConnections:({type:L,handleId:M,nodeId:I})=>Array.from(U.getState().connectionLookup.get(`${I}${L?M?`-${L}-${M}`:`-${L}`:""}`)?.values()??[]),fitView:async(L)=>{let M=U.getState().fitViewResolver??TM();return U.setState({fitViewQueued:!0,fitViewOptions:L,fitViewResolver:M}),Z.nodeQueue.push((I)=>[...I]),M.promise}}},[]);return K1.useMemo(()=>{return{...X,...Q,viewportInitialized:K}},[K])}var WT=(Q)=>Q.selected,HS=typeof window<"u"?window:void 0;function YS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=C0(),{deleteElements:K}=OJ(),X=RJ(Q,{actInsideInputWithModifier:!1}),W=RJ(U,{target:HS});K1.useEffect(()=>{if(X){let{edges:z,nodes:B}=Z.getState();K({nodes:B.filter(WT),edges:z.filter(WT)}),Z.setState({nodesSelectionActive:!1})}},[X]),K1.useEffect(()=>{Z.setState({multiSelectionActive:W})},[W])}function WS(Q){let U=C0();K1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=jq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",x2.error004());U.setState({width:K.width||500,height:K.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let K=new ResizeObserver(()=>Z());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),K&&Q.current)K.unobserve(Q.current)}}},[])}var cq={position:"absolute",width:"100%",height:"100%",top:0,left:0},zS=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function BS({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:X,panOnScrollSpeed:W=0.5,panOnScrollMode:z=B3.Free,zoomOnDoubleClick:B=!0,panOnDrag:O=!0,defaultViewport:T,translateExtent:R,minZoom:L,maxZoom:M,zoomActivationKeyCode:I,preventScrolling:f=!0,children:D,noWheelClassName:j,noPanClassName:k,onViewportChange:h,isControlledViewport:P,paneClickDistance:C,selectionOnDrag:b}){let x=C0(),u=K1.useRef(null),{userSelectionActive:g,lib:i,connectionInProgress:m}=G0(zS,N0),J1=RJ(I),$1=K1.useRef();WS(u);let d=K1.useCallback((y)=>{if(h?.({x:y[0],y:y[1],zoom:y[2]}),!P)x.setState({transform:y})},[h,P]);return K1.useEffect(()=>{if(u.current){$1.current=pM({domNode:u.current,minZoom:L,maxZoom:M,translateExtent:R,viewport:T,onDraggingChange:(r)=>x.setState((n)=>n.paneDragging===r?n:{paneDragging:r}),onPanZoomStart:(r,n)=>{let{onViewportChangeStart:e,onMoveStart:V}=x.getState();V?.(r,n),e?.(n)},onPanZoom:(r,n)=>{let{onViewportChange:e,onMove:V}=x.getState();V?.(r,n),e?.(n)},onPanZoomEnd:(r,n)=>{let{onViewportChangeEnd:e,onMoveEnd:V}=x.getState();V?.(r,n),e?.(n)}});let{x:y,y:E,zoom:v}=$1.current.getViewport();return x.setState({panZoom:$1.current,transform:[y,E,v],domNode:u.current.closest(".react-flow")}),()=>{$1.current?.destroy()}}},[]),K1.useEffect(()=>{$1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:X,panOnScrollSpeed:W,panOnScrollMode:z,zoomOnDoubleClick:B,panOnDrag:O,zoomActivationKeyPressed:J1,preventScrolling:f,noPanClassName:k,userSelectionActive:g,noWheelClassName:j,lib:i,onTransformChange:d,connectionInProgress:m,selectionOnDrag:b,paneClickDistance:C})},[Q,U,Z,K,X,W,z,B,O,J1,f,k,g,j,i,d,m,b,C]),F1.jsx("div",{className:"react-flow__renderer",ref:u,style:cq,children:D})}var AS=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function LS(){let{userSelectionActive:Q,userSelectionRect:U}=G0(AS,N0);if(!(Q&&U))return null;return F1.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:U.width,height:U.height,transform:`translate(${U.x}px, ${U.y}px)`}})}var NX=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},MS=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function TS({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=R8.Full,panOnDrag:K,autoPanOnSelection:X,paneClickDistance:W,selectionOnDrag:z,onSelectionStart:B,onSelectionEnd:O,onPaneClick:T,onPaneContextMenu:R,onPaneScroll:L,onPaneMouseEnter:M,onPaneMouseMove:I,onPaneMouseLeave:f,children:D}){let j=K1.useRef(0),k=C0(),{userSelectionActive:h,elementsSelectable:P,dragging:C,panBy:b,autoPanSpeed:x}=G0(MS,N0),u=P&&(Q||h),g=K1.useRef(null),i=K1.useRef(),m=K1.useRef(new Set),J1=K1.useRef(new Set),$1=K1.useRef(!1),d=K1.useRef(!1),y=K1.useRef({x:0,y:0}),E=K1.useRef(!1),v=(X1)=>{if(d.current||$1.current||k.getState().connection.inProgress){d.current=!1,$1.current=!1;return}T?.(X1),k.getState().resetSelectedElements(),k.setState({nodesSelectionActive:!1})},r=(X1)=>{if(Array.isArray(K)&&K?.includes(2)){X1.preventDefault();return}R?.(X1)},n=L?(X1)=>L(X1):void 0,e=(X1)=>{if(d.current)X1.stopPropagation(),d.current=!1},V=(X1)=>{if(X1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:f1,transform:l1}=k.getState();if(i.current=f1?.getBoundingClientRect(),!i.current)return;let W1=X1.target===g.current;if(!W1&&!!X1.target.closest(".nokey")||!Q||!(z&&W1||U)||X1.button!==0||!X1.isPrimary)return;X1.target?.setPointerCapture?.(X1.pointerId),d.current=!1;let{x:c1,y:E1}=D5(X1.nativeEvent,i.current),j1=n7({x:c1,y:E1},l1);if(k.setState({userSelectionRect:{width:0,height:0,startX:j1.x,startY:j1.y,x:c1,y:E1}}),!W1)X1.stopPropagation(),X1.preventDefault()};function s(X1,f1){let{userSelectionRect:l1}=k.getState();if(!l1)return;let{transform:W1,nodeLookup:S1,edgeLookup:v1,connectionLookup:c1,triggerNodeChanges:E1,triggerEdgeChanges:j1,defaultEdgeOptions:V0}=k.getState(),b1={x:l1.startX,y:l1.startY},{x:Z2,y:_0}=w8(b1,W1),h2={startX:b1.x,startY:b1.y,x:X1<Z2?X1:Z2,y:f1<_0?f1:_0,width:Math.abs(X1-Z2),height:Math.abs(f1-_0)},z2=m.current,I2=J1.current;m.current=new Set(Pq(S1,h2,W1,Z===R8.Partial,!0).map((P2)=>P2.id)),J1.current=new Set;let f2=V0?.selectable??!0;for(let P2 of m.current){let B2=c1.get(P2);if(!B2)continue;for(let{edgeId:A2}of B2.values()){let L2=v1.get(A2);if(L2&&(L2.selectable??f2))J1.current.add(A2)}}if(!YX(z2,m.current)){let P2=_9(S1,m.current,!0);E1(P2)}if(!YX(I2,J1.current)){let P2=_9(v1,J1.current);j1(P2)}k.setState({userSelectionRect:h2,userSelectionActive:!0,nodesSelectionActive:!1})}function U1(){if(!X||!i.current)return;let[X1,f1]=Nq(y.current,i.current,x);b({x:X1,y:f1}).then((l1)=>{if(!d.current||!l1){j.current=requestAnimationFrame(U1);return}let{x:W1,y:S1}=y.current;s(W1,S1),j.current=requestAnimationFrame(U1)})}let Q1=()=>{cancelAnimationFrame(j.current),j.current=0,E.current=!1};K1.useEffect(()=>{return()=>Q1()},[]);let Y1=(X1)=>{let{userSelectionRect:f1,transform:l1,resetSelectedElements:W1}=k.getState();if(!i.current||!f1)return;let{x:S1,y:v1}=D5(X1.nativeEvent,i.current);y.current={x:S1,y:v1};let c1=w8({x:f1.startX,y:f1.startY},l1);if(!d.current){let E1=U?0:W;if(Math.hypot(S1-c1.x,v1-c1.y)<=E1)return;W1(),B?.(X1)}if(d.current=!0,!E.current)U1(),E.current=!0;s(S1,v1)},L1=(X1)=>{if(!u){if(X1.target===g.current&&k.getState().connection.inProgress)$1.current=!0;return}if(X1.button!==0)return;if(X1.target?.releasePointerCapture?.(X1.pointerId),!h&&X1.target===g.current&&k.getState().userSelectionRect)v?.(X1);if(k.setState({userSelectionActive:!1,userSelectionRect:null}),d.current)O?.(X1),k.setState({nodesSelectionActive:m.current.size>0});Q1()},M1=(X1)=>{X1.target?.releasePointerCapture?.(X1.pointerId),Q1()},I1=K===!0||Array.isArray(K)&&K.includes(0);return F1.jsxs("div",{className:y0(["react-flow__pane",{draggable:I1,dragging:C,selection:Q}]),onClick:u?void 0:NX(v,g),onContextMenu:NX(r,g),onWheel:NX(n,g),onPointerEnter:u?void 0:M,onPointerMove:u?Y1:I,onPointerUp:L1,onPointerCancel:u?M1:void 0,onPointerDownCapture:u?V:void 0,onClickCapture:u?e:void 0,onPointerLeave:f,ref:g,style:cq,children:[D,F1.jsx(LS,{})]})}function SX({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:X,unselectNodesAndEdges:W,multiSelectionActive:z,nodeLookup:B,onError:O}=U.getState(),T=B.get(Q);if(!T){O?.("012",x2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!T.selected)X([Q]);else if(Z||T.selected&&z)W({nodes:[T],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function uT({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:X,isSelectable:W,nodeClickDistance:z}){let B=C0(),[O,T]=K1.useState(!1),R=K1.useRef();return K1.useEffect(()=>{if(U)return;return R.current=vM({getStoreItems:()=>B.getState(),onNodeMouseDown:(L)=>{SX({id:L,store:B,nodeRef:Q})},onDragStart:()=>{T(!0)},onDragStop:()=>{T(!1)}}),()=>{R.current?.destroy(),R.current=void 0}},[U,B,Q]),K1.useEffect(()=>{if(U||!Q.current||!R.current)return;R.current.update({noDragClassName:Z,handleSelector:K,domNode:Q.current,isSelectable:W,nodeId:X,nodeClickDistance:z})},[Z,K,U,W,Q,X,z]),O}var RS=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function xT(){let Q=C0();return K1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:X,snapGrid:W,nodesDraggable:z,onError:B,updateNodePositions:O,nodeLookup:T,nodeOrigin:R}=Q.getState(),L=new Map,M=RS(z),I=X?W[0]:5,f=X?W[1]:5,D=Z.direction.x*I*Z.factor,j=Z.direction.y*f*Z.factor;for(let[,k]of T){if(!M(k))continue;let h={x:k.internals.positionAbsolute.x+D,y:k.internals.positionAbsolute.y+j};if(X)h=o7(h,W);let{position:P,positionAbsolute:C}=GX({nodeId:k.id,nextPosition:h,nodeLookup:T,nodeExtent:K,nodeOrigin:R,onError:B});k.position=P,k.internals.positionAbsolute=C,L.set(k.id,k)}O(L)},[])}var jX=K1.createContext(null),OS=jX.Provider;jX.Consumer;var VX=()=>{return K1.useContext(jX)},wS=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),hT=K1.createContext(null);function IS({children:Q}){let U=G0(wS,N0);return F1.jsx(hT.Provider,{value:U,children:Q})}function fS(){let Q=K1.useContext(hT);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var PS={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},NS=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:X,connectionMode:W,connection:z}=K,{fromHandle:B,toHandle:O,isValid:T}=z;if(!B&&!X)return PS;let R=O?.nodeId===Q&&O?.id===U&&O?.type===Z;return{connectingFrom:B?.nodeId===Q&&B?.id===U&&B?.type===Z,connectingTo:R,clickConnecting:X?.nodeId===Q&&X?.id===U&&X?.type===Z,isPossibleEndHandle:W===A6.Strict?B?.type!==Z:Q!==B?.nodeId||U!==B?.id,connectionInProcess:!!B,clickConnectionInProcess:!!X,valid:R&&T}};function CS({type:Q="source",position:U=C1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:X=!0,isConnectableEnd:W=!0,id:z,onConnect:B,children:O,className:T,onMouseDown:R,onTouchStart:L,...M},I){let f=z||null,D=Q==="target",j=C0(),k=VX(),{connectOnClick:h,noPanClassName:P,rfId:C}=fS(),{connectingFrom:b,connectingTo:x,clickConnecting:u,isPossibleEndHandle:g,connectionInProcess:i,clickConnectionInProcess:m,valid:J1}=G0(NS(k,f,Q),N0);if(!k)j.getState().onError?.("010",x2.error010());let $1=(E)=>{let{defaultEdgeOptions:v,onConnect:r,hasDefaultEdges:n}=j.getState(),e={...v,...E};if(n){let{edges:V,setEdges:s,onError:U1}=j.getState();s(US(e,V,{onError:U1}))}r?.(e),B?.(e)},d=(E)=>{if(!k)return;let v=AX(E.nativeEvent);if(X&&(v&&E.button===0||!v)){let r=j.getState();bq.onPointerDown(E.nativeEvent,{handleDomNode:E.currentTarget,autoPanOnConnect:r.autoPanOnConnect,connectionMode:r.connectionMode,connectionRadius:r.connectionRadius,domNode:r.domNode,nodeLookup:r.nodeLookup,lib:r.lib,isTarget:D,handleId:f,nodeId:k,flowId:r.rfId,panBy:r.panBy,cancelConnection:r.cancelConnection,onConnectStart:r.onConnectStart,onConnectEnd:(...n)=>j.getState().onConnectEnd?.(...n),updateConnection:r.updateConnection,onConnect:$1,isValidConnection:Z||((...n)=>j.getState().isValidConnection?.(...n)??!0),getTransform:()=>j.getState().transform,getFromHandle:()=>j.getState().connection.fromHandle,autoPanSpeed:r.autoPanSpeed,dragThreshold:r.connectionDragThreshold})}if(v)R?.(E);else L?.(E)},y=(E)=>{let{onClickConnectStart:v,onClickConnectEnd:r,connectionClickStartHandle:n,connectionMode:e,isValidConnection:V,lib:s,rfId:U1,nodeLookup:Q1,connection:Y1}=j.getState();if(!k||!n&&!X)return;if(!n){v?.(E.nativeEvent,{nodeId:k,handleId:f,handleType:Q}),j.setState({connectionClickStartHandle:{nodeId:k,type:Q,id:f}});return}let L1=zX(E.target),M1=Z||V,{connection:I1,isValid:X1}=bq.isValid(E.nativeEvent,{handle:{nodeId:k,id:f,type:Q},connectionMode:e,fromNodeId:n.nodeId,fromHandleId:n.id||null,fromType:n.type,isValidConnection:M1,flowId:U1,doc:L1,lib:s,nodeLookup:Q1});if(X1&&I1)$1(I1);let f1=structuredClone(Y1);delete f1.inProgress,f1.toPosition=f1.toHandle?f1.toHandle.position:null,r?.(E,f1),j.setState({connectionClickStartHandle:null})};return F1.jsx("div",{"data-handleid":f,"data-nodeid":k,"data-handlepos":U,"data-id":`${C}-${k}-${f}-${Q}`,className:y0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",P,T,{source:!D,target:D,connectable:K,connectablestart:X,connectableend:W,clickconnecting:u,connectingfrom:b,connectingto:x,valid:J1,connectionindicator:K&&(!i||g)&&(i||m?W:X)}]),onMouseDown:d,onTouchStart:d,onClick:h?y:void 0,ref:I,...M,children:O})}var mq=K1.memo(vT(CS));function SS({data:Q,isConnectable:U,sourcePosition:Z=C1.Bottom}){return F1.jsxs(F1.Fragment,{children:[Q?.label,F1.jsx(mq,{type:"source",position:Z,isConnectable:U})]})}function jS({data:Q,isConnectable:U,targetPosition:Z=C1.Top,sourcePosition:K=C1.Bottom}){return F1.jsxs(F1.Fragment,{children:[F1.jsx(mq,{type:"target",position:Z,isConnectable:U}),Q?.label,F1.jsx(mq,{type:"source",position:K,isConnectable:U})]})}function VS(){return null}function kS({data:Q,isConnectable:U,targetPosition:Z=C1.Top}){return F1.jsxs(F1.Fragment,{children:[F1.jsx(mq,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var gq={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},zT={input:SS,default:jS,output:kS,group:VS};function DS(Q){if(Q.internals.handleBounds===void 0)return{width:Q.width??Q.initialWidth??Q.style?.width,height:Q.height??Q.initialHeight??Q.style?.height};return{width:Q.width??Q.style?.width,height:Q.height??Q.style?.height}}var yS=(Q)=>{let{width:U,height:Z,x:K,y:X}=f8(Q.nodeLookup,{filter:(W)=>!!W.selected});return{width:k5(U)?U:null,height:k5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${X}px)`}};function vS({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=C0(),{width:X,height:W,transformString:z,userSelectionActive:B}=G0(yS,N0),O=xT(),T=K1.useRef(null);K1.useEffect(()=>{if(!Z)T.current?.focus({preventScroll:!0})},[Z]);let R=!B&&X!==null&&W!==null;if(uT({nodeRef:T,disabled:!R}),!R)return null;let L=Q?(I)=>{let f=K.getState().nodes.filter((D)=>D.selected);Q(I,f)}:void 0,M=(I)=>{if(Object.prototype.hasOwnProperty.call(gq,I.key))I.preventDefault(),O({direction:gq[I.key],factor:I.shiftKey?4:1})};return F1.jsx("div",{className:y0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:z},children:F1.jsx("div",{ref:T,className:"react-flow__nodesselection-rect",onContextMenu:L,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:M,style:{width:X,height:W}})})}var BT=typeof window<"u"?window:void 0,ES=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function mT({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:X,onPaneContextMenu:W,onPaneScroll:z,paneClickDistance:B,deleteKeyCode:O,selectionKeyCode:T,selectionOnDrag:R,selectionMode:L,onSelectionStart:M,onSelectionEnd:I,multiSelectionKeyCode:f,panActivationKeyCode:D,zoomActivationKeyCode:j,elementsSelectable:k,zoomOnScroll:h,zoomOnPinch:P,panOnScroll:C,panOnScrollSpeed:b,panOnScrollMode:x,zoomOnDoubleClick:u,panOnDrag:g,autoPanOnSelection:i,defaultViewport:m,translateExtent:J1,minZoom:$1,maxZoom:d,preventScrolling:y,onSelectionContextMenu:E,noWheelClassName:v,noPanClassName:r,disableKeyboardA11y:n,onViewportChange:e,isControlledViewport:V}){let{nodesSelectionActive:s,userSelectionActive:U1}=G0(ES,N0),Q1=RJ(T,{target:BT}),Y1=RJ(D,{target:BT}),L1=Y1||g,M1=Y1||C,I1=R&&L1!==!0,X1=Q1||U1||I1;return YS({deleteKeyCode:O,multiSelectionKeyCode:f}),F1.jsx(BS,{onPaneContextMenu:W,elementsSelectable:k,zoomOnScroll:h,zoomOnPinch:P,panOnScroll:M1,panActivationKeyPressed:Y1,panOnScrollSpeed:b,panOnScrollMode:x,zoomOnDoubleClick:u,panOnDrag:!Q1&&L1,defaultViewport:m,translateExtent:J1,minZoom:$1,maxZoom:d,zoomActivationKeyCode:j,preventScrolling:y,noWheelClassName:v,noPanClassName:r,onViewportChange:e,isControlledViewport:V,paneClickDistance:B,selectionOnDrag:I1,children:F1.jsxs(TS,{onSelectionStart:M,onSelectionEnd:I,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:X,onPaneContextMenu:W,onPaneScroll:z,panOnDrag:L1,autoPanOnSelection:i,isSelecting:!!X1,selectionMode:L,selectionKeyPressed:Q1,paneClickDistance:B,selectionOnDrag:I1,children:[Q,s&&F1.jsx(vS,{onSelectionContextMenu:E,noPanClassName:r,disableKeyboardA11y:n})]})})}mT.displayName="FlowRenderer";var bS=K1.memo(mT),uS=(Q)=>(U)=>{return Q?Pq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function xS(Q){return G0(K1.useCallback(uS(Q),[Q]),N0)}var hS=(Q)=>Q.updateNodeInternals;function mS(){let Q=G0(hS),[U]=K1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let K=new Map;Z.forEach((X)=>{let W=X.target.getAttribute("data-id");K.set(W,{id:W,nodeElement:X.target,force:!0})}),Q(K)})});return K1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function gS({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let X=C0(),W=K1.useRef(null),z=K1.useRef(null),B=K1.useRef(Q.sourcePosition),O=K1.useRef(Q.targetPosition),T=K1.useRef(U),R=Z&&!!Q.internals.handleBounds;return K1.useEffect(()=>{if(W.current&&!Q.hidden&&(!R||z.current!==W.current)){if(z.current)K?.unobserve(z.current);K?.observe(W.current),z.current=W.current}},[R,Q.hidden]),K1.useEffect(()=>{return()=>{if(z.current)K?.unobserve(z.current),z.current=null}},[]),K1.useEffect(()=>{if(W.current){let L=T.current!==U,M=B.current!==Q.sourcePosition,I=O.current!==Q.targetPosition;if(L||M||I)T.current=U,B.current=Q.sourcePosition,O.current=Q.targetPosition,X.getState().updateNodeInternals(new Map([[Q.id,{id:Q.id,nodeElement:W.current,force:!0}]]))}},[Q.id,U,Q.sourcePosition,Q.targetPosition]),W}function pS({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:X,onContextMenu:W,onDoubleClick:z,nodesDraggable:B,elementsSelectable:O,nodesConnectable:T,nodesFocusable:R,resizeObserver:L,noDragClassName:M,noPanClassName:I,disableKeyboardA11y:f,rfId:D,nodeTypes:j,nodeClickDistance:k,onError:h}){let{node:P,internals:C,isParent:b}=G0((X1)=>{let f1=X1.nodeLookup.get(Q),l1=X1.parentLookup.has(Q);return{node:f1,internals:f1.internals,isParent:l1}},N0),x=P.type||"default",u=j?.[x]||zT[x];if(u===void 0)h?.("003",x2.error003(x)),x="default",u=j?.default||zT.default;let g=!!(P.draggable||B&&typeof P.draggable>"u"),i=!!(P.selectable||O&&typeof P.selectable>"u"),m=!!(P.connectable||T&&typeof P.connectable>"u"),J1=!!(P.focusable||R&&typeof P.focusable>"u"),$1=C0(),d=XX(P),y=gS({node:P,nodeType:x,hasDimensions:d,resizeObserver:L}),E=uT({nodeRef:y,disabled:P.hidden||!g,noDragClassName:M,handleSelector:P.dragHandle,nodeId:Q,isSelectable:i,nodeClickDistance:k}),v=xT();if(P.hidden)return null;let r=y5(P),n=DS(P),e=i||g||U||Z||K||X,V=Z?(X1)=>Z(X1,{...C.userNode}):void 0,s=K?(X1)=>K(X1,{...C.userNode}):void 0,U1=X?(X1)=>X(X1,{...C.userNode}):void 0,Q1=W?(X1)=>W(X1,{...C.userNode}):void 0,Y1=z?(X1)=>z(X1,{...C.userNode}):void 0,L1=(X1)=>{let{selectNodesOnDrag:f1,nodeDragThreshold:l1}=$1.getState();if(i&&(!f1||!g||l1>0))SX({id:Q,store:$1,nodeRef:y});if(U)U(X1,{...C.userNode})},M1=(X1)=>{if(BX(X1.nativeEvent)||f)return;if(_X.includes(X1.key)&&i){let f1=X1.key==="Escape";SX({id:Q,store:$1,unselect:f1,nodeRef:y})}else if(g&&P.selected&&Object.prototype.hasOwnProperty.call(gq,X1.key)){X1.preventDefault();let{ariaLabelConfig:f1}=$1.getState();$1.setState({ariaLiveMessage:f1["node.a11yDescription.ariaLiveMessage"]({direction:X1.key.replace("Arrow","").toLowerCase(),x:~~C.positionAbsolute.x,y:~~C.positionAbsolute.y})}),v({direction:gq[X1.key],factor:X1.shiftKey?4:1})}},I1=()=>{if(f||!y.current?.matches(":focus-visible"))return;let{transform:X1,width:f1,height:l1,autoPanOnNodeFocus:W1,setCenter:S1}=$1.getState();if(!W1)return;if(!(Pq(new Map([[Q,P]]),{x:0,y:0,width:f1,height:l1},X1,!0).length>0))S1(P.position.x+r.width/2,P.position.y+r.height/2,{zoom:X1[2]})};return F1.jsx("div",{className:y0(["react-flow__node",`react-flow__node-${x}`,{[I]:g},P.className,{selected:P.selected,selectable:i,parent:b,draggable:g,dragging:E}]),ref:y,style:{zIndex:C.z,transform:`translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,pointerEvents:e?"all":"none",visibility:d?"visible":"hidden",...P.style,...n},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:V,onMouseMove:s,onMouseLeave:U1,onContextMenu:Q1,onClick:L1,onDoubleClick:Y1,onKeyDown:J1?M1:void 0,tabIndex:J1?0:void 0,onFocus:J1?I1:void 0,role:P.ariaRole??(J1?"group":void 0),"aria-roledescription":"node","aria-describedby":f?void 0:`${jT}-${D}`,"aria-label":P.ariaLabel,...P.domAttributes,children:F1.jsx(OS,{value:Q,children:F1.jsx(u,{id:Q,data:P.data,type:x,positionAbsoluteX:C.positionAbsolute.x,positionAbsoluteY:C.positionAbsolute.y,selected:P.selected??!1,selectable:i,draggable:g,deletable:P.deletable??!0,isConnectable:m,sourcePosition:P.sourcePosition,targetPosition:P.targetPosition,dragging:E,dragHandle:P.dragHandle,zIndex:C.z,parentId:P.parentId,...r})})})}var cS=K1.memo(pS),lS=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function gT(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:X}=G0(lS,N0),W=xS(Q.onlyRenderVisibleElements),z=mS();return F1.jsx("div",{className:"react-flow__nodes",style:cq,children:W.map((B)=>{return F1.jsx(cS,{id:B,nodeTypes:Q.nodeTypes,nodeExtent:Q.nodeExtent,onClick:Q.onNodeClick,onMouseEnter:Q.onNodeMouseEnter,onMouseMove:Q.onNodeMouseMove,onMouseLeave:Q.onNodeMouseLeave,onContextMenu:Q.onNodeContextMenu,onDoubleClick:Q.onNodeDoubleClick,noDragClassName:Q.noDragClassName,noPanClassName:Q.noPanClassName,rfId:Q.rfId,disableKeyboardA11y:Q.disableKeyboardA11y,resizeObserver:z,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:X},B)})})}gT.displayName="NodeRenderer";var rS=K1.memo(gT);function dS(Q){return G0(K1.useCallback((Z)=>{if(!Q)return Z.edges.map((X)=>X.id);let K=[];if(Z.width&&Z.height)for(let X of Z.edges){let W=Z.nodeLookup.get(X.source),z=Z.nodeLookup.get(X.target);if(W&&z&&IM({sourceNode:W,targetNode:z,width:Z.width,height:Z.height,transform:Z.transform}))K.push(X.id)}return K},[Q]),N0)}var iS=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return F1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},aS=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return F1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},AT={[i7.Arrow]:iS,[i7.ArrowClosed]:aS};function sS(Q){let U=C0();return K1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(AT,Q))return U.getState().onError?.("009",x2.error009(Q)),null;return AT[Q]},[Q])}var tS=({id:Q,type:U,color:Z,width:K=12.5,height:X=12.5,markerUnits:W="strokeWidth",strokeWidth:z,orient:B="auto-start-reverse"})=>{let O=sS(U);if(!O)return null;return F1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${X}`,viewBox:"-10 -10 20 20",markerUnits:W,orient:B,refX:"0",refY:"0",children:F1.jsx(O,{color:Z,strokeWidth:z})})},pT=({defaultColor:Q,rfId:U})=>{let Z=G0((W)=>W.edges),K=G0((W)=>W.defaultEdgeOptions),X=K1.useMemo(()=>{return NM(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!X.length)return null;return F1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:F1.jsx("defs",{children:X.map((W)=>F1.jsx(tS,{id:W.id,type:W.type,color:W.color,width:W.width,height:W.height,markerUnits:W.markerUnits,strokeWidth:W.strokeWidth,orient:W.orient},W.id))})})};pT.displayName="MarkerDefinitions";var oS=K1.memo(pT);function cT({x:Q,y:U,label:Z,labelStyle:K,labelShowBg:X=!0,labelBgStyle:W,labelBgPadding:z=[2,4],labelBgBorderRadius:B=2,children:O,className:T,...R}){let[L,M]=K1.useState({x:1,y:0,width:0,height:0}),I=y0(["react-flow__edge-textwrapper",T]),f=K1.useRef(null);if(K1.useEffect(()=>{if(f.current){let D=f.current.getBBox();M({x:D.x,y:D.y,width:D.width,height:D.height})}},[Z]),!Z)return null;return F1.jsxs("g",{transform:`translate(${Q-L.width/2} ${U-L.height/2})`,className:I,visibility:L.width?"visible":"hidden",...R,children:[X&&F1.jsx("rect",{width:L.width+2*z[0],x:-z[0],y:-z[1],height:L.height+2*z[1],className:"react-flow__edge-textbg",style:W,rx:B,ry:B}),F1.jsx("text",{className:"react-flow__edge-text",y:L.height/2,dy:"0.3em",ref:f,style:K,children:Z}),O]})}cT.displayName="EdgeText";var nS=K1.memo(cT);function lq({path:Q,labelX:U,labelY:Z,label:K,labelStyle:X,labelShowBg:W,labelBgStyle:z,labelBgPadding:B,labelBgBorderRadius:O,interactionWidth:T=20,...R}){return F1.jsxs(F1.Fragment,{children:[F1.jsx("path",{...R,d:Q,fill:"none",className:y0(["react-flow__edge-path",R.className])}),T?F1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:T,className:"react-flow__edge-interaction"}):null,K&&k5(U)&&k5(Z)?F1.jsx(nS,{x:U,y:Z,label:K,labelStyle:X,labelShowBg:W,labelBgStyle:z,labelBgPadding:B,labelBgBorderRadius:O}):null]})}function LT({pos:Q,x1:U,y1:Z,x2:K,y2:X}){if(Q===C1.Left||Q===C1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+X)]}function lT({sourceX:Q,sourceY:U,sourcePosition:Z=C1.Bottom,targetX:K,targetY:X,targetPosition:W=C1.Top}){let[z,B]=LT({pos:Z,x1:Q,y1:U,x2:K,y2:X}),[O,T]=LT({pos:W,x1:K,y1:X,x2:Q,y2:U}),[R,L,M,I]=Vq({sourceX:Q,sourceY:U,targetX:K,targetY:X,sourceControlX:z,sourceControlY:B,targetControlX:O,targetControlY:T});return[`M${Q},${U} C${z},${B} ${O},${T} ${K},${X}`,R,L,M,I]}function rT(Q){return K1.memo(({id:U,sourceX:Z,sourceY:K,targetX:X,targetY:W,sourcePosition:z,targetPosition:B,label:O,labelStyle:T,labelShowBg:R,labelBgStyle:L,labelBgPadding:M,labelBgBorderRadius:I,style:f,markerEnd:D,markerStart:j,interactionWidth:k})=>{let[h,P,C]=lT({sourceX:Z,sourceY:K,sourcePosition:z,targetX:X,targetY:W,targetPosition:B}),b=Q.isInternal?void 0:U;return F1.jsx(lq,{id:b,path:h,labelX:P,labelY:C,label:O,labelStyle:T,labelShowBg:R,labelBgStyle:L,labelBgPadding:M,labelBgBorderRadius:I,style:f,markerEnd:D,markerStart:j,interactionWidth:k})})}var eS=rT({isInternal:!1}),dT=rT({isInternal:!0});eS.displayName="SimpleBezierEdge";dT.displayName="SimpleBezierEdgeInternal";function iT(Q){return K1.memo(({id:U,sourceX:Z,sourceY:K,targetX:X,targetY:W,label:z,labelStyle:B,labelShowBg:O,labelBgStyle:T,labelBgPadding:R,labelBgBorderRadius:L,style:M,sourcePosition:I=C1.Bottom,targetPosition:f=C1.Top,markerEnd:D,markerStart:j,pathOptions:k,interactionWidth:h})=>{let[P,C,b]=TJ({sourceX:Z,sourceY:K,sourcePosition:I,targetX:X,targetY:W,targetPosition:f,borderRadius:k?.borderRadius,offset:k?.offset,stepPosition:k?.stepPosition}),x=Q.isInternal?void 0:U;return F1.jsx(lq,{id:x,path:P,labelX:C,labelY:b,label:z,labelStyle:B,labelShowBg:O,labelBgStyle:T,labelBgPadding:R,labelBgBorderRadius:L,style:M,markerEnd:D,markerStart:j,interactionWidth:h})})}var aT=iT({isInternal:!1}),sT=iT({isInternal:!0});aT.displayName="SmoothStepEdge";sT.displayName="SmoothStepEdgeInternal";function tT(Q){return K1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return F1.jsx(aT,{...Z,id:K,pathOptions:K1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var _j=tT({isInternal:!1}),oT=tT({isInternal:!0});_j.displayName="StepEdge";oT.displayName="StepEdgeInternal";function nT(Q){return K1.memo(({id:U,sourceX:Z,sourceY:K,targetX:X,targetY:W,label:z,labelStyle:B,labelShowBg:O,labelBgStyle:T,labelBgPadding:R,labelBgBorderRadius:L,style:M,markerEnd:I,markerStart:f,interactionWidth:D})=>{let[j,k,h]=Dq({sourceX:Z,sourceY:K,targetX:X,targetY:W}),P=Q.isInternal?void 0:U;return F1.jsx(lq,{id:P,path:j,labelX:k,labelY:h,label:z,labelStyle:B,labelShowBg:O,labelBgStyle:T,labelBgPadding:R,labelBgBorderRadius:L,style:M,markerEnd:I,markerStart:f,interactionWidth:D})})}var Jj=nT({isInternal:!1}),eT=nT({isInternal:!0});Jj.displayName="StraightEdge";eT.displayName="StraightEdgeInternal";function _R(Q){return K1.memo(({id:U,sourceX:Z,sourceY:K,targetX:X,targetY:W,sourcePosition:z=C1.Bottom,targetPosition:B=C1.Top,label:O,labelStyle:T,labelShowBg:R,labelBgStyle:L,labelBgPadding:M,labelBgBorderRadius:I,style:f,markerEnd:D,markerStart:j,pathOptions:k,interactionWidth:h})=>{let[P,C,b]=kq({sourceX:Z,sourceY:K,sourcePosition:z,targetX:X,targetY:W,targetPosition:B,curvature:k?.curvature}),x=Q.isInternal?void 0:U;return F1.jsx(lq,{id:x,path:P,labelX:C,labelY:b,label:O,labelStyle:T,labelShowBg:R,labelBgStyle:L,labelBgPadding:M,labelBgBorderRadius:I,style:f,markerEnd:D,markerStart:j,interactionWidth:h})})}var $j=_R({isInternal:!1}),JR=_R({isInternal:!0});$j.displayName="BezierEdge";JR.displayName="BezierEdgeInternal";var MT={default:JR,straight:eT,step:oT,smoothstep:sT,simplebezier:dT},TT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},Qj=(Q,U,Z)=>{if(Z===C1.Left)return Q-U;if(Z===C1.Right)return Q+U;return Q},qj=(Q,U,Z)=>{if(Z===C1.Top)return Q-U;if(Z===C1.Bottom)return Q+U;return Q},RT="react-flow__edgeupdater";function OT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:X,onMouseEnter:W,onMouseOut:z,type:B}){return F1.jsx("circle",{onMouseDown:X,onMouseEnter:W,onMouseOut:z,className:y0([RT,`${RT}-${B}`]),cx:Qj(U,K,Q),cy:qj(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function Uj({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:X,targetX:W,targetY:z,sourcePosition:B,targetPosition:O,onReconnect:T,onReconnectStart:R,onReconnectEnd:L,setReconnecting:M,setUpdateHover:I}){let f=C0(),D=(C,b)=>{if(C.button!==0)return;let{autoPanOnConnect:x,domNode:u,connectionMode:g,connectionRadius:i,lib:m,onConnectStart:J1,cancelConnection:$1,nodeLookup:d,rfId:y,panBy:E,updateConnection:v}=f.getState(),r=b.type==="target",n=(s,U1)=>{M(!1),L?.(s,Z,b.type,U1)},e=(s)=>T?.(Z,s),V=(s,U1)=>{M(!0),R?.(C,Z,b.type),J1?.(s,U1)};bq.onPointerDown(C.nativeEvent,{autoPanOnConnect:x,connectionMode:g,connectionRadius:i,domNode:u,handleId:b.id,nodeId:b.nodeId,nodeLookup:d,isTarget:r,edgeUpdaterType:b.type,lib:m,flowId:y,cancelConnection:$1,panBy:E,isValidConnection:(...s)=>f.getState().isValidConnection?.(...s)??!0,onConnect:e,onConnectStart:V,onConnectEnd:(...s)=>f.getState().onConnectEnd?.(...s),onReconnectEnd:n,updateConnection:v,getTransform:()=>f.getState().transform,getFromHandle:()=>f.getState().connection.fromHandle,dragThreshold:f.getState().connectionDragThreshold,handleDomNode:C.currentTarget})},j=(C)=>D(C,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),k=(C)=>D(C,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),h=()=>I(!0),P=()=>I(!1);return F1.jsxs(F1.Fragment,{children:[(Q===!0||Q==="source")&&F1.jsx(OT,{position:B,centerX:K,centerY:X,radius:U,onMouseDown:j,onMouseEnter:h,onMouseOut:P,type:"source"}),(Q===!0||Q==="target")&&F1.jsx(OT,{position:O,centerX:W,centerY:z,radius:U,onMouseDown:k,onMouseEnter:h,onMouseOut:P,type:"target"})]})}function Gj({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:X,onDoubleClick:W,onContextMenu:z,onMouseEnter:B,onMouseMove:O,onMouseLeave:T,reconnectRadius:R,onReconnect:L,onReconnectStart:M,onReconnectEnd:I,rfId:f,edgeTypes:D,noPanClassName:j,onError:k,disableKeyboardA11y:h}){let P=G0((S1)=>S1.edgeLookup.get(Q)),C=G0((S1)=>S1.defaultEdgeOptions);P=C?{...C,...P}:P;let b=P.type||"default",x=D?.[b]||MT[b];if(x===void 0)k?.("011",x2.error011(b)),b="default",x=D?.default||MT.default;let u=!!(P.focusable||U&&typeof P.focusable>"u"),g=typeof L<"u"&&(P.reconnectable||Z&&typeof P.reconnectable>"u"),i=!!(P.selectable||K&&typeof P.selectable>"u"),m=K1.useRef(null),[J1,$1]=K1.useState(!1),[d,y]=K1.useState(!1),E=C0(),{zIndex:v=P.zIndex,sourceX:r,sourceY:n,targetX:e,targetY:V,sourcePosition:s,targetPosition:U1}=G0(K1.useCallback((S1)=>{let v1=S1.nodeLookup.get(P.source),c1=S1.nodeLookup.get(P.target);if(!v1||!c1)return TT;let E1=PM({id:Q,sourceNode:v1,targetNode:c1,sourceHandle:P.sourceHandle||null,targetHandle:P.targetHandle||null,connectionMode:S1.connectionMode,onError:k}),j1=wM({selected:P.selected,zIndex:P.zIndex,sourceNode:v1,targetNode:c1,elevateOnSelect:S1.elevateEdgesOnSelect,zIndexMode:S1.zIndexMode});return{...E1||TT,zIndex:j1}},[P.source,P.target,P.sourceHandle,P.targetHandle,P.selected,P.zIndex,k]),N0),Q1=K1.useMemo(()=>P.markerStart?`url('#${yq(P.markerStart,f)}')`:void 0,[P.markerStart,f]),Y1=K1.useMemo(()=>P.markerEnd?`url('#${yq(P.markerEnd,f)}')`:void 0,[P.markerEnd,f]);if(P.hidden||r===null||n===null||e===null||V===null)return null;let L1=(S1)=>{let{addSelectedEdges:v1,unselectNodesAndEdges:c1,multiSelectionActive:E1}=E.getState();if(i)if(E.setState({nodesSelectionActive:!1}),P.selected&&E1)c1({nodes:[],edges:[P]}),m.current?.blur();else v1([Q]);if(X)X(S1,P)},M1=W?(S1)=>{W(S1,{...P})}:void 0,I1=z?(S1)=>{z(S1,{...P})}:void 0,X1=B?(S1)=>{B(S1,{...P})}:void 0,f1=O?(S1)=>{O(S1,{...P})}:void 0,l1=T?(S1)=>{T(S1,{...P})}:void 0,W1=(S1)=>{if(!h&&_X.includes(S1.key)&&i){let{unselectNodesAndEdges:v1,addSelectedEdges:c1}=E.getState();if(S1.key==="Escape")m.current?.blur(),v1({edges:[P]});else c1([Q])}};return F1.jsx("svg",{style:{zIndex:v},children:F1.jsxs("g",{className:y0(["react-flow__edge",`react-flow__edge-${b}`,P.className,j,{selected:P.selected,animated:P.animated,inactive:!i&&!X,updating:J1,selectable:i}]),onClick:L1,onDoubleClick:M1,onContextMenu:I1,onMouseEnter:X1,onMouseMove:f1,onMouseLeave:l1,onKeyDown:u?W1:void 0,tabIndex:u?0:void 0,role:P.ariaRole??(u?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":P.ariaLabel===null?void 0:P.ariaLabel||`Edge from ${P.source} to ${P.target}`,"aria-describedby":u?`${VT}-${f}`:void 0,ref:m,...P.domAttributes,children:[!d&&F1.jsx(x,{id:Q,source:P.source,target:P.target,type:P.type,selected:P.selected,animated:P.animated,selectable:i,deletable:P.deletable??!0,label:P.label,labelStyle:P.labelStyle,labelShowBg:P.labelShowBg,labelBgStyle:P.labelBgStyle,labelBgPadding:P.labelBgPadding,labelBgBorderRadius:P.labelBgBorderRadius,sourceX:r,sourceY:n,targetX:e,targetY:V,sourcePosition:s,targetPosition:U1,data:P.data,style:P.style,sourceHandleId:P.sourceHandle,targetHandleId:P.targetHandle,markerStart:Q1,markerEnd:Y1,pathOptions:"pathOptions"in P?P.pathOptions:void 0,interactionWidth:P.interactionWidth}),g&&F1.jsx(Uj,{edge:P,isReconnectable:g,reconnectRadius:R,onReconnect:L,onReconnectStart:M,onReconnectEnd:I,sourceX:r,sourceY:n,targetX:e,targetY:V,sourcePosition:s,targetPosition:U1,setUpdateHover:$1,setReconnecting:y})]})})}var Zj=K1.memo(Gj),Fj=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function $R({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:X,onReconnect:W,onEdgeContextMenu:z,onEdgeMouseEnter:B,onEdgeMouseMove:O,onEdgeMouseLeave:T,onEdgeClick:R,reconnectRadius:L,onEdgeDoubleClick:M,onReconnectStart:I,onReconnectEnd:f,disableKeyboardA11y:D}){let{edgesFocusable:j,edgesReconnectable:k,elementsSelectable:h,onError:P}=G0(Fj,N0),C=dS(U);return F1.jsxs("div",{className:"react-flow__edges",children:[F1.jsx(oS,{defaultColor:Q,rfId:Z}),C.map((b)=>{return F1.jsx(Zj,{id:b,edgesFocusable:j,edgesReconnectable:k,elementsSelectable:h,noPanClassName:X,onReconnect:W,onContextMenu:z,onMouseEnter:B,onMouseMove:O,onMouseLeave:T,onClick:R,reconnectRadius:L,onDoubleClick:M,onReconnectStart:I,onReconnectEnd:f,rfId:Z,onError:P,edgeTypes:K,disableKeyboardA11y:D},b)})]})}$R.displayName="EdgeRenderer";var Kj=K1.memo($R),wT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function Xj({children:Q}){let U=C0(),Z=K1.useRef(null),[K]=K1.useState(()=>U.getState().transform);return ET(()=>{let X=null,W=()=>{let z=U.getState().transform;if(X&&z[0]===X[0]&&z[1]===X[1]&&z[2]===X[2])return;if(X=z,Z.current)Z.current.style.transform=wT(z)};return W(),U.subscribe(W)},[U]),F1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:wT(K)},children:Q})}function Hj(Q){let U=OJ(),Z=K1.useRef(!1);K1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var Yj=(Q)=>Q.panZoom?.syncViewport;function Wj(Q){let U=G0(Yj),Z=C0();return K1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function IT(Q){return Q.connection.inProgress?{...Q.connection,to:n7(Q.connection.to,Q.transform)}:{...Q.connection}}function zj(Q){if(Q)return(Z)=>{let K=IT(Z);return Q(K)};return IT}function Bj(Q){let U=zj(Q);return G0(U,N0)}var Aj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function Lj({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:X,width:W,height:z,isValid:B,inProgress:O}=G0(Aj,N0);if(!(W&&X&&O))return null;return F1.jsx("svg",{style:Q,width:W,height:z,className:"react-flow__connectionline react-flow__container",children:F1.jsx("g",{className:y0(["react-flow__connection",WX(B)]),children:F1.jsx(QR,{style:U,type:Z,CustomComponent:K,isValid:B})})})}var QR=({style:Q,type:U=y4.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:X,from:W,fromNode:z,fromHandle:B,fromPosition:O,to:T,toNode:R,toHandle:L,toPosition:M,pointer:I}=Bj();if(!X)return;if(Z)return F1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:z,fromHandle:B,fromX:W.x,fromY:W.y,toX:T.x,toY:T.y,fromPosition:O,toPosition:M,connectionStatus:WX(K),toNode:R,toHandle:L,pointer:I});let f="",D={sourceX:W.x,sourceY:W.y,sourcePosition:O,targetX:T.x,targetY:T.y,targetPosition:M};switch(U){case y4.Bezier:[f]=kq(D);break;case y4.SimpleBezier:[f]=lT(D);break;case y4.Step:[f]=TJ({...D,borderRadius:0});break;case y4.SmoothStep:[f]=TJ(D);break;default:[f]=Dq(D)}return F1.jsx("path",{d:f,fill:"none",className:"react-flow__connection-path",style:Q})};QR.displayName="ConnectionLine";var Mj={};function fT(Q=Mj){let U=K1.useRef(Q),Z=C0();K1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let X of K)if(U.current[X]!==Q[X]){Z.getState().onError?.("002",x2.error002());break}U.current=Q}},[Q])}function Tj(){let Q=C0(),U=K1.useRef(!1);K1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",x2.error013("react"));U.current=!0}},[])}function qR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:X,onNodeDoubleClick:W,onEdgeDoubleClick:z,onNodeMouseEnter:B,onNodeMouseMove:O,onNodeMouseLeave:T,onNodeContextMenu:R,onSelectionContextMenu:L,onSelectionStart:M,onSelectionEnd:I,connectionLineType:f,connectionLineStyle:D,connectionLineComponent:j,connectionLineContainerStyle:k,selectionKeyCode:h,selectionOnDrag:P,selectionMode:C,multiSelectionKeyCode:b,panActivationKeyCode:x,zoomActivationKeyCode:u,deleteKeyCode:g,onlyRenderVisibleElements:i,elementsSelectable:m,defaultViewport:J1,translateExtent:$1,minZoom:d,maxZoom:y,preventScrolling:E,defaultMarkerColor:v,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:e,panOnScrollSpeed:V,panOnScrollMode:s,zoomOnDoubleClick:U1,panOnDrag:Q1,autoPanOnSelection:Y1,onPaneClick:L1,onPaneMouseEnter:M1,onPaneMouseMove:I1,onPaneMouseLeave:X1,onPaneScroll:f1,onPaneContextMenu:l1,paneClickDistance:W1,nodeClickDistance:S1,onEdgeContextMenu:v1,onEdgeMouseEnter:c1,onEdgeMouseMove:E1,onEdgeMouseLeave:j1,reconnectRadius:V0,onReconnect:b1,onReconnectStart:Z2,onReconnectEnd:_0,noDragClassName:h2,noWheelClassName:z2,noPanClassName:I2,disableKeyboardA11y:f2,nodeExtent:P2,rfId:B2,viewport:A2,onViewportChange:L2,nodesDraggable:M3}){return fT(Q),fT(U),Tj(),Hj(Z),Wj(A2),F1.jsx(bS,{onPaneClick:L1,onPaneMouseEnter:M1,onPaneMouseMove:I1,onPaneMouseLeave:X1,onPaneContextMenu:l1,onPaneScroll:f1,paneClickDistance:W1,deleteKeyCode:g,selectionKeyCode:h,selectionOnDrag:P,selectionMode:C,onSelectionStart:M,onSelectionEnd:I,multiSelectionKeyCode:b,panActivationKeyCode:x,zoomActivationKeyCode:u,elementsSelectable:m,zoomOnScroll:r,zoomOnPinch:n,zoomOnDoubleClick:U1,panOnScroll:e,panOnScrollSpeed:V,panOnScrollMode:s,panOnDrag:Q1,autoPanOnSelection:Y1,defaultViewport:J1,translateExtent:$1,minZoom:d,maxZoom:y,onSelectionContextMenu:L,preventScrolling:E,noDragClassName:h2,noWheelClassName:z2,noPanClassName:I2,disableKeyboardA11y:f2,onViewportChange:L2,isControlledViewport:!!A2,children:F1.jsxs(Xj,{children:[F1.jsx(Kj,{edgeTypes:U,onEdgeClick:X,onEdgeDoubleClick:z,onReconnect:b1,onReconnectStart:Z2,onReconnectEnd:_0,onlyRenderVisibleElements:i,onEdgeContextMenu:v1,onEdgeMouseEnter:c1,onEdgeMouseMove:E1,onEdgeMouseLeave:j1,reconnectRadius:V0,defaultMarkerColor:v,noPanClassName:I2,disableKeyboardA11y:f2,rfId:B2}),F1.jsx(Lj,{style:D,type:f,component:j,containerStyle:k}),F1.jsx("div",{className:"react-flow__edgelabel-renderer"}),F1.jsx(rS,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:W,onNodeMouseEnter:B,onNodeMouseMove:O,onNodeMouseLeave:T,onNodeContextMenu:R,nodeClickDistance:S1,onlyRenderVisibleElements:i,noPanClassName:I2,noDragClassName:h2,disableKeyboardA11y:f2,nodeExtent:P2,rfId:B2,nodesDraggable:M3}),F1.jsx("div",{className:"react-flow__viewport-portal"})]})})}qR.displayName="GraphView";var Rj=K1.memo(qR),Oj=KX("React Flow","https://reactflow.dev/"),PT=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:X,height:W,fitView:z,fitViewOptions:B,minZoom:O=0.5,maxZoom:T=2,nodeOrigin:R,nodeExtent:L,zIndexMode:M="basic"}={})=>{let I=new Map,f=new Map,D=new Map,j=new Map,k=K??U??[],h=Z??Q??[],P=R??[0,0],C=L??s7;wX(D,j,k);let{nodesInitialized:b}=vq(h,I,f,{nodeOrigin:P,nodeExtent:C,zIndexMode:M}),x=[0,0,1];if(z&&X&&W){let u=f8(I,{filter:(J1)=>!!((J1.width||J1.initialWidth)&&(J1.height||J1.initialHeight))}),{x:g,y:i,zoom:m}=MJ(u,X,W,O,T,B?.padding??0.1);x=[g,i,m]}return{rfId:"1",width:X??0,height:W??0,transform:x,nodes:h,nodesInitialized:b,nodeLookup:I,parentLookup:f,edges:k,edgeLookup:j,connectionLookup:D,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:O,maxZoom:T,translateExtent:s7,nodeExtent:C,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:A6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:P,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:z??!1,fitViewOptions:B,fitViewResolver:null,connection:{...$X},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Oj,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:JX,zIndexMode:M,defaultEdgeOptions:void 0,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map,onNodesDelete:void 0,onEdgesDelete:void 0,onDelete:void 0,onBeforeDelete:void 0,onViewportChangeStart:void 0,onViewportChange:void 0,onViewportChangeEnd:void 0,onNodeDragStart:void 0,onNodeDrag:void 0,onNodeDragStop:void 0,onSelectionDragStart:void 0,onSelectionDrag:void 0,onSelectionDragStop:void 0,onMoveStart:void 0,onMove:void 0,onMoveEnd:void 0,onConnect:void 0,onConnectStart:void 0,onConnectEnd:void 0,onClickConnectStart:void 0,onClickConnectEnd:void 0}},wj=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:X,height:W,fitView:z,fitViewOptions:B,minZoom:O,maxZoom:T,nodeOrigin:R,nodeExtent:L,zIndexMode:M})=>nM((I,f)=>{async function D(){let{nodeLookup:j,panZoom:k,fitViewOptions:h,fitViewResolver:P,width:C,height:b,minZoom:x,maxZoom:u}=f();if(!k)return;await BM({nodes:j,width:C,height:b,panZoom:k,minZoom:x,maxZoom:u},h),P?.resolve(!0),I({fitViewResolver:null})}return{...PT({nodes:Q,edges:U,width:X,height:W,fitView:z,fitViewOptions:B,minZoom:O,maxZoom:T,nodeOrigin:R,nodeExtent:L,defaultNodes:Z,defaultEdges:K,zIndexMode:M}),setNodes:(j)=>{let{nodeLookup:k,parentLookup:h,nodeOrigin:P,nodeExtent:C,elevateNodesOnSelect:b,fitViewQueued:x,zIndexMode:u,nodesSelectionActive:g}=f(),{nodesInitialized:i,hasSelectedNodes:m}=vq(j,k,h,{nodeOrigin:P,nodeExtent:C,elevateNodesOnSelect:b,checkEquality:!0,zIndexMode:u}),J1=g&&m;if(x&&i)D(),I({nodes:j,nodesInitialized:i,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:J1});else I({nodes:j,nodesInitialized:i,nodesSelectionActive:J1})},setEdges:(j)=>{let{connectionLookup:k,edgeLookup:h}=f();wX(k,h,j),I({edges:j})},setDefaultNodesAndEdges:(j,k)=>{if(j){let{setNodes:h}=f();h(j),I({hasDefaultNodes:!0})}if(k){let{setEdges:h}=f();h(k),I({hasDefaultEdges:!0})}},updateNodeInternals:(j)=>{let{triggerNodeChanges:k,nodeLookup:h,parentLookup:P,domNode:C,nodeOrigin:b,nodeExtent:x,debug:u,fitViewQueued:g,zIndexMode:i}=f(),{changes:m,updatedInternals:J1}=kM(j,h,P,C,b,x,i);if(!J1)return;if(jM(h,P,{nodeOrigin:b,nodeExtent:x,zIndexMode:i}),g)D(),I({fitViewQueued:!1,fitViewOptions:void 0});else I({});if(m?.length>0){if(u)console.log("React Flow: trigger node changes",m);k?.(m)}},updateNodePositions:(j,k=!1)=>{let h=[],P=[],{nodeLookup:C,triggerNodeChanges:b,connection:x,updateConnection:u,onNodesChangeMiddlewareMap:g}=f();for(let[i,m]of j){let J1=C.get(i),$1=!!(J1?.expandParent&&J1?.parentId&&m?.position),d={id:i,type:"position",position:$1?{x:Math.max(0,m.position.x),y:Math.max(0,m.position.y)}:m.position,dragging:k};if(J1&&x.inProgress&&x.fromNode.id===J1.id){let y=L6(J1,x.fromHandle,C1.Left,!0);u({...x,from:y})}if($1&&J1.parentId)h.push({id:i,parentId:J1.parentId,rect:{...m.internals.positionAbsolute,width:m.measured.width??0,height:m.measured.height??0}});P.push(d)}if(h.length>0){let{parentLookup:i,nodeOrigin:m}=f(),J1=Eq(h,C,i,m);P.push(...J1)}for(let i of g.values())P=i(P);b(P)},triggerNodeChanges:(j)=>{let{onNodesChange:k,setNodes:h,nodes:P,hasDefaultNodes:C,debug:b}=f();if(j?.length){if(C){let x=yT(j,P);h(x)}if(b)console.log("React Flow: trigger node changes",j);k?.(j)}},triggerEdgeChanges:(j)=>{let{onEdgesChange:k,setEdges:h,edges:P,hasDefaultEdges:C,debug:b}=f();if(j?.length){if(C){let x=QS(j,P);h(x)}if(b)console.log("React Flow: trigger edge changes",j);k?.(j)}},addSelectedNodes:(j)=>{let{multiSelectionActive:k,edgeLookup:h,nodeLookup:P,triggerNodeChanges:C,triggerEdgeChanges:b}=f();if(k){let x=j.map((u)=>P8(u,!0));C(x);return}C(_9(P,new Set([...j]),!0)),b(_9(h))},addSelectedEdges:(j)=>{let{multiSelectionActive:k,edgeLookup:h,nodeLookup:P,triggerNodeChanges:C,triggerEdgeChanges:b}=f();if(k){let x=j.map((u)=>P8(u,!0));b(x);return}b(_9(h,new Set([...j]))),C(_9(P,new Set,!0))},unselectNodesAndEdges:({nodes:j,edges:k}={})=>{let{edges:h,nodes:P,nodeLookup:C,triggerNodeChanges:b,triggerEdgeChanges:x}=f(),u=j?j:P,g=k?k:h,i=[];for(let J1 of u){if(!J1.selected)continue;let $1=C.get(J1.id);if($1)$1.selected=!1;i.push(P8(J1.id,!1))}let m=[];for(let J1 of g){if(!J1.selected)continue;m.push(P8(J1.id,!1))}b(i),x(m)},setMinZoom:(j)=>{let{panZoom:k,maxZoom:h}=f();k?.setScaleExtent([j,h]),I({minZoom:j})},setMaxZoom:(j)=>{let{panZoom:k,minZoom:h}=f();k?.setScaleExtent([h,j]),I({maxZoom:j})},setTranslateExtent:(j)=>{f().panZoom?.setTranslateExtent(j),I({translateExtent:j})},resetSelectedElements:()=>{let{edges:j,nodes:k,triggerNodeChanges:h,triggerEdgeChanges:P,elementsSelectable:C}=f();if(!C)return;let b=k.reduce((u,g)=>g.selected?[...u,P8(g.id,!1)]:u,[]),x=j.reduce((u,g)=>g.selected?[...u,P8(g.id,!1)]:u,[]);h(b),P(x)},setNodeExtent:(j)=>{let{nodes:k,nodeLookup:h,parentLookup:P,nodeOrigin:C,elevateNodesOnSelect:b,nodeExtent:x,zIndexMode:u}=f();if(j[0][0]===x[0][0]&&j[0][1]===x[0][1]&&j[1][0]===x[1][0]&&j[1][1]===x[1][1])return;vq(k,h,P,{nodeOrigin:C,nodeExtent:j,elevateNodesOnSelect:b,checkEquality:!1,zIndexMode:u}),I({nodeExtent:j})},panBy:(j)=>{let{transform:k,width:h,height:P,panZoom:C,translateExtent:b}=f();return DM({delta:j,panZoom:C,transform:k,translateExtent:b,width:h,height:P})},setCenter:async(j,k,h)=>{let{width:P,height:C,maxZoom:b,panZoom:x}=f();if(!x)return!1;let u=typeof h?.zoom<"u"?h.zoom:b;return await x.setViewport({x:P/2-j*u,y:C/2-k*u,zoom:u},{duration:h?.duration,ease:h?.ease,interpolate:h?.interpolate}),!0},cancelConnection:()=>{I({connection:{...$X}})},updateConnection:(j)=>{I({connection:j})},reset:()=>I({...PT()})}},Object.is);function kX({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:X,initialHeight:W,initialMinZoom:z,initialMaxZoom:B,initialFitViewOptions:O,fitView:T,nodeOrigin:R,nodeExtent:L,zIndexMode:M,children:I}){let[f]=K1.useState(()=>wj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:X,height:W,fitView:T,minZoom:z,maxZoom:B,fitViewOptions:O,nodeOrigin:R,nodeExtent:L,zIndexMode:M}));return F1.jsx(uC,{value:f,children:F1.jsx(FS,{children:F1.jsx(IS,{children:I})})})}function Ij({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:X,width:W,height:z,fitView:B,fitViewOptions:O,minZoom:T,maxZoom:R,nodeOrigin:L,nodeExtent:M,zIndexMode:I}){if(K1.useContext(pq))return F1.jsx(F1.Fragment,{children:Q});return F1.jsx(kX,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:X,initialWidth:W,initialHeight:z,fitView:B,initialFitViewOptions:O,initialMinZoom:T,initialMaxZoom:R,nodeOrigin:L,nodeExtent:M,zIndexMode:I,children:Q})}var fj={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Pj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:X,nodeTypes:W,edgeTypes:z,onNodeClick:B,onEdgeClick:O,onInit:T,onMove:R,onMoveStart:L,onMoveEnd:M,onConnect:I,onConnectStart:f,onConnectEnd:D,onClickConnectStart:j,onClickConnectEnd:k,onNodeMouseEnter:h,onNodeMouseMove:P,onNodeMouseLeave:C,onNodeContextMenu:b,onNodeDoubleClick:x,onNodeDragStart:u,onNodeDrag:g,onNodeDragStop:i,onNodesDelete:m,onEdgesDelete:J1,onDelete:$1,onSelectionChange:d,onSelectionDragStart:y,onSelectionDrag:E,onSelectionDragStop:v,onSelectionContextMenu:r,onSelectionStart:n,onSelectionEnd:e,onBeforeDelete:V,connectionMode:s,connectionLineType:U1=y4.Bezier,connectionLineStyle:Q1,connectionLineComponent:Y1,connectionLineContainerStyle:L1,deleteKeyCode:M1="Backspace",selectionKeyCode:I1="Shift",selectionOnDrag:X1=!1,selectionMode:f1=R8.Full,panActivationKeyCode:l1="Space",multiSelectionKeyCode:W1=e7()?"Meta":"Control",zoomActivationKeyCode:S1=e7()?"Meta":"Control",snapToGrid:v1,snapGrid:c1,onlyRenderVisibleElements:E1=!1,selectNodesOnDrag:j1,nodesDraggable:V0,autoPanOnNodeFocus:b1,nodesConnectable:Z2,nodesFocusable:_0,nodeOrigin:h2=kT,edgesFocusable:z2,edgesReconnectable:I2,elementsSelectable:f2=!0,defaultViewport:P2=tC,minZoom:B2=0.5,maxZoom:A2=2,translateExtent:L2=s7,preventScrolling:M3=!0,nodeExtent:v5,defaultMarkerColor:b4="#b1b1b7",zoomOnScroll:u4=!0,zoomOnPinch:x4=!0,panOnScroll:I6=!1,panOnScrollSpeed:e5=0.5,panOnScrollMode:S=B3.Free,zoomOnDoubleClick:_1=!0,panOnDrag:B1=!0,onPaneClick:R1,onPaneMouseEnter:P1,onPaneMouseMove:h1,onPaneMouseLeave:m1,onPaneScroll:U0,onPaneContextMenu:V1,paneClickDistance:J2=1,nodeClickDistance:N2=0,children:_4,onReconnect:f6,onReconnectStart:SJ,onReconnectEnd:v8,onEdgeContextMenu:E8,onEdgeDoubleClick:E5,onEdgeMouseEnter:m2,onEdgeMouseMove:jJ,onEdgeMouseLeave:eq,reconnectRadius:G9=10,onNodesChange:VJ,onEdgesChange:b8,noDragClassName:g2="nodrag",noWheelClassName:kJ="nowheel",noPanClassName:u8="nopan",fitView:Z9,fitViewOptions:x8,connectOnClick:DJ,attributionPosition:yJ,proOptions:T3,defaultEdgeOptions:vJ,elevateNodesOnSelect:EJ=!0,elevateEdgesOnSelect:bJ=!1,disableKeyboardA11y:F9=!1,autoPanOnConnect:uJ,autoPanOnNodeDrag:C2,autoPanOnSelection:R3=!0,autoPanSpeed:h4,connectionRadius:xJ,isValidConnection:P6,onError:h8,style:K9,id:O3,nodeDragThreshold:w3,connectionDragThreshold:X9,viewport:_U,onViewportChange:JU,width:hJ,height:H9,colorMode:Y9="light",debug:mJ,onScroll:W9,ariaLabelConfig:gJ,zIndexMode:pJ="basic",...cJ},z9){let I3=O3||"1",N6=_S(Y9),$U=K1.useCallback((B9)=>{B9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),W9?.(B9)},[W9]);return F1.jsx("div",{"data-testid":"rf__wrapper",...cJ,onScroll:$U,style:{...K9,...fj},ref:z9,className:y0(["react-flow",X,N6]),id:O3,role:"application",children:F1.jsxs(Ij,{nodes:Q,edges:U,width:hJ,height:H9,fitView:Z9,fitViewOptions:x8,minZoom:B2,maxZoom:A2,nodeOrigin:h2,nodeExtent:v5,zIndexMode:pJ,children:[F1.jsx(eC,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:I,onConnectStart:f,onConnectEnd:D,onClickConnectStart:j,onClickConnectEnd:k,nodesDraggable:V0,autoPanOnNodeFocus:b1,nodesConnectable:Z2,nodesFocusable:_0,edgesFocusable:z2,edgesReconnectable:I2,elementsSelectable:f2,elevateNodesOnSelect:EJ,elevateEdgesOnSelect:bJ,minZoom:B2,maxZoom:A2,nodeExtent:v5,onNodesChange:VJ,onEdgesChange:b8,snapToGrid:v1,snapGrid:c1,connectionMode:s,translateExtent:L2,connectOnClick:DJ,defaultEdgeOptions:vJ,fitView:Z9,fitViewOptions:x8,onNodesDelete:m,onEdgesDelete:J1,onDelete:$1,onNodeDragStart:u,onNodeDrag:g,onNodeDragStop:i,onSelectionDrag:E,onSelectionDragStart:y,onSelectionDragStop:v,onMove:R,onMoveStart:L,onMoveEnd:M,noPanClassName:u8,nodeOrigin:h2,rfId:I3,autoPanOnConnect:uJ,autoPanOnNodeDrag:C2,autoPanSpeed:h4,onError:h8,connectionRadius:xJ,isValidConnection:P6,selectNodesOnDrag:j1,nodeDragThreshold:w3,connectionDragThreshold:X9,onBeforeDelete:V,debug:mJ,ariaLabelConfig:gJ,zIndexMode:pJ}),F1.jsx(Rj,{onInit:T,onNodeClick:B,onEdgeClick:O,onNodeMouseEnter:h,onNodeMouseMove:P,onNodeMouseLeave:C,onNodeContextMenu:b,onNodeDoubleClick:x,nodeTypes:W,edgeTypes:z,connectionLineType:U1,connectionLineStyle:Q1,connectionLineComponent:Y1,connectionLineContainerStyle:L1,selectionKeyCode:I1,selectionOnDrag:X1,selectionMode:f1,deleteKeyCode:M1,multiSelectionKeyCode:W1,panActivationKeyCode:l1,zoomActivationKeyCode:S1,onlyRenderVisibleElements:E1,defaultViewport:P2,translateExtent:L2,minZoom:B2,maxZoom:A2,preventScrolling:M3,zoomOnScroll:u4,zoomOnPinch:x4,zoomOnDoubleClick:_1,panOnScroll:I6,panOnScrollSpeed:e5,panOnScrollMode:S,panOnDrag:B1,autoPanOnSelection:R3,onPaneClick:R1,onPaneMouseEnter:P1,onPaneMouseMove:h1,onPaneMouseLeave:m1,onPaneScroll:U0,onPaneContextMenu:V1,paneClickDistance:J2,nodeClickDistance:N2,onSelectionContextMenu:r,onSelectionStart:n,onSelectionEnd:e,onReconnect:f6,onReconnectStart:SJ,onReconnectEnd:v8,onEdgeContextMenu:E8,onEdgeDoubleClick:E5,onEdgeMouseEnter:m2,onEdgeMouseMove:jJ,onEdgeMouseLeave:eq,reconnectRadius:G9,defaultMarkerColor:b4,noDragClassName:g2,noWheelClassName:kJ,noPanClassName:u8,rfId:I3,disableKeyboardA11y:F9,nodeExtent:v5,viewport:_U,onViewportChange:JU,nodesDraggable:V0}),F1.jsx(sC,{onSelectionChange:d}),_4,F1.jsx(lC,{proOptions:T3,position:yJ}),F1.jsx(cC,{rfId:I3,disableKeyboardA11y:F9})]})})}var UR=vT(Pj);function GR(Q){let[U,Z]=K1.useState(Q),K=K1.useCallback((X)=>Z((W)=>yT(X,W)),[]);return[U,Z,K]}var Zm=x2.error014();function Nj({dimensions:Q,lineWidth:U,variant:Z,className:K}){return F1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:y0(["react-flow__background-pattern",Z,K])})}function Cj({radius:Q,className:U}){return F1.jsx("circle",{cx:Q,cy:Q,r:Q,className:y0(["react-flow__background-pattern","dots",U])})}var v4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(v4||(v4={}));var Sj={[v4.Dots]:1,[v4.Lines]:1,[v4.Cross]:6},jj=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function ZR({id:Q,variant:U=v4.Dots,gap:Z=20,size:K,lineWidth:X=1,offset:W=0,color:z,bgColor:B,style:O,className:T,patternClassName:R}){let L=K1.useRef(null),{transform:M,patternId:I}=G0(jj,N0),f=K||Sj[U],D=U===v4.Dots,j=U===v4.Cross,k=Array.isArray(Z)?Z:[Z,Z],h=[k[0]*M[2]||1,k[1]*M[2]||1],P=f*M[2],C=Array.isArray(W)?W:[W,W],b=j?[P,P]:h,x=[C[0]*M[2]+b[0]/2,C[1]*M[2]+b[1]/2],u=`${I}${Q?Q:""}`;return F1.jsxs("svg",{className:y0(["react-flow__background",T]),style:{...O,...cq,"--xy-background-color-props":B,"--xy-background-pattern-color-props":z},ref:L,"data-testid":"rf__background",children:[F1.jsx("pattern",{id:u,x:M[0]%h[0],y:M[1]%h[1],width:h[0],height:h[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${x[0]},-${x[1]})`,children:D?F1.jsx(Cj,{radius:P/2,className:R}):F1.jsx(Nj,{dimensions:b,lineWidth:X,variant:U,className:R})}),F1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${u})`})]})}ZR.displayName="Background";var FR=K1.memo(ZR);function Vj(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:F1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function kj(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:F1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Dj(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:F1.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function yj(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:F1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function vj(){return F1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:F1.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function hq({children:Q,className:U,...Z}){return F1.jsx("button",{type:"button",className:y0(["react-flow__controls-button",U]),...Z,children:Q})}var Ej=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function KR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:X,onZoomIn:W,onZoomOut:z,onFitView:B,onInteractiveChange:O,className:T,children:R,position:L="bottom-left",orientation:M="vertical","aria-label":I}){let f=C0(),{isInteractive:D,minZoomReached:j,maxZoomReached:k,ariaLabelConfig:h}=G0(Ej,N0),{zoomIn:P,zoomOut:C,fitView:b}=OJ(),x=()=>{P(),W?.()},u=()=>{C(),z?.()},g=()=>{b(X),B?.()},i=()=>{f.setState({nodesDraggable:!D,nodesConnectable:!D,elementsSelectable:!D}),O?.(!D)};return F1.jsxs(N8,{className:y0(["react-flow__controls",M==="horizontal"?"horizontal":"vertical",T]),position:L,style:Q,"data-testid":"rf__controls","aria-label":I??h["controls.ariaLabel"],children:[U&&F1.jsxs(F1.Fragment,{children:[F1.jsx(hq,{onClick:x,className:"react-flow__controls-zoomin",title:h["controls.zoomIn.ariaLabel"],"aria-label":h["controls.zoomIn.ariaLabel"],disabled:k,children:F1.jsx(Vj,{})}),F1.jsx(hq,{onClick:u,className:"react-flow__controls-zoomout",title:h["controls.zoomOut.ariaLabel"],"aria-label":h["controls.zoomOut.ariaLabel"],disabled:j,children:F1.jsx(kj,{})})]}),Z&&F1.jsx(hq,{className:"react-flow__controls-fitview",onClick:g,title:h["controls.fitView.ariaLabel"],"aria-label":h["controls.fitView.ariaLabel"],children:F1.jsx(Dj,{})}),K&&F1.jsx(hq,{className:"react-flow__controls-interactive",onClick:i,title:h["controls.interactive.ariaLabel"],"aria-label":h["controls.interactive.ariaLabel"],children:D?F1.jsx(vj,{}):F1.jsx(yj,{})}),R]})}KR.displayName="Controls";var XR=K1.memo(KR);function bj({id:Q,x:U,y:Z,width:K,height:X,style:W,color:z,strokeColor:B,strokeWidth:O,className:T,borderRadius:R,shapeRendering:L,selected:M,onClick:I}){let{background:f,backgroundColor:D}=W||{},j=z||f||D;return F1.jsx("rect",{className:y0(["react-flow__minimap-node",{selected:M},T]),x:U,y:Z,rx:R,ry:R,width:K,height:X,style:{fill:j,stroke:B,strokeWidth:O},shapeRendering:L,onClick:I?(k)=>I(k,Q):void 0})}var uj=K1.memo(bj),xj=(Q)=>Q.nodes.map((U)=>U.id),CX=(Q)=>Q instanceof Function?Q:()=>Q;function hj({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:X,nodeComponent:W=uj,onClick:z}){let B=G0(xj,N0),O=CX(U),T=CX(Q),R=CX(Z),L=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return F1.jsx(F1.Fragment,{children:B.map((M)=>F1.jsx(gj,{id:M,nodeColorFunc:O,nodeStrokeColorFunc:T,nodeClassNameFunc:R,nodeBorderRadius:K,nodeStrokeWidth:X,NodeComponent:W,onClick:z,shapeRendering:L},M))})}function mj({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:X,nodeStrokeWidth:W,shapeRendering:z,NodeComponent:B,onClick:O}){let{node:T,x:R,y:L,width:M,height:I}=G0((f)=>{let D=f.nodeLookup.get(Q);if(!D)return{node:void 0,x:0,y:0,width:0,height:0};let j=D.internals.userNode,{x:k,y:h}=D.internals.positionAbsolute,{width:P,height:C}=y5(j);return{node:j,x:k,y:h,width:P,height:C}},N0);if(!T||T.hidden||!XX(T))return null;return F1.jsx(B,{x:R,y:L,width:M,height:I,style:T.style,selected:!!T.selected,className:K(T),color:U(T),borderRadius:X,strokeColor:Z(T),strokeWidth:W,shapeRendering:z,onClick:O,id:T.id})}var gj=K1.memo(mj),pj=K1.memo(hj),cj=200,lj=150,rj=(Q)=>!Q.hidden,dj=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?ZX(f8(Q.nodeLookup,{filter:rj}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},NT=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,ij=(Q,U)=>NT(Q.viewBB,U.viewBB)&&NT(Q.boundingRect,U.boundingRect)&&Q.rfId===U.rfId&&Q.panZoom===U.panZoom&&Q.translateExtent===U.translateExtent&&Q.flowWidth===U.flowWidth&&Q.flowHeight===U.flowHeight&&Q.ariaLabelConfig===U.ariaLabelConfig,aj="react-flow__minimap-desc";function HR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:X="",nodeBorderRadius:W=5,nodeStrokeWidth:z,nodeComponent:B,bgColor:O,maskColor:T,maskStrokeColor:R,maskStrokeWidth:L,position:M="bottom-right",onClick:I,onNodeClick:f,pannable:D=!1,zoomable:j=!1,ariaLabel:k,inversePan:h,zoomStep:P=1,offsetScale:C=5}){let b=C0(),x=K1.useRef(null),{boundingRect:u,panZoom:g,viewBB:i,rfId:m,translateExtent:J1,flowWidth:$1,flowHeight:d,ariaLabelConfig:y}=G0(dj,ij),E=Q?.width??cj,v=Q?.height??lj,r=u.width/E,n=u.height/v,e=Math.max(r,n),V=e*E,s=e*v,U1=C*e,Q1=u.x-(V-u.width)/2-U1,Y1=u.y-(s-u.height)/2-U1,L1=V+U1*2,M1=s+U1*2,I1=`${aj}-${m}`,X1=K1.useRef(0),f1=K1.useRef();X1.current=e,K1.useEffect(()=>{let c1=b.getState().panZoom;if(x.current&&c1)return f1.current=hM({domNode:x.current,panZoom:c1,getTransform:()=>b.getState().transform,getViewScale:()=>X1.current}),()=>{f1.current?.destroy()}},[g]),K1.useEffect(()=>{f1.current?.update({translateExtent:J1,width:$1,height:d,inversePan:h,pannable:D,zoomStep:P,zoomable:j})},[D,j,h,P,J1,$1,d]);let l1=I?(c1)=>{let[E1,j1]=f1.current?.pointer(c1)||[0,0];I(c1,{x:E1,y:j1})}:void 0,W1=K1.useCallback((c1,E1)=>{let j1=b.getState().nodeLookup.get(E1).internals.userNode;f?.(c1,j1)},[f]),S1=f?W1:void 0,v1=k??y["minimap.ariaLabel"];return F1.jsx(N8,{position:M,style:{...Q,"--xy-minimap-background-color-props":typeof O==="string"?O:void 0,"--xy-minimap-mask-background-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-stroke-color-props":typeof R==="string"?R:void 0,"--xy-minimap-mask-stroke-width-props":typeof L==="number"?L*e:void 0,"--xy-minimap-node-background-color-props":typeof K==="string"?K:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof z==="number"?z:void 0},className:y0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:F1.jsxs("svg",{width:E,height:v,viewBox:`${Q1} ${Y1} ${L1} ${M1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":I1,ref:x,onClick:l1,children:[v1&&F1.jsx("title",{id:I1,children:v1}),F1.jsx(pj,{onClick:S1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:W,nodeClassName:X,nodeStrokeWidth:z,nodeComponent:B}),F1.jsx("path",{className:"react-flow__minimap-mask",d:`M${Q1-U1},${Y1-U1}h${L1+U1*2}v${M1+U1*2}h${-L1-U1*2}z
247
+ M${i.x},${i.y}h${i.width}v${i.height}h${-i.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}HR.displayName="MiniMap";var YR=K1.memo(HR),sj=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,tj={[M6.Line]:"right",[M6.Handle]:"bottom-right"};function oj({nodeId:Q,position:U,variant:Z=M6.Handle,className:K,style:X=void 0,children:W,color:z,minWidth:B=10,minHeight:O=10,maxWidth:T=Number.MAX_VALUE,maxHeight:R=Number.MAX_VALUE,keepAspectRatio:L=!1,resizeDirection:M,autoScale:I=!0,shouldResize:f,onResizeStart:D,onResize:j,onResizeEnd:k}){let h=VX(),P=typeof Q==="string"?Q:h,C=C0(),b=K1.useRef(null),x=Z===M6.Handle,u=G0(K1.useCallback(sj(x&&I),[x,I]),N0),g=K1.useRef(null),i=U??tj[Z];K1.useEffect(()=>{if(!b.current||!P)return;if(!g.current)g.current=lM({domNode:b.current,nodeId:P,getStoreItems:()=>{let{nodeLookup:J1,transform:$1,snapGrid:d,snapToGrid:y,nodeOrigin:E,domNode:v}=C.getState();return{nodeLookup:J1,transform:$1,snapGrid:d,snapToGrid:y,nodeOrigin:E,paneDomNode:v}},onChange:(J1,$1)=>{let{triggerNodeChanges:d,nodeLookup:y,parentLookup:E,nodeOrigin:v}=C.getState(),r=[],n={x:J1.x,y:J1.y},e=y.get(P);if(e&&e.expandParent&&e.parentId){let V=e.origin??v,s=J1.width??e.measured.width??0,U1=J1.height??e.measured.height??0,Q1={id:e.id,parentId:e.parentId,rect:{width:s,height:U1,...HX({x:J1.x??e.position.x,y:J1.y??e.position.y},{width:s,height:U1},e.parentId,y,V)}},Y1=Eq([Q1],y,E,v);r.push(...Y1),n.x=J1.x?Math.max(V[0]*s,J1.x):void 0,n.y=J1.y?Math.max(V[1]*U1,J1.y):void 0}if(n.x!==void 0&&n.y!==void 0){let V={id:P,type:"position",position:{...n}};r.push(V)}if(J1.width!==void 0&&J1.height!==void 0){let s={id:P,type:"dimensions",resizing:!0,setAttributes:!M?!0:M==="horizontal"?"width":"height",dimensions:{width:J1.width,height:J1.height}};r.push(s)}for(let V of $1){let s={...V,type:"position"};r.push(s)}d(r)},onEnd:({width:J1,height:$1})=>{let d={id:P,type:"dimensions",resizing:!1,dimensions:{width:J1,height:$1}};C.getState().triggerNodeChanges([d])}});return g.current.update({controlPosition:i,boundaries:{minWidth:B,minHeight:O,maxWidth:T,maxHeight:R},keepAspectRatio:L,resizeDirection:M,onResizeStart:D,onResize:j,onResizeEnd:k,shouldResize:f}),()=>{g.current?.destroy()}},[i,B,O,T,R,L,D,j,k,f]);let m=i.split("-");return F1.jsx("div",{className:y0(["react-flow__resize-control","nodrag",...m,Z,K]),ref:b,style:{...X,scale:u,...z&&{[x?"backgroundColor":"borderColor"]:z}},children:W})}var Fm=K1.memo(oj);var nj=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function ej({children:Q}){let U=G0(nj);if(!U)return null;return CT.createPortal(Q,U)}var _V=(Q,U)=>Q?.internals.positionAbsolute.x!==U?.internals.positionAbsolute.x||Q?.internals.positionAbsolute.y!==U?.internals.positionAbsolute.y||Q?.measured.width!==U?.measured.width||Q?.measured.height!==U?.measured.height||Q?.selected!==U?.selected||Q?.internals.z!==U?.internals.z,JV=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,K]of Q)if(_V(K,U.get(Z)))return!1;return!0},$V=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function WR({nodeId:Q,children:U,className:Z,style:K,isVisible:X,position:W=C1.Top,offset:z=10,align:B="center",...O}){let T=VX(),R=K1.useCallback((b)=>{return(Array.isArray(Q)?Q:[Q||T||""]).reduce((g,i)=>{let m=b.nodeLookup.get(i);if(m)g.set(m.id,m);return g},new Map)},[Q,T]),L=G0(R,JV),{x:M,y:I,zoom:f,selectedNodesCount:D}=G0($V,N0);if(!(typeof X==="boolean"?X:L.size===1&&L.values().next().value?.selected&&D===1)||!L.size)return null;let k=f8(L),h=Array.from(L.values()),P=Math.max(...h.map((b)=>b.internals.z+1)),C={position:"absolute",transform:CM(k,{x:M,y:I,zoom:f},W,z,B),zIndex:P,...K};return F1.jsx(ej,{children:F1.jsx("div",{style:C,className:y0(["react-flow__node-toolbar",Z]),...O,"data-id":h.reduce((b,x)=>`${b}${x.id} `,"").trim(),children:U})})}var _2=u0(i5(),1);var zR={x:{title:"X",fill:"currentColor",d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},youtube:{title:"YouTube",fill:"#FF0000",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},tiktok:{title:"TikTok",fill:"currentColor",d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"},discord:{title:"Discord",fill:"#5865F2",d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},resend:{title:"Resend",fill:"currentColor",d:"M2.023 0v24h5.553v-8.434h2.998L15.326 24h6.65l-5.372-9.258a7.652 7.652 0 0 0 3.316-3.016c.709-1.21 1.062-2.57 1.062-4.08 0-1.462-.353-2.767-1.062-3.91-.709-1.165-1.692-2.079-2.95-2.742C15.737.331 14.355 0 12.823 0Zm5.553 4.87h4.219c.731 0 1.349.125 1.851.376.526.252.925.618 1.2 1.098.274.457.412.994.412 1.611S15.132 9.12 14.88 9.6c-.229.48-.572.856-1.03 1.13-.434.252-.948.38-1.542.38H7.576Z"},linkedin:{title:"LinkedIn",fill:"#0A66C2",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},reddit:{title:"Reddit",fill:"#FF4500",d:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"},bluesky:{title:"Bluesky",fill:"#0285FF",d:"M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"},instagram:{title:"Instagram",fill:"#FF0069",d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},github:{title:"GitHub",fill:"currentColor",d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"},stripe:{title:"Stripe",fill:"#635BFF",d:"M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"},slack:{title:"Slack",fill:"#4A154B",d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},openai:{title:"OpenAI",fill:"#412991",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"},anthropic:{title:"Anthropic",fill:"currentColor",d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"},twilio:{title:"Twilio",fill:"#F22F46",d:"M12 0C5.381-.008.008 5.352 0 11.971V12c0 6.64 5.359 12 12 12 6.64 0 12-5.36 12-12 0-6.641-5.36-12-12-12zm0 20.801c-4.846.015-8.786-3.904-8.801-8.75V12c-.014-4.846 3.904-8.786 8.75-8.801H12c4.847-.014 8.786 3.904 8.801 8.75V12c.015 4.847-3.904 8.786-8.75 8.801H12zm5.44-11.76c0 1.359-1.12 2.479-2.481 2.479-1.366-.007-2.472-1.113-2.479-2.479 0-1.361 1.12-2.481 2.479-2.481 1.361 0 2.481 1.12 2.481 2.481zm0 5.919c0 1.36-1.12 2.48-2.481 2.48-1.367-.008-2.473-1.114-2.479-2.48 0-1.359 1.12-2.479 2.479-2.479 1.361-.001 2.481 1.12 2.481 2.479zm-5.919 0c0 1.36-1.12 2.48-2.479 2.48-1.368-.007-2.475-1.113-2.481-2.48 0-1.359 1.12-2.479 2.481-2.479 1.358-.001 2.479 1.12 2.479 2.479zm0-5.919c0 1.359-1.12 2.479-2.479 2.479-1.367-.007-2.475-1.112-2.481-2.479 0-1.361 1.12-2.481 2.481-2.481 1.358 0 2.479 1.12 2.479 2.481z"},sendgrid:{title:"SendGrid",fill:"#51A9E3",d:"M.8 24h13.6c.88 0 1.6-.72 1.6-1.6v-4.8c0-.88-.72-1.6-1.6-1.6H9.6c-.88 0-1.6-.72-1.6-1.6V9.6C8 8.72 7.28 8 6.4 8H1.6C.72 8 0 8.72 0 9.6v13.6c0 .44.36.8.8.8zM23.2 0H9.6C8.72 0 8 .72 8 1.6v4.8C8 7.28 8.72 8 9.6 8h4.8c.88 0 1.6.72 1.6 1.6v4.8c0 .88.72 1.6 1.6 1.6h4.8c.88 0 1.6-.72 1.6-1.6V.8c0-.44-.36-.8-.8-.8Z"},mailgun:{title:"Mailgun",fill:"#F06B66",d:"M11.837 0c6.602 0 11.984 5.381 11.984 11.994-.017 2.99-3.264 4.84-5.844 3.331a3.805 3.805 0 0 1-.06-.035l-.055-.033-.022.055c-2.554 4.63-9.162 4.758-11.894.232-2.732-4.527.46-10.313 5.746-10.416a6.868 6.868 0 0 1 7.002 6.866 1.265 1.265 0 0 0 2.52 0c0-5.18-4.197-9.38-9.377-9.387C4.611 2.594.081 10.41 3.683 16.673c3.238 5.632 11.08 6.351 15.289 1.402l1.997 1.686A11.95 11.95 0 0 1 11.837 24C2.6 23.72-2.87 13.543 1.992 5.684A12.006 12.006 0 0 1 11.837 0Zm0 7.745c-3.276-.163-5.5 3.281-4.003 6.2a4.26 4.26 0 0 0 4.014 2.31c3.276-.171 5.137-3.824 3.35-6.575a4.26 4.26 0 0 0-3.36-1.935Zm0 2.53c1.324 0 2.152 1.433 1.49 2.58a1.72 1.72 0 0 1-1.49.86 1.72 1.72 0 1 1 0-3.44Z"},notion:{title:"Notion",fill:"currentColor",d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"},linear:{title:"Linear",fill:"#5E6AD2",d:"M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"},jira:{title:"Jira",fill:"#0052CC",d:"M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"},hubspot:{title:"HubSpot",fill:"#FF7A59",d:"M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"},paypal:{title:"PayPal",fill:"#003087",d:"M7.016 19.198h-4.2a.562.562 0 0 1-.555-.65L5.093.584A.692.692 0 0 1 5.776 0h7.222c3.417 0 5.904 2.488 5.846 5.5-.006.25-.027.5-.066.747A6.794 6.794 0 0 1 12.071 12H8.743a.69.69 0 0 0-.682.583l-.325 2.056-.013.083-.692 4.39-.015.087zM19.79 6.142c-.01.087-.01.175-.023.261a7.76 7.76 0 0 1-7.695 6.598H9.007l-.283 1.795-.013.083-.692 4.39-.134.843-.014.088H6.86l-.497 3.15a.562.562 0 0 0 .555.65h3.612c.34 0 .63-.249.683-.585l.952-6.031a.692.692 0 0 1 .683-.584h2.126a6.793 6.793 0 0 0 6.707-5.752c.306-1.95-.466-3.744-1.89-4.906z"},shopify:{title:"Shopify",fill:"#7AB55C",d:"M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023zM11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z"},sentry:{title:"Sentry",fill:"#362D59",d:"M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z"},vercel:{title:"Vercel",fill:"currentColor",d:"M24 22.525H0l12-21.05 12 21.05z"},supabase:{title:"Supabase",fill:"#3FCF8E",d:"M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"},clerk:{title:"Clerk",fill:"#6C47FF",d:"m21.47 20.829-2.881-2.881a.572.572 0 0 0-.7-.084 6.854 6.854 0 0 1-7.081 0 .576.576 0 0 0-.7.084l-2.881 2.881a.576.576 0 0 0-.103.69.57.57 0 0 0 .166.186 12 12 0 0 0 14.113 0 .58.58 0 0 0 .239-.423.576.576 0 0 0-.172-.453Zm.002-17.668-2.88 2.88a.569.569 0 0 1-.701.084A6.857 6.857 0 0 0 8.724 8.08a6.862 6.862 0 0 0-1.222 3.692 6.86 6.86 0 0 0 .978 3.764.573.573 0 0 1-.083.699l-2.881 2.88a.567.567 0 0 1-.864-.063A11.993 11.993 0 0 1 6.771 2.7a11.99 11.99 0 0 1 14.637-.405.566.566 0 0 1 .232.418.57.57 0 0 1-.168.448Zm-7.118 12.261a3.427 3.427 0 1 0 0-6.854 3.427 3.427 0 0 0 0 6.854Z"},aws:{title:"Amazon Web Services",fill:"#232F3E",d:"M6.763 10.036c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 0 1-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 0 1-.287-.375 6.18 6.18 0 0 1-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.391-.384-.59-.894-.59-1.533 0-.678.239-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272a2.287 2.287 0 0 1-.28.104.488.488 0 0 1-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 0 1 .224-.167c.279-.144.614-.264 1.005-.36a4.84 4.84 0 0 1 1.246-.151c.95 0 1.644.216 2.091.647.439.43.662 1.085.662 1.963v2.586zm-3.24 1.214c.263 0 .534-.048.822-.144.287-.096.543-.271.758-.51.128-.152.224-.32.272-.512.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 0 0-.735-.136 6.02 6.02 0 0 0-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 5.55a1.398 1.398 0 0 1-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 0 1 .32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 0 1 .311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 0 1-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 0 1-.303.08h-.687c-.151 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32l-1.238-5.148-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 0 1-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.319.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 0 0 .415-.758.777.777 0 0 0-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 0 1-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .359.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 0 1 .24.2.43.43 0 0 1 .071.263v.375c0 .168-.064.256-.184.256a.83.83 0 0 1-.303-.096 3.652 3.652 0 0 0-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.159.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926-.144.272-.336.511-.583.703-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167zM21.698 16.207c-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351 3.384 1.963 7.559 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.439-.2.814.287.383.607zM22.792 14.961c-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151.32-.79 1.03-2.57.695-2.994z"},figma:{title:"Figma",fill:"#F24E1E",d:"M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.097-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z"},airtable:{title:"Airtable",fill:"#18BFFF",d:"M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"},intercom:{title:"Intercom",fill:"#6AFDEF",d:"M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z"},posthog:{title:"PostHog",fill:"currentColor",d:"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z"},datadog:{title:"Datadog",fill:"#632CA6",d:"M19.57 17.04l-1.997-1.316-1.665 2.782-1.937-.567-1.706 2.604.087.82 9.274-1.71-.538-5.794zm-8.649-2.498l1.488-.204c.241.108.409.15.697.223.45.117.97.23 1.741-.16.18-.088.553-.43.704-.625l6.096-1.106.622 7.527-10.444 1.882zm11.325-2.712l-.602.115L20.488 0 .789 2.285l2.427 19.693 2.306-.334c-.184-.263-.471-.581-.96-.989-.68-.564-.44-1.522-.039-2.127.53-1.022 3.26-2.322 3.106-3.956-.056-.594-.15-1.368-.702-1.898-.02.22.017.432.017.432s-.227-.289-.34-.683c-.112-.15-.2-.199-.319-.4-.085.233-.073.503-.073.503s-.186-.437-.216-.807c-.11.166-.137.48-.137.48s-.241-.69-.186-1.062c-.11-.323-.436-.965-.343-2.424.6.421 1.924.321 2.44-.439.171-.251.288-.939-.086-2.293-.24-.868-.835-2.16-1.066-2.651l-.028.02c.122.395.374 1.223.47 1.625.293 1.218.372 1.642.234 2.204-.116.488-.397.808-1.107 1.165-.71.358-1.653-.514-1.713-.562-.69-.55-1.224-1.447-1.284-1.883-.062-.477.275-.763.445-1.153-.243.07-.514.192-.514.192s.323-.334.722-.624c.165-.109.262-.178.436-.323a9.762 9.762 0 0 0-.456.003s.42-.227.855-.392c-.318-.014-.623-.003-.623-.003s.937-.419 1.678-.727c.509-.208 1.006-.147 1.286.257.367.53.752.817 1.569.996.501-.223.653-.337 1.284-.509.554-.61.99-.688.99-.688s-.216.198-.274.51c.314-.249.66-.455.66-.455s-.134.164-.259.426l.03.043c.366-.22.797-.394.797-.394s-.123.156-.268.358c.277-.002.838.012 1.056.037 1.285.028 1.552-1.374 2.045-1.55.618-.22.894-.353 1.947.68.903.888 1.609 2.477 1.259 2.833-.294.295-.874-.115-1.516-.916a3.466 3.466 0 0 1-.716-1.562 1.533 1.533 0 0 0-.497-.85s.23.51.23.96c0 .246.03 1.165.424 1.68-.039.076-.057.374-.1.43-.458-.554-1.443-.95-1.604-1.067.544.445 1.793 1.468 2.273 2.449.453.927.186 1.777.416 1.997.065.063.976 1.197 1.15 1.767.306.994.019 2.038-.381 2.685l-1.117.174c-.163-.045-.273-.068-.42-.153.08-.143.241-.5.243-.572l-.063-.111c-.348.492-.93.97-1.414 1.245-.633.359-1.363.304-1.838.156-1.348-.415-2.623-1.327-2.93-1.566 0 0-.01.191.048.234.34.383 1.119 1.077 1.872 1.56l-1.605.177.759 5.908c-.337.048-.39.071-.757.124-.325-1.147-.946-1.895-1.624-2.332-.599-.384-1.424-.47-2.214-.314l-.05.059a2.851 2.851 0 0 1 1.863.444c.654.413 1.181 1.481 1.375 2.124.248.822.42 1.7-.248 2.632-.476.662-1.864 1.028-2.986.237.3.481.705.876 1.25.95.809.11 1.577-.03 2.106-.574.452-.464.69-1.434.628-2.456l.714-.104.258 1.834 11.827-1.424zM15.05 6.848c-.034.075-.085.125-.007.37l.004.014.013.032.032.073c.14.287.295.558.552.696.067-.011.136-.019.207-.023.242-.01.395.028.492.08.009-.048.01-.119.005-.222-.018-.364.072-.982-.626-1.308-.264-.122-.634-.084-.757.068a.302.302 0 0 1 .058.013c.186.066.06.13.027.207m1.958 3.392c-.092-.05-.52-.03-.821.005-.574.068-1.193.267-1.328.372-.247.191-.135.523.047.66.511.382.96.638 1.432.575.29-.038.546-.497.728-.914.124-.288.124-.598-.058-.698m-5.077-2.942c.162-.154-.805-.355-1.556.156-.554.378-.571 1.187-.041 1.646.053.046.096.078.137.104a4.77 4.77 0 0 1 1.396-.412c.113-.125.243-.345.21-.745-.044-.542-.455-.456-.146-.749"},algolia:{title:"Algolia",fill:"#003DFF",d:"M12 0C5.445 0 .103 5.285.01 11.817c-.097 6.634 5.285 12.131 11.92 12.17a11.91 11.91 0 0 0 5.775-1.443.281.281 0 0 0 .052-.457l-1.122-.994a.79.79 0 0 0-.833-.14 9.693 9.693 0 0 1-3.923.77c-5.36-.067-9.692-4.527-9.607-9.888.084-5.293 4.417-9.573 9.73-9.573h9.73v17.296l-5.522-4.907a.407.407 0 0 0-.596.063 4.52 4.52 0 0 1-3.934 1.793 4.538 4.538 0 0 1-4.192-4.168 4.53 4.53 0 0 1 4.512-4.872 4.532 4.532 0 0 1 4.509 4.126c.018.205.11.397.265.533l1.438 1.275a.28.28 0 0 0 .462-.158 6.82 6.82 0 0 0 .099-1.725c-.232-3.376-2.966-6.092-6.345-6.3-3.873-.24-7.11 2.79-7.214 6.588-.1 3.7 2.933 6.892 6.634 6.974a6.75 6.75 0 0 0 4.136-1.294l7.212 6.394a.48.48 0 0 0 .797-.36V.456A.456.456 0 0 0 23.54 0Z"},cloudflare:{title:"Cloudflare",fill:"#F38020",d:"M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727"},upstash:{title:"Upstash",fill:"#00E9A3",d:"M13.8027 0C11.193 0 8.583.9952 6.5918 2.9863c-3.9823 3.9823-3.9823 10.4396 0 14.4219 1.9911 1.9911 5.2198 1.9911 7.211 0 1.991-1.9911 1.991-5.2198 0-7.211L12 12c.9956.9956.9956 2.6098 0 3.6055-.9956.9955-2.6099.9955-3.6055 0-2.9866-2.9868-2.9866-7.8297 0-10.8164 2.9868-2.9868 7.8297-2.9868 10.8164 0l1.8028-1.8028C19.0225.9952 16.4125 0 13.8027 0zM12 12c-.9956-.9956-.9956-2.6098 0-3.6055.9956-.9955 2.6098-.9955 3.6055 0 2.9867 2.9868 2.9867 7.8297 0 10.8164-2.9867 2.9868-7.8297 2.9868-10.8164 0l-1.8028 1.8028c3.9823 3.9822 10.4396 3.9822 14.4219 0 3.9823-3.9824 3.9823-10.4396 0-14.4219-.9956-.9956-2.3006-1.4922-3.6055-1.4922-1.3048 0-2.6099.4966-3.6054 1.4922-1.9912 1.9912-1.9912 5.2198 0 7.211z"},mixpanel:{title:"Mixpanel",fill:"#7856FF",d:"M6.967 9.996h3.053c-.763-.477-1.048-1.145-1.431-2.384L7.443 3.366C6.919 1.458 6.49.551 4.39.551H.004v1.145h.621c1.286 0 1.431.477 1.814 1.908L3.44 7.326c.524 1.814 1.337 2.67 3.53 2.67h-.003Zm7.06 0h3.053c2.194 0 2.956-.86 3.484-2.67l1.001-3.722c.382-1.431.57-1.908 1.814-1.908H24V.551h-4.34c-2.146 0-2.576.86-3.053 2.815l-1.145 4.246c-.384 1.286-.673 1.907-1.435 2.384Zm-4.007 4.008h4.007V9.996H10.02v4.008ZM0 23.449h4.39c2.1 0 2.529-.907 3.053-2.815l1.146-4.246c.383-1.239.668-1.907 1.431-2.384H6.967c-2.194 0-3.007.86-3.531 2.67l-1.001 3.722c-.383 1.431-.524 1.907-1.814 1.907H0v1.146Zm19.65 0h4.343v-1.146h-.622c-1.239 0-1.431-.476-1.814-1.907l-1.001-3.722c-.524-1.814-1.286-2.67-3.483-2.67h-3.046c.762.477 1.041 1.098 1.424 2.384l1.145 4.246c.477 1.955.907 2.815 3.054 2.815Z"},gemini:{title:"Google Gemini",fill:"#8E75B2",d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"}};var y1=u0(wJ(),1),qV="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function rq({href:Q,onClick:U}){return y1.jsxDEV("h1",{children:y1.jsxDEV("a",{href:Q,onClick:U,children:[y1.jsxDEV("img",{src:qV,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),y1.jsxDEV("span",{className:"brand-name",children:" Volter World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}async function z5(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function AR(Q,U,Z=0,K=""){let[X,W]=_2.useState({state:"loading"});return _2.useEffect(()=>{W({state:"loading"})},[K,U]),_2.useEffect(()=>{if(!U)return;let z=!0;return(async()=>{try{let B=await Q(U),O=B.ok?{state:"ok",data:await B.json()}:{state:"error",status:B.status,error:await z5(B)};if(z)W(O)}catch(B){if(z)W({state:"error",status:0,error:String(B)})}})(),()=>{z=!1}},[K,U,Z]),X}function B5({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return y1.jsxDEV(UV,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return y1.jsxDEV("div",{role:"alert",className:"error-state",children:[y1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?y1.jsxDEV("button",{type:"button",onClick:Z,children:"Try again"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return null}function UV({lines:Q=3,label:U="Loading…"}){return y1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,K)=>y1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function h0({iso:Q,time:U}){if(!Q)return y1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return y1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var IJ=(Q)=>Q?new Date(Q).toLocaleString():"—";function dq(Q){let U=Q?Date.parse(Q):Number.NaN;if(Number.isNaN(U))return"—";let Z=Math.max(0,Math.round((Date.now()-U)/1000));return Z<60?"just now":Z<3600?`${Math.round(Z/60)}m ago`:Z<86400?`${Math.round(Z/3600)}h ago`:`${Math.round(Z/86400)}d ago`}function J9(Q,U){let Z=U.replace(/[_-]+/g," "),K=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:K}`}var EX=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,GV={github:"GitHub",openai:"OpenAI",aws:"AWS",hubspot:"HubSpot",paypal:"PayPal",youtube:"YouTube",tiktok:"TikTok",linkedin:"LinkedIn",xai:"xAI",sendgrid:"SendGrid",elevenlabs:"ElevenLabs",assemblyai:"AssemblyAI",planetscale:"PlanetScale",googleoauth:"Google sign-in",npm:"npm","npm-registry":"npm registry",posthog:"PostHog",mongodb:"MongoDB",pagerduty:"PagerDuty",mailgun:"Mailgun",turbopuffer:"turbopuffer"},F0=(Q)=>GV[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function A5({vendor:Q}){let U=zR[Q];return y1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?y1.jsxDEV("svg",{viewBox:"0 0 24 24",children:y1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):F0(Q).charAt(0)},void 0,!1,void 0,this)}var BR=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},DX="volter.theme",LR=()=>{try{let Q=localStorage.getItem(DX);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function bX(Q=LR()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function MR(){let[Q,U]=_2.useState(LR),Z=(K)=>{try{if(K==="system")localStorage.removeItem(DX);else localStorage.setItem(DX,K)}catch{}bX(K),U(K)};return y1.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Theme",children:["system","light","dark"].map((K)=>y1.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===K,onClick:()=>Z(K),children:K==="system"?"System":K==="light"?"Light":"Dark"},K,!1,void 0,this))},void 0,!1,void 0,this)}function TR(){return _2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(K)=>{if(K.key!=="Escape"||document.querySelector("dialog[open]"))return;let X=Q();if(!X.length)return;for(let W of X)W.removeAttribute("open");X[X.length-1].querySelector("summary")?.focus()},Z=(K)=>{let X=K.target;for(let W of Q())if(!X||!W.contains(X))W.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function S8({open:Q,onClose:U,title:Z,children:K,footer:X,wide:W}){let z=_2.useRef(null),B=_2.useId();return _2.useEffect(()=>{let O=z.current;if(!O)return;if(Q&&!O.open){O.showModal();let T=O.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(T?.focus(),T instanceof HTMLInputElement&&T.value&&/^(text|search|email|url)$/.test(T.type))T.select()}if(!Q&&O.open)O.close()},[Q]),y1.jsxDEV("dialog",{ref:z,className:W?"dialog wide":"dialog","aria-labelledby":B,onClose:U,onCancel:(O)=>{O.preventDefault(),U()},onMouseDown:(O)=>{if(O.target===z.current)U()},children:Q?y1.jsxDEV(y1.Fragment,{children:[y1.jsxDEV("div",{className:"dialog-head",children:[y1.jsxDEV("h2",{id:B,children:Z},void 0,!1,void 0,this),y1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Close",onClick:U,children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),X?y1.jsxDEV("div",{className:"dialog-foot",children:X},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)}var yX="volter:confirm";function o5(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(yX,{detail:{ask:Q,resolve:U}}))})}function RR(){let[Q,U]=_2.useState(null),[Z,K]=_2.useState("");_2.useEffect(()=>{let B=(O)=>{K(""),U(O.detail)};return window.addEventListener(yX,B),()=>window.removeEventListener(yX,B)},[]);let X=(B)=>{Q?.resolve(B),U(null)},W=Q?.ask,z=!W?.typed||Z===W.typed;return y1.jsxDEV(S8,{open:Boolean(Q),onClose:()=>X(!1),title:W?.title??"",footer:y1.jsxDEV(y1.Fragment,{children:[y1.jsxDEV("button",{type:"button",onClick:()=>X(!1),children:"Cancel"},void 0,!1,void 0,this),y1.jsxDEV("button",{type:"button",className:W?.danger?"danger-button":"primary",disabled:!z,onClick:()=>X(!0),children:W?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[W?.body?y1.jsxDEV("div",{className:"confirm-body",children:W.body},void 0,!1,void 0,this):null,W?.typed?y1.jsxDEV("div",{className:"typed-confirm",children:[y1.jsxDEV("p",{children:["Type ",y1.jsxDEV("code",{children:W.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),y1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${W.typed} to confirm`,value:Z,onChange:(B)=>K(B.target.value),onKeyDown:(B)=>{if(B.key==="Enter"&&z)X(!0)},autoComplete:"off",spellCheck:!1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}var vX="volter:toast";function t2(Q,U="ok"){window.dispatchEvent(new CustomEvent(vX,{detail:{text:Q,kind:U}}))}function OR(){let[Q,U]=_2.useState([]);return _2.useEffect(()=>{let Z=0,K=(X)=>{let{text:W,kind:z}=X.detail,B=++Z;if(U((O)=>[...O.slice(-3),{id:B,text:W,kind:z}]),z!=="error")setTimeout(()=>U((O)=>O.filter((T)=>T.id!==B)),4500)};return window.addEventListener(vX,K),()=>window.removeEventListener(vX,K)},[]),y1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>y1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[y1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),y1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.filter((X)=>X.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function uX({value:Q,label:U,secret:Z}){let[K,X]=_2.useState(!1);return y1.jsxDEV("div",{className:"copy-field",children:[U?y1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,y1.jsxDEV("div",{className:"copy-row",children:[y1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(z)=>z.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),y1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{X(!0),setTimeout(()=>X(!1),1600),t2(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>t2("Your browser would not copy it: select it and copy","error"))},children:K?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function xX({label:Q,items:U}){return y1.jsxDEV("details",{className:"menu row-menu",children:[y1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),y1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?y1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:BR,children:Z.label},Z.label,!1,void 0,this):y1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(K)=>{BR(K),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wR({title:Q,children:U,action:Z}){return y1.jsxDEV("div",{className:"empty-state",children:[y1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?y1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?y1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function IR(){return _2.useEffect(()=>{let Q=(Z)=>{let K=document.querySelector("main.app"),X=Z.target;if(K?.hasAttribute("data-drawer")&&X&&!X.closest(".side")&&!X.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")ZV()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),y1.jsxDEV("button",{type:"button",className:"icon-button drawer-button","aria-label":"Menu",onClick:()=>{document.querySelector("main.app")?.toggleAttribute("data-drawer")},children:"☰"},void 0,!1,void 0,this)}var ZV=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var ER=u0(CR(),1);function mX(Q={}){let U=(K,X)=>Q.tools?`${X} (\`${K}\`)`:`\`${K}\``,Z=["Set up Volter World for this app, so its calls to Stripe, Slack, GitHub, OpenAI and the other services it uses go to local twins instead of the real APIs. The app keeps its real SDKs and code.","",Q.tools?"1. You have the Volter World tools (volter mcp). If the `volter` command is missing, install it: `npm install -g @volter/world`.":"1. Install the command and your agent tooling: `npm install -g @volter/world`, then `volter agents install --yes`.",`2. In the app's folder, ${U("volter world init --install","world_init")}: it detects the vendors the app calls and installs their twins. Show me the vendors it detected and why, before keeping them.`,`3. ${Q.tools?"Start it with world_up":"Start it: `volter world up`"}, then run the tests inside it: ${U("volter world run -- <the test command>","world_run")}. Fix anything that fails because a call went to the real service.`,`4. Tell me what the app did at each vendor (${U("volter world log","world_log")}), and give me the dashboard link (${Q.tools?"world_view":"`volter world view --no-open`, started in the background: it keeps running"}).`];if(Q.platform){let K=Q.world??"<org>/<world>";Z.push(`5. Share it with my team on ${Q.platform}: ${U(`volter login ${Q.platform}`,"platform_login")} gives a link and a code for me to approve in my browser. Once I have, link it with ${U(`volter remote add origin ${K} --create`,"remote_link with create: true")}${Q.world?"":" (ask me for <org>/<world>)"}, then send what the app did: ${U('volter world changeset -m "<what and why>"',"world_changeset")} and ${U("volter world push","world_push")}.`)}return Z.push("","The guide: https://github.com/volter-ai/twin/blob/main/docs/guides/use-with-a-coding-agent.md"),Z.join(`
248
+ `)}var H=u0(wJ(),1),iq="volter.console.token",NJ=document.getElementById("root"),q0=NJ.dataset.base??"/-/console",M0=window.location.origin,w6=(NJ.dataset.worlds??M0).replace(/\/+$/,""),bR=(NJ.dataset.names??"").split(",").filter((Q)=>Q!==""),R6=NJ.dataset.worldOrigin==="1",k8=window.fetch.bind(window),O6="(session)",uR="(pass)",fJ=(Q)=>{try{if(Q&&!R6)sessionStorage.setItem(iq,Q);else sessionStorage.removeItem(iq);localStorage.removeItem(iq)}catch{}},xR="volter.console.portal",hR=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(xR,new URL(Q).origin)}catch{}},HV=()=>{return y8.get("token")??""},o2=()=>{try{let Q=sessionStorage.getItem(xR)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},YV=()=>{let Q=HV();if(R6){if(fJ(""),y8.get("pass"))return uR;let U=new URLSearchParams(window.location.search).has("signin");if(U)try{window.history.replaceState(null,"",window.location.pathname+window.location.hash)}catch{}return Q||(U?"":O6)}if(Q)return fJ(Q),Q;try{return sessionStorage.getItem(iq)??""}catch{return""}};async function Y0(Q,U,Z={}){return k8(`${M0}${U}`,{...Z,headers:{...Z.headers??{},...Q===O6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function L5(Q,U,Z=0){return AR((K)=>Y0(Q,K),U,Z,Q)}var U9=(Q)=>{let U=new Date(Q),Z=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},SR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),nq=(Q)=>Q.operation==="observed"?`observed${Q.provenance==="placeholder"?" (default data)":" (vendor)"}`:Q.receipt?`${Q.receipt.status??""} ${Q.receipt.externalId??""} ${Q.receipt.reason??""}`.trim():Q.provenance==="placeholder"?"default data":"unpushed",mR=(Q)=>Q.actor?`${Q.actor.kind}${Q.actor.id?` ${Q.actor.id}`:""}`:"—",gR=(Q)=>{let U=/^[0-9a-f]{2}-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/.exec(Q??"");return U?{trace:U[1],span:U[2]}:null},lX="volter.console.snapshots",L3=()=>{try{return JSON.parse(sessionStorage.getItem(lX)??"{}")}catch{return{}}},pR=new Map,rX=(Q)=>{if(R6){if(Q.token||Q.readToken)pR.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(lX,JSON.stringify({...L3(),[Q.name]:Q}))}catch{}},cR=(Q)=>pR.get(Q)?.readToken||L3()[Q]?.readToken||"",PJ=(Q)=>{try{let U=L3();delete U[Q],sessionStorage.setItem(lX,JSON.stringify(U))}catch{}},y8=new URLSearchParams(window.location.hash.slice(1)),Q9=y8.get("close")??"";function CJ(Q){if(typeof Q!=="string")return null;let U;try{U=new URL(Q)}catch{return null}return(U.protocol==="http:"||U.protocol==="https:")&&U.origin===Q.replace(/\/+$/,"")?U:null}function dX(Q){let U=CJ(Q);if(!U)return null;let Z=new URL(M0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let K=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!K.test(U.hostname))return null;let X=U.hostname.replace(K,"");return X===Z.hostname||K.test(Z.hostname)&&X===Z.hostname.replace(K,"")?U.origin:null}function WV(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:dX(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...K?{parentOrigin:K}:{}}}{let Q=y8.get("snapshot");if(Q){let U=WV(Q);if(U&&!L3()[U.name])rX(U)}}var lR="volter.console.home",rR=(Q)=>{let U=CJ(Q);if(!U)return null;let Z=new URL(M0).hostname,K=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===K?U.origin:null};{let Q=rR(y8.get("home"));if(Q)try{sessionStorage.setItem(lR,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>y8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var q9=()=>{try{return rR(sessionStorage.getItem(lR))??""}catch{return""}};function iX(Q,U,Z,K){let X=new URLSearchParams({token:U,home:q9()||M0}),W=L3()[Z];if(W)X.set("snapshot",JSON.stringify(W));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${X.toString()}`)}function V8(){return window.location.pathname.slice(q0.length).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var jR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,T6=(Q,U)=>Q&&U&&jR.test(Q)&&jR.test(U)?`${Q}/${U}`:"";function v0(Q){window.history.pushState(null,"",`${q0}/${Q.map(encodeURIComponent).join("/")}`),window.dispatchEvent(new PopStateEvent("popstate"))}function cX(Q,U){let Z=dX(L3()[Q]?.origin);if(Z&&Z!==M0){iX(Z,cR(Q),Q,`${q0}/${U.map(encodeURIComponent).join("/")}`);return}v0(U)}async function VR(){let[Q,U]=V8(),Z=T6(Q,U),K=Z?[Z]:bR;if(K.length===0){let X=await k8(`${M0}/-/ping`).catch(()=>null);K=X?.ok?(await X.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((X)=>{let[W,z,...B]=X.split("/");return B.length===0&&T6(W,z)===X});for(let X of K){let W=await k8(`${M0}/-/${X}/session`,{method:"POST"}).catch(()=>null);if(!W)continue;let z=await W.json().catch(()=>({})),B=CJ(z.origin)?.origin;if(W.status===409&&B&&B!==M0)return window.location.replace(`${B}${q0}/${X}`),"moved";if(W.ok&&z.local)return{token:typeof z.token==="string"&&z.token?z.token:O6}}return null}function zV(){let[Q,U]=A1.useState(YV()),[Z,K]=A1.useState(!1),[X,W]=A1.useState(!1),[z,B]=A1.useState(""),[O,T]=A1.useState(null),[R,L]=A1.useState(null),[M,I]=A1.useState(V8());A1.useEffect(()=>{let v=()=>I(V8());return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)},[]),A1.useEffect(()=>{let[v,r]=V8(),n=T6(v,r),[e,V]=n?n.split("/"):[],s=L3()[Q9];if(!Q9||!Q||!e||!V||!s?.made||s.parent!==`${e}/${V}`||T6(...Q9.split("/"))!==Q9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}Y0(Q,`/-/${e}/${V}/branches/${Q9}`,{method:"DELETE"}).catch(()=>null).then(()=>PJ(Q9))},[Q]);let f=A1.useCallback(async(v)=>{if(L(null),!v){let V=await VR();if(V==="moved")return;if(V){if(K(!0),V.token!==O6)fJ(V.token);U(V.token);return}T(null),W(!0);return}if(R6&&v===O6){let V=await VR();if(V==="moved")return;if(V)K(!0)}if(R6&&v===uR){let[V,s]=V8(),U1=T6(V,s),[Q1,Y1]=U1?U1.split("/"):[],L1=Q1&&Y1?await k8(`${M0}/-/${Q1}/${Y1}/session`,{method:"POST",headers:{"x-volter-pass":y8.get("pass")??""}}).catch(()=>null):null;if(!L1){L(`${M0} did not answer: no session was opened`),T(null);return}if(!L1.ok){L(`${await z5(L1)}. Open it again from the platform.`),T(null);return}hR((await L1.json().catch(()=>({}))).issuer),U(O6);return}if(R6&&v!==O6){let[V,s]=V8(),U1=T6(V,s),[Q1,Y1]=U1?U1.split("/"):[],L1=Q1&&Y1?await k8(`${M0}/-/${Q1}/${Y1}/session`,{method:"POST",headers:{"x-volter-token":v}}).catch(()=>null):null;if(!L1){L(`${M0} did not answer: no session was opened`),T(null);return}if(!L1.ok){let M1=await z5(L1);L(L1.status===401||L1.status===403?`That token does not open ${Q1}/${Y1}.`:L1.status===409?`${Q1}/${Y1}'s session lives at another origin: ${M1}`:`The World could not open a session (${L1.status}): ${M1}`),T(null);return}U(O6);return}let r=R6?new Response(null,{status:404}):await Y0(v,"/-/worlds");if(r.ok){let{worlds:V}=await r.json();T({kind:"admin",worlds:V});return}if(r.status===429){L("You are asking faster than the platform allows — wait a moment and reload."),T(null);return}if(r.status>=500){let V=await r.json().catch(()=>({}));L(`The platform could not list your worlds${V.error?`: ${V.error}`:""}. Reload; if it stays, the status page says what is wrong.`),T(null);return}let n=bR;if(n.length===0){let V=await k8(`${M0}/-/ping`);if(!V.ok){L(`${M0} does not answer as a host`),T(null);return}if(n=(await V.json()).worlds??[],n.length===0){L(`${M0} does not list its worlds: open the console with the World's URL (volter world console <url>/<org>/<world>)`),T(null);return}}let e=[];for(let V of n){let s=await Y0(v,`/-/${V}/twins`);if(s.ok){let U1=await s.json();e.push({name:V,base:`${w6}/${V}`,twins:(U1.twins??[]).map((Q1)=>({vendor:Q1.twin,protocol:Q1.protocol??null,root:Q1.root??null}))})}}if(e.length===0){L("This link or key opens no World here: it was revoked, or it has ended."),T(null);return}T({kind:"world",worlds:e})},[]);A1.useEffect(()=>{f(Q)},[Q,f]);let D=(v)=>O?.kind==="admin"?O.worlds.find((r)=>r.name===v)?.token??Q:Q,[j,k]=A1.useState("");if(!Q||!O&&!R)return H.jsxDEV("main",{children:[H.jsxDEV(rq,{href:`${q0}/`},void 0,!1,void 0,this),Q&&!O&&!R||!Q&&!X?H.jsxDEV("p",{children:"Opening…"},void 0,!1,void 0,this):H.jsxDEV("form",{onSubmit:(v)=>{v.preventDefault(),fJ(z.trim()),U(z.trim())},children:[H.jsxDEV("p",{children:"A host's admin token opens every world it serves; a world's token opens that world."},void 0,!1,void 0,this),H.jsxDEV("label",{children:["Token ",H.jsxDEV("input",{name:"token",type:"password",value:z,onChange:(v)=>B(v.target.value),autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("button",{type:"submit",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);let h=()=>{if(Z){window.location.reload();return}if(R6){let[v,r]=V8(),n=T6(v,r),[e,V]=n?n.split("/"):[],s=()=>window.location.replace(o2()?`${o2()}/`:`${M0}${q0}/${e&&V?`${e}/${V}`:""}?signin`);if(setTimeout(s,2000),e&&V)k8(`${M0}/-/${e}/${V}/session/end`,{method:"POST"}).catch(()=>null).then(s);else s();return}if(O)for(let v of O.worlds)navigator.sendBeacon(`${v.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${v.name}/session/end`);fJ(""),U(""),B(""),T(null),v0([])};if(R||!O)return H.jsxDEV("main",{children:[H.jsxDEV(rq,{href:`${q0}/`},void 0,!1,void 0,this),H.jsxDEV("p",{role:"alert",children:R??"nothing answered"},void 0,!1,void 0,this),o2()?H.jsxDEV("a",{className:"button",href:`${o2()}/`,children:["Back to ",new URL(o2()).host]},void 0,!0,void 0,this):H.jsxDEV("button",{onClick:h,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let[P,C,b,x,u]=M,g=b==="~",i=/^[A-Za-z0-9_-]+$/,m=g||!b||!i.test(b)?void 0:b,J1=u&&i.test(u)?u:void 0,$1=T6(P,C),d=$1?L3()[$1]??null:null,y=(v)=>cR(v)||D(v),E=async(v)=>{let r=dX(v.parentOrigin);if(r&&r!==M0){PJ(v.name),window.location.assign(`${r}${q0}/${v.parent}#close=${encodeURIComponent(v.name)}`);return}if(v.made)await Y0(D(v.parent),`/-/${v.parent}/branches/${v.name}`,{method:"DELETE"}).catch(()=>null),PJ(v.name);v0(v.parent.split("/"))};return H.jsxDEV("main",{className:$1?"app":void 0,children:[H.jsxDEV("header",{children:[$1?H.jsxDEV(IR,{},void 0,!1,void 0,this):null,H.jsxDEV(rq,{href:`${q9()&&q9()!==M0?q9():""}${q0}/`,onClick:(v)=>{if(q9()&&q9()!==M0)return;v.preventDefault(),v0([])}},void 0,!1,void 0,this),H.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[$1?H.jsxDEV(H.Fragment,{children:[H.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),H.jsxDEV("span",{children:$1.split("/")[0]},void 0,!1,void 0,this),H.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),H.jsxDEV("a",{href:`${q0}/${$1}`,className:"crumb-world",onClick:(v)=>{v.preventDefault(),v0($1.split("/"))},children:$1.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m?H.jsxDEV("span",{children:[" / ",m]},void 0,!0,void 0,this):null,g&&x==="trace"?H.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),o2()?H.jsxDEV("a",{href:`${o2()}/${$1?encodeURIComponent($1.split("/")[0]):""}`,title:`Back to the platform at ${new URL(o2()).host}`,className:"back-link",children:["← ",H.jsxDEV("span",{className:"back-text",children:$1?`${$1.split("/")[0]}'s Worlds`:new URL(o2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.jsxDEV("span",{className:"mode",children:Z?"on this machine":d?"a snapshot, read only":j?`signed in as ${j}`:O.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),Z?null:H.jsxDEV("button",{onClick:h,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$1?H.jsxDEV(MV,{name:$1,token:y($1),twin:m,tab:g?x??"overview":"overview",arg:g?J1:void 0,admin:d?null:O.kind==="admin"?Q:null,snapshot:d,onReturn:E,opens:(v)=>!!L3()[v]||O.kind==="admin"&&O.worlds.some((r)=>r.name===v),onRemoved:()=>{f(Q),v0([])},onWho:k},$1,!1,void 0,this):H.jsxDEV(BV,{mode:O,admin:O.kind==="admin"?Q:null,reload:()=>f(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function BV({mode:Q,admin:U,reload:Z}){let[K,X]=A1.useState(""),[W,z]=A1.useState(""),[B,O]=A1.useState(""),[T,R]=A1.useState(null),L=async(j)=>{if(!await o5({title:`Rotate the tokens of ${j}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let k=await Y0(U,`/-/worlds/${j}/rotate`,{method:"POST"}),h=await k.json().catch(()=>({}));R(k.ok?`rotated ${j}: the new tokens are shown once — token ${h.token} · read token ${h.readToken}`:h.error??`answered ${k.status}`),await Z()},M=async(j)=>{let k=await Y0(U,`/-/worlds/${j}`,{method:"DELETE"}),h=await k.json().catch(()=>({}));R(k.ok?`removed ${j}`:h.error??`answered ${k.status}`),await Z()},[I,f]=A1.useState(!1),D=async(j)=>{j.preventDefault(),R(null),f(!0);try{let k=await Y0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:W,vendors:B.split(",").map((P)=>P.trim()).filter(Boolean)})}),h=await k.json();if(!k.ok){R(h.error??`the host answered ${k.status}`);return}R(`provisioned ${h.name}`),z(""),O(""),await Z()}finally{f(!1)}};return H.jsxDEV("section",{"aria-labelledby":"worlds",children:[H.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),H.jsxDEV("p",{className:"lede",children:"A World is a copy of the services your app uses (Stripe, Slack, GitHub…), with none of the real consequences: your app talks to it, and you can see everything it did on each vendor's own screens."},void 0,!1,void 0,this),H.jsxDEV("table",{children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"world"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"address"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"stand-ins for"},void 0,!1,void 0,this),U?H.jsxDEV("th",{children:"actions"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:Q.worlds.map((j)=>H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:H.jsxDEV("a",{href:`${q0}/${j.name}`,onClick:(k)=>{k.preventDefault(),v0(j.name.split("/"))},children:j.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:H.jsxDEV("code",{children:j.base},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:j.twins.map((k)=>F0(k.vendor)).join(", ")||"—"},void 0,!1,void 0,this),U?H.jsxDEV("td",{children:[H.jsxDEV("button",{type:"button","aria-label":`Rotate the tokens of ${j.name}`,onClick:()=>void L(j.name),children:"Rotate tokens"},void 0,!1,void 0,this)," ",H.jsxDEV("button",{type:"button","aria-label":`Remove ${j.name}`,onClick:()=>void o5({title:`Remove ${j.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:j.name}).then((k)=>{if(k)M(j.name)}),children:"Remove world"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},j.name,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?H.jsxDEV("form",{onSubmit:D,"aria-labelledby":"provision",children:[H.jsxDEV("h3",{id:"provision",children:"Provision a world"},void 0,!1,void 0,this),H.jsxDEV("label",{children:["Org ",H.jsxDEV("input",{name:"org",value:K,onChange:(j)=>X(j.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("label",{children:["World ",H.jsxDEV("input",{name:"world",value:W,onChange:(j)=>z(j.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("label",{children:["Twins ",H.jsxDEV("input",{name:"vendors",value:B,onChange:(j)=>O(j.target.value),placeholder:"github, slack",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("button",{type:"submit",disabled:I,children:I?"Provisioning… (a host boots the world; ten seconds or so)":"Provision"},void 0,!1,void 0,this),T?H.jsxDEV("p",{role:"status",children:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):T?H.jsxDEV("p",{role:"status",children:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var gX=[["overview","Dashboard"],["branches","Branches"],["settings","Settings"],["branch","Overview"],["changes","Changes"],["changesets","Changesets"],["activity","Activity"],["vendors","Vendors"],["canvas","All screens"]],AV={dashboard:"overview",mirrors:"vendors",screens:"canvas",timeline:"activity",monitoring:"activity",trace:"activity",operations:"settings"},D8=(Q,U)=>`${w6}/${Q}/${U}/`,kR={verify:"verified",use:"used",issue:"issued",revoke:"revoked",rotate:"rotated",seed:"seeded",upsert:"saved",set:"set",start:"started",finish:"finished",fail:"failed",schedule:"scheduled",deliver:"delivered",like:"liked",follow:"followed",reply:"replied",create:"created",update:"updated",delete:"deleted",record:"recorded",remove:"removed",add:"added",send:"sent",post:"posted",postmessage:"posted",cancel:"canceled",close:"closed",open:"opened",publish:"published",upload:"uploaded",invite:"invited",archive:"archived",merge:"merged",refund:"refunded",capture:"captured",confirm:"confirmed",pay:"paid"};function n5(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),K=Q.subject.type.replace(/[_-]+/g," ").trim(),X=`${K.charAt(0).toUpperCase()}${K.slice(1)}`,W=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),z=U.replace(/[._]+/g," ").trim(),B=W?`${X} seeded`:kR[Z]?`${X} ${kR[Z]}`:`${z.charAt(0).toUpperCase()}${z.slice(1)}`,O=Q.fields??{},T=["title","name","email","text","subject","summary","description"].map((L)=>O[L]).find((L)=>typeof L==="string"&&L.trim()!=="")??null,R=T===null?null:T.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(L,M,I)=>`${M==="!"?"@":M}${I}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:B,label:R===null?null:R.length>80?`${R.slice(0,79)}…`:R}}var aq=(Q)=>/token|password|secret|key|credential/i.test(Q.subject.type)&&Q.subject.id.length>6?`••••${Q.subject.id.slice(-4)}`:Q.subject.id,oq=(Q,U)=>!Q.actor?"":Q.actor.kind==="system"?`by ${F0(U)}`:Q.actor.id?`by ${Q.actor.id}`:Q.actor.kind==="agent"||Q.actor.kind==="app"?"by your app":`by ${Q.actor.kind}`,LV=(Q)=>Q.operation==="observed"||Q.receipt||Q.provenance==="placeholder"?nq(Q):null;function MV({name:Q,token:U,twin:Z,tab:K,arg:X,admin:W,snapshot:z,onReturn:B,opens:O,onRemoved:T,onWho:R}){let[L,M]=A1.useState("pending"),[I,f]=A1.useState(null),[D,j]=A1.useState(0),[k,h]=A1.useState(null);A1.useEffect(()=>{let Q1=!0;return f(null),Y0(U,`/-/${Q}/session`,{method:"POST"}).then(async(Y1)=>{let L1=await Y1.json().catch(()=>({}));if(hR(L1.issuer),L1.who)R?.(L1.who);h(typeof L1.signsAs==="string"?L1.signsAs:null);let M1=CJ(L1.origin)?.origin;if(Y1.status===409&&M1&&M1!==M0){iX(M1,U,Q);return}if(!Q1)return;if(M(!Y1.ok?"unknown":L1.scope==="read"?"read":L1.scope==="write"?"write":"unknown"),!Y1.ok)f(L1.error??`answered ${Y1.status}`)}).catch((Y1)=>{if(Q1)M("unknown"),f(`the World did not answer: ${Y1 instanceof Error?Y1.message:String(Y1)}`)}),()=>{Q1=!1}},[Q,U,D]);let P=I?{state:"error",error:I}:L==="pending"?{state:"pending"}:{state:"ok",scope:L},C=L==="write",b=(Q1)=>{if(Q1.status===403)M("read")},[x,u]=A1.useState(0);A1.useEffect(()=>{let Q1=setInterval(()=>{if(!document.hidden)u((Y1)=>Y1+1)},5000);return()=>clearInterval(Q1)},[]);let[g,i]=A1.useState(0),m=L5(U,`/-/${Q}/clock`,x+g),J1=L5(U,`/-/${Q}/twins`),$1=L5(U,`/-/${Q}/branches`,g),d=L5(U,`/-/${Q}/map`,Math.floor(x/2)),y=!($1.state==="error"&&($1.status===404||$1.status===405));if(Z)return H.jsxDEV(cV,{name:Q,token:U,twin:Z},void 0,!1,void 0,this);let E=gX.some(([Q1])=>Q1===K)?K:AV[K]??"overview",v=J1.state==="ok"?J1.data.twins.map((Q1)=>Q1.twin):[],r=(Q1)=>d.state==="ok"?(d.data.twins.find((Y1)=>Y1.twin===Q1)?.resources??[]).reduce((Y1,L1)=>Y1+L1.count,0):0,n=E==="vendors"&&X?X:void 0,e=()=>{M("pending"),j((Q1)=>Q1+1)};if(E==="canvas"||E==="vendors"&&!n)return H.jsxDEV(bV,{name:Q,twins:J1,session:P,retry:e,snapshot:z,back:()=>v0(Q.split("/"))},void 0,!1,void 0,this);let V=n?F0(n):gX.find(([Q1])=>Q1===E)?.[1]??"",s=(Q1)=>(Y1)=>{Y1.preventDefault(),v0([...Q.split("/"),...Q1])},U1=(Q1,Y1=gX.find(([L1])=>L1===Q1)?.[1]??Q1)=>{let L1=E===Q1&&!n;return H.jsxDEV("a",{href:`${q0}/${Q}/~/${Q1}`,"aria-current":L1?"page":void 0,className:L1?"on":void 0,onClick:s(["~",Q1]),children:Y1},void 0,!1,void 0,this)};return H.jsxDEV("div",{className:"shell",children:[H.jsxDEV("aside",{className:"side",children:[H.jsxDEV("nav",{"aria-label":`${Q} pages`,className:"side-nav",children:[H.jsxDEV(TV,{name:Q},void 0,!1,void 0,this),H.jsxDEV("p",{className:"side-group",children:"World"},void 0,!1,void 0,this),U1("overview"),y?U1("branches"):null,U1("settings"),H.jsxDEV(RV,{name:Q,snapshot:z,branches:y?$1:null,opens:O},void 0,!1,void 0,this),H.jsxDEV("p",{className:"side-group",children:"Branch"},void 0,!1,void 0,this),U1("branch"),U1("changes"),U1("changesets"),U1("activity"),H.jsxDEV("p",{className:"side-group",children:"Vendors"},void 0,!1,void 0,this),H.jsxDEV("a",{href:`${q0}/${Q}/~/canvas`,className:"all-screens",onClick:s(["~","canvas"]),children:[H.jsxDEV("span",{className:"mark","aria-hidden":"true",children:"▦"},void 0,!1,void 0,this),H.jsxDEV("span",{children:"All screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("ul",{className:"side-vendors",children:v.map((Q1)=>H.jsxDEV("li",{children:H.jsxDEV("a",{href:`${q0}/${Q}/~/vendors/${Q1}`,"aria-current":n===Q1?"page":void 0,className:n===Q1?"on":void 0,onClick:s(["~","vendors",Q1]),children:[H.jsxDEV(A5,{vendor:Q1},void 0,!1,void 0,this),H.jsxDEV("span",{children:F0(Q1)},void 0,!1,void 0,this),H.jsxDEV("span",{className:"count",children:r(Q1)||""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},Q1,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("div",{className:"side-foot",children:H.jsxDEV(MR,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("div",{className:"content",children:[z?H.jsxDEV("div",{className:"snapshot",role:"region","aria-label":"Snapshot",children:[H.jsxDEV("span",{children:["You are looking at ",H.jsxDEV("strong",{children:z.parent},void 0,!1,void 0,this)," as it was at ",H.jsxDEV(h0,{iso:z.at},void 0,!1,void 0,this)," · a read-only copy (read-only snapshot) · ",z.expiresAt?Date.parse(z.expiresAt)<=Date.now()?H.jsxDEV(H.Fragment,{children:["gone since ",H.jsxDEV(h0,{iso:z.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H.jsxDEV(H.Fragment,{children:["goes away ",H.jsxDEV(h0,{iso:z.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"kept until you go back"]},void 0,!0,void 0,this),H.jsxDEV("button",{type:"button",onClick:()=>void B(z),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.jsxDEV("div",{className:"content-head",children:[H.jsxDEV("h2",{id:"world",children:[n?H.jsxDEV("span",{className:"vendor-cell",children:[H.jsxDEV(A5,{vendor:n},void 0,!1,void 0,this),V]},void 0,!0,void 0,this):V,L==="read"?H.jsxDEV(H.Fragment,{children:[" ",H.jsxDEV("span",{className:"badge read-only",title:"This token reads the World; it changes nothing",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("div",{className:"head-actions",children:[H.jsxDEV(IV,{name:Q,token:U,clock:m,canWrite:C&&!z,onChanged:()=>i((Q1)=>Q1+1),refused:b},void 0,!1,void 0,this),!z&&C&&y&&$1.state!=="loading"?H.jsxDEV(fV,{name:Q,token:U,clock:m,refused:b},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("div",{role:"region","aria-labelledby":"world",className:"panel",children:[E==="overview"?H.jsxDEV(wV,{name:Q,token:U,map:d,vendors:v,twins:J1,session:P,branches:y?$1:null,canWrite:C&&!z,tick:x,...z?{snapshotOf:z.parent}:{}},void 0,!1,void 0,this):null,E==="branch"?H.jsxDEV(OV,{name:Q,token:U,map:d,vendors:v,tick:x},void 0,!1,void 0,this):null,E==="vendors"?H.jsxDEV(CV,{name:Q,token:U,twins:J1,session:P,retry:e,selected:n},void 0,!1,void 0,this):null,E==="activity"&&K==="trace"?H.jsxDEV(yV,{name:Q,token:U,id:X??""},void 0,!1,void 0,this):null,E==="activity"&&K!=="trace"?H.jsxDEV(DV,{name:Q,token:U,vendors:v},void 0,!1,void 0,this):null,E==="changes"?H.jsxDEV(mV,{name:Q,token:U},void 0,!1,void 0,this):null,E==="changesets"?H.jsxDEV(xV,{name:Q,token:U,signsAs:k,canWrite:C&&!z,rooted:d.state==="ok"?d.data.twins.filter((Q1)=>Q1.root).map((Q1)=>Q1.twin):[],...X?{open:X}:{},refused:b},void 0,!1,void 0,this):null,E==="branches"?H.jsxDEV(PV,{name:Q,token:U,canWrite:C,branches:y?$1:null,opens:O,onBranchesChanged:()=>i((Q1)=>Q1+1),refused:b},void 0,!1,void 0,this):null,E==="settings"?H.jsxDEV(pV,{name:Q,token:U,admin:W,canWrite:C,refused:b,onRemoved:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function DR({text:Q}){return H.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>t2("Copied the prompt: paste it into your coding agent"),()=>t2("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}function TV({name:Q}){return H.jsxDEV("details",{className:"menu connect-side",children:[H.jsxDEV("summary",{className:"button connect-button",children:"Connect"},void 0,!1,void 0,this),o2()?H.jsxDEV("div",{className:"popover",children:[H.jsxDEV("p",{children:"Point your app's SDKs here, with a key made on the platform; its calls to these vendors land in this World:"},void 0,!1,void 0,this),H.jsxDEV("pre",{children:[w6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),H.jsxDEV("a",{className:"button",href:`${o2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this),H.jsxDEV("p",{className:"mode",children:["Or push a World from your machine: ",H.jsxDEV("code",{children:["volter remote add origin ",Q]},void 0,!0,void 0,this),", then ",H.jsxDEV("code",{children:"volter world push"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),H.jsxDEV(DR,{text:mX({platform:o2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H.jsxDEV("div",{className:"popover",children:[H.jsxDEV("p",{children:"Run your app in this World; its calls to these vendors land here:"},void 0,!1,void 0,this),H.jsxDEV("pre",{children:"volter world run -- npm start"},void 0,!1,void 0,this),H.jsxDEV("p",{className:"mode",children:["Or point an SDK at ",H.jsxDEV("code",{children:[w6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this)," with the token in ",H.jsxDEV("code",{children:".volter/token"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),H.jsxDEV(DR,{text:mX()},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function RV({name:Q,snapshot:U,branches:Z,opens:K}){let X=(B)=>B.split("/").pop()??B,W=U?.parent??Q,z=Z?.state==="ok"?Z.data.branches.filter((B)=>B.name!==Q):[];return H.jsxDEV("details",{className:"menu branch-picker",children:[H.jsxDEV("summary",{children:[H.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:H.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("span",{className:"branch-name",children:U?X(Q):Z?.state==="ok"&&Z.data.checkedOut||X(W)},void 0,!1,void 0,this),H.jsxDEV("span",{className:"badge",children:U?"snapshot":"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("div",{className:"popover",children:[H.jsxDEV("p",{className:"mode",children:"Branch"},void 0,!1,void 0,this),H.jsxDEV("ul",{className:"branch-list",children:[H.jsxDEV("li",{children:H.jsxDEV("a",{href:`${q0}/${W}`,"aria-current":!U?"page":void 0,onClick:(B)=>{B.preventDefault(),v0(W.split("/"))},children:[X(W)," ",H.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U?H.jsxDEV("li",{children:H.jsxDEV("a",{href:`${q0}/${Q}`,"aria-current":"page",onClick:(B)=>B.preventDefault(),children:[X(Q)," ",H.jsxDEV("span",{className:"mode",children:["as of ",H.jsxDEV(h0,{iso:U.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,z.map((B)=>H.jsxDEV("li",{children:K(B.name)?H.jsxDEV("a",{href:`${q0}/${B.name}`,onClick:(O)=>{O.preventDefault(),cX(B.name,B.name.split("/"))},children:[X(B.name)," ",H.jsxDEV("span",{className:"mode",children:B.at?.instant?H.jsxDEV(H.Fragment,{children:["as of ",H.jsxDEV(h0,{iso:B.at.instant},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H.jsxDEV("span",{className:"mode",title:"Its token was handed to whoever made it",children:X(B.name)},void 0,!1,void 0,this)},B.name,!1,void 0,this))]},void 0,!0,void 0,this),Z?.state==="ok"&&(Z.data.named?.length??0)>1?H.jsxDEV(H.Fragment,{children:[H.jsxDEV("p",{className:"mode",children:"This World's branches"},void 0,!1,void 0,this),H.jsxDEV("ul",{className:"branch-list",children:Z.data.named.map((B)=>H.jsxDEV("li",{children:H.jsxDEV("span",{"aria-current":B.name===Z.data.checkedOut?"true":void 0,children:[B.name," ",H.jsxDEV("span",{className:"mode",children:B.name===Z.data.checkedOut?"served here":H.jsxDEV("code",{children:["volter world checkout ",B.name]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},B.name,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z?.state==="ok"&&z.length===0&&!U&&(Z.data.named?.length??0)<=1?H.jsxDEV("p",{className:"mode",children:"No branches yet. “View an earlier moment…” opens one."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function OV({name:Q,token:U,map:Z,vendors:K,tick:X}){let W=L5(U,`/-/${Q}/timeline?limit=500`,Math.floor(X/3)),z=Z.state==="ok"?Z.data.twins:[],B=(P)=>(C)=>{C.preventDefault(),v0([...Q.split("/"),...P])},O=Date.now(),T=24,R=3600000,L=W.state==="ok"?W.data.entries:[],M=K.map((P)=>{let C=Array(24).fill(0);for(let b of L){if(b.twin!==P)continue;let x=Date.parse(b.entry.occurredAt),u=23-Math.floor((O-x)/3600000);if(u>=0&&u<24)C[u]+=1}return{vendor:P,counts:C}}),I=Array(24).fill(0).map((P,C)=>M.reduce((b,x)=>b+x.counts[C],0)),f=Math.max(1,...I),D=720,j=160,k=30,h=["var(--volter-data-base)","#7c5cff","#e3572b","#1f9d6b","#d9a400","#2b7de3","#c2417e","#6b7280","#0ea5a4"];return H.jsxDEV(H.Fragment,{children:[H.jsxDEV("div",{className:"block",children:H.jsxDEV("table",{className:"dense services","aria-label":"Vendors on this branch",children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Details"},void 0,!1,void 0,this),H.jsxDEV("th",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:K.map((P)=>{let C=z.find((x)=>x.twin===P),b=[...C?.resources??[]].filter((x)=>x.count>0).sort((x,u)=>u.count-x.count);return H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:H.jsxDEV("span",{className:"vendor-cell",children:[H.jsxDEV(A5,{vendor:P},void 0,!1,void 0,this),H.jsxDEV("a",{href:`${q0}/${Q}/~/vendors/${P}`,onClick:B(["~","vendors",P]),children:F0(P)},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:C?.root?"badge rooted":"badge",children:C?.root?"connected":"stand-in"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{className:"mode",children:b.length?b.slice(0,4).map((x)=>J9(x.count,x.type)).join(" · "):"nothing yet"},void 0,!1,void 0,this),H.jsxDEV("td",{className:"num",children:C?.mirror?H.jsxDEV("a",{href:`${q0}/${Q}/~/vendors/${P}`,onClick:B(["~","vendors",P]),children:"Screens"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},P,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("div",{className:"block chart-block",children:[H.jsxDEV("div",{className:"block-head",children:[H.jsxDEV("h3",{children:"Activity, last 24 hours"},void 0,!1,void 0,this),H.jsxDEV("a",{href:`${q0}/${Q}/~/activity`,onClick:B(["~","activity"]),children:"All activity"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV(B5,{load:W,what:"the activity"},void 0,!1,void 0,this),W.state==="ok"?H.jsxDEV("div",{className:"pad",children:[H.jsxDEV("svg",{viewBox:"0 0 720 182",className:"chart",role:"img","aria-label":`Writes per hour over the last day: ${I.reduce((P,C)=>P+C,0)} in all`,children:[[0.5,1].map((P)=>H.jsxDEV("line",{x1:0,x2:720,y1:160-P*160,y2:160-P*160,className:"grid"},P,!1,void 0,this)),H.jsxDEV("line",{x1:0,x2:720,y1:160,y2:160,className:"axis"},void 0,!1,void 0,this),I.map((P,C)=>{let b=160;return H.jsxDEV("g",{children:M.map((x,u)=>{let g=x.counts[C]/f*152;if(g===0)return null;return b-=g,H.jsxDEV("rect",{x:C*30+2,y:b,width:26,height:g,fill:h[u%h.length],rx:2,children:H.jsxDEV("title",{children:`${F0(x.vendor)}: ${x.counts[C]} in the hour ${23-C===0?"now":`${23-C}h ago`}`},void 0,!1,void 0,this)},x.vendor,!1,void 0,this)})},C,!1,void 0,this)}),[0,6,12,18,23].map((P)=>H.jsxDEV("text",{x:P*30+15,y:176,className:"tick",children:23-P===0?"now":`-${23-P}h`},P,!1,void 0,this))]},void 0,!0,void 0,this),H.jsxDEV("ul",{className:"legend",children:M.filter((P)=>P.counts.some((C)=>C>0)).map((P)=>H.jsxDEV("li",{children:[H.jsxDEV("span",{className:"swatch",style:{background:h[K.indexOf(P.vendor)%h.length]}},void 0,!1,void 0,this),F0(P.vendor)," ",H.jsxDEV("span",{className:"mode",children:P.counts.reduce((C,b)=>C+b,0)},void 0,!1,void 0,this)]},P.vendor,!0,void 0,this))},void 0,!1,void 0,this),I.every((P)=>P===0)?H.jsxDEV("p",{className:"mode",children:"Nothing was written in the last day. Run your app in this World and its calls show up here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var pX=0.2;function wV({name:Q,token:U,map:Z,vendors:K,twins:X,session:W,branches:z,canWrite:B,tick:O,snapshotOf:T}){let R=L5(U,`/-/${Q}/diff`,Math.floor(O/2)),L=L5(U,`/-/${Q}/timeline?limit=8`,O),M=Z.state==="ok"?Z.data.twins:[],I=L.state==="ok"?L.data.entries:[],f=X.state==="ok"?X.data.twins.filter((P)=>P.mirror).map((P)=>P.twin):[],D=(P)=>(C)=>{C.preventDefault(),v0([...Q.split("/"),...P])},j=(P)=>{let C=[...M.find((b)=>b.twin===P)?.resources??[]].filter((b)=>b.count>0).sort((b,x)=>x.count-b.count);return C.length?C.slice(0,2).map((b)=>J9(b.count,b.type)).join(" · "):"empty"},k=R.state==="ok"?R.data.changes.length:null,h=z?.state==="ok"?z.data.branches:[];return H.jsxDEV("div",{className:"dash",children:[H.jsxDEV("section",{className:"block dash-screens","aria-labelledby":"screens-head",children:[H.jsxDEV("div",{className:"block-head",children:[H.jsxDEV("h3",{id:"screens-head",children:["Screens ",H.jsxDEV("span",{className:"badge live",children:"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("span",{className:"mode",children:[K.length," vendor",K.length===1?"":"s",k!==null?H.jsxDEV(H.Fragment,{children:[" · ",H.jsxDEV("a",{href:`${q0}/${Q}/~/changes`,onClick:D(["~","changes"]),children:[k," change",k===1?"":"s"," since start"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("a",{className:"button",href:`${q0}/${Q}/~/canvas`,onClick:D(["~","canvas"]),children:"Open all screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.state==="ok"?H.jsxDEV("ul",{className:"thumbs",children:K.map((P)=>H.jsxDEV("li",{children:H.jsxDEV("a",{href:`${q0}/${Q}/~/vendors/${P}`,onClick:D(["~","vendors",P]),"aria-label":`${F0(P)}'s screens`,children:[H.jsxDEV("span",{className:"thumb",children:[f.includes(P)?H.jsxDEV("iframe",{title:`${F0(P)} preview`,src:D8(Q,P),loading:"lazy",tabIndex:-1,style:{width:`${100/pX}%`,height:`${100/pX}%`,transform:`scale(${pX})`}},void 0,!1,void 0,this):H.jsxDEV("span",{className:"thumb-none",children:"No screens"},void 0,!1,void 0,this),H.jsxDEV("span",{className:M.find((C)=>C.twin===P)?.root?"badge rooted thumb-status":"badge thumb-status",children:M.find((C)=>C.twin===P)?.root?"connected":"stand-in"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("span",{className:"thumb-foot",children:[H.jsxDEV(A5,{vendor:P},void 0,!1,void 0,this),H.jsxDEV("b",{children:F0(P)},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mode",children:j(P)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},P,!1,void 0,this))},void 0,!1,void 0,this):H.jsxDEV("p",{className:"mode pad",children:W.state==="error"?`The World did not open its screens: ${W.error}`:"Opening…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("div",{className:"dash-side",children:z?H.jsxDEV("section",{className:"block","aria-labelledby":"branches-head",children:[H.jsxDEV("div",{className:"block-head",children:[H.jsxDEV("h3",{id:"branches-head",children:"Branches"},void 0,!1,void 0,this),H.jsxDEV("a",{href:`${q0}/${Q}/~/branches`,onClick:D(["~","branches"]),children:"All"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("ul",{className:"mini-feed",children:[H.jsxDEV("li",{children:[H.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:H.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mini-what",children:T?H.jsxDEV(H.Fragment,{children:[H.jsxDEV("b",{children:Q.split("/")[1]},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"badge",children:"snapshot"},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:["of ",T.split("/")[1]]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):H.jsxDEV(H.Fragment,{children:[H.jsxDEV("b",{children:Q.split("/")[1]},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"badge",children:"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.slice(0,3).map((P)=>H.jsxDEV("li",{children:[H.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:H.jsxDEV("path",{fill:"currentColor",d:"M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm0 2.122a2.25 2.25 0 1 0-1.5 0v5.256a2.25 2.25 0 1 0 1.5 0V9.5h4.25A2.25 2.25 0 0 0 11.5 7.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75H5V5.372ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm6.5-9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mini-what",children:[P.name.split("/").pop()," ",H.jsxDEV("span",{className:"mode",children:P.at?.instant?`as of ${new Date(P.at.instant).toLocaleString()}`:"copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},P.name,!0,void 0,this))]},void 0,!0,void 0,this),B?H.jsxDEV("p",{className:"mode pad",children:"“View an earlier moment…” above opens a branch as the World was then."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),H.jsxDEV("section",{className:"block dash-activity","aria-labelledby":"activity-head",children:[H.jsxDEV("div",{className:"block-head",children:[H.jsxDEV("h3",{id:"activity-head",children:"Recent activity"},void 0,!1,void 0,this),H.jsxDEV("a",{href:`${q0}/${Q}/~/activity`,onClick:D(["~","activity"]),children:"View all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV(B5,{load:L,what:"the activity"},void 0,!1,void 0,this),L.state==="ok"&&I.length===0?H.jsxDEV("div",{className:"empty-block",children:[H.jsxDEV("strong",{children:"No activity yet"},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mode",children:"Run your app in this World and its calls show up here."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H.jsxDEV("ul",{className:"mini-feed",children:I.map((P)=>{let C=n5(P.entry);return H.jsxDEV("li",{children:[H.jsxDEV(A5,{vendor:P.twin},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mini-what",children:[H.jsxDEV("strong",{children:C.what},void 0,!1,void 0,this),C.label?H.jsxDEV("span",{className:"mode",children:[" ",C.label]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("span",{className:"mode num",title:P.entry.occurredAt,children:dq(P.entry.occurredAt)},void 0,!1,void 0,this)]},E4(P),!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function IV({name:Q,token:U,clock:Z,canWrite:K,onChanged:X,refused:W}){let[z,B]=A1.useState(!1),[O,T]=A1.useState(""),[R,L]=A1.useState(""),[M,I]=A1.useState(null),[f,D]=A1.useState(!1),j=Z.state==="ok"?Z.data:null,k=async(b,x,u)=>{D(!0),I(null);try{let g=await Y0(U,`/-/${Q}/${x}`,{method:x==="clock"?"PUT":"POST",body:JSON.stringify(u)});if(!g.ok){W(g),I({ok:!1,text:await z5(g)});return}let i=await g.json();I({ok:!0,text:`${b} — the World is at ${new Date(i.at).toLocaleString()}`}),B(!1),X()}catch(g){I({ok:!1,text:`the World did not answer: ${g instanceof Error?g.message:String(g)}`})}finally{D(!1)}},h=(b)=>{b.preventDefault();let x=new Date(O);if(Number.isNaN(x.getTime())){I({ok:!1,text:"Pick a date and time."});return}if(j&&x.getTime()<Date.parse(j.at)){I({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(j.at).toLocaleString()}.`});return}k("Clock set","clock",{at:x.toISOString()})},P=(b,x)=>{k(`Advanced ${x}`,"clock/advance",{by:b})},C=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return H.jsxDEV("div",{className:`clock${j?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[H.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?H.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?H.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):j.frozen?H.jsxDEV(H.Fragment,{children:[H.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",H.jsxDEV("strong",{children:H.jsxDEV(h0,{iso:j.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H.jsxDEV(H.Fragment,{children:["World time ",H.jsxDEV("strong",{children:H.jsxDEV(h0,{iso:j.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:"· real time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K&&j?H.jsxDEV("details",{className:"clock-more",children:[H.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),H.jsxDEV("div",{className:"popover",children:[H.jsxDEV("p",{className:"mode",children:"Move this World's clock forward to see what happens later: renewals, expiries, scheduled sends. Like a test clock, it only moves forward; to look back, use “View an earlier moment…”."},void 0,!1,void 0,this),H.jsxDEV("div",{className:"clock-controls",children:[H.jsxDEV("button",{type:"button","aria-expanded":z,onClick:()=>{B(!z),T(U9(SR(j.at))),I(null)},children:"Set time…"},void 0,!1,void 0,this),H.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[H.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),C.map(([b,x])=>H.jsxDEV("button",{type:"button","aria-label":`Advance ${x}`,disabled:f||!j.frozen,title:j.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>P(b,x),children:x},b,!1,void 0,this)),H.jsxDEV("form",{className:"inline",onSubmit:(b)=>{if(b.preventDefault(),!/^\d+[smhd]$/.test(R.trim())){I({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}P(R.trim(),`by ${R.trim()}`)},children:[H.jsxDEV("label",{className:"sr",children:["Advance by ",H.jsxDEV("input",{name:"advanceBy",value:R,onChange:(b)=>L(b.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!j.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("button",{type:"submit",disabled:f||!j.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!j.frozen?H.jsxDEV("p",{className:"mode",children:"The World runs on real time. Set a time to start simulating; then advance it."},void 0,!1,void 0,this):null,z?H.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:h,noValidate:!0,children:[H.jsxDEV("label",{children:["World time ",H.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:O,min:U9(SR(j.at)),onChange:(b)=>T(b.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),H.jsxDEV("button",{type:"submit",disabled:f,children:"Set time"},void 0,!1,void 0,this),H.jsxDEV("button",{type:"button",onClick:()=>B(!1),children:"Cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,M?H.jsxDEV("p",{role:M.ok?"status":"alert",children:M.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function fV({name:Q,token:U,clock:Z,refused:K}){let[X,W]=A1.useState(!1),[z,B]=A1.useState(""),[O,T]=A1.useState(null),[R,L]=A1.useState(!1),M=Z.state==="ok"?Z.data.at:new Date().toISOString(),I=A1.useRef(null);return A1.useEffect(()=>{if(!X)return;let D=(k)=>{if(k.key==="Escape"&&!document.querySelector("dialog[open]"))W(!1),I.current?.querySelector("button")?.focus()},j=(k)=>{if(!I.current?.contains(k.target))W(!1)};return document.addEventListener("keydown",D),document.addEventListener("click",j),()=>{document.removeEventListener("keydown",D),document.removeEventListener("click",j)}},[X]),H.jsxDEV("div",{className:"as-of",ref:I,children:[H.jsxDEV("button",{type:"button","aria-expanded":X,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{W(!X),B(U9(M)),T(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),X?H.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(D)=>{D.preventDefault(),T(null);let j=new Date(z);if(Number.isNaN(j.getTime())){T("Pick a date and time.");return}if(j.getTime()>Date.parse(M)){T(`That is after the World's present (${new Date(M).toLocaleString()}); a snapshot looks back.`);return}L(!0);try{let k=await Y0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:j.toISOString()},ttl:3600})});if(!k.ok){K(k),T(await z5(k));return}let h=await k.json();rX({name:h.name,parent:Q,token:h.token,readToken:h.readToken,at:j.toISOString(),expiresAt:h.expiresAt??null,parentOrigin:M0,made:!0});let P=CJ(h.origin)?.origin;if(P&&P!==M0){iX(P,h.readToken,h.name,`${q0}/${h.name}`);return}v0(h.name.split("/"))}catch(k){T(`the World did not answer: ${k instanceof Error?k.message:String(k)}`)}finally{L(!1)}},noValidate:!0,children:[H.jsxDEV("label",{children:["As of ",H.jsxDEV("input",{name:"asOf",type:"datetime-local",value:z,max:U9(M),onChange:(D)=>B(D.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("button",{type:"submit",disabled:R,children:R?"Opening…":"Open snapshot"},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mode",children:"Opens a read-only copy of this World as it was then; the copy goes away within the hour."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,O?H.jsxDEV("p",{role:"alert",children:O},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function PV({name:Q,token:U,canWrite:Z,branches:K,opens:X,onBranchesChanged:W,refused:z}){let B=L5(U,`/-/${Q}/map`),[O,T]=A1.useState(null),R=async(M)=>{if(!await o5({title:`Delete the branch ${M}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Delete branch",danger:!0}))return;let I=await Y0(U,`/-/${Q}/branches/${M}`,{method:"DELETE"}).catch((f)=>f);if(I instanceof Error){T(`delete ${M}: the World did not answer (${I.message})`);return}if(!I.ok){z(I),T(`delete ${M}: ${await z5(I)}`);return}PJ(M),T(`deleted ${M}`),W()},L=B.state==="ok"?B.data.twins.reduce((M,I)=>M+I.resources.reduce((f,D)=>f+D.count,0),0):0;if(K)return H.jsxDEV(NV,{name:Q,token:U,canWrite:Z,branches:K,opens:X,note:O,remove:R,onChanged:W,refused:z},void 0,!1,void 0,this);return H.jsxDEV(H.Fragment,{children:[H.jsxDEV("h3",{children:"Map"},void 0,!1,void 0,this),H.jsxDEV(B5,{load:B,what:"the World's map"},void 0,!1,void 0,this),B.state==="ok"?B.data.twins.length===0?H.jsxDEV("p",{children:"This World holds no twins."},void 0,!1,void 0,this):H.jsxDEV(H.Fragment,{children:[H.jsxDEV("p",{className:"mode",children:[B.data.twins.length," twin",B.data.twins.length===1?"":"s"," · ",L," resource",L===1?"":"s"]},void 0,!0,void 0,this),H.jsxDEV("ul",{className:"map","aria-label":"Twins in this World",children:B.data.twins.map((M)=>{let I=[...M.resources].sort((f,D)=>D.count-f.count);return H.jsxDEV("li",{className:"card","aria-labelledby":`map-${M.twin}`,children:[H.jsxDEV("div",{className:"card-head",children:[H.jsxDEV("h4",{id:`map-${M.twin}`,className:"vendor",children:M.twin},void 0,!1,void 0,this),H.jsxDEV("span",{className:M.root?"badge rooted":"badge",children:M.root?"rooted":"simulated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("p",{className:"mode",children:[M.root?H.jsxDEV(H.Fragment,{children:["rooted at ",H.jsxDEV("code",{children:M.root.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"simulated — no vendor behind it"," · position ",M.position]},void 0,!0,void 0,this),I.length===0?H.jsxDEV("p",{className:"mode",children:"Holds nothing yet."},void 0,!1,void 0,this):H.jsxDEV("ul",{className:"resources",children:[I.slice(0,6).map((f)=>H.jsxDEV("li",{children:[H.jsxDEV("span",{children:f.type},void 0,!1,void 0,this)," ",H.jsxDEV("strong",{children:f.count},void 0,!1,void 0,this)]},f.type,!0,void 0,this)),I.length>6?H.jsxDEV("li",{className:"mode",children:["+",I.length-6," more types"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("p",{className:"card-actions",children:[M.mirror?H.jsxDEV("a",{className:"button",href:D8(Q,M.twin),target:"_blank",rel:"noopener noreferrer",children:["Open ",M.twin]},void 0,!0,void 0,this):H.jsxDEV("span",{className:"mode",children:"no mirror"},void 0,!1,void 0,this),H.jsxDEV("a",{href:`${q0}/${Q}/${M.twin}`,"aria-label":`Log and tree of ${M.twin}`,onClick:(f)=>{f.preventDefault(),v0([...Q.split("/"),M.twin])},children:"Log & tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},M.twin,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function NV({name:Q,token:U,canWrite:Z,branches:K,opens:X,note:W,remove:z,onChanged:B,refused:O}){let T=(d)=>d.split("/").pop()??d,R=K.state==="ok"?K.data.branches:[],[L,M]=A1.useState(!1),[I,f]=A1.useState(!1),[D,j]=A1.useState(null),[k,h]=A1.useState(""),[P,C]=A1.useState("now"),[b,x]=A1.useState(""),[u,g]=A1.useState("24"),i=async(d,y)=>{let E=await Y0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify(d)}).catch(()=>null);if(!E)return`${M0} did not answer`;if(!E.ok)return O(E),await z5(E);let v=await E.json();return rX({name:v.name,parent:Q,token:v.token??"",readToken:v.readToken,at:y,expiresAt:v.expiresAt??null,parentOrigin:M0,...v.origin?{origin:v.origin}:{}}),v},m=async(d)=>{d.preventDefault(),j(null);let y=P==="at"?new Date(b):null;if(y&&Number.isNaN(y.getTime())){j("Pick a date and time, or make it as of now.");return}if(y&&y.getTime()>Date.now()){j("A branch is made as of now or a moment before it.");return}let E=Math.round(Number(u)*3600);f(!0);let v=await i({ttl:E,...y?{at:{instant:y.toISOString()}}:{live:!0},...k.trim()?{label:k.trim()}:{}},(y??new Date).toISOString());if(f(!1),typeof v==="string"){j(v);return}M(!1),h(""),t2(`Made ${T(v.name)}`),B()},J1=async(d)=>{if(!await o5({title:`Reset ${T(d.name)} to ${T(Q)}?`,body:`A fresh copy of ${T(Q)} as it is now replaces it, with the same label and the time it had left; what was written to it goes. The copy has a new address and new keys: an app, a CI job or a pull request's preview that holds this branch's must be given the new one.`,action:"Reset branch",danger:!0}))return;let y=d.expiresAt?Math.max(3600,Math.round((Date.parse(d.expiresAt)-Date.now())/1000)):86400,E=T(d.name).startsWith(`${T(Q)}-`)?T(d.name).slice(T(Q).length+1):"",v=/^([a-z0-9][a-z0-9-]*)-[0-9a-f]{4}$/.exec(E)?.[1],r=await i({ttl:y,live:!0,...v&&!v.startsWith("at-")?{label:v}:{}},new Date().toISOString());if(typeof r==="string"){t2(`Reset ${T(d.name)}: ${r}`,"error");return}let n=await Y0(U,`/-/${Q}/branches/${d.name}`,{method:"DELETE"}).catch(()=>null);if(n?.ok)PJ(d.name);t2(n?.ok?`Reset: ${T(r.name)} is ${T(Q)} as it is now`:`Made ${T(r.name)}; ${T(d.name)} was not removed`),B()},$1=(d)=>[...X(d.name)?[{label:"Compare with parent",onSelect:()=>cX(d.name,[...d.name.split("/"),"~","changes"])}]:[],...Z?[{label:"Reset to parent…",onSelect:()=>void J1(d)},{label:"Delete…",danger:!0,onSelect:()=>void z(d.name)}]:[]];return H.jsxDEV("div",{"aria-labelledby":"branches",children:[H.jsxDEV("div",{className:"branches-head",children:[H.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",H.jsxDEV("b",{children:T(Q)},void 0,!1,void 0,this),". A branch made here opens read-only in this tab; its parent removes it."]},void 0,!0,void 0,this),Z?H.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{j(null),x(U9(new Date().toISOString())),M(!0)},children:"New branch"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),W?H.jsxDEV("p",{role:"status",children:W},void 0,!1,void 0,this):null,H.jsxDEV(B5,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"?H.jsxDEV("div",{className:"block",children:[H.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this),H.jsxDEV("th",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:[H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:[H.jsxDEV("b",{children:K.data.checkedOut??T(Q)},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"badge",children:K.data.checkedOut?"served here":"default"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),H.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),H.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),H.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this),H.jsxDEV("td",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R.map((d)=>{let y=$1(d);return H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:H.jsxDEV("b",{children:T(d.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:T(Q)},void 0,!1,void 0,this),H.jsxDEV("td",{children:d.at?.instant?H.jsxDEV(h0,{iso:d.at.instant},void 0,!1,void 0,this):"when it was made"},void 0,!1,void 0,this),H.jsxDEV("td",{children:H.jsxDEV(h0,{iso:d.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:d.expiresAt?H.jsxDEV(h0,{iso:d.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this),H.jsxDEV("td",{className:"num row-actions",children:[X(d.name)?H.jsxDEV("button",{type:"button","aria-label":`Open ${d.name}`,onClick:()=>cX(d.name,d.name.split("/")),children:"Open"},void 0,!1,void 0,this):H.jsxDEV("span",{className:"mode",title:"Its token was handed to whoever made it",children:"opened by whoever made it"},void 0,!1,void 0,this),y.length?H.jsxDEV(xX,{label:`More for ${T(d.name)}`,items:y},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},d.name,!0,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),R.length===0?H.jsxDEV("p",{className:"mode pad",children:"No snapshots yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,K.state==="ok"&&(K.data.named?.length??0)>0?H.jsxDEV(H.Fragment,{children:[H.jsxDEV("p",{className:"lede",children:["This World's own branches (",H.jsxDEV("code",{children:"volter world branch"},void 0,!1,void 0,this),"). One runs at a time; this page shows the one served here. Another is served by stopping this serve, ",H.jsxDEV("code",{children:"volter world checkout <branch>"},void 0,!1,void 0,this),", and serving again."]},void 0,!0,void 0,this),H.jsxDEV("div",{className:"block",children:H.jsxDEV("table",{className:"dense","aria-label":"World branches",children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"Branch"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"State"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:K.data.named.map((d)=>H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:[H.jsxDEV("b",{children:d.name},void 0,!1,void 0,this),d.name===K.data.checkedOut?H.jsxDEV(H.Fragment,{children:[" ",H.jsxDEV("span",{className:"badge",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("td",{className:"mode",children:d.running?"running":"stopped"},void 0,!1,void 0,this)]},d.name,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.jsxDEV(S8,{open:L,onClose:()=>{if(!I)M(!1)},title:`New branch of ${T(Q)}`,footer:H.jsxDEV(H.Fragment,{children:[H.jsxDEV("button",{type:"button",onClick:()=>M(!1),disabled:I,children:"Cancel"},void 0,!1,void 0,this),H.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:I,children:I?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:H.jsxDEV("form",{id:"new-branch",onSubmit:(d)=>void m(d),className:"stack",children:[H.jsxDEV("label",{children:[H.jsxDEV("span",{children:["Name ",H.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("input",{name:"branchLabel",value:k,onChange:(d)=>h(d.target.value.toLowerCase()),placeholder:"checkout-flow",pattern:"[a-z0-9][a-z0-9-]{0,23}",maxLength:24},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("fieldset",{className:"choice",children:[H.jsxDEV("legend",{children:"As of"},void 0,!1,void 0,this),H.jsxDEV("label",{className:"check",children:[H.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="now",onChange:()=>C("now")},void 0,!1,void 0,this)," ",H.jsxDEV("span",{children:"Now: the World as it is, its clock running on"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("label",{className:"check",children:[H.jsxDEV("input",{type:"radio",name:"branchWhen",checked:P==="at",onChange:()=>C("at")},void 0,!1,void 0,this)," ",H.jsxDEV("span",{children:"A moment before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P==="at"?H.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:b,max:U9(new Date().toISOString()),onChange:(d)=>x(d.target.value)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("label",{children:[H.jsxDEV("span",{children:"Goes away after"},void 0,!1,void 0,this),H.jsxDEV("select",{name:"branchLife",value:u,onChange:(d)=>g(d.target.value),children:[H.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),H.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),H.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),H.jsxDEV("option",{value:"168",children:"7 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D?H.jsxDEV("p",{role:"alert",children:D},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function CV({name:Q,token:U,twins:Z,session:K,retry:X,selected:W}){let z=L5(U,`/-/${Q}/map`),B=Z.state==="ok"?Z.data.twins:[],O=(L)=>{let M=z.state==="ok"?z.data.twins.find((f)=>f.twin===L):void 0;if(!M)return"";let I=[...M.resources].filter((f)=>f.count>0).sort((f,D)=>D.count-f.count);return I.length===0?"nothing yet":I.slice(0,3).map((f)=>J9(f.count,f.type)).join(" · ")+(I.length>3?" · …":"")},T=(L)=>z.state==="ok"?z.data.twins.find((M)=>M.twin===L)?.root?.url??null:null,R=B.find((L)=>L.twin===W);if(!R)return Z.state==="ok"?H.jsxDEV("p",{className:"mode",children:["This World has no vendor named ",W,". ",H.jsxDEV("a",{href:`${q0}/${Q}/~/canvas`,onClick:(L)=>{L.preventDefault(),v0([...Q.split("/"),"~","canvas"])},children:"All screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H.jsxDEV(B5,{load:Z,what:"the vendors"},void 0,!1,void 0,this);return H.jsxDEV(H.Fragment,{children:[H.jsxDEV(B5,{load:Z,what:"the vendors"},void 0,!1,void 0,this),Z.state==="ok"&&B.length===0?H.jsxDEV("p",{children:"No vendors in this World yet."},void 0,!1,void 0,this):null,R?H.jsxDEV("div",{className:"vendors",children:H.jsxDEV("div",{className:"stage",children:[H.jsxDEV("div",{className:"stage-bar",children:[H.jsxDEV(A5,{vendor:R.twin},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mode",children:[O(R.twin)||"empty",T(R.twin)?` · connected to ${T(R.twin)}`:" · stand-in"]},void 0,!0,void 0,this),H.jsxDEV("span",{className:"stage-actions",children:[B.filter((L)=>L.mirror).length>1?H.jsxDEV("a",{className:"button",href:`${q0}/${Q}/~/vendors`,onClick:(L)=>{L.preventDefault(),v0([...Q.split("/"),"~","vendors"])},children:"All vendors"},void 0,!1,void 0,this):null,R.mirror?H.jsxDEV("a",{className:"button",href:D8(Q,R.twin),target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${F0(R.twin)} in a new tab`,children:"Open in new tab ↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),K.state==="ok"&&K.scope==="read"?H.jsxDEV("p",{className:"mode stage-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,K.state==="pending"?H.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,K.state==="error"?H.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",K.error," ",H.jsxDEV("button",{type:"button",onClick:X,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K.state==="ok"?R.mirror?H.jsxDEV("iframe",{title:`${R.twin} mirror`,src:D8(Q,R.twin)},R.twin,!1,void 0,this):H.jsxDEV("p",{className:"empty",children:[F0(R.twin)," has no screens here yet. What your app did there is in ",H.jsxDEV("a",{href:`${q0}/${Q}/~/activity`,onClick:(L)=>{L.preventDefault(),v0([...Q.split("/"),"~","activity"])},children:"Activity"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function SV(Q){let U=[];for(let Z of Q){let K=U[U.length-1];if(K&&(K[0].operation??K[0].op)===(Z.operation??Z.op))K.push(Z);else U.push([Z])}return U}function jV(Q){let U=[];for(let Z of Q){let K=U[U.length-1],X=Array.isArray(K)?K[0]:K;if(X&&X.twin===Z.twin&&(X.entry.operation??X.entry.op)===(Z.entry.operation??Z.entry.op))if(Array.isArray(K))K.push(Z);else U[U.length-1]=[X,Z];else U.push(Z)}return U.flatMap((Z)=>Array.isArray(Z)&&Z.length<3?Z:[Z])}var VV=50,E4=(Q)=>`${Q.twin}:${Q.position}`,dR=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position;function kV(Q){let U=[];for(let Z of Q){let K=new Date(Z.entry.occurredAt),X=K.toDateString(),W=U[U.length-1];if(!W||W.day!==X)W={day:X,label:K.toLocaleDateString(void 0,{weekday:"short",year:"numeric",month:"short",day:"numeric"}),instants:[]},U.push(W);let z=W.instants[W.instants.length-1];if(z&&Date.parse(z.at)===K.getTime())z.items.push(Z);else W.instants.push({at:Z.entry.occurredAt,items:[Z]})}return U}function yR({name:Q,p:U}){let Z=U.entry,K=gR(Z.traceparent),X=n5(Z),W=LV(Z);return H.jsxDEV("li",{className:"entry",title:`${Z.operation??Z.op} ${Z.subject.type}:${Z.subject.id} · ${mR(Z)} · ${nq(Z)}`,children:[H.jsxDEV("span",{className:"twin-chip",children:[H.jsxDEV(A5,{vendor:U.twin},void 0,!1,void 0,this),F0(U.twin)]},void 0,!0,void 0,this),H.jsxDEV("span",{className:"op",children:X.what},void 0,!1,void 0,this),X.label?H.jsxDEV("span",{className:"label",children:["“",X.label,"”"]},void 0,!0,void 0,this):H.jsxDEV("code",{className:"subject",children:aq(Z)},void 0,!1,void 0,this),H.jsxDEV("span",{className:"actor mode",children:oq(Z,U.twin)},void 0,!1,void 0,this),W?H.jsxDEV("span",{className:"standing",children:W},void 0,!1,void 0,this):null,K?H.jsxDEV("a",{className:"trace-link",href:`${q0}/${Q}/~/trace/${K.trace}`,"aria-label":`View trace ${K.trace.slice(0,8)}`,onClick:(z)=>{z.preventDefault(),v0([...Q.split("/"),"~","trace",K.trace])},children:"trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function DV({name:Q,token:U,vendors:Z}){let[K,X]=A1.useState(null),[W,z]=A1.useState(null),[B,O]=A1.useState(null),[T,R]=A1.useState(null),[L,M]=A1.useState(!1),[I,f]=A1.useState(null),[D,j]=A1.useState({items:[],gap:null}),k=A1.useCallback((u)=>`/-/${Q}/timeline?limit=${VV}${K?`&twin=${encodeURIComponent(K)}`:""}${u?`&before=${encodeURIComponent(u)}`:""}`,[Q,K]),h=A1.useRef(null);h.current=W,A1.useEffect(()=>{let u=!0;z(null),R(null),j({items:[],gap:null}),(async()=>{let i=await Y0(U,k());if(!u)return;if(!i.ok){R(await z5(i));return}let m=await i.json();if(!u)return;z(m.entries),O(m.next)})().catch((i)=>{if(u)R(`the World did not answer: ${i instanceof Error?i.message:String(i)}`)});let g=setInterval(()=>{let i=h.current;if(i===null||document.hidden)return;Y0(U,k()).then(async(m)=>{if(!m.ok||!u)return;let J1=await m.json();if(!u)return;if(i.length===0){if(J1.entries.length)z(J1.entries),O(J1.next);return}let $1=new Set((h.current??i).map(E4)),d=J1.entries.filter((y)=>!$1.has(E4(y)));j({items:d,gap:d.length===J1.entries.length&&J1.next?J1:null})}).catch(()=>null)},3000);return()=>{u=!1,clearInterval(g)}},[U,k]);let P=()=>{if(D.gap)z(D.gap.entries),O(D.gap.next);else z((u)=>[...D.items,...u??[]].sort(dR));j({items:[],gap:null})},C=async()=>{if(!B)return;M(!0),f(null);try{let u=await Y0(U,k(B));if(!u.ok){f(await z5(u));return}let g=await u.json();z((i)=>{let m=new Set((i??[]).map(E4));return[...i??[],...g.entries.filter((J1)=>!m.has(E4(J1)))]}),O(g.next)}catch(u){f(`the World did not answer: ${u instanceof Error?u.message:String(u)}`)}finally{M(!1)}},b=A1.useMemo(()=>kV(W??[]),[W]),x=D.items.length;return H.jsxDEV(H.Fragment,{children:[H.jsxDEV("div",{role:"group","aria-label":"Filter by twin",className:"chips",children:[H.jsxDEV("button",{type:"button","aria-pressed":K===null,onClick:()=>X(null),children:"All vendors"},void 0,!1,void 0,this),Z.map((u)=>H.jsxDEV("button",{type:"button","aria-pressed":K===u,"aria-label":u,onClick:()=>X(K===u?null:u),children:F0(u)},u,!1,void 0,this))]},void 0,!0,void 0,this),H.jsxDEV("div",{"aria-live":"polite",className:"pill-slot",children:x>0?H.jsxDEV("button",{type:"button",className:"pill",onClick:P,children:[D.gap?`${x}+`:x," new change",x===1?"":"s"," — show"]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),T?H.jsxDEV("p",{role:"alert",children:["Could not read the timeline: ",T]},void 0,!0,void 0,this):W===null?H.jsxDEV("p",{className:"mode",role:"status",children:"Loading the timeline…"},void 0,!1,void 0,this):W.length===0?K?H.jsxDEV("p",{children:["Nothing has happened in ",K," yet."]},void 0,!0,void 0,this):H.jsxDEV("div",{className:"empty",children:[H.jsxDEV("p",{children:H.jsxDEV("strong",{children:"Nothing has happened in this World yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("p",{className:"mode",children:["An entry arrives each time something changes a twin: an app (or a seed script) calling a twin's API at ",H.jsxDEV("code",{children:[w6,"/",Q,"/<twin>"]},void 0,!0,void 0,this),", a mirror's form, a changeset landing. They show here within a few seconds."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):H.jsxDEV("div",{className:"feed","aria-label":"Timeline",children:[b.map((u)=>H.jsxDEV("div",{role:"group","aria-label":u.label,className:"day",children:[H.jsxDEV("h3",{className:"day-head",children:u.label},void 0,!1,void 0,this),H.jsxDEV("ol",{className:"instants",children:u.instants.map((g)=>H.jsxDEV("li",{className:"instant",children:[H.jsxDEV("div",{className:"instant-time",title:g.items.length>1?"These happened at the same moment of the World's clock: their order across vendors is not known.":void 0,children:H.jsxDEV(h0,{iso:g.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("ul",{className:"entries",children:jV(g.items).map((i)=>Array.isArray(i)?H.jsxDEV("li",{className:"entry run",children:H.jsxDEV("details",{children:[H.jsxDEV("summary",{children:[H.jsxDEV("span",{className:"twin-chip",children:[H.jsxDEV(A5,{vendor:i[0].twin},void 0,!1,void 0,this),F0(i[0].twin)]},void 0,!0,void 0,this)," ",H.jsxDEV("span",{className:"op",children:[J9(i.length,i[0].entry.subject.type)," ",n5(i[0].entry).what.split(" ").slice(-1)[0]]},void 0,!0,void 0,this)," ",H.jsxDEV("span",{className:"actor mode",children:oq(i[0].entry,i[0].twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("ul",{className:"entries",children:i.map((m)=>H.jsxDEV(yR,{name:Q,p:m},E4(m),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},E4(i[0]),!1,void 0,this):H.jsxDEV(yR,{name:Q,p:i},E4(i),!1,void 0,this))},void 0,!1,void 0,this)]},`${g.at}:${E4(g.items[0])}`,!0,void 0,this))},void 0,!1,void 0,this)]},u.day,!0,void 0,this)),B?H.jsxDEV("button",{type:"button",onClick:()=>void C(),disabled:L,"aria-busy":L,children:"Load older"},void 0,!1,void 0,this):H.jsxDEV("p",{className:"mode",children:["The beginning of this World",K?`'s ${K}`:"","."]},void 0,!0,void 0,this),I?H.jsxDEV("p",{role:"alert",children:["Could not load older changes: ",I]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function yV({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),X=L5(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),W=X.state==="ok"?[...X.data.entries].sort((T,R)=>-dR(T,R)):[],z=[...new Set(W.map((T)=>T.twin))],B=W[0]?Date.parse(W[0].entry.occurredAt):0,O=H.jsxDEV("a",{href:`${q0}/${Q}/~/timeline`,onClick:(T)=>{T.preventDefault(),v0([...Q.split("/"),"~","timeline"])},children:"← Timeline"},void 0,!1,void 0,this);return H.jsxDEV(H.Fragment,{children:[H.jsxDEV("p",{children:O},void 0,!1,void 0,this),H.jsxDEV("h3",{children:["Trace ",H.jsxDEV("code",{children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!K?H.jsxDEV("p",{role:"alert",children:[Z?`${Z} is not a trace id`:"No trace named",": a W3C trace id is 32 hex characters."]},void 0,!0,void 0,this):H.jsxDEV(B5,{load:X,what:"the trace"},void 0,!1,void 0,this),X.state==="ok"&&W.length===0?H.jsxDEV("div",{className:"empty",children:[H.jsxDEV("p",{children:H.jsxDEV("strong",{children:"Nothing in this World carries this trace."},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("p",{className:"mode",children:["Causes are followed through the W3C ",H.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," header: an app instrumented with OpenTelemetry sends it with each call, and every entry that call writes keeps it — so one click in the app can be read across Stripe, Slack and the rest. Without it the World knows the order of what happened, not what caused what."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,W.length>0?H.jsxDEV(H.Fragment,{children:[H.jsxDEV("p",{className:"mode",children:[W.length," step",W.length===1?"":"s"," across ",z.length," twin",z.length===1?"":"s",X.state==="ok"&&X.data.next?" · the first 500 shown":""]},void 0,!0,void 0,this),H.jsxDEV("div",{role:"table","aria-label":"Trace waterfall",className:"waterfall",style:{gridTemplateColumns:`minmax(130px, auto) repeat(${z.length}, minmax(140px, 1fr))`},children:[H.jsxDEV("div",{role:"row",className:"wf-row wf-head",children:[H.jsxDEV("span",{role:"columnheader",children:"time"},void 0,!1,void 0,this),z.map((T)=>H.jsxDEV("span",{role:"columnheader",children:T},T,!1,void 0,this))]},void 0,!0,void 0,this),W.map((T)=>{let R=Date.parse(T.entry.occurredAt)-B,L=gR(T.entry.traceparent)?.span;return H.jsxDEV("div",{role:"row",className:"wf-row",children:[H.jsxDEV("span",{role:"cell",className:"wf-time",children:[H.jsxDEV(h0,{iso:T.entry.occurredAt,time:!0},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:["+",R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z.map((M)=>H.jsxDEV("span",{role:"cell",className:M===T.twin?"wf-cell on":"wf-cell",children:M===T.twin?H.jsxDEV("details",{children:[H.jsxDEV("summary",{children:[T.entry.operation??T.entry.op," ",H.jsxDEV("code",{children:[T.entry.subject.type,":",T.entry.subject.id]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("p",{className:"mode",children:[mR(T.entry)," · ",nq(T.entry)," · position ",T.position,L?H.jsxDEV(H.Fragment,{children:[" · span ",H.jsxDEV("code",{children:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV(iR,{fields:T.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},M,!1,void 0,this))]},E4(T),!0,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function iR({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return H.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return H.jsxDEV("dl",{className:"fields",children:U.map(([Z,K])=>H.jsxDEV(A1.default.Fragment,{children:[H.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),H.jsxDEV("dd",{children:H.jsxDEV("code",{children:typeof K==="string"?K:JSON.stringify(K)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var sq=1280,tq=820,vR=160;function vV({data:Q}){let{world:U,vendor:Z,active:K,open:X}=Q;return H.jsxDEV(H.Fragment,{children:[H.jsxDEV(WR,{isVisible:!0,position:C1.Top,align:"start",className:"frame-label",children:[H.jsxDEV(A5,{vendor:Z},void 0,!1,void 0,this),H.jsxDEV("span",{children:F0(Z)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("div",{className:K?"frame on":"frame",style:{width:sq,height:tq},children:[H.jsxDEV("div",{className:"frame-bar",title:"Drag to move",children:[H.jsxDEV(A5,{vendor:Z},void 0,!1,void 0,this),H.jsxDEV("strong",{children:F0(Z)},void 0,!1,void 0,this),H.jsxDEV("span",{className:"frame-url",children:D8(U,Z).replace(/^https?:\/\//,"")},void 0,!1,void 0,this),H.jsxDEV("a",{className:"nodrag",href:`${q0}/${U}/~/vendors/${Z}`,onClick:(W)=>{W.preventDefault(),X(Z)},children:"Open"},void 0,!1,void 0,this),H.jsxDEV("a",{className:"nodrag",href:D8(U,Z),target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${F0(Z)} in a new tab`,children:"↗"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("div",{className:K?"frame-body nodrag nopan nowheel":"frame-body",children:H.jsxDEV("iframe",{title:`${Z} mirror`,src:D8(U,Z),loading:"lazy",style:{pointerEvents:K?"auto":"none"}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var EV={screen:vV};function bV(Q){return H.jsxDEV(kX,{children:H.jsxDEV(uV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function uV({name:Q,twins:U,session:Z,retry:K,snapshot:X,back:W}){let z=U.state==="ok"?U.data.twins.filter((u)=>u.mirror).map((u)=>u.twin):[],B=`volter.canvas.${Q}`,[O,T]=A1.useState(null),[R,L]=A1.useState(!0),M=OJ(),I=A1.useCallback((u)=>v0([...Q.split("/"),"~","vendors",u]),[Q]),f=Math.max(1,Math.ceil(Math.sqrt(z.length))),D=A1.useCallback(()=>{let u={};try{u=JSON.parse(localStorage.getItem(B)??"{}")}catch{}return z.map((g,i)=>({id:g,type:"screen",dragHandle:".frame-bar",position:u[g]??{x:i%f*(sq+vR),y:Math.floor(i/f)*(tq+vR)},data:{world:Q,vendor:g,active:!1,open:I}}))},[z.join(","),Q,f,I]),[j,k,h]=GR([]);A1.useEffect(()=>{k(D())},[D,k]),A1.useEffect(()=>{k((u)=>u.map((g)=>g.data.active===(g.id===O)?g:{...g,data:{...g.data,active:g.id===O}}))},[O,k]),A1.useEffect(()=>{let u=(g)=>{if(g.key==="Escape")T(null)};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);let P=()=>{try{localStorage.setItem(B,JSON.stringify(Object.fromEntries(j.map((u)=>[u.id,u.position]))))}catch{}},C=(u)=>{T(u);let g=M.getNode(u);if(!g)return;let i=Math.min((window.innerWidth-300)/sq,(window.innerHeight-120)/tq,1);M.setCenter(g.position.x+sq/2-130/i,g.position.y+tq/2,{zoom:i,duration:400})},b=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,x=Z.state==="ok"&&U.state==="ok";return H.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"Every vendor's screens",children:H.jsxDEV(UR,{nodes:x?j:[],onNodesChange:h,nodeTypes:EV,onNodeDragStop:P,onNodeClick:(u,g)=>T(g.id),onPaneClick:()=>T(null),fitView:!0,fitViewOptions:{padding:{top:"64px",left:"272px",right:"32px",bottom:"32px"}},minZoom:0.05,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!1,zoomOnDoubleClick:!1,colorMode:b?"dark":"light",proOptions:{hideAttribution:!0},children:[H.jsxDEV(FR,{variant:v4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),H.jsxDEV(N8,{position:"top-left",className:"float layers",children:[H.jsxDEV("div",{className:"float-head",children:[H.jsxDEV("button",{type:"button",className:"back",onClick:W,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),H.jsxDEV("span",{className:"float-title",children:[H.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],X?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("button",{type:"button",className:"ghost","aria-expanded":R,"aria-label":R?"Hide the screens list":"Show the screens list",onClick:()=>L(!R),children:R?"▾":"▸"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R?H.jsxDEV("ul",{className:"layer-list","aria-label":"Screens",children:[z.map((u)=>H.jsxDEV("li",{children:H.jsxDEV("button",{type:"button",className:O===u?"on":void 0,onClick:()=>C(u),children:[H.jsxDEV(A5,{vendor:u},void 0,!1,void 0,this),H.jsxDEV("span",{children:F0(u)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},u,!1,void 0,this)),U.state==="ok"&&z.length===0?H.jsxDEV("li",{className:"mode",children:"No vendor in this World has screens."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,H.jsxDEV(B5,{load:U,what:"the vendors"},void 0,!1,void 0,this),Z.state==="pending"?H.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Z.state==="error"?H.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",Z.error," ",H.jsxDEV("button",{type:"button",onClick:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV(N8,{position:"top-center",className:"float hint mode",children:O?`Using ${F0(O)} · Esc to leave`:"Drag to pan · scroll to zoom · click a screen to use it"},void 0,!1,void 0,this),H.jsxDEV(XR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),H.jsxDEV(YR,{pannable:!0,zoomable:!0,nodeBorderRadius:8,position:"bottom-right"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var aR=(Q)=>{let U=new Map;for(let Z of Q.actions)U.set(Z.service,[...U.get(Z.service)??[],{...Z.action,service:Z.service,op:Z.action.op??Z.action.operation??""}]);return[...U.entries()]};function sR(Q){if(Q.applied)return Q.applied.outcome==="applied"?{label:"Deployed",tone:"done"}:Q.applied.outcome==="partial"?{label:"Partly deployed",tone:"warn"}:{label:"Deploy refused",tone:"bad"};let U=Q.currentHash??Q.contentHash,Z=Q.approvals.filter((X)=>X.contentHash===U).length,K=Q.verification&&Q.verification.contentHash===U?Q.verification:null;if(K&&!K.passed)return{label:"Checks failed",tone:"bad"};if(Z>0)return{label:`Approved by ${Z}`,tone:"good"};if(K)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function xV({name:Q,token:U,signsAs:Z,canWrite:K,rooted:X,open:W,refused:z}){let[B,O]=A1.useState(0),T=L5(U,`/-/${Q}/changesets`,B),R=(M)=>(I)=>{I.preventDefault(),v0([...Q.split("/"),"~","changesets",M])};if(W){let M=T.state==="ok"?T.data.changesets.find((I)=>I.name===W):void 0;return H.jsxDEV(H.Fragment,{children:[H.jsxDEV("p",{className:"crumbs-line",children:H.jsxDEV("a",{href:`${q0}/${Q}/~/changesets`,onClick:(I)=>{I.preventDefault(),v0([...Q.split("/"),"~","changesets"])},children:"← Changesets"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV(B5,{load:T,what:"the changesets"},void 0,!1,void 0,this),T.state==="ok"&&!M?H.jsxDEV("p",{className:"mode",children:["This World has no changeset named ",W,"."]},void 0,!0,void 0,this):null,M?H.jsxDEV(hV,{name:Q,token:U,signsAs:Z,c:M,canWrite:K,rooted:X,refused:z,onChanged:()=>O((I)=>I+1)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}let L=T.state==="ok"?[...T.data.changesets].sort((M,I)=>I.createdAt.localeCompare(M.createdAt)):[];return H.jsxDEV(H.Fragment,{children:[H.jsxDEV("p",{className:"lede",children:"A changeset is what this World changed, cut into a piece a person reviews: what it does at each vendor, the World's checks over it, and who approved it. Where the World has a real account behind a vendor, an approved changeset deploys there, with a receipt for each change."},void 0,!1,void 0,this),H.jsxDEV(B5,{load:T,what:"the changesets"},void 0,!1,void 0,this),T.state==="ok"&&L.length===0?H.jsxDEV(wR,{title:"No changesets yet",children:H.jsxDEV("p",{children:["Cut one from what your app did in this World: ",H.jsxDEV("code",{children:'volter world changeset -m "What it does and why"'},void 0,!1,void 0,this),". Pushed to a shared World, it shows up here for review."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,L.length>0?H.jsxDEV("div",{className:"block",children:H.jsxDEV("table",{className:"dense","aria-label":"Changesets",children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"Changeset"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Changes"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Status"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:L.map((M)=>{let I=sR(M),f=aR(M).map(([D,j])=>`${j.length} at ${F0(D)}`).join(" · ");return H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:[H.jsxDEV("a",{href:`${q0}/${Q}/~/changesets/${M.name}`,onClick:R(M.name),children:H.jsxDEV("b",{children:M.message??M.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),M.message?H.jsxDEV("span",{className:"mode mono",children:[" ",M.name]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("td",{className:"mode",children:f||"nothing"},void 0,!1,void 0,this),H.jsxDEV("td",{className:"mode",children:H.jsxDEV(h0,{iso:M.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:H.jsxDEV("span",{className:`badge cs-${I.tone}`,children:I.label},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},M.name,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function hV({name:Q,token:U,signsAs:Z,c:K,canWrite:X,rooted:W,refused:z,onChanged:B}){let[O,T]=A1.useState(null),[R,L]=A1.useState(!1),[M,I]=A1.useState(""),[f,D]=A1.useState(""),j=sR(K),k=aR(K),h=k.map(([m])=>m),P=h.some((m)=>W.includes(m)),C=(m)=>m===(K.currentHash??K.contentHash),b=async(m,J1,$1,d)=>{T(m);try{let y=await Y0(U,J1,{method:"POST",...$1===void 0?{}:{body:JSON.stringify($1)}});if(!y.ok)return z(y),t2(`${m}: ${await z5(y)}`,"error"),!1;if(d)t2(d);return B(),!0}catch(y){return t2(`${m}: the World did not answer (${y instanceof Error?y.message:String(y)})`,"error"),!1}finally{T(null)}},x=()=>{b("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},u=async(m)=>{if(m.preventDefault(),await b("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...M.trim()?{note:M.trim()}:{},...Z===null&&f.trim()?{as:f.trim()}:{}},"Approved"))L(!1),I("")},g=async()=>{if(!await o5({title:`Deploy ${K.name} to the real vendors?`,body:H.jsxDEV(H.Fragment,{children:["It performs its ",K.actions.length," change",K.actions.length===1?"":"s"," against the real account",h.filter((m)=>W.includes(m)).length===1?"":"s"," behind ",EX(h.filter((m)=>W.includes(m)).map(F0)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;b("Deploy",`/-/${Q}/deploy/${K.name}`,{confirm:K.name},"Deployed: the receipts are below")},i=!X?"This session reads the World; it changes nothing":K.applied?"Already deployed":null;return H.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[H.jsxDEV("div",{className:"changeset-head",children:[H.jsxDEV("div",{children:[H.jsxDEV("h3",{id:"changeset-title",children:[K.message??K.name," ",H.jsxDEV("span",{className:`badge cs-${j.tone}`,children:j.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("p",{className:"mode",children:[H.jsxDEV("code",{children:K.name},void 0,!1,void 0,this)," · made ",H.jsxDEV(h0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",EX(h.map(F0))||"no vendor"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("div",{className:"changeset-actions",children:[H.jsxDEV("button",{type:"button",onClick:x,disabled:Boolean(i)||O!==null,title:i??"Replay it in a throwaway World and run the World's checks",children:O==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),H.jsxDEV("button",{type:"button",onClick:()=>L(!0),disabled:Boolean(i)||O!==null,title:i??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),P?H.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void g(),disabled:Boolean(i)||O!==null,title:i??"Perform it against the real accounts behind this World",children:O==="Deploy"?"Deploying…":"Deploy…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i&&!K.applied?H.jsxDEV("p",{className:"mode",children:[i,"."]},void 0,!0,void 0,this):null,!P&&!K.applied?H.jsxDEV("p",{className:"mode",children:"It stays in this World: no vendor it changes has a real account behind it here (a shared World with a root deploys; see Settings › Real services)."},void 0,!1,void 0,this):null,K.narration?H.jsxDEV("p",{className:"narration",children:K.narration},void 0,!1,void 0,this):null,H.jsxDEV("h4",{children:"Changes"},void 0,!1,void 0,this),k.length===0?H.jsxDEV("p",{className:"mode",children:"It changes nothing."},void 0,!1,void 0,this):H.jsxDEV(tR,{groups:k,idPrefix:`cs-${K.name}`},void 0,!1,void 0,this),H.jsxDEV("h4",{children:"Checks"},void 0,!1,void 0,this),!K.verification?H.jsxDEV("p",{className:"mode",children:"Not verified yet. Verify replays it in a throwaway World and runs this World's checks over the result."},void 0,!1,void 0,this):H.jsxDEV("div",{className:C(K.verification.contentHash)?"":"stale",children:[H.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",H.jsxDEV(h0,{iso:K.verification.at},void 0,!1,void 0,this),C(K.verification.contentHash)?null:H.jsxDEV("span",{className:"mode",children:" · on an earlier version of it: verify again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.verification.results.length?H.jsxDEV("ul",{className:"checks",children:K.verification.results.map((m)=>H.jsxDEV("li",{children:[m.passed?"✓":"✗"," ",H.jsxDEV("code",{children:m.id},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:F0(m.service)},void 0,!1,void 0,this)]},m.id,!0,void 0,this))},void 0,!1,void 0,this):null,K.verification.refusals?.length?H.jsxDEV("ul",{className:"checks",children:K.verification.refusals.map((m,J1)=>H.jsxDEV("li",{children:["✗ ",H.jsxDEV("code",{children:m.check},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:[F0(m.service),": ",m.reason]},void 0,!0,void 0,this)]},J1,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("h4",{children:"Approvals"},void 0,!1,void 0,this),K.approvals.length===0?H.jsxDEV("p",{className:"mode",children:"No one has approved it."},void 0,!1,void 0,this):H.jsxDEV("ul",{className:"approvals",children:K.approvals.map((m,J1)=>H.jsxDEV("li",{children:[H.jsxDEV("b",{children:m.principal},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:[H.jsxDEV(h0,{iso:m.at},void 0,!1,void 0,this),C(m.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),m.note?H.jsxDEV("div",{className:"mode",children:["“",m.note,"”"]},void 0,!0,void 0,this):null]},J1,!0,void 0,this))},void 0,!1,void 0,this),K.applied?H.jsxDEV(H.Fragment,{children:[H.jsxDEV("h4",{children:"Deployed"},void 0,!1,void 0,this),H.jsxDEV("p",{children:[K.applied.outcome==="applied"?"Every change reached the real vendors":K.applied.outcome==="partial"?"Some changes reached the real vendors":"The deploy was refused"," · ",H.jsxDEV(h0,{iso:K.applied.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.applied.refusal?.length?H.jsxDEV("ul",{className:"checks",children:K.applied.refusal.map((m,J1)=>H.jsxDEV("li",{className:"mode",children:m},J1,!1,void 0,this))},void 0,!1,void 0,this):null,K.applied.receipts.length?H.jsxDEV("ul",{className:"receipts",children:K.applied.receipts.map((m)=>H.jsxDEV("li",{children:[H.jsxDEV("span",{className:m.status==="failed"?"badge cs-bad":"badge cs-done",children:m.status},void 0,!1,void 0,this)," ",F0(m.service)," ",m.url?H.jsxDEV("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",children:m.externalId??m.url},void 0,!1,void 0,this):m.externalId?H.jsxDEV("code",{children:m.externalId},void 0,!1,void 0,this):null,m.error?H.jsxDEV("span",{className:"mode",children:[" · ",m.error]},void 0,!0,void 0,this):null]},m.actionId,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,H.jsxDEV(S8,{open:R,onClose:()=>{if(!O)L(!1)},title:`Approve ${K.name}`,footer:H.jsxDEV(H.Fragment,{children:[H.jsxDEV("button",{type:"button",onClick:()=>L(!1),disabled:O!==null,children:"Cancel"},void 0,!1,void 0,this),H.jsxDEV("button",{type:"submit",form:"approve-changeset",className:"primary",disabled:O!==null,children:O==="Approve"?"Approving…":"Approve"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:H.jsxDEV("form",{id:"approve-changeset",onSubmit:(m)=>void u(m),className:"stack",children:[H.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",Z?H.jsxDEV(H.Fragment,{children:[", recorded as ",H.jsxDEV("b",{children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,". A later change to it shows your approval as for an earlier version."]},void 0,!0,void 0,this),Z===null?H.jsxDEV("label",{children:[H.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),H.jsxDEV("input",{name:"approveAs",value:f,onChange:(m)=>D(m.target.value),maxLength:80,required:!0,placeholder:"your name or email",autoComplete:"off"},void 0,!1,void 0,this),H.jsxDEV("span",{className:"mode",children:"This World was opened with its token, which names no person: the approval records the name you give."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.jsxDEV("label",{children:[H.jsxDEV("span",{children:["Note ",H.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("textarea",{name:"approveNote",value:M,onChange:(m)=>I(m.target.value),rows:3,maxLength:500},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tR({groups:Q,idPrefix:U}){return H.jsxDEV(H.Fragment,{children:Q.map(([Z,K])=>H.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`${U}-${Z}`,children:[H.jsxDEV("h3",{id:`${U}-${Z}`,className:"vendor-cell",children:[H.jsxDEV(A5,{vendor:Z},void 0,!1,void 0,this),F0(Z)," ",H.jsxDEV("span",{className:"mode",children:["· ",K.length," change",K.length===1?"":"s"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("ul",{children:SV(K).map((X)=>X.length>=3?H.jsxDEV("li",{children:H.jsxDEV("details",{children:[H.jsxDEV("summary",{children:[H.jsxDEV("span",{className:"op",children:[J9(X.length,X[0].subject.type)," ",n5(X[0]).what.split(" ").slice(-1)[0]]},void 0,!0,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:[X.map((W)=>n5(W).label??aq(W)).slice(0,4).join(", "),X.length>4?", …":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("ul",{children:X.map((W)=>H.jsxDEV("li",{children:[H.jsxDEV("span",{className:"op",children:n5(W).what},void 0,!1,void 0,this)," ",n5(W).label?H.jsxDEV("span",{className:"label",children:["“",n5(W).label,"”"]},void 0,!0,void 0,this):H.jsxDEV("code",{children:aq(W)},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:[H.jsxDEV(h0,{iso:W.occurredAt},void 0,!1,void 0,this)," · ",oq(W,Z)]},void 0,!0,void 0,this)]},W.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},X[0].id,!1,void 0,this):X.map((W)=>H.jsxDEV("li",{children:H.jsxDEV("details",{children:[H.jsxDEV("summary",{children:[H.jsxDEV("span",{className:"op",children:n5(W).what},void 0,!1,void 0,this)," ",n5(W).label?H.jsxDEV("span",{className:"label",children:["“",n5(W).label,"”"]},void 0,!0,void 0,this):H.jsxDEV("code",{children:aq(W)},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:[H.jsxDEV(h0,{iso:W.occurredAt},void 0,!1,void 0,this)," · ",oq(W,Z)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV(iR,{fields:W.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},W.id,!1,void 0,this)))},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}function mV({name:Q,token:U}){let Z=L5(U,`/-/${Q}/diff`),K=A1.useMemo(()=>{let X=new Map;if(Z.state==="ok")for(let W of Z.data.changes)X.set(W.twin,[...X.get(W.twin)??[],W.entry]);return[...X.entries()]},[Z]);return H.jsxDEV(H.Fragment,{children:[H.jsxDEV(B5,{load:Z,what:"the changes"},void 0,!1,void 0,this),Z.state==="ok"?H.jsxDEV(H.Fragment,{children:[H.jsxDEV("p",{className:"mode",children:["What this World changed since it started",Z.data.base.at?H.jsxDEV(H.Fragment,{children:[" (",H.jsxDEV(h0,{iso:Z.data.base.at},void 0,!1,void 0,this),", ",H.jsxDEV("code",{children:Z.data.base.id},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this):H.jsxDEV(H.Fragment,{children:[" (",H.jsxDEV("code",{children:Z.data.base.id},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this),": ",Z.data.changes.length," change",Z.data.changes.length===1?"":"s"," at ",K.length," vendor",K.length===1?"":"s",". A changeset takes these to the real services."]},void 0,!0,void 0,this),K.length===0?H.jsxDEV("p",{className:"empty",children:["No changes since ",Z.data.base.id,Z.data.base.at?H.jsxDEV(H.Fragment,{children:[" (",H.jsxDEV(h0,{iso:Z.data.base.at},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this):null,"."]},void 0,!0,void 0,this):H.jsxDEV(tR,{groups:K,idPrefix:"changes"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function gV({name:Q,token:U}){let[Z,K]=A1.useState(0),X=L5(U,`/-/${Q}/keys`,Z),[W,z]=A1.useState(!1),[B,O]=A1.useState(""),[T,R]=A1.useState("write"),[L,M]=A1.useState(!1),[I,f]=A1.useState(null),[D,j]=A1.useState(null),[k,h]=A1.useState(null),P=async()=>{let x=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,u=await Y0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:x,scope:"read"})}).catch(()=>null),g=u?await u.json().catch(()=>({})):{error:`${M0} did not answer`};if(!u?.ok||!g.key){t2(g.error??"refused","error");return}h(`${window.location.origin}${q0}/${Q}#${new URLSearchParams({token:g.key}).toString()}`),K((i)=>i+1)},C=async(x)=>{x.preventDefault(),M(!0),f(null);let u=await Y0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:B.trim(),scope:T})}).catch(()=>null);M(!1);let g=u?await u.json().catch(()=>({})):{error:`${M0} did not answer`};if(!u?.ok||!g.key){f(g.error??"refused");return}z(!1),j({key:g.key,name:B.trim()}),O(""),K((i)=>i+1)},b=async(x)=>{if(!await o5({title:`Revoke ${x.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let u=await Y0(U,`/-/${Q}/keys/${x.id}`,{method:"DELETE"});if(u.ok)t2(`Revoked ${x.name}`);else t2(await z5(u),"error");K((g)=>g+1)};return H.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[H.jsxDEV("div",{className:"keys-head",children:[H.jsxDEV("div",{children:[H.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),H.jsxDEV("p",{className:"mode",children:"What an app, a script or a CI job holds to reach this World: each named for what holds it and revoked alone. People open the World as themselves; keys are for software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),o2()?H.jsxDEV("a",{className:"button primary",href:`${o2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):H.jsxDEV("div",{className:"head-actions",children:[H.jsxDEV("button",{type:"button",onClick:()=>void P(),children:"Share a read-only link"},void 0,!1,void 0,this),H.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{f(null),z(!0)},children:"Make a key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV(B5,{load:X,what:"the keys",retry:()=>K((x)=>x+1)},void 0,!1,void 0,this),X.state==="ok"?X.data.keys.length===0?H.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):H.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),H.jsxDEV("th",{className:"num",children:H.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:X.data.keys.map((x)=>H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:x.name},void 0,!1,void 0,this),H.jsxDEV("td",{children:x.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),H.jsxDEV("td",{className:"mode",children:H.jsxDEV("span",{title:IJ(x.createdAt),children:dq(x.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{className:"mode",children:x.lastUsedAt?dq(x.lastUsedAt):"never"},void 0,!1,void 0,this),H.jsxDEV("td",{className:"num",children:H.jsxDEV(xX,{label:`More for ${x.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void b(x)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},x.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.jsxDEV(S8,{open:W,onClose:()=>{if(!L)z(!1)},title:"Make a key",footer:H.jsxDEV(H.Fragment,{children:[H.jsxDEV("button",{type:"button",onClick:()=>z(!1),disabled:L,children:"Cancel"},void 0,!1,void 0,this),H.jsxDEV("button",{type:"submit",form:"make-key",disabled:L||!B.trim(),children:L?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:H.jsxDEV("form",{id:"make-key",onSubmit:C,"aria-label":"Make a key",children:[H.jsxDEV("label",{children:["Name ",H.jsxDEV("input",{autoFocus:!0,name:"keyName",value:B,onChange:(x)=>O(x.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("label",{children:["Access ",H.jsxDEV("select",{value:T,onChange:(x)=>R(x.target.value==="read"?"read":"write"),children:[H.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),H.jsxDEV("option",{value:"read",children:"Read only"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),I?H.jsxDEV("p",{role:"alert",children:I},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV(S8,{open:Boolean(D),onClose:()=>j(null),title:`${D?.name??"The key"} is ready`,footer:H.jsxDEV("button",{type:"button",className:"primary",onClick:()=>j(null),children:"Done"},void 0,!1,void 0,this),children:[H.jsxDEV("p",{className:"mode",children:"Copy it now: it is shown this once. Put it where the app reads its secrets."},void 0,!1,void 0,this),D?H.jsxDEV(uX,{label:"Key",value:D.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV(S8,{open:Boolean(k),onClose:()=>h(null),title:"A read-only link",footer:H.jsxDEV("button",{type:"button",className:"primary",onClick:()=>h(null),children:"Done"},void 0,!1,void 0,this),children:[H.jsxDEV("p",{className:"mode",children:"Whoever opens it sees this World's pages and changes nothing. Copy it now: it is shown this once. It is listed under Keys, where revoking it closes the link at once."},void 0,!1,void 0,this),k?H.jsxDEV(uX,{label:"Link",value:k,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function pV({name:Q,token:U,admin:Z,canWrite:K,refused:X,onRemoved:W}){let[z,B]=A1.useState(null),[O,T]=A1.useState(null),[R,L]=A1.useState(null),[M,I]=A1.useState(null),[f,D]=A1.useState(null),j=A1.useCallback(async()=>{let C=await Y0(U,`/-/${Q}/twins`);B(C.ok?(await C.json()).twins:[]);let b=await Y0(U,`/-/${Q}/requests?hours=24`);D(b.ok?await b.json():null);let x=await Y0(U,`/-/${Q}/changesets`);T(x.ok?(await x.json()).changesets:[])},[Q,U]);A1.useEffect(()=>{j()},[j]);let k=async(C,b,x)=>{L(null);let u=await Y0(U,b,x);if(!u.ok)X(u);L(u.ok?`${C}: done`:`${C}: ${await z5(u)}`),await j()},h=async()=>{if(!await o5({title:`Rotate the tokens of ${Q}?`,body:"Every app, script and person holding the current tokens loses access at once. The new ones are shown once.",action:"Rotate tokens",danger:!0}))return;let C=await Y0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(C.ok)I(await C.json()),L("rotated: the new tokens are shown once");else L(`rotate: answered ${C.status}`)},P=async()=>{if(!await o5({title:`Remove ${Q}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:Q}))return;let C=await Y0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((b)=>b);if(C instanceof Error){L(`remove: the host did not answer (${C.message})`);return}if(C.ok)W();else L(`remove: answered ${C.status}`)};return H.jsxDEV(H.Fragment,{children:[R?H.jsxDEV("p",{role:"status",children:R},void 0,!1,void 0,this):null,M?H.jsxDEV("p",{role:"status",children:["token ",H.jsxDEV("code",{children:M.token},void 0,!1,void 0,this)," · read token ",H.jsxDEV("code",{children:M.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,K?H.jsxDEV(gV,{name:Q,token:U},void 0,!1,void 0,this):null,H.jsxDEV("h3",{children:"Real services"},void 0,!1,void 0,this),H.jsxDEV("p",{className:"mode",children:"Every vendor here is a stand-in. Connect one to its real service to read the real state into this World; give it the real key to send this World's changes there (a changeset's Deploy, below)."},void 0,!1,void 0,this),z===null?H.jsxDEV("p",{children:"Loading…"},void 0,!1,void 0,this):H.jsxDEV("table",{"aria-label":"Real services",children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"vendor"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"real service"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"real key"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"last read from it"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"last sent"},void 0,!1,void 0,this),K?H.jsxDEV("th",{},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:z.map((C)=>H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:H.jsxDEV("a",{href:`${q0}/${Q}/${C.twin}`,title:`Its log and stored state · ${C.position??0} changes held${C.protocol?.major!==void 0?` · protocol ${C.protocol.major}${C.protocol.standing&&C.protocol.standing!=="current"?` (${C.protocol.standing})`:""}`:""}`,onClick:(b)=>{b.preventDefault(),v0([...Q.split("/"),C.twin])},children:F0(C.twin)},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:C.root?.url?H.jsxDEV("code",{children:C.root.url},void 0,!1,void 0,this):H.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:C.credential?`sealed ${C.credential.fingerprint??""} · ${IJ(C.credential.placedAt)}`:H.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:C.refresh?.failed?H.jsxDEV("span",{role:"alert",children:["failed ×",C.refresh.failed.count??1,": ",C.refresh.failed.reason??""]},void 0,!0,void 0,this):C.root?IJ(C.refresh?.observedAt??C.refresh?.at):H.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:C.lastReceipt?`${C.lastReceipt.status??""} ${C.lastReceipt.externalId??""} ${C.lastReceipt.reason??""}`.trim():H.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),K?H.jsxDEV("td",{children:[H.jsxDEV("button",{onClick:()=>void o5({title:`Read ${F0(C.twin)} now?`,body:`The real ${F0(C.twin)}'s current state is read into this World. Nothing is written to ${F0(C.twin)}.`,action:"Read from it"}).then((b)=>{if(b)k(`refresh ${C.twin}`,`/-/${Q}/twins/${C.twin}/refresh`,{method:"POST"})}),disabled:!C.root,title:"Read the real service's current state into this World",children:"Read from it"},void 0,!1,void 0,this)," ",H.jsxDEV("button",{onClick:()=>{let b=window.prompt(`The real ${F0(C.twin)}'s address (its API's URL); empty disconnects it`,C.root?.url??"");if(b===null)return;k(`root ${C.twin}`,`/-/${Q}/twins/${C.twin}/root`,{method:"PUT",body:JSON.stringify(b?{url:b}:null)})},title:"Connect this vendor to the real service's URL (empty disconnects it)",children:"Connect…"},void 0,!1,void 0,this)," ",H.jsxDEV("button",{onClick:()=>{let b=window.prompt(`The real ${F0(C.twin)} key: it is sealed beside this World and never shown again`);if(!b)return;k(`seal ${C.twin}`,`/-/${Q}/twins/${C.twin}/credential`,{method:"PUT",body:b,headers:{"content-type":"text/plain"}})},title:"Give this World the real service's key; it is sealed and never shown again",children:"Real key…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},C.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("h3",{children:"Traffic (last 24 hours)"},void 0,!1,void 0,this),f===null?H.jsxDEV("p",{className:"mode",children:"No request report for this world."},void 0,!1,void 0,this):f.requests===0?H.jsxDEV("p",{className:"mode",children:["No requests recorded in the last 24 hours. Recording is off unless the World runs with ",H.jsxDEV("code",{children:"VOLTER_TWIN_REQUEST_JOURNAL=1"},void 0,!1,void 0,this),"; what the requests changed is always in Activity."]},void 0,!0,void 0,this):H.jsxDEV("table",{"aria-label":"Requests by twin",children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"vendor"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"requests"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"by status"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"p50"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"p95"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"top routes"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:f.twins.map((C)=>H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:C.twin},void 0,!1,void 0,this),H.jsxDEV("td",{children:C.requests},void 0,!1,void 0,this),H.jsxDEV("td",{children:Object.entries(C.byStatus).map(([b,x])=>`${b}: ${x}`).join(" · ")||"—"},void 0,!1,void 0,this),H.jsxDEV("td",{children:C.p50Ms===null?"—":`${C.p50Ms} ms`},void 0,!1,void 0,this),H.jsxDEV("td",{children:C.p95Ms===null?"—":`${C.p95Ms} ms`},void 0,!1,void 0,this),H.jsxDEV("td",{children:C.topRoutes.slice(0,5).map((b)=>H.jsxDEV("div",{children:[H.jsxDEV("code",{children:b.route},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:["×",b.requests]},void 0,!0,void 0,this)]},b.route,!0,void 0,this))},void 0,!1,void 0,this)]},C.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("h3",{children:"Sending changes to the real services"},void 0,!1,void 0,this),H.jsxDEV("p",{className:"mode",children:["A changeset is a set of this World's changes (",H.jsxDEV("code",{children:'volter world changeset -m "…"'},void 0,!1,void 0,this),"), verified and approved, then deployed to each connected real service."]},void 0,!0,void 0,this),O===null?H.jsxDEV("p",{children:"Loading…"},void 0,!1,void 0,this):O.length===0?H.jsxDEV("p",{className:"mode",children:"No changesets yet."},void 0,!1,void 0,this):H.jsxDEV("table",{children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"name"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"changes"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"approvals"},void 0,!1,void 0,this),K?H.jsxDEV("th",{children:"actions"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:O.map((C)=>H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:C.name},void 0,!1,void 0,this),H.jsxDEV("td",{children:Array.isArray(C.actions)?C.actions.length:"—"},void 0,!1,void 0,this),H.jsxDEV("td",{children:Array.isArray(C.approvals)?C.approvals.length:0},void 0,!1,void 0,this),K?H.jsxDEV("td",{children:[H.jsxDEV("button",{onClick:()=>void k(`verify ${C.name}`,`/-/${Q}/changesets/${encodeURIComponent(C.name)}/verify`,{method:"POST"}),children:"Verify"},void 0,!1,void 0,this)," ",H.jsxDEV("button",{onClick:()=>{let b=window.prompt(`Approve ${C.name} as`);if(!b)return;k(`approve ${C.name}`,`/-/${Q}/changesets/${encodeURIComponent(C.name)}/approve`,{method:"POST",body:JSON.stringify({as:b})})},children:"Approve"},void 0,!1,void 0,this)," ",H.jsxDEV("button",{onClick:()=>void o5({title:`Deploy ${C.name}?`,body:"Its changes are sent to the real services now. That is what the World exists to keep you from doing by accident.",action:"Deploy to the real services",danger:!0,typed:C.name}).then((b)=>{if(b)k(`deploy ${C.name}`,`/-/${Q}/deploy/${encodeURIComponent(C.name)}`,{method:"POST",body:JSON.stringify({confirm:C.name})})}),children:"Deploy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},C.name,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z?H.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[H.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),H.jsxDEV("p",{children:[H.jsxDEV("button",{onClick:()=>void h(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:"New tokens for this World; every app, script and browser using the old ones is signed out."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.jsxDEV("p",{children:[H.jsxDEV("button",{onClick:()=>void P(),children:"Remove world"},void 0,!1,void 0,this)," ",H.jsxDEV("span",{className:"mode",children:"Deletes this World and everything in it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function cV({name:Q,token:U,twin:Z}){let[K,X]=A1.useState("log"),[W,z]=A1.useState(null),[B,O]=A1.useState(null);A1.useEffect(()=>{(async()=>{let f=await Y0(U,`/-/${Q}/log/${Z}?limit=1`);if(!f.ok){z({position:0,entries:[]});return}let{position:D}=await f.json(),j=Math.max(0,D-200),h=await(await Y0(U,`/-/${Q}/log/${Z}?after=${j}&limit=200&receipts=1`)).json();z({position:h.position,entries:[...h.entries].reverse()});let P=await Y0(U,`/-/${Q}/checkpoint/${Z}`);O(P.ok?(await P.json()).tree:[])})()},[Q,U,Z]);let[T,R]=A1.useState(!1);A1.useEffect(()=>{Y0(U,`/-/${Q}/twins/${Z}/status`).then(async(f)=>R(f.ok&&(await f.json()).mirror===!0),()=>R(!1))},[Q,U,Z]);let L=`${w6}/${Q}/${Z}/mirror/`,M=()=>{let f=document.createElement("form");f.method="POST",f.action=`${w6}/-/${Q}/session`;for(let[D,j]of[["token",U],["next",`/${Q}/${Z}/mirror/`]]){let k=document.createElement("input");k.type="hidden",k.name=D,k.value=j,f.append(k)}document.body.append(f),f.submit(),f.remove()},I=(f)=>f.operation==="observed"?`observed${f.provenance==="placeholder"?" (default data)":" (vendor)"}`:f.receipt?`${f.receipt.status??""} ${f.receipt.externalId??""} ${f.receipt.reason??""}`.trim():f.provenance==="placeholder"?"default data":"unpushed";return H.jsxDEV("section",{"aria-labelledby":"twin",children:[H.jsxDEV("h2",{id:"twin",children:[Z," in ",Q]},void 0,!0,void 0,this),H.jsxDEV("p",{children:["position ",W?.position??"…"," · ",H.jsxDEV("code",{children:[w6,"/",Q,"/",Z]},void 0,!0,void 0,this),T?H.jsxDEV(H.Fragment,{children:[" · ",H.jsxDEV("a",{href:L,onClick:(f)=>{f.preventDefault(),M()},children:["Open as ",Z," shows it"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),H.jsxDEV("div",{role:"tablist",children:[H.jsxDEV("button",{role:"tab","aria-selected":K==="log",onClick:()=>X("log"),children:"Log"},void 0,!1,void 0,this),H.jsxDEV("button",{role:"tab","aria-selected":K==="tree",onClick:()=>X("tree"),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K==="log"?W===null?H.jsxDEV("p",{children:"Loading…"},void 0,!1,void 0,this):W.entries.length===0?H.jsxDEV("p",{children:"No changes yet."},void 0,!1,void 0,this):H.jsxDEV("table",{children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"when"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"operation"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"subject"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"actor"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"standing"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:W.entries.map((f)=>H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:IJ(f.occurredAt)},void 0,!1,void 0,this),H.jsxDEV("td",{children:f.operation??f.op},void 0,!1,void 0,this),H.jsxDEV("td",{children:H.jsxDEV("code",{children:[f.subject.type,":",f.subject.id]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:f.actor?`${f.actor.kind}${f.actor.id?` ${f.actor.id}`:""}`:"—"},void 0,!1,void 0,this),H.jsxDEV("td",{children:nq(f)},void 0,!1,void 0,this)]},f.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):B===null?H.jsxDEV("p",{children:"Loading…"},void 0,!1,void 0,this):B.length===0?H.jsxDEV("p",{children:"The tree is empty."},void 0,!1,void 0,this):H.jsxDEV("table",{children:[H.jsxDEV("thead",{children:H.jsxDEV("tr",{children:[H.jsxDEV("th",{children:"type"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),H.jsxDEV("th",{children:"fields"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("tbody",{children:B.filter((f)=>f.deleted!==!0).slice(0,500).map((f)=>{let{type:D,id:j,...k}=f;return H.jsxDEV("tr",{children:[H.jsxDEV("td",{children:D},void 0,!1,void 0,this),H.jsxDEV("td",{children:H.jsxDEV("code",{children:j},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.jsxDEV("td",{children:H.jsxDEV("pre",{children:JSON.stringify(k,null,1).slice(0,600)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${D}:${j}`,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}bX();ER.createRoot(NJ).render(H.jsxDEV(H.Fragment,{children:[H.jsxDEV(zV,{},void 0,!1,void 0,this),H.jsxDEV(OR,{},void 0,!1,void 0,this),H.jsxDEV(RR,{},void 0,!1,void 0,this),H.jsxDEV(TR,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));