@volter/world-console 3.0.3 → 3.0.5

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,76 +1,76 @@
1
- var sP=Object.create;var{getPrototypeOf:tP,defineProperty:PA,getOwnPropertyNames:oP}=Object;var nP=Object.prototype.hasOwnProperty;function eP(Q){return this[Q]}var _N,JN,b0=(Q,U,Z)=>{var X=Q!=null&&typeof Q==="object";if(X){var H=U?_N??=new WeakMap:JN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?sP(tP(Q)):{};let B=U||!Q||!Q.__esModule?PA(Z,"default",{value:Q,enumerable:!0}):Z;for(let W of oP(Q))if(!nP.call(B,W))PA(B,W,{get:eP.bind(Q,W),enumerable:!0});if(X)H.set(Q,B);return B};var v4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var NA=v4(($N)=>{(function(){function Q(){if(y=!1,b){var g=$N.unstable_now();$1=g;var c=!0;try{_:{D=!1,N&&(N=!1,h(E),E=-1),f=!0;var a=S;try{J:{Y(g);for(V=Z(O);V!==null&&!(V.expirationTime>g&&W());){var r=V.callback;if(typeof r==="function"){V.callback=null,S=V.priorityLevel;var n=r(V.expirationTime<=g);if(g=$N.unstable_now(),typeof n==="function"){V.callback=n,Y(g),c=!0;break J}V===Z(O)&&X(O),Y(g)}else X(O);V=Z(O)}if(V!==null)c=!0;else{var k=Z(w);k!==null&&M(B,k.startTime-g),c=!1}}break _}finally{V=null,S=a,f=!1}c=void 0}}finally{c?J1():b=!1}}}function U(g,c){var a=g.length;g.push(c);_:for(;0<a;){var r=a-1>>>1,n=g[r];if(0<H(n,c))g[r]=c,g[a]=n,a=r;else break _}}function Z(g){return g.length===0?null:g[0]}function X(g){if(g.length===0)return null;var c=g[0],a=g.pop();if(a!==c){g[0]=a;_:for(var r=0,n=g.length,k=n>>>1;r<k;){var p=2*(r+1)-1,q1=g[p],s=p+1,H1=g[s];if(0>H(q1,a))s<n&&0>H(H1,q1)?(g[r]=H1,g[s]=a,r=s):(g[r]=q1,g[p]=a,r=p);else if(s<n&&0>H(H1,a))g[r]=H1,g[s]=a,r=s;else break _}}return c}function H(g,c){var a=g.sortIndex-c.sortIndex;return a!==0?a:g.id-c.id}function Y(g){for(var c=Z(w);c!==null;){if(c.callback===null)X(w);else if(c.startTime<=g)X(w),c.sortIndex=c.expirationTime,U(O,c);else break;c=Z(w)}}function B(g){if(N=!1,Y(g),!D)if(Z(O)!==null)D=!0,b||(b=!0,J1());else{var c=Z(w);c!==null&&M(B,c.startTime-g)}}function W(){return y?!0:$N.unstable_now()-$1<m?!1:!0}function M(g,c){E=v(function(){g($N.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),$N.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;$N.unstable_now=function(){return R.now()}}else{var T=Date,A=T.now();$N.unstable_now=function(){return T.now()-A}}var O=[],w=[],P=1,V=null,S=3,f=!1,D=!1,N=!1,y=!1,v=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,u=typeof setImmediate<"u"?setImmediate:null,b=!1,E=-1,m=5,$1=-1;if(typeof u==="function")var J1=function(){u(Q)};else if(typeof MessageChannel<"u"){var t=new MessageChannel,x=t.port2;t.port1.onmessage=Q,J1=function(){x.postMessage(null)}}else J1=function(){v(Q,0)};$N.unstable_IdlePriority=5,$N.unstable_ImmediatePriority=1,$N.unstable_LowPriority=4,$N.unstable_NormalPriority=3,$N.unstable_Profiling=null,$N.unstable_UserBlockingPriority=2,$N.unstable_cancelCallback=function(g){g.callback=null},$N.unstable_forceFrameRate=function(g){0>g||125<g?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<g?Math.floor(1000/g):5},$N.unstable_getCurrentPriorityLevel=function(){return S},$N.unstable_next=function(g){switch(S){case 1:case 2:case 3:var c=3;break;default:c=S}var a=S;S=c;try{return g()}finally{S=a}},$N.unstable_requestPaint=function(){y=!0},$N.unstable_runWithPriority=function(g,c){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var a=S;S=g;try{return c()}finally{S=a}},$N.unstable_scheduleCallback=function(g,c,a){var r=$N.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?r+a:r):a=r,g){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5000}return n=a+n,g={id:P++,callback:c,priorityLevel:g,startTime:a,expirationTime:n,sortIndex:-1},a>r?(g.sortIndex=a,U(w,g),Z(O)===null&&g===Z(w)&&(N?(h(E),E=-1):N=!0,M(B,a-r))):(g.sortIndex=n,U(O,g),D||f||(D=!0,b||(b=!0,J1()))),g},$N.unstable_shouldYield=W,$N.unstable_wrapCallback=function(g){var c=S;return function(){var a=S;S=c;try{return g.apply(this,arguments)}finally{S=a}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var o5=v4((QN,Kq)=>{(function(){function Q(j,Q1){Object.defineProperty(X.prototype,j,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",Q1[0],Q1[1])}})}function U(j){if(j===null||typeof j!=="object")return null;return j=N1&&j[N1]||j["@@iterator"],typeof j==="function"?j:null}function Z(j,Q1){j=(j=j.constructor)&&(j.displayName||j.name)||"ReactClass";var R1=j+"."+Q1;W1[R1]||(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.",Q1,j),W1[R1]=!0)}function X(j,Q1,R1){this.props=j,this.context=Q1,this.refs=h1,this.updater=R1||S1}function H(){}function Y(j,Q1,R1){this.props=j,this.context=Q1,this.refs=h1,this.updater=R1||S1}function B(){}function W(j){return""+j}function M(j){try{W(j);var Q1=!1}catch(C1){Q1=!0}if(Q1){Q1=console;var R1=Q1.error,w1=typeof Symbol==="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return R1.call(Q1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",w1),W(j)}}function R(j){if(j==null)return null;if(typeof j==="function")return j.$$typeof===i1?null:j.displayName||j.name||null;if(typeof j==="string")return j;switch(j){case n:return"Fragment";case p:return"Profiler";case k:return"StrictMode";case M1:return"Suspense";case A1:return"SuspenseList";case O1:return"Activity"}if(typeof j==="object")switch(typeof j.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case r:return"Portal";case s:return j.displayName||"Context";case q1:return(j._context.displayName||"Context")+".Consumer";case H1:var Q1=j.render;return j=j.displayName,j||(j=Q1.displayName||Q1.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case B1:return Q1=j.displayName||null,Q1!==null?Q1:R(j.type)||"Memo";case U1:Q1=j._payload,j=j._init;try{return R(j(Q1))}catch(R1){}}return null}function T(j){if(j===n)return"<>";if(typeof j==="object"&&j!==null&&j.$$typeof===U1)return"<...>";try{var Q1=R(j);return Q1?"<"+Q1+">":"<...>"}catch(R1){return"<...>"}}function A(){var j=j1.A;return j===null?null:j.getOwner()}function O(){return Error("react-stack-top-frame")}function w(j){if(x0.call(j,"key")){var Q1=Object.getOwnPropertyDescriptor(j,"key").get;if(Q1&&Q1.isReactWarning)return!1}return j.key!==void 0}function P(j,Q1){function R1(){B2||(B2=!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)",Q1))}R1.isReactWarning=!0,Object.defineProperty(j,"key",{get:R1,configurable:!0})}function V(){var j=R(this.type);return k2[j]||(k2[j]=!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.")),j=this.props.ref,j!==void 0?j:null}function S(j,Q1,R1,w1,C1,c1){var l1=R1.ref;return j={$$typeof:a,type:j,key:Q1,props:R1,_owner:w1},(l1!==void 0?l1:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:V}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:C1}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:c1}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function f(j,Q1){return Q1=S(j.type,Q1,j.props,j._owner,j._debugStack,j._debugTask),j._store&&(Q1._store.validated=j._store.validated),Q1}function D(j){N(j)?j._store&&(j._store.validated=1):typeof j==="object"&&j!==null&&j.$$typeof===U1&&(j._payload.status==="fulfilled"?N(j._payload.value)&&j._payload.value._store&&(j._payload.value._store.validated=1):j._store&&(j._store.validated=1))}function N(j){return typeof j==="object"&&j!==null&&j.$$typeof===a}function y(j){var Q1={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(R1){return Q1[R1]})}function v(j,Q1){return typeof j==="object"&&j!==null&&j.key!=null?(M(j.key),y(""+j.key)):Q1.toString(36)}function h(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status==="string"?j.then(B,B):(j.status="pending",j.then(function(Q1){j.status==="pending"&&(j.status="fulfilled",j.value=Q1)},function(Q1){j.status==="pending"&&(j.status="rejected",j.reason=Q1)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function u(j,Q1,R1,w1,C1){var c1=typeof j;if(c1==="undefined"||c1==="boolean")j=null;var l1=!1;if(j===null)l1=!0;else switch(c1){case"bigint":case"string":case"number":l1=!0;break;case"object":switch(j.$$typeof){case a:case r:l1=!0;break;case U1:return l1=j._init,u(l1(j._payload),Q1,R1,w1,C1)}}if(l1){l1=j,C1=C1(l1);var K0=w1===""?"."+v(l1,0):w1;return L1(C1)?(R1="",K0!=null&&(R1=K0.replace(w2,"$&/")+"/"),u(C1,Q1,R1,"",function(Z2){return Z2})):C1!=null&&(N(C1)&&(C1.key!=null&&(l1&&l1.key===C1.key||M(C1.key)),R1=f(C1,R1+(C1.key==null||l1&&l1.key===C1.key?"":(""+C1.key).replace(w2,"$&/")+"/")+K0),w1!==""&&l1!=null&&N(l1)&&l1.key==null&&l1._store&&!l1._store.validated&&(R1._store.validated=2),C1=R1),Q1.push(C1)),1}if(l1=0,K0=w1===""?".":w1+":",L1(j))for(var D1=0;D1<j.length;D1++)w1=j[D1],c1=K0+v(w1,D1),l1+=u(w1,Q1,R1,c1,C1);else if(D1=U(j),typeof D1==="function")for(D1===j.entries&&(I2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),I2=!0),j=D1.call(j),D1=0;!(w1=j.next()).done;)w1=w1.value,c1=K0+v(w1,D1++),l1+=u(w1,Q1,R1,c1,C1);else if(c1==="object"){if(typeof j.then==="function")return u(h(j),Q1,R1,w1,C1);throw Q1=String(j),Error("Objects are not valid as a React child (found: "+(Q1==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Q1)+"). If you meant to render a collection of children, use an array instead.")}return l1}function b(j,Q1,R1){if(j==null)return j;var w1=[],C1=0;return u(j,w1,"","",function(c1){return Q1.call(R1,c1,C1++)}),w1}function E(j){if(j._status===-1){var Q1=j._ioInfo;Q1!=null&&(Q1.start=Q1.end=performance.now()),Q1=j._result;var R1=Q1();if(R1.then(function(C1){if(j._status===0||j._status===-1){j._status=1,j._result=C1;var c1=j._ioInfo;c1!=null&&(c1.end=performance.now()),R1.status===void 0&&(R1.status="fulfilled",R1.value=C1)}},function(C1){if(j._status===0||j._status===-1){j._status=2,j._result=C1;var c1=j._ioInfo;c1!=null&&(c1.end=performance.now()),R1.status===void 0&&(R1.status="rejected",R1.reason=C1)}}),Q1=j._ioInfo,Q1!=null){Q1.value=R1;var w1=R1.displayName;typeof w1==="string"&&(Q1.name=w1)}j._status===-1&&(j._status=0,j._result=R1)}if(j._status===1)return Q1=j._result,Q1===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var eP=Object.create;var{getPrototypeOf:_N,defineProperty:jA,getOwnPropertyNames:JN}=Object;var $N=Object.prototype.hasOwnProperty;function QN(Q){return this[Q]}var qN,UN,E0=(Q,U,Z)=>{var X=Q!=null&&typeof Q==="object";if(X){var H=U?qN??=new WeakMap:UN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?eP(_N(Q)):{};let W=U||!Q||!Q.__esModule?jA(Z,"default",{value:Q,enumerable:!0}):Z;for(let B of JN(Q))if(!$N.call(W,B))jA(W,B,{get:QN.bind(Q,B),enumerable:!0});if(X)H.set(Q,W);return W};var D4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var vA=D4((GN)=>{(function(){function Q(){if(v=!1,b){var g=GN.unstable_now();e=g;var c=!0;try{_:{D=!1,N&&(N=!1,h(E),E=-1),C=!0;var a=S;try{J:{Y(g);for(V=Z(O);V!==null&&!(V.expirationTime>g&&B());){var d=V.callback;if(typeof d==="function"){V.callback=null,S=V.priorityLevel;var t=d(V.expirationTime<=g);if(g=GN.unstable_now(),typeof t==="function"){V.callback=t,Y(g),c=!0;break J}V===Z(O)&&X(O),Y(g)}else X(O);V=Z(O)}if(V!==null)c=!0;else{var y=Z(w);y!==null&&T(W,y.startTime-g),c=!1}}break _}finally{V=null,S=a,C=!1}c=void 0}}finally{c?Q1():b=!1}}}function U(g,c){var a=g.length;g.push(c);_:for(;0<a;){var d=a-1>>>1,t=g[d];if(0<H(t,c))g[d]=c,g[a]=t,a=d;else break _}}function Z(g){return g.length===0?null:g[0]}function X(g){if(g.length===0)return null;var c=g[0],a=g.pop();if(a!==c){g[0]=a;_:for(var d=0,t=g.length,y=t>>>1;d<y;){var p=2*(d+1)-1,q1=g[p],s=p+1,W1=g[s];if(0>H(q1,a))s<t&&0>H(W1,q1)?(g[d]=W1,g[s]=a,d=s):(g[d]=q1,g[p]=a,d=p);else if(s<t&&0>H(W1,a))g[d]=W1,g[s]=a,d=s;else break _}}return c}function H(g,c){var a=g.sortIndex-c.sortIndex;return a!==0?a:g.id-c.id}function Y(g){for(var c=Z(w);c!==null;){if(c.callback===null)X(w);else if(c.startTime<=g)X(w),c.sortIndex=c.expirationTime,U(O,c);else break;c=Z(w)}}function W(g){if(N=!1,Y(g),!D)if(Z(O)!==null)D=!0,b||(b=!0,Q1());else{var c=Z(w);c!==null&&T(W,c.startTime-g)}}function B(){return v?!0:GN.unstable_now()-e<m?!1:!0}function T(g,c){E=u(function(){g(GN.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),GN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;GN.unstable_now=function(){return R.now()}}else{var M=Date,A=M.now();GN.unstable_now=function(){return M.now()-A}}var O=[],w=[],P=1,V=null,S=3,C=!1,D=!1,N=!1,v=!1,u=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null,b=!1,E=-1,m=5,e=-1;if(typeof k==="function")var Q1=function(){k(Q)};else if(typeof MessageChannel<"u"){var J1=new MessageChannel,x=J1.port2;J1.port1.onmessage=Q,Q1=function(){x.postMessage(null)}}else Q1=function(){u(Q,0)};GN.unstable_IdlePriority=5,GN.unstable_ImmediatePriority=1,GN.unstable_LowPriority=4,GN.unstable_NormalPriority=3,GN.unstable_Profiling=null,GN.unstable_UserBlockingPriority=2,GN.unstable_cancelCallback=function(g){g.callback=null},GN.unstable_forceFrameRate=function(g){0>g||125<g?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<g?Math.floor(1000/g):5},GN.unstable_getCurrentPriorityLevel=function(){return S},GN.unstable_next=function(g){switch(S){case 1:case 2:case 3:var c=3;break;default:c=S}var a=S;S=c;try{return g()}finally{S=a}},GN.unstable_requestPaint=function(){v=!0},GN.unstable_runWithPriority=function(g,c){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var a=S;S=g;try{return c()}finally{S=a}},GN.unstable_scheduleCallback=function(g,c,a){var d=GN.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?d+a:d):a=d,g){case 1:var t=-1;break;case 2:t=250;break;case 5:t=1073741823;break;case 4:t=1e4;break;default:t=5000}return t=a+t,g={id:P++,callback:c,priorityLevel:g,startTime:a,expirationTime:t,sortIndex:-1},a>d?(g.sortIndex=a,U(w,g),Z(O)===null&&g===Z(w)&&(N?(h(E),E=-1):N=!0,T(W,a-d))):(g.sortIndex=t,U(O,g),D||C||(D=!0,b||(b=!0,Q1()))),g},GN.unstable_shouldYield=B,GN.unstable_wrapCallback=function(g){var c=S;return function(){var a=S;S=c;try{return g.apply(this,arguments)}finally{S=a}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var n5=D4((ZN,zq)=>{(function(){function Q(j,$1){Object.defineProperty(X.prototype,j,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",$1[0],$1[1])}})}function U(j){if(j===null||typeof j!=="object")return null;return j=v1&&j[v1]||j["@@iterator"],typeof j==="function"?j:null}function Z(j,$1){j=(j=j.constructor)&&(j.displayName||j.name)||"ReactClass";var P1=j+"."+$1;M1[P1]||(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,j),M1[P1]=!0)}function X(j,$1,P1){this.props=j,this.context=$1,this.refs=I1,this.updater=P1||G1}function H(){}function Y(j,$1,P1){this.props=j,this.context=$1,this.refs=I1,this.updater=P1||G1}function W(){}function B(j){return""+j}function T(j){try{B(j);var $1=!1}catch(y1){$1=!0}if($1){$1=console;var P1=$1.error,S1=typeof Symbol==="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return P1.call($1,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S1),B(j)}}function R(j){if(j==null)return null;if(typeof j==="function")return j.$$typeof===u1?null:j.displayName||j.name||null;if(typeof j==="string")return j;switch(j){case t:return"Fragment";case p:return"Profiler";case y:return"StrictMode";case R1:return"Suspense";case T1:return"SuspenseList";case w1:return"Activity"}if(typeof j==="object")switch(typeof j.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case d:return"Portal";case s:return j.displayName||"Context";case q1:return(j._context.displayName||"Context")+".Consumer";case W1:var $1=j.render;return j=j.displayName,j||(j=$1.displayName||$1.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case A1:return $1=j.displayName||null,$1!==null?$1:R(j.type)||"Memo";case U1:$1=j._payload,j=j._init;try{return R(j($1))}catch(P1){}}return null}function M(j){if(j===t)return"<>";if(typeof j==="object"&&j!==null&&j.$$typeof===U1)return"<...>";try{var $1=R(j);return $1?"<"+$1+">":"<...>"}catch(P1){return"<...>"}}function A(){var j=N1.A;return j===null?null:j.getOwner()}function O(){return Error("react-stack-top-frame")}function w(j){if(Q0.call(j,"key")){var $1=Object.getOwnPropertyDescriptor(j,"key").get;if($1&&$1.isReactWarning)return!1}return j.key!==void 0}function P(j,$1){function P1(){a0||(a0=!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))}P1.isReactWarning=!0,Object.defineProperty(j,"key",{get:P1,configurable:!0})}function V(){var j=R(this.type);return O0[j]||(O0[j]=!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.")),j=this.props.ref,j!==void 0?j:null}function S(j,$1,P1,S1,y1,l1){var d1=P1.ref;return j={$$typeof:a,type:j,key:$1,props:P1,_owner:S1},(d1!==void 0?d1:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:V}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y1}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l1}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function C(j,$1){return $1=S(j.type,$1,j.props,j._owner,j._debugStack,j._debugTask),j._store&&($1._store.validated=j._store.validated),$1}function D(j){N(j)?j._store&&(j._store.validated=1):typeof j==="object"&&j!==null&&j.$$typeof===U1&&(j._payload.status==="fulfilled"?N(j._payload.value)&&j._payload.value._store&&(j._payload.value._store.validated=1):j._store&&(j._store.validated=1))}function N(j){return typeof j==="object"&&j!==null&&j.$$typeof===a}function v(j){var $1={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(P1){return $1[P1]})}function u(j,$1){return typeof j==="object"&&j!==null&&j.key!=null?(T(j.key),v(""+j.key)):$1.toString(36)}function h(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status==="string"?j.then(W,W):(j.status="pending",j.then(function($1){j.status==="pending"&&(j.status="fulfilled",j.value=$1)},function($1){j.status==="pending"&&(j.status="rejected",j.reason=$1)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function k(j,$1,P1,S1,y1){var l1=typeof j;if(l1==="undefined"||l1==="boolean")j=null;var d1=!1;if(j===null)d1=!0;else switch(l1){case"bigint":case"string":case"number":d1=!0;break;case"object":switch(j.$$typeof){case a:case d:d1=!0;break;case U1:return d1=j._init,k(d1(j._payload),$1,P1,S1,y1)}}if(d1){d1=j,y1=y1(d1);var K0=S1===""?"."+u(d1,0):S1;return K1(y1)?(P1="",K0!=null&&(P1=K0.replace(N2,"$&/")+"/"),k(y1,$1,P1,"",function(H2){return H2})):y1!=null&&(N(y1)&&(y1.key!=null&&(d1&&d1.key===y1.key||T(y1.key)),P1=C(y1,P1+(y1.key==null||d1&&d1.key===y1.key?"":(""+y1.key).replace(N2,"$&/")+"/")+K0),S1!==""&&d1!=null&&N(d1)&&d1.key==null&&d1._store&&!d1._store.validated&&(P1._store.validated=2),y1=P1),$1.push(y1)),1}if(d1=0,K0=S1===""?".":S1+":",K1(j))for(var E1=0;E1<j.length;E1++)S1=j[E1],l1=K0+u(S1,E1),d1+=k(S1,$1,P1,l1,y1);else if(E1=U(j),typeof E1==="function")for(E1===j.entries&&(P2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),P2=!0),j=E1.call(j),E1=0;!(S1=j.next()).done;)S1=S1.value,l1=K0+u(S1,E1++),d1+=k(S1,$1,P1,l1,y1);else if(l1==="object"){if(typeof j.then==="function")return k(h(j),$1,P1,S1,y1);throw $1=String(j),Error("Objects are not valid as a React child (found: "+($1==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":$1)+"). If you meant to render a collection of children, use an array instead.")}return d1}function b(j,$1,P1){if(j==null)return j;var S1=[],y1=0;return k(j,S1,"","",function(l1){return $1.call(P1,l1,y1++)}),S1}function E(j){if(j._status===-1){var $1=j._ioInfo;$1!=null&&($1.start=$1.end=performance.now()),$1=j._result;var P1=$1();if(P1.then(function(y1){if(j._status===0||j._status===-1){j._status=1,j._result=y1;var l1=j._ioInfo;l1!=null&&(l1.end=performance.now()),P1.status===void 0&&(P1.status="fulfilled",P1.value=y1)}},function(y1){if(j._status===0||j._status===-1){j._status=2,j._result=y1;var l1=j._ioInfo;l1!=null&&(l1.end=performance.now()),P1.status===void 0&&(P1.status="rejected",P1.reason=y1)}}),$1=j._ioInfo,$1!=null){$1.value=P1;var S1=P1.displayName;typeof S1==="string"&&($1.name=S1)}j._status===-1&&(j._status=0,j._result=P1)}if(j._status===1)return $1=j._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?`,Q1),"default"in Q1||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'))`,Q1),Q1.default;throw j._result}function m(){var j=j1.H;return j===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 j._result}function m(){var j=N1.H;return j===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.`),j}function $1(){j1.asyncTransitions--}function J1(j){if(h5===null)try{var Q1=("require"+Math.random()).slice(0,7);h5=(Kq&&Kq[Q1]).call(Kq,"timers").setImmediate}catch(R1){h5=function(w1){N3===!1&&(N3=!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 C1=new MessageChannel;C1.port1.onmessage=w1,C1.port2.postMessage(void 0)}}return h5(j)}function t(j){return 1<j.length&&typeof AggregateError==="function"?AggregateError(j):j[0]}function x(j,Q1){Q1!==m4-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. "),m4=Q1}function g(j,Q1,R1){var w1=j1.actQueue;if(w1!==null)if(w1.length!==0)try{c(w1),J1(function(){return g(j,Q1,R1)});return}catch(C1){j1.thrownErrors.push(C1)}else j1.actQueue=null;0<j1.thrownErrors.length?(w1=t(j1.thrownErrors),j1.thrownErrors.length=0,R1(w1)):Q1(j)}function c(j){if(!p4){p4=!0;var Q1=0;try{for(;Q1<j.length;Q1++){var R1=j[Q1];do{j1.didUsePromise=!1;var w1=R1(!1);if(w1!==null){if(j1.didUsePromise){j[Q1]=R1,j.splice(0,Q1);return}R1=w1}else break}while(1)}j.length=0}catch(C1){j.splice(0,Q1+1),j1.thrownErrors.push(C1)}finally{p4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),q1=Symbol.for("react.consumer"),s=Symbol.for("react.context"),H1=Symbol.for("react.forward_ref"),M1=Symbol.for("react.suspense"),A1=Symbol.for("react.suspense_list"),B1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),O1=Symbol.for("react.activity"),N1=Symbol.iterator,W1={},S1={isMounted:function(){return!1},enqueueForceUpdate:function(j){Z(j,"forceUpdate")},enqueueReplaceState:function(j){Z(j,"replaceState")},enqueueSetState:function(j){Z(j,"setState")}},k1=Object.assign,h1={};Object.freeze(h1),X.prototype.isReactComponent={},X.prototype.setState=function(j,Q1){if(typeof j!=="object"&&typeof j!=="function"&&j!=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,j,Q1,"setState")},X.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"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(Q4 in v1)v1.hasOwnProperty(Q4)&&Q(Q4,v1[Q4]);H.prototype=X.prototype,v1=Y.prototype=new H,v1.constructor=Y,k1(v1,X.prototype),v1.isPureReactComponent=!0;var L1=Array.isArray,i1=Symbol.for("react.client.reference"),j1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},x0=Object.prototype.hasOwnProperty,e1=console.createTask?console.createTask:function(){return null};v1={react_stack_bottom_frame:function(j){return j()}};var B2,O2,k2={},v2=v1.react_stack_bottom_frame.bind(v1,O)(),D2=e1(T(O)),I2=!1,w2=/\/+/g,P2=typeof reportError==="function"?reportError:function(j){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Q1=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j==="object"&&j!==null&&typeof j.message==="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Q1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",j);return}console.error(j)},N3=!1,h5=null,m4=0,g4=!1,p4=!1,y6=typeof queueMicrotask==="function"?function(j){queueMicrotask(function(){return queueMicrotask(j)})}:J1;v1=Object.freeze({__proto__:null,c:function(j){return m().useMemoCache(j)}});var Q4={map:b,forEach:function(j,Q1,R1){b(j,function(){Q1.apply(this,arguments)},R1)},count:function(j){var Q1=0;return b(j,function(){Q1++}),Q1},toArray:function(j){return b(j,function(Q1){return Q1})||[]},only:function(j){if(!N(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};QN.Activity=O1,QN.Children=Q4,QN.Component=X,QN.Fragment=n,QN.Profiler=p,QN.PureComponent=Y,QN.StrictMode=k,QN.Suspense=M1,QN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j1,QN.__COMPILER_RUNTIME=v1,QN.act=function(j){var Q1=j1.actQueue,R1=m4;m4++;var w1=j1.actQueue=Q1!==null?Q1:[],C1=!1;try{var c1=j()}catch(D1){j1.thrownErrors.push(D1)}if(0<j1.thrownErrors.length)throw x(Q1,R1),j=t(j1.thrownErrors),j1.thrownErrors.length=0,j;if(c1!==null&&typeof c1==="object"&&typeof c1.then==="function"){var l1=c1;return y6(function(){C1||g4||(g4=!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(D1,Z2){C1=!0,l1.then(function(b2){if(x(Q1,R1),R1===0){try{c(w1),J1(function(){return g(b2,D1,Z2)})}catch(V6){j1.thrownErrors.push(V6)}if(0<j1.thrownErrors.length){var q4=t(j1.thrownErrors);j1.thrownErrors.length=0,Z2(q4)}}else D1(b2)},function(b2){x(Q1,R1),0<j1.thrownErrors.length?(b2=t(j1.thrownErrors),j1.thrownErrors.length=0,Z2(b2)):Z2(b2)})}}}var K0=c1;if(x(Q1,R1),R1===0&&(c(w1),w1.length!==0&&y6(function(){C1||g4||(g4=!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(() => ...)"))}),j1.actQueue=null),0<j1.thrownErrors.length)throw j=t(j1.thrownErrors),j1.thrownErrors.length=0,j;return{then:function(D1,Z2){C1=!0,R1===0?(j1.actQueue=w1,J1(function(){return g(K0,D1,Z2)})):D1(K0)}}},QN.cache=function(j){return function(){return j.apply(null,arguments)}},QN.cacheSignal=function(){return null},QN.captureOwnerStack=function(){var j=j1.getCurrentStack;return j===null?null:j()},QN.cloneElement=function(j,Q1,R1){if(j===null||j===void 0)throw Error("The argument must be a React element, but you passed "+j+".");var w1=k1({},j.props),C1=j.key,c1=j._owner;if(Q1!=null){var l1;_:{if(x0.call(Q1,"ref")&&(l1=Object.getOwnPropertyDescriptor(Q1,"ref").get)&&l1.isReactWarning){l1=!1;break _}l1=Q1.ref!==void 0}l1&&(c1=A()),w(Q1)&&(M(Q1.key),C1=""+Q1.key);for(K0 in Q1)!x0.call(Q1,K0)||K0==="key"||K0==="__self"||K0==="__source"||K0==="ref"&&Q1.ref===void 0||(w1[K0]=Q1[K0])}var K0=arguments.length-2;if(K0===1)w1.children=R1;else if(1<K0){l1=Array(K0);for(var D1=0;D1<K0;D1++)l1[D1]=arguments[D1+2];w1.children=l1}w1=S(j.type,C1,w1,c1,j._debugStack,j._debugTask);for(C1=2;C1<arguments.length;C1++)D(arguments[C1]);return w1},QN.createContext=function(j){return j={$$typeof:s,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:q1,_context:j},j._currentRenderer=null,j._currentRenderer2=null,j},QN.createElement=function(j,Q1,R1){for(var w1=2;w1<arguments.length;w1++)D(arguments[w1]);w1={};var C1=null;if(Q1!=null)for(D1 in O2||!("__self"in Q1)||"key"in Q1||(O2=!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")),w(Q1)&&(M(Q1.key),C1=""+Q1.key),Q1)x0.call(Q1,D1)&&D1!=="key"&&D1!=="__self"&&D1!=="__source"&&(w1[D1]=Q1[D1]);var c1=arguments.length-2;if(c1===1)w1.children=R1;else if(1<c1){for(var l1=Array(c1),K0=0;K0<c1;K0++)l1[K0]=arguments[K0+2];Object.freeze&&Object.freeze(l1),w1.children=l1}if(j&&j.defaultProps)for(D1 in c1=j.defaultProps,c1)w1[D1]===void 0&&(w1[D1]=c1[D1]);C1&&P(w1,typeof j==="function"?j.displayName||j.name||"Unknown":j);var D1=1e4>j1.recentlyCreatedOwnerStacks++;return S(j,C1,w1,A(),D1?Error("react-stack-top-frame"):v2,D1?e1(T(j)):D2)},QN.createRef=function(){var j={current:null};return Object.seal(j),j},QN.forwardRef=function(j){j!=null&&j.$$typeof===B1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof j!=="function"?console.error("forwardRef requires a render function but was given %s.",j===null?"null":typeof j):j.length!==0&&j.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",j.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),j!=null&&j.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Q1={$$typeof:H1,render:j},R1;return Object.defineProperty(Q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return R1},set:function(w1){R1=w1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:w1}),j.displayName=w1)}}),Q1},QN.isValidElement=N,QN.lazy=function(j){j={_status:-1,_result:j};var Q1={$$typeof:U1,_payload:j,_init:E},R1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return j._ioInfo=R1,Q1._debugInfo=[{awaited:R1}],Q1},QN.memo=function(j,Q1){j==null&&console.error("memo: The first argument must be a component. Instead received: %s",j===null?"null":typeof j),Q1={$$typeof:B1,type:j,compare:Q1===void 0?null:Q1};var R1;return Object.defineProperty(Q1,"displayName",{enumerable:!1,configurable:!0,get:function(){return R1},set:function(w1){R1=w1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:w1}),j.displayName=w1)}}),Q1},QN.startTransition=function(j){var Q1=j1.T,R1={};R1._updatedFibers=new Set,j1.T=R1;try{var w1=j(),C1=j1.S;C1!==null&&C1(R1,w1),typeof w1==="object"&&w1!==null&&typeof w1.then==="function"&&(j1.asyncTransitions++,w1.then($1,$1),w1.then(B,P2))}catch(c1){P2(c1)}finally{Q1===null&&R1._updatedFibers&&(j=R1._updatedFibers.size,R1._updatedFibers.clear(),10<j&&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.")),Q1!==null&&R1.types!==null&&(Q1.types!==null&&Q1.types!==R1.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."),Q1.types=R1.types),j1.T=Q1}},QN.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},QN.use=function(j){return m().use(j)},QN.useActionState=function(j,Q1,R1){return m().useActionState(j,Q1,R1)},QN.useCallback=function(j,Q1){return m().useCallback(j,Q1)},QN.useContext=function(j){var Q1=m();return j.$$typeof===q1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),Q1.useContext(j)},QN.useDebugValue=function(j,Q1){return m().useDebugValue(j,Q1)},QN.useDeferredValue=function(j,Q1){return m().useDeferredValue(j,Q1)},QN.useEffect=function(j,Q1){return j==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useEffect(j,Q1)},QN.useEffectEvent=function(j){return m().useEffectEvent(j)},QN.useId=function(){return m().useId()},QN.useImperativeHandle=function(j,Q1,R1){return m().useImperativeHandle(j,Q1,R1)},QN.useInsertionEffect=function(j,Q1){return j==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useInsertionEffect(j,Q1)},QN.useLayoutEffect=function(j,Q1){return j==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useLayoutEffect(j,Q1)},QN.useMemo=function(j,Q1){return m().useMemo(j,Q1)},QN.useOptimistic=function(j,Q1){return m().useOptimistic(j,Q1)},QN.useReducer=function(j,Q1,R1){return m().useReducer(j,Q1,R1)},QN.useRef=function(j){return m().useRef(j)},QN.useState=function(j){return m().useState(j)},QN.useSyncExternalStore=function(j,Q1,R1){return m().useSyncExternalStore(j,Q1,R1)},QN.useTransition=function(){return m().useTransition()},QN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fA=v4((qN)=>{var hK=b0(o5());(function(){function Q(){}function U(T){return""+T}function Z(T,A,O){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(w);var P=!1}catch(V){P=!0}return P&&(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&&w[Symbol.toStringTag]||w.constructor.name||"Object"),U(w)),{$$typeof:M,key:w==null?null:""+w,children:T,containerInfo:A,implementation:O}}function X(T,A){if(T==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function H(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 B(){var T=R.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:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),j}function e(){N1.asyncTransitions--}function Q1(j){if(x5===null)try{var $1=("require"+Math.random()).slice(0,7);x5=(zq&&zq[$1]).call(zq,"timers").setImmediate}catch(P1){x5=function(S1){C3===!1&&(C3=!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 y1=new MessageChannel;y1.port1.onmessage=S1,y1.port2.postMessage(void 0)}}return x5(j)}function J1(j){return 1<j.length&&typeof AggregateError==="function"?AggregateError(j):j[0]}function x(j,$1){$1!==g4-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. "),g4=$1}function g(j,$1,P1){var S1=N1.actQueue;if(S1!==null)if(S1.length!==0)try{c(S1),Q1(function(){return g(j,$1,P1)});return}catch(y1){N1.thrownErrors.push(y1)}else N1.actQueue=null;0<N1.thrownErrors.length?(S1=J1(N1.thrownErrors),N1.thrownErrors.length=0,P1(S1)):$1(j)}function c(j){if(!c4){c4=!0;var $1=0;try{for(;$1<j.length;$1++){var P1=j[$1];do{N1.didUsePromise=!1;var S1=P1(!1);if(S1!==null){if(N1.didUsePromise){j[$1]=P1,j.splice(0,$1);return}P1=S1}else break}while(1)}j.length=0}catch(y1){j.splice(0,$1+1),N1.thrownErrors.push(y1)}finally{c4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),q1=Symbol.for("react.consumer"),s=Symbol.for("react.context"),W1=Symbol.for("react.forward_ref"),R1=Symbol.for("react.suspense"),T1=Symbol.for("react.suspense_list"),A1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),w1=Symbol.for("react.activity"),v1=Symbol.iterator,M1={},G1={isMounted:function(){return!1},enqueueForceUpdate:function(j){Z(j,"forceUpdate")},enqueueReplaceState:function(j){Z(j,"replaceState")},enqueueSetState:function(j){Z(j,"setState")}},B1=Object.assign,I1={};Object.freeze(I1),X.prototype.isReactComponent={},X.prototype.setState=function(j,$1){if(typeof j!=="object"&&typeof j!=="function"&&j!=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,j,$1,"setState")},X.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};var C1={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(q4 in C1)C1.hasOwnProperty(q4)&&Q(q4,C1[q4]);H.prototype=X.prototype,C1=Y.prototype=new H,C1.constructor=Y,B1(C1,X.prototype),C1.isPureReactComponent=!0;var K1=Array.isArray,u1=Symbol.for("react.client.reference"),N1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Q0=Object.prototype.hasOwnProperty,b1=console.createTask?console.createTask:function(){return null};C1={react_stack_bottom_frame:function(j){return j()}};var a0,q2,O0={},D2=C1.react_stack_bottom_frame.bind(C1,O)(),u2=b1(M(O)),P2=!1,N2=/\/+/g,C2=typeof reportError==="function"?reportError:function(j){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var $1=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j==="object"&&j!==null&&typeof j.message==="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent($1))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",j);return}console.error(j)},C3=!1,x5=null,g4=0,p4=!1,c4=!1,y6=typeof queueMicrotask==="function"?function(j){queueMicrotask(function(){return queueMicrotask(j)})}:Q1;C1=Object.freeze({__proto__:null,c:function(j){return m().useMemoCache(j)}});var q4={map:b,forEach:function(j,$1,P1){b(j,function(){$1.apply(this,arguments)},P1)},count:function(j){var $1=0;return b(j,function(){$1++}),$1},toArray:function(j){return b(j,function($1){return $1})||[]},only:function(j){if(!N(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};ZN.Activity=w1,ZN.Children=q4,ZN.Component=X,ZN.Fragment=t,ZN.Profiler=p,ZN.PureComponent=Y,ZN.StrictMode=y,ZN.Suspense=R1,ZN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N1,ZN.__COMPILER_RUNTIME=C1,ZN.act=function(j){var $1=N1.actQueue,P1=g4;g4++;var S1=N1.actQueue=$1!==null?$1:[],y1=!1;try{var l1=j()}catch(E1){N1.thrownErrors.push(E1)}if(0<N1.thrownErrors.length)throw x($1,P1),j=J1(N1.thrownErrors),N1.thrownErrors.length=0,j;if(l1!==null&&typeof l1==="object"&&typeof l1.then==="function"){var d1=l1;return y6(function(){y1||p4||(p4=!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(E1,H2){y1=!0,d1.then(function(b2){if(x($1,P1),P1===0){try{c(S1),Q1(function(){return g(b2,E1,H2)})}catch(k6){N1.thrownErrors.push(k6)}if(0<N1.thrownErrors.length){var U4=J1(N1.thrownErrors);N1.thrownErrors.length=0,H2(U4)}}else E1(b2)},function(b2){x($1,P1),0<N1.thrownErrors.length?(b2=J1(N1.thrownErrors),N1.thrownErrors.length=0,H2(b2)):H2(b2)})}}}var K0=l1;if(x($1,P1),P1===0&&(c(S1),S1.length!==0&&y6(function(){y1||p4||(p4=!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(() => ...)"))}),N1.actQueue=null),0<N1.thrownErrors.length)throw j=J1(N1.thrownErrors),N1.thrownErrors.length=0,j;return{then:function(E1,H2){y1=!0,P1===0?(N1.actQueue=S1,Q1(function(){return g(K0,E1,H2)})):E1(K0)}}},ZN.cache=function(j){return function(){return j.apply(null,arguments)}},ZN.cacheSignal=function(){return null},ZN.captureOwnerStack=function(){var j=N1.getCurrentStack;return j===null?null:j()},ZN.cloneElement=function(j,$1,P1){if(j===null||j===void 0)throw Error("The argument must be a React element, but you passed "+j+".");var S1=B1({},j.props),y1=j.key,l1=j._owner;if($1!=null){var d1;_:{if(Q0.call($1,"ref")&&(d1=Object.getOwnPropertyDescriptor($1,"ref").get)&&d1.isReactWarning){d1=!1;break _}d1=$1.ref!==void 0}d1&&(l1=A()),w($1)&&(T($1.key),y1=""+$1.key);for(K0 in $1)!Q0.call($1,K0)||K0==="key"||K0==="__self"||K0==="__source"||K0==="ref"&&$1.ref===void 0||(S1[K0]=$1[K0])}var K0=arguments.length-2;if(K0===1)S1.children=P1;else if(1<K0){d1=Array(K0);for(var E1=0;E1<K0;E1++)d1[E1]=arguments[E1+2];S1.children=d1}S1=S(j.type,y1,S1,l1,j._debugStack,j._debugTask);for(y1=2;y1<arguments.length;y1++)D(arguments[y1]);return S1},ZN.createContext=function(j){return j={$$typeof:s,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:q1,_context:j},j._currentRenderer=null,j._currentRenderer2=null,j},ZN.createElement=function(j,$1,P1){for(var S1=2;S1<arguments.length;S1++)D(arguments[S1]);S1={};var y1=null;if($1!=null)for(E1 in q2||!("__self"in $1)||"key"in $1||(q2=!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")),w($1)&&(T($1.key),y1=""+$1.key),$1)Q0.call($1,E1)&&E1!=="key"&&E1!=="__self"&&E1!=="__source"&&(S1[E1]=$1[E1]);var l1=arguments.length-2;if(l1===1)S1.children=P1;else if(1<l1){for(var d1=Array(l1),K0=0;K0<l1;K0++)d1[K0]=arguments[K0+2];Object.freeze&&Object.freeze(d1),S1.children=d1}if(j&&j.defaultProps)for(E1 in l1=j.defaultProps,l1)S1[E1]===void 0&&(S1[E1]=l1[E1]);y1&&P(S1,typeof j==="function"?j.displayName||j.name||"Unknown":j);var E1=1e4>N1.recentlyCreatedOwnerStacks++;return S(j,y1,S1,A(),E1?Error("react-stack-top-frame"):D2,E1?b1(M(j)):u2)},ZN.createRef=function(){var j={current:null};return Object.seal(j),j},ZN.forwardRef=function(j){j!=null&&j.$$typeof===A1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof j!=="function"?console.error("forwardRef requires a render function but was given %s.",j===null?"null":typeof j):j.length!==0&&j.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",j.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),j!=null&&j.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var $1={$$typeof:W1,render:j},P1;return Object.defineProperty($1,"displayName",{enumerable:!1,configurable:!0,get:function(){return P1},set:function(S1){P1=S1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:S1}),j.displayName=S1)}}),$1},ZN.isValidElement=N,ZN.lazy=function(j){j={_status:-1,_result:j};var $1={$$typeof:U1,_payload:j,_init:E},P1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return j._ioInfo=P1,$1._debugInfo=[{awaited:P1}],$1},ZN.memo=function(j,$1){j==null&&console.error("memo: The first argument must be a component. Instead received: %s",j===null?"null":typeof j),$1={$$typeof:A1,type:j,compare:$1===void 0?null:$1};var P1;return Object.defineProperty($1,"displayName",{enumerable:!1,configurable:!0,get:function(){return P1},set:function(S1){P1=S1,j.name||j.displayName||(Object.defineProperty(j,"name",{value:S1}),j.displayName=S1)}}),$1},ZN.startTransition=function(j){var $1=N1.T,P1={};P1._updatedFibers=new Set,N1.T=P1;try{var S1=j(),y1=N1.S;y1!==null&&y1(P1,S1),typeof S1==="object"&&S1!==null&&typeof S1.then==="function"&&(N1.asyncTransitions++,S1.then(e,e),S1.then(W,C2))}catch(l1){C2(l1)}finally{$1===null&&P1._updatedFibers&&(j=P1._updatedFibers.size,P1._updatedFibers.clear(),10<j&&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&&P1.types!==null&&($1.types!==null&&$1.types!==P1.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=P1.types),N1.T=$1}},ZN.unstable_useCacheRefresh=function(){return m().useCacheRefresh()},ZN.use=function(j){return m().use(j)},ZN.useActionState=function(j,$1,P1){return m().useActionState(j,$1,P1)},ZN.useCallback=function(j,$1){return m().useCallback(j,$1)},ZN.useContext=function(j){var $1=m();return j.$$typeof===q1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),$1.useContext(j)},ZN.useDebugValue=function(j,$1){return m().useDebugValue(j,$1)},ZN.useDeferredValue=function(j,$1){return m().useDeferredValue(j,$1)},ZN.useEffect=function(j,$1){return j==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useEffect(j,$1)},ZN.useEffectEvent=function(j){return m().useEffectEvent(j)},ZN.useId=function(){return m().useId()},ZN.useImperativeHandle=function(j,$1,P1){return m().useImperativeHandle(j,$1,P1)},ZN.useInsertionEffect=function(j,$1){return j==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useInsertionEffect(j,$1)},ZN.useLayoutEffect=function(j,$1){return j==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),m().useLayoutEffect(j,$1)},ZN.useMemo=function(j,$1){return m().useMemo(j,$1)},ZN.useOptimistic=function(j,$1){return m().useOptimistic(j,$1)},ZN.useReducer=function(j,$1,P1){return m().useReducer(j,$1,P1)},ZN.useRef=function(j){return m().useRef(j)},ZN.useState=function(j){return m().useState(j)},ZN.useSyncExternalStore=function(j,$1,P1){return m().useSyncExternalStore(j,$1,P1)},ZN.useTransition=function(){return m().useTransition()},ZN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var VA=D4((FN)=>{var pF=E0(n5());(function(){function Q(){}function U(M){return""+M}function Z(M,A,O){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(w);var P=!1}catch(V){P=!0}return P&&(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&&w[Symbol.toStringTag]||w.constructor.name||"Object"),U(w)),{$$typeof:T,key:w==null?null:""+w,children:M,containerInfo:A,implementation:O}}function X(M,A){if(M==="font")return"";if(typeof A==="string")return A==="use-credentials"?A:""}function H(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":'something with type "'+typeof M+'"'}function Y(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":typeof M==="string"?JSON.stringify(M):typeof M==="number"?"`"+M+"`":'something with type "'+typeof M+'"'}function W(){var M=R.H;return M===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:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- 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 W={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},M=Symbol.for("react.portal"),R=hK.__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"),qN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,qN.createPortal=function(T,A){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(T,A,null,O)},qN.flushSync=function(T){var A=R.T,O=W.p;try{if(R.T=null,W.p=2,T)return T()}finally{R.T=A,W.p=O,W.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.")}},qN.preconnect=function(T,A){typeof T==="string"&&T?A!=null&&typeof A!=="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(A)):A!=null&&typeof A.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.",H(A.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T)),typeof T==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,W.d.C(T,A))},qN.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.",H(T));else if(1<arguments.length){var A=arguments[1];typeof A==="object"&&A.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(A)):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(A))}typeof T==="string"&&W.d.D(T)},qN.preinit=function(T,A){if(typeof T==="string"&&T?A==null||typeof A!=="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(A)):A.as!=="style"&&A.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(A.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(T)),typeof T==="string"&&A&&typeof A.as==="string"){var O=A.as,w=X(O,A.crossOrigin),P=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;O==="style"?W.d.S(T,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:w,integrity:P,fetchPriority:V}):O==="script"&&W.d.X(T,{crossOrigin:w,integrity:P,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},qN.preinitModule=function(T,A){var O="";if(typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(O+=" The `as` option encountered was "+Y(A.as)+"."),O)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",O);else switch(O=A&&typeof A.as==="string"?A.as:"script",O){case"script":break;default:O=Y(O),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)',O,T)}if(typeof T==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")O=X(A.as,A.crossOrigin),W.d.M(T,{crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&W.d.M(T)},qN.preload=function(T,A){var O="";if(typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A==null||typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(O+=" The `as` option encountered was "+H(A.as)+"."),O&&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',O),typeof T==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){O=A.as;var w=X(O,A.crossOrigin);W.d.L(T,O,{crossOrigin:w,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},qN.preloadModule=function(T,A){var O="";typeof T==="string"&&T||(O+=" The `href` argument encountered was "+H(T)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(O+=" The `as` option encountered was "+H(A.as)+"."),O&&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',O),typeof T==="string"&&(A?(O=X(A.as,A.crossOrigin),W.d.m(T,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0})):W.d.m(T))},qN.requestFormReset=function(T){W.d.r(T)},qN.unstable_batchedUpdates=function(T,A){return T(A)},qN.useFormState=function(T,A,O){return B().useFormState(T,A,O)},qN.useFormStatus=function(){return B().useHostTransitionStatus()},qN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xK=v4((ik,CA)=>{var UN=b0(fA());CA.exports=UN});var SA=v4((GN)=>{var H0=b0(NA()),a7=b0(o5()),mK=b0(xK());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],K=_2(_)?_.slice():J0({},_);return K[G]=U(_[G],J,$+1,q),K}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 X(_,J,$,0)}}function X(_,J,$,q){var G=J[q],K=_2(_)?_.slice():J0({},_);return q+1===J.length?(K[$[q]]=K[G],_2(K)?K.splice(G,1):delete K[G]):K[G]=X(_[G],J,$,q+1),K}function H(_,J,$){var q=J[$],G=_2(_)?_.slice():J0({},_);if($+1===J.length)return _2(G)?G.splice(q,1):delete G[q],G;return G[q]=H(_[q],J,$+1),G}function Y(){return!1}function B(){return null}function W(){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 M(){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 R(){}function T(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function O(_,J,$,q){return new hO(_,J,$,q)}function w(_,J){_.context===t3&&(qZ(_.current,2,J,_,null,null),U7())}function P(_,J){if(P5!==null){var $=J.staleFamilies;J=J.updatedFamilies,a9(),yH(_.current,J,$),U7()}}function V(_){P5=_}function S(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function f(_){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 D(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function N(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function y(_){if(f(_)!==_)throw Error("Unable to find node on an unmounted component.")}function v(_){var J=_.alternate;if(!J){if(J=f(_),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 K=G.alternate;if(K===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===K.child){for(K=G.child;K;){if(K===$)return y(G),_;if(K===q)return y(G),J;K=K.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=K;else{for(var z=!1,L=G.child;L;){if(L===$){z=!0,$=G,q=K;break}if(L===q){z=!0,q=G,$=K;break}L=L.sibling}if(!z){for(L=K.child;L;){if(L===$){z=!0,$=K,q=G;break}if(L===q){z=!0,q=K,$=G;break}L=L.sibling}if(!z)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 h(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=h(_),J!==null)return J;_=_.sibling}return null}function u(_){if(_===null||typeof _!=="object")return null;return _=EB&&_[EB]||_["@@iterator"],typeof _==="function"?_:null}function b(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Uw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case Y7:return"Fragment";case XZ:return"Profiler";case $Q:return"StrictMode";case YZ:return"Suspense";case zZ:return"SuspenseList";case BZ: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 H7:return"Portal";case I4:return _.displayName||"Context";case HZ:return(_._context.displayName||"Context")+".Consumer";case q_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case QQ:return J=_.displayName||null,J!==null?J:b(_.type)||"Memo";case H5:J=_._payload,_=_._init;try{return b(_(J))}catch($){}}return null}function E(_){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 b(J);case 8:return J===$Q?"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 $1(_){return{current:_}}function J1(_,J){0>n4?console.error("Unexpected pop."):(J!==LZ[n4]&&console.error("Unexpected Fiber popped."),_.current=WZ[n4],WZ[n4]=null,LZ[n4]=null,n4--)}function t(_,J,$){n4++,WZ[n4]=_.current,LZ[n4]=$,_.current=J}function x(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function g(_,J){t(l3,J,_),t(U_,_,_),t(c3,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?ZB(J):Y3:Y3;break;default:if($=J.tagName,J=J.namespaceURI)J=ZB(J),J=KB(J,$);else switch($){case"svg":J=r7;break;case"math":J=Jq;break;default:J=Y3}}$=$.toLowerCase(),$=w9(null,$),$={context:J,ancestorInfo:$},J1(c3,_),t(c3,$,_)}function c(_){J1(c3,_),J1(U_,_),J1(l3,_)}function a(){return x(c3.current)}function r(_){_.memoizedState!==null&&t(qQ,_,_);var J=x(c3.current),$=_.type,q=KB(J.context,$);$=w9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(t(U_,_,_),t(c3,q,_))}function n(_){U_.current===_&&(J1(c3,_),J1(U_,_)),qQ.current===_&&(J1(qQ,_),t_._currentValue=L8)}function k(){}function p(){if(G_===0){hB=console.log,xB=console.info,mB=console.warn,gB=console.error,pB=console.group,cB=console.groupCollapsed,lB=console.groupEnd;var _={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}G_++}function q1(){if(G_--,G_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J0({},_,{value:hB}),info:J0({},_,{value:xB}),warn:J0({},_,{value:mB}),error:J0({},_,{value:gB}),group:J0({},_,{value:pB}),groupCollapsed:J0({},_,{value:cB}),groupEnd:J0({},_,{value:lB})})}0>G_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function s(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),M}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},T=Symbol.for("react.portal"),R=pF.__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"),FN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,FN.createPortal=function(M,A){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error("Target container is not a DOM element.");return Z(M,A,null,O)},FN.flushSync=function(M){var A=R.T,O=B.p;try{if(R.T=null,B.p=2,M)return M()}finally{R.T=A,B.p=O,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.")}},FN.preconnect=function(M,A){typeof M==="string"&&M?A!=null&&typeof A!=="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(A)):A!=null&&typeof A.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.",H(A.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M)),typeof M==="string"&&(A?(A=A.crossOrigin,A=typeof A==="string"?A==="use-credentials"?A:"":void 0):A=null,B.d.C(M,A))},FN.prefetchDNS=function(M){if(typeof M!=="string"||!M)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M));else if(1<arguments.length){var A=arguments[1];typeof A==="object"&&A.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(A)):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(A))}typeof M==="string"&&B.d.D(M)},FN.preinit=function(M,A){if(typeof M==="string"&&M?A==null||typeof A!=="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(A)):A.as!=="style"&&A.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(A.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",H(M)),typeof M==="string"&&A&&typeof A.as==="string"){var O=A.as,w=X(O,A.crossOrigin),P=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;O==="style"?B.d.S(M,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:w,integrity:P,fetchPriority:V}):O==="script"&&B.d.X(M,{crossOrigin:w,integrity:P,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},FN.preinitModule=function(M,A){var O="";if(typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&A.as!=="script"&&(O+=" The `as` option encountered was "+Y(A.as)+"."),O)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",O);else switch(O=A&&typeof A.as==="string"?A.as:"script",O){case"script":break;default:O=Y(O),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)',O,M)}if(typeof M==="string")if(typeof A==="object"&&A!==null){if(A.as==null||A.as==="script")O=X(A.as,A.crossOrigin),B.d.M(M,{crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0})}else A==null&&B.d.M(M)},FN.preload=function(M,A){var O="";if(typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A==null||typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":typeof A.as==="string"&&A.as||(O+=" The `as` option encountered was "+H(A.as)+"."),O&&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',O),typeof M==="string"&&typeof A==="object"&&A!==null&&typeof A.as==="string"){O=A.as;var w=X(O,A.crossOrigin);B.d.L(M,O,{crossOrigin:w,integrity:typeof A.integrity==="string"?A.integrity:void 0,nonce:typeof A.nonce==="string"?A.nonce:void 0,type:typeof A.type==="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority==="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy==="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet==="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes==="string"?A.imageSizes:void 0,media:typeof A.media==="string"?A.media:void 0})}},FN.preloadModule=function(M,A){var O="";typeof M==="string"&&M||(O+=" The `href` argument encountered was "+H(M)+"."),A!==void 0&&typeof A!=="object"?O+=" The `options` argument encountered was "+H(A)+".":A&&("as"in A)&&typeof A.as!=="string"&&(O+=" The `as` option encountered was "+H(A.as)+"."),O&&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',O),typeof M==="string"&&(A?(O=X(A.as,A.crossOrigin),B.d.m(M,{as:typeof A.as==="string"&&A.as!=="script"?A.as:void 0,crossOrigin:O,integrity:typeof A.integrity==="string"?A.integrity:void 0})):B.d.m(M))},FN.requestFormReset=function(M){B.d.r(M)},FN.unstable_batchedUpdates=function(M,A){return M(A)},FN.useFormState=function(M,A,O){return W().useFormState(M,A,O)},FN.useFormStatus=function(){return W().useHostTransitionStatus()},FN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var cF=D4((Jk,yA)=>{var KN=E0(VA());yA.exports=KN});var kA=D4((XN)=>{var Y0=E0(vA()),t7=E0(n5()),lF=E0(cF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],K=U2(_)?_.slice():J0({},_);return K[G]=U(_[G],J,$+1,q),K}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 X(_,J,$,0)}}function X(_,J,$,q){var G=J[q],K=U2(_)?_.slice():J0({},_);return q+1===J.length?(K[$[q]]=K[G],U2(K)?K.splice(G,1):delete K[G]):K[G]=X(_[G],J,$,q+1),K}function H(_,J,$){var q=J[$],G=U2(_)?_.slice():J0({},_);if($+1===J.length)return U2(G)?G.splice(q,1):delete G[q],G;return G[q]=H(_[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 T(){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 R(){}function M(){}function A(_){var J=[];return _.forEach(function($){J.push($)}),J.sort().join(", ")}function O(_,J,$,q){return new pO(_,J,$,q)}function w(_,J){_.context===o3&&(FZ(_.current,2,J,_,null,null),Z7())}function P(_,J){if(N5!==null){var $=J.staleFamilies;J=J.updatedFamilies,n9(),uH(_.current,J,$),Z7()}}function V(_){N5=_}function S(_){return!(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)}function C(_){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 D(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function N(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function v(_){if(C(_)!==_)throw Error("Unable to find node on an unmounted component.")}function u(_){var J=_.alternate;if(!J){if(J=C(_),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 K=G.alternate;if(K===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===K.child){for(K=G.child;K;){if(K===$)return v(G),_;if(K===q)return v(G),J;K=K.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=K;else{for(var z=!1,L=G.child;L;){if(L===$){z=!0,$=G,q=K;break}if(L===q){z=!0,q=G,$=K;break}L=L.sibling}if(!z){for(L=K.child;L;){if(L===$){z=!0,$=K,q=G;break}if(L===q){z=!0,q=K,$=G;break}L=L.sibling}if(!z)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 h(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _;for(_=_.child;_!==null;){if(J=h(_),J!==null)return J;_=_.sibling}return null}function k(_){if(_===null||typeof _!=="object")return null;return _=pW&&_[pW]||_["@@iterator"],typeof _==="function"?_:null}function b(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Kw?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case W7:return"Fragment";case WZ:return"Profiler";case ZQ:return"StrictMode";case LZ:return"Suspense";case AZ:return"SuspenseList";case MZ: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 z7:return"Portal";case w4:return _.displayName||"Context";case BZ:return(_._context.displayName||"Context")+".Consumer";case F_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case FQ:return J=_.displayName||null,J!==null?J:b(_.type)||"Memo";case Y5:J=_._payload,_=_._init;try{return b(_(J))}catch($){}}return null}function E(_){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 b(J);case 8:return J===ZQ?"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 e(_){return{current:_}}function Q1(_,J){0>e4?console.error("Unexpected pop."):(J!==RZ[e4]&&console.error("Unexpected Fiber popped."),_.current=TZ[e4],TZ[e4]=null,RZ[e4]=null,e4--)}function J1(_,J,$){e4++,TZ[e4]=_.current,RZ[e4]=$,_.current=J}function x(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function g(_,J){J1(d3,J,_),J1(K_,_,_),J1(l3,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?YW(J):z3:z3;break;default:if($=J.tagName,J=J.namespaceURI)J=YW(J),J=zW(J,$);else switch($){case"svg":J=a7;break;case"math":J=Gq;break;default:J=z3}}$=$.toLowerCase(),$=f9(null,$),$={context:J,ancestorInfo:$},Q1(l3,_),J1(l3,$,_)}function c(_){Q1(l3,_),Q1(K_,_),Q1(d3,_)}function a(){return x(l3.current)}function d(_){_.memoizedState!==null&&J1(KQ,_,_);var J=x(l3.current),$=_.type,q=zW(J.context,$);$=f9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(J1(K_,_,_),J1(l3,q,_))}function t(_){K_.current===_&&(Q1(l3,_),Q1(K_,_)),KQ.current===_&&(Q1(KQ,_),_J._currentValue=M8)}function y(){}function p(){if(X_===0){cW=console.log,lW=console.info,dW=console.warn,iW=console.error,rW=console.group,aW=console.groupCollapsed,sW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:y,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}X_++}function q1(){if(X_--,X_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J0({},_,{value:cW}),info:J0({},_,{value:lW}),warn:J0({},_,{value:dW}),error:J0({},_,{value:iW}),group:J0({},_,{value:rW}),groupCollapsed:J0({},_,{value:aW}),groupEnd:J0({},_,{value:sW})})}0>X_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function s(_){var J=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=J,_.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(_=_.slice(29)),J=_.indexOf(`
19
19
  `),J!==-1&&(_=_.slice(J+1)),J=_.indexOf("react_stack_bottom_frame"),J!==-1&&(J=_.lastIndexOf(`
20
- `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function H1(_){if(AZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);AZ=J&&J[1]||"",dB=-1<$.stack.indexOf(`
20
+ `,J)),J!==-1)_=_.slice(0,J);else return"";return _}function W1(_){if(OZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);OZ=J&&J[1]||"",tW=-1<$.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<$.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+AZ+_+dB}function M1(_,J){if(!_||MZ)return"";var $=TZ.get(_);if($!==void 0)return $;MZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=K1.H,K1.H=null,p();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(I1){var G1=I1}Reflect.construct(_,[],d)}else{try{d.call()}catch(I1){G1=I1}_.call(d.prototype)}}else{try{throw Error()}catch(I1){G1=I1}(d=_())&&typeof d.catch==="function"&&d.catch(function(){})}}catch(I1){if(I1&&G1&&typeof I1.stack==="string")return[I1.stack,G1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var K=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");K&&K.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),L=z[0],I=z[1];if(L&&I){var C=L.split(`
23
- `),e=I.split(`
24
- `);for(z=K=0;K<C.length&&!C[K].includes("DetermineComponentFrameRoot");)K++;for(;z<e.length&&!e[z].includes("DetermineComponentFrameRoot");)z++;if(K===C.length||z===e.length)for(K=C.length-1,z=e.length-1;1<=K&&0<=z&&C[K]!==e[z];)z--;for(;1<=K&&0<=z;K--,z--)if(C[K]!==e[z]){if(K!==1||z!==1)do if(K--,z--,0>z||C[K]!==e[z]){var _1=`
25
- `+C[K].replace(" at new "," at ");return _.displayName&&_1.includes("<anonymous>")&&(_1=_1.replace("<anonymous>",_.displayName)),typeof _==="function"&&TZ.set(_,_1),_1}while(1<=K&&0<=z);break}}}finally{MZ=!1,K1.H=q,q1(),Error.prepareStackTrace=$}return C=(C=_?_.displayName||_.name:"")?H1(C):"",typeof _==="function"&&TZ.set(_,C),C}function A1(_,J){switch(_.tag){case 26:case 27:case 5:return H1(_.type);case 16:return H1("Lazy");case 13:return _.child!==J&&J!==null?H1("Suspense Fallback"):H1("Suspense");case 19:return H1("SuspenseList");case 0:case 15:return M1(_.type,!1);case 11:return M1(_.type.render,!1);case 1:return M1(_.type,!0);case 31:return H1("Activity");default:return""}}function B1(_){try{var J="",$=null;do{J+=A1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var K=q[G];if(typeof K.name==="string"){var z=J;_:{var{name:L,env:I,debugLocation:C}=K;if(C!=null){var e=s(C),_1=e.lastIndexOf(`
26
- `),d=_1===-1?e:e.slice(_1+1);if(d.indexOf(L)!==-1){var G1=`
27
- `+d;break _}}G1=H1(L+(I?" ["+I+"]":""))}J=z+G1}}$=_,_=_.return}while(_);return J}catch(I1){return`
28
- Error generating stack: `+I1.message+`
29
- `+I1.stack}}function U1(_){return(_=_?_.displayName||_.name:"")?H1(_):""}function O1(){if(Y5===null)return null;var _=Y5._debugOwner;return _!=null?E(_):null}function N1(){if(Y5===null)return"";var _=Y5;try{var J="";switch(_.tag===6&&(_=_.return),_.tag){case 26:case 27:case 5:J+=H1(_.type);break;case 13:J+=H1("Suspense");break;case 19:J+=H1("SuspenseList");break;case 31:J+=H1("Activity");break;case 30:case 0:case 15:case 1:_._debugOwner||J!==""||(J+=U1(_.type));break;case 11:_._debugOwner||J!==""||(J+=U1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=s(q);G!==""&&(J+=`
22
+ `+OZ+_+tW}function R1(_,J){if(!_||IZ)return"";var $=wZ.get(_);if($!==void 0)return $;IZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=H1.H,H1.H=null,p();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(f1){var Z1=f1}Reflect.construct(_,[],i)}else{try{i.call()}catch(f1){Z1=f1}_.call(i.prototype)}}else{try{throw Error()}catch(f1){Z1=f1}(i=_())&&typeof i.catch==="function"&&i.catch(function(){})}}catch(f1){if(f1&&Z1&&typeof f1.stack==="string")return[f1.stack,Z1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var K=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");K&&K.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),L=z[0],I=z[1];if(L&&I){var f=L.split(`
23
+ `),n=I.split(`
24
+ `);for(z=K=0;K<f.length&&!f[K].includes("DetermineComponentFrameRoot");)K++;for(;z<n.length&&!n[z].includes("DetermineComponentFrameRoot");)z++;if(K===f.length||z===n.length)for(K=f.length-1,z=n.length-1;1<=K&&0<=z&&f[K]!==n[z];)z--;for(;1<=K&&0<=z;K--,z--)if(f[K]!==n[z]){if(K!==1||z!==1)do if(K--,z--,0>z||f[K]!==n[z]){var _1=`
25
+ `+f[K].replace(" at new "," at ");return _.displayName&&_1.includes("<anonymous>")&&(_1=_1.replace("<anonymous>",_.displayName)),typeof _==="function"&&wZ.set(_,_1),_1}while(1<=K&&0<=z);break}}}finally{IZ=!1,H1.H=q,q1(),Error.prepareStackTrace=$}return f=(f=_?_.displayName||_.name:"")?W1(f):"",typeof _==="function"&&wZ.set(_,f),f}function T1(_,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 R1(_.type,!1);case 11:return R1(_.type.render,!1);case 1:return R1(_.type,!0);case 31:return W1("Activity");default:return""}}function A1(_){try{var J="",$=null;do{J+=T1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var K=q[G];if(typeof K.name==="string"){var z=J;_:{var{name:L,env:I,debugLocation:f}=K;if(f!=null){var n=s(f),_1=n.lastIndexOf(`
26
+ `),i=_1===-1?n:n.slice(_1+1);if(i.indexOf(L)!==-1){var Z1=`
27
+ `+i;break _}}Z1=W1(L+(I?" ["+I+"]":""))}J=z+Z1}}$=_,_=_.return}while(_);return J}catch(f1){return`
28
+ Error generating stack: `+f1.message+`
29
+ `+f1.stack}}function U1(_){return(_=_?_.displayName||_.name:"")?W1(_):""}function w1(){if(z5===null)return null;var _=z5._debugOwner;return _!=null?E(_):null}function v1(){if(z5===null)return"";var _=z5;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+=U1(_.type));break;case 11:_._debugOwner||J!==""||(J+=U1(_.type.render))}for(;_;)if(typeof _.tag==="number"){var $=_;_=$._debugOwner;var q=$._debugStack;if(_&&q){var G=s(q);G!==""&&(J+=`
30
30
  `+G)}}else if(_.debugStack!=null){var K=_.debugStack;(_=_.owner)&&K&&(J+=`
31
31
  `+s(K))}else break;var z=J}catch(L){z=`
32
32
  Error generating stack: `+L.message+`
33
- `+L.stack}return z}function W1(_,J,$,q,G,K,z){var L=Y5;S1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,K,z)):J($,q,G,K,z)}finally{S1(L)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function S1(_){K1.getCurrentStack=_===null?null:N1,w4=!1,Y5=_}function k1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function h1(_){try{return v1(_),!1}catch(J){return!0}}function v1(_){return""+_}function L1(_,J){if(h1(_))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,k1(_)),v1(_)}function i1(_,J){if(h1(_))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,k1(_)),v1(_)}function j1(_){if(h1(_))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.",k1(_)),v1(_)}function x0(_){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{B7=J.inject(_),f2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function e1(_){if(typeof Yw==="function"&&zw(_),f2&&typeof f2.setStrictMode==="function")try{f2.setStrictMode(B7,_)}catch(J){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",J))}}function B2(_){return _>>>=0,_===0?32:31-(Bw(_)/Ww|0)|0}function O2(_){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 k2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,K=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var L=q&134217727;return L!==0?(q=L&~K,q!==0?G=O2(q):(z&=L,z!==0?G=O2(z):$||($=L&~_,$!==0&&(G=O2($))))):(L=q&~K,L!==0?G=O2(L):z!==0?G=O2(z):$||($=q&~_,$!==0&&(G=O2($)))),G===0?0:J!==0&&J!==G&&(J&K)===0&&(K=G&-G,$=J&-J,K>=$||K===32&&($&4194048)!==0)?J:G}function v2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function D2(_,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 I2(){var _=ZQ;return ZQ<<=1,(ZQ&62914560)===0&&(ZQ=4194304),_}function w2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function P2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function N3(_,J,$,q,G,K){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:L,expirationTimes:I,hiddenUpdates:C}=_;for($=z&~$;0<$;){var e=31-h2($),_1=1<<e;L[e]=0,I[e]=-1;var d=C[e];if(d!==null)for(C[e]=null,e=0;e<d.length;e++){var G1=d[e];G1!==null&&(G1.lane&=-536870913)}$&=~_1}q!==0&&h5(_,q,0),K!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=K&~(z&~J))}function h5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-h2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function m4(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-h2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function g4(_,J){var $=J&-J;return $=($&42)!==0?1:p4($),($&(_.suspendedLanes|J))!==0?0:$}function p4(_){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 y6(_,J,$){if(N4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-h2($),G=1<<q;_[q].add(J),$&=~G}}function Q4(_,J){if(N4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-h2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(K){var z=K.alternate;z!==null&&q.has(z)||q.add(K)}),G.clear()),J&=~_}}function j(_){return _&=-_,z5!==0&&z5<_?l5!==0&&l5<_?(_&134217727)!==0?f4:KQ:l5:z5}function Q1(){var _=W0.p;if(_!==0)return _;return _=window.event,_===void 0?f4:yB(_.type)}function R1(_,J){var $=W0.p;try{return W0.p=_,J()}finally{W0.p=$}}function w1(_){delete _[M2],delete _[x2],delete _[PZ],delete _[Lw],delete _[Aw]}function C1(_){var J=_[M2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[r3]||$[M2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=LB(_);_!==null;){if($=_[M2])return $;_=LB(_)}return J}_=$,$=_.parentNode}return null}function c1(_){if(_=_[M2]||_[r3]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function l1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function K0(_){var J=_[rB];return J||(J=_[rB]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function D1(_){_[Z_]=!0}function Z2(_,J){b2(_,J),b2(_+"Capture",J)}function b2(_,J){a6[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),a6[_]=J;var $=_.toLowerCase();NZ[$]=_,_==="onDoubleClick"&&(NZ.ondblclick=_);for(_=0;_<J.length;_++)iB.add(J[_])}function q4(_,J){Mw[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 V6(_){if(c5.call(sB,_))return!0;if(c5.call(aB,_))return!1;if(Tw.test(_))return sB[_]=!0;return aB[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function EJ(_,J,$){if(V6(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 L1($,J),_===""+$?$:_}}function l8(_,J,$){if(V6(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}}L1($,J),_.setAttribute(J,""+$)}}function d8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}L1($,J),_.setAttribute(J,""+$)}}function x5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}L1(q,$),_.setAttributeNS(J,$,""+q)}}function a2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return j1(_),_;default:return""}}function hJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function FU(_,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:K}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){j1(z),$=""+z,K.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){j1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function L9(_){if(!_._valueTracker){var J=hJ(_)?"checked":"value";_._valueTracker=FU(_,J,""+_[J])}}function xJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=hJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function r8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function s2(_){return _.replace(Rw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function mJ(_,J){J.checked===void 0||J.defaultChecked===void 0||oB||(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",O1()||"A component",J.type),oB=!0),J.value===void 0||J.defaultValue===void 0||tB||(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",O1()||"A component",J.type),tB=!0)}function i8(_,J,$,q,G,K,z,L){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(L1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+a2(J)}else _.value!==""+a2(J)&&(_.value=""+a2(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?a8(_,z,a2(J)):$!=null?a8(_,z,a2($)):q!=null&&_.removeAttribute("value"),G==null&&K!=null&&(_.defaultChecked=!!K),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),L!=null&&typeof L!=="function"&&typeof L!=="symbol"&&typeof L!=="boolean"?(L1(L,"name"),_.name=""+a2(L)):_.removeAttribute("name")}function A9(_,J,$,q,G,K,z,L){if(K!=null&&typeof K!=="function"&&typeof K!=="symbol"&&typeof K!=="boolean"&&(L1(K,"type"),_.type=K),J!=null||$!=null){if(!(K!=="submit"&&K!=="reset"||J!==void 0&&J!==null)){L9(_);return}$=$!=null?""+a2($):"",J=J!=null?""+a2(J):$,L||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=L?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(L1(z,"name"),_.name=z),L9(_)}function a8(_,J,$){J==="number"&&r8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function gJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?a7.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||eB||(eB=!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||_W||(_W=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||nB||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),nB=!0)}function pJ(){var _=O1();return _?`
33
+ `+L.stack}return z}function M1(_,J,$,q,G,K,z){var L=z5;G1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,K,z)):J($,q,G,K,z)}finally{G1(L)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function G1(_){H1.getCurrentStack=_===null?null:v1,P4=!1,z5=_}function B1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function I1(_){try{return C1(_),!1}catch(J){return!0}}function C1(_){return""+_}function K1(_,J){if(I1(_))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,B1(_)),C1(_)}function u1(_,J){if(I1(_))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,B1(_)),C1(_)}function N1(_){if(I1(_))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.",B1(_)),C1(_)}function Q0(_){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{L7=J.inject(_),S2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function b1(_){if(typeof Lw==="function"&&Aw(_),S2&&typeof S2.setStrictMode==="function")try{S2.setStrictMode(L7,_)}catch(J){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",J))}}function a0(_){return _>>>=0,_===0?32:31-(Mw(_)/Tw|0)|0}function q2(_){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 O0(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,K=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var L=q&134217727;return L!==0?(q=L&~K,q!==0?G=q2(q):(z&=L,z!==0?G=q2(z):$||($=L&~_,$!==0&&(G=q2($))))):(L=q&~K,L!==0?G=q2(L):z!==0?G=q2(z):$||($=q&~_,$!==0&&(G=q2($)))),G===0?0:J!==0&&J!==G&&(J&K)===0&&(K=G&-G,$=J&-J,K>=$||K===32&&($&4194048)!==0)?J:G}function D2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function u2(_,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 P2(){var _=YQ;return YQ<<=1,(YQ&62914560)===0&&(YQ=4194304),_}function N2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function C2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function C3(_,J,$,q,G,K){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:L,expirationTimes:I,hiddenUpdates:f}=_;for($=z&~$;0<$;){var n=31-x2($),_1=1<<n;L[n]=0,I[n]=-1;var i=f[n];if(i!==null)for(f[n]=null,n=0;n<i.length;n++){var Z1=i[n];Z1!==null&&(Z1.lane&=-536870913)}$&=~_1}q!==0&&x5(_,q,0),K!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=K&~(z&~J))}function x5(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-x2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function g4(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-x2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function p4(_,J){var $=J&-J;return $=($&42)!==0?1:c4($),($&(_.suspendedLanes|J))!==0?0:$}function c4(_){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 y6(_,J,$){if(C4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-x2($),G=1<<q;_[q].add(J),$&=~G}}function q4(_,J){if(C4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-x2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(K){var z=K.alternate;z!==null&&q.has(z)||q.add(K)}),G.clear()),J&=~_}}function j(_){return _&=-_,W5!==0&&W5<_?d5!==0&&d5<_?(_&134217727)!==0?f4:zQ:d5:W5}function $1(){var _=L0.p;if(_!==0)return _;return _=window.event,_===void 0?f4:uW(_.type)}function P1(_,J){var $=L0.p;try{return L0.p=_,J()}finally{L0.p=$}}function S1(_){delete _[O2],delete _[m2],delete _[SZ],delete _[Rw],delete _[Ow]}function y1(_){var J=_[O2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[r3]||$[O2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=OW(_);_!==null;){if($=_[O2])return $;_=OW(_)}return J}_=$,$=_.parentNode}return null}function l1(_){if(_=_[O2]||_[r3]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function d1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function K0(_){var J=_[oW];return J||(J=_[oW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function E1(_){_[H_]=!0}function H2(_,J){b2(_,J),b2(_+"Capture",J)}function b2(_,J){t6[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),t6[_]=J;var $=_.toLowerCase();jZ[$]=_,_==="onDoubleClick"&&(jZ.ondblclick=_);for(_=0;_<J.length;_++)nW.add(J[_])}function U4(_,J){Iw[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 k6(_){if(l5.call(_B,_))return!0;if(l5.call(eW,_))return!1;if(ww.test(_))return _B[_]=!0;return eW[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function pJ(_,J,$){if(k6(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 K1($,J),_===""+$?$:_}}function i8(_,J,$){if(k6(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}}K1($,J),_.setAttribute(J,""+$)}}function r8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}K1($,J),_.setAttribute(J,""+$)}}function m5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}K1(q,$),_.setAttributeNS(J,$,""+q)}}function s2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return N1(_),_;default:return""}}function cJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function zU(_,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:K}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){N1(z),$=""+z,K.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){N1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function R9(_){if(!_._valueTracker){var J=cJ(_)?"checked":"value";_._valueTracker=zU(_,J,""+_[J])}}function lJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=cJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function a8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function t2(_){return _.replace(Pw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function dJ(_,J){J.checked===void 0||J.defaultChecked===void 0||$B||(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",w1()||"A component",J.type),$B=!0),J.value===void 0||J.defaultValue===void 0||JB||(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",w1()||"A component",J.type),JB=!0)}function s8(_,J,$,q,G,K,z,L){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(K1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+s2(J)}else _.value!==""+s2(J)&&(_.value=""+s2(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?t8(_,z,s2(J)):$!=null?t8(_,z,s2($)):q!=null&&_.removeAttribute("value"),G==null&&K!=null&&(_.defaultChecked=!!K),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),L!=null&&typeof L!=="function"&&typeof L!=="symbol"&&typeof L!=="boolean"?(K1(L,"name"),_.name=""+s2(L)):_.removeAttribute("name")}function O9(_,J,$,q,G,K,z,L){if(K!=null&&typeof K!=="function"&&typeof K!=="symbol"&&typeof K!=="boolean"&&(K1(K,"type"),_.type=K),J!=null||$!=null){if(!(K!=="submit"&&K!=="reset"||J!==void 0&&J!==null)){R9(_);return}$=$!=null?""+s2($):"",J=J!=null?""+s2(J):$,L||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=L?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(K1(z,"name"),_.name=z),R9(_)}function t8(_,J,$){J==="number"&&a8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function iJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?t7.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||qB||(qB=!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||UB||(UB=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||QB||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),QB=!0)}function rJ(){var _=w1();return _?`
34
34
 
35
- Check the render method of \``+_+"`.":""}function f3(_,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{$=""+a2($),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 cJ(_,J){for(_=0;_<$W.length;_++){var $=$W[_];if(J[$]!=null){var q=_2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,pJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,pJ())}}J.value===void 0||J.defaultValue===void 0||JW||(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"),JW=!0)}function lJ(_,J){J.value===void 0||J.defaultValue===void 0||QW||(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",O1()||"A component"),QW=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function dJ(_,J,$){if(J!=null&&(J=""+a2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+a2($):""}function M9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(_2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=a2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),L9(_)}function rJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?rJ(_.children[0],J):_}function u2(_){return" "+" ".repeat(_)}function C3(_){return"+ "+" ".repeat(_)}function c4(_){return"- "+" ".repeat(_)}function iJ(_){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 k6(_,J){return qW.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function s8(_,J,$){var q=120-2*$;if(J===null)return C3($)+k6(_,q)+`
36
- `;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)),C3($)+k6(_,q)+`
37
- `+c4($)+k6(J,q)+`
38
- `}return u2($)+k6(_,q)+`
39
- `}function T9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function S3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(_2(_))return"[...]";if(_.$$typeof===O4)return(J=b(_.type))?"<"+J+">":"<...>";var $=T9(_);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=S3(_[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 j3(_,J){return typeof _!=="string"||qW.test(_)?"{"+S3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function R9(_,J,$){var q=120-$.length-_.length,G=[],K;for(K in J)if(J.hasOwnProperty(K)&&K!=="children"){var z=j3(J[K],120-$.length-K.length-1);q-=K.length+z.length+2,G.push(K+"="+z)}return G.length===0?$+"<"+_+`>
35
+ Check the render method of \``+_+"`.":""}function f3(_,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{$=""+s2($),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 aJ(_,J){for(_=0;_<ZB.length;_++){var $=ZB[_];if(J[$]!=null){var q=U2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,rJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,rJ())}}J.value===void 0||J.defaultValue===void 0||GB||(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"),GB=!0)}function sJ(_,J){J.value===void 0||J.defaultValue===void 0||FB||(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",w1()||"A component"),FB=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function tJ(_,J,$){if(J!=null&&(J=""+s2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+s2($):""}function I9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(U2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=s2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),R9(_)}function oJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?oJ(_.children[0],J):_}function E2(_){return" "+" ".repeat(_)}function S3(_){return"+ "+" ".repeat(_)}function l4(_){return"- "+" ".repeat(_)}function nJ(_){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 D6(_,J){return KB.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function o8(_,J,$){var q=120-2*$;if(J===null)return S3($)+D6(_,q)+`
36
+ `;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)),S3($)+D6(_,q)+`
37
+ `+l4($)+D6(J,q)+`
38
+ `}return E2($)+D6(_,q)+`
39
+ `}function w9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function j3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(U2(_))return"[...]";if(_.$$typeof===I4)return(J=b(_.type))?"<"+J+">":"<...>";var $=w9(_);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=j3(_[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 v3(_,J){return typeof _!=="string"||KB.test(_)?"{"+j3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function P9(_,J,$){var q=120-$.length-_.length,G=[],K;for(K in J)if(J.hasOwnProperty(K)&&K!=="children"){var z=v3(J[K],120-$.length-K.length-1);q-=K.length+z.length+2,G.push(K+"="+z)}return G.length===0?$+"<"+_+`>
40
40
  `:0<q?$+"<"+_+" "+G.join(" ")+`>
41
41
  `:$+"<"+_+`
42
42
  `+$+" "+G.join(`
43
43
  `+$+" ")+`
44
44
  `+$+`>
45
- `}function XU(_,J,$){var q="",G=J0({},J),K;for(K in _)if(_.hasOwnProperty(K)){delete G[K];var z=120-2*$-K.length-2,L=S3(_[K],z);J.hasOwnProperty(K)?(z=S3(J[K],z),q+=C3($)+K+": "+L+`
46
- `,q+=c4($)+K+": "+z+`
47
- `):q+=C3($)+K+": "+L+`
48
- `}for(var I in G)G.hasOwnProperty(I)&&(_=S3(G[I],120-2*$-I.length-2),q+=c4($)+I+": "+_+`
49
- `);return q}function HU(_,J,$,q){var G="",K=new Map;for(C in $)$.hasOwnProperty(C)&&K.set(C.toLowerCase(),C);if(K.size===1&&K.has("children"))G+=R9(_,J,u2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var L=120-2*(q+1)-z.length-1,I=K.get(z.toLowerCase());if(I!==void 0){K.delete(z.toLowerCase());var C=J[z];I=$[I];var e=j3(C,L);L=j3(I,L),typeof C==="object"&&C!==null&&typeof I==="object"&&I!==null&&T9(C)==="Object"&&T9(I)==="Object"&&(2<Object.keys(C).length||2<Object.keys(I).length||-1<e.indexOf("...")||-1<L.indexOf("..."))?G+=u2(q+1)+z+`={{
50
- `+XU(C,I,q+2)+u2(q+1)+`}}
51
- `:(G+=C3(q+1)+z+"="+e+`
52
- `,G+=c4(q+1)+z+"="+L+`
53
- `)}else G+=u2(q+1)+z+"="+j3(J[z],L)+`
54
- `}K.forEach(function(_1){if(_1!=="children"){var d=120-2*(q+1)-_1.length-1;G+=c4(q+1)+_1+"="+j3($[_1],d)+`
55
- `}}),G=G===""?u2(q)+"<"+_+`>
56
- `:u2(q)+"<"+_+`
57
- `+G+u2(q)+`>
58
- `}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(K="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")K=""+J;G+=s8(K,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+s8(""+J,null,q+1):G+s8(""+J,void 0,q+1);return G}function aJ(_,J){var $=iJ(_);if($===null){$="";for(_=_.child;_;)$+=aJ(_,J),_=_.sibling;return $}return u2(J)+"<"+$+`>
59
- `}function O9(_,J){var $=rJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return u2(J)+`...
60
- `+O9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var K=q[G].name;typeof K==="string"&&($+=u2(J)+"<"+K+`>
61
- `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=s8(G,_.serverProps,J),J++;else if(K=iJ(_.fiber),K!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-K.length-2,L="";for(C in G)if(G.hasOwnProperty(C)&&C!=="children"){var I=j3(G[C],15);if(z-=C.length+I.length+2,0>z){L+=" ...";break}L+=" "+C+"="+I}q=u2(q)+"<"+K+L+`>
62
- `,J++}else _.serverProps===null?(q=R9(K,G,C3(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=HU(K,G,_.serverProps,J),J++);var C="";G=_.fiber.child;for(K=0;G&&K<_.children.length;)z=_.children[K],z.fiber===G?(C+=O9(z,J),K++):C+=aJ(G,J),G=G.sibling;G&&0<_.children.length&&(C+=u2(J)+`...
63
- `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)K=G[_],C=typeof K==="string"?C+(c4(J)+k6(K,120-2*J)+`
64
- `):C+R9(K.type,K.props,c4(J));return $+q+C}function I9(_){try{return`
65
-
66
- `+O9(_,0)}catch(J){return""}}function sJ(_,J,$){for(var q=J,G=null,K=0;q;)q===_&&(K=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:K},K++,q=q.return;return G!==null?I9(G).replaceAll(/^[+-]/gm,">"):""}function w9(_,J){var $=J0({},_||GW),q={tag:J};if(UW.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Iw.indexOf(J)!==-1&&($.pTagInButtonScope=null),Ow.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 tJ(_,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 ww.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 oJ(_,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 nJ(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function P9(_,J){J=J||GW;var $=J.current;if(J=($=tJ(_,$&&$.tag,J.implicitRootScope)?null:$)?null:oJ(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,FQ[J])return!1;FQ[J]=!0;var G=(J=Y5)?nJ(J.return,q):null,K=J!==null&&G!==null?sJ(G,J,null):"",z="<"+_+">";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
45
+ `}function WU(_,J,$){var q="",G=J0({},J),K;for(K in _)if(_.hasOwnProperty(K)){delete G[K];var z=120-2*$-K.length-2,L=j3(_[K],z);J.hasOwnProperty(K)?(z=j3(J[K],z),q+=S3($)+K+": "+L+`
46
+ `,q+=l4($)+K+": "+z+`
47
+ `):q+=S3($)+K+": "+L+`
48
+ `}for(var I in G)G.hasOwnProperty(I)&&(_=j3(G[I],120-2*$-I.length-2),q+=l4($)+I+": "+_+`
49
+ `);return q}function BU(_,J,$,q){var G="",K=new Map;for(f in $)$.hasOwnProperty(f)&&K.set(f.toLowerCase(),f);if(K.size===1&&K.has("children"))G+=P9(_,J,E2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var L=120-2*(q+1)-z.length-1,I=K.get(z.toLowerCase());if(I!==void 0){K.delete(z.toLowerCase());var f=J[z];I=$[I];var n=v3(f,L);L=v3(I,L),typeof f==="object"&&f!==null&&typeof I==="object"&&I!==null&&w9(f)==="Object"&&w9(I)==="Object"&&(2<Object.keys(f).length||2<Object.keys(I).length||-1<n.indexOf("...")||-1<L.indexOf("..."))?G+=E2(q+1)+z+`={{
50
+ `+WU(f,I,q+2)+E2(q+1)+`}}
51
+ `:(G+=S3(q+1)+z+"="+n+`
52
+ `,G+=l4(q+1)+z+"="+L+`
53
+ `)}else G+=E2(q+1)+z+"="+v3(J[z],L)+`
54
+ `}K.forEach(function(_1){if(_1!=="children"){var i=120-2*(q+1)-_1.length-1;G+=l4(q+1)+_1+"="+v3($[_1],i)+`
55
+ `}}),G=G===""?E2(q)+"<"+_+`>
56
+ `:E2(q)+"<"+_+`
57
+ `+G+E2(q)+`>
58
+ `}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(K="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")K=""+J;G+=o8(K,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+o8(""+J,null,q+1):G+o8(""+J,void 0,q+1);return G}function eJ(_,J){var $=nJ(_);if($===null){$="";for(_=_.child;_;)$+=eJ(_,J),_=_.sibling;return $}return E2(J)+"<"+$+`>
59
+ `}function N9(_,J){var $=oJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return E2(J)+`...
60
+ `+N9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var K=q[G].name;typeof K==="string"&&($+=E2(J)+"<"+K+`>
61
+ `,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=o8(G,_.serverProps,J),J++;else if(K=nJ(_.fiber),K!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-K.length-2,L="";for(f in G)if(G.hasOwnProperty(f)&&f!=="children"){var I=v3(G[f],15);if(z-=f.length+I.length+2,0>z){L+=" ...";break}L+=" "+f+"="+I}q=E2(q)+"<"+K+L+`>
62
+ `,J++}else _.serverProps===null?(q=P9(K,G,S3(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=BU(K,G,_.serverProps,J),J++);var f="";G=_.fiber.child;for(K=0;G&&K<_.children.length;)z=_.children[K],z.fiber===G?(f+=N9(z,J),K++):f+=eJ(G,J),G=G.sibling;G&&0<_.children.length&&(f+=E2(J)+`...
63
+ `),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)K=G[_],f=typeof K==="string"?f+(l4(J)+D6(K,120-2*J)+`
64
+ `):f+P9(K.type,K.props,l4(J));return $+q+f}function C9(_){try{return`
65
+
66
+ `+N9(_,0)}catch(J){return""}}function _$(_,J,$){for(var q=J,G=null,K=0;q;)q===_&&(K=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:K},K++,q=q.return;return G!==null?C9(G).replaceAll(/^[+-]/gm,">"):""}function f9(_,J){var $=J0({},_||HB),q={tag:J};if(XB.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Cw.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 J$(_,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 fw.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 $$(_,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 Q$(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function S9(_,J){J=J||HB;var $=J.current;if(J=($=J$(_,$&&$.tag,J.implicitRootScope)?null:$)?null:$$(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,WQ[J])return!1;WQ[J]=!0;var G=(J=z5)?Q$(J.return,q):null,K=J!==null&&G!==null?_$(G,J,null):"",z="<"+_+">";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
67
67
  This will cause a hydration error.%s`,z,q,$,K)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,z,q,K),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||W1(G,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,q,z)})),!1}function y3(_,J,$){if($||tJ("#text",J,!1))return!0;if($="#text|"+J,FQ[$])return!1;FQ[$]=!0;var q=($=Y5)?nJ($,J):null;return $=$!==null&&q!==null?sJ(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
68
+ This will cause a hydration error.%s`,z,q,K),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||M1(G,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,q,z)})),!1}function V3(_,J,$){if($||J$("#text",J,!1))return!0;if($="#text|"+J,WQ[$])return!1;WQ[$]=!0;var q=($=z5)?Q$($,J):null;return $=$!==null&&q!==null?_$(q,$,$.tag!==6?{children:null}:null):"",/\S/.test(_)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
70
  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.
71
- This will cause a hydration error.%s`,J,$),!1}function v6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function YU(_){return _.replace(fw,function(J,$){return $.toUpperCase()})}function N9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?W7.hasOwnProperty(J)&&W7[J]||(W7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,YU(J.replace(Nw,"ms-")))):Pw.test(J)?W7.hasOwnProperty(J)&&W7[J]||(W7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!FW.test($)||CZ.hasOwnProperty($)&&CZ[$]||(CZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(FW,""))),typeof $==="number"&&(isNaN($)?XW||(XW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||HW||(HW=!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||YW.has(J)?J==="float"?_.cssFloat=$:(i1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function UH(_,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 K=fZ[G]||[G],z=0;z<K.length;z++)q[K[z]]=G}for(var L in J)if(J.hasOwnProperty(L)&&(!$||$[L]!==J[L]))for(G=fZ[L]||[L],K=0;K<G.length;K++)q[G[K]]=L;L={};for(var I in J)for(G=fZ[I]||[I],K=0;K<G.length;K++)L[G[K]]=I;I={};for(var C in q)if(G=q[C],(K=L[C])&&G!==K&&(z=G+","+K,!I[z])){I[z]=!0,z=console;var e=J[G];z.error.call(z,"%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.",e==null||typeof e==="boolean"||e===""?"Removing":"Updating",G,K)}}for(var _1 in $)!$.hasOwnProperty(_1)||J!=null&&J.hasOwnProperty(_1)||(_1.indexOf("--")===0?_.setProperty(_1,""):_1==="float"?_.cssFloat="":_[_1]="");for(var d in J)C=J[d],J.hasOwnProperty(d)&&$[d]!==C&&N9(_,d,C)}else for(q in J)J.hasOwnProperty(q)&&N9(_,q,J[q])}function f9(_){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 GH(_){return Cw.get(_)||_}function RO(_,J){if(c5.call(A7,J)&&A7[J])return!0;if(jw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=zW.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),A7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),A7[J]=!0}if(Sw.test(J)){if(_=J.toLowerCase(),_=zW.hasOwnProperty(_)?_:null,_==null)return A7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),A7[J]=!0)}return!0}function OO(_,J){var $=[],q;for(q in J)RO(_,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 IO(_,J,$,q){if(c5.call(m2,J)&&m2[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."),m2[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),m2[J]=!0;if(WW.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),m2[J]=!0}else if(WW.test(J))return yw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),m2[J]=!0;if(Vw.test(J)||kw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),m2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),m2[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 $),m2[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),m2[J]=!0;if(HQ.hasOwnProperty(G)){if(G=HQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),m2[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),m2[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),m2[J]=!0}case"function":case"symbol":return m2[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,$),m2[J]=!0}}return!0}function wO(_,J,$){var q=[],G;for(G in J)IO(_,G,J[G],$)||q.push(G);J=q.map(function(K){return"`"+K+"`"}).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 C9(_){return vw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function l4(){}function zU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function ZH(_){var J=c1(_);if(J&&(_=J.stateNode)){var $=_[x2]||null;_:switch(_=J.stateNode,J.type){case"input":if(i8(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;L1(J,"name"),$=$.querySelectorAll('input[name="'+s2(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[x2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");i8(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&&xJ(q)}break _;case"textarea":dJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&f3(_,!!$.multiple,J,!1)}}}function KH(_,J,$){if(SZ)return _(J,$);SZ=!0;try{var q=_(J);return q}finally{if(SZ=!1,M7!==null||T7!==null){if(U7(),M7&&(J=M7,_=T7,T7=M7=null,ZH(J),_))for(J=0;J<_.length;J++)ZH(_[J])}}}function S9(_,J){var $=_.stateNode;if($===null)return null;var q=$[x2]||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 FH(){if(YQ)return YQ;var _,J=yZ,$=J.length,q,G="value"in i3?i3.value:i3.textContent,K=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[K-q];q++);return YQ=G.slice(_,1<q?1-q:void 0)}function eJ(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function _$(){return!0}function XH(){return!1}function t2(_){function J($,q,G,K,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=K,this.target=z,this.currentTarget=null;for(var L in _)_.hasOwnProperty(L)&&($=_[L],this[L]=$?$(K):K[L]);return this.isDefaultPrevented=(K.defaultPrevented!=null?K.defaultPrevented:K.returnValue===!1)?_$:XH,this.isPropagationStopped=XH,this}return J0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=_$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=_$)},persist:function(){},isPersistent:_$}),J}function PO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=rw[_])?!!J[_]:!1}function BU(){return PO}function HH(_,J){switch(_){case"keyup":return qP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==TW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function YH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function NO(_,J){switch(_){case"compositionend":return YH(J);case"keypress":if(J.which!==OW)return null;return wW=!0,IW;case"textInput":return _=J.data,_===IW&&wW?null:_;default:return null}}function fO(_,J){if(R7)return _==="compositionend"||!DZ&&HH(_,J)?(_=FH(),YQ=yZ=i3=null,R7=!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 RW&&J.locale!=="ko"?null:J.data;default:return null}}function zH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!GP[_.type]:J==="textarea"?!0:!1}function CO(_){if(!C4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function BH(_,J,$,q){M7?T7?T7.push(q):T7=[q]:M7=q,J=r$(J,"onChange"),0<J.length&&($=new zQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function SO(_){tz(_,0)}function J$(_){var J=l1(_);if(xJ(J))return _}function WH(_,J){if(_==="change")return J}function LH(){z_&&(z_.detachEvent("onpropertychange",AH),B_=z_=null)}function AH(_){if(_.propertyName==="value"&&J$(B_)){var J=[];BH(J,B_,_,zU(_)),KH(SO,J)}}function jO(_,J,$){_==="focusin"?(LH(),z_=J,B_=$,z_.attachEvent("onpropertychange",AH)):_==="focusout"&&LH()}function yO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return J$(B_)}function VO(_,J){if(_==="click")return J$(J)}function kO(_,J){if(_==="input"||_==="change")return J$(J)}function vO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function j9(_,J){if(g2(_,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(!c5.call(J,G)||!g2(_[G],J[G]))return!1}return!0}function MH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function TH(_,J){var $=MH(_);_=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}$=MH($)}}function RH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?RH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function OH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=r8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=r8(_.document)}return J}function WU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function IH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;uZ||O7==null||O7!==r8(q)||(q=O7,("selectionStart"in q)&&WU(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}),W_&&j9(W_,q)||(W_=q,q=r$(bZ,"onSelect"),0<q.length&&(J=new zQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=O7)))}function D6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function b6(_){if(EZ[_])return EZ[_];if(!I7[_])return _;var J=I7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in NW)return EZ[_]=J[$];return _}function m5(_,J){yW.set(_,J),Z2(J,[_])}function DO(_){for(var J=WQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(_2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==WQ&&J!==pZ)return mZ;J=pZ}else return mZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==WQ&&J!==gZ)return mZ;J=gZ}}return J}function LU(_,J,$,q){for(var G in _)c5.call(_,G)&&G[0]!=="_"&&U4(G,_[G],J,$,q)}function U4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===O4){var K=b(J.type)||"…",z=J.key;J=J.props;var L=Object.keys(J),I=L.length;if(z==null&&I===0){J="<"+K+" />";break}if(3>q||I===1&&L[0]==="children"&&z==null){J="<"+K+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+K]),z!==null&&U4("key",z,$,q+1,G),_=!1;for(var C in J)C==="children"?J.children!=null&&(!_2(J.children)||0<J.children.length)&&(_=!0):c5.call(J,C)&&C[0]!=="_"&&U4(C,J[C],$,q+1,G);$.push(["",_?">…</"+K+">":"/>"]);return}if(K=Object.prototype.toString.call(J),K=K.slice(8,K.length-1),K==="Array"){if(C=DO(J),C===gZ||C===WQ){J=JSON.stringify(J);break}else if(C===pZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)K=J[_],U4(K[0],K[1],$,q+1,G);return}}if(K==="Promise"){if(J.status==="fulfilled"){if(K=$.length,U4(_,J.value,$,q,G),$.length>K){$=$[K],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(K=$.length,U4(_,J.reason,$,q,G),$.length>K)){$=$[K],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}K==="Object"&&(C=Object.getPrototypeOf(J))&&typeof C.constructor==="function"&&(K=C.constructor.name),$.push([G+"  ".repeat(q)+_,K==="Object"?3>q?"":"…":K]),3>q&&LU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===zP?"…":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 wH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([LQ+"  ".repeat(q)+z,"…"]),G=!1);for(var K in J)if(K in _){var z=_[K],L=J[K];if(z!==L){if(q===0&&K==="children")G="  ".repeat(q)+K,$.push([LQ+G,"…"],[AQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof L==="object"&&z!==null&&L!==null&&z.$$typeof===L.$$typeof)if(L.$$typeof===O4){if(z.type===L.type&&z.key===L.key){z=b(L.type)||"…",G="  ".repeat(q)+K,z="<"+z+" … />",$.push([LQ+G,z],[AQ+G,z]),G=!1;continue}}else{var I=Object.prototype.toString.call(z),C=Object.prototype.toString.call(L);if(I===C&&(C==="[object Object]"||C==="[object Array]")){I=[vW+"  ".repeat(q)+K,C==="[object Array]"?"Array":""],$.push(I),C=$.length,wH(z,L,$,q+1)?C===$.length&&(I[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof L==="function"&&z.name===L.name&&z.length===L.length&&(I=Function.prototype.toString.call(z),C=Function.prototype.toString.call(L),I===C)){z=L.name===""?"() => {}":L.name+"() {}",$.push([vW+"  ".repeat(q)+K,z+" Referentially unequal function closure. Consider memoization."]);continue}}U4(K,z,$,q,LQ),U4(K,L,$,q,AQ)}G=!1}}else $.push([AQ+"  ".repeat(q)+K,"…"]),G=!1;return G}function q5(_){Q0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function G4(_,J,$,q){f0&&(s3.start=J,s3.end=$,e4.color="warning",e4.tooltipText=q,e4.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,s3)):performance.measure(q,s3))}function $$(_,J,$){G4(_,J,$,"Reconnect")}function Q$(_,J,$,q,G){var K=m(_);if(K!==null&&f0){var{alternate:z,actualDuration:L}=_;if(z===null||z.child!==_.child)for(var I=_.child;I!==null;I=I.sibling)L-=I.actualDuration;q=0.5>L?q?"tertiary-light":"primary-light":10>L?q?"tertiary":"primary":100>L?q?"tertiary-dark":"primary-dark":"error";var C=_.memoizedProps;L=_._debugTask,C!==null&&z!==null&&z.memoizedProps!==C?(I=[BP],C=wH(z.memoizedProps,C,I,0),1<I.length&&(C&&!a3&&(z.lanes&G)===0&&100<_.actualDuration?(a3=!0,I[0]=WP,e4.color="warning",e4.tooltipText=DW):(e4.color=q,e4.tooltipText=K),e4.properties=I,s3.start=J,s3.end=$,L!=null?L.run(performance.measure.bind(performance,"​"+K,s3)):performance.measure("​"+K,s3))):L!=null?L.run(console.timeStamp.bind(console,K,J,$,I5,void 0,q)):console.timeStamp(K,J,$,I5,void 0,q)}}function AU(_,J,$,q){if(f0){var G=m(_);if(G!==null){for(var K=null,z=[],L=0;L<q.length;L++){var I=q[L];K==null&&I.source!==null&&(K=I.source._debugTask),I=I.value,z.push(["Error",typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I)])}_.key!==null&&U4("key",_.key,z,0,""),_.memoizedProps!==null&&LU(_.memoizedProps,z,0,""),K==null&&(K=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:I5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},K?K.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function Z4(_,J,$,q,G){if(G!==null){if(f0){var K=m(_);if(K!==null){q=[];for(var z=0;z<G.length;z++){var L=G[z].value;q.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_.key!==null&&U4("key",_.key,q,0,""),_.memoizedProps!==null&&LU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:I5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+K,J)):performance.measure("​"+K,J)}}}else K=m(_),K!==null&&f0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,K,J,$,I5,void 0,G)):console.timeStamp(K,J,$,I5,void 0,G))}function bO(_,J,$,q){if(f0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,Q0,$0,G)):console.timeStamp($,_,J,Q0,$0,G)}}function PH(_,J,$,q){!f0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,Q0,$0,$)):console.timeStamp("Prewarm",_,J,Q0,$0,$))}function NH(_,J,$,q){!f0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,Q0,$0,$)):console.timeStamp("Suspended",_,J,Q0,$0,$))}function uO(_,J,$,q,G,K){if(f0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var L=q[z].value;$.push(["Recoverable Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:Q0,trackGroup:$0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},K?K.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function MU(_,J,$,q){!f0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,Q0,$0,"error")):console.timeStamp("Errored",_,J,Q0,$0,"error"))}function EO(_,J,$,q){!f0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,Q0,$0,"secondary-light")):console.timeStamp($,_,J,Q0,$0,"secondary-light"))}function fH(_,J,$,q,G){if(f0&&!(J<=_)){for(var K=[],z=0;z<$.length;z++){var L=$[z].value;K.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"error",track:Q0,trackGroup:$0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:K}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function y9(_,J,$){!f0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,Q0,$0,"secondary-dark")):console.timeStamp("Animating",_,J,Q0,$0,"secondary-dark"))}function q$(){for(var _=w7,J=cZ=w7=0;J<_;){var $=w5[J];w5[J++]=null;var q=w5[J];w5[J++]=null;var G=w5[J];w5[J++]=null;var K=w5[J];if(w5[J++]=null,q!==null&&G!==null){var z=q.pending;z===null?G.next=G:(G.next=z.next,z.next=G),q.pending=G}K!==0&&CH($,G,K)}}function U$(_,J,$,q){w5[w7++]=_,w5[w7++]=J,w5[w7++]=$,w5[w7++]=q,cZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function TU(_,J,$,q){return U$(_,J,$,q),G$(_)}function N2(_,J){return U$(_,null,null,J),G$(_)}function CH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,K=_.return;K!==null;)K.childLanes|=$,q=K.alternate,q!==null&&(q.childLanes|=$),K.tag===22&&(_=K.stateNode,_===null||_._visibility&L_||(G=!0)),_=K,K=K.return;return _.tag===3?(K=_.stateNode,G&&J!==null&&(G=31-h2($),_=K.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),K):null}function G$(_){if(c_>yP)throw X8=c_=0,l_=IK=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.");X8>VP&&(X8=0,l_=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&&cz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&cz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function u6(_){if(P5===null)return _;var J=P5(_);return J===void 0?_:J.current}function RU(_){if(P5===null)return _;var J=P5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=u6(_.render),_.render!==J)?(J={$$typeof:q_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function SH(_,J){if(P5===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===H5&&(q=!0);break;case 11:G===q_?q=!0:G===H5&&(q=!0);break;case 14:case 15:G===QQ?q=!0:G===H5&&(q=!0);break;default:return!1}return q&&(_=P5($),_!==void 0&&_===P5(J))?!0:!1}function jH(_){P5!==null&&typeof WeakSet==="function"&&(P7===null&&(P7=new WeakSet),P7.add(_))}function yH(_,J,$){do{var q=_,G=q.alternate,K=q.child,z=q.sibling,L=q.tag;q=q.type;var I=null;switch(L){case 0:case 15:case 1:I=q;break;case 11:I=q.render}if(P5===null)throw Error("Expected resolveFamily to be set during hot reload.");var C=!1;if(q=!1,I!==null&&(I=P5(I),I!==void 0&&($.has(I)?q=!0:J.has(I)&&(L===1?q=!0:C=!0))),P7!==null&&(P7.has(_)||G!==null&&P7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||C)G=N2(_,2),G!==null&&u0(G,_,2);if(K===null||q||yH(K,J,$),z===null)break;_=z}while(1)}function hO(_,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,bW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function OU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function d4(_,J){var $=_.alternate;switch($===null?($=O(_.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=u6(_.type);break;case 1:$.type=u6(_.type);break;case 11:$.type=RU(_.type)}return $}function VH(_,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 IU(_,J,$,q,G,K){var z=0,L=_;if(typeof _==="function")OU(_)&&(z=1),L=u6(L);else if(typeof _==="string")z=a(),z=iI(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case BZ:return J=O(31,$,J,G),J.elementType=BZ,J.lanes=K,J;case Y7:return E6($.children,G,K,J);case $Q:z=8,G|=C2,G|=d5;break;case XZ: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=O(12,_,J,q|s1),J.elementType=XZ,J.lanes=K,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case YZ:return J=O(13,$,J,G),J.elementType=YZ,J.lanes=K,J;case zZ:return J=O(19,$,J,G),J.elementType=zZ,J.lanes=K,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case I4:z=10;break _;case HZ:z=9;break _;case q_:z=11,L=RU(L);break _;case QQ:z=14;break _;case H5:z=16,L=null;break _}if(L="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)L+=" 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":_2(_)?$="array":_!==void 0&&_.$$typeof===O4?($="<"+(b(_.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?E(q):null)&&(L+=`
71
+ This will cause a hydration error.%s`,J,$),!1}function u6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function LU(_){return _.replace(vw,function(J,$){return $.toUpperCase()})}function j9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?A7.hasOwnProperty(J)&&A7[J]||(A7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,LU(J.replace(jw,"ms-")))):Sw.test(J)?A7.hasOwnProperty(J)&&A7[J]||(A7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!WB.test($)||VZ.hasOwnProperty($)&&VZ[$]||(VZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(WB,""))),typeof $==="number"&&(isNaN($)?BB||(BB=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||LB||(LB=!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||AB.has(J)?J==="float"?_.cssFloat=$:(u1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function XH(_,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 K=vZ[G]||[G],z=0;z<K.length;z++)q[K[z]]=G}for(var L in J)if(J.hasOwnProperty(L)&&(!$||$[L]!==J[L]))for(G=vZ[L]||[L],K=0;K<G.length;K++)q[G[K]]=L;L={};for(var I in J)for(G=vZ[I]||[I],K=0;K<G.length;K++)L[G[K]]=I;I={};for(var f in q)if(G=q[f],(K=L[f])&&G!==K&&(z=G+","+K,!I[z])){I[z]=!0,z=console;var n=J[G];z.error.call(z,"%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.",n==null||typeof n==="boolean"||n===""?"Removing":"Updating",G,K)}}for(var _1 in $)!$.hasOwnProperty(_1)||J!=null&&J.hasOwnProperty(_1)||(_1.indexOf("--")===0?_.setProperty(_1,""):_1==="float"?_.cssFloat="":_[_1]="");for(var i in J)f=J[i],J.hasOwnProperty(i)&&$[i]!==f&&j9(_,i,f)}else for(q in J)J.hasOwnProperty(q)&&j9(_,q,J[q])}function v9(_){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 HH(_){return Vw.get(_)||_}function PO(_,J){if(l5.call(T7,J)&&T7[J])return!0;if(kw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=MB.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),T7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),T7[J]=!0}if(yw.test(J)){if(_=J.toLowerCase(),_=MB.hasOwnProperty(_)?_:null,_==null)return T7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),T7[J]=!0)}return!0}function NO(_,J){var $=[],q;for(q in J)PO(_,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 CO(_,J,$,q){if(l5.call(g2,J)&&g2[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."),g2[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),g2[J]=!0;if(RB.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),g2[J]=!0}else if(RB.test(J))return Dw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),g2[J]=!0;if(uw.test(J)||bw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),g2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),g2[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 $),g2[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),g2[J]=!0;if(LQ.hasOwnProperty(G)){if(G=LQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),g2[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),g2[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),g2[J]=!0}case"function":case"symbol":return g2[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,$),g2[J]=!0}}return!0}function fO(_,J,$){var q=[],G;for(G in J)CO(_,G,J[G],$)||q.push(G);J=q.map(function(K){return"`"+K+"`"}).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 V9(_){return Ew.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function d4(){}function AU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function YH(_){var J=l1(_);if(J&&(_=J.stateNode)){var $=_[m2]||null;_:switch(_=J.stateNode,J.type){case"input":if(s8(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;K1(J,"name"),$=$.querySelectorAll('input[name="'+t2(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[m2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");s8(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&&lJ(q)}break _;case"textarea":tJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&f3(_,!!$.multiple,J,!1)}}}function zH(_,J,$){if(yZ)return _(J,$);yZ=!0;try{var q=_(J);return q}finally{if(yZ=!1,R7!==null||O7!==null){if(Z7(),R7&&(J=R7,_=O7,O7=R7=null,YH(J),_))for(J=0;J<_.length;J++)YH(_[J])}}}function y9(_,J){var $=_.stateNode;if($===null)return null;var q=$[m2]||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 WH(){if(AQ)return AQ;var _,J=DZ,$=J.length,q,G="value"in a3?a3.value:a3.textContent,K=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[K-q];q++);return AQ=G.slice(_,1<q?1-q:void 0)}function q$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function U$(){return!0}function BH(){return!1}function o2(_){function J($,q,G,K,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=K,this.target=z,this.currentTarget=null;for(var L in _)_.hasOwnProperty(L)&&($=_[L],this[L]=$?$(K):K[L]);return this.isDefaultPrevented=(K.defaultPrevented!=null?K.defaultPrevented:K.returnValue===!1)?U$:BH,this.isPropagationStopped=BH,this}return J0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=U$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=U$)},persist:function(){},isPersistent:U$}),J}function SO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=tw[_])?!!J[_]:!1}function MU(){return SO}function LH(_,J){switch(_){case"keyup":return FP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==PB;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function jO(_,J){switch(_){case"compositionend":return AH(J);case"keypress":if(J.which!==CB)return null;return SB=!0,fB;case"textInput":return _=J.data,_===fB&&SB?null:_;default:return null}}function vO(_,J){if(I7)return _==="compositionend"||!hZ&&LH(_,J)?(_=WH(),AQ=DZ=a3=null,I7=!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 NB&&J.locale!=="ko"?null:J.data;default:return null}}function MH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!XP[_.type]:J==="textarea"?!0:!1}function VO(_){if(!S4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function TH(_,J,$,q){R7?O7?O7.push(q):O7=[q]:R7=q,J=o$(J,"onChange"),0<J.length&&($=new MQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function yO(_){JW(_,0)}function G$(_){var J=d1(_);if(lJ(J))return _}function RH(_,J){if(_==="change")return J}function OH(){A_&&(A_.detachEvent("onpropertychange",IH),M_=A_=null)}function IH(_){if(_.propertyName==="value"&&G$(M_)){var J=[];TH(J,M_,_,AU(_)),zH(yO,J)}}function kO(_,J,$){_==="focusin"?(OH(),A_=J,M_=$,A_.attachEvent("onpropertychange",IH)):_==="focusout"&&OH()}function DO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return G$(M_)}function uO(_,J){if(_==="click")return G$(J)}function bO(_,J){if(_==="input"||_==="change")return G$(J)}function EO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function k9(_,J){if(p2(_,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(!l5.call(J,G)||!p2(_[G],J[G]))return!1}return!0}function wH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function PH(_,J){var $=wH(_);_=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}$=wH($)}}function NH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?NH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function CH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=a8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=a8(_.document)}return J}function TU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function fH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;mZ||w7==null||w7!==a8(q)||(q=w7,("selectionStart"in q)&&TU(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}),T_&&k9(T_,q)||(T_=q,q=o$(xZ,"onSelect"),0<q.length&&(J=new MQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=w7)))}function b6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function E6(_){if(gZ[_])return gZ[_];if(!P7[_])return _;var J=P7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in vB)return gZ[_]=J[$];return _}function g5(_,J){uB.set(_,J),H2(J,[_])}function hO(_){for(var J=RQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(U2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==RQ&&J!==iZ)return lZ;J=iZ}else return lZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==RQ&&J!==dZ)return lZ;J=dZ}}return J}function RU(_,J,$,q){for(var G in _)l5.call(_,G)&&G[0]!=="_"&&G4(G,_[G],J,$,q)}function G4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===I4){var K=b(J.type)||"…",z=J.key;J=J.props;var L=Object.keys(J),I=L.length;if(z==null&&I===0){J="<"+K+" />";break}if(3>q||I===1&&L[0]==="children"&&z==null){J="<"+K+" … />";break}$.push([G+"  ".repeat(q)+_,"<"+K]),z!==null&&G4("key",z,$,q+1,G),_=!1;for(var f in J)f==="children"?J.children!=null&&(!U2(J.children)||0<J.children.length)&&(_=!0):l5.call(J,f)&&f[0]!=="_"&&G4(f,J[f],$,q+1,G);$.push(["",_?">…</"+K+">":"/>"]);return}if(K=Object.prototype.toString.call(J),K=K.slice(8,K.length-1),K==="Array"){if(f=hO(J),f===dZ||f===RQ){J=JSON.stringify(J);break}else if(f===iZ){$.push([G+"  ".repeat(q)+_,""]);for(_=0;_<J.length;_++)K=J[_],G4(K[0],K[1],$,q+1,G);return}}if(K==="Promise"){if(J.status==="fulfilled"){if(K=$.length,G4(_,J.value,$,q,G),$.length>K){$=$[K],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(K=$.length,G4(_,J.reason,$,q,G),$.length>K)){$=$[K],$[1]="Rejected Promise<"+$[1]+">";return}$.push(["  ".repeat(q)+_,"Promise"]);return}K==="Object"&&(f=Object.getPrototypeOf(J))&&typeof f.constructor==="function"&&(K=f.constructor.name),$.push([G+"  ".repeat(q)+_,K==="Object"?3>q?"":"…":K]),3>q&&RU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===AP?"…":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 SH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([OQ+"  ".repeat(q)+z,"…"]),G=!1);for(var K in J)if(K in _){var z=_[K],L=J[K];if(z!==L){if(q===0&&K==="children")G="  ".repeat(q)+K,$.push([OQ+G,"…"],[IQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof L==="object"&&z!==null&&L!==null&&z.$$typeof===L.$$typeof)if(L.$$typeof===I4){if(z.type===L.type&&z.key===L.key){z=b(L.type)||"…",G="  ".repeat(q)+K,z="<"+z+" … />",$.push([OQ+G,z],[IQ+G,z]),G=!1;continue}}else{var I=Object.prototype.toString.call(z),f=Object.prototype.toString.call(L);if(I===f&&(f==="[object Object]"||f==="[object Array]")){I=[hB+"  ".repeat(q)+K,f==="[object Array]"?"Array":""],$.push(I),f=$.length,SH(z,L,$,q+1)?f===$.length&&(I[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof L==="function"&&z.name===L.name&&z.length===L.length&&(I=Function.prototype.toString.call(z),f=Function.prototype.toString.call(L),I===f)){z=L.name===""?"() => {}":L.name+"() {}",$.push([hB+"  ".repeat(q)+K,z+" Referentially unequal function closure. Consider memoization."]);continue}}G4(K,z,$,q,OQ),G4(K,L,$,q,IQ)}G=!1}}else $.push([IQ+"  ".repeat(q)+K,"…"]),G=!1;return G}function U5(_){q0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function Z4(_,J,$,q){S0&&(t3.start=J,t3.end=$,_3.color="warning",_3.tooltipText=q,_3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,t3)):performance.measure(q,t3))}function Z$(_,J,$){Z4(_,J,$,"Reconnect")}function F$(_,J,$,q,G){var K=m(_);if(K!==null&&S0){var{alternate:z,actualDuration:L}=_;if(z===null||z.child!==_.child)for(var I=_.child;I!==null;I=I.sibling)L-=I.actualDuration;q=0.5>L?q?"tertiary-light":"primary-light":10>L?q?"tertiary":"primary":100>L?q?"tertiary-dark":"primary-dark":"error";var f=_.memoizedProps;L=_._debugTask,f!==null&&z!==null&&z.memoizedProps!==f?(I=[MP],f=SH(z.memoizedProps,f,I,0),1<I.length&&(f&&!s3&&(z.lanes&G)===0&&100<_.actualDuration?(s3=!0,I[0]=TP,_3.color="warning",_3.tooltipText=xB):(_3.color=q,_3.tooltipText=K),_3.properties=I,t3.start=J,t3.end=$,L!=null?L.run(performance.measure.bind(performance,"​"+K,t3)):performance.measure("​"+K,t3))):L!=null?L.run(console.timeStamp.bind(console,K,J,$,w5,void 0,q)):console.timeStamp(K,J,$,w5,void 0,q)}}function OU(_,J,$,q){if(S0){var G=m(_);if(G!==null){for(var K=null,z=[],L=0;L<q.length;L++){var I=q[L];K==null&&I.source!==null&&(K=I.source._debugTask),I=I.value,z.push(["Error",typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I)])}_.key!==null&&G4("key",_.key,z,0,""),_.memoizedProps!==null&&RU(_.memoizedProps,z,0,""),K==null&&(K=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:w5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},K?K.run(performance.measure.bind(performance,"​"+G,_)):performance.measure("​"+G,_)}}}function F4(_,J,$,q,G){if(G!==null){if(S0){var K=m(_);if(K!==null){q=[];for(var z=0;z<G.length;z++){var L=G[z].value;q.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_.key!==null&&G4("key",_.key,q,0,""),_.memoizedProps!==null&&RU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:w5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,"​"+K,J)):performance.measure("​"+K,J)}}}else K=m(_),K!==null&&S0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,K,J,$,w5,void 0,G)):console.timeStamp(K,J,$,w5,void 0,G))}function xO(_,J,$,q){if(S0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,q0,$0,G)):console.timeStamp($,_,J,q0,$0,G)}}function jH(_,J,$,q){!S0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,q0,$0,$)):console.timeStamp("Prewarm",_,J,q0,$0,$))}function vH(_,J,$,q){!S0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,q0,$0,$)):console.timeStamp("Suspended",_,J,q0,$0,$))}function mO(_,J,$,q,G,K){if(S0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var L=q[z].value;$.push(["Recoverable Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:q0,trackGroup:$0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},K?K.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function IU(_,J,$,q){!S0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,q0,$0,"error")):console.timeStamp("Errored",_,J,q0,$0,"error"))}function gO(_,J,$,q){!S0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,q0,$0,"secondary-light")):console.timeStamp($,_,J,q0,$0,"secondary-light"))}function VH(_,J,$,q,G){if(S0&&!(J<=_)){for(var K=[],z=0;z<$.length;z++){var L=$[z].value;K.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"error",track:q0,trackGroup:$0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:K}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function D9(_,J,$){!S0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,q0,$0,"secondary-dark")):console.timeStamp("Animating",_,J,q0,$0,"secondary-dark"))}function K$(){for(var _=N7,J=rZ=N7=0;J<_;){var $=P5[J];P5[J++]=null;var q=P5[J];P5[J++]=null;var G=P5[J];P5[J++]=null;var K=P5[J];if(P5[J++]=null,q!==null&&G!==null){var z=q.pending;z===null?G.next=G:(G.next=z.next,z.next=G),q.pending=G}K!==0&&yH($,G,K)}}function X$(_,J,$,q){P5[N7++]=_,P5[N7++]=J,P5[N7++]=$,P5[N7++]=q,rZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function wU(_,J,$,q){return X$(_,J,$,q),H$(_)}function f2(_,J){return X$(_,null,null,J),H$(_)}function yH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,K=_.return;K!==null;)K.childLanes|=$,q=K.alternate,q!==null&&(q.childLanes|=$),K.tag===22&&(_=K.stateNode,_===null||_._visibility&R_||(G=!0)),_=K,K=K.return;return _.tag===3?(K=_.stateNode,G&&J!==null&&(G=31-x2($),_=K.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),K):null}function H$(_){if(r_>DP)throw Y8=r_=0,a_=CF=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.");Y8>uP&&(Y8=0,a_=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&&az(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&az(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function h6(_){if(N5===null)return _;var J=N5(_);return J===void 0?_:J.current}function PU(_){if(N5===null)return _;var J=N5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=h6(_.render),_.render!==J)?(J={$$typeof:F_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function kH(_,J){if(N5===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===Y5&&(q=!0);break;case 11:G===F_?q=!0:G===Y5&&(q=!0);break;case 14:case 15:G===FQ?q=!0:G===Y5&&(q=!0);break;default:return!1}return q&&(_=N5($),_!==void 0&&_===N5(J))?!0:!1}function DH(_){N5!==null&&typeof WeakSet==="function"&&(C7===null&&(C7=new WeakSet),C7.add(_))}function uH(_,J,$){do{var q=_,G=q.alternate,K=q.child,z=q.sibling,L=q.tag;q=q.type;var I=null;switch(L){case 0:case 15:case 1:I=q;break;case 11:I=q.render}if(N5===null)throw Error("Expected resolveFamily to be set during hot reload.");var f=!1;if(q=!1,I!==null&&(I=N5(I),I!==void 0&&($.has(I)?q=!0:J.has(I)&&(L===1?q=!0:f=!0))),C7!==null&&(C7.has(_)||G!==null&&C7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||f)G=f2(_,2),G!==null&&h0(G,_,2);if(K===null||q||uH(K,J,$),z===null)break;_=z}while(1)}function pO(_,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 NU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function i4(_,J){var $=_.alternate;switch($===null?($=O(_.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=h6(_.type);break;case 1:$.type=h6(_.type);break;case 11:$.type=PU(_.type)}return $}function bH(_,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 CU(_,J,$,q,G,K){var z=0,L=_;if(typeof _==="function")NU(_)&&(z=1),L=h6(L);else if(typeof _==="string")z=a(),z=oI(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case MZ:return J=O(31,$,J,G),J.elementType=MZ,J.lanes=K,J;case W7:return x6($.children,G,K,J);case ZQ:z=8,G|=j2,G|=i5;break;case WZ: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=O(12,_,J,q|t1),J.elementType=WZ,J.lanes=K,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case LZ:return J=O(13,$,J,G),J.elementType=LZ,J.lanes=K,J;case AZ:return J=O(19,$,J,G),J.elementType=AZ,J.lanes=K,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case w4:z=10;break _;case BZ:z=9;break _;case F_:z=11,L=PU(L);break _;case FQ:z=14;break _;case Y5:z=16,L=null;break _}if(L="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)L+=" 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":U2(_)?$="array":_!==void 0&&_.$$typeof===I4?($="<"+(b(_.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?E(q):null)&&(L+=`
72
72
 
73
- Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+L)),L=null}return J=O(z,$,J,G),J.elementType=_,J.type=L,J.lanes=K,J._debugOwner=q,J}function Z$(_,J,$){return J=IU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function E6(_,J,$,q){return _=O(7,_,q,J),_.lanes=$,_}function wU(_,J,$){return _=O(6,_,null,J),_.lanes=$,_}function kH(_){var J=O(18,null,null,m1);return J.stateNode=_,J}function PU(_,J,$){return J=O(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function U5(_,J){if(typeof _==="object"&&_!==null){var $=lZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:B1(J)},lZ.set(_,J),J}return{value:_,source:J,stack:B1(J)}}function r4(_,J){V3(),N7[f7++]=A_,N7[f7++]=MQ,MQ=_,A_=J}function vH(_,J,$){V3(),N5[f5++]=J3,N5[f5++]=$3,N5[f5++]=t6,t6=_;var q=J3;_=$3;var G=32-h2(q)-1;q&=~(1<<G),$+=1;var K=32-h2(J)+G;if(30<K){var z=G-G%5;K=(q&(1<<z)-1).toString(32),q>>=z,G-=z,J3=1<<32-h2(J)+G|$<<G|q,$3=K+_}else J3=1<<K|$<<G|q,$3=_}function NU(_){V3(),_.return!==null&&(r4(_,1),vH(_,1,0))}function fU(_){for(;_===MQ;)MQ=N7[--f7],N7[f7]=null,A_=N7[--f7],N7[f7]=null;for(;_===t6;)t6=N5[--f5],N5[f5]=null,$3=N5[--f5],N5[f5]=null,J3=N5[--f5],N5[f5]=null}function DH(){return V3(),t6!==null?{id:J3,overflow:$3}:null}function bH(_,J){V3(),N5[f5++]=J3,N5[f5++]=$3,N5[f5++]=t6,J3=J.id,$3=J.overflow,t6=_}function V3(){q0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function h6(_,J){if(_.return===null){if(B5===null)B5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(B5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");B5.distanceFromLeaf>J&&(B5.distanceFromLeaf=J)}return B5}var $=h6(_.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 uH(){q0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function K$(_,J){S4||(_=h6(_,0),_.serverProps=null,J!==null&&(J=BB(J),_.serverTail.push(J)))}function k3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=B5;throw q!==null&&(B5=null,$=I9(q)),V9(U5(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:
73
+ Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+($+"."+L)),L=null}return J=O(z,$,J,G),J.elementType=_,J.type=L,J.lanes=K,J._debugOwner=q,J}function Y$(_,J,$){return J=CU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function x6(_,J,$,q){return _=O(7,_,q,J),_.lanes=$,_}function fU(_,J,$){return _=O(6,_,null,J),_.lanes=$,_}function EH(_){var J=O(18,null,null,p1);return J.stateNode=_,J}function SU(_,J,$){return J=O(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function G5(_,J){if(typeof _==="object"&&_!==null){var $=aZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:A1(J)},aZ.set(_,J),J}return{value:_,source:J,stack:A1(J)}}function r4(_,J){y3(),f7[S7++]=O_,f7[S7++]=wQ,wQ=_,O_=J}function hH(_,J,$){y3(),C5[f5++]=$3,C5[f5++]=Q3,C5[f5++]=n6,n6=_;var q=$3;_=Q3;var G=32-x2(q)-1;q&=~(1<<G),$+=1;var K=32-x2(J)+G;if(30<K){var z=G-G%5;K=(q&(1<<z)-1).toString(32),q>>=z,G-=z,$3=1<<32-x2(J)+G|$<<G|q,Q3=K+_}else $3=1<<K|$<<G|q,Q3=_}function jU(_){y3(),_.return!==null&&(r4(_,1),hH(_,1,0))}function vU(_){for(;_===wQ;)wQ=f7[--S7],f7[S7]=null,O_=f7[--S7],f7[S7]=null;for(;_===n6;)n6=C5[--f5],C5[f5]=null,Q3=C5[--f5],C5[f5]=null,$3=C5[--f5],C5[f5]=null}function xH(){return y3(),n6!==null?{id:$3,overflow:Q3}:null}function mH(_,J){y3(),C5[f5++]=$3,C5[f5++]=Q3,C5[f5++]=n6,$3=J.id,Q3=J.overflow,n6=_}function y3(){G0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function m6(_,J){if(_.return===null){if(B5===null)B5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(B5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");B5.distanceFromLeaf>J&&(B5.distanceFromLeaf=J)}return B5}var $=m6(_.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 gH(){G0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function z$(_,J){j4||(_=m6(_,0),_.serverProps=null,J!==null&&(J=TW(J),_.serverTail.push(J)))}function k3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=B5;throw q!==null&&(B5=null,$=C9(q)),u9(G5(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:
74
74
 
75
75
  - A server/client branch \`if (typeof window !== 'undefined')\`.
76
76
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -80,7 +80,7 @@ Check the render method of \``+z+"`."),z=29,$=Error("Element type is invalid: ex
80
80
 
81
81
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
82
 
83
- https://react.dev/link/hydration-mismatch`+$),_)),dZ}function EH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[M2]=_,J[x2]=q,rG($,q),$){case"dialog":G0("cancel",J),G0("close",J);break;case"iframe":case"object":case"embed":G0("load",J);break;case"video":case"audio":for($=0;$<d_.length;$++)G0(d_[$],J);break;case"source":G0("error",J);break;case"img":case"image":case"link":G0("error",J),G0("load",J);break;case"details":G0("toggle",J);break;case"input":q4("input",q),G0("invalid",J),mJ(J,q),A9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":gJ(J,q);break;case"select":q4("select",q),G0("invalid",J),cJ(J,q);break;case"textarea":q4("textarea",q),G0("invalid",J),lJ(J,q),M9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||_B(J.textContent,$)?(q.popover!=null&&(G0("beforetoggle",J),G0("toggle",J)),q.onScroll!=null&&G0("scroll",J),q.onScrollEnd!=null&&G0("scrollend",J),q.onClick!=null&&(J.onclick=l4),J=!0):J=!1,J||k3(_,!0)}function hH(_){for(T2=_.return;T2;)switch(T2.tag){case 5:case 31:case 13:C5=!1;return;case 27:case 3:C5=!0;return;default:T2=T2.return}}function t8(_){if(_!==T2)return!1;if(!q0)return hH(_),q0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||oG(_.type,_.memoizedProps);$=!$}if($&&C0){for($=C0;$;){var q=h6(_,0),G=BB($);q.serverTail.push(G),$=G.type==="Suspense"?JZ($):X5($.nextSibling)}k3(_)}if(hH(_),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.");C0=JZ(_)}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.");C0=JZ(_)}else J===27?(J=C0,p3(_.type)?(_=DK,DK=null,C0=_):C0=J):C0=T2?X5(_.stateNode.nextSibling):null;return!0}function x6(){C0=T2=null,S4=q0=!1}function CU(){var _=o3;return _!==null&&(d2===null?d2=_:d2.push.apply(d2,_),o3=null),_}function V9(_){o3===null?o3=[_]:o3.push(_)}function SU(){var _=B5;if(_!==null){B5=null;for(var J=I9(_);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:
83
+ https://react.dev/link/hydration-mismatch`+$),_)),sZ}function pH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[O2]=_,J[m2]=q,tG($,q),$){case"dialog":Z0("cancel",J),Z0("close",J);break;case"iframe":case"object":case"embed":Z0("load",J);break;case"video":case"audio":for($=0;$<s_.length;$++)Z0(s_[$],J);break;case"source":Z0("error",J);break;case"img":case"image":case"link":Z0("error",J),Z0("load",J);break;case"details":Z0("toggle",J);break;case"input":U4("input",q),Z0("invalid",J),dJ(J,q),O9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":iJ(J,q);break;case"select":U4("select",q),Z0("invalid",J),aJ(J,q);break;case"textarea":U4("textarea",q),Z0("invalid",J),sJ(J,q),I9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||UW(J.textContent,$)?(q.popover!=null&&(Z0("beforetoggle",J),Z0("toggle",J)),q.onScroll!=null&&Z0("scroll",J),q.onScrollEnd!=null&&Z0("scrollend",J),q.onClick!=null&&(J.onclick=d4),J=!0):J=!1,J||k3(_,!0)}function cH(_){for(I2=_.return;I2;)switch(I2.tag){case 5:case 31:case 13:S5=!1;return;case 27:case 3:S5=!0;return;default:I2=I2.return}}function n8(_){if(_!==I2)return!1;if(!G0)return cH(_),G0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||JZ(_.type,_.memoizedProps);$=!$}if($&&j0){for($=j0;$;){var q=m6(_,0),G=TW($);q.serverTail.push(G),$=G.type==="Suspense"?UZ($):H5($.nextSibling)}k3(_)}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.");j0=UZ(_)}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.");j0=UZ(_)}else J===27?(J=j0,c3(_.type)?(_=hF,hF=null,j0=_):j0=J):j0=I2?H5(_.stateNode.nextSibling):null;return!0}function g6(){j0=I2=null,j4=G0=!1}function VU(){var _=n3;return _!==null&&(i2===null?i2=_:i2.push.apply(i2,_),n3=null),_}function u9(_){n3===null?n3=[_]:n3.push(_)}function yU(){var _=B5;if(_!==null){B5=null;for(var J=C9(_);0<_.children.length;)_=_.children[0];M1(_.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:
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,54 +90,54 @@ https://react.dev/link/hydration-mismatch`+$),_)),dZ}function EH(_){var{stateNod
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
- %s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function F$(){C7=TQ=null,S7=!1}function v3(_,J,$){t(rZ,J._currentValue,_),J._currentValue=$,t(iZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==EW&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=EW}function i4(_,J){_._currentValue=rZ.current;var $=iZ.current;J1(iZ,J),_._currentRenderer=$,J1(rZ,J)}function jU(_,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 yU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var K=G.dependencies;if(K!==null){var z=G.child;K=K.firstContext;_:for(;K!==null;){var L=K;K=G;for(var I=0;I<J.length;I++)if(L.context===J[I]){K.lanes|=$,L=K.alternate,L!==null&&(L.lanes|=$),jU(K.return,$,_),q||(z=null);break _}K=L.next}}else if(G.tag===18){if(z=G.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=$,K=z.alternate,K!==null&&(K.lanes|=$),jU(z,$,_),z=null}else z=G.child;if(z!==null)z.return=G;else for(z=G;z!==null;){if(z===_){z=null;break}if(G=z.sibling,G!==null){G.return=z.return,z=G;break}z=z.return}G=z}}function o8(_,J,$,q){_=null;for(var G=J,K=!1;G!==null;){if(!K){if((G.flags&524288)!==0)K=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var z=G.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var L=G.type;g2(G.pendingProps.value,z.value)||(_!==null?_.push(L):_=[L])}}else if(G===qQ.current){if(z=G.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(t_):_=[t_])}G=G.return}_!==null&&yU(J,_,$,q),J.flags|=262144}function X$(_){for(_=_.firstContext;_!==null;){if(!g2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function m6(_){TQ=_,C7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function j0(_){return S7&&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()."),xH(TQ,_)}function H$(_,J){return TQ===null&&m6(_),xH(_,J)}function xH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},C7===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().");C7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else C7=C7.next=J;return $}function VU(){return{controller:new MP,data:new Map,refCount:0}}function g6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function k9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&TP(RP,function(){_.controller.abort()})}function K4(_,J,$){if((_&127)!==0)0>j4&&(j4=i0(),T_=RQ(J),aZ=J,$!=null&&(sZ=m($)),(X0&($2|A5))!==Y2&&(E0=!0,_6=M_),_=e9(),J=n9(),_!==j7||J!==R_?j7=-1.1:J!==null&&(_6=M_),n6=_,R_=J);else if((_&4194048)!==0&&0>S5&&(S5=i0(),O_=RQ(J),hW=J,$!=null&&(xW=m($)),0>U3)){if(_=e9(),J=n9(),_!==$6||J!==e6)$6=-1.1;J6=_,e6=J}}function xO(_){if(0>j4){j4=i0(),T_=_._debugTask!=null?_._debugTask:null,(X0&($2|A5))!==Y2&&(_6=M_);var J=e9(),$=n9();J!==j7||$!==R_?j7=-1.1:$!==null&&(_6=M_),n6=J,R_=$}if(0>S5&&(S5=i0(),O_=_._debugTask!=null?_._debugTask:null,0>U3)){if(_=e9(),J=n9(),_!==$6||J!==e6)$6=-1.1;J6=_,e6=J}}function a4(){var _=o6;return o6=0,_}function Y$(_){var J=o6;return o6=_,J}function v9(_){var J=o6;return o6+=_,J}function z$(){x1=u1=-1.1}function G5(){var _=u1;return u1=-1.1,_}function Z5(_){0<=_&&(u1=_)}function F4(){var _=v0;return v0=-0,_}function X4(_){0<=_&&(v0=_)}function H4(){var _=y0;return y0=null,_}function Y4(){var _=E0;return E0=!1,_}function kU(_){p2=i0(),0>_.actualStartTime&&(_.actualStartTime=p2)}function vU(_){if(0<=p2){var J=i0()-p2;_.actualDuration+=J,_.selfBaseDuration=J,p2=-1}}function mH(_){if(0<=p2){var J=i0()-p2;_.actualDuration+=J,p2=-1}}function z4(){if(0<=p2){var _=i0(),J=_-p2;p2=-1,o6+=J,v0+=J,x1=_}}function gH(_){y0===null&&(y0=[]),y0.push(_),q3===null&&(q3=[]),q3.push(_)}function B4(){p2=i0(),0>u1&&(u1=p2)}function D9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function mO(_,J){if(w_===null){var $=w_=[];oZ=0,_8=pG(),y7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return oZ++,J.then(pH,pH),J}function pH(){if(--oZ===0&&(-1<S5||(U3=-1.1),w_!==null)){y7!==null&&(y7.status="fulfilled");var _=w_;w_=null,_8=0,y7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function gO(_,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 DU(){var _=J8.current;return _!==null?_:I0.pooledCache}function B$(_,J){J===null?t(J8,J8.current,_):t(J8,J.pool,_)}function cH(){var _=DU();return _===null?null:{parent:r0._currentValue,pool:_}}function lH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function dH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function rH(_,J,$){K1.actQueue!==null&&(K1.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(l4,l4),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,aH(_),_;default:if(typeof J.status==="string")J.then(l4,l4);else{if(_=I0,_!==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(K){if(J.status==="pending"){var z=J;z.status="fulfilled",z.value=K}},function(K){if(J.status==="pending"){var z=J;z.status="rejected",z.reason=K}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,aH(_),_}throw Q8=J,y_=!0,V7}}function D3(_){try{return PP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw Q8=J,y_=!0,V7;throw J}}function iH(){if(Q8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=Q8;return Q8=null,y_=!1,_}function aH(_){if(_===V7||_===SQ)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 W2(_){var J=t1;return _!=null&&(t1=J===null?_:J.concat(_)),J}function bU(){var _=t1;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function W$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var K=q[G];if(K!=="children"&&K!=="key"){J===null&&(J=Z$(_,$.mode,0),J._debugInfo=t1,J.return=$),W1(J,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},K);break}}}function L$(_){var J=V_;return V_+=1,k7===null&&(k7=lH()),rH(k7,_,J)}function b9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function sH(_,J){if(J.$$typeof===Qw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function W$(){j7=PQ=null,v7=!1}function D3(_,J,$){J1(tZ,J._currentValue,_),J._currentValue=$,J1(oZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==pB&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=pB}function a4(_,J){_._currentValue=tZ.current;var $=oZ.current;Q1(oZ,J),_._currentRenderer=$,Q1(tZ,J)}function kU(_,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 DU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var K=G.dependencies;if(K!==null){var z=G.child;K=K.firstContext;_:for(;K!==null;){var L=K;K=G;for(var I=0;I<J.length;I++)if(L.context===J[I]){K.lanes|=$,L=K.alternate,L!==null&&(L.lanes|=$),kU(K.return,$,_),q||(z=null);break _}K=L.next}}else if(G.tag===18){if(z=G.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=$,K=z.alternate,K!==null&&(K.lanes|=$),kU(z,$,_),z=null}else z=G.child;if(z!==null)z.return=G;else for(z=G;z!==null;){if(z===_){z=null;break}if(G=z.sibling,G!==null){G.return=z.return,z=G;break}z=z.return}G=z}}function e8(_,J,$,q){_=null;for(var G=J,K=!1;G!==null;){if(!K){if((G.flags&524288)!==0)K=!0;else if((G.flags&262144)!==0)break}if(G.tag===10){var z=G.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var L=G.type;p2(G.pendingProps.value,z.value)||(_!==null?_.push(L):_=[L])}}else if(G===KQ.current){if(z=G.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==G.memoizedState.memoizedState&&(_!==null?_.push(_J):_=[_J])}G=G.return}_!==null&&DU(J,_,$,q),J.flags|=262144}function B$(_){for(_=_.firstContext;_!==null;){if(!p2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function p6(_){PQ=_,j7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function V0(_){return v7&&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()."),lH(PQ,_)}function L$(_,J){return PQ===null&&p6(_),lH(_,J)}function lH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},j7===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().");j7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else j7=j7.next=J;return $}function uU(){return{controller:new IP,data:new Map,refCount:0}}function c6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function b9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&wP(PP,function(){_.controller.abort()})}function K4(_,J,$){if((_&127)!==0)0>v4&&(v4=t0(),w_=NQ(J),nZ=J,$!=null&&(eZ=m($)),(H0&(Z2|M5))!==L2&&(x0=!0,J6=I_),_=Q_(),J=$_(),_!==V7||J!==P_?V7=-1.1:J!==null&&(J6=I_),_8=_,P_=J);else if((_&4194048)!==0&&0>j5&&(j5=t0(),N_=NQ(J),cB=J,$!=null&&(lB=m($)),0>G3)){if(_=Q_(),J=$_(),_!==Q6||J!==J8)Q6=-1.1;$6=_,J8=J}}function cO(_){if(0>v4){v4=t0(),w_=_._debugTask!=null?_._debugTask:null,(H0&(Z2|M5))!==L2&&(J6=I_);var J=Q_(),$=$_();J!==V7||$!==P_?V7=-1.1:$!==null&&(J6=I_),_8=J,P_=$}if(0>j5&&(j5=t0(),N_=_._debugTask!=null?_._debugTask:null,0>G3)){if(_=Q_(),J=$_(),_!==Q6||J!==J8)Q6=-1.1;$6=_,J8=J}}function s4(){var _=e6;return e6=0,_}function A$(_){var J=e6;return e6=_,J}function E9(_){var J=e6;return e6+=_,J}function M$(){g1=x1=-1.1}function Z5(){var _=x1;return x1=-1.1,_}function F5(_){0<=_&&(x1=_)}function X4(){var _=u0;return u0=-0,_}function H4(_){0<=_&&(u0=_)}function Y4(){var _=y0;return y0=null,_}function z4(){var _=x0;return x0=!1,_}function bU(_){c2=t0(),0>_.actualStartTime&&(_.actualStartTime=c2)}function EU(_){if(0<=c2){var J=t0()-c2;_.actualDuration+=J,_.selfBaseDuration=J,c2=-1}}function dH(_){if(0<=c2){var J=t0()-c2;_.actualDuration+=J,c2=-1}}function W4(){if(0<=c2){var _=t0(),J=_-c2;c2=-1,e6+=J,u0+=J,g1=_}}function iH(_){y0===null&&(y0=[]),y0.push(_),U3===null&&(U3=[]),U3.push(_)}function B4(){c2=t0(),0>x1&&(x1=c2)}function h9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function lO(_,J){if(f_===null){var $=f_=[];JF=0,$8=iG(),y7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return JF++,J.then(rH,rH),J}function rH(){if(--JF===0&&(-1<j5||(G3=-1.1),f_!==null)){y7!==null&&(y7.status="fulfilled");var _=f_;f_=null,$8=0,y7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function dO(_,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 hU(){var _=Q8.current;return _!==null?_:P0.pooledCache}function T$(_,J){J===null?J1(Q8,Q8.current,_):J1(Q8,J.pool,_)}function aH(){var _=hU();return _===null?null:{parent:s0._currentValue,pool:_}}function sH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function tH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function oH(_,J,$){H1.actQueue!==null&&(H1.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(d4,d4),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,eH(_),_;default:if(typeof J.status==="string")J.then(d4,d4);else{if(_=P0,_!==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(K){if(J.status==="pending"){var z=J;z.status="fulfilled",z.value=K}},function(K){if(J.status==="pending"){var z=J;z.status="rejected",z.reason=K}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,eH(_),_}throw U8=J,D_=!0,k7}}function u3(_){try{return SP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw U8=J,D_=!0,k7;throw J}}function nH(){if(U8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=U8;return U8=null,D_=!1,_}function eH(_){if(_===k7||_===kQ)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 M2(_){var J=o1;return _!=null&&(o1=J===null?_:J.concat(_)),J}function xU(){var _=o1;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function R$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var K=q[G];if(K!=="children"&&K!=="key"){J===null&&(J=Y$(_,$.mode,0),J._debugInfo=o1,J.return=$),M1(J,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},K);break}}}function O$(_){var J=u_;return u_+=1,D7===null&&(D7=sH()),oH(D7,_,J)}function x9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function _Y(_,J){if(J.$$typeof===Zw)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
94
  - Multiple copies of the "react" package is used.
95
95
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
- - 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 A$(_,J){var $=bU();$!==null?$.run(sH.bind(null,_,J)):sH(_,J)}function tH(_,J){var $=m(_)||"Component";UL[$]||(UL[$]=!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.
96
+ - 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 I$(_,J){var $=xU();$!==null?$.run(_Y.bind(null,_,J)):_Y(_,J)}function JY(_,J){var $=m(_)||"Component";XL[$]||(XL[$]=!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.
97
97
  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.
98
- <%s>{%s}</%s>`,J,J,$,J,$))}function M$(_,J){var $=bU();$!==null?$.run(tH.bind(null,_,J)):tH(_,J)}function oH(_,J){var $=m(_)||"Component";GL[$]||(GL[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,J,J,$,J,$))}function w$(_,J){var $=xU();$!==null?$.run(JY.bind(null,_,J)):JY(_,J)}function $Y(_,J){var $=m(_)||"Component";HL[$]||(HL[$]=!0,J=String(J),_.tag===3?console.error(`Symbols are not valid as a React child.
99
99
  root.render(%s)`,J):console.error(`Symbols are not valid as a React child.
100
- <%s>%s</%s>`,$,J,$))}function T$(_,J){var $=bU();$!==null?$.run(oH.bind(null,_,J)):oH(_,J)}function nH(_){function J(l,i){if(_){var o=l.deletions;o===null?(l.deletions=[i],l.flags|=16):o.push(i)}}function $(l,i){if(!_)return null;for(;i!==null;)J(l,i),i=i.sibling;return null}function q(l){for(var i=new Map;l!==null;)l.key!==null?i.set(l.key,l):i.set(l.index,l),l=l.sibling;return i}function G(l,i){return l=d4(l,i),l.index=0,l.sibling=null,l}function K(l,i,o){if(l.index=o,!_)return l.flags|=1048576,i;if(o=l.alternate,o!==null)return o=o.index,o<i?(l.flags|=67108866,i):o;return l.flags|=67108866,i}function z(l){return _&&l.alternate===null&&(l.flags|=67108866),l}function L(l,i,o,z1){if(i===null||i.tag!==6)return i=wU(o,l.mode,z1),i.return=l,i._debugOwner=l,i._debugTask=l._debugTask,i._debugInfo=t1,i;return i=G(i,o),i.return=l,i._debugInfo=t1,i}function I(l,i,o,z1){var P1=o.type;if(P1===Y7)return i=e(l,i,o.props.children,z1,o.key),W$(o,i,l),i;if(i!==null&&(i.elementType===P1||SH(i,o)||typeof P1==="object"&&P1!==null&&P1.$$typeof===H5&&D3(P1)===i.type))return i=G(i,o.props),b9(i,o),i.return=l,i._debugOwner=o._owner,i._debugInfo=t1,i;return i=Z$(o,l.mode,z1),b9(i,o),i.return=l,i._debugInfo=t1,i}function C(l,i,o,z1){if(i===null||i.tag!==4||i.stateNode.containerInfo!==o.containerInfo||i.stateNode.implementation!==o.implementation)return i=PU(o,l.mode,z1),i.return=l,i._debugInfo=t1,i;return i=G(i,o.children||[]),i.return=l,i._debugInfo=t1,i}function e(l,i,o,z1,P1){if(i===null||i.tag!==7)return i=E6(o,l.mode,z1,P1),i.return=l,i._debugOwner=l,i._debugTask=l._debugTask,i._debugInfo=t1,i;return i=G(i,o),i.return=l,i._debugInfo=t1,i}function _1(l,i,o){if(typeof i==="string"&&i!==""||typeof i==="number"||typeof i==="bigint")return i=wU(""+i,l.mode,o),i.return=l,i._debugOwner=l,i._debugTask=l._debugTask,i._debugInfo=t1,i;if(typeof i==="object"&&i!==null){switch(i.$$typeof){case O4:return o=Z$(i,l.mode,o),b9(o,i),o.return=l,l=W2(i._debugInfo),o._debugInfo=t1,t1=l,o;case H7:return i=PU(i,l.mode,o),i.return=l,i._debugInfo=t1,i;case H5:var z1=W2(i._debugInfo);return i=D3(i),l=_1(l,i,o),t1=z1,l}if(_2(i)||u(i))return o=E6(i,l.mode,o,null),o.return=l,o._debugOwner=l,o._debugTask=l._debugTask,l=W2(i._debugInfo),o._debugInfo=t1,t1=l,o;if(typeof i.then==="function")return z1=W2(i._debugInfo),l=_1(l,L$(i),o),t1=z1,l;if(i.$$typeof===I4)return _1(l,H$(l,i),o);A$(l,i)}return typeof i==="function"&&M$(l,i),typeof i==="symbol"&&T$(l,i),null}function d(l,i,o,z1){var P1=i!==null?i.key:null;if(typeof o==="string"&&o!==""||typeof o==="number"||typeof o==="bigint")return P1!==null?null:L(l,i,""+o,z1);if(typeof o==="object"&&o!==null){switch(o.$$typeof){case O4:return o.key===P1?(P1=W2(o._debugInfo),l=I(l,i,o,z1),t1=P1,l):null;case H7:return o.key===P1?C(l,i,o,z1):null;case H5:return P1=W2(o._debugInfo),o=D3(o),l=d(l,i,o,z1),t1=P1,l}if(_2(o)||u(o)){if(P1!==null)return null;return P1=W2(o._debugInfo),l=e(l,i,o,z1,null),t1=P1,l}if(typeof o.then==="function")return P1=W2(o._debugInfo),l=d(l,i,L$(o),z1),t1=P1,l;if(o.$$typeof===I4)return d(l,i,H$(l,o),z1);A$(l,o)}return typeof o==="function"&&M$(l,o),typeof o==="symbol"&&T$(l,o),null}function G1(l,i,o,z1,P1){if(typeof z1==="string"&&z1!==""||typeof z1==="number"||typeof z1==="bigint")return l=l.get(o)||null,L(i,l,""+z1,P1);if(typeof z1==="object"&&z1!==null){switch(z1.$$typeof){case O4:return o=l.get(z1.key===null?o:z1.key)||null,l=W2(z1._debugInfo),i=I(i,o,z1,P1),t1=l,i;case H7:return l=l.get(z1.key===null?o:z1.key)||null,C(i,l,z1,P1);case H5:var r1=W2(z1._debugInfo);return z1=D3(z1),i=G1(l,i,o,z1,P1),t1=r1,i}if(_2(z1)||u(z1))return o=l.get(o)||null,l=W2(z1._debugInfo),i=e(i,o,z1,P1,null),t1=l,i;if(typeof z1.then==="function")return r1=W2(z1._debugInfo),i=G1(l,i,o,L$(z1),P1),t1=r1,i;if(z1.$$typeof===I4)return G1(l,i,o,H$(i,z1),P1);A$(i,z1)}return typeof z1==="function"&&M$(i,z1),typeof z1==="symbol"&&T$(i,z1),null}function I1(l,i,o,z1){if(typeof o!=="object"||o===null)return z1;switch(o.$$typeof){case O4:case H7:T(l,i,o);var P1=o.key;if(typeof P1!=="string")break;if(z1===null){z1=new Set,z1.add(P1);break}if(!z1.has(P1)){z1.add(P1);break}W1(i,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.",P1)});break;case H5:o=D3(o),I1(l,i,o,z1)}return z1}function f1(l,i,o,z1){for(var P1=null,r1=null,b1=null,y1=i,a1=i=0,S0=null;y1!==null&&a1<o.length;a1++){y1.index>a1?(S0=y1,y1=null):S0=y1.sibling;var l0=d(l,y1,o[a1],z1);if(l0===null){y1===null&&(y1=S0);break}P1=I1(l,l0,o[a1],P1),_&&y1&&l0.alternate===null&&J(l,y1),i=K(l0,i,a1),b1===null?r1=l0:b1.sibling=l0,b1=l0,y1=S0}if(a1===o.length)return $(l,y1),q0&&r4(l,a1),r1;if(y1===null){for(;a1<o.length;a1++)y1=_1(l,o[a1],z1),y1!==null&&(P1=I1(l,y1,o[a1],P1),i=K(y1,i,a1),b1===null?r1=y1:b1.sibling=y1,b1=y1);return q0&&r4(l,a1),r1}for(y1=q(y1);a1<o.length;a1++)S0=G1(y1,l,a1,o[a1],z1),S0!==null&&(P1=I1(l,S0,o[a1],P1),_&&S0.alternate!==null&&y1.delete(S0.key===null?a1:S0.key),i=K(S0,i,a1),b1===null?r1=S0:b1.sibling=S0,b1=S0);return _&&y1.forEach(function(B3){return J(l,B3)}),q0&&r4(l,a1),r1}function N0(l,i,o,z1){if(o==null)throw Error("An iterable object provided no iterator.");for(var P1=null,r1=null,b1=i,y1=i=0,a1=null,S0=null,l0=o.next();b1!==null&&!l0.done;y1++,l0=o.next()){b1.index>y1?(a1=b1,b1=null):a1=b1.sibling;var B3=d(l,b1,l0.value,z1);if(B3===null){b1===null&&(b1=a1);break}S0=I1(l,B3,l0.value,S0),_&&b1&&B3.alternate===null&&J(l,b1),i=K(B3,i,y1),r1===null?P1=B3:r1.sibling=B3,r1=B3,b1=a1}if(l0.done)return $(l,b1),q0&&r4(l,y1),P1;if(b1===null){for(;!l0.done;y1++,l0=o.next())b1=_1(l,l0.value,z1),b1!==null&&(S0=I1(l,b1,l0.value,S0),i=K(b1,i,y1),r1===null?P1=b1:r1.sibling=b1,r1=b1);return q0&&r4(l,y1),P1}for(b1=q(b1);!l0.done;y1++,l0=o.next())a1=G1(b1,l,y1,l0.value,z1),a1!==null&&(S0=I1(l,a1,l0.value,S0),_&&a1.alternate!==null&&b1.delete(a1.key===null?y1:a1.key),i=K(a1,i,y1),r1===null?P1=a1:r1.sibling=a1,r1=a1);return _&&b1.forEach(function(aP){return J(l,aP)}),q0&&r4(l,y1),P1}function Z0(l,i,o,z1){if(typeof o==="object"&&o!==null&&o.type===Y7&&o.key===null&&(W$(o,null,l),o=o.props.children),typeof o==="object"&&o!==null){switch(o.$$typeof){case O4:var P1=W2(o._debugInfo);_:{for(var r1=o.key;i!==null;){if(i.key===r1){if(r1=o.type,r1===Y7){if(i.tag===7){$(l,i.sibling),z1=G(i,o.props.children),z1.return=l,z1._debugOwner=o._owner,z1._debugInfo=t1,W$(o,z1,l),l=z1;break _}}else if(i.elementType===r1||SH(i,o)||typeof r1==="object"&&r1!==null&&r1.$$typeof===H5&&D3(r1)===i.type){$(l,i.sibling),z1=G(i,o.props),b9(z1,o),z1.return=l,z1._debugOwner=o._owner,z1._debugInfo=t1,l=z1;break _}$(l,i);break}else J(l,i);i=i.sibling}o.type===Y7?(z1=E6(o.props.children,l.mode,z1,o.key),z1.return=l,z1._debugOwner=l,z1._debugTask=l._debugTask,z1._debugInfo=t1,W$(o,z1,l),l=z1):(z1=Z$(o,l.mode,z1),b9(z1,o),z1.return=l,z1._debugInfo=t1,l=z1)}return l=z(l),t1=P1,l;case H7:_:{P1=o;for(o=P1.key;i!==null;){if(i.key===o)if(i.tag===4&&i.stateNode.containerInfo===P1.containerInfo&&i.stateNode.implementation===P1.implementation){$(l,i.sibling),z1=G(i,P1.children||[]),z1.return=l,l=z1;break _}else{$(l,i);break}else J(l,i);i=i.sibling}z1=PU(P1,l.mode,z1),z1.return=l,l=z1}return z(l);case H5:return P1=W2(o._debugInfo),o=D3(o),l=Z0(l,i,o,z1),t1=P1,l}if(_2(o))return P1=W2(o._debugInfo),l=f1(l,i,o,z1),t1=P1,l;if(u(o)){if(P1=W2(o._debugInfo),r1=u(o),typeof r1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var b1=r1.call(o);if(b1===o){if(l.tag!==0||Object.prototype.toString.call(l.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(b1)!=="[object Generator]")QL||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."),QL=!0}else o.entries!==r1||JK||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),JK=!0);return l=N0(l,i,b1,z1),t1=P1,l}if(typeof o.then==="function")return P1=W2(o._debugInfo),l=Z0(l,i,L$(o),z1),t1=P1,l;if(o.$$typeof===I4)return Z0(l,i,H$(l,o),z1);A$(l,o)}if(typeof o==="string"&&o!==""||typeof o==="number"||typeof o==="bigint")return P1=""+o,i!==null&&i.tag===6?($(l,i.sibling),z1=G(i,P1),z1.return=l,l=z1):($(l,i),z1=wU(P1,l.mode,z1),z1.return=l,z1._debugOwner=l,z1._debugTask=l._debugTask,z1._debugInfo=t1,l=z1),z(l);return typeof o==="function"&&M$(l,o),typeof o==="symbol"&&T$(l,o),$(l,i)}return function(l,i,o,z1){var P1=t1;t1=null;try{V_=0;var r1=Z0(l,i,o,z1);return k7=null,r1}catch(S0){if(S0===V7||S0===SQ)throw S0;var b1=O(29,S0,null,l.mode);b1.lanes=z1,b1.return=l;var y1=b1._debugInfo=t1;if(b1._debugOwner=l._debugOwner,b1._debugTask=l._debugTask,y1!=null){for(var a1=y1.length-1;0<=a1;a1--)if(typeof y1[a1].stack==="string"){b1._debugOwner=y1[a1],b1._debugTask=y1[a1].debugTask;break}}return b1}finally{t1=P1}}}function eH(_,J){var $=_2(_);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 uU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function EU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function b3(_){return{lane:_,tag:KL,payload:null,callback:null,next:null}}function u3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,QK===q&&!HL){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.
100
+ <%s>%s</%s>`,$,J,$))}function P$(_,J){var $=xU();$!==null?$.run($Y.bind(null,_,J)):$Y(_,J)}function QY(_){function J(l,r){if(_){var o=l.deletions;o===null?(l.deletions=[r],l.flags|=16):o.push(r)}}function $(l,r){if(!_)return null;for(;r!==null;)J(l,r),r=r.sibling;return null}function q(l){for(var r=new Map;l!==null;)l.key!==null?r.set(l.key,l):r.set(l.index,l),l=l.sibling;return r}function G(l,r){return l=i4(l,r),l.index=0,l.sibling=null,l}function K(l,r,o){if(l.index=o,!_)return l.flags|=1048576,r;if(o=l.alternate,o!==null)return o=o.index,o<r?(l.flags|=67108866,r):o;return l.flags|=67108866,r}function z(l){return _&&l.alternate===null&&(l.flags|=67108866),l}function L(l,r,o,L1){if(r===null||r.tag!==6)return r=fU(o,l.mode,L1),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=o1,r;return r=G(r,o),r.return=l,r._debugInfo=o1,r}function I(l,r,o,L1){var j1=o.type;if(j1===W7)return r=n(l,r,o.props.children,L1,o.key),R$(o,r,l),r;if(r!==null&&(r.elementType===j1||kH(r,o)||typeof j1==="object"&&j1!==null&&j1.$$typeof===Y5&&u3(j1)===r.type))return r=G(r,o.props),x9(r,o),r.return=l,r._debugOwner=o._owner,r._debugInfo=o1,r;return r=Y$(o,l.mode,L1),x9(r,o),r.return=l,r._debugInfo=o1,r}function f(l,r,o,L1){if(r===null||r.tag!==4||r.stateNode.containerInfo!==o.containerInfo||r.stateNode.implementation!==o.implementation)return r=SU(o,l.mode,L1),r.return=l,r._debugInfo=o1,r;return r=G(r,o.children||[]),r.return=l,r._debugInfo=o1,r}function n(l,r,o,L1,j1){if(r===null||r.tag!==7)return r=x6(o,l.mode,L1,j1),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=o1,r;return r=G(r,o),r.return=l,r._debugInfo=o1,r}function _1(l,r,o){if(typeof r==="string"&&r!==""||typeof r==="number"||typeof r==="bigint")return r=fU(""+r,l.mode,o),r.return=l,r._debugOwner=l,r._debugTask=l._debugTask,r._debugInfo=o1,r;if(typeof r==="object"&&r!==null){switch(r.$$typeof){case I4:return o=Y$(r,l.mode,o),x9(o,r),o.return=l,l=M2(r._debugInfo),o._debugInfo=o1,o1=l,o;case z7:return r=SU(r,l.mode,o),r.return=l,r._debugInfo=o1,r;case Y5:var L1=M2(r._debugInfo);return r=u3(r),l=_1(l,r,o),o1=L1,l}if(U2(r)||k(r))return o=x6(r,l.mode,o,null),o.return=l,o._debugOwner=l,o._debugTask=l._debugTask,l=M2(r._debugInfo),o._debugInfo=o1,o1=l,o;if(typeof r.then==="function")return L1=M2(r._debugInfo),l=_1(l,O$(r),o),o1=L1,l;if(r.$$typeof===w4)return _1(l,L$(l,r),o);I$(l,r)}return typeof r==="function"&&w$(l,r),typeof r==="symbol"&&P$(l,r),null}function i(l,r,o,L1){var j1=r!==null?r.key:null;if(typeof o==="string"&&o!==""||typeof o==="number"||typeof o==="bigint")return j1!==null?null:L(l,r,""+o,L1);if(typeof o==="object"&&o!==null){switch(o.$$typeof){case I4:return o.key===j1?(j1=M2(o._debugInfo),l=I(l,r,o,L1),o1=j1,l):null;case z7:return o.key===j1?f(l,r,o,L1):null;case Y5:return j1=M2(o._debugInfo),o=u3(o),l=i(l,r,o,L1),o1=j1,l}if(U2(o)||k(o)){if(j1!==null)return null;return j1=M2(o._debugInfo),l=n(l,r,o,L1,null),o1=j1,l}if(typeof o.then==="function")return j1=M2(o._debugInfo),l=i(l,r,O$(o),L1),o1=j1,l;if(o.$$typeof===w4)return i(l,r,L$(l,o),L1);I$(l,o)}return typeof o==="function"&&w$(l,o),typeof o==="symbol"&&P$(l,o),null}function Z1(l,r,o,L1,j1){if(typeof L1==="string"&&L1!==""||typeof L1==="number"||typeof L1==="bigint")return l=l.get(o)||null,L(r,l,""+L1,j1);if(typeof L1==="object"&&L1!==null){switch(L1.$$typeof){case I4:return o=l.get(L1.key===null?o:L1.key)||null,l=M2(L1._debugInfo),r=I(r,o,L1,j1),o1=l,r;case z7:return l=l.get(L1.key===null?o:L1.key)||null,f(r,l,L1,j1);case Y5:var r1=M2(L1._debugInfo);return L1=u3(L1),r=Z1(l,r,o,L1,j1),o1=r1,r}if(U2(L1)||k(L1))return o=l.get(o)||null,l=M2(L1._debugInfo),r=n(r,o,L1,j1,null),o1=l,r;if(typeof L1.then==="function")return r1=M2(L1._debugInfo),r=Z1(l,r,o,O$(L1),j1),o1=r1,r;if(L1.$$typeof===w4)return Z1(l,r,o,L$(r,L1),j1);I$(r,L1)}return typeof L1==="function"&&w$(r,L1),typeof L1==="symbol"&&P$(r,L1),null}function f1(l,r,o,L1){if(typeof o!=="object"||o===null)return L1;switch(o.$$typeof){case I4:case z7:M(l,r,o);var j1=o.key;if(typeof j1!=="string")break;if(L1===null){L1=new Set,L1.add(j1);break}if(!L1.has(j1)){L1.add(j1);break}M1(r,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.",j1)});break;case Y5:o=u3(o),f1(l,r,o,L1)}return L1}function V1(l,r,o,L1){for(var j1=null,r1=null,h1=null,k1=r,s1=r=0,v0=null;k1!==null&&s1<o.length;s1++){k1.index>s1?(v0=k1,k1=null):v0=k1.sibling;var i0=i(l,k1,o[s1],L1);if(i0===null){k1===null&&(k1=v0);break}j1=f1(l,i0,o[s1],j1),_&&k1&&i0.alternate===null&&J(l,k1),r=K(i0,r,s1),h1===null?r1=i0:h1.sibling=i0,h1=i0,k1=v0}if(s1===o.length)return $(l,k1),G0&&r4(l,s1),r1;if(k1===null){for(;s1<o.length;s1++)k1=_1(l,o[s1],L1),k1!==null&&(j1=f1(l,k1,o[s1],j1),r=K(k1,r,s1),h1===null?r1=k1:h1.sibling=k1,h1=k1);return G0&&r4(l,s1),r1}for(k1=q(k1);s1<o.length;s1++)v0=Z1(k1,l,s1,o[s1],L1),v0!==null&&(j1=f1(l,v0,o[s1],j1),_&&v0.alternate!==null&&k1.delete(v0.key===null?s1:v0.key),r=K(v0,r,s1),h1===null?r1=v0:h1.sibling=v0,h1=v0);return _&&k1.forEach(function(B3){return J(l,B3)}),G0&&r4(l,s1),r1}function C0(l,r,o,L1){if(o==null)throw Error("An iterable object provided no iterator.");for(var j1=null,r1=null,h1=r,k1=r=0,s1=null,v0=null,i0=o.next();h1!==null&&!i0.done;k1++,i0=o.next()){h1.index>k1?(s1=h1,h1=null):s1=h1.sibling;var B3=i(l,h1,i0.value,L1);if(B3===null){h1===null&&(h1=s1);break}v0=f1(l,B3,i0.value,v0),_&&h1&&B3.alternate===null&&J(l,h1),r=K(B3,r,k1),r1===null?j1=B3:r1.sibling=B3,r1=B3,h1=s1}if(i0.done)return $(l,h1),G0&&r4(l,k1),j1;if(h1===null){for(;!i0.done;k1++,i0=o.next())h1=_1(l,i0.value,L1),h1!==null&&(v0=f1(l,h1,i0.value,v0),r=K(h1,r,k1),r1===null?j1=h1:r1.sibling=h1,r1=h1);return G0&&r4(l,k1),j1}for(h1=q(h1);!i0.done;k1++,i0=o.next())s1=Z1(h1,l,k1,i0.value,L1),s1!==null&&(v0=f1(l,s1,i0.value,v0),_&&s1.alternate!==null&&h1.delete(s1.key===null?k1:s1.key),r=K(s1,r,k1),r1===null?j1=s1:r1.sibling=s1,r1=s1);return _&&h1.forEach(function(nP){return J(l,nP)}),G0&&r4(l,k1),j1}function F0(l,r,o,L1){if(typeof o==="object"&&o!==null&&o.type===W7&&o.key===null&&(R$(o,null,l),o=o.props.children),typeof o==="object"&&o!==null){switch(o.$$typeof){case I4:var j1=M2(o._debugInfo);_:{for(var r1=o.key;r!==null;){if(r.key===r1){if(r1=o.type,r1===W7){if(r.tag===7){$(l,r.sibling),L1=G(r,o.props.children),L1.return=l,L1._debugOwner=o._owner,L1._debugInfo=o1,R$(o,L1,l),l=L1;break _}}else if(r.elementType===r1||kH(r,o)||typeof r1==="object"&&r1!==null&&r1.$$typeof===Y5&&u3(r1)===r.type){$(l,r.sibling),L1=G(r,o.props),x9(L1,o),L1.return=l,L1._debugOwner=o._owner,L1._debugInfo=o1,l=L1;break _}$(l,r);break}else J(l,r);r=r.sibling}o.type===W7?(L1=x6(o.props.children,l.mode,L1,o.key),L1.return=l,L1._debugOwner=l,L1._debugTask=l._debugTask,L1._debugInfo=o1,R$(o,L1,l),l=L1):(L1=Y$(o,l.mode,L1),x9(L1,o),L1.return=l,L1._debugInfo=o1,l=L1)}return l=z(l),o1=j1,l;case z7:_:{j1=o;for(o=j1.key;r!==null;){if(r.key===o)if(r.tag===4&&r.stateNode.containerInfo===j1.containerInfo&&r.stateNode.implementation===j1.implementation){$(l,r.sibling),L1=G(r,j1.children||[]),L1.return=l,l=L1;break _}else{$(l,r);break}else J(l,r);r=r.sibling}L1=SU(j1,l.mode,L1),L1.return=l,l=L1}return z(l);case Y5:return j1=M2(o._debugInfo),o=u3(o),l=F0(l,r,o,L1),o1=j1,l}if(U2(o))return j1=M2(o._debugInfo),l=V1(l,r,o,L1),o1=j1,l;if(k(o)){if(j1=M2(o._debugInfo),r1=k(o),typeof r1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var h1=r1.call(o);if(h1===o){if(l.tag!==0||Object.prototype.toString.call(l.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(h1)!=="[object Generator]")FL||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."),FL=!0}else o.entries!==r1||UF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),UF=!0);return l=C0(l,r,h1,L1),o1=j1,l}if(typeof o.then==="function")return j1=M2(o._debugInfo),l=F0(l,r,O$(o),L1),o1=j1,l;if(o.$$typeof===w4)return F0(l,r,L$(l,o),L1);I$(l,o)}if(typeof o==="string"&&o!==""||typeof o==="number"||typeof o==="bigint")return j1=""+o,r!==null&&r.tag===6?($(l,r.sibling),L1=G(r,j1),L1.return=l,l=L1):($(l,r),L1=fU(j1,l.mode,L1),L1.return=l,L1._debugOwner=l,L1._debugTask=l._debugTask,L1._debugInfo=o1,l=L1),z(l);return typeof o==="function"&&w$(l,o),typeof o==="symbol"&&P$(l,o),$(l,r)}return function(l,r,o,L1){var j1=o1;o1=null;try{u_=0;var r1=F0(l,r,o,L1);return D7=null,r1}catch(v0){if(v0===k7||v0===kQ)throw v0;var h1=O(29,v0,null,l.mode);h1.lanes=L1,h1.return=l;var k1=h1._debugInfo=o1;if(h1._debugOwner=l._debugOwner,h1._debugTask=l._debugTask,k1!=null){for(var s1=k1.length-1;0<=s1;s1--)if(typeof k1[s1].stack==="string"){h1._debugOwner=k1[s1],h1._debugTask=k1[s1].debugTask;break}}return h1}finally{o1=j1}}}function qY(_,J){var $=U2(_);return _=!$&&typeof k(_)==="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 mU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function b3(_){return{lane:_,tag:zL,payload:null,callback:null,next:null}}function E3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,ZF===q&&!LL){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.
101
101
 
102
- Please update the following component: %s`,G),HL=!0}if((X0&$2)!==Y2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=G$(_),CH(_,null,$),J;return U$(_,q,J,$),G$(_)}function u9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,m4(_,$)}}function R$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,K=null;if($=$.firstBaseUpdate,$!==null){do{var z={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};K===null?G=K=z:K=K.next=z,$=$.next}while($!==null);K===null?G=K=J:K=K.next=J}else G=K=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:K,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function E9(){if(qK){var _=y7;if(_!==null)throw _}}function h9(_,J,$,q){qK=!1;var G=_.updateQueue;Q6=!1,QK=G.shared;var{firstBaseUpdate:K,lastBaseUpdate:z}=G,L=G.shared.pending;if(L!==null){G.shared.pending=null;var I=L,C=I.next;I.next=null,z===null?K=C:z.next=C,z=I;var e=_.alternate;e!==null&&(e=e.updateQueue,L=e.lastBaseUpdate,L!==z&&(L===null?e.firstBaseUpdate=C:L.next=C,e.lastBaseUpdate=I))}if(K!==null){var _1=G.baseState;z=0,e=C=I=null,L=K;do{var d=L.lane&-536870913,G1=d!==L.lane;if(G1?(o1&d)===d:(q&d)===d){d!==0&&d===_8&&(qK=!0),e!==null&&(e=e.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});_:{d=_;var I1=L,f1=J,N0=$;switch(I1.tag){case FL:if(I1=I1.payload,typeof I1==="function"){S7=!0;var Z0=I1.call(N0,_1,f1);if(d.mode&C2){e1(!0);try{I1.call(N0,_1,f1)}finally{e1(!1)}}S7=!1,_1=Z0;break _}_1=I1;break _;case $K:d.flags=d.flags&-65537|128;case KL:if(Z0=I1.payload,typeof Z0==="function"){if(S7=!0,I1=Z0.call(N0,_1,f1),d.mode&C2){e1(!0);try{Z0.call(N0,_1,f1)}finally{e1(!1)}}S7=!1}else I1=Z0;if(I1===null||I1===void 0)break _;_1=J0({},_1,I1);break _;case XL:Q6=!0}}d=L.callback,d!==null&&(_.flags|=64,G1&&(_.flags|=8192),G1=G.callbacks,G1===null?G.callbacks=[d]:G1.push(d))}else G1={lane:d,tag:L.tag,payload:L.payload,callback:L.callback,next:null},e===null?(C=e=G1,I=_1):e=e.next=G1,z|=d;if(L=L.next,L===null)if(L=G.shared.pending,L===null)break;else G1=L,L=G1.next,G1.next=null,G.lastBaseUpdate=G1,G.shared.pending=null}while(1);e===null&&(I=_1),G.baseState=I,G.firstBaseUpdate=C,G.lastBaseUpdate=e,K===null&&(G.shared.lanes=0),G6|=z,_.lanes=z,_.memoizedState=_1}QK=null}function _Y(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function pO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)_Y($[_],J)}function JY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)_Y($[_],J)}function $Y(_,J){var $=k4;t(yQ,$,_),t(v7,J,_),k4=$|J.baseLanes}function hU(_){t(yQ,k4,_),t(v7,v7.current,_)}function xU(_){k4=yQ.current,J1(v7,_),J1(yQ,_)}function E3(_){var J=_.alternate;t(c0,c0.current&D7,_),t(W5,_,_),j5===null&&(J===null||v7.current!==null?j5=_:J.memoizedState!==null&&(j5=_))}function mU(_){t(c0,c0.current,_),t(W5,_,_),j5===null&&(j5=_)}function QY(_){_.tag===22?(t(c0,c0.current,_),t(W5,_,_),j5===null&&(j5=_)):h3(_)}function h3(_){t(c0,c0.current,_),t(W5,W5.current,_)}function K5(_){J1(W5,_),j5===_&&(j5=null),J1(c0,_)}function O$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||eG($)||_Z($)))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 _0(){var _=Z1;V5===null?V5=[_]:V5.push(_)}function T1(){var _=Z1;if(V5!==null&&(F3++,V5[F3]!==_)){var J=m(d1);if(!YL.has(J)&&(YL.add(J),V5!==null)){for(var $="",q=0;q<=F3;q++){var G=V5[q],K=q===F3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=K+`
102
+ Please update the following component: %s`,G),LL=!0}if((H0&Z2)!==L2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=H$(_),yH(_,null,$),J;return X$(_,q,J,$),H$(_)}function m9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,g4(_,$)}}function N$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,K=null;if($=$.firstBaseUpdate,$!==null){do{var z={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};K===null?G=K=z:K=K.next=z,$=$.next}while($!==null);K===null?G=K=J:K=K.next=J}else G=K=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:K,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function g9(){if(FF){var _=y7;if(_!==null)throw _}}function p9(_,J,$,q){FF=!1;var G=_.updateQueue;q6=!1,ZF=G.shared;var{firstBaseUpdate:K,lastBaseUpdate:z}=G,L=G.shared.pending;if(L!==null){G.shared.pending=null;var I=L,f=I.next;I.next=null,z===null?K=f:z.next=f,z=I;var n=_.alternate;n!==null&&(n=n.updateQueue,L=n.lastBaseUpdate,L!==z&&(L===null?n.firstBaseUpdate=f:L.next=f,n.lastBaseUpdate=I))}if(K!==null){var _1=G.baseState;z=0,n=f=I=null,L=K;do{var i=L.lane&-536870913,Z1=i!==L.lane;if(Z1?(n1&i)===i:(q&i)===i){i!==0&&i===$8&&(FF=!0),n!==null&&(n=n.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});_:{i=_;var f1=L,V1=J,C0=$;switch(f1.tag){case WL:if(f1=f1.payload,typeof f1==="function"){v7=!0;var F0=f1.call(C0,_1,V1);if(i.mode&j2){b1(!0);try{f1.call(C0,_1,V1)}finally{b1(!1)}}v7=!1,_1=F0;break _}_1=f1;break _;case GF:i.flags=i.flags&-65537|128;case zL:if(F0=f1.payload,typeof F0==="function"){if(v7=!0,f1=F0.call(C0,_1,V1),i.mode&j2){b1(!0);try{F0.call(C0,_1,V1)}finally{b1(!1)}}v7=!1}else f1=F0;if(f1===null||f1===void 0)break _;_1=J0({},_1,f1);break _;case BL:q6=!0}}i=L.callback,i!==null&&(_.flags|=64,Z1&&(_.flags|=8192),Z1=G.callbacks,Z1===null?G.callbacks=[i]:Z1.push(i))}else Z1={lane:i,tag:L.tag,payload:L.payload,callback:L.callback,next:null},n===null?(f=n=Z1,I=_1):n=n.next=Z1,z|=i;if(L=L.next,L===null)if(L=G.shared.pending,L===null)break;else Z1=L,L=Z1.next,Z1.next=null,G.lastBaseUpdate=Z1,G.shared.pending=null}while(1);n===null&&(I=_1),G.baseState=I,G.firstBaseUpdate=f,G.lastBaseUpdate=n,K===null&&(G.shared.lanes=0),Z6|=z,_.lanes=z,_.memoizedState=_1}ZF=null}function UY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function iO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)UY($[_],J)}function GY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)UY($[_],J)}function ZY(_,J){var $=k4;J1(uQ,$,_),J1(u7,J,_),k4=$|J.baseLanes}function pU(_){J1(uQ,k4,_),J1(u7,u7.current,_)}function cU(_){k4=uQ.current,Q1(u7,_),Q1(uQ,_)}function h3(_){var J=_.alternate;J1(d0,d0.current&b7,_),J1(L5,_,_),v5===null&&(J===null||u7.current!==null?v5=_:J.memoizedState!==null&&(v5=_))}function lU(_){J1(d0,d0.current,_),J1(L5,_,_),v5===null&&(v5=_)}function FY(_){_.tag===22?(J1(d0,d0.current,_),J1(L5,_,_),v5===null&&(v5=_)):x3(_)}function x3(_){J1(d0,d0.current,_),J1(L5,L5.current,_)}function K5(_){Q1(L5,_),v5===_&&(v5=null),Q1(d0,_)}function C$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||QZ($)||qZ($)))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 _0(){var _=F1;y5===null?y5=[_]:y5.push(_)}function O1(){var _=F1;if(y5!==null&&(X3++,y5[X3]!==_)){var J=m(i1);if(!AL.has(J)&&(AL.add(J),y5!==null)){for(var $="",q=0;q<=X3;q++){var G=y5[q],K=q===X3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=K+`
103
103
  `,$+=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
104
104
 
105
105
  Previous render Next render
106
106
  ------------------------------------------------------
107
107
  %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
- `,J,$)}}}function n8(_){_===void 0||_===null||_2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Z1,typeof _)}function I$(){var _=m(d1);BL.has(_)||(BL.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function m0(){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:
108
+ `,J,$)}}}function _7(_){_===void 0||_===null||U2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",F1,typeof _)}function f$(){var _=m(i1);TL.has(_)||(TL.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function g0(){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:
109
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
111
  3. You might have more than one copy of React in the same app
112
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function gU(_,J){if(D_)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.",Z1),!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.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function dU(_,J){if(h_)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.",F1),!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.
113
113
 
114
114
  Previous: %s
115
- Incoming: %s`,Z1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!g2(_[$],J[$]))return!1;return!0}function pU(_,J,$,q,G,K){if(Z3=K,d1=J,V5=_!==null?_._debugHookTypes:null,F3=-1,D_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")K=m(d1),UK.has(K)||(UK.add(K),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.",K===null?"An unknown Component":"<"+K+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,K1.H=_!==null&&_.memoizedState!==null?ZK:V5!==null?WL:GK,U8=K=(J.mode&C2)!==m1;var z=nZ($,q,G);if(U8=!1,u7&&(z=cU(J,$,q,G)),K){e1(!0);try{z=cU(J,$,q,G)}finally{e1(!1)}}return qY(_,J),z}function qY(_,J){J._debugHookTypes=V5,J.dependencies===null?K3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:K3}):J.dependencies._debugThenableState=K3,K1.H=b_;var $=O0!==null&&O0.next!==null;if(Z3=0,V5=Z1=a0=O0=d1=null,F3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),kQ=!1,v_=0,K3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||s0||(_=_.dependencies,_!==null&&X$(_)&&(s0=!0)),y_?(y_=!1,_=!0):_=!1,_&&(J=m(J)||"Unknown",zL.has(J)||UK.has(J)||(zL.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 cU(_,J,$,q){d1=_;var G=0;do{if(u7&&(K3=null),v_=0,u7=!1,G>=fP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,D_=!1,a0=O0=null,_.updateQueue!=null){var K=_.updateQueue;K.lastEffect=null,K.events=null,K.stores=null,K.memoCache!=null&&(K.memoCache.index=0)}F3=-1,K1.H=LL,K=nZ(J,$,q)}while(u7);return K}function cO(){var _=K1.H,J=_.useState()[0];return J=typeof J.then==="function"?x9(J):J,_=_.useState()[0],(O0!==null?O0.memoizedState:null)!==_&&(d1.flags|=1024),J}function lU(){var _=vQ!==0;return vQ=0,_}function dU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&d5)!==m1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function rU(_){if(kQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}kQ=!1}Z3=0,V5=a0=O0=d1=null,F3=-1,Z1=null,u7=!1,v_=vQ=0,K3=null}function E2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return a0===null?d1.memoizedState=a0=_:a0=a0.next=_,a0}function L0(){if(O0===null){var _=d1.alternate;_=_!==null?_.memoizedState:null}else _=O0.next;var J=a0===null?d1.memoizedState:a0.next;if(J!==null)a0=J,O0=_;else{if(_===null){if(d1.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.")}O0=_,_={memoizedState:O0.memoizedState,baseState:O0.baseState,baseQueue:O0.baseQueue,queue:O0.queue,next:null},a0===null?d1.memoizedState=a0=_:a0=a0.next=_}return a0}function w$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function x9(_){var J=v_;return v_+=1,K3===null&&(K3=lH()),_=rH(K3,_,J),J=d1,(a0===null?J.memoizedState:a0.next)===null&&(J=J.alternate,K1.H=J!==null&&J.memoizedState!==null?ZK:GK),_}function x3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return x9(_);if(_.$$typeof===I4)return j0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function p6(_){var J=null,$=d1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=d1.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&&($=w$(),d1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||D_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=qw;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 g5(_,J){return typeof J==="function"?J(_):J}function iU(_,J,$){var q=E2();if($!==void 0){var G=$(J);if(U8){e1(!0);try{$(J)}finally{e1(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=aO.bind(null,d1,_),[q.memoizedState,_]}function e8(_){var J=L0();return aU(J,O0,_)}function aU(_,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,K=q.pending;if(K!==null){if(G!==null){var z=G.next;G.next=K.next,K.next=z}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=K,q.pending=null}if(K=_.baseState,G===null)_.memoizedState=K;else{J=G.next;var L=z=null,I=null,C=J,e=!1;do{var _1=C.lane&-536870913;if(_1!==C.lane?(o1&_1)===_1:(Z3&_1)===_1){var d=C.revertLane;if(d===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),_1===_8&&(e=!0);else if((Z3&d)===d){C=C.next,d===_8&&(e=!0);continue}else _1={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},I===null?(L=I=_1,z=K):I=I.next=_1,d1.lanes|=d,G6|=d;_1=C.action,U8&&$(K,_1),K=C.hasEagerState?C.eagerState:$(K,_1)}else d={lane:_1,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},I===null?(L=I=d,z=K):I=I.next=d,d1.lanes|=_1,G6|=_1;C=C.next}while(C!==null&&C!==J);if(I===null?z=K:I.next=L,!g2(K,_.memoizedState)&&(s0=!0,e&&($=y7,$!==null)))throw $;_.memoizedState=K,_.baseState=z,_.baseQueue=I,q.lastRenderedState=K}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function m9(_){var J=L0(),$=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}=$,K=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do K=_(K,z.action),z=z.next;while(z!==G);g2(K,J.memoizedState)||(s0=!0),J.memoizedState=K,J.baseQueue===null&&(J.baseState=K),$.lastRenderedState=K}return[K,q]}function sU(_,J,$){var q=d1,G=E2();if(q0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var K=$();b7||K===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),b7=!0)}else{if(K=J(),b7||($=J(),g2(K,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b7=!0)),I0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(o1&127)!==0||UY(q,J,K)}return G.memoizedState=K,$={value:K,getSnapshot:J},G.queue=$,C$(ZY.bind(null,q,$,_),[_]),q.flags|=2048,J7(y5|l2,{destroy:void 0},GY.bind(null,q,$,K,J),null),K}function P$(_,J,$){var q=d1,G=L0(),K=q0;if(K){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!b7){var z=J();g2($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b7=!0)}if(z=!g2((O0||G).memoizedState,$))G.memoizedState=$,s0=!0;G=G.queue;var L=ZY.bind(null,q,G,_);if(o2(2048,l2,L,[_]),G.getSnapshot!==J||z||a0!==null&&a0.memoizedState.tag&y5){if(q.flags|=2048,J7(y5|l2,{destroy:void 0},GY.bind(null,q,G,$,J),null),I0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");K||(Z3&127)!==0||UY(q,J,$)}return $}function UY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=d1.updateQueue,J===null?(J=w$(),d1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function GY(_,J,$,q){J.value=$,J.getSnapshot=q,KY(J)&&FY(_)}function ZY(_,J,$){return $(function(){KY(J)&&(K4(2,"updateSyncExternalStore()",_),FY(_))})}function KY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!g2(_,$)}catch(q){return!0}}function FY(_){var J=N2(_,2);J!==null&&u0(J,_,2)}function tU(_){var J=E2();if(typeof _==="function"){var $=_;if(_=$(),U8){e1(!0);try{$()}finally{e1(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:g5,lastRenderedState:_},J}function oU(_){_=tU(_);var J=_.queue,$=SY.bind(null,d1,J);return J.dispatch=$,[_.memoizedState,$]}function nU(_){var J=E2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=YG.bind(null,d1,!0,$),$.dispatch=J,[_,J]}function XY(_,J){var $=L0();return HY($,O0,_,J)}function HY(_,J,$,q){return _.baseState=$,aU(_,O0,typeof q==="function"?q:g5)}function YY(_,J){var $=L0();if(O0!==null)return HY($,O0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function lO(_,J,$,q,G){if(v$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var K={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){K.listeners.push(z)}};K1.T!==null?$(!0):K.isTransition=!1,q(K),$=J.pending,$===null?(K.next=J.pending=K,zY(J,K)):(K.next=$.next,J.pending=$.next=K)}}function zY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var K=K1.T,z={};z._updatedFibers=new Set,K1.T=z;try{var L=$(G,q),I=K1.S;I!==null&&I(z,L),BY(_,J,L)}catch(C){eU(_,J,C)}finally{K!==null&&z.types!==null&&(K.types!==null&&K.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."),K.types=z.types),K1.T=K,K===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."))}}else try{z=$(G,q),BY(_,J,z)}catch(C){eU(_,J,C)}}function BY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(K1.asyncTransitions++,$.then(k$,k$),$.then(function(q){WY(_,J,q)},function(q){return eU(_,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.")):WY(_,J,$)}function WY(_,J,$){J.status="fulfilled",J.value=$,LY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,zY(_,$)))}function eU(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,LY(J),J=J.next;while(J!==q)}_.action=null}function LY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function AY(_,J){return J}function _7(_,J){if(q0){var $=I0.formState;if($!==null){_:{var q=d1;if(q0){if(C0){J:{var G=C0;for(var K=C5;G.nodeType!==8;){if(!K){G=null;break J}if(G=X5(G.nextSibling),G===null){G=null;break J}}K=G.data,G=K===yK||K===JA?G:null}if(G){C0=X5(G.nextSibling),q=G.data===yK;break _}}k3(q)}q=!1}q&&(J=$[0])}}return $=E2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:AY,lastRenderedState:J},$.queue=q,$=SY.bind(null,d1,q),q.dispatch=$,q=tU(!1),K=YG.bind(null,d1,!1,q.queue),q=E2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=lO.bind(null,d1,G,K,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function N$(_){var J=L0();return MY(J,O0,_)}function MY(_,J,$){if(J=aU(_,J,AY)[0],_=e8(g5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=x9(J)}catch(z){if(z===V7)throw SQ;throw z}else q=J;J=L0();var G=J.queue,K=G.dispatch;return $!==J.memoizedState&&(d1.flags|=2048,J7(y5|l2,{destroy:void 0},dO.bind(null,G,$),null)),[q,K,_]}function dO(_,J){_.action=J}function f$(_){var J=L0(),$=O0;if($!==null)return MY(J,$,_);L0(),J=J.memoizedState,$=L0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function J7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=d1.updateQueue,J===null&&(J=w$(),d1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function _G(_){var J=E2();return _={current:_},J.memoizedState=_}function c6(_,J,$,q){var G=E2();d1.flags|=_,G.memoizedState=J7(y5|J,{destroy:void 0},$,q===void 0?null:q)}function o2(_,J,$,q){var G=L0();q=q===void 0?null:q;var K=G.memoizedState.inst;O0!==null&&q!==null&&gU(q,O0.memoizedState.deps)?G.memoizedState=J7(J,K,$,q):(d1.flags|=_,G.memoizedState=J7(y5|J,K,$,q))}function C$(_,J){(d1.mode&d5)!==m1?c6(276826112,l2,_,J):c6(8390656,l2,_,J)}function rO(_){d1.flags|=4;var J=d1.updateQueue;if(J===null)J=w$(),d1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function JG(_){var J=E2(),$={impl:_};return J.memoizedState=$,function(){if((X0&$2)!==Y2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function S$(_){var J=L0().memoizedState;return rO({ref:J,nextImpl:_}),function(){if((X0&$2)!==Y2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function $G(_,J){var $=4194308;return(d1.mode&d5)!==m1&&($|=134217728),c6($,L5,_,J)}function TY(_,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 QG(_,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;(d1.mode&d5)!==m1&&(q|=134217728),c6(q,L5,TY.bind(null,J,_),$)}function j$(_,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,o2(4,L5,TY.bind(null,J,_),$)}function qG(_,J){return E2().memoizedState=[_,J===void 0?null:J],_}function y$(_,J){var $=L0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&gU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function UG(_,J){var $=E2();J=J===void 0?null:J;var q=_();if(U8){e1(!0);try{_()}finally{e1(!1)}}return $.memoizedState=[q,J],q}function V$(_,J){var $=L0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&gU(J,q[1]))return q[0];if(q=_(),U8){e1(!0);try{_()}finally{e1(!1)}}return $.memoizedState=[q,J],q}function GG(_,J){var $=E2();return ZG($,_,J)}function RY(_,J){var $=L0();return IY($,O0.memoizedState,_,J)}function OY(_,J){var $=L0();return O0===null?ZG($,_,J):IY($,O0.memoizedState,_,J)}function ZG(_,J,$){if($===void 0||(Z3&1073741824)!==0&&(o1&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=wz(),d1.lanes|=_,G6|=_,$}function IY(_,J,$,q){if(g2($,J))return $;if(v7.current!==null)return _=ZG(_,$,q),g2(_,J)||(s0=!0),_;if((Z3&42)===0||(Z3&1073741824)!==0&&(o1&261930)===0)return s0=!0,_.memoizedState=$;return _=wz(),d1.lanes|=_,G6|=_,J}function k$(){K1.asyncTransitions--}function wY(_,J,$,q,G){var K=W0.p;W0.p=K!==0&&K<l5?K:l5;var z=K1.T,L={};L._updatedFibers=new Set,K1.T=L,YG(_,!1,J,$);try{var I=G(),C=K1.S;if(C!==null&&C(L,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){K1.asyncTransitions++,I.then(k$,k$);var e=gO(I,q);g9(_,J,e,F5(_))}else g9(_,J,q,F5(_))}catch(_1){g9(_,J,{then:function(){},status:"rejected",reason:_1},F5(_))}finally{W0.p=K,z!==null&&L.types!==null&&(z.types!==null&&z.types!==L.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."),z.types=L.types),K1.T=z,z===null&&L._updatedFibers&&(_=L._updatedFibers.size,L._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 KG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=PY(_).queue;xO(_),wY(_,G,J,L8,$===null?R:function(){return NY(_),$(q)})}function PY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:L8,baseState:L8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:g5,lastRenderedState:L8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:g5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function NY(_){K1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=PY(_);J.next===null&&(J=_.alternate.memoizedState),g9(_,J.next.queue,{},F5(_))}function FG(){var _=tU(!1);return _=wY.bind(null,d1,_.queue,!0,!1),E2().memoizedState=_,[!1,_]}function fY(){var _=e8(g5)[0],J=L0().memoizedState;return[typeof _==="boolean"?_:x9(_),J]}function CY(){var _=m9(g5)[0],J=L0().memoizedState;return[typeof _==="boolean"?_:x9(_),J]}function l6(){return j0(t_)}function XG(){var _=E2(),J=I0.identifierPrefix;if(q0){var $=$3,q=J3;$=(q&~(1<<32-h2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=vQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=NP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function HG(){return E2().memoizedState=iO.bind(null,d1)}function iO(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=F5($),G=b3(q),K=u3($,G,q);K!==null&&(K4(q,"refresh()",_),u0(K,$,q),u9(K,$,q)),_=VU(),J!==null&&J!==void 0&&K!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function aO(_,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=F5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};v$(_)?jY(J,G):(G=TU(_,J,G,q),G!==null&&(K4(q,"dispatch()",_),u0(G,_,q),yY(G,J,q)))}function SY(_,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=F5(_),g9(_,J,$,q)&&K4(q,"setState()",_)}function g9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(v$(_))jY(J,G);else{var K=_.alternate;if(_.lanes===0&&(K===null||K.lanes===0)&&(K=J.lastRenderedReducer,K!==null)){var z=K1.H;K1.H=i5;try{var L=J.lastRenderedState,I=K(L,$);if(G.hasEagerState=!0,G.eagerState=I,g2(I,L))return U$(_,J,G,0),I0===null&&q$(),!1}catch(C){}finally{K1.H=z}}if($=TU(_,J,G,q),$!==null)return u0($,_,q),yY($,J,q),!0}return!1}function YG(_,J,$,q){if(K1.T===null&&_8===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:pG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},v$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=TU(_,$,q,2),J!==null&&(K4(2,"setOptimistic()",_),u0(J,_,2))}function v$(_){var J=_.alternate;return _===d1||J!==null&&J===d1}function jY(_,J){u7=kQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function yY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,m4(_,$)}}function zG(_){if(_!==null&&typeof _!=="function"){var J=String(_);CL.has(J)||(CL.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function BG(_,J,$,q){var G=_.memoizedState,K=$(q,G);if(_.mode&C2){e1(!0);try{K=$(q,G)}finally{e1(!1)}}K===void 0&&(J=b(J)||"Component",wL.has(J)||(wL.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=K===null||K===void 0?G:J0({},G,K),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function VY(_,J,$,q,G,K,z){var L=_.stateNode;if(typeof L.shouldComponentUpdate==="function"){if($=L.shouldComponentUpdate(q,K,z),_.mode&C2){e1(!0);try{$=L.shouldComponentUpdate(q,K,z)}finally{e1(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",b(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!j9($,q)||!j9(G,K):!0}function kY(_,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",ML.has(_)||(ML.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),KK.enqueueReplaceState(J,J.state,null))}function d6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=J0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function vY(_){xZ(_),console.warn(`%s
115
+ Incoming: %s`,F1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!p2(_[$],J[$]))return!1;return!0}function iU(_,J,$,q,G,K){if(F3=K,i1=J,y5=_!==null?_._debugHookTypes:null,X3=-1,h_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")K=m(i1),KF.has(K)||(KF.add(K),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.",K===null?"An unknown Component":"<"+K+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,H1.H=_!==null&&_.memoizedState!==null?HF:y5!==null?RL:XF,Z8=K=(J.mode&j2)!==p1;var z=$F($,q,G);if(Z8=!1,h7&&(z=rU(J,$,q,G)),K){b1(!0);try{z=rU(J,$,q,G)}finally{b1(!1)}}return KY(_,J),z}function KY(_,J){J._debugHookTypes=y5,J.dependencies===null?K3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:K3}):J.dependencies._debugThenableState=K3,H1.H=x_;var $=w0!==null&&w0.next!==null;if(F3=0,y5=F1=o0=w0=i1=null,X3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),EQ=!1,E_=0,K3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||n0||(_=_.dependencies,_!==null&&B$(_)&&(n0=!0)),D_?(D_=!1,_=!0):_=!1,_&&(J=m(J)||"Unknown",ML.has(J)||KF.has(J)||(ML.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 rU(_,J,$,q){i1=_;var G=0;do{if(h7&&(K3=null),E_=0,h7=!1,G>=vP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,h_=!1,o0=w0=null,_.updateQueue!=null){var K=_.updateQueue;K.lastEffect=null,K.events=null,K.stores=null,K.memoCache!=null&&(K.memoCache.index=0)}X3=-1,H1.H=OL,K=$F(J,$,q)}while(h7);return K}function rO(){var _=H1.H,J=_.useState()[0];return J=typeof J.then==="function"?c9(J):J,_=_.useState()[0],(w0!==null?w0.memoizedState:null)!==_&&(i1.flags|=1024),J}function aU(){var _=hQ!==0;return hQ=0,_}function sU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&i5)!==p1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function tU(_){if(EQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}EQ=!1}F3=0,y5=o0=w0=i1=null,X3=-1,F1=null,h7=!1,E_=hQ=0,K3=null}function h2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return o0===null?i1.memoizedState=o0=_:o0=o0.next=_,o0}function M0(){if(w0===null){var _=i1.alternate;_=_!==null?_.memoizedState:null}else _=w0.next;var J=o0===null?i1.memoizedState:o0.next;if(J!==null)o0=J,w0=_;else{if(_===null){if(i1.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.")}w0=_,_={memoizedState:w0.memoizedState,baseState:w0.baseState,baseQueue:w0.baseQueue,queue:w0.queue,next:null},o0===null?i1.memoizedState=o0=_:o0=o0.next=_}return o0}function S$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function c9(_){var J=E_;return E_+=1,K3===null&&(K3=sH()),_=oH(K3,_,J),J=i1,(o0===null?J.memoizedState:o0.next)===null&&(J=J.alternate,H1.H=J!==null&&J.memoizedState!==null?HF:XF),_}function m3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return c9(_);if(_.$$typeof===w4)return V0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function l6(_){var J=null,$=i1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=i1.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&&($=S$(),i1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||h_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=Fw;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 p5(_,J){return typeof J==="function"?J(_):J}function oU(_,J,$){var q=h2();if($!==void 0){var G=$(J);if(Z8){b1(!0);try{$(J)}finally{b1(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=nO.bind(null,i1,_),[q.memoizedState,_]}function J7(_){var J=M0();return nU(J,w0,_)}function nU(_,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,K=q.pending;if(K!==null){if(G!==null){var z=G.next;G.next=K.next,K.next=z}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=K,q.pending=null}if(K=_.baseState,G===null)_.memoizedState=K;else{J=G.next;var L=z=null,I=null,f=J,n=!1;do{var _1=f.lane&-536870913;if(_1!==f.lane?(n1&_1)===_1:(F3&_1)===_1){var i=f.revertLane;if(i===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),_1===$8&&(n=!0);else if((F3&i)===i){f=f.next,i===$8&&(n=!0);continue}else _1={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},I===null?(L=I=_1,z=K):I=I.next=_1,i1.lanes|=i,Z6|=i;_1=f.action,Z8&&$(K,_1),K=f.hasEagerState?f.eagerState:$(K,_1)}else i={lane:_1,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},I===null?(L=I=i,z=K):I=I.next=i,i1.lanes|=_1,Z6|=_1;f=f.next}while(f!==null&&f!==J);if(I===null?z=K:I.next=L,!p2(K,_.memoizedState)&&(n0=!0,n&&($=y7,$!==null)))throw $;_.memoizedState=K,_.baseState=z,_.baseQueue=I,q.lastRenderedState=K}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function l9(_){var J=M0(),$=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}=$,K=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do K=_(K,z.action),z=z.next;while(z!==G);p2(K,J.memoizedState)||(n0=!0),J.memoizedState=K,J.baseQueue===null&&(J.baseState=K),$.lastRenderedState=K}return[K,q]}function eU(_,J,$){var q=i1,G=h2();if(G0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var K=$();E7||K===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),E7=!0)}else{if(K=J(),E7||($=J(),p2(K,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),E7=!0)),P0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(n1&127)!==0||XY(q,J,K)}return G.memoizedState=K,$={value:K,getSnapshot:J},G.queue=$,y$(YY.bind(null,q,$,_),[_]),q.flags|=2048,Q7(V5|d2,{destroy:void 0},HY.bind(null,q,$,K,J),null),K}function j$(_,J,$){var q=i1,G=M0(),K=G0;if(K){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!E7){var z=J();p2($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),E7=!0)}if(z=!p2((w0||G).memoizedState,$))G.memoizedState=$,n0=!0;G=G.queue;var L=YY.bind(null,q,G,_);if(n2(2048,d2,L,[_]),G.getSnapshot!==J||z||o0!==null&&o0.memoizedState.tag&V5){if(q.flags|=2048,Q7(V5|d2,{destroy:void 0},HY.bind(null,q,G,$,J),null),P0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");K||(F3&127)!==0||XY(q,J,$)}return $}function XY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=i1.updateQueue,J===null?(J=S$(),i1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function HY(_,J,$,q){J.value=$,J.getSnapshot=q,zY(J)&&WY(_)}function YY(_,J,$){return $(function(){zY(J)&&(K4(2,"updateSyncExternalStore()",_),WY(_))})}function zY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!p2(_,$)}catch(q){return!0}}function WY(_){var J=f2(_,2);J!==null&&h0(J,_,2)}function _G(_){var J=h2();if(typeof _==="function"){var $=_;if(_=$(),Z8){b1(!0);try{$()}finally{b1(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:p5,lastRenderedState:_},J}function JG(_){_=_G(_);var J=_.queue,$=kY.bind(null,i1,J);return J.dispatch=$,[_.memoizedState,$]}function $G(_){var J=h2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=LG.bind(null,i1,!0,$),$.dispatch=J,[_,J]}function BY(_,J){var $=M0();return LY($,w0,_,J)}function LY(_,J,$,q){return _.baseState=$,nU(_,w0,typeof q==="function"?q:p5)}function AY(_,J){var $=M0();if(w0!==null)return LY($,w0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function aO(_,J,$,q,G){if(h$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var K={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){K.listeners.push(z)}};H1.T!==null?$(!0):K.isTransition=!1,q(K),$=J.pending,$===null?(K.next=J.pending=K,MY(J,K)):(K.next=$.next,J.pending=$.next=K)}}function MY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var K=H1.T,z={};z._updatedFibers=new Set,H1.T=z;try{var L=$(G,q),I=H1.S;I!==null&&I(z,L),TY(_,J,L)}catch(f){QG(_,J,f)}finally{K!==null&&z.types!==null&&(K.types!==null&&K.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."),K.types=z.types),H1.T=K,K===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."))}}else try{z=$(G,q),TY(_,J,z)}catch(f){QG(_,J,f)}}function TY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(H1.asyncTransitions++,$.then(E$,E$),$.then(function(q){RY(_,J,q)},function(q){return QG(_,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.")):RY(_,J,$)}function RY(_,J,$){J.status="fulfilled",J.value=$,OY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,MY(_,$)))}function QG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,OY(J),J=J.next;while(J!==q)}_.action=null}function OY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function IY(_,J){return J}function $7(_,J){if(G0){var $=P0.formState;if($!==null){_:{var q=i1;if(G0){if(j0){J:{var G=j0;for(var K=S5;G.nodeType!==8;){if(!K){G=null;break J}if(G=H5(G.nextSibling),G===null){G=null;break J}}K=G.data,G=K===DF||K===GA?G:null}if(G){j0=H5(G.nextSibling),q=G.data===DF;break _}}k3(q)}q=!1}q&&(J=$[0])}}return $=h2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IY,lastRenderedState:J},$.queue=q,$=kY.bind(null,i1,q),q.dispatch=$,q=_G(!1),K=LG.bind(null,i1,!1,q.queue),q=h2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=aO.bind(null,i1,G,K,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function v$(_){var J=M0();return wY(J,w0,_)}function wY(_,J,$){if(J=nU(_,J,IY)[0],_=J7(p5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=c9(J)}catch(z){if(z===k7)throw kQ;throw z}else q=J;J=M0();var G=J.queue,K=G.dispatch;return $!==J.memoizedState&&(i1.flags|=2048,Q7(V5|d2,{destroy:void 0},sO.bind(null,G,$),null)),[q,K,_]}function sO(_,J){_.action=J}function V$(_){var J=M0(),$=w0;if($!==null)return wY(J,$,_);M0(),J=J.memoizedState,$=M0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function Q7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=i1.updateQueue,J===null&&(J=S$(),i1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function qG(_){var J=h2();return _={current:_},J.memoizedState=_}function d6(_,J,$,q){var G=h2();i1.flags|=_,G.memoizedState=Q7(V5|J,{destroy:void 0},$,q===void 0?null:q)}function n2(_,J,$,q){var G=M0();q=q===void 0?null:q;var K=G.memoizedState.inst;w0!==null&&q!==null&&dU(q,w0.memoizedState.deps)?G.memoizedState=Q7(J,K,$,q):(i1.flags|=_,G.memoizedState=Q7(V5|J,K,$,q))}function y$(_,J){(i1.mode&i5)!==p1?d6(276826112,d2,_,J):d6(8390656,d2,_,J)}function tO(_){i1.flags|=4;var J=i1.updateQueue;if(J===null)J=S$(),i1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function UG(_){var J=h2(),$={impl:_};return J.memoizedState=$,function(){if((H0&Z2)!==L2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function k$(_){var J=M0().memoizedState;return tO({ref:J,nextImpl:_}),function(){if((H0&Z2)!==L2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function GG(_,J){var $=4194308;return(i1.mode&i5)!==p1&&($|=134217728),d6($,A5,_,J)}function PY(_,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 ZG(_,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;(i1.mode&i5)!==p1&&(q|=134217728),d6(q,A5,PY.bind(null,J,_),$)}function D$(_,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,n2(4,A5,PY.bind(null,J,_),$)}function FG(_,J){return h2().memoizedState=[_,J===void 0?null:J],_}function u$(_,J){var $=M0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&dU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function KG(_,J){var $=h2();J=J===void 0?null:J;var q=_();if(Z8){b1(!0);try{_()}finally{b1(!1)}}return $.memoizedState=[q,J],q}function b$(_,J){var $=M0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&dU(J,q[1]))return q[0];if(q=_(),Z8){b1(!0);try{_()}finally{b1(!1)}}return $.memoizedState=[q,J],q}function XG(_,J){var $=h2();return HG($,_,J)}function NY(_,J){var $=M0();return fY($,w0.memoizedState,_,J)}function CY(_,J){var $=M0();return w0===null?HG($,_,J):fY($,w0.memoizedState,_,J)}function HG(_,J,$){if($===void 0||(F3&1073741824)!==0&&(n1&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=Sz(),i1.lanes|=_,Z6|=_,$}function fY(_,J,$,q){if(p2($,J))return $;if(u7.current!==null)return _=HG(_,$,q),p2(_,J)||(n0=!0),_;if((F3&42)===0||(F3&1073741824)!==0&&(n1&261930)===0)return n0=!0,_.memoizedState=$;return _=Sz(),i1.lanes|=_,Z6|=_,J}function E$(){H1.asyncTransitions--}function SY(_,J,$,q,G){var K=L0.p;L0.p=K!==0&&K<d5?K:d5;var z=H1.T,L={};L._updatedFibers=new Set,H1.T=L,LG(_,!1,J,$);try{var I=G(),f=H1.S;if(f!==null&&f(L,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){H1.asyncTransitions++,I.then(E$,E$);var n=dO(I,q);d9(_,J,n,X5(_))}else d9(_,J,q,X5(_))}catch(_1){d9(_,J,{then:function(){},status:"rejected",reason:_1},X5(_))}finally{L0.p=K,z!==null&&L.types!==null&&(z.types!==null&&z.types!==L.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."),z.types=L.types),H1.T=z,z===null&&L._updatedFibers&&(_=L._updatedFibers.size,L._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 YG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=jY(_).queue;cO(_),SY(_,G,J,M8,$===null?R:function(){return vY(_),$(q)})}function jY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:M8,baseState:M8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:p5,lastRenderedState:M8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:p5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function vY(_){H1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=jY(_);J.next===null&&(J=_.alternate.memoizedState),d9(_,J.next.queue,{},X5(_))}function zG(){var _=_G(!1);return _=SY.bind(null,i1,_.queue,!0,!1),h2().memoizedState=_,[!1,_]}function VY(){var _=J7(p5)[0],J=M0().memoizedState;return[typeof _==="boolean"?_:c9(_),J]}function yY(){var _=l9(p5)[0],J=M0().memoizedState;return[typeof _==="boolean"?_:c9(_),J]}function i6(){return V0(_J)}function WG(){var _=h2(),J=P0.identifierPrefix;if(G0){var $=Q3,q=$3;$=(q&~(1<<32-x2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=hQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=jP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function BG(){return h2().memoizedState=oO.bind(null,i1)}function oO(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=X5($),G=b3(q),K=E3($,G,q);K!==null&&(K4(q,"refresh()",_),h0(K,$,q),m9(K,$,q)),_=uU(),J!==null&&J!==void 0&&K!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function nO(_,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=X5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};h$(_)?DY(J,G):(G=wU(_,J,G,q),G!==null&&(K4(q,"dispatch()",_),h0(G,_,q),uY(G,J,q)))}function kY(_,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=X5(_),d9(_,J,$,q)&&K4(q,"setState()",_)}function d9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(h$(_))DY(J,G);else{var K=_.alternate;if(_.lanes===0&&(K===null||K.lanes===0)&&(K=J.lastRenderedReducer,K!==null)){var z=H1.H;H1.H=a5;try{var L=J.lastRenderedState,I=K(L,$);if(G.hasEagerState=!0,G.eagerState=I,p2(I,L))return X$(_,J,G,0),P0===null&&K$(),!1}catch(f){}finally{H1.H=z}}if($=wU(_,J,G,q),$!==null)return h0($,_,q),uY($,J,q),!0}return!1}function LG(_,J,$,q){if(H1.T===null&&$8===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:iG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},h$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=wU(_,$,q,2),J!==null&&(K4(2,"setOptimistic()",_),h0(J,_,2))}function h$(_){var J=_.alternate;return _===i1||J!==null&&J===i1}function DY(_,J){h7=EQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function uY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,g4(_,$)}}function AG(_){if(_!==null&&typeof _!=="function"){var J=String(_);yL.has(J)||(yL.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function MG(_,J,$,q){var G=_.memoizedState,K=$(q,G);if(_.mode&j2){b1(!0);try{K=$(q,G)}finally{b1(!1)}}K===void 0&&(J=b(J)||"Component",SL.has(J)||(SL.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=K===null||K===void 0?G:J0({},G,K),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function bY(_,J,$,q,G,K,z){var L=_.stateNode;if(typeof L.shouldComponentUpdate==="function"){if($=L.shouldComponentUpdate(q,K,z),_.mode&j2){b1(!0);try{$=L.shouldComponentUpdate(q,K,z)}finally{b1(!1)}}return $===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",b(J)||"Component"),$}return J.prototype&&J.prototype.isPureReactComponent?!k9($,q)||!k9(G,K):!0}function EY(_,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",wL.has(_)||(wL.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),YF.enqueueReplaceState(J,J.state,null))}function r6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=J0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function hY(_){cZ(_),console.warn(`%s
116
116
 
117
117
  %s
118
- `,E7?"An error occurred in the <"+E7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function DY(_){var J=E7?"The above error occurred in the <"+E7+"> 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, "+((FK||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
118
+ `,x7?"An error occurred in the <"+x7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function xY(_){var J=x7?"The above error occurred in the <"+x7+"> 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, "+((zF||"Anonymous")+".");if(typeof _==="object"&&_!==null&&typeof _.environmentName==="string"){var q=_.environmentName;_=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,FA+" "+_[0],XA,qq+q+qq,HA):_.splice(0,0,FA,XA,qq+q+qq,HA),_.unshift(console),q=rP.apply(console.error,_),q()}else console.error(`%o
124
+ `,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,WA+" "+_[0],BA,Kq+q+Kq,LA):_.splice(0,0,WA,BA,Kq+q+Kq,LA),_.unshift(console),q=tP.apply(console.error,_),q()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,_,J,$)}function bY(_){xZ(_)}function D$(_,J){try{E7=J.source?m(J.source):null,FK=null;var $=J.value;if(K1.actQueue!==null)K1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function uY(_,J,$){try{E7=$.source?m($.source):null,FK=m(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function WG(_,J,$){return $=b3($),$.tag=$K,$.payload={element:null},$.callback=function(){W1(J.source,D$,_,J)},$}function LG(_){return _=b3(_),_.tag=$K,_}function AG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var K=q.value;_.payload=function(){return G(K)},_.callback=function(){jH($),W1(q.source,uY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){jH($),W1(q.source,uY,J,$,q),typeof G!=="function"&&(K6===null?K6=new Set([this]):K6.add(this)),OP(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 sO(_,J,$,q,G){if($.flags|=32768,N4&&s9(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&o8(J,$,G,!0),q0&&(S4=!0),$=W5.current,$!==null){switch($.tag){case 31:case 13:return j5===null?c$():$.alternate===null&&D0===H3&&(D0=uQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===jQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),hG(_,q,G)),!1;case 22:return $.flags|=65536,q===jQ?$.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)),hG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return hG(_,q,G),c$(),!1}if(q0)return S4=!0,J=W5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==dZ&&V9(U5(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!==dZ&&V9(U5(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=U5(q,$),G=WG(_.stateNode,q,G),R$(_,G),D0!==q6&&(D0=G8)),!1;var K=U5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(g_===null?g_=[K]:g_.push(K),D0!==q6&&(D0=G8),J===null)return!0;q=U5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=WG($.stateNode,q,_),R$($,_),!1;case 1:if(J=$.type,K=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||K!==null&&typeof K.componentDidCatch==="function"&&(K6===null||!K6.has(K))))return $.flags|=65536,G&=-G,$.lanes|=G,G=LG(G),AG(G,_,$,q),R$($,G),!1}$=$.return}while($!==null);return!1}function L2(_,J,$,q){J.child=_===null?ZL(J,null,$,q):q8(J,_.child,$,q)}function EY(_,J,$,q,G){$=$.render;var K=J.ref;if("ref"in q){var z={};for(var L in q)L!=="ref"&&(z[L]=q[L])}else z=q;if(m6(J),q=pU(_,J,$,z,K,G),L=lU(),_!==null&&!s0)return dU(_,J,G),s4(_,J,G);return q0&&L&&NU(J),J.flags|=1,L2(_,J,q,G),J.child}function hY(_,J,$,q,G){if(_===null){var K=$.type;if(typeof K==="function"&&!OU(K)&&K.defaultProps===void 0&&$.compare===null)return $=u6(K),J.tag=15,J.type=$,TG(J,K),xY(_,J,$,q,G);return _=IU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(K=_.child,!NG(_,G)){var z=K.memoizedProps;if($=$.compare,$=$!==null?$:j9,$(z,q)&&_.ref===J.ref)return s4(_,J,G)}return J.flags|=1,_=d4(K,q),_.ref=J.ref,_.return=J,J.child=_}function xY(_,J,$,q,G){if(_!==null){var K=_.memoizedProps;if(j9(K,q)&&_.ref===J.ref&&J.type===_.type)if(s0=!1,J.pendingProps=q=K,NG(_,G))(_.flags&131072)!==0&&(s0=!0);else return J.lanes=_.lanes,s4(_,J,G)}return MG(_,J,$,q,G)}function mY(_,J,$,q){var G=q.children,K=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:L_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(K=K!==null?K.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~K}else q=0,J.child=null;return gY(_,J,K,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&B$(J,K!==null?K.cachePool:null),K!==null?$Y(J,K):hU(J),QY(J);else return q=J.lanes=536870912,gY(_,J,K!==null?K.baseLanes|$:$,$,q)}else K!==null?(B$(J,K.cachePool),$Y(J,K),h3(J),J.memoizedState=null):(_!==null&&B$(J,null),hU(J),h3(J));return L2(_,J,G,$),J.child}function p9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:L_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function gY(_,J,$,q,G){var K=DU();return K=K===null?null:{parent:r0._currentValue,pool:K},J.memoizedState={baseLanes:$,cachePool:K},_!==null&&B$(J,null),hU(J),QY(J),_!==null&&o8(_,J,q,!0),J.childLanes=G,null}function b$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,_,J,$)}function mY(_){cZ(_)}function x$(_,J){try{x7=J.source?m(J.source):null,zF=null;var $=J.value;if(H1.actQueue!==null)H1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function gY(_,J,$){try{x7=$.source?m($.source):null,zF=m(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function TG(_,J,$){return $=b3($),$.tag=GF,$.payload={element:null},$.callback=function(){M1(J.source,x$,_,J)},$}function RG(_){return _=b3(_),_.tag=GF,_}function OG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var K=q.value;_.payload=function(){return G(K)},_.callback=function(){DH($),M1(q.source,gY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){DH($),M1(q.source,gY,J,$,q),typeof G!=="function"&&(K6===null?K6=new Set([this]):K6.add(this)),NP(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 eO(_,J,$,q,G){if($.flags|=32768,C4&&e9(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&e8(J,$,G,!0),G0&&(j4=!0),$=L5.current,$!==null){switch($.tag){case 31:case 13:return v5===null?a$():$.alternate===null&&b0===Y3&&(b0=gQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===DQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),pG(_,q,G)),!1;case 22:return $.flags|=65536,q===DQ?$.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)),pG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return pG(_,q,G),a$(),!1}if(G0)return j4=!0,J=L5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==sZ&&u9(G5(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!==sZ&&u9(G5(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=G5(q,$),G=TG(_.stateNode,q,G),N$(_,G),b0!==U6&&(b0=F8)),!1;var K=G5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(d_===null?d_=[K]:d_.push(K),b0!==U6&&(b0=F8),J===null)return!0;q=G5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=TG($.stateNode,q,_),N$($,_),!1;case 1:if(J=$.type,K=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||K!==null&&typeof K.componentDidCatch==="function"&&(K6===null||!K6.has(K))))return $.flags|=65536,G&=-G,$.lanes|=G,G=RG(G),OG(G,_,$,q),N$($,G),!1}$=$.return}while($!==null);return!1}function T2(_,J,$,q){J.child=_===null?YL(J,null,$,q):G8(J,_.child,$,q)}function pY(_,J,$,q,G){$=$.render;var K=J.ref;if("ref"in q){var z={};for(var L in q)L!=="ref"&&(z[L]=q[L])}else z=q;if(p6(J),q=iU(_,J,$,z,K,G),L=aU(),_!==null&&!n0)return sU(_,J,G),t4(_,J,G);return G0&&L&&jU(J),J.flags|=1,T2(_,J,q,G),J.child}function cY(_,J,$,q,G){if(_===null){var K=$.type;if(typeof K==="function"&&!NU(K)&&K.defaultProps===void 0&&$.compare===null)return $=h6(K),J.tag=15,J.type=$,wG(J,K),lY(_,J,$,q,G);return _=CU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(K=_.child,!jG(_,G)){var z=K.memoizedProps;if($=$.compare,$=$!==null?$:k9,$(z,q)&&_.ref===J.ref)return t4(_,J,G)}return J.flags|=1,_=i4(K,q),_.ref=J.ref,_.return=J,J.child=_}function lY(_,J,$,q,G){if(_!==null){var K=_.memoizedProps;if(k9(K,q)&&_.ref===J.ref&&J.type===_.type)if(n0=!1,J.pendingProps=q=K,jG(_,G))(_.flags&131072)!==0&&(n0=!0);else return J.lanes=_.lanes,t4(_,J,G)}return IG(_,J,$,q,G)}function dY(_,J,$,q){var G=q.children,K=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:R_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(K=K!==null?K.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~K}else q=0,J.child=null;return iY(_,J,K,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&T$(J,K!==null?K.cachePool:null),K!==null?ZY(J,K):pU(J),FY(J);else return q=J.lanes=536870912,iY(_,J,K!==null?K.baseLanes|$:$,$,q)}else K!==null?(T$(J,K.cachePool),ZY(J,K),x3(J),J.memoizedState=null):(_!==null&&T$(J,null),pU(J),x3(J));return T2(_,J,G,$),J.child}function i9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:R_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function iY(_,J,$,q,G){var K=hU();return K=K===null?null:{parent:s0._currentValue,pool:K},J.memoizedState={baseLanes:$,cachePool:K},_!==null&&T$(J,null),pU(J),FY(J),_!==null&&e8(_,J,q,!0),J.childLanes=G,null}function m$(_,J){var $=J.hidden;return $!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=E$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function pY(_,J,$){return q8(J,_.child,null,$),_=b$(J,J.pendingProps),_.flags|=2,K5(J),J.memoizedState=null,_}function tO(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(q0){if(q.mode==="hidden")return _=b$(J,q),J.lanes=536870912,p9(null,_);if(mU(J),(_=C0)?($=zB(_,C5),$=$!==null&&$.data===Y8?$:null,$!==null&&(q={dehydrated:$,treeContext:DH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=kH($),q.return=J,J.child=q,T2=J,C0=null)):$=null,$===null)throw K$(J,_),k3(J);return J.lanes=536870912,null}return b$(J,q)}var K=_.memoizedState;if(K!==null){var z=K.dehydrated;if(mU(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(uH(),($&536870912)!==0&&p$(J),s0||o8(_,J,$,!1),G=($&_.childLanes)!==0,s0||G){if(q=I0,q!==null&&(z=g4(q,$),z!==0&&z!==K.retryLane))throw K.retryLane=z,N2(_,z),u0(q,_,z),XK;c$(),J=pY(_,J,$)}else _=K.treeContext,C0=X5(z.nextSibling),T2=J,q0=!0,o3=null,S4=!1,B5=null,C5=!1,_!==null&&bH(J,_),J=b$(J,q),J.flags|=4096;return J}return K=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&p$(J),_=d4(K,q),_.ref=J.ref,J.child=_,_.return=J,_}function u$(_,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 MG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var K=b($)||"Unknown";SL[K]||(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.",K,K),SL[K]=!0)}if(J.mode&C2&&r5.recordLegacyContextWarning(J,null),_===null&&(TG(J,J.type),$.contextTypes&&(K=b($)||"Unknown",yL[K]||(yL[K]=!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)",K)))),m6(J),$=pU(_,J,$,q,void 0,G),q=lU(),_!==null&&!s0)return dU(_,J,G),s4(_,J,G);return q0&&q&&NU(J),J.flags|=1,L2(_,J,$,G),J.child}function cY(_,J,$,q,G,K){if(m6(J),F3=-1,D_=_!==null&&_.type!==J.type,J.updateQueue=null,$=cU(J,q,$,G),qY(_,J),q=lU(),_!==null&&!s0)return dU(_,J,K),s4(_,J,K);return q0&&q&&NU(J),J.flags|=1,L2(_,J,$,K),J.child}function lY(_,J,$,q,G){switch(B(J)){case!1:var K=J.stateNode,z=new J.type(J.memoizedProps,K.context).state;K.updater.enqueueSetState(K,z,null);break;case!0:J.flags|=128,J.flags|=65536,K=Error("Simulated error coming from DevTools");var L=G&-G;if(J.lanes|=L,z=I0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");L=LG(L),AG(L,z,J,U5(K,J)),R$(J,L)}if(m6(J),J.stateNode===null){if(z=t3,K=$.contextType,"contextType"in $&&K!==null&&(K===void 0||K.$$typeof!==I4)&&!fL.has($)&&(fL.add($),L=K===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 K!=="object"?" However, it is set to a "+typeof K+".":K.$$typeof===HZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(K).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",b($)||"Component",L)),typeof K==="object"&&K!==null&&(z=j0(K)),K=new $(q,z),J.mode&C2){e1(!0);try{K=new $(q,z)}finally{e1(!1)}}if(z=J.memoizedState=K.state!==null&&K.state!==void 0?K.state:null,K.updater=KK,J.stateNode=K,K._reactInternals=J,K._reactInternalInstance=AL,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=b($)||"Component",TL.has(z)||(TL.add(z),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.",z,K.state===null?"null":"undefined",z))),typeof $.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"){var I=L=z=null;if(typeof K.componentWillMount==="function"&&K.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof K.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof K.componentWillReceiveProps==="function"&&K.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof K.UNSAFE_componentWillReceiveProps==="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof K.componentWillUpdate==="function"&&K.componentWillUpdate.__suppressDeprecationWarning!==!0?I="componentWillUpdate":typeof K.UNSAFE_componentWillUpdate==="function"&&(I="UNSAFE_componentWillUpdate"),z!==null||L!==null||I!==null){K=b($)||"Component";var C=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";OL.has(K)||(OL.add(K),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=p$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function rY(_,J,$){return G8(J,_.child,null,$),_=m$(J,J.pendingProps),_.flags|=2,K5(J),J.memoizedState=null,_}function _I(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(G0){if(q.mode==="hidden")return _=m$(J,q),J.lanes=536870912,i9(null,_);if(lU(J),(_=j0)?($=MW(_,S5),$=$!==null&&$.data===W8?$:null,$!==null&&(q={dehydrated:$,treeContext:xH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=EH($),q.return=J,J.child=q,I2=J,j0=null)):$=null,$===null)throw z$(J,_),k3(J);return J.lanes=536870912,null}return m$(J,q)}var K=_.memoizedState;if(K!==null){var z=K.dehydrated;if(lU(J),G)if(J.flags&256)J.flags&=-257,J=rY(_,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(gH(),($&536870912)!==0&&r$(J),n0||e8(_,J,$,!1),G=($&_.childLanes)!==0,n0||G){if(q=P0,q!==null&&(z=p4(q,$),z!==0&&z!==K.retryLane))throw K.retryLane=z,f2(_,z),h0(q,_,z),WF;a$(),J=rY(_,J,$)}else _=K.treeContext,j0=H5(z.nextSibling),I2=J,G0=!0,n3=null,j4=!1,B5=null,S5=!1,_!==null&&mH(J,_),J=m$(J,q),J.flags|=4096;return J}return K=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&r$(J),_=i4(K,q),_.ref=J.ref,J.child=_,_.return=J,_}function g$(_,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 IG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var K=b($)||"Unknown";kL[K]||(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.",K,K),kL[K]=!0)}if(J.mode&j2&&r5.recordLegacyContextWarning(J,null),_===null&&(wG(J,J.type),$.contextTypes&&(K=b($)||"Unknown",uL[K]||(uL[K]=!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)",K)))),p6(J),$=iU(_,J,$,q,void 0,G),q=aU(),_!==null&&!n0)return sU(_,J,G),t4(_,J,G);return G0&&q&&jU(J),J.flags|=1,T2(_,J,$,G),J.child}function aY(_,J,$,q,G,K){if(p6(J),X3=-1,h_=_!==null&&_.type!==J.type,J.updateQueue=null,$=rU(J,q,$,G),KY(_,J),q=aU(),_!==null&&!n0)return sU(_,J,K),t4(_,J,K);return G0&&q&&jU(J),J.flags|=1,T2(_,J,$,K),J.child}function sY(_,J,$,q,G){switch(W(J)){case!1:var K=J.stateNode,z=new J.type(J.memoizedProps,K.context).state;K.updater.enqueueSetState(K,z,null);break;case!0:J.flags|=128,J.flags|=65536,K=Error("Simulated error coming from DevTools");var L=G&-G;if(J.lanes|=L,z=P0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");L=RG(L),OG(L,z,J,G5(K,J)),N$(J,L)}if(p6(J),J.stateNode===null){if(z=o3,K=$.contextType,"contextType"in $&&K!==null&&(K===void 0||K.$$typeof!==w4)&&!VL.has($)&&(VL.add($),L=K===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 K!=="object"?" However, it is set to a "+typeof K+".":K.$$typeof===BZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(K).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",b($)||"Component",L)),typeof K==="object"&&K!==null&&(z=V0(K)),K=new $(q,z),J.mode&j2){b1(!0);try{K=new $(q,z)}finally{b1(!1)}}if(z=J.memoizedState=K.state!==null&&K.state!==void 0?K.state:null,K.updater=YF,J.stateNode=K,K._reactInternals=J,K._reactInternalInstance=IL,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=b($)||"Component",PL.has(z)||(PL.add(z),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.",z,K.state===null?"null":"undefined",z))),typeof $.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"){var I=L=z=null;if(typeof K.componentWillMount==="function"&&K.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof K.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof K.componentWillReceiveProps==="function"&&K.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof K.UNSAFE_componentWillReceiveProps==="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof K.componentWillUpdate==="function"&&K.componentWillUpdate.__suppressDeprecationWarning!==!0?I="componentWillUpdate":typeof K.UNSAFE_componentWillUpdate==="function"&&(I="UNSAFE_componentWillUpdate"),z!==null||L!==null||I!==null){K=b($)||"Component";var f=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";CL.has(K)||(CL.add(K),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
135
135
  The above lifecycles should be removed. Learn more about this warning here:
136
- https://react.dev/link/unsafe-component-lifecycles`,K,C,z!==null?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,K,f,z!==null?`
137
137
  `+z:"",L!==null?`
138
138
  `+L:"",I!==null?`
139
- `+I:""))}}K=J.stateNode,z=b($)||"Component",K.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?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!K.getInitialState||K.getInitialState.isReactClassApproved||K.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?",z),K.getDefaultProps&&!K.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.",z),K.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!NL.has($)&&(NL.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)",z)),$.contextTypes&&!PL.has($)&&(PL.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)",z)),typeof K.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.",z),$.prototype&&$.prototype.isPureReactComponent&&typeof K.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.",b($)||"A pure component"),typeof K.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof K.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().",z),typeof K.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof K.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),L=K.props!==q,K.props!==void 0&&L&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),K.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.",z,z),typeof K.getSnapshotBeforeUpdate!=="function"||typeof K.componentDidUpdate==="function"||RL.has($)||(RL.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",b($))),typeof K.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof K.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(L=K.state)&&(typeof L!=="object"||_2(L))&&console.error("%s.state: must be set to an object or null",z),typeof K.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),K=J.stateNode,K.props=q,K.state=J.memoizedState,K.refs={},uU(J),z=$.contextType,K.context=typeof z==="object"&&z!==null?j0(z):t3,K.state===q&&(z=b($)||"Component",IL.has(z)||(IL.add(z),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.",z))),J.mode&C2&&r5.recordLegacyContextWarning(J,K),r5.recordUnsafeLifecycleWarnings(J,K),K.state=J.memoizedState,z=$.getDerivedStateFromProps,typeof z==="function"&&(BG(J,$,z,q),K.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(z=K.state,typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount(),z!==K.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m(J)||"Component"),KK.enqueueReplaceState(K,K.state,null)),h9(J,q,K,G),E9(),K.state=J.memoizedState),typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&d5)!==m1&&(J.flags|=134217728),K=!0}else if(_===null){K=J.stateNode;var e=J.memoizedProps;L=d6($,e),K.props=L;var _1=K.context;I=$.contextType,z=t3,typeof I==="object"&&I!==null&&(z=j0(I)),C=$.getDerivedStateFromProps,I=typeof C==="function"||typeof K.getSnapshotBeforeUpdate==="function",e=J.pendingProps!==e,I||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(e||_1!==z)&&kY(J,K,q,z),Q6=!1;var d=J.memoizedState;K.state=d,h9(J,q,K,G),E9(),_1=J.memoizedState,e||d!==_1||Q6?(typeof C==="function"&&(BG(J,$,C,q),_1=J.memoizedState),(L=Q6||VY(J,$,L,q,d,_1,z))?(I||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount()),typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&d5)!==m1&&(J.flags|=134217728)):(typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&d5)!==m1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=_1),K.props=q,K.state=_1,K.context=z,K=L):(typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&d5)!==m1&&(J.flags|=134217728),K=!1)}else{K=J.stateNode,EU(_,J),z=J.memoizedProps,I=d6($,z),K.props=I,C=J.pendingProps,d=K.context,_1=$.contextType,L=t3,typeof _1==="object"&&_1!==null&&(L=j0(_1)),e=$.getDerivedStateFromProps,(_1=typeof e==="function"||typeof K.getSnapshotBeforeUpdate==="function")||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(z!==C||d!==L)&&kY(J,K,q,L),Q6=!1,d=J.memoizedState,K.state=d,h9(J,q,K,G),E9();var G1=J.memoizedState;z!==C||d!==G1||Q6||_!==null&&_.dependencies!==null&&X$(_.dependencies)?(typeof e==="function"&&(BG(J,$,e,q),G1=J.memoizedState),(I=Q6||VY(J,$,I,q,d,G1,L)||_!==null&&_.dependencies!==null&&X$(_.dependencies))?(_1||typeof K.UNSAFE_componentWillUpdate!=="function"&&typeof K.componentWillUpdate!=="function"||(typeof K.componentWillUpdate==="function"&&K.componentWillUpdate(q,G1,L),typeof K.UNSAFE_componentWillUpdate==="function"&&K.UNSAFE_componentWillUpdate(q,G1,L)),typeof K.componentDidUpdate==="function"&&(J.flags|=4),typeof K.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof K.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=G1),K.props=q,K.state=G1,K.context=L,K=I):(typeof K.componentDidUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&d===_.memoizedState||(J.flags|=1024),K=!1)}if(L=K,u$(_,J),z=(J.flags&128)!==0,L||z){if(L=J.stateNode,S1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,p2=-1;else if($=iW(L),J.mode&C2){e1(!0);try{iW(L)}finally{e1(!1)}}J.flags|=1,_!==null&&z?(J.child=q8(J,_.child,null,G),J.child=q8(J,null,$,G)):L2(_,J,$,G),J.memoizedState=L.state,_=J.child}else _=s4(_,J,G);return G=J.stateNode,K&&G.props!==q&&(h7||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"),h7=!0),_}function dY(_,J,$,q){return x6(),J.flags|=256,L2(_,J,$,q),J.child}function TG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
- %s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=b(J)||"Unknown",VL[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),VL[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=b(J)||"Unknown",jL[J]||(console.error("%s: Function components do not support contextType.",J),jL[J]=!0))}function RG(_){return{baseLanes:_,cachePool:cH()}}function OG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=$5),_}function rY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var K=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(c0.current&k_)!==0),q&&(K=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(q0){if(K?E3(J):h3(J),(_=C0)?($=zB(_,C5),$=$!==null&&$.data!==Y8?$:null,$!==null&&(q={dehydrated:$,treeContext:DH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=kH($),q.return=J,J.child=q,T2=J,C0=null)):$=null,$===null)throw K$(J,_),k3(J);return _Z($)?J.lanes=32:J.lanes=536870912,null}var L=G.children;if(G=G.fallback,K){h3(J);var I=J.mode;return L=E$({mode:"hidden",children:L},I),G=E6(G,I,$,null),L.return=J,G.return=J,L.sibling=G,J.child=L,G=J.child,G.memoizedState=RG($),G.childLanes=OG(_,q,$),J.memoizedState=HK,p9(null,G)}return E3(J),IG(J,L)}var C=_.memoizedState;if(C!==null){var e=C.dehydrated;if(e!==null){if(z)J.flags&256?(E3(J),J.flags&=-257,J=wG(_,J,$)):J.memoizedState!==null?(h3(J),J.child=_.child,J.flags|=128,J=null):(h3(J),L=G.fallback,I=J.mode,G=E$({mode:"visible",children:G.children},I),L=E6(L,I,$,null),L.flags|=2,G.return=J,L.return=J,G.sibling=L,J.child=G,q8(J,_.child,null,$),G=J.child,G.memoizedState=RG($),G.childLanes=OG(_,q,$),J.memoizedState=HK,J=p9(null,G));else if(E3(J),uH(),($&536870912)!==0&&p$(J),_Z(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){L=q.dgst;var _1=q.msg;I=q.stck;var d=q.cstck}K=_1,q=L,G=I,e=d,L=K,I=e,L=L?Error(L):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),L.stack=G||"",L.digest=q,q=I===void 0?null:I,G={value:L,source:null,stack:q},typeof q==="string"&&lZ.set(L,G),V9(G),J=wG(_,J,$)}else if(s0||o8(_,J,$,!1),q=($&_.childLanes)!==0,s0||q){if(q=I0,q!==null&&(G=g4(q,$),G!==0&&G!==C.retryLane))throw C.retryLane=G,N2(_,G),u0(q,_,G),XK;eG(e)||c$(),J=wG(_,J,$)}else eG(e)?(J.flags|=192,J.child=_.child,J=null):(_=C.treeContext,C0=X5(e.nextSibling),T2=J,q0=!0,o3=null,S4=!1,B5=null,C5=!1,_!==null&&bH(J,_),J=IG(J,G.children),J.flags|=4096);return J}}if(K)return h3(J),L=G.fallback,I=J.mode,d=_.child,e=d.sibling,G=d4(d,{mode:"hidden",children:G.children}),G.subtreeFlags=d.subtreeFlags&65011712,e!==null?L=d4(e,L):(L=E6(L,I,$,null),L.flags|=2),L.return=J,G.return=J,G.sibling=L,J.child=G,p9(null,G),G=J.child,L=_.child.memoizedState,L===null?L=RG($):(I=L.cachePool,I!==null?(d=r0._currentValue,I=I.parent!==d?{parent:d,pool:d}:I):I=cH(),L={baseLanes:L.baseLanes|$,cachePool:I}),G.memoizedState=L,G.childLanes=OG(_,q,$),J.memoizedState=HK,p9(_.child,G);return C!==null&&($&62914560)===$&&($&_.lanes)!==0&&p$(J),E3(J),$=_.child,_=$.sibling,$=d4($,{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 IG(_,J){return J=E$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function E$(_,J){return _=O(22,_,null,J),_.lanes=0,_}function wG(_,J,$){return q8(J,_.child,null,$),_=IG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function iY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),jU(_.return,J,$)}function PG(_,J,$,q,G,K){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:K}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=K)}function aY(_,J,$){var q=J.pendingProps,G=q.revealOrder,K=q.tail,z=q.children,L=c0.current;if((q=(L&k_)!==0)?(L=L&D7|k_,J.flags|=128):L&=D7,t(c0,L,J),L=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!kL[L])if(kL[L]=!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(L=K==null?"null":K,!bQ[L])if(K==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")bQ[L]=!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 K!=="visible"&&K!=="collapsed"&&K!=="hidden"?(bQ[L]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',K)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(bQ[L]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',K));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(_2(z)){for(L=0;L<z.length;L++)if(!eH(z[L],L))break _}else if(L=u(z),typeof L==="function"){if(L=L.call(z))for(var I=L.next(),C=0;!I.done;I=L.next()){if(!eH(I.value,C))break _;C++}}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(L2(_,J,z,$),q0?(V3(),z=A_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&iY(_,$,J);else if(_.tag===19)iY(_,$,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&&O$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),PG(J,!1,G,$,K,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&O$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}PG(J,!0,$,null,K,z);break;case"together":PG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function s4(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),p2=-1,G6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(o8(_,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,$=d4(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=d4(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function NG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&X$(_)?!0:!1}function oO(_,J,$){switch(J.tag){case 3:g(J,J.stateNode.containerInfo),v3(J,r0,_.memoizedState.cache),x6();break;case 27:case 5:r(J);break;case 4:g(J,J.stateNode.containerInfo);break;case 10:v3(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,mU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return E3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return rY(_,J,$);return E3(J),_=s4(_,J,$),_!==null?_.sibling:null}E3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(o8(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return aY(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),t(c0,c0.current,J),q)break;else return null;case 22:return J.lanes=0,mY(_,J,$,J.pendingProps);case 24:v3(J,r0,_.memoizedState.cache)}return s4(_,J,$)}function fG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=IU(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)s0=!0;else{if(!NG(_,$)&&(J.flags&128)===0)return s0=!1,oO(_,J,$);s0=(_.flags&131072)!==0?!0:!1}else{if(s0=!1,q=q0)V3(),q=(J.flags&1048576)!==0;q&&(q=J.index,V3(),vH(J,A_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=D3(J.elementType),J.type=_,typeof _==="function")OU(_)?(q=d6(_,q),J.tag=1,J.type=_=u6(_),J=lY(null,J,_,q,$)):(J.tag=0,TG(J,_),J.type=_=u6(_),J=MG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===q_){J.tag=11,J.type=_=RU(_),J=EY(null,J,_,q,$);break _}else if(G===QQ){J.tag=14,J=hY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===H5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=b(_)||_,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 MG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=d6(q,J.pendingProps),lY(_,J,q,G,$);case 3:_:{if(g(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var K=J.memoizedState;G=K.element,EU(_,J),h9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,v3(J,r0,q),q!==K.cache&&yU(J,[r0],$,!0),E9(),q=z.element,K.isDehydrated)if(K={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=K,J.memoizedState=K,J.flags&256){J=dY(_,J,q,$);break _}else if(q!==G){G=U5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),V9(G),J=dY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}C0=X5(_.firstChild),T2=J,q0=!0,o3=null,S4=!1,B5=null,C5=!0,$=ZL(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(x6(),q===G){J=s4(_,J,$);break _}L2(_,J,q,$)}J=J.child}return J;case 26:return u$(_,J),_===null?($=TB(J.type,null,J.pendingProps,null))?J.memoizedState=$:q0||($=J.type,_=J.pendingProps,q=x(l3.current),q=i$(q).createElement($),q[M2]=J,q[x2]=_,A2(q,$,_),D1(q),J.stateNode=q):J.memoizedState=TB(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return r(J),_===null&&q0&&(q=x(l3.current),G=a(),q=J.stateNode=AB(J.type,J.pendingProps,q,G,!1),S4||(G=UB(q,J.type,J.pendingProps,G),G!==null&&(h6(J,0).serverProps=G)),T2=J,C5=!0,G=C0,p3(J.type)?(DK=G,C0=X5(q.firstChild)):C0=G),L2(_,J,J.pendingProps.children,$),u$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&q0&&(K=a(),q=P9(J.type,K.ancestorInfo),G=C0,(z=!G)||(z=xI(G,J.type,J.pendingProps,C5),z!==null?(J.stateNode=z,S4||(K=UB(z,J.type,J.pendingProps,K),K!==null&&(h6(J,0).serverProps=K)),T2=J,C0=X5(z.firstChild),C5=!1,K=!0):K=!1,z=!K),z&&(q&&K$(J,G),k3(J))),r(J),G=J.type,K=J.pendingProps,z=_!==null?_.memoizedProps:null,q=K.children,oG(G,K)?q=null:z!==null&&oG(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=pU(_,J,cO,null,null,$),t_._currentValue=G),u$(_,J),L2(_,J,q,$),J.child;case 6:return _===null&&q0&&($=J.pendingProps,_=a(),q=_.ancestorInfo.current,$=q!=null?y3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=C0,(q=!_)||(q=mI(_,J.pendingProps,C5),q!==null?(J.stateNode=q,T2=J,C0=null,q=!0):q=!1,q=!q),q&&($&&K$(J,_),k3(J))),null;case 13:return rY(_,J,$);case 4:return g(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=q8(J,null,q,$):L2(_,J,q,$),J.child;case 11:return EY(_,J,J.type,J.pendingProps,$);case 7:return L2(_,J,J.pendingProps,$),J.child;case 8:return L2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,L2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,K=G.value,"value"in G||vL||(vL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),v3(J,q,K),L2(_,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."),m6(J),G=j0(G),q=nZ(q,G,void 0),J.flags|=1,L2(_,J,q,$),J.child;case 14:return hY(_,J,J.type,J.pendingProps,$);case 15:return xY(_,J,J.type,J.pendingProps,$);case 19:return aY(_,J,$);case 31:return tO(_,J,$);case 22:return mY(_,J,$,J.pendingProps);case 24:return m6(J),q=j0(r0),_===null?(G=DU(),G===null&&(G=I0,K=VU(),G.pooledCache=K,g6(K),K!==null&&(G.pooledCacheLanes|=$),G=K),J.memoizedState={parent:q,cache:G},uU(J),v3(J,r0,G)):((_.lanes&$)!==0&&(EU(_,J),h9(J,null,null,$),E9()),G=_.memoizedState,K=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),v3(J,r0,q)):(q=K.cache,v3(J,r0,q),q!==G.cache&&yU(J,[r0],$,!0))),L2(_,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 t4(_){_.flags|=4}function CG(_,J,$,q,G){if(J=(_.mode&AP)!==m1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(Cz())_.flags|=8192;else throw Q8=jQ,_K}else _.flags&=-16777217}function sY(_,J){if(J.type!=="stylesheet"||(J.state.loading&k5)!==W8)_.flags&=-16777217;else if(_.flags|=16777216,!PB(J))if(Cz())_.flags|=8192;else throw Q8=jQ,_K}function h$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?I2():536870912,_.lanes|=J,F8|=J)}function c9(_,J){if(!q0)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 P0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&s1)!==m1){for(var{selfBaseDuration:G,child:K}=_;K!==null;)$|=K.lanes|K.childLanes,q|=K.subtreeFlags&65011712,q|=K.flags&65011712,G+=K.treeBaseDuration,K=K.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&s1)!==m1){G=_.actualDuration,K=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,K+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=K}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 nO(_,J,$){var q=J.pendingProps;switch(fU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return P0(J),null;case 1:return P0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),i4(r0,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)t8(J)?(SU(),t4(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,CU());return P0(J),null;case 26:var{type:G,memoizedState:K}=J;return _===null?(t4(J),K!==null?(P0(J),sY(J,K)):(P0(J),CG(J,G,null,q,$))):K?K!==_.memoizedState?(t4(J),P0(J),sY(J,K)):(P0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&t4(J),P0(J),CG(J,G,_,q,$)),null;case 27:if(n(J),$=x(l3.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&t4(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 P0(J),null}_=a(),t8(J)?EH(J,_):(_=AB(G,q,$,_,!0),J.stateNode=_,t4(J))}return P0(J),null;case 5:if(n(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&t4(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 P0(J),null}var z=a();if(t8(J))EH(J,z);else{switch(K=x(l3.current),P9(G,z.ancestorInfo),z=z.context,K=i$(K),z){case r7:K=K.createElementNS(L7,G);break;case Jq:K=K.createElementNS(XQ,G);break;default:switch(G){case"svg":K=K.createElementNS(L7,G);break;case"math":K=K.createElementNS(XQ,G);break;case"script":K=K.createElement("div"),K.innerHTML="<script></script>",K=K.removeChild(K.firstChild);break;case"select":K=typeof q.is==="string"?K.createElement("select",{is:q.is}):K.createElement("select"),q.multiple?K.multiple=!0:q.size&&(K.size=q.size);break;default:K=typeof q.is==="string"?K.createElement(G,{is:q.is}):K.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(K)!=="[object HTMLUnknownElement]"||c5.call(QA,G)||(QA[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)))}}K[M2]=J,K[x2]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)K.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===J)break _;for(;z.sibling===null;){if(z.return===null||z.return===J)break _;z=z.return}z.sibling.return=z.return,z=z.sibling}J.stateNode=K;_:switch(A2(K,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&t4(J)}}return P0(J),CG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&t4(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(_=x(l3.current),$=a(),t8(J)){if(_=J.stateNode,$=J.memoizedProps,G=!S4,q=null,K=T2,K!==null)switch(K.tag){case 3:G&&(G=WB(_,$,q),G!==null&&(h6(J,0).serverProps=G));break;case 27:case 5:q=K.memoizedProps,G&&(G=WB(_,$,q),G!==null&&(h6(J,0).serverProps=G))}_[M2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||_B(_.nodeValue,$)?!0:!1,_||k3(J,!0)}else G=$.ancestorInfo.current,G!=null&&y3(q,G.tag,$.ancestorInfo.implicitRootScope),_=i$(_).createTextNode(q),_[M2]=J,J.stateNode=_}return P0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=t8(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.");_[M2]=J,P0(J),(J.mode&s1)!==m1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else SU(),x6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,P0(J),(J.mode&s1)!==m1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=CU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return K5(J),J;return K5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return P0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,K=t8(J),G!==null&&G.dehydrated!==null){if(_===null){if(!K)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(K=J.memoizedState,K=K!==null?K.dehydrated:null,!K)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");K[M2]=J,P0(J),(J.mode&s1)!==m1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else SU(),x6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,P0(J),(J.mode&s1)!==m1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=CU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return K5(J),J;return K5(J),null}}if(K5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&s1)!==m1&&D9(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),K=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(K=q.memoizedState.cachePool.pool),K!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),h$(J,J.updateQueue),P0(J),(J.mode&s1)!==m1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&lG(J.stateNode.containerInfo),P0(J),null;case 10:return i4(J.type,J),P0(J),null;case 19:if(J1(c0,J),q=J.memoizedState,q===null)return P0(J),null;if(G=(J.flags&128)!==0,K=q.rendering,K===null)if(G)c9(q,!1);else{if(D0!==H3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(K=O$(_),K!==null){J.flags|=128,c9(q,!1),_=K.updateQueue,J.updateQueue=_,h$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)VH($,_),$=$.sibling;return t(c0,c0.current&D7|k_,J),q0&&r4(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&F2()>pQ&&(J.flags|=128,G=!0,c9(q,!1),J.lanes=4194304)}else{if(!G)if(_=O$(K),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,h$(J,_),c9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!K.alternate&&!q0)return P0(J),null}else 2*F2()-q.renderingStartTime>pQ&&$!==536870912&&(J.flags|=128,G=!0,c9(q,!1),J.lanes=4194304);q.isBackwards?(K.sibling=J.child,J.child=K):(_=q.last,_!==null?_.sibling=K:J.child=K,q.last=K)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=F2(),_.sibling=null,$=c0.current,$=G?$&D7|k_:$&D7,t(c0,$,J),q0&&r4(J,q.treeForkCount),_;return P0(J),null;case 22:case 23:return K5(J),xU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(P0(J),J.subtreeFlags&6&&(J.flags|=8192)):P0(J),$=J.updateQueue,$!==null&&h$(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&&J1(J8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),i4(r0,J),P0(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 eO(_,J){switch(fU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&s1)!==m1&&D9(J),J):null;case 3:return i4(r0,J),c(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return n(J),null;case 31:if(J.memoizedState!==null){if(K5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");x6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&s1)!==m1&&D9(J),J):null;case 13:if(K5(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.");x6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&s1)!==m1&&D9(J),J):null;case 19:return J1(c0,J),null;case 4:return c(J),null;case 10:return i4(J.type,J),null;case 22:case 23:return K5(J),xU(J),_!==null&&J1(J8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&s1)!==m1&&D9(J),J):null;case 24:return i4(r0,J),null;case 25:return null;default:return null}}function tY(_,J){switch(fU(J),J.tag){case 3:i4(r0,J),c(J);break;case 26:case 27:case 5:n(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&K5(J);break;case 13:K5(J);break;case 19:J1(c0,J);break;case 10:i4(J.type,J);break;case 22:case 23:K5(J),xU(J),_!==null&&J1(J8,J);break;case 24:i4(r0,J)}}function W4(_){return(_.mode&s1)!==m1}function oY(_,J){W4(_)?(B4(),l9(J,_),z4()):l9(J,_)}function SG(_,J,$){W4(_)?(B4(),$7($,_,J),z4()):$7($,_,J)}function l9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&c2)!==VQ&&(c7=!0),q=W1(J,IP,$),(_&c2)!==VQ&&(c7=!1),q!==void 0&&typeof q!=="function")){var K=void 0;K=($.tag&L5)!==0?"useLayoutEffect":($.tag&c2)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
139
+ `+I:""))}}K=J.stateNode,z=b($)||"Component",K.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?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!K.getInitialState||K.getInitialState.isReactClassApproved||K.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?",z),K.getDefaultProps&&!K.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.",z),K.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!vL.has($)&&(vL.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)",z)),$.contextTypes&&!jL.has($)&&(jL.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)",z)),typeof K.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.",z),$.prototype&&$.prototype.isPureReactComponent&&typeof K.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.",b($)||"A pure component"),typeof K.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof K.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().",z),typeof K.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof K.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),L=K.props!==q,K.props!==void 0&&L&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),K.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.",z,z),typeof K.getSnapshotBeforeUpdate!=="function"||typeof K.componentDidUpdate==="function"||NL.has($)||(NL.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",b($))),typeof K.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof K.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof $.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(L=K.state)&&(typeof L!=="object"||U2(L))&&console.error("%s.state: must be set to an object or null",z),typeof K.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),K=J.stateNode,K.props=q,K.state=J.memoizedState,K.refs={},mU(J),z=$.contextType,K.context=typeof z==="object"&&z!==null?V0(z):o3,K.state===q&&(z=b($)||"Component",fL.has(z)||(fL.add(z),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.",z))),J.mode&j2&&r5.recordLegacyContextWarning(J,K),r5.recordUnsafeLifecycleWarnings(J,K),K.state=J.memoizedState,z=$.getDerivedStateFromProps,typeof z==="function"&&(MG(J,$,z,q),K.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(z=K.state,typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount(),z!==K.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m(J)||"Component"),YF.enqueueReplaceState(K,K.state,null)),p9(J,q,K,G),g9(),K.state=J.memoizedState),typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&i5)!==p1&&(J.flags|=134217728),K=!0}else if(_===null){K=J.stateNode;var n=J.memoizedProps;L=r6($,n),K.props=L;var _1=K.context;I=$.contextType,z=o3,typeof I==="object"&&I!==null&&(z=V0(I)),f=$.getDerivedStateFromProps,I=typeof f==="function"||typeof K.getSnapshotBeforeUpdate==="function",n=J.pendingProps!==n,I||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(n||_1!==z)&&EY(J,K,q,z),q6=!1;var i=J.memoizedState;K.state=i,p9(J,q,K,G),g9(),_1=J.memoizedState,n||i!==_1||q6?(typeof f==="function"&&(MG(J,$,f,q),_1=J.memoizedState),(L=q6||bY(J,$,L,q,i,_1,z))?(I||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount()),typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&i5)!==p1&&(J.flags|=134217728)):(typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&i5)!==p1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=_1),K.props=q,K.state=_1,K.context=z,K=L):(typeof K.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&i5)!==p1&&(J.flags|=134217728),K=!1)}else{K=J.stateNode,gU(_,J),z=J.memoizedProps,I=r6($,z),K.props=I,f=J.pendingProps,i=K.context,_1=$.contextType,L=o3,typeof _1==="object"&&_1!==null&&(L=V0(_1)),n=$.getDerivedStateFromProps,(_1=typeof n==="function"||typeof K.getSnapshotBeforeUpdate==="function")||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(z!==f||i!==L)&&EY(J,K,q,L),q6=!1,i=J.memoizedState,K.state=i,p9(J,q,K,G),g9();var Z1=J.memoizedState;z!==f||i!==Z1||q6||_!==null&&_.dependencies!==null&&B$(_.dependencies)?(typeof n==="function"&&(MG(J,$,n,q),Z1=J.memoizedState),(I=q6||bY(J,$,I,q,i,Z1,L)||_!==null&&_.dependencies!==null&&B$(_.dependencies))?(_1||typeof K.UNSAFE_componentWillUpdate!=="function"&&typeof K.componentWillUpdate!=="function"||(typeof K.componentWillUpdate==="function"&&K.componentWillUpdate(q,Z1,L),typeof K.UNSAFE_componentWillUpdate==="function"&&K.UNSAFE_componentWillUpdate(q,Z1,L)),typeof K.componentDidUpdate==="function"&&(J.flags|=4),typeof K.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof K.componentDidUpdate!=="function"||z===_.memoizedProps&&i===_.memoizedState||(J.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&i===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=Z1),K.props=q,K.state=Z1,K.context=L,K=I):(typeof K.componentDidUpdate!=="function"||z===_.memoizedProps&&i===_.memoizedState||(J.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&i===_.memoizedState||(J.flags|=1024),K=!1)}if(L=K,g$(_,J),z=(J.flags&128)!==0,L||z){if(L=J.stateNode,G1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,c2=-1;else if($=nB(L),J.mode&j2){b1(!0);try{nB(L)}finally{b1(!1)}}J.flags|=1,_!==null&&z?(J.child=G8(J,_.child,null,G),J.child=G8(J,null,$,G)):T2(_,J,$,G),J.memoizedState=L.state,_=J.child}else _=t4(_,J,G);return G=J.stateNode,K&&G.props!==q&&(m7||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"),m7=!0),_}function tY(_,J,$,q){return g6(),J.flags|=256,T2(_,J,$,q),J.child}function wG(_,J){J&&J.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=b(J)||"Unknown",bL[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),bL[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=b(J)||"Unknown",DL[J]||(console.error("%s: Function components do not support contextType.",J),DL[J]=!0))}function PG(_){return{baseLanes:_,cachePool:aH()}}function NG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=Q5),_}function oY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var K=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(d0.current&b_)!==0),q&&(K=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(G0){if(K?h3(J):x3(J),(_=j0)?($=MW(_,S5),$=$!==null&&$.data!==W8?$:null,$!==null&&(q={dehydrated:$,treeContext:xH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=EH($),q.return=J,J.child=q,I2=J,j0=null)):$=null,$===null)throw z$(J,_),k3(J);return qZ($)?J.lanes=32:J.lanes=536870912,null}var L=G.children;if(G=G.fallback,K){x3(J);var I=J.mode;return L=p$({mode:"hidden",children:L},I),G=x6(G,I,$,null),L.return=J,G.return=J,L.sibling=G,J.child=L,G=J.child,G.memoizedState=PG($),G.childLanes=NG(_,q,$),J.memoizedState=BF,i9(null,G)}return h3(J),CG(J,L)}var f=_.memoizedState;if(f!==null){var n=f.dehydrated;if(n!==null){if(z)J.flags&256?(h3(J),J.flags&=-257,J=fG(_,J,$)):J.memoizedState!==null?(x3(J),J.child=_.child,J.flags|=128,J=null):(x3(J),L=G.fallback,I=J.mode,G=p$({mode:"visible",children:G.children},I),L=x6(L,I,$,null),L.flags|=2,G.return=J,L.return=J,G.sibling=L,J.child=G,G8(J,_.child,null,$),G=J.child,G.memoizedState=PG($),G.childLanes=NG(_,q,$),J.memoizedState=BF,J=i9(null,G));else if(h3(J),gH(),($&536870912)!==0&&r$(J),qZ(n)){if(q=n.nextSibling&&n.nextSibling.dataset,q){L=q.dgst;var _1=q.msg;I=q.stck;var i=q.cstck}K=_1,q=L,G=I,n=i,L=K,I=n,L=L?Error(L):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),L.stack=G||"",L.digest=q,q=I===void 0?null:I,G={value:L,source:null,stack:q},typeof q==="string"&&aZ.set(L,G),u9(G),J=fG(_,J,$)}else if(n0||e8(_,J,$,!1),q=($&_.childLanes)!==0,n0||q){if(q=P0,q!==null&&(G=p4(q,$),G!==0&&G!==f.retryLane))throw f.retryLane=G,f2(_,G),h0(q,_,G),WF;QZ(n)||a$(),J=fG(_,J,$)}else QZ(n)?(J.flags|=192,J.child=_.child,J=null):(_=f.treeContext,j0=H5(n.nextSibling),I2=J,G0=!0,n3=null,j4=!1,B5=null,S5=!1,_!==null&&mH(J,_),J=CG(J,G.children),J.flags|=4096);return J}}if(K)return x3(J),L=G.fallback,I=J.mode,i=_.child,n=i.sibling,G=i4(i,{mode:"hidden",children:G.children}),G.subtreeFlags=i.subtreeFlags&65011712,n!==null?L=i4(n,L):(L=x6(L,I,$,null),L.flags|=2),L.return=J,G.return=J,G.sibling=L,J.child=G,i9(null,G),G=J.child,L=_.child.memoizedState,L===null?L=PG($):(I=L.cachePool,I!==null?(i=s0._currentValue,I=I.parent!==i?{parent:i,pool:i}:I):I=aH(),L={baseLanes:L.baseLanes|$,cachePool:I}),G.memoizedState=L,G.childLanes=NG(_,q,$),J.memoizedState=BF,i9(_.child,G);return f!==null&&($&62914560)===$&&($&_.lanes)!==0&&r$(J),h3(J),$=_.child,_=$.sibling,$=i4($,{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 CG(_,J){return J=p$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function p$(_,J){return _=O(22,_,null,J),_.lanes=0,_}function fG(_,J,$){return G8(J,_.child,null,$),_=CG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function nY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),kU(_.return,J,$)}function SG(_,J,$,q,G,K){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:K}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=K)}function eY(_,J,$){var q=J.pendingProps,G=q.revealOrder,K=q.tail,z=q.children,L=d0.current;if((q=(L&b_)!==0)?(L=L&b7|b_,J.flags|=128):L&=b7,J1(d0,L,J),L=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!EL[L])if(EL[L]=!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(L=K==null?"null":K,!mQ[L])if(K==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")mQ[L]=!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 K!=="visible"&&K!=="collapsed"&&K!=="hidden"?(mQ[L]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',K)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(mQ[L]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',K));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(U2(z)){for(L=0;L<z.length;L++)if(!qY(z[L],L))break _}else if(L=k(z),typeof L==="function"){if(L=L.call(z))for(var I=L.next(),f=0;!I.done;I=L.next()){if(!qY(I.value,f))break _;f++}}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(T2(_,J,z,$),G0?(y3(),z=O_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&nY(_,$,J);else if(_.tag===19)nY(_,$,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&&C$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),SG(J,!1,G,$,K,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&C$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}SG(J,!0,$,null,K,z);break;case"together":SG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function t4(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),c2=-1,Z6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(e8(_,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,$=i4(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=i4(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function jG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&B$(_)?!0:!1}function JI(_,J,$){switch(J.tag){case 3:g(J,J.stateNode.containerInfo),D3(J,s0,_.memoizedState.cache),g6();break;case 27:case 5:d(J);break;case 4:g(J,J.stateNode.containerInfo);break;case 10:D3(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,lU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return h3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return oY(_,J,$);return h3(J),_=t4(_,J,$),_!==null?_.sibling:null}h3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(e8(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return eY(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),J1(d0,d0.current,J),q)break;else return null;case 22:return J.lanes=0,dY(_,J,$,J.pendingProps);case 24:D3(J,s0,_.memoizedState.cache)}return t4(_,J,$)}function vG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=CU(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)n0=!0;else{if(!jG(_,$)&&(J.flags&128)===0)return n0=!1,JI(_,J,$);n0=(_.flags&131072)!==0?!0:!1}else{if(n0=!1,q=G0)y3(),q=(J.flags&1048576)!==0;q&&(q=J.index,y3(),hH(J,O_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=u3(J.elementType),J.type=_,typeof _==="function")NU(_)?(q=r6(_,q),J.tag=1,J.type=_=h6(_),J=sY(null,J,_,q,$)):(J.tag=0,wG(J,_),J.type=_=h6(_),J=IG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===F_){J.tag=11,J.type=_=PU(_),J=pY(null,J,_,q,$);break _}else if(G===FQ){J.tag=14,J=cY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===Y5&&(J=" Did you wrap a component in React.lazy() more than once?"),$=b(_)||_,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 IG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=r6(q,J.pendingProps),sY(_,J,q,G,$);case 3:_:{if(g(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var K=J.memoizedState;G=K.element,gU(_,J),p9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,D3(J,s0,q),q!==K.cache&&DU(J,[s0],$,!0),g9(),q=z.element,K.isDehydrated)if(K={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=K,J.memoizedState=K,J.flags&256){J=tY(_,J,q,$);break _}else if(q!==G){G=G5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),u9(G),J=tY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}j0=H5(_.firstChild),I2=J,G0=!0,n3=null,j4=!1,B5=null,S5=!0,$=YL(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(g6(),q===G){J=t4(_,J,$);break _}T2(_,J,q,$)}J=J.child}return J;case 26:return g$(_,J),_===null?($=PW(J.type,null,J.pendingProps,null))?J.memoizedState=$:G0||($=J.type,_=J.pendingProps,q=x(d3.current),q=n$(q).createElement($),q[O2]=J,q[m2]=_,R2(q,$,_),E1(q),J.stateNode=q):J.memoizedState=PW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return d(J),_===null&&G0&&(q=x(d3.current),G=a(),q=J.stateNode=IW(J.type,J.pendingProps,q,G,!1),j4||(G=XW(q,J.type,J.pendingProps,G),G!==null&&(m6(J,0).serverProps=G)),I2=J,S5=!0,G=j0,c3(J.type)?(hF=G,j0=H5(q.firstChild)):j0=G),T2(_,J,J.pendingProps.children,$),g$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&G0&&(K=a(),q=S9(J.type,K.ancestorInfo),G=j0,(z=!G)||(z=cI(G,J.type,J.pendingProps,S5),z!==null?(J.stateNode=z,j4||(K=XW(z,J.type,J.pendingProps,K),K!==null&&(m6(J,0).serverProps=K)),I2=J,j0=H5(z.firstChild),S5=!1,K=!0):K=!1,z=!K),z&&(q&&z$(J,G),k3(J))),d(J),G=J.type,K=J.pendingProps,z=_!==null?_.memoizedProps:null,q=K.children,JZ(G,K)?q=null:z!==null&&JZ(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=iU(_,J,rO,null,null,$),_J._currentValue=G),g$(_,J),T2(_,J,q,$),J.child;case 6:return _===null&&G0&&($=J.pendingProps,_=a(),q=_.ancestorInfo.current,$=q!=null?V3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=j0,(q=!_)||(q=lI(_,J.pendingProps,S5),q!==null?(J.stateNode=q,I2=J,j0=null,q=!0):q=!1,q=!q),q&&($&&z$(J,_),k3(J))),null;case 13:return oY(_,J,$);case 4:return g(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=G8(J,null,q,$):T2(_,J,q,$),J.child;case 11:return pY(_,J,J.type,J.pendingProps,$);case 7:return T2(_,J,J.pendingProps,$),J.child;case 8:return T2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,T2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,K=G.value,"value"in G||hL||(hL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),D3(J,q,K),T2(_,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."),p6(J),G=V0(G),q=$F(q,G,void 0),J.flags|=1,T2(_,J,q,$),J.child;case 14:return cY(_,J,J.type,J.pendingProps,$);case 15:return lY(_,J,J.type,J.pendingProps,$);case 19:return eY(_,J,$);case 31:return _I(_,J,$);case 22:return dY(_,J,$,J.pendingProps);case 24:return p6(J),q=V0(s0),_===null?(G=hU(),G===null&&(G=P0,K=uU(),G.pooledCache=K,c6(K),K!==null&&(G.pooledCacheLanes|=$),G=K),J.memoizedState={parent:q,cache:G},mU(J),D3(J,s0,G)):((_.lanes&$)!==0&&(gU(_,J),p9(J,null,null,$),g9()),G=_.memoizedState,K=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),D3(J,s0,q)):(q=K.cache,D3(J,s0,q),q!==G.cache&&DU(J,[s0],$,!0))),T2(_,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 o4(_){_.flags|=4}function VG(_,J,$,q,G){if(J=(_.mode&OP)!==p1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(yz())_.flags|=8192;else throw U8=DQ,qF}else _.flags&=-16777217}function _z(_,J){if(J.type!=="stylesheet"||(J.state.loading&k5)!==A8)_.flags&=-16777217;else if(_.flags|=16777216,!jW(J))if(yz())_.flags|=8192;else throw U8=DQ,qF}function c$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?P2():536870912,_.lanes|=J,H8|=J)}function r9(_,J){if(!G0)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 N0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&t1)!==p1){for(var{selfBaseDuration:G,child:K}=_;K!==null;)$|=K.lanes|K.childLanes,q|=K.subtreeFlags&65011712,q|=K.flags&65011712,G+=K.treeBaseDuration,K=K.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&t1)!==p1){G=_.actualDuration,K=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,K+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=K}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 $I(_,J,$){var q=J.pendingProps;switch(vU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return N0(J),null;case 1:return N0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),a4(s0,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)n8(J)?(yU(),o4(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,VU());return N0(J),null;case 26:var{type:G,memoizedState:K}=J;return _===null?(o4(J),K!==null?(N0(J),_z(J,K)):(N0(J),VG(J,G,null,q,$))):K?K!==_.memoizedState?(o4(J),N0(J),_z(J,K)):(N0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&o4(J),N0(J),VG(J,G,_,q,$)),null;case 27:if(t(J),$=x(d3.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&o4(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 N0(J),null}_=a(),n8(J)?pH(J,_):(_=IW(G,q,$,_,!0),J.stateNode=_,o4(J))}return N0(J),null;case 5:if(t(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&o4(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 N0(J),null}var z=a();if(n8(J))pH(J,z);else{switch(K=x(d3.current),S9(G,z.ancestorInfo),z=z.context,K=n$(K),z){case a7:K=K.createElementNS(M7,G);break;case Gq:K=K.createElementNS(BQ,G);break;default:switch(G){case"svg":K=K.createElementNS(M7,G);break;case"math":K=K.createElementNS(BQ,G);break;case"script":K=K.createElement("div"),K.innerHTML="<script></script>",K=K.removeChild(K.firstChild);break;case"select":K=typeof q.is==="string"?K.createElement("select",{is:q.is}):K.createElement("select"),q.multiple?K.multiple=!0:q.size&&(K.size=q.size);break;default:K=typeof q.is==="string"?K.createElement(G,{is:q.is}):K.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(K)!=="[object HTMLUnknownElement]"||l5.call(FA,G)||(FA[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)))}}K[O2]=J,K[m2]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)K.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===J)break _;for(;z.sibling===null;){if(z.return===null||z.return===J)break _;z=z.return}z.sibling.return=z.return,z=z.sibling}J.stateNode=K;_:switch(R2(K,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&o4(J)}}return N0(J),VG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&o4(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(_=x(d3.current),$=a(),n8(J)){if(_=J.stateNode,$=J.memoizedProps,G=!j4,q=null,K=I2,K!==null)switch(K.tag){case 3:G&&(G=RW(_,$,q),G!==null&&(m6(J,0).serverProps=G));break;case 27:case 5:q=K.memoizedProps,G&&(G=RW(_,$,q),G!==null&&(m6(J,0).serverProps=G))}_[O2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||UW(_.nodeValue,$)?!0:!1,_||k3(J,!0)}else G=$.ancestorInfo.current,G!=null&&V3(q,G.tag,$.ancestorInfo.implicitRootScope),_=n$(_).createTextNode(q),_[O2]=J,J.stateNode=_}return N0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=n8(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.");_[O2]=J,N0(J),(J.mode&t1)!==p1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else yU(),g6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,N0(J),(J.mode&t1)!==p1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=VU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return K5(J),J;return K5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return N0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,K=n8(J),G!==null&&G.dehydrated!==null){if(_===null){if(!K)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(K=J.memoizedState,K=K!==null?K.dehydrated:null,!K)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");K[O2]=J,N0(J),(J.mode&t1)!==p1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else yU(),g6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,N0(J),(J.mode&t1)!==p1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=VU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return K5(J),J;return K5(J),null}}if(K5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&t1)!==p1&&h9(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),K=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(K=q.memoizedState.cachePool.pool),K!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),c$(J,J.updateQueue),N0(J),(J.mode&t1)!==p1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&aG(J.stateNode.containerInfo),N0(J),null;case 10:return a4(J.type,J),N0(J),null;case 19:if(Q1(d0,J),q=J.memoizedState,q===null)return N0(J),null;if(G=(J.flags&128)!==0,K=q.rendering,K===null)if(G)r9(q,!1);else{if(b0!==Y3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(K=C$(_),K!==null){J.flags|=128,r9(q,!1),_=K.updateQueue,J.updateQueue=_,c$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)bH($,_),$=$.sibling;return J1(d0,d0.current&b7|b_,J),G0&&r4(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&z2()>rQ&&(J.flags|=128,G=!0,r9(q,!1),J.lanes=4194304)}else{if(!G)if(_=C$(K),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,c$(J,_),r9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!K.alternate&&!G0)return N0(J),null}else 2*z2()-q.renderingStartTime>rQ&&$!==536870912&&(J.flags|=128,G=!0,r9(q,!1),J.lanes=4194304);q.isBackwards?(K.sibling=J.child,J.child=K):(_=q.last,_!==null?_.sibling=K:J.child=K,q.last=K)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=z2(),_.sibling=null,$=d0.current,$=G?$&b7|b_:$&b7,J1(d0,$,J),G0&&r4(J,q.treeForkCount),_;return N0(J),null;case 22:case 23:return K5(J),cU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(N0(J),J.subtreeFlags&6&&(J.flags|=8192)):N0(J),$=J.updateQueue,$!==null&&c$(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&&Q1(Q8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),a4(s0,J),N0(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 QI(_,J){switch(vU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&t1)!==p1&&h9(J),J):null;case 3:return a4(s0,J),c(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return t(J),null;case 31:if(J.memoizedState!==null){if(K5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");g6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&t1)!==p1&&h9(J),J):null;case 13:if(K5(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.");g6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&t1)!==p1&&h9(J),J):null;case 19:return Q1(d0,J),null;case 4:return c(J),null;case 10:return a4(J.type,J),null;case 22:case 23:return K5(J),cU(J),_!==null&&Q1(Q8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&t1)!==p1&&h9(J),J):null;case 24:return a4(s0,J),null;case 25:return null;default:return null}}function Jz(_,J){switch(vU(J),J.tag){case 3:a4(s0,J),c(J);break;case 26:case 27:case 5:t(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&K5(J);break;case 13:K5(J);break;case 19:Q1(d0,J);break;case 10:a4(J.type,J);break;case 22:case 23:K5(J),cU(J),_!==null&&Q1(Q8,J);break;case 24:a4(s0,J)}}function L4(_){return(_.mode&t1)!==p1}function $z(_,J){L4(_)?(B4(),a9(J,_),W4()):a9(J,_)}function yG(_,J,$){L4(_)?(B4(),q7($,_,J),W4()):q7($,_,J)}function a9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&l2)!==bQ&&(d7=!0),q=M1(J,CP,$),(_&l2)!==bQ&&(d7=!1),q!==void 0&&typeof q!=="function")){var K=void 0;K=($.tag&A5)!==0?"useLayoutEffect":($.tag&l2)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof q.then==="function"?`
141
141
 
142
142
  It looks like you wrote `+K+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
@@ -150,11 +150,11 @@ It looks like you wrote `+K+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,W1(J,function(L,I){console.error("%s must not return anything besides a function, which is used for clean-up.%s",L,I)},K,z)}$=$.next}while($!==G)}}catch(L){B0(J,J.return,L)}}function $7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var K=G.next;q=K;do{if((q.tag&_)===_){var z=q.inst,L=z.destroy;L!==void 0&&(z.destroy=void 0,(_&c2)!==VQ&&(c7=!0),G=J,W1(G,wP,G,$,L),(_&c2)!==VQ&&(c7=!1))}q=q.next}while(q!==K)}}catch(I){B0(J,J.return,I)}}function nY(_,J){W4(_)?(B4(),l9(J,_),z4()):l9(J,_)}function jG(_,J,$){W4(_)?(B4(),$7($,_,J),z4()):$7($,_,J)}function eY(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||h7||($.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(_,JY,J,$)}catch(q){B0(_,_.return,q)}}}function _I(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function JI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||h7||(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=d6(_.type,$),K=W1(_,_I,J,G,q);$=DL,K!==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=K}catch(z){B0(_,_.return,z)}}function _z(_,J,$){$.props=d6(_.type,_.memoizedProps),$.state=_.memoizedState,W4(_)?(B4(),W1(_,eW,_,J,$),z4()):W1(_,eW,_,J,$)}function $I(_){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(W4(_))try{B4(),_.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().",m(_)),J.current=$}}function d9(_,J){try{W1(_,$I,_)}catch($){B0(_,J,$)}}function L4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(W4(_))try{B4(),W1(_,q)}finally{z4(_)}else W1(_,q)}catch(G){B0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(W4(_))try{B4(),W1(_,$,null)}finally{z4(_)}else W1(_,$,null)}catch(G){B0(_,J,G)}else $.current=null}function Jz(_,J,$,q){var G=_.memoizedProps,K=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",NQ&&(J="nested-update"),typeof G==="function"&&G(K,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(K,J,q,$)}function QI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",NQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function $z(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{W1(_,CI,q,J,$,_)}catch(G){B0(_,_.return,G)}}function yG(_,J,$){try{W1(_,jI,_.stateNode,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Qz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&p3(_.type)||_.tag===4}function VG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Qz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&p3(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function kG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(XB($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(XB($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=l4));else if(q!==4&&(q===27&&p3(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(kG(_,J,$),_=_.sibling;_!==null;)kG(_,J,$),_=_.sibling}function x$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&p3(_.type)&&($=_.stateNode),_=_.child,_!==null))for(x$(_,J,$),_=_.sibling;_!==null;)x$(_,J,$),_=_.sibling}function qI(_){for(var J,$=_.return;$!==null;){if(Qz($)){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,$=VG(_),x$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(FB($),J.flags&=-33),J=VG(_),x$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=VG(_),kG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function qz(_){var{stateNode:J,memoizedProps:$}=_;try{W1(_,dI,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Uz(_,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 UI(_,J){if(_=_.containerInfo,VK=Uq,_=OH(_),WU(_)){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:K}=q;q=q.focusOffset;try{$.nodeType,K.nodeType}catch(I1){$=null;break _}var z=0,L=-1,I=-1,C=0,e=0,_1=_,d=null;J:for(;;){for(var G1;;){if(_1!==$||G!==0&&_1.nodeType!==3||(L=z+G),_1!==K||q!==0&&_1.nodeType!==3||(I=z+q),_1.nodeType===3&&(z+=_1.nodeValue.length),(G1=_1.firstChild)===null)break;d=_1,_1=G1}for(;;){if(_1===_)break J;if(d===$&&++C===G&&(L=z),d===K&&++e===q&&(I=z),(G1=_1.nextSibling)!==null)break;_1=d,d=_1.parentNode}_1=G1}$=L===-1||I===-1?null:{start:L,end:I}}else $=null}$=$||{start:0,end:0}}else $=null;kK={focusedElem:_,selectionRange:$},Uq=!1;for(H2=J;H2!==null;)if(J=H2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,H2=_;else for(;H2!==null;){switch(_=J=H2,$=_.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&&JI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)nG(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":nG(_);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,H2=_;break}H2=J.return}}function Gz(_,J,$){var q=G5(),G=F4(),K=H4(),z=Y4(),L=$.flags;switch($.tag){case 0:case 11:case 15:A4(_,$),L&4&&oY($,L5|y5);break;case 1:if(A4(_,$),L&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||h7||(_.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")),W4($)?(B4(),W1($,eZ,$,_),z4()):W1($,eZ,$,_);else{var I=d6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||h7||(_.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")),W4($)?(B4(),W1($,tW,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate),z4()):W1($,tW,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate)}L&64&&eY($),L&512&&d9($,$.return);break;case 3:if(J=a4(),A4(_,$),L&64&&(L=$.updateQueue,L!==null)){if(I=null,$.child!==null)switch($.child.tag){case 27:case 5:I=$.child.stateNode;break;case 1:I=$.child.stateNode}try{W1($,JY,L,I)}catch(e){B0($,$.return,e)}}_.effectDuration+=Y$(J);break;case 27:J===null&&L&4&&qz($);case 26:case 5:if(A4(_,$),J===null){if(L&4)$z($);else if(L&64){_=$.type,J=$.memoizedProps,I=$.stateNode;try{W1($,SI,I,_,J,$)}catch(e){B0($,$.return,e)}}}L&512&&d9($,$.return);break;case 12:if(L&4){L=a4(),A4(_,$),_=$.stateNode,_.effectDuration+=v9(L);try{W1($,Jz,$,J,n3,_.effectDuration)}catch(e){B0($,$.return,e)}}else A4(_,$);break;case 31:A4(_,$),L&4&&Fz(_,$);break;case 13:A4(_,$),L&4&&Xz(_,$),L&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(L=BI.bind(null,$),gI(_,L))));break;case 22:if(L=$.memoizedState!==null||X3,!L){J=J!==null&&J.memoizedState!==null||t0,I=X3;var C=t0;X3=L,(t0=J)&&!C?(M4(_,$,($.subtreeFlags&8772)!==0),($.mode&s1)!==m1&&0<=u1&&0<=x1&&0.05<x1-u1&&$$($,u1,x1)):A4(_,$),X3=I,t0=C}break;case 30:break;default:A4(_,$)}($.mode&s1)!==m1&&0<=u1&&0<=x1&&((E0||0.05<v0)&&Z4($,u1,x1,v0,y0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<x1-u1&&(Uz($.return.alternate,$.return)||G4($,u1,x1,"Mount"))),Z5(q),X4(G),y0=K,E0=z}function Zz(_){var J=_.alternate;J!==null&&(_.alternate=null,Zz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&w1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function o4(_,J,$){for($=$.child;$!==null;)Kz(_,J,$),$=$.sibling}function Kz(_,J,$){if(f2&&typeof f2.onCommitFiberUnmount==="function")try{f2.onCommitFiberUnmount(B7,$)}catch(C){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",C))}var q=G5(),G=F4(),K=H4(),z=Y4();switch($.tag){case 26:t0||L4($,J),o4(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:t0||L4($,J);var L=o0,I=_5;p3($.type)&&(o0=$.stateNode,_5=!1),o4(_,J,$),W1($,__,$.stateNode),o0=L,_5=I;break;case 5:t0||L4($,J);case 6:if(L=o0,I=_5,o0=null,o4(_,J,$),o0=L,_5=I,o0!==null)if(_5)try{W1($,kI,o0,$.stateNode)}catch(C){B0($,J,C)}else try{W1($,VI,o0,$.stateNode)}catch(C){B0($,J,C)}break;case 18:o0!==null&&(_5?(_=o0,HB(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),X7(_)):HB(o0,$.stateNode));break;case 4:L=o0,I=_5,o0=$.stateNode.containerInfo,_5=!0,o4(_,J,$),o0=L,_5=I;break;case 0:case 11:case 14:case 15:$7(c2,$,J),t0||SG($,J,L5),o4(_,J,$);break;case 1:t0||(L4($,J),L=$.stateNode,typeof L.componentWillUnmount==="function"&&_z($,J,L)),o4(_,J,$);break;case 21:o4(_,J,$);break;case 22:t0=(L=t0)||$.memoizedState!==null,o4(_,J,$),t0=L;break;default:o4(_,J,$)}($.mode&s1)!==m1&&0<=u1&&0<=x1&&(E0||0.05<v0)&&Z4($,u1,x1,v0,y0),Z5(q),X4(G),y0=K,E0=z}function Fz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{W1(J,cI,_)}catch($){B0(J,J.return,$)}}}function Xz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{W1(J,lI,_)}catch($){B0(J,J.return,$)}}function GI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new bL),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new bL),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function m$(_,J){var $=GI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),N4)if(x7!==null&&m7!==null)s9(m7,x7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=WI.bind(null,_,q);q.then(G,G)}})}function n2(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,K=J,z=$[q],L=G5(),I=K;_:for(;I!==null;){switch(I.tag){case 27:if(p3(I.type)){o0=I.stateNode,_5=!1;break _}break;case 5:o0=I.stateNode,_5=!1;break _;case 3:case 4:o0=I.stateNode.containerInfo,_5=!0;break _}I=I.return}if(o0===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Kz(G,K,z),o0=null,_5=!1,(z.mode&s1)!==m1&&0<=u1&&0<=x1&&0.05<x1-u1&&G4(z,u1,x1,"Unmount"),Z5(L),G=z,K=G.alternate,K!==null&&(K.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Hz(J,_),J=J.sibling}function Hz(_,J){var $=G5(),q=F4(),G=H4(),K=Y4(),z=_.alternate,L=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:n2(J,_),e2(_),L&4&&($7(c2|y5,_,_.return),l9(c2|y5,_),SG(_,_.return,L5|y5));break;case 1:if(n2(J,_),e2(_),L&512&&(t0||z===null||L4(z,z.return)),L&64&&X3&&(L=_.updateQueue,L!==null&&(z=L.callbacks,z!==null))){var I=L.shared.hiddenCallbacks;L.shared.hiddenCallbacks=I===null?z:I.concat(z)}break;case 26:if(I=a5,n2(J,_),e2(_),L&512&&(t0||z===null||L4(z,z.return)),L&4){var C=z!==null?z.memoizedState:null;if(L=_.memoizedState,z===null)if(L===null)if(_.stateNode===null){_:{L=_.type,z=_.memoizedProps,I=I.ownerDocument||I;J:switch(L){case"title":if(C=I.getElementsByTagName("title")[0],!C||C[Z_]||C[M2]||C.namespaceURI===L7||C.hasAttribute("itemprop"))C=I.createElement(L),I.head.insertBefore(C,I.querySelector("head > title"));A2(C,L,z),C[M2]=_,D1(C),L=C;break _;case"link":var e=IB("link","href",I).get(L+(z.href||""));if(e){for(var _1=0;_1<e.length;_1++)if(C=e[_1],C.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&C.getAttribute("rel")===(z.rel==null?null:z.rel)&&C.getAttribute("title")===(z.title==null?null:z.title)&&C.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){e.splice(_1,1);break J}}C=I.createElement(L),A2(C,L,z),I.head.appendChild(C);break;case"meta":if(e=IB("meta","content",I).get(L+(z.content||""))){for(_1=0;_1<e.length;_1++)if(C=e[_1],L1(z.content,"content"),C.getAttribute("content")===(z.content==null?null:""+z.content)&&C.getAttribute("name")===(z.name==null?null:z.name)&&C.getAttribute("property")===(z.property==null?null:z.property)&&C.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&C.getAttribute("charset")===(z.charSet==null?null:z.charSet)){e.splice(_1,1);break J}}C=I.createElement(L),A2(C,L,z),I.head.appendChild(C);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+L+'". This is a bug in React.')}C[M2]=_,D1(C),L=C}_.stateNode=L}else wB(I,_.type,_.stateNode);else _.stateNode=OB(I,L,_.memoizedProps);else C!==L?(C===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):C.count--,L===null?wB(I,_.type,_.stateNode):OB(I,L,_.memoizedProps)):L===null&&_.stateNode!==null&&yG(_,_.memoizedProps,z.memoizedProps)}break;case 27:n2(J,_),e2(_),L&512&&(t0||z===null||L4(z,z.return)),z!==null&&L&4&&yG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(n2(J,_),e2(_),L&512&&(t0||z===null||L4(z,z.return)),_.flags&32){I=_.stateNode;try{W1(_,FB,I)}catch(f1){B0(_,_.return,f1)}}L&4&&_.stateNode!=null&&(I=_.memoizedProps,yG(_,I,z!==null?z.memoizedProps:I)),L&1024&&(YK=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(n2(J,_),e2(_),L&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.");L=_.memoizedProps,z=z!==null?z.memoizedProps:L,I=_.stateNode;try{W1(_,yI,I,z,L)}catch(f1){B0(_,_.return,f1)}}break;case 3:if(I=a4(),$q=null,C=a5,a5=a$(J.containerInfo),n2(J,_),a5=C,e2(_),L&4&&z!==null&&z.memoizedState.isDehydrated)try{W1(_,pI,J.containerInfo)}catch(f1){B0(_,_.return,f1)}YK&&(YK=!1,Yz(_)),J.effectDuration+=Y$(I);break;case 4:L=a5,a5=a$(_.stateNode.containerInfo),n2(J,_),e2(_),a5=L;break;case 12:L=a4(),n2(J,_),e2(_),_.stateNode.effectDuration+=v9(L);break;case 31:n2(J,_),e2(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,m$(_,L)));break;case 13:n2(J,_),e2(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(gQ=F2()),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,m$(_,L)));break;case 22:I=_.memoizedState!==null;var d=z!==null&&z.memoizedState!==null,G1=X3,I1=t0;if(X3=G1||I,t0=I1||d,n2(J,_),t0=I1,X3=G1,d&&!I&&!G1&&!I1&&(_.mode&s1)!==m1&&0<=u1&&0<=x1&&0.05<x1-u1&&$$(_,u1,x1),e2(_),L&8192)_:for(J=_.stateNode,J._visibility=I?J._visibility&~L_:J._visibility|L_,!I||z===null||d||X3||t0||(r6(_),(_.mode&s1)!==m1&&0<=u1&&0<=x1&&0.05<x1-u1&&G4(_,u1,x1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){d=z=J;try{C=d.stateNode,I?W1(d,DI,C):W1(d,EI,d.stateNode,d.memoizedProps)}catch(f1){B0(d,d.return,f1)}}}else if(J.tag===6){if(z===null){d=J;try{e=d.stateNode,I?W1(d,bI,e):W1(d,hI,e,d.memoizedProps)}catch(f1){B0(d,d.return,f1)}}}else if(J.tag===18){if(z===null){d=J;try{_1=d.stateNode,I?W1(d,vI,_1):W1(d,uI,d.stateNode)}catch(f1){B0(d,d.return,f1)}}}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 _;z===J&&(z=null),J=J.return}z===J&&(z=null),J.sibling.return=J.return,J=J.sibling}L&4&&(L=_.updateQueue,L!==null&&(z=L.retryQueue,z!==null&&(L.retryQueue=null,m$(_,z))));break;case 19:n2(J,_),e2(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,m$(_,L)));break;case 30:break;case 21:break;default:n2(J,_),e2(_)}(_.mode&s1)!==m1&&0<=u1&&0<=x1&&((E0||0.05<v0)&&Z4(_,u1,x1,v0,y0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<x1-u1&&(Uz(_.return.alternate,_.return)||G4(_,u1,x1,"Mount"))),Z5($),X4(q),y0=G,E0=K}function e2(_){var J=_.flags;if(J&2){try{W1(_,qI,_)}catch($){B0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Yz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Yz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function A4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Gz(_,J.alternate,J),J=J.sibling}function zz(_){var J=G5(),$=F4(),q=H4(),G=Y4();switch(_.tag){case 0:case 11:case 14:case 15:SG(_,_.return,L5),r6(_);break;case 1:L4(_,_.return);var K=_.stateNode;typeof K.componentWillUnmount==="function"&&_z(_,_.return,K),r6(_);break;case 27:W1(_,__,_.stateNode);case 26:case 5:L4(_,_.return),r6(_);break;case 22:_.memoizedState===null&&r6(_);break;case 30:r6(_);break;default:r6(_)}(_.mode&s1)!==m1&&0<=u1&&0<=x1&&(E0||0.05<v0)&&Z4(_,u1,x1,v0,y0),Z5(J),X4($),y0=q,E0=G}function r6(_){for(_=_.child;_!==null;)zz(_),_=_.sibling}function Bz(_,J,$,q){var G=G5(),K=F4(),z=H4(),L=Y4(),I=$.flags;switch($.tag){case 0:case 11:case 15:M4(_,$,q),oY($,L5);break;case 1:if(M4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&W1($,eZ,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{W1($,pO,J,_)}catch(C){B0($,$.return,C)}}q&&I&64&&eY($),d9($,$.return);break;case 27:qz($);case 26:case 5:M4(_,$,q),q&&J===null&&I&4&&$z($),d9($,$.return);break;case 12:if(q&&I&4){I=a4(),M4(_,$,q),q=$.stateNode,q.effectDuration+=v9(I);try{W1($,Jz,$,J,n3,q.effectDuration)}catch(C){B0($,$.return,C)}}else M4(_,$,q);break;case 31:M4(_,$,q),q&&I&4&&Fz(_,$);break;case 13:M4(_,$,q),q&&I&4&&Xz(_,$);break;case 22:$.memoizedState===null&&M4(_,$,q),d9($,$.return);break;case 30:break;default:M4(_,$,q)}($.mode&s1)!==m1&&0<=u1&&0<=x1&&(E0||0.05<v0)&&Z4($,u1,x1,v0,y0),Z5(G),X4(K),y0=z,E0=L}function M4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Bz(_,J.alternate,J,$),J=J.sibling}function vG(_,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&&g6(_),$!=null&&k9($))}function DG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(g6(J),_!=null&&k9(_))}function p5(_,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 K=J.sibling;Wz(_,J,$,q,K!==null?K.actualStartTime:G),J=K}}function Wz(_,J,$,q,G){var K=G5(),z=F4(),L=H4(),I=Y4(),C=a3,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&s1)!==m1&&0<J.actualStartTime&&(J.flags&1)!==0&&Q$(J,J.actualStartTime,G,J2,$),p5(_,J,$,q,G),e&2048&&nY(J,l2|y5);break;case 1:(J.mode&s1)!==m1&&0<J.actualStartTime&&((J.flags&128)!==0?AU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&Q$(J,J.actualStartTime,G,J2,$)),p5(_,J,$,q,G);break;case 3:var _1=a4(),d=J2;J2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,p5(_,J,$,q,G),J2=d,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(g6(q),$!=null&&k9($))),_.passiveEffectDuration+=Y$(_1);break;case 12:if(e&2048){e=a4(),p5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=v9(e);try{W1(J,QI,J,J.alternate,n3,_.passiveEffectDuration)}catch(G1){B0(J,J.return,G1)}}else p5(_,J,$,q,G);break;case 31:e=J2,_1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,_1!==null&&d===null?(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(J2=!1,_1=_1.hydrationErrors,_1!==null&&AU(J,J.actualStartTime,G,_1)):J2=!0):J2=!1,p5(_,J,$,q,G),J2=e;break;case 13:e=J2,_1=J.alternate!==null?J.alternate.memoizedState:null,d=J.memoizedState,_1===null||_1.dehydrated===null||d!==null&&d.dehydrated!==null?J2=!1:(d=J.deletions,d!==null&&0<d.length&&d[0].tag===18?(J2=!1,_1=_1.hydrationErrors,_1!==null&&AU(J,J.actualStartTime,G,_1)):J2=!0),p5(_,J,$,q,G),J2=e;break;case 23:break;case 22:d=J.stateNode,_1=J.alternate,J.memoizedState!==null?d._visibility&_3?p5(_,J,$,q,G):r9(_,J,$,q,G):d._visibility&_3?p5(_,J,$,q,G):(d._visibility|=_3,Q7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&s1)===m1||J2||(_=J.actualStartTime,0<=_&&0.05<G-_&&$$(J,_,G),0<=u1&&0<=x1&&0.05<x1-u1&&$$(J,u1,x1))),e&2048&&vG(_1,J);break;case 24:p5(_,J,$,q,G),e&2048&&DG(J.alternate,J);break;default:p5(_,J,$,q,G)}if((J.mode&s1)!==m1){if(_=!J2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&G4(J,$,G,"Mount");0<=u1&&0<=x1&&((E0||0.05<v0)&&Z4(J,u1,x1,v0,y0),_&&0.05<x1-u1&&G4(J,u1,x1,"Mount"))}Z5(K),X4(z),y0=L,E0=I,a3=C}function Q7(_,J,$,q,G,K){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var z=J.sibling;Lz(_,J,$,q,G,z!==null?z.actualStartTime:K),J=z}}function Lz(_,J,$,q,G,K){var z=G5(),L=F4(),I=H4(),C=Y4(),e=a3;G&&(J.mode&s1)!==m1&&0<J.actualStartTime&&(J.flags&1)!==0&&Q$(J,J.actualStartTime,K,J2,$);var _1=J.flags;switch(J.tag){case 0:case 11:case 15:Q7(_,J,$,q,G,K),nY(J,l2);break;case 23:break;case 22:var d=J.stateNode;J.memoizedState!==null?d._visibility&_3?Q7(_,J,$,q,G,K):r9(_,J,$,q,K):(d._visibility|=_3,Q7(_,J,$,q,G,K)),G&&_1&2048&&vG(J.alternate,J);break;case 24:Q7(_,J,$,q,G,K),G&&_1&2048&&DG(J.alternate,J);break;default:Q7(_,J,$,q,G,K)}(J.mode&s1)!==m1&&0<=u1&&0<=x1&&(E0||0.05<v0)&&Z4(J,u1,x1,v0,y0),Z5(z),X4(L),y0=I,E0=C,a3=e}function r9(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var K=J.child;K!==null;){J=K.sibling;var z=_,L=$,I=q,C=J!==null?J.actualStartTime:G,e=a3;(K.mode&s1)!==m1&&0<K.actualStartTime&&(K.flags&1)!==0&&Q$(K,K.actualStartTime,C,J2,L);var _1=K.flags;switch(K.tag){case 22:r9(z,K,L,I,C),_1&2048&&vG(K.alternate,K);break;case 24:r9(z,K,L,I,C),_1&2048&&DG(K.alternate,K);break;default:r9(z,K,L,I,C)}a3=e,K=J}}function q7(_,J,$){if(_.subtreeFlags&u_)for(_=_.child;_!==null;)Az(_,J,$),_=_.sibling}function Az(_,J,$){switch(_.tag){case 26:q7(_,J,$),_.flags&u_&&_.memoizedState!==null&&aI($,a5,_.memoizedState,_.memoizedProps);break;case 5:q7(_,J,$);break;case 3:case 4:var q=a5;a5=a$(_.stateNode.containerInfo),q7(_,J,$),a5=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=u_,u_=16777216,q7(_,J,$),u_=q):q7(_,J,$));break;default:q7(_,J,$)}}function Mz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function i9(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=G5();H2=q,Oz(q,_),(q.mode&s1)!==m1&&0<=u1&&0<=x1&&0.05<x1-u1&&G4(q,u1,x1,"Unmount"),Z5(G)}Mz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Tz(_),_=_.sibling}function Tz(_){var J=G5(),$=F4(),q=H4(),G=Y4();switch(_.tag){case 0:case 11:case 15:i9(_),_.flags&2048&&jG(_,_.return,l2|y5);break;case 3:var K=a4();i9(_),_.stateNode.passiveEffectDuration+=Y$(K);break;case 12:K=a4(),i9(_),_.stateNode.passiveEffectDuration+=v9(K);break;case 22:K=_.stateNode,_.memoizedState!==null&&K._visibility&_3&&(_.return===null||_.return.tag!==13)?(K._visibility&=~_3,g$(_),(_.mode&s1)!==m1&&0<=u1&&0<=x1&&0.05<x1-u1&&G4(_,u1,x1,"Disconnect")):i9(_);break;default:i9(_)}(_.mode&s1)!==m1&&0<=u1&&0<=x1&&(E0||0.05<v0)&&Z4(_,u1,x1,v0,y0),Z5(J),X4($),E0=G,y0=q}function g$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=G5();H2=q,Oz(q,_),(q.mode&s1)!==m1&&0<=u1&&0<=x1&&0.05<x1-u1&&G4(q,u1,x1,"Unmount"),Z5(G)}Mz(_)}for(_=_.child;_!==null;)Rz(_),_=_.sibling}function Rz(_){var J=G5(),$=F4(),q=H4(),G=Y4();switch(_.tag){case 0:case 11:case 15:jG(_,_.return,l2),g$(_);break;case 22:var K=_.stateNode;K._visibility&_3&&(K._visibility&=~_3,g$(_));break;default:g$(_)}(_.mode&s1)!==m1&&0<=u1&&0<=x1&&(E0||0.05<v0)&&Z4(_,u1,x1,v0,y0),Z5(J),X4($),E0=G,y0=q}function Oz(_,J){for(;H2!==null;){var $=H2,q=$,G=J,K=G5(),z=F4(),L=H4(),I=Y4();switch(q.tag){case 0:case 11:case 15:jG(q,G,l2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&g6(G));break;case 24:k9(q.memoizedState.cache)}if((q.mode&s1)!==m1&&0<=u1&&0<=x1&&(E0||0.05<v0)&&Z4(q,u1,x1,v0,y0),Z5(K),X4(z),E0=I,y0=L,q=$.child,q!==null)q.return=$,H2=q;else _:for($=_;H2!==null;){if(q=H2,K=q.sibling,z=q.return,Zz(q),q===$){H2=null;break _}if(K!==null){K.return=z,H2=K;break _}H2=z}}}function ZI(){SP.forEach(function(_){return _()})}function Iz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||K1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function F5(_){if((X0&$2)!==Y2&&o1!==0)return o1&-o1;var J=K1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),pG()):Q1()}function wz(){if($5===0)if((o1&536870912)===0||q0){var _=GQ;GQ<<=1,(GQ&3932160)===0&&(GQ=262144),$5=_}else $5=536870912;return _=W5.current,_!==null&&(_.flags|=32),$5}function u0(_,J,$){if(c7&&console.error("useInsertionEffect must not schedule updates."),wK&&(dQ=!0),_===I0&&(A0===Z8||A0===K8)||_.cancelPendingCommit!==null)G7(_,0),m3(_,o1,$5,!1);if(P2(_,$),(X0&$2)!==Y2&&_===I0){if(w4)switch(J.tag){case 0:case 11:case 15:_=n1&&m(n1)||"Unknown",tL.has(_)||(tL.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:sL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),sL=!0)}}else N4&&y6(_,J,$),AI(J),_===I0&&((X0&$2)===Y2&&(Z6|=$),D0===q6&&m3(_,o1,$5,!1)),T4(_)}function Pz(_,J,$){if((X0&($2|A5))!==Y2)throw Error("Should not already be working.");if(o1!==0&&n1!==null){var q=n1,G=F2();switch(pW){case x_:case Z8:var K=I_;f0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",K,G,I5,void 0,"primary-light")):console.timeStamp("Suspended",K,G,I5,void 0,"primary-light"));break;case K8:K=I_,f0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",K,G,I5,void 0,"primary-light")):console.timeStamp("Action",K,G,I5,void 0,"primary-light"));break;default:f0&&(q=G-I_,3>q||console.timeStamp("Blocked",I_,G,I5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}K=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||v2(_,J))?FI(_,J):uG(_,J,!0);var z=$;do{if(K===H3){g7&&!$&&m3(_,J,0,!1),J=A0,I_=i0(),pW=J;break}else{if(q=F2(),G=_.current.alternate,z&&!KI(G)){q5(J),G=X2,K=q,!f0||K<=G||(g0?g0.run(console.timeStamp.bind(console,"Teared Render",G,K,Q0,$0,"error")):console.timeStamp("Teared Render",G,K,Q0,$0,"error")),i6(J,q),K=uG(_,J,!1),z=!1;continue}if(K===G8){if(z=J,_.errorRecoveryDisabledLanes&z)var L=0;else L=_.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){q5(J),MU(X2,q,J,g0),i6(J,q),J=L;_:{q=_,K=z,z=g_;var I=q.current.memoizedState.isDehydrated;if(I&&(G7(q,L).flags|=256),L=uG(q,L,!1),L!==G8){if(WK&&!I){q.errorRecoveryDisabledLanes|=K,Z6|=K,K=q6;break _}q=d2,d2=z,q!==null&&(d2===null?d2=q:d2.push.apply(d2,q))}K=L}if(z=!1,K!==G8)continue;else q=F2()}}if(K===h_){q5(J),MU(X2,q,J,g0),i6(J,q),G7(_,0),m3(_,J,0,!0);break}_:{switch($=_,K){case H3:case h_:throw Error("Root did not complete. This is a bug in React.");case q6:if((J&4194048)!==J)break;case EQ:q5(J),PH(X2,q,J,g0),i6(J,q),G=J,(G&127)!==0?IQ=q:(G&4194048)!==0&&(wQ=q),m3($,J,$5,!U6);break _;case G8:d2=null;break;case uQ:case uL:break;default:throw Error("Unknown root exit status.")}if(K1.actQueue!==null)EG($,G,J,d2,p_,mQ,$5,Z6,F8,K,null,null,X2,q);else{if((J&62914560)===J&&(z=gQ+xL-F2(),10<z)){if(m3($,J,$5,!U6),k2($,0,!0)!==0)break _;s5=J,$.timeoutHandle=qA(Nz.bind(null,$,G,d2,p_,mQ,J,$5,Z6,F8,U6,K,"Throttled",X2,q),z);break _}Nz($,G,d2,p_,mQ,J,$5,Z6,F8,U6,K,null,X2,q)}}}break}while(1);T4(_)}function Nz(_,J,$,q,G,K,z,L,I,C,e,_1,d,G1){_.timeoutHandle=B8;var I1=J.subtreeFlags,f1=null;if(I1&8192||(I1&16785408)===16785408){if(f1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:l4},Az(J,K,f1),I1=(K&62914560)===K?gQ-F2():(K&4194048)===K?hL-F2():0,I1=sI(f1,I1),I1!==null){s5=K,_.cancelPendingCommit=I1(EG.bind(null,_,J,K,$,q,G,z,L,I,e,f1,f1.waitingForViewTransition?"Waiting for the previous Animation":0<f1.count?0<f1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":f1.imgCount===1?"Suspended on an Image":0<f1.imgCount?"Suspended on Images":null,d,G1)),m3(_,K,z,!C);return}}EG(_,J,K,$,q,G,z,L,I,e,f1,_1,d,G1)}function KI(_){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],K=G.getSnapshot;G=G.value;try{if(!g2(K(),G))return!1}catch(z){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 m3(_,J,$,q){J&=~LK,J&=~Z6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var K=31-h2(G),z=1<<K;q[K]=-1,G&=~z}$!==0&&h5(_,$,J)}function U7(){return(X0&($2|A5))===Y2?(t9(0,!1),!1):!0}function bG(){if(n1!==null){if(A0===J5)var _=n1.return;else _=n1,F$(),rU(_),k7=null,V_=0,_=n1;for(;_!==null;)tY(_.alternate,_),_=_.return;n1=null}}function i6(_,J){(_&127)!==0&&(e3=J),(_&4194048)!==0&&(y4=J),(_&62914560)!==0&&(mW=J),(_&2080374784)!==0&&(gW=J)}function G7(_,J){f0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",$0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",$0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",$0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",$0,"primary-light"));var $=X2;if(X2=i0(),o1!==0&&0<$){if(q5(o1),D0===uQ||D0===q6)PH($,X2,J,g0);else{var q=X2,G=g0;if(f0&&!(q<=$)){var K=(J&738197653)===J?"tertiary-dark":"primary-dark",z=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,z,$,q,Q0,$0,K)):console.timeStamp(z,$,q,Q0,$0,K)}}i6(o1,X2)}if($=g0,g0=null,(J&127)!==0){g0=T_,G=0<=j4&&j4<e3?e3:j4,q=0<=n6&&n6<e3?e3:n6,K=0<=q?q:0<=G?G:X2,0<=IQ?(q5(2),NH(IQ,K,J,$)):(PQ&127)!==0&&(q5(2),y9(e3,K,G3)),$=G;var L=q,I=R_,C=0<j7,e=_6===M_,_1=_6===OQ;if(G=X2,q=T_,K=aZ,z=sZ,f0){if(Q0="Blocking",0<$?$>G&&($=G):$=G,0<L?L>$&&(L=$):L=$,I!==null&&$>L){var d=C?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,C?"Consecutive":"Event: "+I,L,$,Q0,$0,d)):console.timeStamp(C?"Consecutive":"Event: "+I,L,$,Q0,$0,d)}G>$&&(L=e?"error":(J&738197653)===J?"tertiary-light":"primary-light",e=_1?"Promise Resolved":e?"Cascading Update":5<G-$?"Update Blocked":"Update",_1=[],z!=null&&_1.push(["Component name",z]),K!=null&&_1.push(["Method name",K]),$={start:$,end:G,detail:{devtools:{properties:_1,track:Q0,trackGroup:$0,color:L}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}j4=-1.1,_6=0,sZ=aZ=null,IQ=-1.1,j7=n6,n6=-1.1,e3=i0()}if((J&4194048)!==0&&(g0=O_,G=0<=U3&&U3<y4?y4:U3,$=0<=S5&&S5<y4?y4:S5,q=0<=J6&&J6<y4?y4:J6,K=0<=q?q:0<=$?$:X2,0<=wQ?(q5(256),NH(wQ,K,J,g0)):(PQ&4194048)!==0&&(q5(256),y9(y4,K,G3)),_1=q,L=e6,I=0<$6,C=tZ===OQ,K=X2,q=O_,z=hW,e=xW,f0&&(Q0="Transition",0<$?$>K&&($=K):$=K,0<G?G>$&&(G=$):G=$,0<_1?_1>G&&(_1=G):_1=G,G>_1&&L!==null&&(d=I?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+L,_1,G,Q0,$0,d)):console.timeStamp(I?"Consecutive":"Event: "+L,_1,G,Q0,$0,d)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,Q0,$0,"primary-dark")):console.timeStamp("Action",G,$,Q0,$0,"primary-dark")),K>$&&(G=C?"Promise Resolved":5<K-$?"Update Blocked":"Update",_1=[],e!=null&&_1.push(["Component name",e]),z!=null&&_1.push(["Method name",z]),$={start:$,end:K,detail:{devtools:{properties:_1,track:Q0,trackGroup:$0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),S5=U3=-1.1,tZ=0,wQ=-1.1,$6=J6,J6=-1.1,y4=i0()),(J&62914560)!==0&&(PQ&62914560)!==0&&(q5(4194304),y9(mW,X2,G3)),(J&2080374784)!==0&&(PQ&2080374784)!==0&&(q5(268435456),y9(gW,X2,G3)),$=_.timeoutHandle,$!==B8&&(_.timeoutHandle=B8,gP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),s5=0,bG(),I0=_,n1=$=d4(_.current,null),o1=J,A0=J5,M5=null,U6=!1,g7=v2(_,J),WK=!1,D0=H3,F8=$5=LK=Z6=G6=0,d2=g_=null,mQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-h2(q),K=1<<G,J|=_[G],q&=~K;return k4=J,q$(),_=kW(),1000<_-VW&&(K1.recentlyCreatedOwnerStacks=0,VW=_),r5.discardPendingWarnings(),$}function fz(_,J){d1=null,K1.H=b_,K1.getCurrentStack=null,w4=!1,Y5=null,J===V7||J===SQ?(J=iH(),A0=x_):J===_K?(J=iH(),A0=EL):A0=J===XK?BK:J!==null&&typeof J==="object"&&typeof J.then==="function"?m_:hQ,M5=J;var $=n1;$===null?(D0=h_,D$(_,U5(J,_.current))):$.mode&s1&&vU($)}function Cz(){var _=W5.current;return _===null?!0:(o1&4194048)===o1?j5===null?!0:!1:(o1&62914560)===o1||(o1&536870912)!==0?_===j5:!1}function Sz(){var _=K1.H;return K1.H=b_,_===null?b_:_}function jz(){var _=K1.A;return K1.A=CP,_}function p$(_){g0===null&&(g0=_._debugTask==null?null:_._debugTask)}function c$(){D0=q6,U6||(o1&4194048)!==o1&&W5.current!==null||(g7=!0),(G6&134217727)===0&&(Z6&134217727)===0||I0===null||m3(I0,o1,$5,!1)}function uG(_,J,$){var q=X0;X0|=$2;var G=Sz(),K=jz();if(I0!==_||o1!==J){if(N4){var z=_.memoizedUpdaters;0<z.size&&(s9(_,o1),z.clear()),Q4(_,J)}p_=null,G7(_,J)}J=!1,z=D0;_:do try{if(A0!==J5&&n1!==null){var L=n1,I=M5;switch(A0){case BK:bG(),z=EQ;break _;case x_:case Z8:case K8:case m_:W5.current===null&&(J=!0);var C=A0;if(A0=J5,M5=null,Z7(_,L,I,C),$&&g7){z=H3;break _}break;default:C=A0,A0=J5,M5=null,Z7(_,L,I,C)}}yz(),z=D0;break}catch(e){fz(_,e)}while(1);return J&&_.shellSuspendCounter++,F$(),X0=q,K1.H=G,K1.A=K,n1===null&&(I0=null,o1=0,q$()),z}function yz(){for(;n1!==null;)Vz(n1)}function FI(_,J){var $=X0;X0|=$2;var q=Sz(),G=jz();if(I0!==_||o1!==J){if(N4){var K=_.memoizedUpdaters;0<K.size&&(s9(_,o1),K.clear()),Q4(_,J)}p_=null,pQ=F2()+mL,G7(_,J)}else g7=v2(_,J);_:do try{if(A0!==J5&&n1!==null)J:switch(J=n1,K=M5,A0){case hQ:A0=J5,M5=null,Z7(_,J,K,hQ);break;case Z8:case K8:if(dH(K)){A0=J5,M5=null,kz(J);break}J=function(){A0!==Z8&&A0!==K8||I0!==_||(A0=xQ),T4(_)},K.then(J,J);break _;case x_:A0=xQ;break _;case EL:A0=zK;break _;case xQ:dH(K)?(A0=J5,M5=null,kz(J)):(A0=J5,M5=null,Z7(_,J,K,xQ));break;case zK:var z=null;switch(n1.tag){case 26:z=n1.memoizedState;case 5:case 27:var L=n1;if(z?PB(z):L.stateNode.complete){A0=J5,M5=null;var I=L.sibling;if(I!==null)n1=I;else{var C=L.return;C!==null?(n1=C,l$(C)):n1=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}A0=J5,M5=null,Z7(_,J,K,zK);break;case m_:A0=J5,M5=null,Z7(_,J,K,m_);break;case BK:bG(),D0=EQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}K1.actQueue!==null?yz():XI();break}catch(e){fz(_,e)}while(1);if(F$(),K1.H=q,K1.A=G,X0=$,n1!==null)return H3;return I0=null,o1=0,q$(),D0}function XI(){for(;n1!==null&&!Kw();)Vz(n1)}function Vz(_){var J=_.alternate;(_.mode&s1)!==m1?(kU(_),J=W1(_,fG,J,_,k4),vU(_)):J=W1(_,fG,J,_,k4),_.memoizedProps=_.pendingProps,J===null?l$(_):n1=J}function kz(_){var J=W1(_,HI,_);_.memoizedProps=_.pendingProps,J===null?l$(_):n1=J}function HI(_){var J=_.alternate,$=(_.mode&s1)!==m1;switch($&&kU(_),_.tag){case 15:case 0:J=cY(J,_,_.pendingProps,_.type,void 0,o1);break;case 11:J=cY(J,_,_.pendingProps,_.type.render,_.ref,o1);break;case 5:rU(_);default:tY(J,_),_=n1=VH(_,k4),J=fG(J,_,k4)}return $&&vU(_),J}function Z7(_,J,$,q){F$(),rU(J),k7=null,V_=0;var G=J.return;try{if(sO(_,G,J,$,o1)){D0=h_,D$(_,U5($,_.current)),n1=null;return}}catch(K){if(G!==null)throw n1=G,K;D0=h_,D$(_,U5($,_.current)),n1=null;return}if(J.flags&32768){if(q0||q===hQ)_=!0;else if(g7||(o1&536870912)!==0)_=!1;else if(U6=_=!0,q===Z8||q===K8||q===x_||q===m_)q=W5.current,q!==null&&q.tag===13&&(q.flags|=16384);vz(J,_)}else l$(J)}function l$(_){var J=_;do{if((J.flags&32768)!==0){vz(J,U6);return}var $=J.alternate;if(_=J.return,kU(J),$=W1(J,nO,$,J,k4),(J.mode&s1)!==m1&&mH(J),$!==null){n1=$;return}if(J=J.sibling,J!==null){n1=J;return}n1=J=_}while(J!==null);D0===H3&&(D0=uL)}function vz(_,J){do{var $=eO(_.alternate,_);if($!==null){$.flags&=32767,n1=$;return}if((_.mode&s1)!==m1){mH(_),$=_.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)){n1=_;return}n1=_=$}while(_!==null);D0=EQ,n1=null}function EG(_,J,$,q,G,K,z,L,I,C,e,_1,d,G1){_.cancelPendingCommit=null;do a9();while(n0!==F6);if(r5.flushLegacyContextWarning(),r5.flushPendingUnsafeLifecycleWarnings(),(X0&($2|A5))!==Y2)throw Error("Should not already be working.");if(q5($),C===G8?MU(d,G1,$,g0):q!==null?uO(d,G1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,g0):bO(d,G1,$,g0),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(K=J.lanes|J.childLanes,K|=cZ,N3(_,$,K,z,L,I),_===I0&&(n1=I0=null,o1=0),p7=J,X6=_,s5=$,TK=K,OK=G,rL=q,RK=G1,iL=_1,t5=cQ,aL=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,LI(z7,function(){return a_=window.event,t5===cQ&&(t5=MK),hz(),null})):(_.callbackNode=null,_.callbackPriority=0),q3=null,n3=i0(),_1!==null&&EO(G1,n3,_1,g0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=K1.T,K1.T=null,G=W0.p,W0.p=z5,z=X0,X0|=A5;try{UI(_,J,$)}finally{X0=z,W0.p=G,K1.T=q}}n0=pL,Dz(),bz(),uz()}}function Dz(){if(n0===pL){n0=F6;var _=X6,J=p7,$=s5,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=K1.T,K1.T=null;var G=W0.p;W0.p=z5;var K=X0;X0|=A5;try{x7=$,m7=_,z$(),Hz(J,_),m7=x7=null,$=kK;var z=OH(_.containerInfo),L=$.focusedElem,I=$.selectionRange;if(z!==L&&L&&L.ownerDocument&&RH(L.ownerDocument.documentElement,L)){if(I!==null&&WU(L)){var{start:C,end:e}=I;if(e===void 0&&(e=C),"selectionStart"in L)L.selectionStart=C,L.selectionEnd=Math.min(e,L.value.length);else{var _1=L.ownerDocument||document,d=_1&&_1.defaultView||window;if(d.getSelection){var G1=d.getSelection(),I1=L.textContent.length,f1=Math.min(I.start,I1),N0=I.end===void 0?f1:Math.min(I.end,I1);!G1.extend&&f1>N0&&(z=N0,N0=f1,f1=z);var Z0=TH(L,f1),l=TH(L,N0);if(Z0&&l&&(G1.rangeCount!==1||G1.anchorNode!==Z0.node||G1.anchorOffset!==Z0.offset||G1.focusNode!==l.node||G1.focusOffset!==l.offset)){var i=_1.createRange();i.setStart(Z0.node,Z0.offset),G1.removeAllRanges(),f1>N0?(G1.addRange(i),G1.extend(l.node,l.offset)):(i.setEnd(l.node,l.offset),G1.addRange(i))}}}}_1=[];for(G1=L;G1=G1.parentNode;)G1.nodeType===1&&_1.push({element:G1,left:G1.scrollLeft,top:G1.scrollTop});typeof L.focus==="function"&&L.focus();for(L=0;L<_1.length;L++){var o=_1[L];o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}Uq=!!VK,kK=VK=null}finally{X0=K,W0.p=G,K1.T=q}}_.current=J,n0=cL}}function bz(){if(n0===cL){n0=F6;var _=aL;if(_!==null){n3=i0();var J=Q3,$=n3;!f0||$<=J||(G3?G3.run(console.timeStamp.bind(console,_,J,$,Q0,$0,"secondary-light")):console.timeStamp(_,J,$,Q0,$0,"secondary-light"))}_=X6,J=p7,$=s5;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=K1.T,K1.T=null;var G=W0.p;W0.p=z5;var K=X0;X0|=A5;try{x7=$,m7=_,z$(),Gz(_,J.alternate,J),m7=x7=null}finally{X0=K,W0.p=G,K1.T=q}}_=RK,J=iL,Q3=i0(),_=J===null?_:n3,J=Q3,$=t5===AK,q=g0,q3!==null?fH(_,J,q3,!1,q):!f0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,Q0,$0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,Q0,$0,$?"error":"secondary-dark")),n0=lL}}function uz(){if(n0===dL||n0===lL){if(n0===dL){var _=Q3;Q3=i0();var J=Q3,$=t5===AK;!f0||J<=_||(G3?G3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,Q0,$0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,Q0,$0,$?" error":"secondary-light")),t5!==AK&&(t5=gL)}n0=F6,Fw(),_=X6;var q=p7;J=s5,$=rL;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?n0=lQ:(n0=F6,p7=X6=null,Ez(_,_.pendingLanes),X8=0,l_=null);var K=_.pendingLanes;if(K===0&&(K6=null),G||pz(_),K=j(J),q=q.stateNode,f2&&typeof f2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(K){case z5:var L=OZ;break;case l5:L=IZ;break;case f4:L=z7;break;case KQ:L=wZ;break;default:L=z7}f2.onCommitFiberRoot(B7,q,L,z)}catch(_1){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",_1))}if(N4&&_.memoizedUpdaters.clear(),ZI(),$!==null){z=K1.T,L=W0.p,W0.p=z5,K1.T=null;try{var I=_.onRecoverableError;for(q=0;q<$.length;q++){var C=$[q],e=YI(C.stack);W1(C.source,I,C.value,e)}}finally{K1.T=z,W0.p=L}}(s5&3)!==0&&a9(),T4(_),K=_.pendingLanes,(J&261930)!==0&&(K&42)!==0?(fQ=!0,_===IK?c_++:(c_=0,IK=_)):c_=0,G||i6(J,Q3),t9(0,!1)}}function YI(_){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 Ez(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,k9(J)))}function a9(){return Dz(),bz(),uz(),hz()}function hz(){if(n0!==lQ)return!1;var _=X6,J=TK;TK=0;var $=j(s5),q=f4===0||f4>$?f4:$;$=K1.T;var G=W0.p;try{W0.p=q,K1.T=null;var K=OK;OK=null,q=X6;var z=s5;if(n0=F6,p7=X6=null,s5=0,(X0&($2|A5))!==Y2)throw Error("Cannot flush passive effects while already rendering.");q5(z),wK=!0,dQ=!1;var L=0;if(q3=null,L=F2(),t5===gL)y9(Q3,L,G3);else{var I=Q3,C=L,e=t5===MK;!f0||C<=I||(g0?g0.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",I,C,Q0,$0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",I,C,Q0,$0,"secondary-light"))}I=X0,X0|=A5;var _1=q.current;z$(),Tz(_1);var d=q.current;_1=RK,z$(),Wz(q,d,z,K,_1),pz(q),X0=I;var G1=F2();if(d=L,_1=g0,q3!==null?fH(d,G1,q3,!0,_1):!f0||G1<=d||(_1?_1.run(console.timeStamp.bind(console,"Remaining Effects",d,G1,Q0,$0,"secondary-dark")):console.timeStamp("Remaining Effects",d,G1,Q0,$0,"secondary-dark")),i6(z,G1),t9(0,!1),dQ?q===l_?X8++:(X8=0,l_=q):X8=0,dQ=wK=!1,f2&&typeof f2.onPostCommitFiberRoot==="function")try{f2.onPostCommitFiberRoot(B7,q)}catch(f1){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",f1))}var I1=q.current.stateNode;return I1.effectDuration=0,I1.passiveEffectDuration=0,!0}finally{W0.p=G,K1.T=$,Ez(_,J)}}function xz(_,J,$){J=U5($,J),gH(J),J=WG(_.stateNode,J,2),_=u3(_,J,2),_!==null&&(P2(_,2),T4(_))}function B0(_,J,$){if(c7=!1,_.tag===3)xz(_,_,$);else{for(;J!==null;){if(J.tag===3){xz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(K6===null||!K6.has(q))){_=U5($,_),gH(_),$=LG(2),q=u3(J,$,2),q!==null&&(AG($,q,J,_),P2(q,2),T4(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.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+q,M1(J,function(L,I){console.error("%s must not return anything besides a function, which is used for clean-up.%s",L,I)},K,z)}$=$.next}while($!==G)}}catch(L){B0(J,J.return,L)}}function q7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var K=G.next;q=K;do{if((q.tag&_)===_){var z=q.inst,L=z.destroy;L!==void 0&&(z.destroy=void 0,(_&l2)!==bQ&&(d7=!0),G=J,M1(G,fP,G,$,L),(_&l2)!==bQ&&(d7=!1))}q=q.next}while(q!==K)}}catch(I){B0(J,J.return,I)}}function Qz(_,J){L4(_)?(B4(),a9(J,_),W4()):a9(J,_)}function kG(_,J,$){L4(_)?(B4(),q7($,_,J),W4()):q7($,_,J)}function qz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||m7||($.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{M1(_,GY,J,$)}catch(q){B0(_,_.return,q)}}}function qI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function UI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||m7||(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=r6(_.type,$),K=M1(_,qI,J,G,q);$=xL,K!==void 0||$.has(_.type)||($.add(_.type),M1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",m(_))})),J.__reactInternalSnapshotBeforeUpdate=K}catch(z){B0(_,_.return,z)}}function Uz(_,J,$){$.props=r6(_.type,_.memoizedProps),$.state=_.memoizedState,L4(_)?(B4(),M1(_,qL,_,J,$),W4()):M1(_,qL,_,J,$)}function GI(_){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(L4(_))try{B4(),_.refCleanup=J($)}finally{W4()}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 s9(_,J){try{M1(_,GI,_)}catch($){B0(_,J,$)}}function A4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(L4(_))try{B4(),M1(_,q)}finally{W4(_)}else M1(_,q)}catch(G){B0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(L4(_))try{B4(),M1(_,$,null)}finally{W4(_)}else M1(_,$,null)}catch(G){B0(_,J,G)}else $.current=null}function Gz(_,J,$,q){var G=_.memoizedProps,K=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",vQ&&(J="nested-update"),typeof G==="function"&&G(K,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(K,J,q,$)}function ZI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",vQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Zz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{M1(_,VI,q,J,$,_)}catch(G){B0(_,_.return,G)}}function DG(_,J,$){try{M1(_,kI,_.stateNode,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Fz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&c3(_.type)||_.tag===4}function uG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Fz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&c3(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function bG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(BW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(BW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=d4));else if(q!==4&&(q===27&&c3(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(bG(_,J,$),_=_.sibling;_!==null;)bG(_,J,$),_=_.sibling}function l$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&c3(_.type)&&($=_.stateNode),_=_.child,_!==null))for(l$(_,J,$),_=_.sibling;_!==null;)l$(_,J,$),_=_.sibling}function FI(_){for(var J,$=_.return;$!==null;){if(Fz($)){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,$=uG(_),l$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(WW($),J.flags&=-33),J=uG(_),l$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=uG(_),bG(_,$,J);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Kz(_){var{stateNode:J,memoizedProps:$}=_;try{M1(_,sI,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Xz(_,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 KI(_,J){if(_=_.containerInfo,uF=Xq,_=CH(_),TU(_)){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:K}=q;q=q.focusOffset;try{$.nodeType,K.nodeType}catch(f1){$=null;break _}var z=0,L=-1,I=-1,f=0,n=0,_1=_,i=null;J:for(;;){for(var Z1;;){if(_1!==$||G!==0&&_1.nodeType!==3||(L=z+G),_1!==K||q!==0&&_1.nodeType!==3||(I=z+q),_1.nodeType===3&&(z+=_1.nodeValue.length),(Z1=_1.firstChild)===null)break;i=_1,_1=Z1}for(;;){if(_1===_)break J;if(i===$&&++f===G&&(L=z),i===K&&++n===q&&(I=z),(Z1=_1.nextSibling)!==null)break;_1=i,i=_1.parentNode}_1=Z1}$=L===-1||I===-1?null:{start:L,end:I}}else $=null}$=$||{start:0,end:0}}else $=null;bF={focusedElem:_,selectionRange:$},Xq=!1;for(B2=J;B2!==null;)if(J=B2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,B2=_;else for(;B2!==null;){switch(_=J=B2,$=_.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&&UI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)$Z(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":$Z(_);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,B2=_;break}B2=J.return}}function Hz(_,J,$){var q=Z5(),G=X4(),K=Y4(),z=z4(),L=$.flags;switch($.tag){case 0:case 11:case 15:M4(_,$),L&4&&$z($,A5|V5);break;case 1:if(M4(_,$),L&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||m7||(_.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")),L4($)?(B4(),M1($,QF,$,_),W4()):M1($,QF,$,_);else{var I=r6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||m7||(_.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")),L4($)?(B4(),M1($,JL,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate),W4()):M1($,JL,$,_,I,J,_.__reactInternalSnapshotBeforeUpdate)}L&64&&qz($),L&512&&s9($,$.return);break;case 3:if(J=s4(),M4(_,$),L&64&&(L=$.updateQueue,L!==null)){if(I=null,$.child!==null)switch($.child.tag){case 27:case 5:I=$.child.stateNode;break;case 1:I=$.child.stateNode}try{M1($,GY,L,I)}catch(n){B0($,$.return,n)}}_.effectDuration+=A$(J);break;case 27:J===null&&L&4&&Kz($);case 26:case 5:if(M4(_,$),J===null){if(L&4)Zz($);else if(L&64){_=$.type,J=$.memoizedProps,I=$.stateNode;try{M1($,yI,I,_,J,$)}catch(n){B0($,$.return,n)}}}L&512&&s9($,$.return);break;case 12:if(L&4){L=s4(),M4(_,$),_=$.stateNode,_.effectDuration+=E9(L);try{M1($,Gz,$,J,e3,_.effectDuration)}catch(n){B0($,$.return,n)}}else M4(_,$);break;case 31:M4(_,$),L&4&&Wz(_,$);break;case 13:M4(_,$),L&4&&Bz(_,$),L&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(L=MI.bind(null,$),dI(_,L))));break;case 22:if(L=$.memoizedState!==null||H3,!L){J=J!==null&&J.memoizedState!==null||e0,I=H3;var f=e0;H3=L,(e0=J)&&!f?(T4(_,$,($.subtreeFlags&8772)!==0),($.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z$($,x1,g1)):M4(_,$),H3=I,e0=f}break;case 30:break;default:M4(_,$)}($.mode&t1)!==p1&&0<=x1&&0<=g1&&((x0||0.05<u0)&&F4($,x1,g1,u0,y0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<g1-x1&&(Xz($.return.alternate,$.return)||Z4($,x1,g1,"Mount"))),F5(q),H4(G),y0=K,x0=z}function Yz(_){var J=_.alternate;J!==null&&(_.alternate=null,Yz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&S1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function n4(_,J,$){for($=$.child;$!==null;)zz(_,J,$),$=$.sibling}function zz(_,J,$){if(S2&&typeof S2.onCommitFiberUnmount==="function")try{S2.onCommitFiberUnmount(L7,$)}catch(f){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",f))}var q=Z5(),G=X4(),K=Y4(),z=z4();switch($.tag){case 26:e0||A4($,J),n4(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:e0||A4($,J);var L=_2,I=J5;c3($.type)&&(_2=$.stateNode,J5=!1),n4(_,J,$),M1($,q_,$.stateNode),_2=L,J5=I;break;case 5:e0||A4($,J);case 6:if(L=_2,I=J5,_2=null,n4(_,J,$),_2=L,J5=I,_2!==null)if(J5)try{M1($,bI,_2,$.stateNode)}catch(f){B0($,J,f)}else try{M1($,uI,_2,$.stateNode)}catch(f){B0($,J,f)}break;case 18:_2!==null&&(J5?(_=_2,LW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),Y7(_)):LW(_2,$.stateNode));break;case 4:L=_2,I=J5,_2=$.stateNode.containerInfo,J5=!0,n4(_,J,$),_2=L,J5=I;break;case 0:case 11:case 14:case 15:q7(l2,$,J),e0||yG($,J,A5),n4(_,J,$);break;case 1:e0||(A4($,J),L=$.stateNode,typeof L.componentWillUnmount==="function"&&Uz($,J,L)),n4(_,J,$);break;case 21:n4(_,J,$);break;case 22:e0=(L=e0)||$.memoizedState!==null,n4(_,J,$),e0=L;break;default:n4(_,J,$)}($.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4($,x1,g1,u0,y0),F5(q),H4(G),y0=K,x0=z}function Wz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{M1(J,rI,_)}catch($){B0(J,J.return,$)}}}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{M1(J,aI,_)}catch($){B0(J,J.return,$)}}function XI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new mL),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new mL),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function d$(_,J){var $=XI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),C4)if(g7!==null&&p7!==null)e9(p7,g7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=TI.bind(null,_,q);q.then(G,G)}})}function e2(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,K=J,z=$[q],L=Z5(),I=K;_:for(;I!==null;){switch(I.tag){case 27:if(c3(I.type)){_2=I.stateNode,J5=!1;break _}break;case 5:_2=I.stateNode,J5=!1;break _;case 3:case 4:_2=I.stateNode.containerInfo,J5=!0;break _}I=I.return}if(_2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");zz(G,K,z),_2=null,J5=!1,(z.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(z,x1,g1,"Unmount"),F5(L),G=z,K=G.alternate,K!==null&&(K.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Lz(J,_),J=J.sibling}function Lz(_,J){var $=Z5(),q=X4(),G=Y4(),K=z4(),z=_.alternate,L=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:e2(J,_),_5(_),L&4&&(q7(l2|V5,_,_.return),a9(l2|V5,_),yG(_,_.return,A5|V5));break;case 1:if(e2(J,_),_5(_),L&512&&(e0||z===null||A4(z,z.return)),L&64&&H3&&(L=_.updateQueue,L!==null&&(z=L.callbacks,z!==null))){var I=L.shared.hiddenCallbacks;L.shared.hiddenCallbacks=I===null?z:I.concat(z)}break;case 26:if(I=s5,e2(J,_),_5(_),L&512&&(e0||z===null||A4(z,z.return)),L&4){var f=z!==null?z.memoizedState:null;if(L=_.memoizedState,z===null)if(L===null)if(_.stateNode===null){_:{L=_.type,z=_.memoizedProps,I=I.ownerDocument||I;J:switch(L){case"title":if(f=I.getElementsByTagName("title")[0],!f||f[H_]||f[O2]||f.namespaceURI===M7||f.hasAttribute("itemprop"))f=I.createElement(L),I.head.insertBefore(f,I.querySelector("head > title"));R2(f,L,z),f[O2]=_,E1(f),L=f;break _;case"link":var n=fW("link","href",I).get(L+(z.href||""));if(n){for(var _1=0;_1<n.length;_1++)if(f=n[_1],f.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&f.getAttribute("rel")===(z.rel==null?null:z.rel)&&f.getAttribute("title")===(z.title==null?null:z.title)&&f.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){n.splice(_1,1);break J}}f=I.createElement(L),R2(f,L,z),I.head.appendChild(f);break;case"meta":if(n=fW("meta","content",I).get(L+(z.content||""))){for(_1=0;_1<n.length;_1++)if(f=n[_1],K1(z.content,"content"),f.getAttribute("content")===(z.content==null?null:""+z.content)&&f.getAttribute("name")===(z.name==null?null:z.name)&&f.getAttribute("property")===(z.property==null?null:z.property)&&f.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&f.getAttribute("charset")===(z.charSet==null?null:z.charSet)){n.splice(_1,1);break J}}f=I.createElement(L),R2(f,L,z),I.head.appendChild(f);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+L+'". This is a bug in React.')}f[O2]=_,E1(f),L=f}_.stateNode=L}else SW(I,_.type,_.stateNode);else _.stateNode=CW(I,L,_.memoizedProps);else f!==L?(f===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):f.count--,L===null?SW(I,_.type,_.stateNode):CW(I,L,_.memoizedProps)):L===null&&_.stateNode!==null&&DG(_,_.memoizedProps,z.memoizedProps)}break;case 27:e2(J,_),_5(_),L&512&&(e0||z===null||A4(z,z.return)),z!==null&&L&4&&DG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(e2(J,_),_5(_),L&512&&(e0||z===null||A4(z,z.return)),_.flags&32){I=_.stateNode;try{M1(_,WW,I)}catch(V1){B0(_,_.return,V1)}}L&4&&_.stateNode!=null&&(I=_.memoizedProps,DG(_,I,z!==null?z.memoizedProps:I)),L&1024&&(LF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(e2(J,_),_5(_),L&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.");L=_.memoizedProps,z=z!==null?z.memoizedProps:L,I=_.stateNode;try{M1(_,DI,I,z,L)}catch(V1){B0(_,_.return,V1)}}break;case 3:if(I=s4(),Zq=null,f=s5,s5=e$(J.containerInfo),e2(J,_),s5=f,_5(_),L&4&&z!==null&&z.memoizedState.isDehydrated)try{M1(_,iI,J.containerInfo)}catch(V1){B0(_,_.return,V1)}LF&&(LF=!1,Az(_)),J.effectDuration+=A$(I);break;case 4:L=s5,s5=e$(_.stateNode.containerInfo),e2(J,_),_5(_),s5=L;break;case 12:L=s4(),e2(J,_),_5(_),_.stateNode.effectDuration+=E9(L);break;case 31:e2(J,_),_5(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,d$(_,L)));break;case 13:e2(J,_),_5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(iQ=z2()),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,d$(_,L)));break;case 22:I=_.memoizedState!==null;var i=z!==null&&z.memoizedState!==null,Z1=H3,f1=e0;if(H3=Z1||I,e0=f1||i,e2(J,_),e0=f1,H3=Z1,i&&!I&&!Z1&&!f1&&(_.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z$(_,x1,g1),_5(_),L&8192)_:for(J=_.stateNode,J._visibility=I?J._visibility&~R_:J._visibility|R_,!I||z===null||i||H3||e0||(a6(_),(_.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(_,x1,g1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){i=z=J;try{f=i.stateNode,I?M1(i,hI,f):M1(i,gI,i.stateNode,i.memoizedProps)}catch(V1){B0(i,i.return,V1)}}}else if(J.tag===6){if(z===null){i=J;try{n=i.stateNode,I?M1(i,xI,n):M1(i,pI,n,i.memoizedProps)}catch(V1){B0(i,i.return,V1)}}}else if(J.tag===18){if(z===null){i=J;try{_1=i.stateNode,I?M1(i,EI,_1):M1(i,mI,i.stateNode)}catch(V1){B0(i,i.return,V1)}}}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 _;z===J&&(z=null),J=J.return}z===J&&(z=null),J.sibling.return=J.return,J=J.sibling}L&4&&(L=_.updateQueue,L!==null&&(z=L.retryQueue,z!==null&&(L.retryQueue=null,d$(_,z))));break;case 19:e2(J,_),_5(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,d$(_,L)));break;case 30:break;case 21:break;default:e2(J,_),_5(_)}(_.mode&t1)!==p1&&0<=x1&&0<=g1&&((x0||0.05<u0)&&F4(_,x1,g1,u0,y0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<g1-x1&&(Xz(_.return.alternate,_.return)||Z4(_,x1,g1,"Mount"))),F5($),H4(q),y0=G,x0=K}function _5(_){var J=_.flags;if(J&2){try{M1(_,FI,_)}catch($){B0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Az(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Az(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function M4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Hz(_,J.alternate,J),J=J.sibling}function Mz(_){var J=Z5(),$=X4(),q=Y4(),G=z4();switch(_.tag){case 0:case 11:case 14:case 15:yG(_,_.return,A5),a6(_);break;case 1:A4(_,_.return);var K=_.stateNode;typeof K.componentWillUnmount==="function"&&Uz(_,_.return,K),a6(_);break;case 27:M1(_,q_,_.stateNode);case 26:case 5:A4(_,_.return),a6(_);break;case 22:_.memoizedState===null&&a6(_);break;case 30:a6(_);break;default:a6(_)}(_.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(_,x1,g1,u0,y0),F5(J),H4($),y0=q,x0=G}function a6(_){for(_=_.child;_!==null;)Mz(_),_=_.sibling}function Tz(_,J,$,q){var G=Z5(),K=X4(),z=Y4(),L=z4(),I=$.flags;switch($.tag){case 0:case 11:case 15:T4(_,$,q),$z($,A5);break;case 1:if(T4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&M1($,QF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{M1($,iO,J,_)}catch(f){B0($,$.return,f)}}q&&I&64&&qz($),s9($,$.return);break;case 27:Kz($);case 26:case 5:T4(_,$,q),q&&J===null&&I&4&&Zz($),s9($,$.return);break;case 12:if(q&&I&4){I=s4(),T4(_,$,q),q=$.stateNode,q.effectDuration+=E9(I);try{M1($,Gz,$,J,e3,q.effectDuration)}catch(f){B0($,$.return,f)}}else T4(_,$,q);break;case 31:T4(_,$,q),q&&I&4&&Wz(_,$);break;case 13:T4(_,$,q),q&&I&4&&Bz(_,$);break;case 22:$.memoizedState===null&&T4(_,$,q),s9($,$.return);break;case 30:break;default:T4(_,$,q)}($.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4($,x1,g1,u0,y0),F5(G),H4(K),y0=z,x0=L}function T4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Tz(_,J.alternate,J,$),J=J.sibling}function EG(_,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&&c6(_),$!=null&&b9($))}function hG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(c6(J),_!=null&&b9(_))}function c5(_,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 K=J.sibling;Rz(_,J,$,q,K!==null?K.actualStartTime:G),J=K}}function Rz(_,J,$,q,G){var K=Z5(),z=X4(),L=Y4(),I=z4(),f=s3,n=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&t1)!==p1&&0<J.actualStartTime&&(J.flags&1)!==0&&F$(J,J.actualStartTime,G,G2,$),c5(_,J,$,q,G),n&2048&&Qz(J,d2|V5);break;case 1:(J.mode&t1)!==p1&&0<J.actualStartTime&&((J.flags&128)!==0?OU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&F$(J,J.actualStartTime,G,G2,$)),c5(_,J,$,q,G);break;case 3:var _1=s4(),i=G2;G2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,c5(_,J,$,q,G),G2=i,n&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(c6(q),$!=null&&b9($))),_.passiveEffectDuration+=A$(_1);break;case 12:if(n&2048){n=s4(),c5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=E9(n);try{M1(J,ZI,J,J.alternate,e3,_.passiveEffectDuration)}catch(Z1){B0(J,J.return,Z1)}}else c5(_,J,$,q,G);break;case 31:n=G2,_1=J.alternate!==null?J.alternate.memoizedState:null,i=J.memoizedState,_1!==null&&i===null?(i=J.deletions,i!==null&&0<i.length&&i[0].tag===18?(G2=!1,_1=_1.hydrationErrors,_1!==null&&OU(J,J.actualStartTime,G,_1)):G2=!0):G2=!1,c5(_,J,$,q,G),G2=n;break;case 13:n=G2,_1=J.alternate!==null?J.alternate.memoizedState:null,i=J.memoizedState,_1===null||_1.dehydrated===null||i!==null&&i.dehydrated!==null?G2=!1:(i=J.deletions,i!==null&&0<i.length&&i[0].tag===18?(G2=!1,_1=_1.hydrationErrors,_1!==null&&OU(J,J.actualStartTime,G,_1)):G2=!0),c5(_,J,$,q,G),G2=n;break;case 23:break;case 22:i=J.stateNode,_1=J.alternate,J.memoizedState!==null?i._visibility&J3?c5(_,J,$,q,G):t9(_,J,$,q,G):i._visibility&J3?c5(_,J,$,q,G):(i._visibility|=J3,U7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&t1)===p1||G2||(_=J.actualStartTime,0<=_&&0.05<G-_&&Z$(J,_,G),0<=x1&&0<=g1&&0.05<g1-x1&&Z$(J,x1,g1))),n&2048&&EG(_1,J);break;case 24:c5(_,J,$,q,G),n&2048&&hG(J.alternate,J);break;default:c5(_,J,$,q,G)}if((J.mode&t1)!==p1){if(_=!G2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&Z4(J,$,G,"Mount");0<=x1&&0<=g1&&((x0||0.05<u0)&&F4(J,x1,g1,u0,y0),_&&0.05<g1-x1&&Z4(J,x1,g1,"Mount"))}F5(K),H4(z),y0=L,x0=I,s3=f}function U7(_,J,$,q,G,K){G=G&&((J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child));for(J=J.child;J!==null;){var z=J.sibling;Oz(_,J,$,q,G,z!==null?z.actualStartTime:K),J=z}}function Oz(_,J,$,q,G,K){var z=Z5(),L=X4(),I=Y4(),f=z4(),n=s3;G&&(J.mode&t1)!==p1&&0<J.actualStartTime&&(J.flags&1)!==0&&F$(J,J.actualStartTime,K,G2,$);var _1=J.flags;switch(J.tag){case 0:case 11:case 15:U7(_,J,$,q,G,K),Qz(J,d2);break;case 23:break;case 22:var i=J.stateNode;J.memoizedState!==null?i._visibility&J3?U7(_,J,$,q,G,K):t9(_,J,$,q,K):(i._visibility|=J3,U7(_,J,$,q,G,K)),G&&_1&2048&&EG(J.alternate,J);break;case 24:U7(_,J,$,q,G,K),G&&_1&2048&&hG(J.alternate,J);break;default:U7(_,J,$,q,G,K)}(J.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(J,x1,g1,u0,y0),F5(z),H4(L),y0=I,x0=f,s3=n}function t9(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var K=J.child;K!==null;){J=K.sibling;var z=_,L=$,I=q,f=J!==null?J.actualStartTime:G,n=s3;(K.mode&t1)!==p1&&0<K.actualStartTime&&(K.flags&1)!==0&&F$(K,K.actualStartTime,f,G2,L);var _1=K.flags;switch(K.tag){case 22:t9(z,K,L,I,f),_1&2048&&EG(K.alternate,K);break;case 24:t9(z,K,L,I,f),_1&2048&&hG(K.alternate,K);break;default:t9(z,K,L,I,f)}s3=n,K=J}}function G7(_,J,$){if(_.subtreeFlags&m_)for(_=_.child;_!==null;)Iz(_,J,$),_=_.sibling}function Iz(_,J,$){switch(_.tag){case 26:G7(_,J,$),_.flags&m_&&_.memoizedState!==null&&nI($,s5,_.memoizedState,_.memoizedProps);break;case 5:G7(_,J,$);break;case 3:case 4:var q=s5;s5=e$(_.stateNode.containerInfo),G7(_,J,$),s5=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=m_,m_=16777216,G7(_,J,$),m_=q):G7(_,J,$));break;default:G7(_,J,$)}}function wz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function o9(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=Z5();B2=q,Cz(q,_),(q.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(q,x1,g1,"Unmount"),F5(G)}wz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Pz(_),_=_.sibling}function Pz(_){var J=Z5(),$=X4(),q=Y4(),G=z4();switch(_.tag){case 0:case 11:case 15:o9(_),_.flags&2048&&kG(_,_.return,d2|V5);break;case 3:var K=s4();o9(_),_.stateNode.passiveEffectDuration+=A$(K);break;case 12:K=s4(),o9(_),_.stateNode.passiveEffectDuration+=E9(K);break;case 22:K=_.stateNode,_.memoizedState!==null&&K._visibility&J3&&(_.return===null||_.return.tag!==13)?(K._visibility&=~J3,i$(_),(_.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(_,x1,g1,"Disconnect")):o9(_);break;default:o9(_)}(_.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(_,x1,g1,u0,y0),F5(J),H4($),x0=G,y0=q}function i$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=Z5();B2=q,Cz(q,_),(q.mode&t1)!==p1&&0<=x1&&0<=g1&&0.05<g1-x1&&Z4(q,x1,g1,"Unmount"),F5(G)}wz(_)}for(_=_.child;_!==null;)Nz(_),_=_.sibling}function Nz(_){var J=Z5(),$=X4(),q=Y4(),G=z4();switch(_.tag){case 0:case 11:case 15:kG(_,_.return,d2),i$(_);break;case 22:var K=_.stateNode;K._visibility&J3&&(K._visibility&=~J3,i$(_));break;default:i$(_)}(_.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(_,x1,g1,u0,y0),F5(J),H4($),x0=G,y0=q}function Cz(_,J){for(;B2!==null;){var $=B2,q=$,G=J,K=Z5(),z=X4(),L=Y4(),I=z4();switch(q.tag){case 0:case 11:case 15:kG(q,G,d2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&c6(G));break;case 24:b9(q.memoizedState.cache)}if((q.mode&t1)!==p1&&0<=x1&&0<=g1&&(x0||0.05<u0)&&F4(q,x1,g1,u0,y0),F5(K),H4(z),x0=I,y0=L,q=$.child,q!==null)q.return=$,B2=q;else _:for($=_;B2!==null;){if(q=B2,K=q.sibling,z=q.return,Yz(q),q===$){B2=null;break _}if(K!==null){K.return=z,B2=K;break _}B2=z}}}function HI(){yP.forEach(function(_){return _()})}function fz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||H1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function X5(_){if((H0&Z2)!==L2&&n1!==0)return n1&-n1;var J=H1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),iG()):$1()}function Sz(){if(Q5===0)if((n1&536870912)===0||G0){var _=HQ;HQ<<=1,(HQ&3932160)===0&&(HQ=262144),Q5=_}else Q5=536870912;return _=L5.current,_!==null&&(_.flags|=32),Q5}function h0(_,J,$){if(d7&&console.error("useInsertionEffect must not schedule updates."),fF&&(tQ=!0),_===P0&&(T0===K8||T0===X8)||_.cancelPendingCommit!==null)F7(_,0),g3(_,n1,Q5,!1);if(C2(_,$),(H0&Z2)!==L2&&_===P0){if(P4)switch(J.tag){case 0:case 11:case 15:_=e1&&m(e1)||"Unknown",JA.has(_)||(JA.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:_A||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),_A=!0)}}else C4&&y6(_,J,$),OI(J),_===P0&&((H0&Z2)===L2&&(F6|=$),b0===U6&&g3(_,n1,Q5,!1)),R4(_)}function jz(_,J,$){if((H0&(Z2|M5))!==L2)throw Error("Should not already be working.");if(n1!==0&&e1!==null){var q=e1,G=z2();switch(rB){case c_:case K8:var K=C_;S0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",K,G,w5,void 0,"primary-light")):console.timeStamp("Suspended",K,G,w5,void 0,"primary-light"));break;case X8:K=C_,S0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",K,G,w5,void 0,"primary-light")):console.timeStamp("Action",K,G,w5,void 0,"primary-light"));break;default:S0&&(q=G-C_,3>q||console.timeStamp("Blocked",C_,G,w5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}K=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||D2(_,J))?zI(_,J):mG(_,J,!0);var z=$;do{if(K===Y3){c7&&!$&&g3(_,J,0,!1),J=T0,C_=t0(),rB=J;break}else{if(q=z2(),G=_.current.alternate,z&&!YI(G)){U5(J),G=W2,K=q,!S0||K<=G||(p0?p0.run(console.timeStamp.bind(console,"Teared Render",G,K,q0,$0,"error")):console.timeStamp("Teared Render",G,K,q0,$0,"error")),s6(J,q),K=mG(_,J,!1),z=!1;continue}if(K===F8){if(z=J,_.errorRecoveryDisabledLanes&z)var L=0;else L=_.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){U5(J),IU(W2,q,J,p0),s6(J,q),J=L;_:{q=_,K=z,z=d_;var I=q.current.memoizedState.isDehydrated;if(I&&(F7(q,L).flags|=256),L=mG(q,L,!1),L!==F8){if(TF&&!I){q.errorRecoveryDisabledLanes|=K,F6|=K,K=U6;break _}q=i2,i2=z,q!==null&&(i2===null?i2=q:i2.push.apply(i2,q))}K=L}if(z=!1,K!==F8)continue;else q=z2()}}if(K===p_){U5(J),IU(W2,q,J,p0),s6(J,q),F7(_,0),g3(_,J,0,!0);break}_:{switch($=_,K){case Y3:case p_:throw Error("Root did not complete. This is a bug in React.");case U6:if((J&4194048)!==J)break;case pQ:U5(J),jH(W2,q,J,p0),s6(J,q),G=J,(G&127)!==0?fQ=q:(G&4194048)!==0&&(SQ=q),g3($,J,Q5,!G6);break _;case F8:i2=null;break;case gQ:case gL:break;default:throw Error("Unknown root exit status.")}if(H1.actQueue!==null)gG($,G,J,i2,i_,dQ,Q5,F6,H8,K,null,null,W2,q);else{if((J&62914560)===J&&(z=iQ+lL-z2(),10<z)){if(g3($,J,Q5,!G6),O0($,0,!0)!==0)break _;t5=J,$.timeoutHandle=KA(vz.bind(null,$,G,i2,i_,dQ,J,Q5,F6,H8,G6,K,"Throttled",W2,q),z);break _}vz($,G,i2,i_,dQ,J,Q5,F6,H8,G6,K,null,W2,q)}}}break}while(1);R4(_)}function vz(_,J,$,q,G,K,z,L,I,f,n,_1,i,Z1){_.timeoutHandle=L8;var f1=J.subtreeFlags,V1=null;if(f1&8192||(f1&16785408)===16785408){if(V1={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:d4},Iz(J,K,V1),f1=(K&62914560)===K?iQ-z2():(K&4194048)===K?cL-z2():0,f1=eI(V1,f1),f1!==null){t5=K,_.cancelPendingCommit=f1(gG.bind(null,_,J,K,$,q,G,z,L,I,n,V1,V1.waitingForViewTransition?"Waiting for the previous Animation":0<V1.count?0<V1.imgCount?"Suspended on CSS and Images":"Suspended on CSS":V1.imgCount===1?"Suspended on an Image":0<V1.imgCount?"Suspended on Images":null,i,Z1)),g3(_,K,z,!f);return}}gG(_,J,K,$,q,G,z,L,I,n,V1,_1,i,Z1)}function YI(_){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],K=G.getSnapshot;G=G.value;try{if(!p2(K(),G))return!1}catch(z){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 g3(_,J,$,q){J&=~RF,J&=~F6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var K=31-x2(G),z=1<<K;q[K]=-1,G&=~z}$!==0&&x5(_,$,J)}function Z7(){return(H0&(Z2|M5))===L2?(__(0,!1),!1):!0}function xG(){if(e1!==null){if(T0===$5)var _=e1.return;else _=e1,W$(),tU(_),D7=null,u_=0,_=e1;for(;_!==null;)Jz(_.alternate,_),_=_.return;e1=null}}function s6(_,J){(_&127)!==0&&(_6=J),(_&4194048)!==0&&(V4=J),(_&62914560)!==0&&(dB=J),(_&2080374784)!==0&&(iB=J)}function F7(_,J){S0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",$0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",$0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",$0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",$0,"primary-light"));var $=W2;if(W2=t0(),n1!==0&&0<$){if(U5(n1),b0===gQ||b0===U6)jH($,W2,J,p0);else{var q=W2,G=p0;if(S0&&!(q<=$)){var K=(J&738197653)===J?"tertiary-dark":"primary-dark",z=(J&536870912)===J?"Prewarm":(J&201326741)===J?"Interrupted Hydration":"Interrupted Render";G?G.run(console.timeStamp.bind(console,z,$,q,q0,$0,K)):console.timeStamp(z,$,q,q0,$0,K)}}s6(n1,W2)}if($=p0,p0=null,(J&127)!==0){p0=w_,G=0<=v4&&v4<_6?_6:v4,q=0<=_8&&_8<_6?_6:_8,K=0<=q?q:0<=G?G:W2,0<=fQ?(U5(2),vH(fQ,K,J,$)):(jQ&127)!==0&&(U5(2),D9(_6,K,Z3)),$=G;var L=q,I=P_,f=0<V7,n=J6===I_,_1=J6===CQ;if(G=W2,q=w_,K=nZ,z=eZ,S0){if(q0="Blocking",0<$?$>G&&($=G):$=G,0<L?L>$&&(L=$):L=$,I!==null&&$>L){var i=f?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+I,L,$,q0,$0,i)):console.timeStamp(f?"Consecutive":"Event: "+I,L,$,q0,$0,i)}G>$&&(L=n?"error":(J&738197653)===J?"tertiary-light":"primary-light",n=_1?"Promise Resolved":n?"Cascading Update":5<G-$?"Update Blocked":"Update",_1=[],z!=null&&_1.push(["Component name",z]),K!=null&&_1.push(["Method name",K]),$={start:$,end:G,detail:{devtools:{properties:_1,track:q0,trackGroup:$0,color:L}}},q?q.run(performance.measure.bind(performance,n,$)):performance.measure(n,$))}v4=-1.1,J6=0,eZ=nZ=null,fQ=-1.1,V7=_8,_8=-1.1,_6=t0()}if((J&4194048)!==0&&(p0=N_,G=0<=G3&&G3<V4?V4:G3,$=0<=j5&&j5<V4?V4:j5,q=0<=$6&&$6<V4?V4:$6,K=0<=q?q:0<=$?$:W2,0<=SQ?(U5(256),vH(SQ,K,J,p0)):(jQ&4194048)!==0&&(U5(256),D9(V4,K,Z3)),_1=q,L=J8,I=0<Q6,f=_F===CQ,K=W2,q=N_,z=cB,n=lB,S0&&(q0="Transition",0<$?$>K&&($=K):$=K,0<G?G>$&&(G=$):G=$,0<_1?_1>G&&(_1=G):_1=G,G>_1&&L!==null&&(i=I?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+L,_1,G,q0,$0,i)):console.timeStamp(I?"Consecutive":"Event: "+L,_1,G,q0,$0,i)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,q0,$0,"primary-dark")):console.timeStamp("Action",G,$,q0,$0,"primary-dark")),K>$&&(G=f?"Promise Resolved":5<K-$?"Update Blocked":"Update",_1=[],n!=null&&_1.push(["Component name",n]),z!=null&&_1.push(["Method name",z]),$={start:$,end:K,detail:{devtools:{properties:_1,track:q0,trackGroup:$0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),j5=G3=-1.1,_F=0,SQ=-1.1,Q6=$6,$6=-1.1,V4=t0()),(J&62914560)!==0&&(jQ&62914560)!==0&&(U5(4194304),D9(dB,W2,Z3)),(J&2080374784)!==0&&(jQ&2080374784)!==0&&(U5(268435456),D9(iB,W2,Z3)),$=_.timeoutHandle,$!==L8&&(_.timeoutHandle=L8,dP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),t5=0,xG(),P0=_,e1=$=i4(_.current,null),n1=J,T0=$5,T5=null,G6=!1,c7=D2(_,J),TF=!1,b0=Y3,H8=Q5=RF=F6=Z6=0,i2=d_=null,dQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-x2(q),K=1<<G,J|=_[G],q&=~K;return k4=J,K$(),_=EB(),1000<_-bB&&(H1.recentlyCreatedOwnerStacks=0,bB=_),r5.discardPendingWarnings(),$}function Vz(_,J){i1=null,H1.H=x_,H1.getCurrentStack=null,P4=!1,z5=null,J===k7||J===kQ?(J=nH(),T0=c_):J===qF?(J=nH(),T0=pL):T0=J===WF?MF:J!==null&&typeof J==="object"&&typeof J.then==="function"?l_:cQ,T5=J;var $=e1;$===null?(b0=p_,x$(_,G5(J,_.current))):$.mode&t1&&EU($)}function yz(){var _=L5.current;return _===null?!0:(n1&4194048)===n1?v5===null?!0:!1:(n1&62914560)===n1||(n1&536870912)!==0?_===v5:!1}function kz(){var _=H1.H;return H1.H=x_,_===null?x_:_}function Dz(){var _=H1.A;return H1.A=VP,_}function r$(_){p0===null&&(p0=_._debugTask==null?null:_._debugTask)}function a$(){b0=U6,G6||(n1&4194048)!==n1&&L5.current!==null||(c7=!0),(Z6&134217727)===0&&(F6&134217727)===0||P0===null||g3(P0,n1,Q5,!1)}function mG(_,J,$){var q=H0;H0|=Z2;var G=kz(),K=Dz();if(P0!==_||n1!==J){if(C4){var z=_.memoizedUpdaters;0<z.size&&(e9(_,n1),z.clear()),q4(_,J)}i_=null,F7(_,J)}J=!1,z=b0;_:do try{if(T0!==$5&&e1!==null){var L=e1,I=T5;switch(T0){case MF:xG(),z=pQ;break _;case c_:case K8:case X8:case l_:L5.current===null&&(J=!0);var f=T0;if(T0=$5,T5=null,K7(_,L,I,f),$&&c7){z=Y3;break _}break;default:f=T0,T0=$5,T5=null,K7(_,L,I,f)}}uz(),z=b0;break}catch(n){Vz(_,n)}while(1);return J&&_.shellSuspendCounter++,W$(),H0=q,H1.H=G,H1.A=K,e1===null&&(P0=null,n1=0,K$()),z}function uz(){for(;e1!==null;)bz(e1)}function zI(_,J){var $=H0;H0|=Z2;var q=kz(),G=Dz();if(P0!==_||n1!==J){if(C4){var K=_.memoizedUpdaters;0<K.size&&(e9(_,n1),K.clear()),q4(_,J)}i_=null,rQ=z2()+dL,F7(_,J)}else c7=D2(_,J);_:do try{if(T0!==$5&&e1!==null)J:switch(J=e1,K=T5,T0){case cQ:T0=$5,T5=null,K7(_,J,K,cQ);break;case K8:case X8:if(tH(K)){T0=$5,T5=null,Ez(J);break}J=function(){T0!==K8&&T0!==X8||P0!==_||(T0=lQ),R4(_)},K.then(J,J);break _;case c_:T0=lQ;break _;case pL:T0=AF;break _;case lQ:tH(K)?(T0=$5,T5=null,Ez(J)):(T0=$5,T5=null,K7(_,J,K,lQ));break;case AF:var z=null;switch(e1.tag){case 26:z=e1.memoizedState;case 5:case 27:var L=e1;if(z?jW(z):L.stateNode.complete){T0=$5,T5=null;var I=L.sibling;if(I!==null)e1=I;else{var f=L.return;f!==null?(e1=f,s$(f)):e1=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}T0=$5,T5=null,K7(_,J,K,AF);break;case l_:T0=$5,T5=null,K7(_,J,K,l_);break;case MF:xG(),b0=pQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}H1.actQueue!==null?uz():WI();break}catch(n){Vz(_,n)}while(1);if(W$(),H1.H=q,H1.A=G,H0=$,e1!==null)return Y3;return P0=null,n1=0,K$(),b0}function WI(){for(;e1!==null&&!Yw();)bz(e1)}function bz(_){var J=_.alternate;(_.mode&t1)!==p1?(bU(_),J=M1(_,vG,J,_,k4),EU(_)):J=M1(_,vG,J,_,k4),_.memoizedProps=_.pendingProps,J===null?s$(_):e1=J}function Ez(_){var J=M1(_,BI,_);_.memoizedProps=_.pendingProps,J===null?s$(_):e1=J}function BI(_){var J=_.alternate,$=(_.mode&t1)!==p1;switch($&&bU(_),_.tag){case 15:case 0:J=aY(J,_,_.pendingProps,_.type,void 0,n1);break;case 11:J=aY(J,_,_.pendingProps,_.type.render,_.ref,n1);break;case 5:tU(_);default:Jz(J,_),_=e1=bH(_,k4),J=vG(J,_,k4)}return $&&EU(_),J}function K7(_,J,$,q){W$(),tU(J),D7=null,u_=0;var G=J.return;try{if(eO(_,G,J,$,n1)){b0=p_,x$(_,G5($,_.current)),e1=null;return}}catch(K){if(G!==null)throw e1=G,K;b0=p_,x$(_,G5($,_.current)),e1=null;return}if(J.flags&32768){if(G0||q===cQ)_=!0;else if(c7||(n1&536870912)!==0)_=!1;else if(G6=_=!0,q===K8||q===X8||q===c_||q===l_)q=L5.current,q!==null&&q.tag===13&&(q.flags|=16384);hz(J,_)}else s$(J)}function s$(_){var J=_;do{if((J.flags&32768)!==0){hz(J,G6);return}var $=J.alternate;if(_=J.return,bU(J),$=M1(J,$I,$,J,k4),(J.mode&t1)!==p1&&dH(J),$!==null){e1=$;return}if(J=J.sibling,J!==null){e1=J;return}e1=J=_}while(J!==null);b0===Y3&&(b0=gL)}function hz(_,J){do{var $=QI(_.alternate,_);if($!==null){$.flags&=32767,e1=$;return}if((_.mode&t1)!==p1){dH(_),$=_.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)){e1=_;return}e1=_=$}while(_!==null);b0=pQ,e1=null}function gG(_,J,$,q,G,K,z,L,I,f,n,_1,i,Z1){_.cancelPendingCommit=null;do n9();while(J2!==X6);if(r5.flushLegacyContextWarning(),r5.flushPendingUnsafeLifecycleWarnings(),(H0&(Z2|M5))!==L2)throw Error("Should not already be working.");if(U5($),f===F8?IU(i,Z1,$,p0):q!==null?mO(i,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,p0):xO(i,Z1,$,p0),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(K=J.lanes|J.childLanes,K|=rZ,C3(_,$,K,z,L,I),_===P0&&(e1=P0=null,n1=0),l7=J,H6=_,t5=$,wF=K,NF=G,oL=q,PF=Z1,nL=_1,o5=aQ,eL=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,RI(B7,function(){return n_=window.event,o5===aQ&&(o5=IF),cz(),null})):(_.callbackNode=null,_.callbackPriority=0),U3=null,e3=t0(),_1!==null&&gO(Z1,e3,_1,p0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=H1.T,H1.T=null,G=L0.p,L0.p=W5,z=H0,H0|=M5;try{KI(_,J,$)}finally{H0=z,L0.p=G,H1.T=q}}J2=rL,xz(),mz(),gz()}}function xz(){if(J2===rL){J2=X6;var _=H6,J=l7,$=t5,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=H1.T,H1.T=null;var G=L0.p;L0.p=W5;var K=H0;H0|=M5;try{g7=$,p7=_,M$(),Lz(J,_),p7=g7=null,$=bF;var z=CH(_.containerInfo),L=$.focusedElem,I=$.selectionRange;if(z!==L&&L&&L.ownerDocument&&NH(L.ownerDocument.documentElement,L)){if(I!==null&&TU(L)){var{start:f,end:n}=I;if(n===void 0&&(n=f),"selectionStart"in L)L.selectionStart=f,L.selectionEnd=Math.min(n,L.value.length);else{var _1=L.ownerDocument||document,i=_1&&_1.defaultView||window;if(i.getSelection){var Z1=i.getSelection(),f1=L.textContent.length,V1=Math.min(I.start,f1),C0=I.end===void 0?V1:Math.min(I.end,f1);!Z1.extend&&V1>C0&&(z=C0,C0=V1,V1=z);var F0=PH(L,V1),l=PH(L,C0);if(F0&&l&&(Z1.rangeCount!==1||Z1.anchorNode!==F0.node||Z1.anchorOffset!==F0.offset||Z1.focusNode!==l.node||Z1.focusOffset!==l.offset)){var r=_1.createRange();r.setStart(F0.node,F0.offset),Z1.removeAllRanges(),V1>C0?(Z1.addRange(r),Z1.extend(l.node,l.offset)):(r.setEnd(l.node,l.offset),Z1.addRange(r))}}}}_1=[];for(Z1=L;Z1=Z1.parentNode;)Z1.nodeType===1&&_1.push({element:Z1,left:Z1.scrollLeft,top:Z1.scrollTop});typeof L.focus==="function"&&L.focus();for(L=0;L<_1.length;L++){var o=_1[L];o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}Xq=!!uF,bF=uF=null}finally{H0=K,L0.p=G,H1.T=q}}_.current=J,J2=aL}}function mz(){if(J2===aL){J2=X6;var _=eL;if(_!==null){e3=t0();var J=q3,$=e3;!S0||$<=J||(Z3?Z3.run(console.timeStamp.bind(console,_,J,$,q0,$0,"secondary-light")):console.timeStamp(_,J,$,q0,$0,"secondary-light"))}_=H6,J=l7,$=t5;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=H1.T,H1.T=null;var G=L0.p;L0.p=W5;var K=H0;H0|=M5;try{g7=$,p7=_,M$(),Hz(_,J.alternate,J),p7=g7=null}finally{H0=K,L0.p=G,H1.T=q}}_=PF,J=nL,q3=t0(),_=J===null?_:e3,J=q3,$=o5===OF,q=p0,U3!==null?VH(_,J,U3,!1,q):!S0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,q0,$0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,q0,$0,$?"error":"secondary-dark")),J2=sL}}function gz(){if(J2===tL||J2===sL){if(J2===tL){var _=q3;q3=t0();var J=q3,$=o5===OF;!S0||J<=_||(Z3?Z3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,q0,$0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,q0,$0,$?" error":"secondary-light")),o5!==OF&&(o5=iL)}J2=X6,zw(),_=H6;var q=l7;J=t5,$=oL;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?J2=sQ:(J2=X6,l7=H6=null,pz(_,_.pendingLanes),Y8=0,a_=null);var K=_.pendingLanes;if(K===0&&(K6=null),G||rz(_),K=j(J),q=q.stateNode,S2&&typeof S2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(K){case W5:var L=NZ;break;case d5:L=CZ;break;case f4:L=B7;break;case zQ:L=fZ;break;default:L=B7}S2.onCommitFiberRoot(L7,q,L,z)}catch(_1){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",_1))}if(C4&&_.memoizedUpdaters.clear(),HI(),$!==null){z=H1.T,L=L0.p,L0.p=W5,H1.T=null;try{var I=_.onRecoverableError;for(q=0;q<$.length;q++){var f=$[q],n=LI(f.stack);M1(f.source,I,f.value,n)}}finally{H1.T=z,L0.p=L}}(t5&3)!==0&&n9(),R4(_),K=_.pendingLanes,(J&261930)!==0&&(K&42)!==0?(VQ=!0,_===CF?r_++:(r_=0,CF=_)):r_=0,G||s6(J,q3),__(0,!1)}}function LI(_){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 pz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,b9(J)))}function n9(){return xz(),mz(),gz(),cz()}function cz(){if(J2!==sQ)return!1;var _=H6,J=wF;wF=0;var $=j(t5),q=f4===0||f4>$?f4:$;$=H1.T;var G=L0.p;try{L0.p=q,H1.T=null;var K=NF;NF=null,q=H6;var z=t5;if(J2=X6,l7=H6=null,t5=0,(H0&(Z2|M5))!==L2)throw Error("Cannot flush passive effects while already rendering.");U5(z),fF=!0,tQ=!1;var L=0;if(U3=null,L=z2(),o5===iL)D9(q3,L,Z3);else{var I=q3,f=L,n=o5===IF;!S0||f<=I||(p0?p0.run(console.timeStamp.bind(console,n?"Waiting for Paint":"Waiting",I,f,q0,$0,"secondary-light")):console.timeStamp(n?"Waiting for Paint":"Waiting",I,f,q0,$0,"secondary-light"))}I=H0,H0|=M5;var _1=q.current;M$(),Pz(_1);var i=q.current;_1=PF,M$(),Rz(q,i,z,K,_1),rz(q),H0=I;var Z1=z2();if(i=L,_1=p0,U3!==null?VH(i,Z1,U3,!0,_1):!S0||Z1<=i||(_1?_1.run(console.timeStamp.bind(console,"Remaining Effects",i,Z1,q0,$0,"secondary-dark")):console.timeStamp("Remaining Effects",i,Z1,q0,$0,"secondary-dark")),s6(z,Z1),__(0,!1),tQ?q===a_?Y8++:(Y8=0,a_=q):Y8=0,tQ=fF=!1,S2&&typeof S2.onPostCommitFiberRoot==="function")try{S2.onPostCommitFiberRoot(L7,q)}catch(V1){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",V1))}var f1=q.current.stateNode;return f1.effectDuration=0,f1.passiveEffectDuration=0,!0}finally{L0.p=G,H1.T=$,pz(_,J)}}function lz(_,J,$){J=G5($,J),iH(J),J=TG(_.stateNode,J,2),_=E3(_,J,2),_!==null&&(C2(_,2),R4(_))}function B0(_,J,$){if(d7=!1,_.tag===3)lz(_,_,$);else{for(;J!==null;){if(J.tag===3){lz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(K6===null||!K6.has(q))){_=G5($,_),iH(_),$=RG(2),q=E3(J,$,2),q!==null&&(OG($,q,J,_),C2(q,2),R4(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.
154
154
 
155
155
  Error message:
156
156
 
157
- %s`,$)}}function hG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new jP;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($)||(WK=!0,G.add($),q=zI.bind(null,_,J,$),N4&&s9(_,$),J.then(q,q))}function zI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>j4&&(e3=j4=i0(),T_=RQ("Promise Resolved"),_6=OQ):($&4194048)!==0&&0>S5&&(y4=S5=i0(),O_=RQ("Promise Resolved"),tZ=OQ),Iz()&&K1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,$)}}function pG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new kP;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($)||(TF=!0,G.add($),q=AI.bind(null,_,J,$),C4&&e9(_,$),J.then(q,q))}function AI(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>v4&&(_6=v4=t0(),w_=NQ("Promise Resolved"),J6=CQ):($&4194048)!==0&&0>j5&&(V4=j5=t0(),N_=NQ("Promise Resolved"),_F=CQ),fz()&&H1.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
158
 
159
159
  When testing, code that resolves suspended data should be wrapped into act(...):
160
160
 
@@ -163,7 +163,7 @@ act(() => {
163
163
  });
164
164
  /* assert on the output */
165
165
 
166
- 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`),I0===_&&(o1&$)===$&&(D0===q6||D0===uQ&&(o1&62914560)===o1&&F2()-gQ<xL?(X0&$2)===Y2&&G7(_,0):LK|=$,F8===o1&&(F8=0)),T4(_)}function mz(_,J){J===0&&(J=I2()),_=N2(_,J),_!==null&&(P2(_,J),T4(_))}function BI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),mz(_,$)}function WI(_,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),mz(_,$)}function xG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,K=G.type===$Q;K=$||K,G.tag!==22?G.flags&67108864?K&&W1(G,gz,q,G):xG(q,G,K):G.memoizedState===null&&(K&&G.flags&8192?W1(G,gz,q,G):G.subtreeFlags&67108864&&W1(G,xG,q,G,K)),J=J.sibling}}function gz(_,J){e1(!0);try{zz(J),Rz(J),Bz(_,J.alternate,J,!1),Lz(_,J,0,null,!1,0)}finally{e1(!1)}}function pz(_){var J=!0;_.current.mode&(C2|d5)||(J=!1),xG(_,_.current,J)}function cz(_){if((X0&$2)===Y2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=m(_)||"ReactComponent",rQ!==null){if(rQ.has(J))return;rQ.add(J)}else rQ=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 s9(_,J){N4&&_.memoizedUpdaters.forEach(function($){y6(_,$,J)})}function LI(_,J){var $=K1.actQueue;return $!==null?($.push(J),kP):RZ(_,J)}function AI(_){Iz()&&K1.actQueue===null&&W1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
166
+ 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`),P0===_&&(n1&$)===$&&(b0===U6||b0===gQ&&(n1&62914560)===n1&&z2()-iQ<lL?(H0&Z2)===L2&&F7(_,0):RF|=$,H8===n1&&(H8=0)),R4(_)}function dz(_,J){J===0&&(J=P2()),_=f2(_,J),_!==null&&(C2(_,J),R4(_))}function MI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),dz(_,$)}function TI(_,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),dz(_,$)}function cG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,K=G.type===ZQ;K=$||K,G.tag!==22?G.flags&67108864?K&&M1(G,iz,q,G):cG(q,G,K):G.memoizedState===null&&(K&&G.flags&8192?M1(G,iz,q,G):G.subtreeFlags&67108864&&M1(G,cG,q,G,K)),J=J.sibling}}function iz(_,J){b1(!0);try{Mz(J),Nz(J),Tz(_,J.alternate,J,!1),Oz(_,J,0,null,!1,0)}finally{b1(!1)}}function rz(_){var J=!0;_.current.mode&(j2|i5)||(J=!1),cG(_,_.current,J)}function az(_){if((H0&Z2)===L2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=m(_)||"ReactComponent",oQ!==null){if(oQ.has(J))return;oQ.add(J)}else oQ=new Set([J]);M1(_,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 e9(_,J){C4&&_.memoizedUpdaters.forEach(function($){y6(_,$,J)})}function RI(_,J){var $=H1.actQueue;return $!==null?($.push(J),bP):PZ(_,J)}function OI(_){fz()&&H1.actQueue===null&&M1(_,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,16 +172,16 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- 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 T4(_){_!==l7&&_.next===null&&(l7===null?iQ=l7=_:l7=l7.next=_),aQ=!0,K1.actQueue!==null?NK||(NK=!0,iz()):PK||(PK=!0,iz())}function t9(_,J){if(!fK&&aQ){fK=!0;do{var $=!1;for(var q=iQ;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var K=0;else{var{suspendedLanes:z,pingedLanes:L}=q;K=(1<<31-h2(42|_)+1)-1,K&=G&~(z&~L),K=K&201326741?K&201326741|1:K?K|2:0}K!==0&&($=!0,rz(q,K))}else K=o1,K=k2(q,q===I0?K:0,q.cancelPendingCommit!==null||q.timeoutHandle!==B8),(K&3)===0||v2(q,K)||($=!0,rz(q,K));q=q.next}}while($);fK=!1}}function MI(){a_=window.event,mG()}function mG(){aQ=NK=PK=!1;var _=0;H6!==0&&NI()&&(_=H6);for(var J=F2(),$=null,q=iQ;q!==null;){var G=q.next,K=lz(q,J);if(K===0)q.next=null,$===null?iQ=G:$.next=G,G===null&&(l7=$);else if($=q,_!==0||(K&3)!==0)aQ=!0;q=G}n0!==F6&&n0!==lQ||t9(_,!1),H6!==0&&(H6=0)}function lz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,K=_.pendingLanes&-62914561;0<K;){var z=31-h2(K),L=1<<z,I=G[z];if(I===-1){if((L&$)===0||(L&q)!==0)G[z]=D2(L,J)}else I<=J&&(_.expiredLanes|=L);K&=~L}if(J=I0,$=o1,$=k2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==B8),q=_.callbackNode,$===0||_===J&&(A0===Z8||A0===K8)||_.cancelPendingCommit!==null)return q!==null&&gG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||v2(_,$)){if(J=$&-$,J!==_.callbackPriority||K1.actQueue!==null&&q!==CK)gG(q);else return J;switch(j($)){case z5:case l5:$=IZ;break;case f4:$=z7;break;case KQ:$=wZ;break;default:$=z7}return q=dz.bind(null,_),K1.actQueue!==null?(K1.actQueue.push(q),$=CK):$=RZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&gG(q),_.callbackPriority=2,_.callbackNode=null,2}function dz(_,J){if(fQ=NQ=!1,a_=window.event,n0!==F6&&n0!==lQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(t5===cQ&&(t5=MK),a9()&&_.callbackNode!==$)return null;var q=o1;if(q=k2(_,_===I0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==B8),q===0)return null;return Pz(_,q,J),lz(_,F2()),_.callbackNode!=null&&_.callbackNode===$?dz.bind(null,_):null}function rz(_,J){if(a9())return null;NQ=fQ,fQ=!1,Pz(_,J,!0)}function gG(_){_!==CK&&_!==null&&Zw(_)}function iz(){K1.actQueue!==null&&K1.actQueue.push(function(){return mG(),null}),pP(function(){(X0&($2|A5))!==Y2?RZ(OZ,MI):mG()})}function pG(){if(H6===0){var _=_8;_===0&&(_=UQ,UQ<<=1,(UQ&261888)===0&&(UQ=256)),H6=_}return H6}function az(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return L1(_,"action"),C9(""+_)}function sz(_,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 TI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var K=az((G[x2]||null).action),z=q.submitter;z&&(J=(J=z[x2]||null)?az(J.formAction):z.getAttribute("formAction"),J!==null&&(K=J,z=null));var L=new zQ("action","action",null,q,G);_.push({event:L,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(H6!==0){var I=z?sz(G,z):new FormData(G),C={pending:!0,data:I,method:G.method,action:K};Object.freeze(C),KG($,C,null,I)}}else typeof K==="function"&&(L.preventDefault(),I=z?sz(G,z):new FormData(G),C={pending:!0,data:I,method:G.method,action:K},Object.freeze(C),KG($,C,K,I))},currentTarget:G}]})}}function d$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){xZ(q)}_.currentTarget=null}function tz(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,K=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var L=q[z],I=L.instance,C=L.currentTarget;if(L=L.listener,I!==G&&K.isPropagationStopped())break _;I!==null?W1(I,d$,K,L,C):d$(K,L,C),G=I}else for(z=0;z<q.length;z++){if(L=q[z],I=L.instance,C=L.currentTarget,L=L.listener,I!==G&&K.isPropagationStopped())break _;I!==null?W1(I,d$,K,L,C):d$(K,L,C),G=I}}}}function G0(_,J){SK.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[PZ];$===void 0&&($=J[PZ]=new Set);var q=_+"__bubble";$.has(q)||(oz(J,_,2,!1),$.add(q))}function cG(_,J,$){SK.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),oz($,_,q,J)}function lG(_){if(!_[sQ]){_[sQ]=!0,iB.forEach(function($){$!=="selectionchange"&&(SK.has($)||cG($,!1,_),cG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[sQ]||(J[sQ]=!0,cG("selectionchange",!1,J))}}function oz(_,J,$,q){switch(yB(J)){case z5:var G=eI;break;case l5:G=_w;break;default:G=GZ}$=G.bind(null,J,$,_),G=void 0,!jZ||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 dG(_,J,$,q,G){var K=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var z=q.tag;if(z===3||z===4){var L=q.stateNode.containerInfo;if(L===G)break;if(z===4)for(z=q.return;z!==null;){var I=z.tag;if((I===3||I===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;L!==null;){if(z=C1(L),z===null)return;if(I=z.tag,I===5||I===6||I===26||I===27){q=K=z;continue _}L=L.parentNode}}q=q.return}KH(function(){var C=K,e=zU($),_1=[];_:{var d=yW.get(_);if(d!==void 0){var G1=zQ,I1=_;switch(_){case"keypress":if(eJ($)===0)break _;case"keydown":case"keyup":G1=aw;break;case"focusin":I1="focus",G1=vZ;break;case"focusout":I1="blur",G1=vZ;break;case"beforeblur":case"afterblur":G1=vZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G1=LW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G1=uw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G1=ow;break;case fW:case CW:case SW:G1=xw;break;case jW:G1=ew;break;case"scroll":case"scrollend":G1=Dw;break;case"wheel":G1=JP;break;case"copy":case"cut":case"paste":G1=gw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G1=MW;break;case"toggle":case"beforetoggle":G1=QP}var f1=(J&4)!==0,N0=!f1&&(_==="scroll"||_==="scrollend"),Z0=f1?d!==null?d+"Capture":null:d;f1=[];for(var l=C,i;l!==null;){var o=l;if(i=o.stateNode,o=o.tag,o!==5&&o!==26&&o!==27||i===null||Z0===null||(o=S9(l,Z0),o!=null&&f1.push(o9(l,o,i))),N0)break;l=l.return}0<f1.length&&(d=new G1(d,I1,null,$,e),_1.push({event:d,listeners:f1}))}}if((J&7)===0){_:{if(d=_==="mouseover"||_==="pointerover",G1=_==="mouseout"||_==="pointerout",d&&$!==K_&&(I1=$.relatedTarget||$.fromElement)&&(C1(I1)||I1[r3]))break _;if(G1||d){if(d=e.window===e?e:(d=e.ownerDocument)?d.defaultView||d.parentWindow:window,G1){if(I1=$.relatedTarget||$.toElement,G1=C,I1=I1?C1(I1):null,I1!==null&&(N0=f(I1),f1=I1.tag,I1!==N0||f1!==5&&f1!==27&&f1!==6))I1=null}else G1=null,I1=C;if(G1!==I1){if(f1=LW,o="onMouseLeave",Z0="onMouseEnter",l="mouse",_==="pointerout"||_==="pointerover")f1=MW,o="onPointerLeave",Z0="onPointerEnter",l="pointer";if(N0=G1==null?d:l1(G1),i=I1==null?d:l1(I1),d=new f1(o,l+"leave",G1,$,e),d.target=N0,d.relatedTarget=i,o=null,C1(e)===C&&(f1=new f1(Z0,l+"enter",I1,$,e),f1.target=i,f1.relatedTarget=N0,o=f1),N0=o,G1&&I1)J:{f1=RI,Z0=G1,l=I1,i=0;for(o=Z0;o;o=f1(o))i++;o=0;for(var z1=l;z1;z1=f1(z1))o++;for(;0<i-o;)Z0=f1(Z0),i--;for(;0<o-i;)l=f1(l),o--;for(;i--;){if(Z0===l||l!==null&&Z0===l.alternate){f1=Z0;break J}Z0=f1(Z0),l=f1(l)}f1=null}else f1=null;G1!==null&&nz(_1,d,G1,f1,!1),I1!==null&&N0!==null&&nz(_1,N0,I1,f1,!0)}}}_:{if(d=C?l1(C):window,G1=d.nodeName&&d.nodeName.toLowerCase(),G1==="select"||G1==="input"&&d.type==="file")var P1=WH;else if(zH(d))if(PW)P1=kO;else{P1=yO;var r1=jO}else G1=d.nodeName,!G1||G1.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?C&&f9(C.elementType)&&(P1=WH):P1=VO;if(P1&&(P1=P1(_,C))){BH(_1,P1,$,e);break _}r1&&r1(_,d,C),_==="focusout"&&C&&d.type==="number"&&C.memoizedProps.value!=null&&a8(d,"number",d.value)}switch(r1=C?l1(C):window,_){case"focusin":if(zH(r1)||r1.contentEditable==="true")O7=r1,bZ=C,W_=null;break;case"focusout":W_=bZ=O7=null;break;case"mousedown":uZ=!0;break;case"contextmenu":case"mouseup":case"dragend":uZ=!1,IH(_1,$,e);break;case"selectionchange":if(ZP)break;case"keydown":case"keyup":IH(_1,$,e)}var b1;if(DZ)_:{switch(_){case"compositionstart":var y1="onCompositionStart";break _;case"compositionend":y1="onCompositionEnd";break _;case"compositionupdate":y1="onCompositionUpdate";break _}y1=void 0}else R7?HH(_,$)&&(y1="onCompositionEnd"):_==="keydown"&&$.keyCode===TW&&(y1="onCompositionStart");if(y1&&(RW&&$.locale!=="ko"&&(R7||y1!=="onCompositionStart"?y1==="onCompositionEnd"&&R7&&(b1=FH()):(i3=e,yZ=("value"in i3)?i3.value:i3.textContent,R7=!0)),r1=r$(C,y1),0<r1.length&&(y1=new AW(y1,_,null,$,e),_1.push({event:y1,listeners:r1}),b1?y1.data=b1:(b1=YH($),b1!==null&&(y1.data=b1)))),b1=UP?NO(_,$):fO(_,$))y1=r$(C,"onBeforeInput"),0<y1.length&&(r1=new cw("onBeforeInput","beforeinput",null,$,e),_1.push({event:r1,listeners:y1}),r1.data=b1);TI(_1,_,C,$,e)}tz(_1,J)})}function o9(_,J,$){return{instance:_,listener:J,currentTarget:$}}function r$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,K=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||K===null||(G=S9(_,$),G!=null&&q.unshift(o9(_,G,K)),G=S9(_,J),G!=null&&q.push(o9(_,G,K))),_.tag===3)return q;_=_.return}return[]}function RI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function nz(_,J,$,q,G){for(var K=J._reactName,z=[];$!==null&&$!==q;){var L=$,I=L.alternate,C=L.stateNode;if(L=L.tag,I!==null&&I===q)break;L!==5&&L!==26&&L!==27||C===null||(I=C,G?(C=S9($,K),C!=null&&z.unshift(o9($,C,I))):G||(C=S9($,K),C!=null&&z.push(o9($,C,I)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function rG(_,J){OO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||BW||(BW=!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:a6,possibleRegistrationNames:NZ};f9(_)||typeof J.is==="string"||wO(_,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 K2(_,J,$,q){J!==$&&($=g3($),g3(J)!==$&&(q[_]=J))}function OI(_,J,$){J.forEach(function(q){$[JB(q)]=q==="style"?aG(_):_.getAttribute(q)})}function R4(_,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 ez(_,J){return _=_.namespaceURI===XQ||_.namespaceURI===L7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function g3(_){return h1(_)&&(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.",k1(_)),v1(_)),(typeof _==="string"?_:""+_).replace(vP,`
176
- `).replace(DP,"")}function _B(_,J){return J=g3(J),g3(_)===J?!0:!1}function R0(_,J,$,q,G,K){switch($){case"children":if(typeof q==="string")y3(q,J,!1),J==="body"||J==="textarea"&&q===""||v6(_,q);else if(typeof q==="number"||typeof q==="bigint")y3(""+q,J,!1),J!=="body"&&v6(_,""+q);break;case"className":d8(_,"class",q);break;case"tabIndex":d8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":d8(_,$,q);break;case"style":UH(_,q,K);break;case"data":if(J!=="object"){d8(_,"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}L1(q,$),q=C9(""+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||nQ||(nQ=!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||oQ||(oQ=!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"||tQ?J!=="button"||G.type==null||G.type==="submit"||tQ?typeof q==="function"&&(G.name==null||eL||(eL=!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||nQ||(nQ=!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||oQ||(oQ=!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."))):(tQ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(tQ=!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 K==="function"&&($==="formAction"?(J!=="input"&&R0(_,J,"name",G.name,G,null),R0(_,J,"formEncType",G.formEncType,G,null),R0(_,J,"formMethod",G.formMethod,G,null),R0(_,J,"formTarget",G.formTarget,G,null)):(R0(_,J,"encType",G.encType,G,null),R0(_,J,"method",G.method,G,null),R0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}L1(q,$),q=C9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&R4($,q),_.onclick=l4);break;case"onScroll":q!=null&&(typeof q!=="function"&&R4($,q),G0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&R4($,q),G0("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}L1(q,$),$=C9(""+q),_.setAttributeNS(H8,"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"?(L1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||eQ[$]||(eQ[$]=!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"?(L1(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?(L1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(L1(q,$),_.setAttribute($,q));break;case"popover":G0("beforetoggle",_),G0("toggle",_),l8(_,"popover",q);break;case"xlinkActuate":x5(_,H8,"xlink:actuate",q);break;case"xlinkArcrole":x5(_,H8,"xlink:arcrole",q);break;case"xlinkRole":x5(_,H8,"xlink:role",q);break;case"xlinkShow":x5(_,H8,"xlink:show",q);break;case"xlinkTitle":x5(_,H8,"xlink:title",q);break;case"xlinkType":x5(_,H8,"xlink:type",q);break;case"xmlBase":x5(_,jK,"xml:base",q);break;case"xmlLang":x5(_,jK,"xml:lang",q);break;case"xmlSpace":x5(_,jK,"xml:space",q);break;case"is":K!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),l8(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":_A||q==null||typeof q!=="object"||(_A=!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"?($=GH($),l8(_,$,q)):a6.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&R4($,q)}}function iG(_,J,$,q,G,K){switch($){case"style":UH(_,q,K);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"?v6(_,q):(typeof q==="number"||typeof q==="bigint")&&v6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&R4($,q),G0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&R4($,q),G0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&R4($,q),_.onclick=l4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(a6.hasOwnProperty($))q!=null&&typeof q!=="function"&&R4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),K=_[x2]||null,K=K!=null?K[$]:null,typeof K==="function"&&_.removeEventListener(J,K,G),typeof q==="function")){typeof K!=="function"&&K!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):l8(_,$,q)}}}function A2(_,J,$){switch(rG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":G0("error",_),G0("load",_);var q=!1,G=!1,K;for(K in $)if($.hasOwnProperty(K)){var z=$[K];if(z!=null)switch(K){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:R0(_,J,K,z,$,null)}}G&&R0(_,J,"srcSet",$.srcSet,$,null),q&&R0(_,J,"src",$.src,$,null);return;case"input":q4("input",$),G0("invalid",_);var L=K=z=G=null,I=null,C=null;for(q in $)if($.hasOwnProperty(q)){var e=$[q];if(e!=null)switch(q){case"name":G=e;break;case"type":z=e;break;case"checked":I=e;break;case"defaultChecked":C=e;break;case"value":K=e;break;case"defaultValue":L=e;break;case"children":case"dangerouslySetInnerHTML":if(e!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:R0(_,J,q,e,$,null)}}mJ(_,$),A9(_,K,L,I,C,z,G,!1);return;case"select":q4("select",$),G0("invalid",_),q=z=K=null;for(G in $)if($.hasOwnProperty(G)&&(L=$[G],L!=null))switch(G){case"value":K=L;break;case"defaultValue":z=L;break;case"multiple":q=L;default:R0(_,J,G,L,$,null)}cJ(_,$),J=K,$=z,_.multiple=!!q,J!=null?f3(_,!!q,J,!1):$!=null&&f3(_,!!q,$,!0);return;case"textarea":q4("textarea",$),G0("invalid",_),K=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(L=$[z],L!=null))switch(z){case"value":q=L;break;case"defaultValue":G=L;break;case"children":K=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:R0(_,J,z,L,$,null)}lJ(_,$),M9(_,q,G,K);return;case"option":gJ(_,$);for(I in $)if($.hasOwnProperty(I)&&(q=$[I],q!=null))switch(I){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:R0(_,J,I,q,$,null)}return;case"dialog":G0("beforetoggle",_),G0("toggle",_),G0("cancel",_),G0("close",_);break;case"iframe":case"object":G0("load",_);break;case"video":case"audio":for(q=0;q<d_.length;q++)G0(d_[q],_);break;case"image":G0("error",_),G0("load",_);break;case"details":G0("toggle",_);break;case"embed":case"source":case"link":G0("error",_),G0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in $)if($.hasOwnProperty(C)&&(q=$[C],q!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:R0(_,J,C,q,$,null)}return;default:if(f9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&iG(_,J,e,q,$,void 0));return}}for(L in $)$.hasOwnProperty(L)&&(q=$[L],q!=null&&R0(_,J,L,q,$,null))}function II(_,J,$,q){switch(rG(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,K=null,z=null,L=null,I=null,C=null,e=null;for(G1 in $){var _1=$[G1];if($.hasOwnProperty(G1)&&_1!=null)switch(G1){case"checked":break;case"value":break;case"defaultValue":I=_1;default:q.hasOwnProperty(G1)||R0(_,J,G1,null,q,_1)}}for(var d in q){var G1=q[d];if(_1=$[d],q.hasOwnProperty(d)&&(G1!=null||_1!=null))switch(d){case"type":K=G1;break;case"name":G=G1;break;case"checked":C=G1;break;case"defaultChecked":e=G1;break;case"value":z=G1;break;case"defaultValue":L=G1;break;case"children":case"dangerouslySetInnerHTML":if(G1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:G1!==_1&&R0(_,J,d,G1,q,_1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||nL||(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"),nL=!0),!J||q||oL||(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"),oL=!0),i8(_,z,L,I,C,e,K,G);return;case"select":G1=z=L=d=null;for(K in $)if(I=$[K],$.hasOwnProperty(K)&&I!=null)switch(K){case"value":break;case"multiple":G1=I;default:q.hasOwnProperty(K)||R0(_,J,K,null,q,I)}for(G in q)if(K=q[G],I=$[G],q.hasOwnProperty(G)&&(K!=null||I!=null))switch(G){case"value":d=K;break;case"defaultValue":L=K;break;case"multiple":z=K;default:K!==I&&R0(_,J,G,K,q,I)}q=L,J=z,$=G1,d!=null?f3(_,!!J,d,!1):!!$!==!!J&&(q!=null?f3(_,!!J,q,!0):f3(_,!!J,J?[]:"",!1));return;case"textarea":G1=d=null;for(L in $)if(G=$[L],$.hasOwnProperty(L)&&G!=null&&!q.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:R0(_,J,L,null,q,G)}for(z in q)if(G=q[z],K=$[z],q.hasOwnProperty(z)&&(G!=null||K!=null))switch(z){case"value":d=G;break;case"defaultValue":G1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==K&&R0(_,J,z,G,q,K)}dJ(_,d,G1);return;case"option":for(var I1 in $)if(d=$[I1],$.hasOwnProperty(I1)&&d!=null&&!q.hasOwnProperty(I1))switch(I1){case"selected":_.selected=!1;break;default:R0(_,J,I1,null,q,d)}for(I in q)if(d=q[I],G1=$[I],q.hasOwnProperty(I)&&d!==G1&&(d!=null||G1!=null))switch(I){case"selected":_.selected=d&&typeof d!=="function"&&typeof d!=="symbol";break;default:R0(_,J,I,d,q,G1)}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 f1 in $)d=$[f1],$.hasOwnProperty(f1)&&d!=null&&!q.hasOwnProperty(f1)&&R0(_,J,f1,null,q,d);for(C in q)if(d=q[C],G1=$[C],q.hasOwnProperty(C)&&d!==G1&&(d!=null||G1!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:R0(_,J,C,d,q,G1)}return;default:if(f9(J)){for(var N0 in $)d=$[N0],$.hasOwnProperty(N0)&&d!==void 0&&!q.hasOwnProperty(N0)&&iG(_,J,N0,void 0,q,d);for(e in q)d=q[e],G1=$[e],!q.hasOwnProperty(e)||d===G1||d===void 0&&G1===void 0||iG(_,J,e,d,q,G1);return}}for(var Z0 in $)d=$[Z0],$.hasOwnProperty(Z0)&&d!=null&&!q.hasOwnProperty(Z0)&&R0(_,J,Z0,null,q,d);for(_1 in q)d=q[_1],G1=$[_1],!q.hasOwnProperty(_1)||d===G1||d==null&&G1==null||R0(_,J,_1,d,q,G1)}function JB(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function aG(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function $B(_,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="",K;for(K in J)if(J.hasOwnProperty(K)){var z=J[K];z!=null&&typeof z!=="boolean"&&z!==""&&(K.indexOf("--")===0?(i1(z,K),q+=G+K+":"+(""+z).trim()):typeof z!=="number"||z===0||YW.has(K)?(i1(z,K),q+=G+K.replace(ZW,"-$1").toLowerCase().replace(KW,"-ms-")+":"+(""+z).trim()):q+=G+K.replace(ZW,"-$1").toLowerCase().replace(KW,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=g3(q),g3(J)!==q&&($.style=aG(_)))}}function O5(_,J,$,q,G,K){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(L1(q,J),_===""+q)return}K2(J,_,q,K)}function QB(_,J,$,q,G,K){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}K2(J,_,q,K)}function sG(_,J,$,q,G,K){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(L1(q,$),_===""+q)return}K2(J,_,q,K)}function qB(_,J,$,q,G,K){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)&&(L1(q,J),_===""+q))return}K2(J,_,q,K)}function tG(_,J,$,q,G,K){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(L1(q,J),$=C9(""+q),_===$)return}K2(J,_,q,K)}function UB(_,J,$,q){for(var G={},K=new Set,z=_.attributes,L=0;L<z.length;L++)switch(z[L].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:K.add(z[L].name)}if(f9(J)){for(var I in $)if($.hasOwnProperty(I)){var C=$[I];if(C!=null){if(a6.hasOwnProperty(I))typeof C!=="function"&&R4(I,C);else if($.suppressHydrationWarning!==!0)switch(I){case"children":typeof C!=="string"&&typeof C!=="number"||K2("children",_.textContent,C,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,C=C?C.__html:void 0,C!=null&&(C=ez(_,C),K2(I,z,C,G));continue;case"style":K.delete(I),$B(_,C,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":K.delete(I.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",I);continue;case"className":K.delete("class"),z=EJ(_,"class",C),K2("className",z,C,G);continue;default:q.context===Y3&&J!=="svg"&&J!=="math"?K.delete(I.toLowerCase()):K.delete(I),z=EJ(_,I,C),K2(I,z,C,G)}}}}else for(C in $)if($.hasOwnProperty(C)&&(I=$[C],I!=null)){if(a6.hasOwnProperty(C))typeof I!=="function"&&R4(C,I);else if($.suppressHydrationWarning!==!0)switch(C){case"children":typeof I!=="string"&&typeof I!=="number"||K2("children",_.textContent,I,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,I=I?I.__html:void 0,I!=null&&(I=ez(_,I),z!==I&&(G[C]={__html:z}));continue;case"className":O5(_,C,"class",I,K,G);continue;case"tabIndex":O5(_,C,"tabindex",I,K,G);continue;case"style":K.delete(C),$B(_,I,G);continue;case"multiple":K.delete(C),K2(C,_.multiple,I,G);continue;case"muted":K.delete(C),K2(C,_.muted,I,G);continue;case"autoFocus":K.delete("autofocus"),K2(C,_.autofocus,I,G);continue;case"data":if(J!=="object"){K.delete(C),z=_.getAttribute("data"),K2(C,z,I,G);continue}case"src":case"href":if(!(I!==""||J==="a"&&C==="href"||J==="object"&&C==="data")){C==="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.',C,C):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.',C,C);continue}tG(_,C,C,I,K,G);continue;case"action":case"formAction":if(z=_.getAttribute(C),typeof I==="function"){K.delete(C.toLowerCase()),C==="formAction"?(K.delete("name"),K.delete("formenctype"),K.delete("formmethod"),K.delete("formtarget")):(K.delete("enctype"),K.delete("method"),K.delete("target"));continue}else if(z===bP){K.delete(C.toLowerCase()),K2(C,"function",I,G);continue}tG(_,C,C.toLowerCase(),I,K,G);continue;case"xlinkHref":tG(_,C,"xlink:href",I,K,G);continue;case"contentEditable":sG(_,C,"contenteditable",I,K,G);continue;case"spellCheck":sG(_,C,"spellcheck",I,K,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":sG(_,C,C,I,K,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":QB(_,C,C.toLowerCase(),I,K,G);continue;case"capture":case"download":_:{L=_;var e=z=C,_1=G;if(K.delete(e),L=L.getAttribute(e),L===null)switch(typeof I){case"undefined":case"function":case"symbol":break _;default:if(I===!1)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":break;case"boolean":if(I===!0&&L==="")break _;break;default:if(L1(I,z),L===""+I)break _}K2(z,L,I,_1)}continue;case"cols":case"rows":case"size":case"span":_:{if(L=_,e=z=C,_1=G,K.delete(e),L=L.getAttribute(e),L===null)switch(typeof I){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(I)||1>I)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(I)||1>I)&&(L1(I,z),L===""+I))break _}K2(z,L,I,_1)}continue;case"rowSpan":qB(_,C,"rowspan",I,K,G);continue;case"start":qB(_,C,C,I,K,G);continue;case"xHeight":O5(_,C,"x-height",I,K,G);continue;case"xlinkActuate":O5(_,C,"xlink:actuate",I,K,G);continue;case"xlinkArcrole":O5(_,C,"xlink:arcrole",I,K,G);continue;case"xlinkRole":O5(_,C,"xlink:role",I,K,G);continue;case"xlinkShow":O5(_,C,"xlink:show",I,K,G);continue;case"xlinkTitle":O5(_,C,"xlink:title",I,K,G);continue;case"xlinkType":O5(_,C,"xlink:type",I,K,G);continue;case"xmlBase":O5(_,C,"xml:base",I,K,G);continue;case"xmlLang":O5(_,C,"xml:lang",I,K,G);continue;case"xmlSpace":O5(_,C,"xml:space",I,K,G);continue;case"inert":I!==""||eQ[C]||(eQ[C]=!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.",C)),QB(_,C,C,I,K,G);continue;default:if(!(2<C.length)||C[0]!=="o"&&C[0]!=="O"||C[1]!=="n"&&C[1]!=="N"){L=GH(C),z=!1,q.context===Y3&&J!=="svg"&&J!=="math"?K.delete(L.toLowerCase()):(e=C.toLowerCase(),e=HQ.hasOwnProperty(e)?HQ[e]||null:null,e!==null&&e!==C&&(z=!0,K.delete(e)),K.delete(L));_:if(e=_,_1=L,L=I,V6(_1))if(e.hasAttribute(_1))e=e.getAttribute(_1),L1(L,_1),L=e===""+L?L:e;else{switch(typeof L){case"function":case"symbol":break _;case"boolean":if(e=_1.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")break _}L=L===void 0?void 0:null}else L=void 0;z||K2(C,L,I,G)}}}return 0<K.size&&$.suppressHydrationWarning!==!0&&OI(_,K,G),Object.keys(G).length===0?null:G}function wI(_,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 GB(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],K=G.transferSize,z=G.initiatorType,L=G.duration;if(K&&L&&GB(z)){z=0,L=G.responseEnd;for(q+=1;q<$.length;q++){var I=$[q],C=I.startTime;if(C>L)break;var{transferSize:e,initiatorType:_1}=I;e&&GB(_1)&&(I=I.responseEnd,z+=e*(I<L?1:(L-C)/(I-C)))}if(--q,J+=8*(K+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function i$(_){return _.nodeType===9?_:_.ownerDocument}function ZB(_){switch(_){case L7:return r7;case XQ:return Jq;default:return Y3}}function KB(_,J){if(_===Y3)switch(J){case"svg":return r7;case"math":return Jq;default:return Y3}return _===r7&&J==="foreignObject"?Y3:_}function oG(_,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 NI(){var _=window.event;if(_&&_.type==="popstate"){if(_===vK)return!1;return vK=_,!0}return vK=null,!1}function n9(){var _=window.event;return _&&_!==a_?_.type:null}function e9(){var _=window.event;return _&&_!==a_?_.timeStamp:-1.1}function fI(_){setTimeout(function(){throw _})}function CI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function SI(){}function jI(_,J,$,q){II(_,J,$,q),_[x2]=q}function FB(_){v6(_,"")}function yI(_,J,$){_.nodeValue=$}function XB(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[x2]||null;if(J!==null){var $=c1(_);$!==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 p3(_){return _==="head"}function VI(_,J){_.removeChild(J)}function kI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function HB(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===i_||$===_q){if(q===0){_.removeChild(G),X7(J);return}q--}else if($===r_||$===Y6||$===z8||$===d7||$===Y8)q++;else if($===EP)__(_.ownerDocument.documentElement);else if($===xP){$=_.ownerDocument.head,__($);for(var K=$.firstChild;K;){var{nextSibling:z,nodeName:L}=K;K[Z_]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&K.rel.toLowerCase()==="stylesheet"||$.removeChild(K),K=z}}else $===hP&&__(_.ownerDocument.body);$=G}while($);X7(J)}function YB(_,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,$===i_)if(_===0)break;else _--;else $!==r_&&$!==Y6&&$!==z8&&$!==d7||_++;$=q}while($)}function vI(_){YB(_,!0)}function DI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function bI(_){_.nodeValue=""}function uI(_){YB(_,!1)}function EI(_,J){J=J[mP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function hI(_,J){_.nodeValue=J}function nG(_){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":nG($),w1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function xI(_,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"){L1(G.name,"name");var K=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===K)return _}else return _;else if(!_[Z_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(K=_.getAttribute("rel"),K==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(K!==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(K=_.getAttribute("src"),(K!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&K&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=X5(_.nextSibling),_===null)break}return null}function mI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=X5(_.nextSibling),_===null)return null}return _}function zB(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=X5(_.nextSibling),_===null)return null}return _}function eG(_){return _.data===Y6||_.data===z8}function _Z(_){return _.data===d7||_.data===Y6&&_.ownerDocument.readyState!==$A}function gI(_,J){var $=_.ownerDocument;if(_.data===z8)_._reactRetry=J;else if(_.data!==Y6||$.readyState!==$A)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function X5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===r_||J===d7||J===Y6||J===z8||J===Y8||J===yK||J===JA)break;if(J===i_||J===_q)return null}}return _}function BB(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var K=q[G];$[JB(K.name)]=K.name.toLowerCase()==="style"?aG(_):K.value}return{type:J,props:$}}return _.nodeType===8?_.data===Y8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function WB(_,J,$){return $===null||$[uP]!==!0?(_.nodeValue===J?_=null:(J=g3(J),_=g3(_.nodeValue)===J?null:_.nodeValue),_):null}function JZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===i_||$===_q){if(J===0)return X5(_.nextSibling);J--}else $!==r_&&$!==d7&&$!==Y6&&$!==z8&&$!==Y8||J++}_=_.nextSibling}return null}function LB(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===r_||$===d7||$===Y6||$===z8||$===Y8){if(J===0)return _;J--}else $!==i_&&$!==_q||J++}_=_.previousSibling}return null}function pI(_){X7(_)}function cI(_){X7(_)}function lI(_){X7(_)}function AB(_,J,$,q,G){switch(G&&P9(_,q.ancestorInfo),J=i$($),_){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 dI(_,J,$,q){if(!$[r3]&&c1($)){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]);A2($,_,J),$[M2]=q,$[x2]=J}function __(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);w1(_)}function a$(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function MB(_,J,$){var q=i7;if(q&&typeof J==="string"&&J){var G=s2(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),KA.has(G)||(KA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),A2(J,"link",_),D1(J),q.head.appendChild(J)))}}function TB(_,J,$,q){var G=(G=l3.current)?a$(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"?($=K7($.href),J=K0(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"){_=K7($.href);var K=K0(G).hoistableStyles,z=K.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:W8,preload:null}},K.set(_,z),(K=G.querySelector(J_(_)))&&!K._p&&(z.instance=K,z.state.loading=s_|k5),!v5.has(_))){var L={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};v5.set(_,L),K||rI(G,_,L,z.state)}if(J&&q===null)throw $=`
175
+ 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 R4(_){_!==i7&&_.next===null&&(i7===null?nQ=i7=_:i7=i7.next=_),eQ=!0,H1.actQueue!==null?jF||(jF=!0,nz()):SF||(SF=!0,nz())}function __(_,J){if(!vF&&eQ){vF=!0;do{var $=!1;for(var q=nQ;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var K=0;else{var{suspendedLanes:z,pingedLanes:L}=q;K=(1<<31-x2(42|_)+1)-1,K&=G&~(z&~L),K=K&201326741?K&201326741|1:K?K|2:0}K!==0&&($=!0,oz(q,K))}else K=n1,K=O0(q,q===P0?K:0,q.cancelPendingCommit!==null||q.timeoutHandle!==L8),(K&3)===0||D2(q,K)||($=!0,oz(q,K));q=q.next}}while($);vF=!1}}function II(){n_=window.event,lG()}function lG(){eQ=jF=SF=!1;var _=0;Y6!==0&&jI()&&(_=Y6);for(var J=z2(),$=null,q=nQ;q!==null;){var G=q.next,K=sz(q,J);if(K===0)q.next=null,$===null?nQ=G:$.next=G,G===null&&(i7=$);else if($=q,_!==0||(K&3)!==0)eQ=!0;q=G}J2!==X6&&J2!==sQ||__(_,!1),Y6!==0&&(Y6=0)}function sz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,K=_.pendingLanes&-62914561;0<K;){var z=31-x2(K),L=1<<z,I=G[z];if(I===-1){if((L&$)===0||(L&q)!==0)G[z]=u2(L,J)}else I<=J&&(_.expiredLanes|=L);K&=~L}if(J=P0,$=n1,$=O0(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==L8),q=_.callbackNode,$===0||_===J&&(T0===K8||T0===X8)||_.cancelPendingCommit!==null)return q!==null&&dG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||D2(_,$)){if(J=$&-$,J!==_.callbackPriority||H1.actQueue!==null&&q!==VF)dG(q);else return J;switch(j($)){case W5:case d5:$=CZ;break;case f4:$=B7;break;case zQ:$=fZ;break;default:$=B7}return q=tz.bind(null,_),H1.actQueue!==null?(H1.actQueue.push(q),$=VF):$=PZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&dG(q),_.callbackPriority=2,_.callbackNode=null,2}function tz(_,J){if(VQ=vQ=!1,n_=window.event,J2!==X6&&J2!==sQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(o5===aQ&&(o5=IF),n9()&&_.callbackNode!==$)return null;var q=n1;if(q=O0(_,_===P0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==L8),q===0)return null;return jz(_,q,J),sz(_,z2()),_.callbackNode!=null&&_.callbackNode===$?tz.bind(null,_):null}function oz(_,J){if(n9())return null;vQ=VQ,VQ=!1,jz(_,J,!0)}function dG(_){_!==VF&&_!==null&&Hw(_)}function nz(){H1.actQueue!==null&&H1.actQueue.push(function(){return lG(),null}),iP(function(){(H0&(Z2|M5))!==L2?PZ(NZ,II):lG()})}function iG(){if(Y6===0){var _=$8;_===0&&(_=XQ,XQ<<=1,(XQ&261888)===0&&(XQ=256)),Y6=_}return Y6}function ez(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return K1(_,"action"),V9(""+_)}function _W(_,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 wI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var K=ez((G[m2]||null).action),z=q.submitter;z&&(J=(J=z[m2]||null)?ez(J.formAction):z.getAttribute("formAction"),J!==null&&(K=J,z=null));var L=new MQ("action","action",null,q,G);_.push({event:L,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(Y6!==0){var I=z?_W(G,z):new FormData(G),f={pending:!0,data:I,method:G.method,action:K};Object.freeze(f),YG($,f,null,I)}}else typeof K==="function"&&(L.preventDefault(),I=z?_W(G,z):new FormData(G),f={pending:!0,data:I,method:G.method,action:K},Object.freeze(f),YG($,f,K,I))},currentTarget:G}]})}}function t$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){cZ(q)}_.currentTarget=null}function JW(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,K=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var L=q[z],I=L.instance,f=L.currentTarget;if(L=L.listener,I!==G&&K.isPropagationStopped())break _;I!==null?M1(I,t$,K,L,f):t$(K,L,f),G=I}else for(z=0;z<q.length;z++){if(L=q[z],I=L.instance,f=L.currentTarget,L=L.listener,I!==G&&K.isPropagationStopped())break _;I!==null?M1(I,t$,K,L,f):t$(K,L,f),G=I}}}}function Z0(_,J){yF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[SZ];$===void 0&&($=J[SZ]=new Set);var q=_+"__bubble";$.has(q)||($W(J,_,2,!1),$.add(q))}function rG(_,J,$){yF.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),$W($,_,q,J)}function aG(_){if(!_[_q]){_[_q]=!0,nW.forEach(function($){$!=="selectionchange"&&(yF.has($)||rG($,!1,_),rG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[_q]||(J[_q]=!0,rG("selectionchange",!1,J))}}function $W(_,J,$,q){switch(uW(J)){case W5:var G=Qw;break;case d5:G=qw;break;default:G=XZ}$=G.bind(null,J,$,_),G=void 0,!kZ||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 sG(_,J,$,q,G){var K=q;if((J&1)===0&&(J&2)===0&&q!==null)_:for(;;){if(q===null)return;var z=q.tag;if(z===3||z===4){var L=q.stateNode.containerInfo;if(L===G)break;if(z===4)for(z=q.return;z!==null;){var I=z.tag;if((I===3||I===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;L!==null;){if(z=y1(L),z===null)return;if(I=z.tag,I===5||I===6||I===26||I===27){q=K=z;continue _}L=L.parentNode}}q=q.return}zH(function(){var f=K,n=AU($),_1=[];_:{var i=uB.get(_);if(i!==void 0){var Z1=MQ,f1=_;switch(_){case"keypress":if(q$($)===0)break _;case"keydown":case"keyup":Z1=nw;break;case"focusin":f1="focus",Z1=EZ;break;case"focusout":f1="blur",Z1=EZ;break;case"beforeblur":case"afterblur":Z1=EZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z1=OB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=mw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=JP;break;case VB:case yB:case kB:Z1=cw;break;case DB:Z1=QP;break;case"scroll":case"scrollend":Z1=hw;break;case"wheel":Z1=UP;break;case"copy":case"cut":case"paste":Z1=dw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=wB;break;case"toggle":case"beforetoggle":Z1=ZP}var V1=(J&4)!==0,C0=!V1&&(_==="scroll"||_==="scrollend"),F0=V1?i!==null?i+"Capture":null:i;V1=[];for(var l=f,r;l!==null;){var o=l;if(r=o.stateNode,o=o.tag,o!==5&&o!==26&&o!==27||r===null||F0===null||(o=y9(l,F0),o!=null&&V1.push(J_(l,o,r))),C0)break;l=l.return}0<V1.length&&(i=new Z1(i,f1,null,$,n),_1.push({event:i,listeners:V1}))}}if((J&7)===0){_:{if(i=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",i&&$!==Y_&&(f1=$.relatedTarget||$.fromElement)&&(y1(f1)||f1[r3]))break _;if(Z1||i){if(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,Z1){if(f1=$.relatedTarget||$.toElement,Z1=f,f1=f1?y1(f1):null,f1!==null&&(C0=C(f1),V1=f1.tag,f1!==C0||V1!==5&&V1!==27&&V1!==6))f1=null}else Z1=null,f1=f;if(Z1!==f1){if(V1=OB,o="onMouseLeave",F0="onMouseEnter",l="mouse",_==="pointerout"||_==="pointerover")V1=wB,o="onPointerLeave",F0="onPointerEnter",l="pointer";if(C0=Z1==null?i:d1(Z1),r=f1==null?i:d1(f1),i=new V1(o,l+"leave",Z1,$,n),i.target=C0,i.relatedTarget=r,o=null,y1(n)===f&&(V1=new V1(F0,l+"enter",f1,$,n),V1.target=r,V1.relatedTarget=C0,o=V1),C0=o,Z1&&f1)J:{V1=PI,F0=Z1,l=f1,r=0;for(o=F0;o;o=V1(o))r++;o=0;for(var L1=l;L1;L1=V1(L1))o++;for(;0<r-o;)F0=V1(F0),r--;for(;0<o-r;)l=V1(l),o--;for(;r--;){if(F0===l||l!==null&&F0===l.alternate){V1=F0;break J}F0=V1(F0),l=V1(l)}V1=null}else V1=null;Z1!==null&&QW(_1,i,Z1,V1,!1),f1!==null&&C0!==null&&QW(_1,C0,f1,V1,!0)}}}_:{if(i=f?d1(f):window,Z1=i.nodeName&&i.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&i.type==="file")var j1=RH;else if(MH(i))if(jB)j1=bO;else{j1=DO;var r1=kO}else Z1=i.nodeName,!Z1||Z1.toLowerCase()!=="input"||i.type!=="checkbox"&&i.type!=="radio"?f&&v9(f.elementType)&&(j1=RH):j1=uO;if(j1&&(j1=j1(_,f))){TH(_1,j1,$,n);break _}r1&&r1(_,i,f),_==="focusout"&&f&&i.type==="number"&&f.memoizedProps.value!=null&&t8(i,"number",i.value)}switch(r1=f?d1(f):window,_){case"focusin":if(MH(r1)||r1.contentEditable==="true")w7=r1,xZ=f,T_=null;break;case"focusout":T_=xZ=w7=null;break;case"mousedown":mZ=!0;break;case"contextmenu":case"mouseup":case"dragend":mZ=!1,fH(_1,$,n);break;case"selectionchange":if(HP)break;case"keydown":case"keyup":fH(_1,$,n)}var h1;if(hZ)_:{switch(_){case"compositionstart":var k1="onCompositionStart";break _;case"compositionend":k1="onCompositionEnd";break _;case"compositionupdate":k1="onCompositionUpdate";break _}k1=void 0}else I7?LH(_,$)&&(k1="onCompositionEnd"):_==="keydown"&&$.keyCode===PB&&(k1="onCompositionStart");if(k1&&(NB&&$.locale!=="ko"&&(I7||k1!=="onCompositionStart"?k1==="onCompositionEnd"&&I7&&(h1=WH()):(a3=n,DZ=("value"in a3)?a3.value:a3.textContent,I7=!0)),r1=o$(f,k1),0<r1.length&&(k1=new IB(k1,_,null,$,n),_1.push({event:k1,listeners:r1}),h1?k1.data=h1:(h1=AH($),h1!==null&&(k1.data=h1)))),h1=KP?jO(_,$):vO(_,$))k1=o$(f,"onBeforeInput"),0<k1.length&&(r1=new rw("onBeforeInput","beforeinput",null,$,n),_1.push({event:r1,listeners:k1}),r1.data=h1);wI(_1,_,f,$,n)}JW(_1,J)})}function J_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function o$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,K=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||K===null||(G=y9(_,$),G!=null&&q.unshift(J_(_,G,K)),G=y9(_,J),G!=null&&q.push(J_(_,G,K))),_.tag===3)return q;_=_.return}return[]}function PI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function QW(_,J,$,q,G){for(var K=J._reactName,z=[];$!==null&&$!==q;){var L=$,I=L.alternate,f=L.stateNode;if(L=L.tag,I!==null&&I===q)break;L!==5&&L!==26&&L!==27||f===null||(I=f,G?(f=y9($,K),f!=null&&z.unshift(J_($,f,I))):G||(f=y9($,K),f!=null&&z.push(J_($,f,I)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function tG(_,J){NO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||TB||(TB=!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:t6,possibleRegistrationNames:jZ};v9(_)||typeof J.is==="string"||fO(_,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 Y2(_,J,$,q){J!==$&&($=p3($),p3(J)!==$&&(q[_]=J))}function NI(_,J,$){J.forEach(function(q){$[GW(q)]=q==="style"?nG(_):_.getAttribute(q)})}function O4(_,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 qW(_,J){return _=_.namespaceURI===BQ||_.namespaceURI===M7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function p3(_){return I1(_)&&(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.",B1(_)),C1(_)),(typeof _==="string"?_:""+_).replace(EP,`
176
+ `).replace(hP,"")}function UW(_,J){return J=p3(J),p3(_)===J?!0:!1}function I0(_,J,$,q,G,K){switch($){case"children":if(typeof q==="string")V3(q,J,!1),J==="body"||J==="textarea"&&q===""||u6(_,q);else if(typeof q==="number"||typeof q==="bigint")V3(""+q,J,!1),J!=="body"&&u6(_,""+q);break;case"className":r8(_,"class",q);break;case"tabIndex":r8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":r8(_,$,q);break;case"style":XH(_,q,K);break;case"data":if(J!=="object"){r8(_,"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}K1(q,$),q=V9(""+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||Qq||(Qq=!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||$q||($q=!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"||Jq?J!=="button"||G.type==null||G.type==="submit"||Jq?typeof q==="function"&&(G.name==null||qA||(qA=!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||Qq||(Qq=!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||$q||($q=!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."))):(Jq=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Jq=!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 K==="function"&&($==="formAction"?(J!=="input"&&I0(_,J,"name",G.name,G,null),I0(_,J,"formEncType",G.formEncType,G,null),I0(_,J,"formMethod",G.formMethod,G,null),I0(_,J,"formTarget",G.formTarget,G,null)):(I0(_,J,"encType",G.encType,G,null),I0(_,J,"method",G.method,G,null),I0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}K1(q,$),q=V9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&O4($,q),_.onclick=d4);break;case"onScroll":q!=null&&(typeof q!=="function"&&O4($,q),Z0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&O4($,q),Z0("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}K1(q,$),$=V9(""+q),_.setAttributeNS(z8,"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"?(K1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||qq[$]||(qq[$]=!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"?(K1(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?(K1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(K1(q,$),_.setAttribute($,q));break;case"popover":Z0("beforetoggle",_),Z0("toggle",_),i8(_,"popover",q);break;case"xlinkActuate":m5(_,z8,"xlink:actuate",q);break;case"xlinkArcrole":m5(_,z8,"xlink:arcrole",q);break;case"xlinkRole":m5(_,z8,"xlink:role",q);break;case"xlinkShow":m5(_,z8,"xlink:show",q);break;case"xlinkTitle":m5(_,z8,"xlink:title",q);break;case"xlinkType":m5(_,z8,"xlink:type",q);break;case"xmlBase":m5(_,kF,"xml:base",q);break;case"xmlLang":m5(_,kF,"xml:lang",q);break;case"xmlSpace":m5(_,kF,"xml:space",q);break;case"is":K!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),i8(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":UA||q==null||typeof q!=="object"||(UA=!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"?($=HH($),i8(_,$,q)):t6.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&O4($,q)}}function oG(_,J,$,q,G,K){switch($){case"style":XH(_,q,K);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"?u6(_,q):(typeof q==="number"||typeof q==="bigint")&&u6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&O4($,q),Z0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&O4($,q),Z0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&O4($,q),_.onclick=d4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(t6.hasOwnProperty($))q!=null&&typeof q!=="function"&&O4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),K=_[m2]||null,K=K!=null?K[$]:null,typeof K==="function"&&_.removeEventListener(J,K,G),typeof q==="function")){typeof K!=="function"&&K!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):i8(_,$,q)}}}function R2(_,J,$){switch(tG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Z0("error",_),Z0("load",_);var q=!1,G=!1,K;for(K in $)if($.hasOwnProperty(K)){var z=$[K];if(z!=null)switch(K){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:I0(_,J,K,z,$,null)}}G&&I0(_,J,"srcSet",$.srcSet,$,null),q&&I0(_,J,"src",$.src,$,null);return;case"input":U4("input",$),Z0("invalid",_);var L=K=z=G=null,I=null,f=null;for(q in $)if($.hasOwnProperty(q)){var n=$[q];if(n!=null)switch(q){case"name":G=n;break;case"type":z=n;break;case"checked":I=n;break;case"defaultChecked":f=n;break;case"value":K=n;break;case"defaultValue":L=n;break;case"children":case"dangerouslySetInnerHTML":if(n!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:I0(_,J,q,n,$,null)}}dJ(_,$),O9(_,K,L,I,f,z,G,!1);return;case"select":U4("select",$),Z0("invalid",_),q=z=K=null;for(G in $)if($.hasOwnProperty(G)&&(L=$[G],L!=null))switch(G){case"value":K=L;break;case"defaultValue":z=L;break;case"multiple":q=L;default:I0(_,J,G,L,$,null)}aJ(_,$),J=K,$=z,_.multiple=!!q,J!=null?f3(_,!!q,J,!1):$!=null&&f3(_,!!q,$,!0);return;case"textarea":U4("textarea",$),Z0("invalid",_),K=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(L=$[z],L!=null))switch(z){case"value":q=L;break;case"defaultValue":G=L;break;case"children":K=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:I0(_,J,z,L,$,null)}sJ(_,$),I9(_,q,G,K);return;case"option":iJ(_,$);for(I in $)if($.hasOwnProperty(I)&&(q=$[I],q!=null))switch(I){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:I0(_,J,I,q,$,null)}return;case"dialog":Z0("beforetoggle",_),Z0("toggle",_),Z0("cancel",_),Z0("close",_);break;case"iframe":case"object":Z0("load",_);break;case"video":case"audio":for(q=0;q<s_.length;q++)Z0(s_[q],_);break;case"image":Z0("error",_),Z0("load",_);break;case"details":Z0("toggle",_);break;case"embed":case"source":case"link":Z0("error",_),Z0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(f in $)if($.hasOwnProperty(f)&&(q=$[f],q!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:I0(_,J,f,q,$,null)}return;default:if(v9(J)){for(n in $)$.hasOwnProperty(n)&&(q=$[n],q!==void 0&&oG(_,J,n,q,$,void 0));return}}for(L in $)$.hasOwnProperty(L)&&(q=$[L],q!=null&&I0(_,J,L,q,$,null))}function CI(_,J,$,q){switch(tG(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,K=null,z=null,L=null,I=null,f=null,n=null;for(Z1 in $){var _1=$[Z1];if($.hasOwnProperty(Z1)&&_1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":I=_1;default:q.hasOwnProperty(Z1)||I0(_,J,Z1,null,q,_1)}}for(var i in q){var Z1=q[i];if(_1=$[i],q.hasOwnProperty(i)&&(Z1!=null||_1!=null))switch(i){case"type":K=Z1;break;case"name":G=Z1;break;case"checked":f=Z1;break;case"defaultChecked":n=Z1;break;case"value":z=Z1;break;case"defaultValue":L=Z1;break;case"children":case"dangerouslySetInnerHTML":if(Z1!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Z1!==_1&&I0(_,J,i,Z1,q,_1)}}J=$.type==="checkbox"||$.type==="radio"?$.checked!=null:$.value!=null,q=q.type==="checkbox"||q.type==="radio"?q.checked!=null:q.value!=null,J||!q||QA||(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"),QA=!0),!J||q||$A||(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"),$A=!0),s8(_,z,L,I,f,n,K,G);return;case"select":Z1=z=L=i=null;for(K in $)if(I=$[K],$.hasOwnProperty(K)&&I!=null)switch(K){case"value":break;case"multiple":Z1=I;default:q.hasOwnProperty(K)||I0(_,J,K,null,q,I)}for(G in q)if(K=q[G],I=$[G],q.hasOwnProperty(G)&&(K!=null||I!=null))switch(G){case"value":i=K;break;case"defaultValue":L=K;break;case"multiple":z=K;default:K!==I&&I0(_,J,G,K,q,I)}q=L,J=z,$=Z1,i!=null?f3(_,!!J,i,!1):!!$!==!!J&&(q!=null?f3(_,!!J,q,!0):f3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=i=null;for(L in $)if(G=$[L],$.hasOwnProperty(L)&&G!=null&&!q.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:I0(_,J,L,null,q,G)}for(z in q)if(G=q[z],K=$[z],q.hasOwnProperty(z)&&(G!=null||K!=null))switch(z){case"value":i=G;break;case"defaultValue":Z1=G;break;case"children":break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:G!==K&&I0(_,J,z,G,q,K)}tJ(_,i,Z1);return;case"option":for(var f1 in $)if(i=$[f1],$.hasOwnProperty(f1)&&i!=null&&!q.hasOwnProperty(f1))switch(f1){case"selected":_.selected=!1;break;default:I0(_,J,f1,null,q,i)}for(I in q)if(i=q[I],Z1=$[I],q.hasOwnProperty(I)&&i!==Z1&&(i!=null||Z1!=null))switch(I){case"selected":_.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:I0(_,J,I,i,q,Z1)}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 V1 in $)i=$[V1],$.hasOwnProperty(V1)&&i!=null&&!q.hasOwnProperty(V1)&&I0(_,J,V1,null,q,i);for(f in q)if(i=q[f],Z1=$[f],q.hasOwnProperty(f)&&i!==Z1&&(i!=null||Z1!=null))switch(f){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:I0(_,J,f,i,q,Z1)}return;default:if(v9(J)){for(var C0 in $)i=$[C0],$.hasOwnProperty(C0)&&i!==void 0&&!q.hasOwnProperty(C0)&&oG(_,J,C0,void 0,q,i);for(n in q)i=q[n],Z1=$[n],!q.hasOwnProperty(n)||i===Z1||i===void 0&&Z1===void 0||oG(_,J,n,i,q,Z1);return}}for(var F0 in $)i=$[F0],$.hasOwnProperty(F0)&&i!=null&&!q.hasOwnProperty(F0)&&I0(_,J,F0,null,q,i);for(_1 in q)i=q[_1],Z1=$[_1],!q.hasOwnProperty(_1)||i===Z1||i==null&&Z1==null||I0(_,J,_1,i,q,Z1)}function GW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function nG(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function ZW(_,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="",K;for(K in J)if(J.hasOwnProperty(K)){var z=J[K];z!=null&&typeof z!=="boolean"&&z!==""&&(K.indexOf("--")===0?(u1(z,K),q+=G+K+":"+(""+z).trim()):typeof z!=="number"||z===0||AB.has(K)?(u1(z,K),q+=G+K.replace(YB,"-$1").toLowerCase().replace(zB,"-ms-")+":"+(""+z).trim()):q+=G+K.replace(YB,"-$1").toLowerCase().replace(zB,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=p3(q),p3(J)!==q&&($.style=nG(_)))}}function I5(_,J,$,q,G,K){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(K1(q,J),_===""+q)return}Y2(J,_,q,K)}function FW(_,J,$,q,G,K){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}Y2(J,_,q,K)}function eG(_,J,$,q,G,K){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(K1(q,$),_===""+q)return}Y2(J,_,q,K)}function KW(_,J,$,q,G,K){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)&&(K1(q,J),_===""+q))return}Y2(J,_,q,K)}function _Z(_,J,$,q,G,K){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(K1(q,J),$=V9(""+q),_===$)return}Y2(J,_,q,K)}function XW(_,J,$,q){for(var G={},K=new Set,z=_.attributes,L=0;L<z.length;L++)switch(z[L].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:K.add(z[L].name)}if(v9(J)){for(var I in $)if($.hasOwnProperty(I)){var f=$[I];if(f!=null){if(t6.hasOwnProperty(I))typeof f!=="function"&&O4(I,f);else if($.suppressHydrationWarning!==!0)switch(I){case"children":typeof f!=="string"&&typeof f!=="number"||Y2("children",_.textContent,f,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,f=f?f.__html:void 0,f!=null&&(f=qW(_,f),Y2(I,z,f,G));continue;case"style":K.delete(I),ZW(_,f,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":K.delete(I.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",I);continue;case"className":K.delete("class"),z=pJ(_,"class",f),Y2("className",z,f,G);continue;default:q.context===z3&&J!=="svg"&&J!=="math"?K.delete(I.toLowerCase()):K.delete(I),z=pJ(_,I,f),Y2(I,z,f,G)}}}}else for(f in $)if($.hasOwnProperty(f)&&(I=$[f],I!=null)){if(t6.hasOwnProperty(f))typeof I!=="function"&&O4(f,I);else if($.suppressHydrationWarning!==!0)switch(f){case"children":typeof I!=="string"&&typeof I!=="number"||Y2("children",_.textContent,I,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,I=I?I.__html:void 0,I!=null&&(I=qW(_,I),z!==I&&(G[f]={__html:z}));continue;case"className":I5(_,f,"class",I,K,G);continue;case"tabIndex":I5(_,f,"tabindex",I,K,G);continue;case"style":K.delete(f),ZW(_,I,G);continue;case"multiple":K.delete(f),Y2(f,_.multiple,I,G);continue;case"muted":K.delete(f),Y2(f,_.muted,I,G);continue;case"autoFocus":K.delete("autofocus"),Y2(f,_.autofocus,I,G);continue;case"data":if(J!=="object"){K.delete(f),z=_.getAttribute("data"),Y2(f,z,I,G);continue}case"src":case"href":if(!(I!==""||J==="a"&&f==="href"||J==="object"&&f==="data")){f==="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.',f,f):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.',f,f);continue}_Z(_,f,f,I,K,G);continue;case"action":case"formAction":if(z=_.getAttribute(f),typeof I==="function"){K.delete(f.toLowerCase()),f==="formAction"?(K.delete("name"),K.delete("formenctype"),K.delete("formmethod"),K.delete("formtarget")):(K.delete("enctype"),K.delete("method"),K.delete("target"));continue}else if(z===xP){K.delete(f.toLowerCase()),Y2(f,"function",I,G);continue}_Z(_,f,f.toLowerCase(),I,K,G);continue;case"xlinkHref":_Z(_,f,"xlink:href",I,K,G);continue;case"contentEditable":eG(_,f,"contenteditable",I,K,G);continue;case"spellCheck":eG(_,f,"spellcheck",I,K,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":eG(_,f,f,I,K,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":FW(_,f,f.toLowerCase(),I,K,G);continue;case"capture":case"download":_:{L=_;var n=z=f,_1=G;if(K.delete(n),L=L.getAttribute(n),L===null)switch(typeof I){case"undefined":case"function":case"symbol":break _;default:if(I===!1)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":break;case"boolean":if(I===!0&&L==="")break _;break;default:if(K1(I,z),L===""+I)break _}Y2(z,L,I,_1)}continue;case"cols":case"rows":case"size":case"span":_:{if(L=_,n=z=f,_1=G,K.delete(n),L=L.getAttribute(n),L===null)switch(typeof I){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(I)||1>I)break _}else if(I!=null)switch(typeof I){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(I)||1>I)&&(K1(I,z),L===""+I))break _}Y2(z,L,I,_1)}continue;case"rowSpan":KW(_,f,"rowspan",I,K,G);continue;case"start":KW(_,f,f,I,K,G);continue;case"xHeight":I5(_,f,"x-height",I,K,G);continue;case"xlinkActuate":I5(_,f,"xlink:actuate",I,K,G);continue;case"xlinkArcrole":I5(_,f,"xlink:arcrole",I,K,G);continue;case"xlinkRole":I5(_,f,"xlink:role",I,K,G);continue;case"xlinkShow":I5(_,f,"xlink:show",I,K,G);continue;case"xlinkTitle":I5(_,f,"xlink:title",I,K,G);continue;case"xlinkType":I5(_,f,"xlink:type",I,K,G);continue;case"xmlBase":I5(_,f,"xml:base",I,K,G);continue;case"xmlLang":I5(_,f,"xml:lang",I,K,G);continue;case"xmlSpace":I5(_,f,"xml:space",I,K,G);continue;case"inert":I!==""||qq[f]||(qq[f]=!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.",f)),FW(_,f,f,I,K,G);continue;default:if(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N"){L=HH(f),z=!1,q.context===z3&&J!=="svg"&&J!=="math"?K.delete(L.toLowerCase()):(n=f.toLowerCase(),n=LQ.hasOwnProperty(n)?LQ[n]||null:null,n!==null&&n!==f&&(z=!0,K.delete(n)),K.delete(L));_:if(n=_,_1=L,L=I,k6(_1))if(n.hasAttribute(_1))n=n.getAttribute(_1),K1(L,_1),L=n===""+L?L:n;else{switch(typeof L){case"function":case"symbol":break _;case"boolean":if(n=_1.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-")break _}L=L===void 0?void 0:null}else L=void 0;z||Y2(f,L,I,G)}}}return 0<K.size&&$.suppressHydrationWarning!==!0&&NI(_,K,G),Object.keys(G).length===0?null:G}function fI(_,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 HW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],K=G.transferSize,z=G.initiatorType,L=G.duration;if(K&&L&&HW(z)){z=0,L=G.responseEnd;for(q+=1;q<$.length;q++){var I=$[q],f=I.startTime;if(f>L)break;var{transferSize:n,initiatorType:_1}=I;n&&HW(_1)&&(I=I.responseEnd,z+=n*(I<L?1:(L-f)/(I-f)))}if(--q,J+=8*(K+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function n$(_){return _.nodeType===9?_:_.ownerDocument}function YW(_){switch(_){case M7:return a7;case BQ:return Gq;default:return z3}}function zW(_,J){if(_===z3)switch(J){case"svg":return a7;case"math":return Gq;default:return z3}return _===a7&&J==="foreignObject"?z3:_}function JZ(_,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 jI(){var _=window.event;if(_&&_.type==="popstate"){if(_===EF)return!1;return EF=_,!0}return EF=null,!1}function $_(){var _=window.event;return _&&_!==n_?_.type:null}function Q_(){var _=window.event;return _&&_!==n_?_.timeStamp:-1.1}function vI(_){setTimeout(function(){throw _})}function VI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function yI(){}function kI(_,J,$,q){CI(_,J,$,q),_[m2]=q}function WW(_){u6(_,"")}function DI(_,J,$){_.nodeValue=$}function BW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[m2]||null;if(J!==null){var $=l1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,M1($,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,M1($,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 c3(_){return _==="head"}function uI(_,J){_.removeChild(J)}function bI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function LW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===o_||$===Uq){if(q===0){_.removeChild(G),Y7(J);return}q--}else if($===t_||$===z6||$===B8||$===r7||$===W8)q++;else if($===gP)q_(_.ownerDocument.documentElement);else if($===cP){$=_.ownerDocument.head,q_($);for(var K=$.firstChild;K;){var{nextSibling:z,nodeName:L}=K;K[H_]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&K.rel.toLowerCase()==="stylesheet"||$.removeChild(K),K=z}}else $===pP&&q_(_.ownerDocument.body);$=G}while($);Y7(J)}function AW(_,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,$===o_)if(_===0)break;else _--;else $!==t_&&$!==z6&&$!==B8&&$!==r7||_++;$=q}while($)}function EI(_){AW(_,!0)}function hI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function xI(_){_.nodeValue=""}function mI(_){AW(_,!1)}function gI(_,J){J=J[lP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function pI(_,J){_.nodeValue=J}function $Z(_){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":$Z($),S1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function cI(_,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"){K1(G.name,"name");var K=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===K)return _}else return _;else if(!_[H_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(K=_.getAttribute("rel"),K==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(K!==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(K=_.getAttribute("src"),(K!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&K&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=H5(_.nextSibling),_===null)break}return null}function lI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=H5(_.nextSibling),_===null)return null}return _}function MW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=H5(_.nextSibling),_===null)return null}return _}function QZ(_){return _.data===z6||_.data===B8}function qZ(_){return _.data===r7||_.data===z6&&_.ownerDocument.readyState!==ZA}function dI(_,J){var $=_.ownerDocument;if(_.data===B8)_._reactRetry=J;else if(_.data!==z6||$.readyState!==ZA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function H5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===t_||J===r7||J===z6||J===B8||J===W8||J===DF||J===GA)break;if(J===o_||J===Uq)return null}}return _}function TW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var K=q[G];$[GW(K.name)]=K.name.toLowerCase()==="style"?nG(_):K.value}return{type:J,props:$}}return _.nodeType===8?_.data===W8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function RW(_,J,$){return $===null||$[mP]!==!0?(_.nodeValue===J?_=null:(J=p3(J),_=p3(_.nodeValue)===J?null:_.nodeValue),_):null}function UZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===o_||$===Uq){if(J===0)return H5(_.nextSibling);J--}else $!==t_&&$!==r7&&$!==z6&&$!==B8&&$!==W8||J++}_=_.nextSibling}return null}function OW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===t_||$===r7||$===z6||$===B8||$===W8){if(J===0)return _;J--}else $!==o_&&$!==Uq||J++}_=_.previousSibling}return null}function iI(_){Y7(_)}function rI(_){Y7(_)}function aI(_){Y7(_)}function IW(_,J,$,q,G){switch(G&&S9(_,q.ancestorInfo),J=n$($),_){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 sI(_,J,$,q){if(!$[r3]&&l1($)){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]);R2($,_,J),$[O2]=q,$[m2]=J}function q_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);S1(_)}function e$(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function wW(_,J,$){var q=s7;if(q&&typeof J==="string"&&J){var G=t2(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),zA.has(G)||(zA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),R2(J,"link",_),E1(J),q.head.appendChild(J)))}}function PW(_,J,$,q){var G=(G=d3.current)?e$(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"?($=X7($.href),J=K0(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"){_=X7($.href);var K=K0(G).hoistableStyles,z=K.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:A8,preload:null}},K.set(_,z),(K=G.querySelector(U_(_)))&&!K._p&&(z.instance=K,z.state.loading=e_|k5),!D5.has(_))){var L={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};D5.set(_,L),K||tI(G,_,L,z.state)}if(J&&q===null)throw $=`
177
177
 
178
- - `+s$(J)+`
179
- + `+s$($),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 z}if(J&&q!==null)throw $=`
178
+ - `+_Q(J)+`
179
+ + `+_Q($),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 z}if(J&&q!==null)throw $=`
180
180
 
181
- - `+s$(J)+`
182
- + `+s$($),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"?($=F7($),J=K0(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 s$(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):c5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):c5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):c5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function K7(_){return'href="'+s2(_)+'"'}function J_(_){return'link[rel="stylesheet"]['+_+"]"}function RB(_){return J0({},_,{"data-precedence":_.precedence,precedence:null})}function rI(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=s_:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=s_}),J.addEventListener("error",function(){return q.loading|=GA}),A2(J,"link",$),D1(J),_.head.appendChild(J))}function F7(_){return'[src="'+s2(_)+'"]'}function $_(_){return"script[async]"+_}function OB(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+s2($.href)+'"]');if(q)return J.instance=q,D1(q),q;var G=J0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),D1(q),A2(q,"style",G),t$(q,$.precedence,_),J.instance=q;case"stylesheet":G=K7($.href);var K=_.querySelector(J_(G));if(K)return J.state.loading|=k5,J.instance=K,D1(K),K;q=RB($),(G=v5.get(G))&&$Z(q,G),K=(_.ownerDocument||_).createElement("link"),D1(K);var z=K;return z._p=new Promise(function(L,I){z.onload=L,z.onerror=I}),A2(K,"link",q),J.state.loading|=k5,t$(K,$.precedence,_),J.instance=K;case"script":if(K=F7($.src),G=_.querySelector($_(K)))return J.instance=G,D1(G),G;if(q=$,G=v5.get(K))q=J0({},$),QZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),D1(G),A2(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&k5)===W8&&(q=J.instance,J.state.loading|=k5,t$(q,$.precedence,_));return J.instance}function t$(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,K=G,z=0;z<q.length;z++){var L=q[z];if(L.dataset.precedence===J)K=L;else if(K!==G)break}K?K.parentNode.insertBefore(_,K.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function $Z(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function QZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function IB(_,J,$){if($q===null){var q=new Map,G=$q=new Map;G.set($,q)}else G=$q,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 K=$[G];if(!(K[Z_]||K[M2]||_==="link"&&K.getAttribute("rel")==="stylesheet")&&K.namespaceURI!==L7){var z=K.getAttribute(J)||"";z=_+z;var L=q.get(z);L?L.push(K):q.set(z,[K])}}return q}function wB(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function iI(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===r7||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:K}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),K!=null&&$.push("`disabled`"),G=wI($,"and"),G+=$.length===1?" prop":" props",K=$.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.',_,K,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 PB(_){return _.type==="stylesheet"&&(_.state.loading&ZA)===W8?!1:!0}function aI(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&k5)===W8){if($.instance===null){var G=K7(q.href),K=J.querySelector(J_(G));if(K){J=K._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=o$.bind(_),J.then(_,_)),$.state.loading|=k5,$.instance=K,D1(K);return}K=J.ownerDocument||J,q=RB(q),(G=v5.get(G))&&$Z(q,G),K=K.createElement("link"),D1(K);var z=K;z._p=new Promise(function(L,I){z.onload=L,z.onerror=I}),A2(K,"link",q),$.instance=K}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&ZA)===W8&&(_.count++,$=o$.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function sI(_,J){return _.stylesheets&&_.count===0&&n$(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&n$(_,_.stylesheets),_.unsuspend){var K=_.unsuspend;_.unsuspend=null,K()}},cP+J);0<_.imgBytes&&bK===0&&(bK=125*PI()*dP);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&n$(_,_.stylesheets),_.unsuspend)){var K=_.unsuspend;_.unsuspend=null,K()}},(_.imgBytes>bK?50:lP)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function o$(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)n$(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function n$(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Qq=new Map,J.forEach(tI,_),Qq=null,o$.call(_))}function tI(_,J){if(!(J.state.loading&k5)){var $=Qq.get(_);if($)var q=$.get(uK);else{$=new Map,Qq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),K=0;K<G.length;K++){var z=G[K];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(uK,q)}G=J.instance,z=G.getAttribute("data-precedence"),K=$.get(z)||q,K===q&&$.set(uK,G),$.set(z,G),this.count++,q=o$.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),K?K.parentNode.insertBefore(G,K.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=k5}}function oI(_,J,$,q,G,K,z,L,I){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=B8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=w2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=w2(0),this.hiddenUpdates=w2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=K,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,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 NB(_,J,$,q,G,K,z,L,I,C,e,_1){return _=new oI(_,J,$,z,I,C,e,_1,L),J=LP,K===!0&&(J|=C2|d5),J|=s1,K=O(3,null,null,J),_.current=K,K.stateNode=_,J=VU(),g6(J),_.pooledCache=J,g6(J),K.memoizedState={element:q,isDehydrated:$,cache:J},uU(K),_}function fB(_){if(!_)return t3;return _=t3,_}function qZ(_,J,$,q,G,K){if(f2&&typeof f2.onScheduleFiberRoot==="function")try{f2.onScheduleFiberRoot(B7,q,$)}catch(z){P4||(P4=!0,console.error("React instrumentation encountered an error: %o",z))}G=fB(G),q.context===null?q.context=G:q.pendingContext=G,w4&&Y5!==null&&!YA&&(YA=!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.
181
+ - `+_Q(J)+`
182
+ + `+_Q($),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"?($=H7($),J=K0(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 _Q(_){var J=0,$="<link";return typeof _.rel==="string"?(J++,$+=' rel="'+_.rel+'"'):l5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):l5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):l5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function X7(_){return'href="'+t2(_)+'"'}function U_(_){return'link[rel="stylesheet"]['+_+"]"}function NW(_){return J0({},_,{"data-precedence":_.precedence,precedence:null})}function tI(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=e_:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=e_}),J.addEventListener("error",function(){return q.loading|=HA}),R2(J,"link",$),E1(J),_.head.appendChild(J))}function H7(_){return'[src="'+t2(_)+'"]'}function G_(_){return"script[async]"+_}function CW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+t2($.href)+'"]');if(q)return J.instance=q,E1(q),q;var G=J0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),E1(q),R2(q,"style",G),JQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=X7($.href);var K=_.querySelector(U_(G));if(K)return J.state.loading|=k5,J.instance=K,E1(K),K;q=NW($),(G=D5.get(G))&&GZ(q,G),K=(_.ownerDocument||_).createElement("link"),E1(K);var z=K;return z._p=new Promise(function(L,I){z.onload=L,z.onerror=I}),R2(K,"link",q),J.state.loading|=k5,JQ(K,$.precedence,_),J.instance=K;case"script":if(K=H7($.src),G=_.querySelector(G_(K)))return J.instance=G,E1(G),G;if(q=$,G=D5.get(K))q=J0({},$),ZZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),E1(G),R2(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&k5)===A8&&(q=J.instance,J.state.loading|=k5,JQ(q,$.precedence,_));return J.instance}function JQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,K=G,z=0;z<q.length;z++){var L=q[z];if(L.dataset.precedence===J)K=L;else if(K!==G)break}K?K.parentNode.insertBefore(_,K.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function GZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function ZZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function fW(_,J,$){if(Zq===null){var q=new Map,G=Zq=new Map;G.set($,q)}else G=Zq,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 K=$[G];if(!(K[H_]||K[O2]||_==="link"&&K.getAttribute("rel")==="stylesheet")&&K.namespaceURI!==M7){var z=K.getAttribute(J)||"";z=_+z;var L=q.get(z);L?L.push(K):q.set(z,[K])}}return q}function SW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function oI(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===a7||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:K}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),K!=null&&$.push("`disabled`"),G=fI($,"and"),G+=$.length===1?" prop":" props",K=$.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.',_,K,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 jW(_){return _.type==="stylesheet"&&(_.state.loading&YA)===A8?!1:!0}function nI(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&k5)===A8){if($.instance===null){var G=X7(q.href),K=J.querySelector(U_(G));if(K){J=K._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=$Q.bind(_),J.then(_,_)),$.state.loading|=k5,$.instance=K,E1(K);return}K=J.ownerDocument||J,q=NW(q),(G=D5.get(G))&&GZ(q,G),K=K.createElement("link"),E1(K);var z=K;z._p=new Promise(function(L,I){z.onload=L,z.onerror=I}),R2(K,"link",q),$.instance=K}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&YA)===A8&&(_.count++,$=$Q.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function eI(_,J){return _.stylesheets&&_.count===0&&QQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&QQ(_,_.stylesheets),_.unsuspend){var K=_.unsuspend;_.unsuspend=null,K()}},rP+J);0<_.imgBytes&&xF===0&&(xF=125*SI()*sP);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&QQ(_,_.stylesheets),_.unsuspend)){var K=_.unsuspend;_.unsuspend=null,K()}},(_.imgBytes>xF?50:aP)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function $Q(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)QQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function QQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Fq=new Map,J.forEach(_w,_),Fq=null,$Q.call(_))}function _w(_,J){if(!(J.state.loading&k5)){var $=Fq.get(_);if($)var q=$.get(mF);else{$=new Map,Fq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),K=0;K<G.length;K++){var z=G[K];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(mF,q)}G=J.instance,z=G.getAttribute("data-precedence"),K=$.get(z)||q,K===q&&$.set(mF,G),$.set(z,G),this.count++,q=$Q.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),K?K.parentNode.insertBefore(G,K.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=k5}}function Jw(_,J,$,q,G,K,z,L,I){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=L8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=N2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=N2(0),this.hiddenUpdates=N2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=K,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,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 vW(_,J,$,q,G,K,z,L,I,f,n,_1){return _=new Jw(_,J,$,z,I,f,n,_1,L),J=RP,K===!0&&(J|=j2|i5),J|=t1,K=O(3,null,null,J),_.current=K,K.stateNode=_,J=uU(),c6(J),_.pooledCache=J,c6(J),K.memoizedState={element:q,isDehydrated:$,cache:J},mU(K),_}function VW(_){if(!_)return o3;return _=o3,_}function FZ(_,J,$,q,G,K){if(S2&&typeof S2.onScheduleFiberRoot==="function")try{S2.onScheduleFiberRoot(L7,q,$)}catch(z){N4||(N4=!0,console.error("React instrumentation encountered an error: %o",z))}G=VW(G),q.context===null?q.context=G:q.pendingContext=G,P4&&z5!==null&&!AA&&(AA=!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.
183
183
 
184
- Check the render method of %s.`,m(Y5)||"Unknown")),q=b3(J),q.payload={element:$},K=K===void 0?null:K,K!==null&&(typeof K!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",K),q.callback=K),$=u3(_,q,J),$!==null&&(K4(J,"root.render()",null),u0($,_,J),u9($,_,J))}function CB(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function UZ(_,J){CB(_,J),(_=_.alternate)&&CB(_,J)}function SB(_){if(_.tag===13||_.tag===31){var J=N2(_,67108864);J!==null&&u0(J,_,67108864),UZ(_,67108864)}}function jB(_){if(_.tag===13||_.tag===31){var J=F5(_);J=p4(J);var $=N2(_,J);$!==null&&u0($,_,J),UZ(_,J)}}function nI(){return Y5}function eI(_,J,$,q){var G=K1.T;K1.T=null;var K=W0.p;try{W0.p=z5,GZ(_,J,$,q)}finally{W0.p=K,K1.T=G}}function _w(_,J,$,q){var G=K1.T;K1.T=null;var K=W0.p;try{W0.p=l5,GZ(_,J,$,q)}finally{W0.p=K,K1.T=G}}function GZ(_,J,$,q){if(Uq){var G=ZZ(q);if(G===null)dG(_,J,q,Gq,$),VB(_,q);else if(Jw(G,_,J,$,q))q.stopPropagation();else if(VB(_,q),J&4&&-1<iP.indexOf(_)){for(;G!==null;){var K=c1(G);if(K!==null)switch(K.tag){case 3:if(K=K.stateNode,K.current.memoizedState.isDehydrated){var z=O2(K.pendingLanes);if(z!==0){var L=K;L.pendingLanes|=2;for(L.entangledLanes|=2;z;){var I=1<<31-h2(z);L.entanglements[1]|=I,z&=~I}T4(K),(X0&($2|A5))===Y2&&(pQ=F2()+mL,t9(0,!1))}}break;case 31:case 13:L=N2(K,2),L!==null&&u0(L,K,2),U7(),UZ(K,2)}if(K=ZZ(q),K===null&&dG(_,J,q,Gq,$),K===G)break;G=K}G!==null&&q.stopPropagation()}else dG(_,J,q,null,$)}}function ZZ(_){return _=zU(_),KZ(_)}function KZ(_){if(Gq=null,_=C1(_),_!==null){var J=f(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=D(J),_!==null)return _;_=null}else if($===31){if(_=N(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 Gq=_,null}function yB(_){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 l5;case"message":switch(Xw()){case OZ:return z5;case IZ:return l5;case z7:case Hw:return f4;case wZ:return KQ;default:return f4}default:return f4}}function VB(_,J){switch(_){case"focusin":case"focusout":z6=null;break;case"dragenter":case"dragleave":B6=null;break;case"mouseover":case"mouseout":W6=null;break;case"pointerover":case"pointerout":o_.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":n_.delete(J.pointerId)}}function Q_(_,J,$,q,G,K){if(_===null||_.nativeEvent!==K)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:K,targetContainers:[G]},J!==null&&(J=c1(J),J!==null&&SB(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Jw(_,J,$,q,G){switch(J){case"focusin":return z6=Q_(z6,_,J,$,q,G),!0;case"dragenter":return B6=Q_(B6,_,J,$,q,G),!0;case"mouseover":return W6=Q_(W6,_,J,$,q,G),!0;case"pointerover":var K=G.pointerId;return o_.set(K,Q_(o_.get(K)||null,_,J,$,q,G)),!0;case"gotpointercapture":return K=G.pointerId,n_.set(K,Q_(n_.get(K)||null,_,J,$,q,G)),!0}return!1}function kB(_){var J=C1(_.target);if(J!==null){var $=f(J);if($!==null){if(J=$.tag,J===13){if(J=D($),J!==null){_.blockedOn=J,R1(_.priority,function(){jB($)});return}}else if(J===31){if(J=N($),J!==null){_.blockedOn=J,R1(_.priority,function(){jB($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function e$(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=ZZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;K_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),K_=G,$.target.dispatchEvent(q),K_===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."),K_=null}else return J=c1($),J!==null&&SB(J),_.blockedOn=$,!1;J.shift()}return!0}function vB(_,J,$){e$(_)&&$.delete(J)}function $w(){EK=!1,z6!==null&&e$(z6)&&(z6=null),B6!==null&&e$(B6)&&(B6=null),W6!==null&&e$(W6)&&(W6=null),o_.forEach(vB),n_.forEach(vB)}function _Q(_,J){_.blockedOn===J&&(_.blockedOn=null,EK||(EK=!0,H0.unstable_scheduleCallback(H0.unstable_NormalPriority,$w)))}function DB(_){Zq!==_&&(Zq=_,H0.unstable_scheduleCallback(H0.unstable_NormalPriority,function(){Zq===_&&(Zq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(KZ(q||$)===null)continue;else break;var K=c1($);K!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),KG(K,$,q,G))}}))}function X7(_){function J(I){return _Q(I,_)}z6!==null&&_Q(z6,_),B6!==null&&_Q(B6,_),W6!==null&&_Q(W6,_),o_.forEach(J),n_.forEach(J);for(var $=0;$<L6.length;$++){var q=L6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<L6.length&&($=L6[0],$.blockedOn===null);)kB($),$.blockedOn===null&&L6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],K=$[q+1],z=G[x2]||null;if(typeof K==="function")z||DB($);else if(z){var L=null;if(K&&K.hasAttribute("formAction")){if(G=K,z=K[x2]||null)L=z.formAction;else if(KZ(G)!==null)continue}else L=z.action;typeof L==="function"?$[q+1]=L:($.splice(q,3),q-=3),DB($)}}}function bB(){function _(K){K.canIntercept&&K.info==="react-transition"&&K.intercept({handler:function(){return new Promise(function(z){return G=z})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var K=navigation.currentEntry;K&&K.url!=null&&navigation.navigate(K.url,{state:K.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 FZ(_){this._internalRoot=_}function JQ(_){this._internalRoot=_}function uB(_){_[r3]&&(_._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 J0=Object.assign,Qw=Symbol.for("react.element"),O4=Symbol.for("react.transitional.element"),H7=Symbol.for("react.portal"),Y7=Symbol.for("react.fragment"),$Q=Symbol.for("react.strict_mode"),XZ=Symbol.for("react.profiler"),HZ=Symbol.for("react.consumer"),I4=Symbol.for("react.context"),q_=Symbol.for("react.forward_ref"),YZ=Symbol.for("react.suspense"),zZ=Symbol.for("react.suspense_list"),QQ=Symbol.for("react.memo"),H5=Symbol.for("react.lazy"),BZ=Symbol.for("react.activity"),qw=Symbol.for("react.memo_cache_sentinel"),EB=Symbol.iterator,Uw=Symbol.for("react.client.reference"),_2=Array.isArray,K1=a7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W0=mK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Gw=Object.freeze({pending:!1,data:null,method:null,action:null}),WZ=[],LZ=[],n4=-1,c3=$1(null),U_=$1(null),l3=$1(null),qQ=$1(null),G_=0,hB,xB,mB,gB,pB,cB,lB;k.__reactDisabledLog=!0;var AZ,dB,MZ=!1,TZ=new(typeof WeakMap==="function"?WeakMap:Map),Y5=null,w4=!1,c5=Object.prototype.hasOwnProperty,RZ=H0.unstable_scheduleCallback,Zw=H0.unstable_cancelCallback,Kw=H0.unstable_shouldYield,Fw=H0.unstable_requestPaint,F2=H0.unstable_now,Xw=H0.unstable_getCurrentPriorityLevel,OZ=H0.unstable_ImmediatePriority,IZ=H0.unstable_UserBlockingPriority,z7=H0.unstable_NormalPriority,Hw=H0.unstable_LowPriority,wZ=H0.unstable_IdlePriority,Yw=H0.log,zw=H0.unstable_setDisableYieldValue,B7=null,f2=null,P4=!1,N4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",h2=Math.clz32?Math.clz32:B2,Bw=Math.log,Ww=Math.LN2,UQ=256,GQ=262144,ZQ=4194304,z5=2,l5=8,f4=32,KQ=268435456,d3=Math.random().toString(36).slice(2),M2="__reactFiber$"+d3,x2="__reactProps$"+d3,r3="__reactContainer$"+d3,PZ="__reactEvents$"+d3,Lw="__reactListeners$"+d3,Aw="__reactHandles$"+d3,rB="__reactResources$"+d3,Z_="__reactMarker$"+d3,iB=new Set,a6={},NZ={},Mw={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]*$"),aB={},sB={},Rw=/[\n"\\]/g,tB=!1,oB=!1,nB=!1,eB=!1,_W=!1,JW=!1,$W=["value","defaultValue"],QW=!1,qW=/["'&<>\n\t]|^\s|\s$/,Ow="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(" "),UW="applet caption html table td th marquee object template foreignObject desc title".split(" "),Iw=UW.concat(["button"]),ww="dd dt li option optgroup p rp rt".split(" "),GW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},FQ={},fZ={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"]},ZW=/([A-Z])/g,KW=/^ms-/,Pw=/^(?:webkit|moz|o)[A-Z]/,Nw=/^-ms-/,fw=/-(.)/g,FW=/;\s*$/,W7={},CZ={},XW=!1,HW=!1,YW=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(" ")),XQ="http://www.w3.org/1998/Math/MathML",L7="http://www.w3.org/2000/svg",Cw=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"]]),HQ={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"},zW={"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},A7={},Sw=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]*$"),jw=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]*$"),BW=!1,m2={},WW=/^on./,yw=/^on[^A-Z]/,Vw=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]*$"),kw=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]*$"),vw=/^[\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,K_=null,M7=null,T7=null,SZ=!1,C4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jZ=!1;if(C4)try{var F_={};Object.defineProperty(F_,"passive",{get:function(){jZ=!0}}),window.addEventListener("test",F_,F_),window.removeEventListener("test",F_,F_)}catch(_){jZ=!1}var i3=null,yZ=null,YQ=null,s6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zQ=t2(s6),X_=J0({},s6,{view:0,detail:0}),Dw=t2(X_),VZ,kZ,H_,BQ=J0({},X_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:BU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==H_&&(H_&&_.type==="mousemove"?(VZ=_.screenX-H_.screenX,kZ=_.screenY-H_.screenY):kZ=VZ=0,H_=_),VZ},movementY:function(_){return"movementY"in _?_.movementY:kZ}}),LW=t2(BQ),bw=J0({},BQ,{dataTransfer:0}),uw=t2(bw),Ew=J0({},X_,{relatedTarget:0}),vZ=t2(Ew),hw=J0({},s6,{animationName:0,elapsedTime:0,pseudoElement:0}),xw=t2(hw),mw=J0({},s6,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),gw=t2(mw),pw=J0({},s6,{data:0}),AW=t2(pw),cw=AW,lw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dw={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"},rw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},iw=J0({},X_,{key:function(_){if(_.key){var J=lw[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=eJ(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?dw[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:BU,charCode:function(_){return _.type==="keypress"?eJ(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?eJ(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),aw=t2(iw),sw=J0({},BQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),MW=t2(sw),tw=J0({},X_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:BU}),ow=t2(tw),nw=J0({},s6,{propertyName:0,elapsedTime:0,pseudoElement:0}),ew=t2(nw),_P=J0({},BQ,{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}),JP=t2(_P),$P=J0({},s6,{newState:0,oldState:0}),QP=t2($P),qP=[9,13,27,32],TW=229,DZ=C4&&"CompositionEvent"in window,Y_=null;C4&&"documentMode"in document&&(Y_=document.documentMode);var UP=C4&&"TextEvent"in window&&!Y_,RW=C4&&(!DZ||Y_&&8<Y_&&11>=Y_),OW=32,IW=String.fromCharCode(OW),wW=!1,R7=!1,GP={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},z_=null,B_=null,PW=!1;C4&&(PW=CO("input")&&(!document.documentMode||9<document.documentMode));var g2=typeof Object.is==="function"?Object.is:vO,ZP=C4&&"documentMode"in document&&11>=document.documentMode,O7=null,bZ=null,W_=null,uZ=!1,I7={animationend:D6("Animation","AnimationEnd"),animationiteration:D6("Animation","AnimationIteration"),animationstart:D6("Animation","AnimationStart"),transitionrun:D6("Transition","TransitionRun"),transitionstart:D6("Transition","TransitionStart"),transitioncancel:D6("Transition","TransitionCancel"),transitionend:D6("Transition","TransitionEnd")},EZ={},NW={};C4&&(NW=document.createElement("div").style,("AnimationEvent"in window)||(delete I7.animationend.animation,delete I7.animationiteration.animation,delete I7.animationstart.animation),("TransitionEvent"in window)||delete I7.transitionend.transition);var fW=b6("animationend"),CW=b6("animationiteration"),SW=b6("animationstart"),KP=b6("transitionrun"),FP=b6("transitionstart"),XP=b6("transitioncancel"),jW=b6("transitionend"),yW=new Map,hZ="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(" ");hZ.push("scrollEnd");var VW=0;if(typeof performance==="object"&&typeof performance.now==="function")var HP=performance,kW=function(){return HP.now()};else{var YP=Date;kW=function(){return YP.now()}}var xZ=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(_)},zP="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.",WQ=0,mZ=1,gZ=2,pZ=3,LQ="– ",AQ="+ ",vW="  ",f0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",I5="Components ⚛",$0="Scheduler ⚛",Q0="Blocking",a3=!1,e4={color:"primary",properties:null,tooltipText:"",track:I5},s3={start:-0,end:-0,detail:{devtools:e4}},BP=["Changed Props",""],DW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",WP=["Changed Props",DW],L_=1,_3=2,w5=[],w7=0,cZ=0,t3={};Object.freeze(t3);var P5=null,P7=null,m1=0,LP=1,s1=2,C2=8,d5=16,AP=32,bW=!1;try{var uW=Object.preventExtensions({})}catch(_){bW=!0}var lZ=new WeakMap,N7=[],f7=0,MQ=null,A_=0,N5=[],f5=0,t6=null,J3=1,$3="",T2=null,C0=null,q0=!1,S4=!1,B5=null,o3=null,C5=!1,dZ=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."),rZ=$1(null),iZ=$1(null),EW={},TQ=null,C7=null,S7=!1,MP=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 $()})}},TP=H0.unstable_scheduleCallback,RP=H0.unstable_NormalPriority,r0={$$typeof:I4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},i0=H0.unstable_now,RQ=console.createTask?console.createTask:function(){return null},M_=1,OQ=2,X2=-0,n3=-0,Q3=-0,q3=null,p2=-1.1,o6=-0,v0=-0,u1=-1.1,x1=-1.1,y0=null,E0=!1,e3=-0,j4=-1.1,T_=null,_6=0,aZ=null,sZ=null,n6=-1.1,R_=null,j7=-1.1,IQ=-1.1,y4=-0,U3=-1.1,S5=-1.1,tZ=0,O_=null,hW=null,xW=null,J6=-1.1,e6=null,$6=-1.1,wQ=-1.1,mW=-0,gW=-0,PQ=0,G3=null,pW=0,I_=-1.1,NQ=!1,fQ=!1,w_=null,oZ=0,_8=0,y7=null,cW=K1.S;K1.S=function(_,J){if(hL=F2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>U3&&0>S5){U3=i0();var $=e9(),q=n9();if($!==$6||q!==e6)$6=-1.1;J6=$,e6=q}mO(_,J)}cW!==null&&cW(_,J)};var J8=$1(null),r5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},P_=[],N_=[],f_=[],C_=[],S_=[],j_=[],$8=new Set;r5.recordUnsafeLifecycleWarnings=function(_,J){$8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&P_.push(_),_.mode&C2&&typeof J.UNSAFE_componentWillMount==="function"&&N_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&f_.push(_),_.mode&C2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&C_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&S_.push(_),_.mode&C2&&typeof J.UNSAFE_componentWillUpdate==="function"&&j_.push(_))},r5.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<P_.length&&(P_.forEach(function(L){_.add(m(L)||"Component"),$8.add(L.type)}),P_=[]);var J=new Set;0<N_.length&&(N_.forEach(function(L){J.add(m(L)||"Component"),$8.add(L.type)}),N_=[]);var $=new Set;0<f_.length&&(f_.forEach(function(L){$.add(m(L)||"Component"),$8.add(L.type)}),f_=[]);var q=new Set;0<C_.length&&(C_.forEach(function(L){q.add(m(L)||"Component"),$8.add(L.type)}),C_=[]);var G=new Set;0<S_.length&&(S_.forEach(function(L){G.add(m(L)||"Component"),$8.add(L.type)}),S_=[]);var K=new Set;if(0<j_.length&&(j_.forEach(function(L){K.add(m(L)||"Component"),$8.add(L.type)}),j_=[]),0<J.size){var z=A(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.
184
+ Check the render method of %s.`,m(z5)||"Unknown")),q=b3(J),q.payload={element:$},K=K===void 0?null:K,K!==null&&(typeof K!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",K),q.callback=K),$=E3(_,q,J),$!==null&&(K4(J,"root.render()",null),h0($,_,J),m9($,_,J))}function yW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function KZ(_,J){yW(_,J),(_=_.alternate)&&yW(_,J)}function kW(_){if(_.tag===13||_.tag===31){var J=f2(_,67108864);J!==null&&h0(J,_,67108864),KZ(_,67108864)}}function DW(_){if(_.tag===13||_.tag===31){var J=X5(_);J=c4(J);var $=f2(_,J);$!==null&&h0($,_,J),KZ(_,J)}}function $w(){return z5}function Qw(_,J,$,q){var G=H1.T;H1.T=null;var K=L0.p;try{L0.p=W5,XZ(_,J,$,q)}finally{L0.p=K,H1.T=G}}function qw(_,J,$,q){var G=H1.T;H1.T=null;var K=L0.p;try{L0.p=d5,XZ(_,J,$,q)}finally{L0.p=K,H1.T=G}}function XZ(_,J,$,q){if(Xq){var G=HZ(q);if(G===null)sG(_,J,q,Hq,$),bW(_,q);else if(Uw(G,_,J,$,q))q.stopPropagation();else if(bW(_,q),J&4&&-1<oP.indexOf(_)){for(;G!==null;){var K=l1(G);if(K!==null)switch(K.tag){case 3:if(K=K.stateNode,K.current.memoizedState.isDehydrated){var z=q2(K.pendingLanes);if(z!==0){var L=K;L.pendingLanes|=2;for(L.entangledLanes|=2;z;){var I=1<<31-x2(z);L.entanglements[1]|=I,z&=~I}R4(K),(H0&(Z2|M5))===L2&&(rQ=z2()+dL,__(0,!1))}}break;case 31:case 13:L=f2(K,2),L!==null&&h0(L,K,2),Z7(),KZ(K,2)}if(K=HZ(q),K===null&&sG(_,J,q,Hq,$),K===G)break;G=K}G!==null&&q.stopPropagation()}else sG(_,J,q,null,$)}}function HZ(_){return _=AU(_),YZ(_)}function YZ(_){if(Hq=null,_=y1(_),_!==null){var J=C(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=D(J),_!==null)return _;_=null}else if($===31){if(_=N(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 Hq=_,null}function uW(_){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 W5;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 d5;case"message":switch(Ww()){case NZ:return W5;case CZ:return d5;case B7:case Bw:return f4;case fZ:return zQ;default:return f4}default:return f4}}function bW(_,J){switch(_){case"focusin":case"focusout":W6=null;break;case"dragenter":case"dragleave":B6=null;break;case"mouseover":case"mouseout":L6=null;break;case"pointerover":case"pointerout":JJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":$J.delete(J.pointerId)}}function Z_(_,J,$,q,G,K){if(_===null||_.nativeEvent!==K)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:K,targetContainers:[G]},J!==null&&(J=l1(J),J!==null&&kW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Uw(_,J,$,q,G){switch(J){case"focusin":return W6=Z_(W6,_,J,$,q,G),!0;case"dragenter":return B6=Z_(B6,_,J,$,q,G),!0;case"mouseover":return L6=Z_(L6,_,J,$,q,G),!0;case"pointerover":var K=G.pointerId;return JJ.set(K,Z_(JJ.get(K)||null,_,J,$,q,G)),!0;case"gotpointercapture":return K=G.pointerId,$J.set(K,Z_($J.get(K)||null,_,J,$,q,G)),!0}return!1}function EW(_){var J=y1(_.target);if(J!==null){var $=C(J);if($!==null){if(J=$.tag,J===13){if(J=D($),J!==null){_.blockedOn=J,P1(_.priority,function(){DW($)});return}}else if(J===31){if(J=N($),J!==null){_.blockedOn=J,P1(_.priority,function(){DW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function qQ(_){if(_.blockedOn!==null)return!1;for(var J=_.targetContainers;0<J.length;){var $=HZ(_.nativeEvent);if($===null){$=_.nativeEvent;var q=new $.constructor($.type,$),G=q;Y_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Y_=G,$.target.dispatchEvent(q),Y_===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."),Y_=null}else return J=l1($),J!==null&&kW(J),_.blockedOn=$,!1;J.shift()}return!0}function hW(_,J,$){qQ(_)&&$.delete(J)}function Gw(){gF=!1,W6!==null&&qQ(W6)&&(W6=null),B6!==null&&qQ(B6)&&(B6=null),L6!==null&&qQ(L6)&&(L6=null),JJ.forEach(hW),$J.forEach(hW)}function UQ(_,J){_.blockedOn===J&&(_.blockedOn=null,gF||(gF=!0,Y0.unstable_scheduleCallback(Y0.unstable_NormalPriority,Gw)))}function xW(_){Yq!==_&&(Yq=_,Y0.unstable_scheduleCallback(Y0.unstable_NormalPriority,function(){Yq===_&&(Yq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(YZ(q||$)===null)continue;else break;var K=l1($);K!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),YG(K,$,q,G))}}))}function Y7(_){function J(I){return UQ(I,_)}W6!==null&&UQ(W6,_),B6!==null&&UQ(B6,_),L6!==null&&UQ(L6,_),JJ.forEach(J),$J.forEach(J);for(var $=0;$<A6.length;$++){var q=A6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<A6.length&&($=A6[0],$.blockedOn===null);)EW($),$.blockedOn===null&&A6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],K=$[q+1],z=G[m2]||null;if(typeof K==="function")z||xW($);else if(z){var L=null;if(K&&K.hasAttribute("formAction")){if(G=K,z=K[m2]||null)L=z.formAction;else if(YZ(G)!==null)continue}else L=z.action;typeof L==="function"?$[q+1]=L:($.splice(q,3),q-=3),xW($)}}}function mW(){function _(K){K.canIntercept&&K.info==="react-transition"&&K.intercept({handler:function(){return new Promise(function(z){return G=z})},focusReset:"manual",scroll:"manual"})}function J(){G!==null&&(G(),G=null),q||setTimeout($,20)}function $(){if(!q&&!navigation.transition){var K=navigation.currentEntry;K&&K.url!=null&&navigation.navigate(K.url,{state:K.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 zZ(_){this._internalRoot=_}function GQ(_){this._internalRoot=_}function gW(_){_[r3]&&(_._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 J0=Object.assign,Zw=Symbol.for("react.element"),I4=Symbol.for("react.transitional.element"),z7=Symbol.for("react.portal"),W7=Symbol.for("react.fragment"),ZQ=Symbol.for("react.strict_mode"),WZ=Symbol.for("react.profiler"),BZ=Symbol.for("react.consumer"),w4=Symbol.for("react.context"),F_=Symbol.for("react.forward_ref"),LZ=Symbol.for("react.suspense"),AZ=Symbol.for("react.suspense_list"),FQ=Symbol.for("react.memo"),Y5=Symbol.for("react.lazy"),MZ=Symbol.for("react.activity"),Fw=Symbol.for("react.memo_cache_sentinel"),pW=Symbol.iterator,Kw=Symbol.for("react.client.reference"),U2=Array.isArray,H1=t7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L0=lF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xw=Object.freeze({pending:!1,data:null,method:null,action:null}),TZ=[],RZ=[],e4=-1,l3=e(null),K_=e(null),d3=e(null),KQ=e(null),X_=0,cW,lW,dW,iW,rW,aW,sW;y.__reactDisabledLog=!0;var OZ,tW,IZ=!1,wZ=new(typeof WeakMap==="function"?WeakMap:Map),z5=null,P4=!1,l5=Object.prototype.hasOwnProperty,PZ=Y0.unstable_scheduleCallback,Hw=Y0.unstable_cancelCallback,Yw=Y0.unstable_shouldYield,zw=Y0.unstable_requestPaint,z2=Y0.unstable_now,Ww=Y0.unstable_getCurrentPriorityLevel,NZ=Y0.unstable_ImmediatePriority,CZ=Y0.unstable_UserBlockingPriority,B7=Y0.unstable_NormalPriority,Bw=Y0.unstable_LowPriority,fZ=Y0.unstable_IdlePriority,Lw=Y0.log,Aw=Y0.unstable_setDisableYieldValue,L7=null,S2=null,N4=!1,C4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",x2=Math.clz32?Math.clz32:a0,Mw=Math.log,Tw=Math.LN2,XQ=256,HQ=262144,YQ=4194304,W5=2,d5=8,f4=32,zQ=268435456,i3=Math.random().toString(36).slice(2),O2="__reactFiber$"+i3,m2="__reactProps$"+i3,r3="__reactContainer$"+i3,SZ="__reactEvents$"+i3,Rw="__reactListeners$"+i3,Ow="__reactHandles$"+i3,oW="__reactResources$"+i3,H_="__reactMarker$"+i3,nW=new Set,t6={},jZ={},Iw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},ww=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]*$"),eW={},_B={},Pw=/[\n"\\]/g,JB=!1,$B=!1,QB=!1,qB=!1,UB=!1,GB=!1,ZB=["value","defaultValue"],FB=!1,KB=/["'&<>\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(" "),XB="applet caption html table td th marquee object template foreignObject desc title".split(" "),Cw=XB.concat(["button"]),fw="dd dt li option optgroup p rp rt".split(" "),HB={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},WQ={},vZ={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"]},YB=/([A-Z])/g,zB=/^ms-/,Sw=/^(?:webkit|moz|o)[A-Z]/,jw=/^-ms-/,vw=/-(.)/g,WB=/;\s*$/,A7={},VZ={},BB=!1,LB=!1,AB=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(" ")),BQ="http://www.w3.org/1998/Math/MathML",M7="http://www.w3.org/2000/svg",Vw=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"]]),LQ={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"},MB={"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},T7={},yw=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]*$"),kw=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]*$"),TB=!1,g2={},RB=/^on./,Dw=/^on[^A-Z]/,uw=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]*$"),bw=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]*$"),Ew=/^[\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,Y_=null,R7=null,O7=null,yZ=!1,S4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kZ=!1;if(S4)try{var z_={};Object.defineProperty(z_,"passive",{get:function(){kZ=!0}}),window.addEventListener("test",z_,z_),window.removeEventListener("test",z_,z_)}catch(_){kZ=!1}var a3=null,DZ=null,AQ=null,o6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},MQ=o2(o6),W_=J0({},o6,{view:0,detail:0}),hw=o2(W_),uZ,bZ,B_,TQ=J0({},W_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:MU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==B_&&(B_&&_.type==="mousemove"?(uZ=_.screenX-B_.screenX,bZ=_.screenY-B_.screenY):bZ=uZ=0,B_=_),uZ},movementY:function(_){return"movementY"in _?_.movementY:bZ}}),OB=o2(TQ),xw=J0({},TQ,{dataTransfer:0}),mw=o2(xw),gw=J0({},W_,{relatedTarget:0}),EZ=o2(gw),pw=J0({},o6,{animationName:0,elapsedTime:0,pseudoElement:0}),cw=o2(pw),lw=J0({},o6,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),dw=o2(lw),iw=J0({},o6,{data:0}),IB=o2(iw),rw=IB,aw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sw={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"},tw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},ow=J0({},W_,{key:function(_){if(_.key){var J=aw[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=q$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?sw[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:MU,charCode:function(_){return _.type==="keypress"?q$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?q$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),nw=o2(ow),ew=J0({},TQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wB=o2(ew),_P=J0({},W_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:MU}),JP=o2(_P),$P=J0({},o6,{propertyName:0,elapsedTime:0,pseudoElement:0}),QP=o2($P),qP=J0({},TQ,{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}),UP=o2(qP),GP=J0({},o6,{newState:0,oldState:0}),ZP=o2(GP),FP=[9,13,27,32],PB=229,hZ=S4&&"CompositionEvent"in window,L_=null;S4&&"documentMode"in document&&(L_=document.documentMode);var KP=S4&&"TextEvent"in window&&!L_,NB=S4&&(!hZ||L_&&8<L_&&11>=L_),CB=32,fB=String.fromCharCode(CB),SB=!1,I7=!1,XP={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},A_=null,M_=null,jB=!1;S4&&(jB=VO("input")&&(!document.documentMode||9<document.documentMode));var p2=typeof Object.is==="function"?Object.is:EO,HP=S4&&"documentMode"in document&&11>=document.documentMode,w7=null,xZ=null,T_=null,mZ=!1,P7={animationend:b6("Animation","AnimationEnd"),animationiteration:b6("Animation","AnimationIteration"),animationstart:b6("Animation","AnimationStart"),transitionrun:b6("Transition","TransitionRun"),transitionstart:b6("Transition","TransitionStart"),transitioncancel:b6("Transition","TransitionCancel"),transitionend:b6("Transition","TransitionEnd")},gZ={},vB={};S4&&(vB=document.createElement("div").style,("AnimationEvent"in window)||(delete P7.animationend.animation,delete P7.animationiteration.animation,delete P7.animationstart.animation),("TransitionEvent"in window)||delete P7.transitionend.transition);var VB=E6("animationend"),yB=E6("animationiteration"),kB=E6("animationstart"),YP=E6("transitionrun"),zP=E6("transitionstart"),WP=E6("transitioncancel"),DB=E6("transitionend"),uB=new Map,pZ="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(" ");pZ.push("scrollEnd");var bB=0;if(typeof performance==="object"&&typeof performance.now==="function")var BP=performance,EB=function(){return BP.now()};else{var LP=Date;EB=function(){return LP.now()}}var cZ=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(_)},AP="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.",RQ=0,lZ=1,dZ=2,iZ=3,OQ="– ",IQ="+ ",hB="  ",S0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",w5="Components ⚛",$0="Scheduler ⚛",q0="Blocking",s3=!1,_3={color:"primary",properties:null,tooltipText:"",track:w5},t3={start:-0,end:-0,detail:{devtools:_3}},MP=["Changed Props",""],xB="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",TP=["Changed Props",xB],R_=1,J3=2,P5=[],N7=0,rZ=0,o3={};Object.freeze(o3);var N5=null,C7=null,p1=0,RP=1,t1=2,j2=8,i5=16,OP=32,mB=!1;try{var gB=Object.preventExtensions({})}catch(_){mB=!0}var aZ=new WeakMap,f7=[],S7=0,wQ=null,O_=0,C5=[],f5=0,n6=null,$3=1,Q3="",I2=null,j0=null,G0=!1,j4=!1,B5=null,n3=null,S5=!1,sZ=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."),tZ=e(null),oZ=e(null),pB={},PQ=null,j7=null,v7=!1,IP=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 $()})}},wP=Y0.unstable_scheduleCallback,PP=Y0.unstable_NormalPriority,s0={$$typeof:w4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},t0=Y0.unstable_now,NQ=console.createTask?console.createTask:function(){return null},I_=1,CQ=2,W2=-0,e3=-0,q3=-0,U3=null,c2=-1.1,e6=-0,u0=-0,x1=-1.1,g1=-1.1,y0=null,x0=!1,_6=-0,v4=-1.1,w_=null,J6=0,nZ=null,eZ=null,_8=-1.1,P_=null,V7=-1.1,fQ=-1.1,V4=-0,G3=-1.1,j5=-1.1,_F=0,N_=null,cB=null,lB=null,$6=-1.1,J8=null,Q6=-1.1,SQ=-1.1,dB=-0,iB=-0,jQ=0,Z3=null,rB=0,C_=-1.1,vQ=!1,VQ=!1,f_=null,JF=0,$8=0,y7=null,aB=H1.S;H1.S=function(_,J){if(cL=z2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>G3&&0>j5){G3=t0();var $=Q_(),q=$_();if($!==Q6||q!==J8)Q6=-1.1;$6=$,J8=q}lO(_,J)}aB!==null&&aB(_,J)};var Q8=e(null),r5={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},S_=[],j_=[],v_=[],V_=[],y_=[],k_=[],q8=new Set;r5.recordUnsafeLifecycleWarnings=function(_,J){q8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&S_.push(_),_.mode&j2&&typeof J.UNSAFE_componentWillMount==="function"&&j_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&v_.push(_),_.mode&j2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&V_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&y_.push(_),_.mode&j2&&typeof J.UNSAFE_componentWillUpdate==="function"&&k_.push(_))},r5.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<S_.length&&(S_.forEach(function(L){_.add(m(L)||"Component"),q8.add(L.type)}),S_=[]);var J=new Set;0<j_.length&&(j_.forEach(function(L){J.add(m(L)||"Component"),q8.add(L.type)}),j_=[]);var $=new Set;0<v_.length&&(v_.forEach(function(L){$.add(m(L)||"Component"),q8.add(L.type)}),v_=[]);var q=new Set;0<V_.length&&(V_.forEach(function(L){q.add(m(L)||"Component"),q8.add(L.type)}),V_=[]);var G=new Set;0<y_.length&&(y_.forEach(function(L){G.add(m(L)||"Component"),q8.add(L.type)}),y_=[]);var K=new Set;if(0<k_.length&&(k_.forEach(function(L){K.add(m(L)||"Component"),q8.add(L.type)}),k_=[]),0<J.size){var z=A(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.
185
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
@@ -210,41 +210,41 @@ Please update the following components: %s`,z)),0<G.size&&(z=A(G),console.warn(`
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
211
  * 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.
212
212
 
213
- Please update the following components: %s`,z))};var CQ=new Map,lW=new Set;r5.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&C2&&($=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."):!lW.has(_.type)&&(q=CQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],CQ.set($,q)),q.push(_))},r5.flushLegacyContextWarning=function(){CQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(m(G)||"Component"),lW.add(G.type)});var q=A($);W1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,z))};var yQ=new Map,sB=new Set;r5.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&j2&&($=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."):!sB.has(_.type)&&(q=yQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],yQ.set($,q)),q.push(_))},r5.flushLegacyContextWarning=function(){yQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(m(G)||"Component"),sB.add(G.type)});var q=A($);M1(J,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
214
 
215
215
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
216
 
217
217
  Please update the following components: %s
218
218
 
219
- Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},r5.discardPendingWarnings=function(){P_=[],N_=[],f_=[],C_=[],S_=[],j_=[],CQ=new Map};var dW={react_stack_bottom_frame:function(_,J,$){var q=w4;w4=!0;try{return _(J,$)}finally{w4=q}}},nZ=dW.react_stack_bottom_frame.bind(dW),rW={react_stack_bottom_frame:function(_){var J=w4;w4=!0;try{return _.render()}finally{w4=J}}},iW=rW.react_stack_bottom_frame.bind(rW),aW={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){B0(_,_.return,$)}}},eZ=aW.react_stack_bottom_frame.bind(aW),sW={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(K){B0(_,_.return,K)}}},tW=sW.react_stack_bottom_frame.bind(sW),oW={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},OP=oW.react_stack_bottom_frame.bind(oW),nW={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){B0(_,J,q)}}},eW=nW.react_stack_bottom_frame.bind(nW),_L={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},IP=_L.react_stack_bottom_frame.bind(_L),JL={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){B0(_,J,q)}}},wP=JL.react_stack_bottom_frame.bind(JL),$L={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},PP=$L.react_stack_bottom_frame.bind($L),V7=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`."),_K=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."),SQ=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."),jQ={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.')}},Q8=null,y_=!1,k7=null,V_=0,t1=null,JK,QL=JK=!1,qL={},UL={},GL={};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=m(_),G=q||"null";if(!qL[G]){qL[G]=!0,$=$._owner,_=_._debugOwner;var K="";_&&typeof _.tag==="number"&&(G=m(_))&&(K=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},r5.discardPendingWarnings=function(){S_=[],j_=[],v_=[],V_=[],y_=[],k_=[],yQ=new Map};var tB={react_stack_bottom_frame:function(_,J,$){var q=P4;P4=!0;try{return _(J,$)}finally{P4=q}}},$F=tB.react_stack_bottom_frame.bind(tB),oB={react_stack_bottom_frame:function(_){var J=P4;P4=!0;try{return _.render()}finally{P4=J}}},nB=oB.react_stack_bottom_frame.bind(oB),eB={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){B0(_,_.return,$)}}},QF=eB.react_stack_bottom_frame.bind(eB),_L={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(K){B0(_,_.return,K)}}},JL=_L.react_stack_bottom_frame.bind(_L),$L={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},NP=$L.react_stack_bottom_frame.bind($L),QL={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){B0(_,J,q)}}},qL=QL.react_stack_bottom_frame.bind(QL),UL={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},CP=UL.react_stack_bottom_frame.bind(UL),GL={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){B0(_,J,q)}}},fP=GL.react_stack_bottom_frame.bind(GL),ZL={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},SP=ZL.react_stack_bottom_frame.bind(ZL),k7=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`."),qF=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."),kQ=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."),DQ={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.')}},U8=null,D_=!1,D7=null,u_=0,o1=null,UF,FL=UF=!1,KL={},XL={},HL={};M=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(!KL[G]){KL[G]=!0,$=$._owner,_=_._debugOwner;var K="";_&&typeof _.tag==="number"&&(G=m(_))&&(K=`
220
220
 
221
221
  Check the render method of \``+G+"`."),K||q&&(K=`
222
222
 
223
- Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=m($):typeof $.name==="string"&&(q=$.name),q&&(z=" 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.',K,z)})}}};var q8=nH(!0),ZL=nH(!1),KL=0,FL=1,XL=2,$K=3,Q6=!1,HL=!1,QK=null,qK=!1,v7=$1(null),yQ=$1(0),W5=$1(null),j5=null,D7=1,k_=2,c0=$1(0),VQ=0,y5=1,c2=2,L5=4,l2=8,b7,YL=new Set,zL=new Set,UK=new Set,BL=new Set,Z3=0,d1=null,O0=null,a0=null,kQ=!1,u7=!1,U8=!1,vQ=0,v_=0,K3=null,NP=0,fP=25,Z1=null,V5=null,F3=-1,D_=!1,b_={readContext:j0,use:x3,useCallback:m0,useContext:m0,useEffect:m0,useImperativeHandle:m0,useLayoutEffect:m0,useInsertionEffect:m0,useMemo:m0,useReducer:m0,useRef:m0,useState:m0,useDebugValue:m0,useDeferredValue:m0,useTransition:m0,useSyncExternalStore:m0,useId:m0,useHostTransitionStatus:m0,useFormState:m0,useActionState:m0,useOptimistic:m0,useMemoCache:m0,useCacheRefresh:m0};b_.useEffectEvent=m0;var GK=null,WL=null,ZK=null,LL=null,V4=null,i5=null,DQ=null;GK={readContext:function(_){return j0(_)},use:x3,useCallback:function(_,J){return Z1="useCallback",_0(),n8(J),qG(_,J)},useContext:function(_){return Z1="useContext",_0(),j0(_)},useEffect:function(_,J){return Z1="useEffect",_0(),n8(J),C$(_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",_0(),n8($),QG(_,J,$)},useInsertionEffect:function(_,J){Z1="useInsertionEffect",_0(),n8(J),c6(4,c2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",_0(),n8(J),$G(_,J)},useMemo:function(_,J){Z1="useMemo",_0(),n8(J);var $=K1.H;K1.H=V4;try{return UG(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",_0();var q=K1.H;K1.H=V4;try{return iU(_,J,$)}finally{K1.H=q}},useRef:function(_){return Z1="useRef",_0(),_G(_)},useState:function(_){Z1="useState",_0();var J=K1.H;K1.H=V4;try{return oU(_)}finally{K1.H=J}},useDebugValue:function(){Z1="useDebugValue",_0()},useDeferredValue:function(_,J){return Z1="useDeferredValue",_0(),GG(_,J)},useTransition:function(){return Z1="useTransition",_0(),FG()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",_0(),sU(_,J,$)},useId:function(){return Z1="useId",_0(),XG()},useFormState:function(_,J){return Z1="useFormState",_0(),I$(),_7(_,J)},useActionState:function(_,J){return Z1="useActionState",_0(),_7(_,J)},useOptimistic:function(_){return Z1="useOptimistic",_0(),nU(_)},useHostTransitionStatus:l6,useMemoCache:p6,useCacheRefresh:function(){return Z1="useCacheRefresh",_0(),HG()},useEffectEvent:function(_){return Z1="useEffectEvent",_0(),JG(_)}},WL={readContext:function(_){return j0(_)},use:x3,useCallback:function(_,J){return Z1="useCallback",T1(),qG(_,J)},useContext:function(_){return Z1="useContext",T1(),j0(_)},useEffect:function(_,J){return Z1="useEffect",T1(),C$(_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",T1(),QG(_,J,$)},useInsertionEffect:function(_,J){Z1="useInsertionEffect",T1(),c6(4,c2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",T1(),$G(_,J)},useMemo:function(_,J){Z1="useMemo",T1();var $=K1.H;K1.H=V4;try{return UG(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",T1();var q=K1.H;K1.H=V4;try{return iU(_,J,$)}finally{K1.H=q}},useRef:function(_){return Z1="useRef",T1(),_G(_)},useState:function(_){Z1="useState",T1();var J=K1.H;K1.H=V4;try{return oU(_)}finally{K1.H=J}},useDebugValue:function(){Z1="useDebugValue",T1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",T1(),GG(_,J)},useTransition:function(){return Z1="useTransition",T1(),FG()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",T1(),sU(_,J,$)},useId:function(){return Z1="useId",T1(),XG()},useActionState:function(_,J){return Z1="useActionState",T1(),_7(_,J)},useFormState:function(_,J){return Z1="useFormState",T1(),I$(),_7(_,J)},useOptimistic:function(_){return Z1="useOptimistic",T1(),nU(_)},useHostTransitionStatus:l6,useMemoCache:p6,useCacheRefresh:function(){return Z1="useCacheRefresh",T1(),HG()},useEffectEvent:function(_){return Z1="useEffectEvent",T1(),JG(_)}},ZK={readContext:function(_){return j0(_)},use:x3,useCallback:function(_,J){return Z1="useCallback",T1(),y$(_,J)},useContext:function(_){return Z1="useContext",T1(),j0(_)},useEffect:function(_,J){Z1="useEffect",T1(),o2(2048,l2,_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",T1(),j$(_,J,$)},useInsertionEffect:function(_,J){return Z1="useInsertionEffect",T1(),o2(4,c2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",T1(),o2(4,L5,_,J)},useMemo:function(_,J){Z1="useMemo",T1();var $=K1.H;K1.H=i5;try{return V$(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",T1();var q=K1.H;K1.H=i5;try{return e8(_,J,$)}finally{K1.H=q}},useRef:function(){return Z1="useRef",T1(),L0().memoizedState},useState:function(){Z1="useState",T1();var _=K1.H;K1.H=i5;try{return e8(g5)}finally{K1.H=_}},useDebugValue:function(){Z1="useDebugValue",T1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",T1(),RY(_,J)},useTransition:function(){return Z1="useTransition",T1(),fY()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",T1(),P$(_,J,$)},useId:function(){return Z1="useId",T1(),L0().memoizedState},useFormState:function(_){return Z1="useFormState",T1(),I$(),N$(_)},useActionState:function(_){return Z1="useActionState",T1(),N$(_)},useOptimistic:function(_,J){return Z1="useOptimistic",T1(),XY(_,J)},useHostTransitionStatus:l6,useMemoCache:p6,useCacheRefresh:function(){return Z1="useCacheRefresh",T1(),L0().memoizedState},useEffectEvent:function(_){return Z1="useEffectEvent",T1(),S$(_)}},LL={readContext:function(_){return j0(_)},use:x3,useCallback:function(_,J){return Z1="useCallback",T1(),y$(_,J)},useContext:function(_){return Z1="useContext",T1(),j0(_)},useEffect:function(_,J){Z1="useEffect",T1(),o2(2048,l2,_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",T1(),j$(_,J,$)},useInsertionEffect:function(_,J){return Z1="useInsertionEffect",T1(),o2(4,c2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",T1(),o2(4,L5,_,J)},useMemo:function(_,J){Z1="useMemo",T1();var $=K1.H;K1.H=DQ;try{return V$(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",T1();var q=K1.H;K1.H=DQ;try{return m9(_,J,$)}finally{K1.H=q}},useRef:function(){return Z1="useRef",T1(),L0().memoizedState},useState:function(){Z1="useState",T1();var _=K1.H;K1.H=DQ;try{return m9(g5)}finally{K1.H=_}},useDebugValue:function(){Z1="useDebugValue",T1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",T1(),OY(_,J)},useTransition:function(){return Z1="useTransition",T1(),CY()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",T1(),P$(_,J,$)},useId:function(){return Z1="useId",T1(),L0().memoizedState},useFormState:function(_){return Z1="useFormState",T1(),I$(),f$(_)},useActionState:function(_){return Z1="useActionState",T1(),f$(_)},useOptimistic:function(_,J){return Z1="useOptimistic",T1(),YY(_,J)},useHostTransitionStatus:l6,useMemoCache:p6,useCacheRefresh:function(){return Z1="useCacheRefresh",T1(),L0().memoizedState},useEffectEvent:function(_){return Z1="useEffectEvent",T1(),S$(_)}},V4={readContext:function(_){return M(),j0(_)},use:function(_){return W(),x3(_)},useCallback:function(_,J){return Z1="useCallback",W(),_0(),qG(_,J)},useContext:function(_){return Z1="useContext",W(),_0(),j0(_)},useEffect:function(_,J){return Z1="useEffect",W(),_0(),C$(_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",W(),_0(),QG(_,J,$)},useInsertionEffect:function(_,J){Z1="useInsertionEffect",W(),_0(),c6(4,c2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",W(),_0(),$G(_,J)},useMemo:function(_,J){Z1="useMemo",W(),_0();var $=K1.H;K1.H=V4;try{return UG(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",W(),_0();var q=K1.H;K1.H=V4;try{return iU(_,J,$)}finally{K1.H=q}},useRef:function(_){return Z1="useRef",W(),_0(),_G(_)},useState:function(_){Z1="useState",W(),_0();var J=K1.H;K1.H=V4;try{return oU(_)}finally{K1.H=J}},useDebugValue:function(){Z1="useDebugValue",W(),_0()},useDeferredValue:function(_,J){return Z1="useDeferredValue",W(),_0(),GG(_,J)},useTransition:function(){return Z1="useTransition",W(),_0(),FG()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",W(),_0(),sU(_,J,$)},useId:function(){return Z1="useId",W(),_0(),XG()},useFormState:function(_,J){return Z1="useFormState",W(),_0(),_7(_,J)},useActionState:function(_,J){return Z1="useActionState",W(),_0(),_7(_,J)},useOptimistic:function(_){return Z1="useOptimistic",W(),_0(),nU(_)},useMemoCache:function(_){return W(),p6(_)},useHostTransitionStatus:l6,useCacheRefresh:function(){return Z1="useCacheRefresh",_0(),HG()},useEffectEvent:function(_){return Z1="useEffectEvent",W(),_0(),JG(_)}},i5={readContext:function(_){return M(),j0(_)},use:function(_){return W(),x3(_)},useCallback:function(_,J){return Z1="useCallback",W(),T1(),y$(_,J)},useContext:function(_){return Z1="useContext",W(),T1(),j0(_)},useEffect:function(_,J){Z1="useEffect",W(),T1(),o2(2048,l2,_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",W(),T1(),j$(_,J,$)},useInsertionEffect:function(_,J){return Z1="useInsertionEffect",W(),T1(),o2(4,c2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",W(),T1(),o2(4,L5,_,J)},useMemo:function(_,J){Z1="useMemo",W(),T1();var $=K1.H;K1.H=i5;try{return V$(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",W(),T1();var q=K1.H;K1.H=i5;try{return e8(_,J,$)}finally{K1.H=q}},useRef:function(){return Z1="useRef",W(),T1(),L0().memoizedState},useState:function(){Z1="useState",W(),T1();var _=K1.H;K1.H=i5;try{return e8(g5)}finally{K1.H=_}},useDebugValue:function(){Z1="useDebugValue",W(),T1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",W(),T1(),RY(_,J)},useTransition:function(){return Z1="useTransition",W(),T1(),fY()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",W(),T1(),P$(_,J,$)},useId:function(){return Z1="useId",W(),T1(),L0().memoizedState},useFormState:function(_){return Z1="useFormState",W(),T1(),N$(_)},useActionState:function(_){return Z1="useActionState",W(),T1(),N$(_)},useOptimistic:function(_,J){return Z1="useOptimistic",W(),T1(),XY(_,J)},useMemoCache:function(_){return W(),p6(_)},useHostTransitionStatus:l6,useCacheRefresh:function(){return Z1="useCacheRefresh",T1(),L0().memoizedState},useEffectEvent:function(_){return Z1="useEffectEvent",W(),T1(),S$(_)}},DQ={readContext:function(_){return M(),j0(_)},use:function(_){return W(),x3(_)},useCallback:function(_,J){return Z1="useCallback",W(),T1(),y$(_,J)},useContext:function(_){return Z1="useContext",W(),T1(),j0(_)},useEffect:function(_,J){Z1="useEffect",W(),T1(),o2(2048,l2,_,J)},useImperativeHandle:function(_,J,$){return Z1="useImperativeHandle",W(),T1(),j$(_,J,$)},useInsertionEffect:function(_,J){return Z1="useInsertionEffect",W(),T1(),o2(4,c2,_,J)},useLayoutEffect:function(_,J){return Z1="useLayoutEffect",W(),T1(),o2(4,L5,_,J)},useMemo:function(_,J){Z1="useMemo",W(),T1();var $=K1.H;K1.H=i5;try{return V$(_,J)}finally{K1.H=$}},useReducer:function(_,J,$){Z1="useReducer",W(),T1();var q=K1.H;K1.H=i5;try{return m9(_,J,$)}finally{K1.H=q}},useRef:function(){return Z1="useRef",W(),T1(),L0().memoizedState},useState:function(){Z1="useState",W(),T1();var _=K1.H;K1.H=i5;try{return m9(g5)}finally{K1.H=_}},useDebugValue:function(){Z1="useDebugValue",W(),T1()},useDeferredValue:function(_,J){return Z1="useDeferredValue",W(),T1(),OY(_,J)},useTransition:function(){return Z1="useTransition",W(),T1(),CY()},useSyncExternalStore:function(_,J,$){return Z1="useSyncExternalStore",W(),T1(),P$(_,J,$)},useId:function(){return Z1="useId",W(),T1(),L0().memoizedState},useFormState:function(_){return Z1="useFormState",W(),T1(),f$(_)},useActionState:function(_){return Z1="useActionState",W(),T1(),f$(_)},useOptimistic:function(_,J){return Z1="useOptimistic",W(),T1(),YY(_,J)},useMemoCache:function(_){return W(),p6(_)},useHostTransitionStatus:l6,useCacheRefresh:function(){return Z1="useCacheRefresh",T1(),L0().memoizedState},useEffectEvent:function(_){return Z1="useEffectEvent",W(),T1(),S$(_)}};var AL={},ML=new Set,TL=new Set,RL=new Set,OL=new Set,IL=new Set,wL=new Set,PL=new Set,NL=new Set,fL=new Set,CL=new Set;Object.freeze(AL);var KK={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=F5(_),G=b3(q);G.payload=J,$!==void 0&&$!==null&&(zG($),G.callback=$),J=u3(_,G,q),J!==null&&(K4(q,"this.setState()",_),u0(J,_,q),u9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=F5(_),G=b3(q);G.tag=FL,G.payload=J,$!==void 0&&$!==null&&(zG($),G.callback=$),J=u3(_,G,q),J!==null&&(K4(q,"this.replaceState()",_),u0(J,_,q),u9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=F5(_),q=b3($);q.tag=XL,J!==void 0&&J!==null&&(zG(J),q.callback=J),J=u3(_,q,$),J!==null&&(K4($,"this.forceUpdate()",_),u0(J,_,$),u9(J,_,$))}},E7=null,FK=null,XK=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."),s0=!1,SL={},jL={},yL={},VL={},h7=!1,kL={},bQ={},HK={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},vL=!1,DL=null;DL=new Set;var X3=!1,t0=!1,YK=!1,bL=typeof WeakSet==="function"?WeakSet:Set,H2=null,x7=null,m7=null,o0=null,_5=!1,a5=null,J2=!1,u_=8192,CP={getCacheForType:function(_){var J=j0(r0),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return j0(r0).controller.signal},getOwner:function(){return Y5}};if(typeof Symbol==="function"&&Symbol.for){var E_=Symbol.for;E_("selector.component"),E_("selector.has_pseudo_class"),E_("selector.role"),E_("selector.test_id"),E_("selector.text")}var SP=[],jP=typeof WeakMap==="function"?WeakMap:Map,Y2=0,$2=2,A5=4,H3=0,h_=1,G8=2,uQ=3,q6=4,EQ=6,uL=5,X0=Y2,I0=null,n1=null,o1=0,J5=0,hQ=1,Z8=2,x_=3,EL=4,zK=5,m_=6,xQ=7,BK=8,K8=9,A0=J5,M5=null,U6=!1,g7=!1,WK=!1,k4=0,D0=H3,G6=0,Z6=0,LK=0,$5=0,F8=0,g_=null,d2=null,mQ=!1,gQ=0,hL=0,xL=300,pQ=1/0,mL=500,p_=null,g0=null,K6=null,cQ=0,AK=1,MK=2,gL=3,F6=0,pL=1,cL=2,lL=3,dL=4,lQ=5,n0=0,X6=null,p7=null,s5=0,TK=0,RK=-0,OK=null,rL=null,iL=null,t5=cQ,aL=null,yP=50,c_=0,IK=null,wK=!1,dQ=!1,VP=50,X8=0,l_=null,c7=!1,rQ=null,sL=!1,tL=new Set,kP={},iQ=null,l7=null,PK=!1,NK=!1,aQ=!1,fK=!1,H6=0,CK={};(function(){for(var _=0;_<hZ.length;_++){var J=hZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),m5($,"on"+J)}m5(fW,"onAnimationEnd"),m5(CW,"onAnimationIteration"),m5(SW,"onAnimationStart"),m5("dblclick","onDoubleClick"),m5("focusin","onFocus"),m5("focusout","onBlur"),m5(KP,"onTransitionRun"),m5(FP,"onTransitionStart"),m5(XP,"onTransitionCancel"),m5(jW,"onTransitionEnd")})(),b2("onMouseEnter",["mouseout","mouseover"]),b2("onMouseLeave",["mouseout","mouseover"]),b2("onPointerEnter",["pointerout","pointerover"]),b2("onPointerLeave",["pointerout","pointerover"]),Z2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Z2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Z2("onBeforeInput",["compositionend","keypress","textInput","paste"]),Z2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Z2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Z2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var d_="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(" "),SK=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(d_)),sQ="_reactListening"+Math.random().toString(36).slice(2),oL=!1,nL=!1,tQ=!1,eL=!1,oQ=!1,nQ=!1,_A=!1,eQ={},vP=/\r\n?/g,DP=/\u0000|\uFFFD/g,H8="http://www.w3.org/1999/xlink",jK="http://www.w3.org/XML/1998/namespace",bP="javascript:throw new Error('React form unexpectedly submitted.')",uP="suppressHydrationWarning",Y8="&",_q="/&",r_="$",i_="/$",Y6="$?",z8="$~",d7="$!",EP="html",hP="body",xP="head",yK="F!",JA="F",$A="loading",mP="style",Y3=0,r7=1,Jq=2,VK=null,kK=null,QA={dialog:!0,webview:!0},vK=null,a_=void 0,qA=typeof setTimeout==="function"?setTimeout:void 0,gP=typeof clearTimeout==="function"?clearTimeout:void 0,B8=-1,UA=typeof Promise==="function"?Promise:void 0,pP=typeof queueMicrotask==="function"?queueMicrotask:typeof UA<"u"?function(_){return UA.resolve(null).then(_).catch(fI)}:qA,DK=null,W8=0,s_=1,GA=2,ZA=3,k5=4,v5=new Map,KA=new Set,z3=W0.d;W0.d={f:function(){var _=z3.f(),J=U7();return _||J},r:function(_){var J=c1(_);J!==null&&J.tag===5&&J.type==="form"?NY(J):z3.r(_)},D:function(_){z3.D(_),MB("dns-prefetch",_,null)},C:function(_,J){z3.C(_,J),MB("preconnect",_,J)},L:function(_,J,$){z3.L(_,J,$);var q=i7;if(q&&_&&J){var G='link[rel="preload"][as="'+s2(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+s2($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+s2($.imageSizes)+'"]')):G+='[href="'+s2(_)+'"]':G+='[href="'+s2(_)+'"]';var K=G;switch(J){case"style":K=K7(_);break;case"script":K=F7(_)}v5.has(K)||(_=J0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),v5.set(K,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(J_(K))||J==="script"&&q.querySelector($_(K))||(J=q.createElement("link"),A2(J,"link",_),D1(J),q.head.appendChild(J)))}},m:function(_,J){z3.m(_,J);var $=i7;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+s2(q)+'"][href="'+s2(_)+'"]',K=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":K=F7(_)}if(!v5.has(K)&&(_=J0({rel:"modulepreload",href:_},J),v5.set(K,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector($_(K)))return}q=$.createElement("link"),A2(q,"link",_),D1(q),$.head.appendChild(q)}}},X:function(_,J){z3.X(_,J);var $=i7;if($&&_){var q=K0($).hoistableScripts,G=F7(_),K=q.get(G);K||(K=$.querySelector($_(G)),K||(_=J0({src:_,async:!0},J),(J=v5.get(G))&&QZ(_,J),K=$.createElement("script"),D1(K),A2(K,"link",_),$.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},q.set(G,K))}},S:function(_,J,$){z3.S(_,J,$);var q=i7;if(q&&_){var G=K0(q).hoistableStyles,K=K7(_);J=J||"default";var z=G.get(K);if(!z){var L={loading:W8,preload:null};if(z=q.querySelector(J_(K)))L.loading=s_|k5;else{_=J0({rel:"stylesheet",href:_,"data-precedence":J},$),($=v5.get(K))&&$Z(_,$);var I=z=q.createElement("link");D1(I),A2(I,"link",_),I._p=new Promise(function(C,e){I.onload=C,I.onerror=e}),I.addEventListener("load",function(){L.loading|=s_}),I.addEventListener("error",function(){L.loading|=GA}),L.loading|=k5,t$(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:L},G.set(K,z)}}},M:function(_,J){z3.M(_,J);var $=i7;if($&&_){var q=K0($).hoistableScripts,G=F7(_),K=q.get(G);K||(K=$.querySelector($_(G)),K||(_=J0({src:_,async:!0,type:"module"},J),(J=v5.get(G))&&QZ(_,J),K=$.createElement("script"),D1(K),A2(K,"link",_),$.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},q.set(G,K))}}};var i7=typeof document>"u"?null:document,$q=null,cP=60000,lP=800,dP=500,bK=0,uK=null,Qq=null,L8=Gw,t_={$$typeof:I4,Provider:null,Consumer:null,_currentValue:L8,_currentValue2:L8,_threadCount:0},FA="%c%s%c",XA="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",HA="",qq=" ",rP=Function.prototype.bind,YA=!1,zA=null,BA=null,WA=null,LA=null,AA=null,MA=null,TA=null,RA=null,OA=null,IA=null;zA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=N2(_,2),$!==null&&u0($,_,2))},BA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=N2(_,2),$!==null&&u0($,_,2))},WA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=N2(_,2),$!==null&&u0($,_,2))},LA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=N2(_,2),J!==null&&u0(J,_,2)},AA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=N2(_,2),J!==null&&u0(J,_,2)},MA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=N2(_,2),J!==null&&u0(J,_,2)},TA=function(_){var J=N2(_,2);J!==null&&u0(J,_,2)},RA=function(_){var J=I2(),$=N2(_,J);$!==null&&u0($,_,J)},OA=function(_){B=_},IA=function(_){Y=_};var Uq=!0,Gq=null,EK=!1,z6=null,B6=null,W6=null,o_=new Map,n_=new Map,L6=[],iP="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(" "),Zq=null;if(JQ.prototype.render=FZ.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=F5(q);qZ(q,G,$,J,null,null)},JQ.prototype.unmount=FZ.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;(X0&($2|A5))!==Y2&&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."),qZ(_.current,2,null,_,null,null),U7(),J[r3]=null}},JQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=Q1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<L6.length&&J!==0&&J<L6[$].priority;$++);L6.splice($,0,_),$===0&&kB(_)}},function(){var _=a7.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=m($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),M1(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.',K,z)})}}};var G8=QY(!0),YL=QY(!1),zL=0,WL=1,BL=2,GF=3,q6=!1,LL=!1,ZF=null,FF=!1,u7=e(null),uQ=e(0),L5=e(null),v5=null,b7=1,b_=2,d0=e(0),bQ=0,V5=1,l2=2,A5=4,d2=8,E7,AL=new Set,ML=new Set,KF=new Set,TL=new Set,F3=0,i1=null,w0=null,o0=null,EQ=!1,h7=!1,Z8=!1,hQ=0,E_=0,K3=null,jP=0,vP=25,F1=null,y5=null,X3=-1,h_=!1,x_={readContext:V0,use:m3,useCallback:g0,useContext:g0,useEffect:g0,useImperativeHandle:g0,useLayoutEffect:g0,useInsertionEffect:g0,useMemo:g0,useReducer:g0,useRef:g0,useState:g0,useDebugValue:g0,useDeferredValue:g0,useTransition:g0,useSyncExternalStore:g0,useId:g0,useHostTransitionStatus:g0,useFormState:g0,useActionState:g0,useOptimistic:g0,useMemoCache:g0,useCacheRefresh:g0};x_.useEffectEvent=g0;var XF=null,RL=null,HF=null,OL=null,y4=null,a5=null,xQ=null;XF={readContext:function(_){return V0(_)},use:m3,useCallback:function(_,J){return F1="useCallback",_0(),_7(J),FG(_,J)},useContext:function(_){return F1="useContext",_0(),V0(_)},useEffect:function(_,J){return F1="useEffect",_0(),_7(J),y$(_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",_0(),_7($),ZG(_,J,$)},useInsertionEffect:function(_,J){F1="useInsertionEffect",_0(),_7(J),d6(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",_0(),_7(J),GG(_,J)},useMemo:function(_,J){F1="useMemo",_0(),_7(J);var $=H1.H;H1.H=y4;try{return KG(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",_0();var q=H1.H;H1.H=y4;try{return oU(_,J,$)}finally{H1.H=q}},useRef:function(_){return F1="useRef",_0(),qG(_)},useState:function(_){F1="useState",_0();var J=H1.H;H1.H=y4;try{return JG(_)}finally{H1.H=J}},useDebugValue:function(){F1="useDebugValue",_0()},useDeferredValue:function(_,J){return F1="useDeferredValue",_0(),XG(_,J)},useTransition:function(){return F1="useTransition",_0(),zG()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",_0(),eU(_,J,$)},useId:function(){return F1="useId",_0(),WG()},useFormState:function(_,J){return F1="useFormState",_0(),f$(),$7(_,J)},useActionState:function(_,J){return F1="useActionState",_0(),$7(_,J)},useOptimistic:function(_){return F1="useOptimistic",_0(),$G(_)},useHostTransitionStatus:i6,useMemoCache:l6,useCacheRefresh:function(){return F1="useCacheRefresh",_0(),BG()},useEffectEvent:function(_){return F1="useEffectEvent",_0(),UG(_)}},RL={readContext:function(_){return V0(_)},use:m3,useCallback:function(_,J){return F1="useCallback",O1(),FG(_,J)},useContext:function(_){return F1="useContext",O1(),V0(_)},useEffect:function(_,J){return F1="useEffect",O1(),y$(_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",O1(),ZG(_,J,$)},useInsertionEffect:function(_,J){F1="useInsertionEffect",O1(),d6(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",O1(),GG(_,J)},useMemo:function(_,J){F1="useMemo",O1();var $=H1.H;H1.H=y4;try{return KG(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",O1();var q=H1.H;H1.H=y4;try{return oU(_,J,$)}finally{H1.H=q}},useRef:function(_){return F1="useRef",O1(),qG(_)},useState:function(_){F1="useState",O1();var J=H1.H;H1.H=y4;try{return JG(_)}finally{H1.H=J}},useDebugValue:function(){F1="useDebugValue",O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",O1(),XG(_,J)},useTransition:function(){return F1="useTransition",O1(),zG()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",O1(),eU(_,J,$)},useId:function(){return F1="useId",O1(),WG()},useActionState:function(_,J){return F1="useActionState",O1(),$7(_,J)},useFormState:function(_,J){return F1="useFormState",O1(),f$(),$7(_,J)},useOptimistic:function(_){return F1="useOptimistic",O1(),$G(_)},useHostTransitionStatus:i6,useMemoCache:l6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),BG()},useEffectEvent:function(_){return F1="useEffectEvent",O1(),UG(_)}},HF={readContext:function(_){return V0(_)},use:m3,useCallback:function(_,J){return F1="useCallback",O1(),u$(_,J)},useContext:function(_){return F1="useContext",O1(),V0(_)},useEffect:function(_,J){F1="useEffect",O1(),n2(2048,d2,_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",O1(),D$(_,J,$)},useInsertionEffect:function(_,J){return F1="useInsertionEffect",O1(),n2(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",O1(),n2(4,A5,_,J)},useMemo:function(_,J){F1="useMemo",O1();var $=H1.H;H1.H=a5;try{return b$(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",O1();var q=H1.H;H1.H=a5;try{return J7(_,J,$)}finally{H1.H=q}},useRef:function(){return F1="useRef",O1(),M0().memoizedState},useState:function(){F1="useState",O1();var _=H1.H;H1.H=a5;try{return J7(p5)}finally{H1.H=_}},useDebugValue:function(){F1="useDebugValue",O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",O1(),NY(_,J)},useTransition:function(){return F1="useTransition",O1(),VY()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",O1(),j$(_,J,$)},useId:function(){return F1="useId",O1(),M0().memoizedState},useFormState:function(_){return F1="useFormState",O1(),f$(),v$(_)},useActionState:function(_){return F1="useActionState",O1(),v$(_)},useOptimistic:function(_,J){return F1="useOptimistic",O1(),BY(_,J)},useHostTransitionStatus:i6,useMemoCache:l6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),M0().memoizedState},useEffectEvent:function(_){return F1="useEffectEvent",O1(),k$(_)}},OL={readContext:function(_){return V0(_)},use:m3,useCallback:function(_,J){return F1="useCallback",O1(),u$(_,J)},useContext:function(_){return F1="useContext",O1(),V0(_)},useEffect:function(_,J){F1="useEffect",O1(),n2(2048,d2,_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",O1(),D$(_,J,$)},useInsertionEffect:function(_,J){return F1="useInsertionEffect",O1(),n2(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",O1(),n2(4,A5,_,J)},useMemo:function(_,J){F1="useMemo",O1();var $=H1.H;H1.H=xQ;try{return b$(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",O1();var q=H1.H;H1.H=xQ;try{return l9(_,J,$)}finally{H1.H=q}},useRef:function(){return F1="useRef",O1(),M0().memoizedState},useState:function(){F1="useState",O1();var _=H1.H;H1.H=xQ;try{return l9(p5)}finally{H1.H=_}},useDebugValue:function(){F1="useDebugValue",O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",O1(),CY(_,J)},useTransition:function(){return F1="useTransition",O1(),yY()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",O1(),j$(_,J,$)},useId:function(){return F1="useId",O1(),M0().memoizedState},useFormState:function(_){return F1="useFormState",O1(),f$(),V$(_)},useActionState:function(_){return F1="useActionState",O1(),V$(_)},useOptimistic:function(_,J){return F1="useOptimistic",O1(),AY(_,J)},useHostTransitionStatus:i6,useMemoCache:l6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),M0().memoizedState},useEffectEvent:function(_){return F1="useEffectEvent",O1(),k$(_)}},y4={readContext:function(_){return T(),V0(_)},use:function(_){return B(),m3(_)},useCallback:function(_,J){return F1="useCallback",B(),_0(),FG(_,J)},useContext:function(_){return F1="useContext",B(),_0(),V0(_)},useEffect:function(_,J){return F1="useEffect",B(),_0(),y$(_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",B(),_0(),ZG(_,J,$)},useInsertionEffect:function(_,J){F1="useInsertionEffect",B(),_0(),d6(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",B(),_0(),GG(_,J)},useMemo:function(_,J){F1="useMemo",B(),_0();var $=H1.H;H1.H=y4;try{return KG(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",B(),_0();var q=H1.H;H1.H=y4;try{return oU(_,J,$)}finally{H1.H=q}},useRef:function(_){return F1="useRef",B(),_0(),qG(_)},useState:function(_){F1="useState",B(),_0();var J=H1.H;H1.H=y4;try{return JG(_)}finally{H1.H=J}},useDebugValue:function(){F1="useDebugValue",B(),_0()},useDeferredValue:function(_,J){return F1="useDeferredValue",B(),_0(),XG(_,J)},useTransition:function(){return F1="useTransition",B(),_0(),zG()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",B(),_0(),eU(_,J,$)},useId:function(){return F1="useId",B(),_0(),WG()},useFormState:function(_,J){return F1="useFormState",B(),_0(),$7(_,J)},useActionState:function(_,J){return F1="useActionState",B(),_0(),$7(_,J)},useOptimistic:function(_){return F1="useOptimistic",B(),_0(),$G(_)},useMemoCache:function(_){return B(),l6(_)},useHostTransitionStatus:i6,useCacheRefresh:function(){return F1="useCacheRefresh",_0(),BG()},useEffectEvent:function(_){return F1="useEffectEvent",B(),_0(),UG(_)}},a5={readContext:function(_){return T(),V0(_)},use:function(_){return B(),m3(_)},useCallback:function(_,J){return F1="useCallback",B(),O1(),u$(_,J)},useContext:function(_){return F1="useContext",B(),O1(),V0(_)},useEffect:function(_,J){F1="useEffect",B(),O1(),n2(2048,d2,_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",B(),O1(),D$(_,J,$)},useInsertionEffect:function(_,J){return F1="useInsertionEffect",B(),O1(),n2(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",B(),O1(),n2(4,A5,_,J)},useMemo:function(_,J){F1="useMemo",B(),O1();var $=H1.H;H1.H=a5;try{return b$(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",B(),O1();var q=H1.H;H1.H=a5;try{return J7(_,J,$)}finally{H1.H=q}},useRef:function(){return F1="useRef",B(),O1(),M0().memoizedState},useState:function(){F1="useState",B(),O1();var _=H1.H;H1.H=a5;try{return J7(p5)}finally{H1.H=_}},useDebugValue:function(){F1="useDebugValue",B(),O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",B(),O1(),NY(_,J)},useTransition:function(){return F1="useTransition",B(),O1(),VY()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",B(),O1(),j$(_,J,$)},useId:function(){return F1="useId",B(),O1(),M0().memoizedState},useFormState:function(_){return F1="useFormState",B(),O1(),v$(_)},useActionState:function(_){return F1="useActionState",B(),O1(),v$(_)},useOptimistic:function(_,J){return F1="useOptimistic",B(),O1(),BY(_,J)},useMemoCache:function(_){return B(),l6(_)},useHostTransitionStatus:i6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),M0().memoizedState},useEffectEvent:function(_){return F1="useEffectEvent",B(),O1(),k$(_)}},xQ={readContext:function(_){return T(),V0(_)},use:function(_){return B(),m3(_)},useCallback:function(_,J){return F1="useCallback",B(),O1(),u$(_,J)},useContext:function(_){return F1="useContext",B(),O1(),V0(_)},useEffect:function(_,J){F1="useEffect",B(),O1(),n2(2048,d2,_,J)},useImperativeHandle:function(_,J,$){return F1="useImperativeHandle",B(),O1(),D$(_,J,$)},useInsertionEffect:function(_,J){return F1="useInsertionEffect",B(),O1(),n2(4,l2,_,J)},useLayoutEffect:function(_,J){return F1="useLayoutEffect",B(),O1(),n2(4,A5,_,J)},useMemo:function(_,J){F1="useMemo",B(),O1();var $=H1.H;H1.H=a5;try{return b$(_,J)}finally{H1.H=$}},useReducer:function(_,J,$){F1="useReducer",B(),O1();var q=H1.H;H1.H=a5;try{return l9(_,J,$)}finally{H1.H=q}},useRef:function(){return F1="useRef",B(),O1(),M0().memoizedState},useState:function(){F1="useState",B(),O1();var _=H1.H;H1.H=a5;try{return l9(p5)}finally{H1.H=_}},useDebugValue:function(){F1="useDebugValue",B(),O1()},useDeferredValue:function(_,J){return F1="useDeferredValue",B(),O1(),CY(_,J)},useTransition:function(){return F1="useTransition",B(),O1(),yY()},useSyncExternalStore:function(_,J,$){return F1="useSyncExternalStore",B(),O1(),j$(_,J,$)},useId:function(){return F1="useId",B(),O1(),M0().memoizedState},useFormState:function(_){return F1="useFormState",B(),O1(),V$(_)},useActionState:function(_){return F1="useActionState",B(),O1(),V$(_)},useOptimistic:function(_,J){return F1="useOptimistic",B(),O1(),AY(_,J)},useMemoCache:function(_){return B(),l6(_)},useHostTransitionStatus:i6,useCacheRefresh:function(){return F1="useCacheRefresh",O1(),M0().memoizedState},useEffectEvent:function(_){return F1="useEffectEvent",B(),O1(),k$(_)}};var IL={},wL=new Set,PL=new Set,NL=new Set,CL=new Set,fL=new Set,SL=new Set,jL=new Set,vL=new Set,VL=new Set,yL=new Set;Object.freeze(IL);var YF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=X5(_),G=b3(q);G.payload=J,$!==void 0&&$!==null&&(AG($),G.callback=$),J=E3(_,G,q),J!==null&&(K4(q,"this.setState()",_),h0(J,_,q),m9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=X5(_),G=b3(q);G.tag=WL,G.payload=J,$!==void 0&&$!==null&&(AG($),G.callback=$),J=E3(_,G,q),J!==null&&(K4(q,"this.replaceState()",_),h0(J,_,q),m9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=X5(_),q=b3($);q.tag=BL,J!==void 0&&J!==null&&(AG(J),q.callback=J),J=E3(_,q,$),J!==null&&(K4($,"this.forceUpdate()",_),h0(J,_,$),m9(J,_,$))}},x7=null,zF=null,WF=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."),n0=!1,kL={},DL={},uL={},bL={},m7=!1,EL={},mQ={},BF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},hL=!1,xL=null;xL=new Set;var H3=!1,e0=!1,LF=!1,mL=typeof WeakSet==="function"?WeakSet:Set,B2=null,g7=null,p7=null,_2=null,J5=!1,s5=null,G2=!1,m_=8192,VP={getCacheForType:function(_){var J=V0(s0),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return V0(s0).controller.signal},getOwner:function(){return z5}};if(typeof Symbol==="function"&&Symbol.for){var g_=Symbol.for;g_("selector.component"),g_("selector.has_pseudo_class"),g_("selector.role"),g_("selector.test_id"),g_("selector.text")}var yP=[],kP=typeof WeakMap==="function"?WeakMap:Map,L2=0,Z2=2,M5=4,Y3=0,p_=1,F8=2,gQ=3,U6=4,pQ=6,gL=5,H0=L2,P0=null,e1=null,n1=0,$5=0,cQ=1,K8=2,c_=3,pL=4,AF=5,l_=6,lQ=7,MF=8,X8=9,T0=$5,T5=null,G6=!1,c7=!1,TF=!1,k4=0,b0=Y3,Z6=0,F6=0,RF=0,Q5=0,H8=0,d_=null,i2=null,dQ=!1,iQ=0,cL=0,lL=300,rQ=1/0,dL=500,i_=null,p0=null,K6=null,aQ=0,OF=1,IF=2,iL=3,X6=0,rL=1,aL=2,sL=3,tL=4,sQ=5,J2=0,H6=null,l7=null,t5=0,wF=0,PF=-0,NF=null,oL=null,nL=null,o5=aQ,eL=null,DP=50,r_=0,CF=null,fF=!1,tQ=!1,uP=50,Y8=0,a_=null,d7=!1,oQ=null,_A=!1,JA=new Set,bP={},nQ=null,i7=null,SF=!1,jF=!1,eQ=!1,vF=!1,Y6=0,VF={};(function(){for(var _=0;_<pZ.length;_++){var J=pZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),g5($,"on"+J)}g5(VB,"onAnimationEnd"),g5(yB,"onAnimationIteration"),g5(kB,"onAnimationStart"),g5("dblclick","onDoubleClick"),g5("focusin","onFocus"),g5("focusout","onBlur"),g5(YP,"onTransitionRun"),g5(zP,"onTransitionStart"),g5(WP,"onTransitionCancel"),g5(DB,"onTransitionEnd")})(),b2("onMouseEnter",["mouseout","mouseover"]),b2("onMouseLeave",["mouseout","mouseover"]),b2("onPointerEnter",["pointerout","pointerover"]),b2("onPointerLeave",["pointerout","pointerover"]),H2("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),H2("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),H2("onBeforeInput",["compositionend","keypress","textInput","paste"]),H2("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),H2("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),H2("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var s_="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(" "),yF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(s_)),_q="_reactListening"+Math.random().toString(36).slice(2),$A=!1,QA=!1,Jq=!1,qA=!1,$q=!1,Qq=!1,UA=!1,qq={},EP=/\r\n?/g,hP=/\u0000|\uFFFD/g,z8="http://www.w3.org/1999/xlink",kF="http://www.w3.org/XML/1998/namespace",xP="javascript:throw new Error('React form unexpectedly submitted.')",mP="suppressHydrationWarning",W8="&",Uq="/&",t_="$",o_="/$",z6="$?",B8="$~",r7="$!",gP="html",pP="body",cP="head",DF="F!",GA="F",ZA="loading",lP="style",z3=0,a7=1,Gq=2,uF=null,bF=null,FA={dialog:!0,webview:!0},EF=null,n_=void 0,KA=typeof setTimeout==="function"?setTimeout:void 0,dP=typeof clearTimeout==="function"?clearTimeout:void 0,L8=-1,XA=typeof Promise==="function"?Promise:void 0,iP=typeof queueMicrotask==="function"?queueMicrotask:typeof XA<"u"?function(_){return XA.resolve(null).then(_).catch(vI)}:KA,hF=null,A8=0,e_=1,HA=2,YA=3,k5=4,D5=new Map,zA=new Set,W3=L0.d;L0.d={f:function(){var _=W3.f(),J=Z7();return _||J},r:function(_){var J=l1(_);J!==null&&J.tag===5&&J.type==="form"?vY(J):W3.r(_)},D:function(_){W3.D(_),wW("dns-prefetch",_,null)},C:function(_,J){W3.C(_,J),wW("preconnect",_,J)},L:function(_,J,$){W3.L(_,J,$);var q=s7;if(q&&_&&J){var G='link[rel="preload"][as="'+t2(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+t2($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+t2($.imageSizes)+'"]')):G+='[href="'+t2(_)+'"]':G+='[href="'+t2(_)+'"]';var K=G;switch(J){case"style":K=X7(_);break;case"script":K=H7(_)}D5.has(K)||(_=J0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),D5.set(K,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(U_(K))||J==="script"&&q.querySelector(G_(K))||(J=q.createElement("link"),R2(J,"link",_),E1(J),q.head.appendChild(J)))}},m:function(_,J){W3.m(_,J);var $=s7;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+t2(q)+'"][href="'+t2(_)+'"]',K=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":K=H7(_)}if(!D5.has(K)&&(_=J0({rel:"modulepreload",href:_},J),D5.set(K,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(G_(K)))return}q=$.createElement("link"),R2(q,"link",_),E1(q),$.head.appendChild(q)}}},X:function(_,J){W3.X(_,J);var $=s7;if($&&_){var q=K0($).hoistableScripts,G=H7(_),K=q.get(G);K||(K=$.querySelector(G_(G)),K||(_=J0({src:_,async:!0},J),(J=D5.get(G))&&ZZ(_,J),K=$.createElement("script"),E1(K),R2(K,"link",_),$.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},q.set(G,K))}},S:function(_,J,$){W3.S(_,J,$);var q=s7;if(q&&_){var G=K0(q).hoistableStyles,K=X7(_);J=J||"default";var z=G.get(K);if(!z){var L={loading:A8,preload:null};if(z=q.querySelector(U_(K)))L.loading=e_|k5;else{_=J0({rel:"stylesheet",href:_,"data-precedence":J},$),($=D5.get(K))&&GZ(_,$);var I=z=q.createElement("link");E1(I),R2(I,"link",_),I._p=new Promise(function(f,n){I.onload=f,I.onerror=n}),I.addEventListener("load",function(){L.loading|=e_}),I.addEventListener("error",function(){L.loading|=HA}),L.loading|=k5,JQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:L},G.set(K,z)}}},M:function(_,J){W3.M(_,J);var $=s7;if($&&_){var q=K0($).hoistableScripts,G=H7(_),K=q.get(G);K||(K=$.querySelector(G_(G)),K||(_=J0({src:_,async:!0,type:"module"},J),(J=D5.get(G))&&ZZ(_,J),K=$.createElement("script"),E1(K),R2(K,"link",_),$.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},q.set(G,K))}}};var s7=typeof document>"u"?null:document,Zq=null,rP=60000,aP=800,sP=500,xF=0,mF=null,Fq=null,M8=Xw,_J={$$typeof:w4,Provider:null,Consumer:null,_currentValue:M8,_currentValue2:M8,_threadCount:0},WA="%c%s%c",BA="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",LA="",Kq=" ",tP=Function.prototype.bind,AA=!1,MA=null,TA=null,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null;MA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=f2(_,2),$!==null&&h0($,_,2))},TA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=f2(_,2),$!==null&&h0($,_,2))},RA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=J0({},_.memoizedProps),$=f2(_,2),$!==null&&h0($,_,2))},OA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=f2(_,2),J!==null&&h0(J,_,2)},IA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=f2(_,2),J!==null&&h0(J,_,2)},wA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=f2(_,2),J!==null&&h0(J,_,2)},PA=function(_){var J=f2(_,2);J!==null&&h0(J,_,2)},NA=function(_){var J=P2(),$=f2(_,J);$!==null&&h0($,_,J)},CA=function(_){W=_},fA=function(_){Y=_};var Xq=!0,Hq=null,gF=!1,W6=null,B6=null,L6=null,JJ=new Map,$J=new Map,A6=[],oP="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(" "),Yq=null;if(GQ.prototype.render=zZ.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=X5(q);FZ(q,G,$,J,null,null)},GQ.prototype.unmount=zZ.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;(H0&(Z2|M5))!==L2&&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."),FZ(_.current,2,null,_,null,null),Z7(),J[r3]=null}},GQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=$1();_={blockedOn:null,target:_,priority:J};for(var $=0;$<A6.length&&J!==0&&J<A6[$].priority;$++);A6.splice($,0,_),$===0&&EW(_)}},function(){var _=t7.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
224
  - react: `+(_+`
225
225
  - react-dom: 19.2.7
226
- 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"),W0.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 _=v(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:K1,reconcilerVersion:"19.2.7"};return _.overrideHookState=zA,_.overrideHookStateDeletePath=BA,_.overrideHookStateRenamePath=WA,_.overrideProps=LA,_.overridePropsDeletePath=AA,_.overridePropsRenamePath=MA,_.scheduleUpdate=TA,_.scheduleRetry=RA,_.setErrorHandler=OA,_.setSuspenseHandler=IA,_.scheduleRefresh=P,_.scheduleRoot=w,_.setRefreshHandler=V,_.getCurrentFiber=nI,x0(_)}()&&C4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var wA=window.location.protocol;/^(https?|file):$/.test(wA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(wA==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}GN.createRoot=function(_,J){if(!S(_))throw Error("Target container is not a DOM element.");uB(_);var $=!1,q="",G=vY,K=DY,z=bY;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===O4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
226
+ 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"),L0.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 _=u(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:H1,reconcilerVersion:"19.2.7"};return _.overrideHookState=MA,_.overrideHookStateDeletePath=TA,_.overrideHookStateRenamePath=RA,_.overrideProps=OA,_.overridePropsDeletePath=IA,_.overridePropsRenamePath=wA,_.scheduleUpdate=PA,_.scheduleRetry=NA,_.setErrorHandler=CA,_.setSuspenseHandler=fA,_.scheduleRefresh=P,_.scheduleRoot=w,_.setRefreshHandler=V,_.getCurrentFiber=$w,Q0(_)}()&&S4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var SA=window.location.protocol;/^(https?|file):$/.test(SA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(SA==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}XN.createRoot=function(_,J){if(!S(_))throw Error("Target container is not a DOM element.");gW(_);var $=!1,q="",G=hY,K=xY,z=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===I4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
228
 
229
229
  let root = createRoot(domContainer);
230
- 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&&(K=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=NB(_,1,!1,null,null,$,q,null,G,K,z,bB),_[r3]=J.current,lG(_),new FZ(J)},GN.hydrateRoot=function(_,J,$){if(!S(_))throw Error("Target container is not a DOM element.");uB(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",K=vY,z=DY,L=bY,I=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(K=$.onUncaughtError),$.onCaughtError!==void 0&&(z=$.onCaughtError),$.onRecoverableError!==void 0&&(L=$.onRecoverableError),$.formState!==void 0&&(I=$.formState)),J=NB(_,1,!0,J,$!=null?$:null,q,G,I,K,z,L,bB),J.context=fB(null),$=J.current,q=F5($),q=p4(q),G=b3(q),G.callback=null,u3($,G,q),K4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,P2(J,$),T4(J),_[r3]=J.current,lG(_),new JQ(J)},GN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yA=v4((Jv,jA)=>{var ZN=b0(SA());jA.exports=ZN});var T8=v4((KN)=>{var M8=b0(o5());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case f:return"Profiler";case S:return"StrictMode";case v:return"Suspense";case h:return"SuspenseList";case E:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case y:var p=k.render;return k=k.displayName,k||(k=p.displayName||p.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case u:return p=k.displayName||null,p!==null?p:Q(k.type)||"Memo";case b:p=k._payload,k=k._init;try{return Q(k(p))}catch(q1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var p=!1}catch(H1){p=!0}if(p){p=console;var q1=p.error,s=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return q1.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),U(k)}}function X(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===b)return"<...>";try{var p=Q(k);return p?"<"+p+">":"<...>"}catch(q1){return"<...>"}}function H(){var k=$1.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function B(k){if(J1.call(k,"key")){var p=Object.getOwnPropertyDescriptor(k,"key").get;if(p&&p.isReactWarning)return!1}return k.key!==void 0}function W(k,p){function q1(){g||(g=!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)",p))}q1.isReactWarning=!0,Object.defineProperty(k,"key",{get:q1,configurable:!0})}function M(){var k=Q(this.type);return c[k]||(c[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function R(k,p,q1,s,H1,M1){var A1=q1.ref;return k={$$typeof:w,type:k,key:p,props:q1,_owner:s},(A1!==void 0?A1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:M1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,p,q1,s,H1,M1){var A1=p.children;if(A1!==void 0)if(s)if(t(A1)){for(s=0;s<A1.length;s++)A(A1[s]);Object.freeze&&Object.freeze(A1)}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 A(A1);if(J1.call(p,"key")){A1=Q(k);var B1=Object.keys(p).filter(function(O1){return O1!=="key"});s=0<B1.length?"{key: someKey, "+B1.join(": ..., ")+": ...}":"{key: someKey}",n[A1+s]||(B1=0<B1.length?"{"+B1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ 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&&(K=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=vW(_,1,!1,null,null,$,q,null,G,K,z,mW),_[r3]=J.current,aG(_),new zZ(J)},XN.hydrateRoot=function(_,J,$){if(!S(_))throw Error("Target container is not a DOM element.");gW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",K=hY,z=xY,L=mY,I=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(K=$.onUncaughtError),$.onCaughtError!==void 0&&(z=$.onCaughtError),$.onRecoverableError!==void 0&&(L=$.onRecoverableError),$.formState!==void 0&&(I=$.formState)),J=vW(_,1,!0,J,$!=null?$:null,q,G,I,K,z,L,mW),J.context=VW(null),$=J.current,q=X5($),q=c4(q),G=b3(q),G.callback=null,E3($,G,q),K4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,C2(J,$),R4(J),_[r3]=J.current,aG(_),new GQ(J)},XN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var uA=D4((Kk,DA)=>{var HN=E0(kA());DA.exports=HN});var O8=D4((YN)=>{var R8=E0(n5());(function(){function Q(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===m?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case u:return"Suspense";case h:return"SuspenseList";case E:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case P:return"Portal";case N:return y.displayName||"Context";case D:return(y._context.displayName||"Context")+".Consumer";case v:var p=y.render;return y=y.displayName,y||(y=p.displayName||p.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case k:return p=y.displayName||null,p!==null?p:Q(y.type)||"Memo";case b:p=y._payload,y=y._init;try{return Q(y(p))}catch(q1){}}return null}function U(y){return""+y}function Z(y){try{U(y);var p=!1}catch(W1){p=!0}if(p){p=console;var q1=p.error,s=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q1.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),U(y)}}function X(y){if(y===V)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===b)return"<...>";try{var p=Q(y);return p?"<"+p+">":"<...>"}catch(q1){return"<...>"}}function H(){var y=e.A;return y===null?null:y.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(y){if(Q1.call(y,"key")){var p=Object.getOwnPropertyDescriptor(y,"key").get;if(p&&p.isReactWarning)return!1}return y.key!==void 0}function B(y,p){function q1(){g||(g=!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)",p))}q1.isReactWarning=!0,Object.defineProperty(y,"key",{get:q1,configurable:!0})}function T(){var y=Q(this.type);return c[y]||(c[y]=!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.")),y=this.props.ref,y!==void 0?y:null}function R(y,p,q1,s,W1,R1){var T1=q1.ref;return y={$$typeof:w,type:y,key:p,props:q1,_owner:s},(T1!==void 0?T1:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:T}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R1}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function M(y,p,q1,s,W1,R1){var T1=p.children;if(T1!==void 0)if(s)if(J1(T1)){for(s=0;s<T1.length;s++)A(T1[s]);Object.freeze&&Object.freeze(T1)}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 A(T1);if(Q1.call(p,"key")){T1=Q(y);var A1=Object.keys(p).filter(function(w1){return w1!=="key"});s=0<A1.length?"{key: someKey, "+A1.join(": ..., ")+": ...}":"{key: someKey}",t[T1+s]||(A1=0<A1.length?"{"+A1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
231
  let props = %s;
232
232
  <%s {...props} />
233
233
  React keys must be passed directly to JSX without using spread:
234
234
  let props = %s;
235
- <%s key={someKey} {...props} />`,s,A1,B1,A1),n[A1+s]=!0)}if(A1=null,q1!==void 0&&(Z(q1),A1=""+q1),B(p)&&(Z(p.key),A1=""+p.key),"key"in p){q1={};for(var U1 in p)U1!=="key"&&(q1[U1]=p[U1])}else q1=p;return A1&&W(q1,typeof k==="function"?k.displayName||k.name||"Unknown":k),R(k,A1,q1,H(),H1,M1)}function A(k){O(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===b&&(k._payload.status==="fulfilled"?O(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function O(k){return typeof k==="object"&&k!==null&&k.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),$1=M8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J1=Object.prototype.hasOwnProperty,t=Array.isArray,x=console.createTask?console.createTask:function(){return null};M8={react_stack_bottom_frame:function(k){return k()}};var g,c={},a=M8.react_stack_bottom_frame.bind(M8,Y)(),r=x(X(Y)),n={};KN.Fragment=V,KN.jsxDEV=function(k,p,q1,s){var H1=1e4>$1.recentlyCreatedOwnerStacks++;return T(k,p,q1,s,H1?Error("react-stack-top-frame"):a,H1?x(X(k)):r)}})()});var xA=v4((BN)=>{var O8=b0(o5());(function(){function Q(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===m?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case f:return"Profiler";case S:return"StrictMode";case v:return"Suspense";case h:return"SuspenseList";case E:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case P:return"Portal";case N:return k.displayName||"Context";case D:return(k._context.displayName||"Context")+".Consumer";case y:var p=k.render;return k=k.displayName,k||(k=p.displayName||p.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case u:return p=k.displayName||null,p!==null?p:Q(k.type)||"Memo";case b:p=k._payload,k=k._init;try{return Q(k(p))}catch(q1){}}return null}function U(k){return""+k}function Z(k){try{U(k);var p=!1}catch(H1){p=!0}if(p){p=console;var q1=p.error,s=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return q1.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),U(k)}}function X(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===b)return"<...>";try{var p=Q(k);return p?"<"+p+">":"<...>"}catch(q1){return"<...>"}}function H(){var k=$1.A;return k===null?null:k.getOwner()}function Y(){return Error("react-stack-top-frame")}function B(k){if(J1.call(k,"key")){var p=Object.getOwnPropertyDescriptor(k,"key").get;if(p&&p.isReactWarning)return!1}return k.key!==void 0}function W(k,p){function q1(){g||(g=!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)",p))}q1.isReactWarning=!0,Object.defineProperty(k,"key",{get:q1,configurable:!0})}function M(){var k=Q(this.type);return c[k]||(c[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function R(k,p,q1,s,H1,M1){var A1=q1.ref;return k={$$typeof:w,type:k,key:p,props:q1,_owner:s},(A1!==void 0?A1:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:H1}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:M1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function T(k,p,q1,s,H1,M1){var A1=p.children;if(A1!==void 0)if(s)if(t(A1)){for(s=0;s<A1.length;s++)A(A1[s]);Object.freeze&&Object.freeze(A1)}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 A(A1);if(J1.call(p,"key")){A1=Q(k);var B1=Object.keys(p).filter(function(O1){return O1!=="key"});s=0<B1.length?"{key: someKey, "+B1.join(": ..., ")+": ...}":"{key: someKey}",n[A1+s]||(B1=0<B1.length?"{"+B1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,s,T1,A1,T1),t[T1+s]=!0)}if(T1=null,q1!==void 0&&(Z(q1),T1=""+q1),W(p)&&(Z(p.key),T1=""+p.key),"key"in p){q1={};for(var U1 in p)U1!=="key"&&(q1[U1]=p[U1])}else q1=p;return T1&&B(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,T1,q1,H(),W1,R1)}function A(y){O(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===b&&(y._payload.status==="fulfilled"?O(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function O(y){return typeof y==="object"&&y!==null&&y.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),e=R8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,x=console.createTask?console.createTask:function(){return null};R8={react_stack_bottom_frame:function(y){return y()}};var g,c={},a=R8.react_stack_bottom_frame.bind(R8,Y)(),d=x(X(Y)),t={};YN.Fragment=V,YN.jsxDEV=function(y,p,q1,s){var W1=1e4>e.recentlyCreatedOwnerStacks++;return M(y,p,q1,s,W1?Error("react-stack-top-frame"):a,W1?x(X(y)):d)}})()});var lA=D4((MN)=>{var w8=E0(n5());(function(){function Q(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===m?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case V:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case u:return"Suspense";case h:return"SuspenseList";case E:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case P:return"Portal";case N:return y.displayName||"Context";case D:return(y._context.displayName||"Context")+".Consumer";case v:var p=y.render;return y=y.displayName,y||(y=p.displayName||p.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case k:return p=y.displayName||null,p!==null?p:Q(y.type)||"Memo";case b:p=y._payload,y=y._init;try{return Q(y(p))}catch(q1){}}return null}function U(y){return""+y}function Z(y){try{U(y);var p=!1}catch(W1){p=!0}if(p){p=console;var q1=p.error,s=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q1.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",s),U(y)}}function X(y){if(y===V)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===b)return"<...>";try{var p=Q(y);return p?"<"+p+">":"<...>"}catch(q1){return"<...>"}}function H(){var y=e.A;return y===null?null:y.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(y){if(Q1.call(y,"key")){var p=Object.getOwnPropertyDescriptor(y,"key").get;if(p&&p.isReactWarning)return!1}return y.key!==void 0}function B(y,p){function q1(){g||(g=!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)",p))}q1.isReactWarning=!0,Object.defineProperty(y,"key",{get:q1,configurable:!0})}function T(){var y=Q(this.type);return c[y]||(c[y]=!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.")),y=this.props.ref,y!==void 0?y:null}function R(y,p,q1,s,W1,R1){var T1=q1.ref;return y={$$typeof:w,type:y,key:p,props:q1,_owner:s},(T1!==void 0?T1:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:T}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W1}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R1}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function M(y,p,q1,s,W1,R1){var T1=p.children;if(T1!==void 0)if(s)if(J1(T1)){for(s=0;s<T1.length;s++)A(T1[s]);Object.freeze&&Object.freeze(T1)}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 A(T1);if(Q1.call(p,"key")){T1=Q(y);var A1=Object.keys(p).filter(function(w1){return w1!=="key"});s=0<A1.length?"{key: someKey, "+A1.join(": ..., ")+": ...}":"{key: someKey}",t[T1+s]||(A1=0<A1.length?"{"+A1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
236
  let props = %s;
237
237
  <%s {...props} />
238
238
  React keys must be passed directly to JSX without using spread:
239
239
  let props = %s;
240
- <%s key={someKey} {...props} />`,s,A1,B1,A1),n[A1+s]=!0)}if(A1=null,q1!==void 0&&(Z(q1),A1=""+q1),B(p)&&(Z(p.key),A1=""+p.key),"key"in p){q1={};for(var U1 in p)U1!=="key"&&(q1[U1]=p[U1])}else q1=p;return A1&&W(q1,typeof k==="function"?k.displayName||k.name||"Unknown":k),R(k,A1,q1,H(),H1,M1)}function A(k){O(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===b&&(k._payload.status==="fulfilled"?O(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function O(k){return typeof k==="object"&&k!==null&&k.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),$1=O8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J1=Object.prototype.hasOwnProperty,t=Array.isArray,x=console.createTask?console.createTask:function(){return null};O8={react_stack_bottom_frame:function(k){return k()}};var g,c={},a=O8.react_stack_bottom_frame.bind(O8,Y)(),r=x(X(Y)),n={};BN.Fragment=V,BN.jsx=function(k,p,q1){var s=1e4>$1.recentlyCreatedOwnerStacks++;return T(k,p,q1,!1,s?Error("react-stack-top-frame"):a,s?x(X(k)):r)},BN.jsxs=function(k,p,q1){var s=1e4>$1.recentlyCreatedOwnerStacks++;return T(k,p,q1,!0,s?Error("react-stack-top-frame"):a,s?x(X(k)):r)}})()});var LT=v4((XS)=>{var R5=b0(o5());(function(){function Q(O,w){return O===w&&(O!==0||1/O===1/w)||O!==O&&w!==w}function U(O,w){R||R5.startTransition===void 0||(R=!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 P=w();if(!T){var V=w();H(P,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}V=Y({inst:{value:P,getSnapshot:w}});var S=V[0].inst,f=V[1];return W(function(){S.value=P,S.getSnapshot=w,Z(S)&&f({inst:S})},[O,P,w]),B(function(){return Z(S)&&f({inst:S}),O(function(){Z(S)&&f({inst:S})})},[O]),M(P),P}function Z(O){var w=O.getSnapshot;O=O.value;try{var P=w();return!H(O,P)}catch(V){return!0}}function X(O,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=R5.useState,B=R5.useEffect,W=R5.useLayoutEffect,M=R5.useDebugValue,R=!1,T=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?X:U;XS.useSyncExternalStore=R5.useSyncExternalStore!==void 0?R5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var AT=v4((HS)=>{var O3=b0(o5());(function(){function Q(M,R){return M===R&&(M!==0||1/M===1/R)||M!==M&&R!==R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=LT(),Z=typeof Object.is==="function"?Object.is:Q,X=U.useSyncExternalStore,H=O3.useRef,Y=O3.useEffect,B=O3.useMemo,W=O3.useDebugValue;HS.useSyncExternalStoreWithSelector=function(M,R,T,A,O){var w=H(null);if(w.current===null){var P={hasValue:!1,value:null};w.current=P}else P=w.current;w=B(function(){function S(v){if(!f){if(f=!0,D=v,v=A(v),O!==void 0&&P.hasValue){var h=P.value;if(O(h,v))return N=h}return N=v}if(h=N,Z(D,v))return h;var u=A(v);if(O!==void 0&&O(h,u))return D=v,h;return D=v,N=u}var f=!1,D,N,y=T===void 0?null:T;return[function(){return S(R())},y===null?void 0:function(){return S(y())}]},[R,T,A,O]);var V=X(M,w[0],w[1]);return Y(function(){P.hasValue=!0,P.value=V},[V]),W(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var MO=b0(yA(),1);var z2=b0(o5(),1);var VA={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 E1=b0(T8(),1),FN="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function e_({href:Q,onClick:U}){return E1.jsxDEV("h1",{children:E1.jsxDEV("a",{href:Q,onClick:U,children:[E1.jsxDEV("img",{src:FN,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),E1.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 W3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function vA(Q,U,Z=0,X=""){let[H,Y]=z2.useState({state:"loading"});return z2.useEffect(()=>{Y({state:"loading"})},[X,U]),z2.useEffect(()=>{if(!U)return;let B=!0;return(async()=>{try{let W=await Q(U),M=W.ok?{state:"ok",data:await W.json()}:{state:"error",status:W.status,error:await W3(W)};if(B)Y(M)}catch(W){if(B)Y({state:"error",status:0,error:String(W)})}})(),()=>{B=!1}},[X,U,Z]),H}function S2({load:Q,what:U,retry:Z,lines:X=3}){if(Q.state==="loading")return E1.jsxDEV(XN,{lines:X,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return E1.jsxDEV("div",{role:"alert",className:"error-state",children:[E1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?E1.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 XN({lines:Q=3,label:U="Loading…"}){return E1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,X)=>E1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][X%5]}%`}},X,!1,void 0,this))},void 0,!1,void 0,this)}function M0({iso:Q,time:U}){if(!Q)return E1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return E1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var cK=(Q)=>Q?new Date(Q).toLocaleString():"—";function lK(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 d0(Q,U){let Z=U.replace(/[_-]+/g," "),X=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:X}`}var R8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,HN={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"},g1=(Q)=>HN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function q2({vendor:Q}){let U=VA[Q];return E1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?E1.jsxDEV("svg",{viewBox:"0 0 24 24",children:E1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):g1(Q).charAt(0)},void 0,!1,void 0,this)}var kA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},YN="volter.theme",dK=()=>{try{let Q=localStorage.getItem(YN);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Fq(Q=dK()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function DA(){return z2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(X)=>{if(X.key!=="Escape"||document.querySelector("dialog[open]"))return;let H=Q();if(!H.length)return;for(let Y of H)Y.removeAttribute("open");H[H.length-1].querySelector("summary")?.focus()},Z=(X)=>{let H=X.target;for(let Y of Q())if(!H||!Y.contains(H))Y.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function T5({open:Q,onClose:U,title:Z,children:X,footer:H,wide:Y}){let B=z2.useRef(null),W=z2.useId();return z2.useEffect(()=>{let M=B.current;if(!M)return;if(Q&&!M.open){M.showModal();let R=M.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(R?.focus(),R instanceof HTMLInputElement&&R.value&&/^(text|search|email|url)$/.test(R.type))R.select()}if(!Q&&M.open)M.close()},[Q]),E1.jsxDEV("dialog",{ref:B,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":W,onClose:U,onCancel:(M)=>{M.preventDefault(),U()},onMouseDown:(M)=>{if(M.target===B.current)U()},children:Q?E1.jsxDEV(E1.Fragment,{children:[E1.jsxDEV("div",{className:"dialog-head",children:[E1.jsxDEV("h2",{id:W,children:Z},void 0,!1,void 0,this),E1.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),E1.jsxDEV("div",{className:"dialog-body",children:X},void 0,!1,void 0,this),H?E1.jsxDEV("div",{className:"dialog-foot",children:H},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)}var gK="volter:confirm";function D4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(gK,{detail:{ask:Q,resolve:U}}))})}function bA(){let[Q,U]=z2.useState(null),[Z,X]=z2.useState("");z2.useEffect(()=>{let W=(M)=>{X(""),U(M.detail)};return window.addEventListener(gK,W),()=>window.removeEventListener(gK,W)},[]);let H=(W)=>{Q?.resolve(W),U(null)},Y=Q?.ask,B=!Y?.typed||Z===Y.typed;return E1.jsxDEV(T5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:E1.jsxDEV(E1.Fragment,{children:[E1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),E1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!B,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?E1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?E1.jsxDEV("div",{className:"typed-confirm",children:[E1.jsxDEV("p",{children:["Type ",E1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),E1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(W)=>X(W.target.value),onKeyDown:(W)=>{if(W.key==="Enter"&&B)H(!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 pK="volter:toast";function Q2(Q,U="ok"){window.dispatchEvent(new CustomEvent(pK,{detail:{text:Q,kind:U}}))}function uA(){let[Q,U]=z2.useState([]);return z2.useEffect(()=>{let Z=0,X=(H)=>{let{text:Y,kind:B}=H.detail,W=++Z;if(U((M)=>[...M.slice(-3),{id:W,text:Y,kind:B}]),B!=="error")setTimeout(()=>U((M)=>M.filter((R)=>R.id!==W)),4500)};return window.addEventListener(pK,X),()=>window.removeEventListener(pK,X)},[]),E1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>E1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[E1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),E1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((X)=>X.filter((H)=>H.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function rK({value:Q,label:U,secret:Z}){let[X,H]=z2.useState(!1);return E1.jsxDEV("div",{className:"copy-field",children:[U?E1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,E1.jsxDEV("div",{className:"copy-row",children:[E1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(B)=>B.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),E1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),Q2(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>Q2("Your browser would not copy it: select it and copy","error"))},children:X?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function EA({label:Q,items:U}){return E1.jsxDEV("details",{className:"menu row-menu",children:[E1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?E1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:kA,children:Z.label},Z.label,!1,void 0,this):E1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(X)=>{kA(X),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function s7({title:Q,children:U,action:Z}){return E1.jsxDEV("div",{className:"empty-state",children:[E1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?E1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?E1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function hA(){return z2.useEffect(()=>{let Q=(Z)=>{let X=document.querySelector("main.app"),H=Z.target;if(X?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))X.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")zN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),E1.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 zN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var Y1=b0(o5(),1);var F1=b0(xA(),1),X1=b0(o5(),1);function h0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,X;Z<Q.length;Z++)if((X=h0(Q[Z]))!=="")U+=(U&&" ")+X}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var WN={value:()=>{}};function gA(){for(var Q=0,U=arguments.length,Z={},X;Q<U;++Q){if(!(X=arguments[Q]+"")||X in Z||/[\s.]/.test(X))throw Error("illegal type: "+X);Z[X]=[]}return new Xq(Z)}function Xq(Q){this._=Q}function LN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var X="",H=Z.indexOf(".");if(H>=0)X=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:X}})}Xq.prototype=gA.prototype={constructor:Xq,on:function(Q,U){var Z=this._,X=LN(Q+"",Z),H,Y=-1,B=X.length;if(arguments.length<2){while(++Y<B)if((H=(Q=X[Y]).type)&&(H=AN(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<B)if(H=(Q=X[Y]).type)Z[H]=mA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=mA(Z[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new Xq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),X=0,H,Y;X<H;++X)Z[X]=arguments[X+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],X=0,H=Y.length;X<H;++X)Y[X].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var X=this._[Q],H=0,Y=X.length;H<Y;++H)X[H].value.apply(U,Z)}};function AN(Q,U){for(var Z=0,X=Q.length,H;Z<X;++Z)if((H=Q[Z]).name===U)return H.value}function mA(Q,U,Z){for(var X=0,H=Q.length;X<H;++X)if(Q[X].name===U){Q[X]=WN,Q=Q.slice(0,X).concat(Q.slice(X+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var I8=gA;function t7(Q){return function(){return this.matches(Q)}}function Hq(Q){return function(U){return U.matches(Q)}}var Yq="http://www.w3.org/1999/xhtml",iK={svg:"http://www.w3.org/2000/svg",xhtml:Yq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function b4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return iK.hasOwnProperty(U)?{space:iK[U],local:Q}:Q}function aK(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function j2(Q,U){if(Q=aK(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var X=Z.createSVGPoint();return X.x=Q.clientX,X.y=Q.clientY,X=X.matrixTransform(U.getScreenCTM().inverse()),[X.x,X.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function MN(){}function A6(Q){return Q==null?MN:function(){return this.querySelector(Q)}}function sK(Q){if(typeof Q!=="function")Q=A6(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],B=Y.length,W=X[H]=Array(B),M,R,T=0;T<B;++T)if((M=Y[T])&&(R=Q.call(M,M.__data__,T,Y))){if("__data__"in M)R.__data__=M.__data__;W[T]=R}return new p0(X,this._parents)}function tK(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function TN(){return[]}function o7(Q){return Q==null?TN:function(){return this.querySelectorAll(Q)}}function RN(Q){return function(){return tK(Q.apply(this,arguments))}}function oK(Q){if(typeof Q==="function")Q=RN(Q);else Q=o7(Q);for(var U=this._groups,Z=U.length,X=[],H=[],Y=0;Y<Z;++Y)for(var B=U[Y],W=B.length,M,R=0;R<W;++R)if(M=B[R])X.push(Q.call(M,M.__data__,R,B)),H.push(M);return new p0(X,H)}var ON=Array.prototype.find;function IN(Q){return function(){return ON.call(this.children,Q)}}function wN(){return this.firstElementChild}function nK(Q){return this.select(Q==null?wN:IN(typeof Q==="function"?Q:Hq(Q)))}var PN=Array.prototype.filter;function NN(){return Array.from(this.children)}function fN(Q){return function(){return PN.call(this.children,Q)}}function eK(Q){return this.selectAll(Q==null?NN:fN(typeof Q==="function"?Q:Hq(Q)))}function _F(Q){if(typeof Q!=="function")Q=t7(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],B=Y.length,W=X[H]=[],M,R=0;R<B;++R)if((M=Y[R])&&Q.call(M,M.__data__,R,Y))W.push(M);return new p0(X,this._parents)}function _J(Q){return Array(Q.length)}function JF(){return new p0(this._enter||this._groups.map(_J),this._parents)}function JJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}JJ.prototype={constructor:JJ,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 $F(Q){return function(){return Q}}function CN(Q,U,Z,X,H,Y){var B=0,W,M=U.length,R=Y.length;for(;B<R;++B)if(W=U[B])W.__data__=Y[B],X[B]=W;else Z[B]=new JJ(Q,Y[B]);for(;B<M;++B)if(W=U[B])H[B]=W}function SN(Q,U,Z,X,H,Y,B){var W,M,R=new Map,T=U.length,A=Y.length,O=Array(T),w;for(W=0;W<T;++W)if(M=U[W])if(O[W]=w=B.call(M,M.__data__,W,U)+"",R.has(w))H[W]=M;else R.set(w,M);for(W=0;W<A;++W)if(w=B.call(Q,Y[W],W,Y)+"",M=R.get(w))X[W]=M,M.__data__=Y[W],R.delete(w);else Z[W]=new JJ(Q,Y[W]);for(W=0;W<T;++W)if((M=U[W])&&R.get(O[W])===M)H[W]=M}function jN(Q){return Q.__data__}function QF(Q,U){if(!arguments.length)return Array.from(this,jN);var Z=U?SN:CN,X=this._parents,H=this._groups;if(typeof Q!=="function")Q=$F(Q);for(var Y=H.length,B=Array(Y),W=Array(Y),M=Array(Y),R=0;R<Y;++R){var T=X[R],A=H[R],O=A.length,w=yN(Q.call(T,T&&T.__data__,R,X)),P=w.length,V=W[R]=Array(P),S=B[R]=Array(P),f=M[R]=Array(O);Z(T,A,V,S,f,w,U);for(var D=0,N=0,y,v;D<P;++D)if(y=V[D]){if(D>=N)N=D+1;while(!(v=S[N])&&++N<P);y._next=v||null}}return B=new p0(B,X),B._enter=W,B._exit=M,B}function yN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function qF(){return new p0(this._exit||this._groups.map(_J),this._parents)}function UF(Q,U,Z){var X=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(X=Q(X),X)X=X.selection()}else X=X.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return X&&H?X.merge(H).order():H}function GF(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,X=U._groups,H=Z.length,Y=X.length,B=Math.min(H,Y),W=Array(H),M=0;M<B;++M)for(var R=Z[M],T=X[M],A=R.length,O=W[M]=Array(A),w,P=0;P<A;++P)if(w=R[P]||T[P])O[P]=w;for(;M<H;++M)W[M]=Z[M];return new p0(W,this._parents)}function ZF(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var X=Q[U],H=X.length-1,Y=X[H],B;--H>=0;)if(B=X[H]){if(Y&&B.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(B,Y);Y=B}return this}function KF(Q){if(!Q)Q=VN;function U(A,O){return A&&O?Q(A.__data__,O.__data__):!A-!O}for(var Z=this._groups,X=Z.length,H=Array(X),Y=0;Y<X;++Y){for(var B=Z[Y],W=B.length,M=H[Y]=Array(W),R,T=0;T<W;++T)if(R=B[T])M[T]=R;M.sort(U)}return new p0(H,this._parents).order()}function VN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function FF(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function XF(){return Array.from(this)}function HF(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var X=Q[U],H=0,Y=X.length;H<Y;++H){var B=X[H];if(B)return B}return null}function YF(){let Q=0;for(let U of this)++Q;return Q}function zF(){return!this.node()}function BF(Q){for(var U=this._groups,Z=0,X=U.length;Z<X;++Z)for(var H=U[Z],Y=0,B=H.length,W;Y<B;++Y)if(W=H[Y])Q.call(W,W.__data__,Y,H);return this}function kN(Q){return function(){this.removeAttribute(Q)}}function vN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function DN(Q,U){return function(){this.setAttribute(Q,U)}}function bN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function uN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function EN(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 WF(Q,U){var Z=b4(Q);if(arguments.length<2){var X=this.node();return Z.local?X.getAttributeNS(Z.space,Z.local):X.getAttribute(Z)}return this.each((U==null?Z.local?vN:kN:typeof U==="function"?Z.local?EN:uN:Z.local?bN:DN)(Z,U))}function $J(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function hN(Q){return function(){this.style.removeProperty(Q)}}function xN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function mN(Q,U,Z){return function(){var X=U.apply(this,arguments);if(X==null)this.style.removeProperty(Q);else this.style.setProperty(Q,X,Z)}}function LF(Q,U,Z){return arguments.length>1?this.each((U==null?hN:typeof U==="function"?mN:xN)(Q,U,Z==null?"":Z)):M6(this.node(),Q)}function M6(Q,U){return Q.style.getPropertyValue(U)||$J(Q).getComputedStyle(Q,null).getPropertyValue(U)}function gN(Q){return function(){delete this[Q]}}function pN(Q,U){return function(){this[Q]=U}}function cN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function AF(Q,U){return arguments.length>1?this.each((U==null?gN:typeof U==="function"?cN:pN)(Q,U)):this.node()[Q]}function pA(Q){return Q.trim().split(/^|\s+/)}function MF(Q){return Q.classList||new cA(Q)}function cA(Q){this._node=Q,this._names=pA(Q.getAttribute("class")||"")}cA.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 lA(Q,U){var Z=MF(Q),X=-1,H=U.length;while(++X<H)Z.add(U[X])}function dA(Q,U){var Z=MF(Q),X=-1,H=U.length;while(++X<H)Z.remove(U[X])}function lN(Q){return function(){lA(this,Q)}}function dN(Q){return function(){dA(this,Q)}}function rN(Q,U){return function(){(U.apply(this,arguments)?lA:dA)(this,Q)}}function TF(Q,U){var Z=pA(Q+"");if(arguments.length<2){var X=MF(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!X.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?rN:U?lN:dN)(Z,U))}function iN(){this.textContent=""}function aN(Q){return function(){this.textContent=Q}}function sN(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function RF(Q){return arguments.length?this.each(Q==null?iN:(typeof Q==="function"?sN:aN)(Q)):this.node().textContent}function tN(){this.innerHTML=""}function oN(Q){return function(){this.innerHTML=Q}}function nN(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function OF(Q){return arguments.length?this.each(Q==null?tN:(typeof Q==="function"?nN:oN)(Q)):this.node().innerHTML}function eN(){if(this.nextSibling)this.parentNode.appendChild(this)}function IF(){return this.each(eN)}function _f(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wF(){return this.each(_f)}function Jf(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Yq&&U.documentElement.namespaceURI===Yq?U.createElement(Q):U.createElementNS(Z,Q)}}function $f(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function QJ(Q){var U=b4(Q);return(U.local?$f:Jf)(U)}function PF(Q){var U=typeof Q==="function"?Q:QJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function Qf(){return null}function NF(Q,U){var Z=typeof Q==="function"?Q:QJ(Q),X=U==null?Qf:typeof U==="function"?U:A6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),X.apply(this,arguments)||null)})}function qf(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function fF(){return this.each(qf)}function Uf(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function Gf(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function CF(Q){return this.select(Q?Gf:Uf)}function SF(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function Zf(Q){return function(U){Q.call(this,U,this.__data__)}}function Kf(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",X=U.indexOf(".");if(X>=0)Z=U.slice(X+1),U=U.slice(0,X);return{type:U,name:Z}})}function Ff(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,X=-1,H=U.length,Y;Z<H;++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[++X]=Y;if(++X)U.length=X;else delete this.__on}}function Xf(Q,U,Z){return function(){var X=this.__on,H,Y=Zf(U);if(X){for(var B=0,W=X.length;B<W;++B)if((H=X[B]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=Z),H.value=U;return}}if(this.addEventListener(Q.type,Y,Z),H={type:Q.type,name:Q.name,value:U,listener:Y,options:Z},!X)this.__on=[H];else X.push(H)}}function jF(Q,U,Z){var X=Kf(Q+""),H,Y=X.length,B;if(arguments.length<2){var W=this.node().__on;if(W){for(var M=0,R=W.length,T;M<R;++M)for(H=0,T=W[M];H<Y;++H)if((B=X[H]).type===T.type&&B.name===T.name)return T.value}return}W=U?Xf:Ff;for(H=0;H<Y;++H)this.each(W(X[H],U,Z));return this}function rA(Q,U,Z){var X=$J(Q),H=X.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=X.document.createEvent("Event"),Z)H.initEvent(U,Z.bubbles,Z.cancelable),H.detail=Z.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function Hf(Q,U){return function(){return rA(this,Q,U)}}function Yf(Q,U){return function(){return rA(this,Q,U.apply(this,arguments))}}function yF(Q,U){return this.each((typeof U==="function"?Yf:Hf)(Q,U))}function*VF(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var X=Q[U],H=0,Y=X.length,B;H<Y;++H)if(B=X[H])yield B}var kF=[null];function p0(Q,U){this._groups=Q,this._parents=U}function iA(){return new p0([[document.documentElement]],kF)}function zf(){return this}p0.prototype=iA.prototype={constructor:p0,select:sK,selectAll:oK,selectChild:nK,selectChildren:eK,filter:_F,data:QF,enter:JF,exit:qF,join:UF,merge:GF,selection:zf,order:ZF,sort:KF,call:FF,nodes:XF,node:HF,size:YF,empty:zF,each:BF,attr:WF,style:LF,property:AF,classed:TF,text:RF,html:OF,raise:IF,lower:wF,append:PF,insert:NF,remove:fF,clone:CF,datum:SF,on:jF,dispatch:yF,[Symbol.iterator]:VF};var L3=iA;function U2(Q){return typeof Q==="string"?new p0([[document.querySelector(Q)]],[document.documentElement]):new p0([[Q]],kF)}var aA={passive:!1},w8={capture:!0,passive:!1};function zq(Q){Q.stopImmediatePropagation()}function A3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function n7(Q){var U=Q.document.documentElement,Z=U2(Q).on("dragstart.drag",A3,w8);if("onselectstart"in U)Z.on("selectstart.drag",A3,w8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function qJ(Q,U){var Z=Q.document.documentElement,X=U2(Q).on("dragstart.drag",null);if(U)X.on("click.drag",A3,w8),setTimeout(function(){X.on("click.drag",null)},0);if("onselectstart"in Z)X.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var UJ=(Q)=>()=>Q;function GJ(Q,{sourceEvent:U,subject:Z,target:X,identifier:H,active:Y,x:B,y:W,dx:M,dy:R,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:X,enumerable:!0,configurable:!0},identifier:{value:H,enumerable:!0,configurable:!0},active:{value:Y,enumerable:!0,configurable:!0},x:{value:B,enumerable:!0,configurable:!0},y:{value:W,enumerable:!0,configurable:!0},dx:{value:M,enumerable:!0,configurable:!0},dy:{value:R,enumerable:!0,configurable:!0},_:{value:T}})}GJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function Bf(Q){return!Q.ctrlKey&&!Q.button}function Wf(){return this.parentNode}function Lf(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function Af(){return navigator.maxTouchPoints||"ontouchstart"in this}function ZJ(){var Q=Bf,U=Wf,Z=Lf,X=Af,H={},Y=I8("start","drag","end"),B=0,W,M,R,T,A=0;function O(y){y.on("mousedown.drag",w).filter(X).on("touchstart.drag",S).on("touchmove.drag",f,aA).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(y,v){if(T||!Q.call(this,y,v))return;var h=N(this,U.call(this,y,v),y,v,"mouse");if(!h)return;U2(y.view).on("mousemove.drag",P,w8).on("mouseup.drag",V,w8),n7(y.view),zq(y),R=!1,W=y.clientX,M=y.clientY,h("start",y)}function P(y){if(A3(y),!R){var v=y.clientX-W,h=y.clientY-M;R=v*v+h*h>A}H.mouse("drag",y)}function V(y){U2(y.view).on("mousemove.drag mouseup.drag",null),qJ(y.view,R),A3(y),H.mouse("end",y)}function S(y,v){if(!Q.call(this,y,v))return;var h=y.changedTouches,u=U.call(this,y,v),b=h.length,E,m;for(E=0;E<b;++E)if(m=N(this,u,y,v,h[E].identifier,h[E]))zq(y),m("start",y,h[E])}function f(y){var v=y.changedTouches,h=v.length,u,b;for(u=0;u<h;++u)if(b=H[v[u].identifier])A3(y),b("drag",y,v[u])}function D(y){var v=y.changedTouches,h=v.length,u,b;if(T)clearTimeout(T);T=setTimeout(function(){T=null},500);for(u=0;u<h;++u)if(b=H[v[u].identifier])zq(y),b("end",y,v[u])}function N(y,v,h,u,b,E){var m=Y.copy(),$1=j2(E||h,v),J1,t,x;if((x=Z.call(y,new GJ("beforestart",{sourceEvent:h,target:O,identifier:b,active:B,x:$1[0],y:$1[1],dx:0,dy:0,dispatch:m}),u))==null)return;return J1=x.x-$1[0]||0,t=x.y-$1[1]||0,function g(c,a,r){var n=$1,k;switch(c){case"start":H[b]=g,k=B++;break;case"end":delete H[b],--B;case"drag":$1=j2(r||a,v),k=B;break}m.call(c,y,new GJ(c,{sourceEvent:a,subject:x,target:O,identifier:b,active:k,x:$1[0]+J1,y:$1[1]+t,dx:$1[0]-n[0],dy:$1[1]-n[1],dispatch:m}),u)}}return O.filter=function(y){return arguments.length?(Q=typeof y==="function"?y:UJ(!!y),O):Q},O.container=function(y){return arguments.length?(U=typeof y==="function"?y:UJ(y),O):U},O.subject=function(y){return arguments.length?(Z=typeof y==="function"?y:UJ(y),O):Z},O.touchable=function(y){return arguments.length?(X=typeof y==="function"?y:UJ(!!y),O):X},O.on=function(){var y=Y.on.apply(Y,arguments);return y===Y?O:y},O.clickDistance=function(y){return arguments.length?(A=(y=+y)*y,O):Math.sqrt(A)},O}function KJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function vF(Q,U){var Z=Object.create(Q.prototype);for(var X in U)Z[X]=U[X];return Z}function HJ(){}var FJ=0.7,Lq=1/FJ,e7="\\s*([+-]?\\d+)\\s*",XJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mf=/^#([0-9a-f]{3,8})$/,Tf=new RegExp(`^rgb\\(${e7},${e7},${e7}\\)$`),Rf=new RegExp(`^rgb\\(${u4},${u4},${u4}\\)$`),Of=new RegExp(`^rgba\\(${e7},${e7},${e7},${XJ}\\)$`),If=new RegExp(`^rgba\\(${u4},${u4},${u4},${XJ}\\)$`),wf=new RegExp(`^hsl\\(${XJ},${u4},${u4}\\)$`),Pf=new RegExp(`^hsla\\(${XJ},${u4},${u4},${XJ}\\)$`),sA={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};KJ(HJ,e5,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:tA,formatHex:tA,formatHex8:Nf,formatHsl:ff,formatRgb:oA,toString:oA});function tA(){return this.rgb().formatHex()}function Nf(){return this.rgb().formatHex8()}function ff(){return QM(this).formatHsl()}function oA(){return this.rgb().formatRgb()}function e5(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=Mf.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?nA(U):Z===3?new Q5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Bq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Bq(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=Tf.exec(Q))?new Q5(U[1],U[2],U[3],1):(U=Rf.exec(Q))?new Q5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=Of.exec(Q))?Bq(U[1],U[2],U[3],U[4]):(U=If.exec(Q))?Bq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=wf.exec(Q))?JM(U[1],U[2]/100,U[3]/100,1):(U=Pf.exec(Q))?JM(U[1],U[2]/100,U[3]/100,U[4]):sA.hasOwnProperty(Q)?nA(sA[Q]):Q==="transparent"?new Q5(NaN,NaN,NaN,0):null}function nA(Q){return new Q5(Q>>16&255,Q>>8&255,Q&255,1)}function Bq(Q,U,Z,X){if(X<=0)Q=U=Z=NaN;return new Q5(Q,U,Z,X)}function Cf(Q){if(!(Q instanceof HJ))Q=e5(Q);if(!Q)return new Q5;return Q=Q.rgb(),new Q5(Q.r,Q.g,Q.b,Q.opacity)}function _9(Q,U,Z,X){return arguments.length===1?Cf(Q):new Q5(Q,U,Z,X==null?1:X)}function Q5(Q,U,Z,X){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+X}KJ(Q5,_9,vF(HJ,{brighter(Q){return Q=Q==null?Lq:Math.pow(Lq,Q),new Q5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?FJ:Math.pow(FJ,Q),new Q5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new Q5(N8(this.r),N8(this.g),N8(this.b),Aq(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:eA,formatHex:eA,formatHex8:Sf,formatRgb:_M,toString:_M}));function eA(){return`#${P8(this.r)}${P8(this.g)}${P8(this.b)}`}function Sf(){return`#${P8(this.r)}${P8(this.g)}${P8(this.b)}${P8((isNaN(this.opacity)?1:this.opacity)*255)}`}function _M(){let Q=Aq(this.opacity);return`${Q===1?"rgb(":"rgba("}${N8(this.r)}, ${N8(this.g)}, ${N8(this.b)}${Q===1?")":`, ${Q})`}`}function Aq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function N8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function P8(Q){return Q=N8(Q),(Q<16?"0":"")+Q.toString(16)}function JM(Q,U,Z,X){if(X<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new n5(Q,U,Z,X)}function QM(Q){if(Q instanceof n5)return new n5(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof HJ))Q=e5(Q);if(!Q)return new n5;if(Q instanceof n5)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,X=Q.b/255,H=Math.min(U,Z,X),Y=Math.max(U,Z,X),B=NaN,W=Y-H,M=(Y+H)/2;if(W){if(U===Y)B=(Z-X)/W+(Z<X)*6;else if(Z===Y)B=(X-U)/W+2;else B=(U-Z)/W+4;W/=M<0.5?Y+H:2-Y-H,B*=60}else W=M>0&&M<1?0:B;return new n5(B,W,M,Q.opacity)}function qM(Q,U,Z,X){return arguments.length===1?QM(Q):new n5(Q,U,Z,X==null?1:X)}function n5(Q,U,Z,X){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+X}KJ(n5,qM,vF(HJ,{brighter(Q){return Q=Q==null?Lq:Math.pow(Lq,Q),new n5(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?FJ:Math.pow(FJ,Q),new n5(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,X=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-X;return new Q5(DF(Q>=240?Q-240:Q+120,H,X),DF(Q,H,X),DF(Q<120?Q+240:Q-120,H,X),this.opacity)},clamp(){return new n5($M(this.h),Wq(this.s),Wq(this.l),Aq(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=Aq(this.opacity);return`${Q===1?"hsl(":"hsla("}${$M(this.h)}, ${Wq(this.s)*100}%, ${Wq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function $M(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Wq(Q){return Math.max(0,Math.min(1,Q||0))}function DF(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 bF(Q,U,Z,X,H){var Y=Q*Q,B=Y*Q;return((1-3*Q+3*Y-B)*U+(4-6*Y+3*B)*Z+(1+3*Q+3*Y-3*B)*X+B*H)/6}function uF(Q){var U=Q.length-1;return function(Z){var X=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[X],Y=Q[X+1],B=X>0?Q[X-1]:2*H-Y,W=X<U-1?Q[X+2]:2*Y-H;return bF((Z-X/U)*U,B,H,Y,W)}}function EF(Q){var U=Q.length;return function(Z){var X=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(X+U-1)%U],Y=Q[X%U],B=Q[(X+1)%U],W=Q[(X+2)%U];return bF((Z-X/U)*U,H,Y,B,W)}}var YJ=(Q)=>()=>Q;function jf(Q,U){return function(Z){return Q+Z*U}}function yf(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(X){return Math.pow(Q+X*U,Z)}}function UM(Q){return(Q=+Q)===1?Mq:function(U,Z){return Z-U?yf(U,Z,Q):YJ(isNaN(U)?Z:U)}}function Mq(Q,U){var Z=U-Q;return Z?jf(Q,Z):YJ(isNaN(Q)?U:Q)}var f8=function Q(U){var Z=UM(U);function X(H,Y){var B=Z((H=_9(H)).r,(Y=_9(Y)).r),W=Z(H.g,Y.g),M=Z(H.b,Y.b),R=Mq(H.opacity,Y.opacity);return function(T){return H.r=B(T),H.g=W(T),H.b=M(T),H.opacity=R(T),H+""}}return X.gamma=Q,X}(1);function GM(Q){return function(U){var Z=U.length,X=Array(Z),H=Array(Z),Y=Array(Z),B,W;for(B=0;B<Z;++B)W=_9(U[B]),X[B]=W.r||0,H[B]=W.g||0,Y[B]=W.b||0;return X=Q(X),H=Q(H),Y=Q(Y),W.opacity=1,function(M){return W.r=X(M),W.g=H(M),W.b=Y(M),W+""}}}var Vf=GM(uF),kf=GM(EF);function hF(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,X=U.slice(),H;return function(Y){for(H=0;H<Z;++H)X[H]=Q[H]*(1-Y)+U[H]*Y;return X}}function ZM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function KM(Q,U){var Z=U?U.length:0,X=Q?Math.min(Z,Q.length):0,H=Array(X),Y=Array(Z),B;for(B=0;B<X;++B)H[B]=E4(Q[B],U[B]);for(;B<Z;++B)Y[B]=U[B];return function(W){for(B=0;B<X;++B)Y[B]=H[B](W);return Y}}function xF(Q,U){var Z=new Date;return Q=+Q,U=+U,function(X){return Z.setTime(Q*(1-X)+U*X),Z}}function y2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function mF(Q,U){var Z={},X={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)Z[H]=E4(Q[H],U[H]);else X[H]=U[H];return function(Y){for(H in Z)X[H]=Z[H](Y);return X}}var pF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gF=new RegExp(pF.source,"g");function vf(Q){return function(){return Q}}function Df(Q){return function(U){return Q(U)+""}}function J9(Q,U){var Z=pF.lastIndex=gF.lastIndex=0,X,H,Y,B=-1,W=[],M=[];Q=Q+"",U=U+"";while((X=pF.exec(Q))&&(H=gF.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),W[B])W[B]+=Y;else W[++B]=Y;if((X=X[0])===(H=H[0]))if(W[B])W[B]+=H;else W[++B]=H;else W[++B]=null,M.push({i:B,x:y2(X,H)});Z=gF.lastIndex}if(Z<U.length)if(Y=U.slice(Z),W[B])W[B]+=Y;else W[++B]=Y;return W.length<2?M[0]?Df(M[0].x):vf(U):(U=M.length,function(R){for(var T=0,A;T<U;++T)W[(A=M[T]).i]=A.x(R);return W.join("")})}function E4(Q,U){var Z=typeof U,X;return U==null||Z==="boolean"?YJ(U):(Z==="number"?y2:Z==="string"?(X=e5(U))?(U=X,f8):J9:U instanceof e5?f8:U instanceof Date?xF:ZM(U)?hF:Array.isArray(U)?KM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?mF:y2)(Q,U)}var FM=180/Math.PI,Tq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Rq(Q,U,Z,X,H,Y){var B,W,M;if(B=Math.sqrt(Q*Q+U*U))Q/=B,U/=B;if(M=Q*Z+U*X)Z-=Q*M,X-=U*M;if(W=Math.sqrt(Z*Z+X*X))Z/=W,X/=W,M/=W;if(Q*X<U*Z)Q=-Q,U=-U,M=-M,B=-B;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*FM,skewX:Math.atan(M)*FM,scaleX:B,scaleY:W}}var Oq;function XM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Tq:Rq(U.a,U.b,U.c,U.d,U.e,U.f)}function HM(Q){if(Q==null)return Tq;if(!Oq)Oq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Oq.setAttribute("transform",Q),!(Q=Oq.transform.baseVal.consolidate()))return Tq;return Q=Q.matrix,Rq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function YM(Q,U,Z,X){function H(R){return R.length?R.pop()+" ":""}function Y(R,T,A,O,w,P){if(R!==A||T!==O){var V=w.push("translate(",null,U,null,Z);P.push({i:V-4,x:y2(R,A)},{i:V-2,x:y2(T,O)})}else if(A||O)w.push("translate("+A+U+O+Z)}function B(R,T,A,O){if(R!==T){if(R-T>180)T+=360;else if(T-R>180)R+=360;O.push({i:A.push(H(A)+"rotate(",null,X)-2,x:y2(R,T)})}else if(T)A.push(H(A)+"rotate("+T+X)}function W(R,T,A,O){if(R!==T)O.push({i:A.push(H(A)+"skewX(",null,X)-2,x:y2(R,T)});else if(T)A.push(H(A)+"skewX("+T+X)}function M(R,T,A,O,w,P){if(R!==A||T!==O){var V=w.push(H(w)+"scale(",null,",",null,")");P.push({i:V-4,x:y2(R,A)},{i:V-2,x:y2(T,O)})}else if(A!==1||O!==1)w.push(H(w)+"scale("+A+","+O+")")}return function(R,T){var A=[],O=[];return R=Q(R),T=Q(T),Y(R.translateX,R.translateY,T.translateX,T.translateY,A,O),B(R.rotate,T.rotate,A,O),W(R.skewX,T.skewX,A,O),M(R.scaleX,R.scaleY,T.scaleX,T.scaleY,A,O),R=T=null,function(w){var P=-1,V=O.length,S;while(++P<V)A[(S=O[P]).i]=S.x(w);return A.join("")}}}var cF=YM(XM,"px, ","px)","deg)"),lF=YM(HM,", ",")",")");var bf=0.000000000001;function zM(Q){return((Q=Math.exp(Q))+1/Q)/2}function uf(Q){return((Q=Math.exp(Q))-1/Q)/2}function Ef(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var C8=function Q(U,Z,X){function H(Y,B){var W=Y[0],M=Y[1],R=Y[2],T=B[0],A=B[1],O=B[2],w=T-W,P=A-M,V=w*w+P*P,S,f;if(V<bf)f=Math.log(O/R)/U,S=function(u){return[W+u*w,M+u*P,R*Math.exp(U*u*f)]};else{var D=Math.sqrt(V),N=(O*O-R*R+X*V)/(2*R*Z*D),y=(O*O-R*R-X*V)/(2*O*Z*D),v=Math.log(Math.sqrt(N*N+1)-N),h=Math.log(Math.sqrt(y*y+1)-y);f=(h-v)/U,S=function(u){var b=u*f,E=zM(v),m=R/(Z*D)*(E*Ef(U*b+v)-uf(v));return[W+m*w,M+m*P,R*E/zM(U*b+v)]}}return S.duration=f*1000*U/Math.SQRT2,S}return H.rho=function(Y){var B=Math.max(0.001,+Y),W=B*B,M=W*W;return Q(B,W,M)},H}(Math.SQRT2,2,4);var $9=0,BJ=0,zJ=0,WM=1000,Iq,WJ,wq=0,S8=0,Pq=0,LJ=typeof performance==="object"&&performance.now?performance:Date,LM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function MJ(){return S8||(LM(hf),S8=LJ.now()+Pq)}function hf(){S8=0}function AJ(){this._call=this._time=this._next=null}AJ.prototype=Nq.prototype={constructor:AJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?MJ():+Z)+(U==null?0:+U),!this._next&&WJ!==this){if(WJ)WJ._next=this;else Iq=this;WJ=this}this._call=Q,this._time=Z,dF()},stop:function(){if(this._call)this._call=null,this._time=1/0,dF()}};function Nq(Q,U,Z){var X=new AJ;return X.restart(Q,U,Z),X}function AM(){MJ(),++$9;var Q=Iq,U;while(Q){if((U=S8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--$9}function BM(){S8=(wq=LJ.now())+Pq,$9=BJ=0;try{AM()}finally{$9=0,mf(),S8=0}}function xf(){var Q=LJ.now(),U=Q-wq;if(U>WM)Pq-=U,wq=Q}function mf(){var Q,U=Iq,Z,X=1/0;while(U)if(U._call){if(X>U._time)X=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:Iq=Z;WJ=Q,dF(X)}function dF(Q){if($9)return;if(BJ)BJ=clearTimeout(BJ);var U=Q-S8;if(U>24){if(Q<1/0)BJ=setTimeout(BM,Q-LJ.now()-Pq);if(zJ)zJ=clearInterval(zJ)}else{if(!zJ)wq=LJ.now(),zJ=setInterval(xf,WM);$9=1,LM(BM)}}function TJ(Q,U,Z){var X=new AJ;return U=U==null?0:+U,X.restart((H)=>{X.stop(),Q(H+U)},U,Z),X}var gf=I8("start","end","cancel","interrupt"),pf=[],RM=0,MM=1,Cq=2,fq=3,TM=4,Sq=5,RJ=6;function M3(Q,U,Z,X,H,Y){var B=Q.__transition;if(!B)Q.__transition={};else if(Z in B)return;cf(Q,Z,{name:U,index:X,group:H,on:gf,tween:pf,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:RM})}function OJ(Q,U){var Z=G2(Q,U);if(Z.state>RM)throw Error("too late; already scheduled");return Z}function R2(Q,U){var Z=G2(Q,U);if(Z.state>fq)throw Error("too late; already running");return Z}function G2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function cf(Q,U,Z){var X=Q.__transition,H;X[U]=Z,Z.timer=Nq(Y,0,Z.time);function Y(R){if(Z.state=MM,Z.timer.restart(B,Z.delay,Z.time),Z.delay<=R)B(R-Z.delay)}function B(R){var T,A,O,w;if(Z.state!==MM)return M();for(T in X){if(w=X[T],w.name!==Z.name)continue;if(w.state===fq)return TJ(B);if(w.state===TM)w.state=RJ,w.timer.stop(),w.on.call("interrupt",Q,Q.__data__,w.index,w.group),delete X[T];else if(+T<U)w.state=RJ,w.timer.stop(),w.on.call("cancel",Q,Q.__data__,w.index,w.group),delete X[T]}if(TJ(function(){if(Z.state===fq)Z.state=TM,Z.timer.restart(W,Z.delay,Z.time),W(R)}),Z.state=Cq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==Cq)return;Z.state=fq,H=Array(O=Z.tween.length);for(T=0,A=-1;T<O;++T)if(w=Z.tween[T].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=w;H.length=A+1}function W(R){var T=R<Z.duration?Z.ease.call(null,R/Z.duration):(Z.timer.restart(M),Z.state=Sq,1),A=-1,O=H.length;while(++A<O)H[A].call(Q,T);if(Z.state===Sq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),M()}function M(){Z.state=RJ,Z.timer.stop(),delete X[U];for(var R in X)return;delete Q.__transition}}function T6(Q,U){var Z=Q.__transition,X,H,Y=!0,B;if(!Z)return;U=U==null?null:U+"";for(B in Z){if((X=Z[B]).name!==U){Y=!1;continue}H=X.state>Cq&&X.state<Sq,X.state=RJ,X.timer.stop(),X.on.call(H?"interrupt":"cancel",Q,Q.__data__,X.index,X.group),delete Z[B]}if(Y)delete Q.__transition}function rF(Q){return this.each(function(){T6(this,Q)})}function lf(Q,U){var Z,X;return function(){var H=R2(this,Q),Y=H.tween;if(Y!==Z){X=Z=Y;for(var B=0,W=X.length;B<W;++B)if(X[B].name===U){X=X.slice(),X.splice(B,1);break}}H.tween=X}}function df(Q,U,Z){var X,H;if(typeof Z!=="function")throw Error();return function(){var Y=R2(this,Q),B=Y.tween;if(B!==X){H=(X=B).slice();for(var W={name:U,value:Z},M=0,R=H.length;M<R;++M)if(H[M].name===U){H[M]=W;break}if(M===R)H.push(W)}Y.tween=H}}function iF(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var X=G2(this.node(),Z).tween;for(var H=0,Y=X.length,B;H<Y;++H)if((B=X[H]).name===Q)return B.value;return null}return this.each((U==null?lf:df)(Z,Q,U))}function Q9(Q,U,Z){var X=Q._id;return Q.each(function(){var H=R2(this,X);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return G2(H,X).value[U]}}function IJ(Q,U){var Z;return(typeof U==="number"?y2:U instanceof e5?f8:(Z=e5(U))?(U=Z,f8):J9)(Q,U)}function rf(Q){return function(){this.removeAttribute(Q)}}function af(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function sf(Q,U,Z){var X,H=Z+"",Y;return function(){var B=this.getAttribute(Q);return B===H?null:B===X?Y:Y=U(X=B,Z)}}function tf(Q,U,Z){var X,H=Z+"",Y;return function(){var B=this.getAttributeNS(Q.space,Q.local);return B===H?null:B===X?Y:Y=U(X=B,Z)}}function of(Q,U,Z){var X,H,Y;return function(){var B,W=Z(this),M;if(W==null)return void this.removeAttribute(Q);return B=this.getAttribute(Q),M=W+"",B===M?null:B===X&&M===H?Y:(H=M,Y=U(X=B,W))}}function nf(Q,U,Z){var X,H,Y;return function(){var B,W=Z(this),M;if(W==null)return void this.removeAttributeNS(Q.space,Q.local);return B=this.getAttributeNS(Q.space,Q.local),M=W+"",B===M?null:B===X&&M===H?Y:(H=M,Y=U(X=B,W))}}function aF(Q,U){var Z=b4(Q),X=Z==="transform"?lF:IJ;return this.attrTween(Q,typeof U==="function"?(Z.local?nf:of)(Z,X,Q9(this,"attr."+Q,U)):U==null?(Z.local?af:rf)(Z):(Z.local?tf:sf)(Z,X,U))}function ef(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function _C(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function JC(Q,U){var Z,X;function H(){var Y=U.apply(this,arguments);if(Y!==X)Z=(X=Y)&&_C(Q,Y);return Z}return H._value=U,H}function $C(Q,U){var Z,X;function H(){var Y=U.apply(this,arguments);if(Y!==X)Z=(X=Y)&&ef(Q,Y);return Z}return H._value=U,H}function sF(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 X=b4(Q);return this.tween(Z,(X.local?JC:$C)(X,U))}function QC(Q,U){return function(){OJ(this,Q).delay=+U.apply(this,arguments)}}function qC(Q,U){return U=+U,function(){OJ(this,Q).delay=U}}function tF(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?QC:qC)(U,Q)):G2(this.node(),U).delay}function UC(Q,U){return function(){R2(this,Q).duration=+U.apply(this,arguments)}}function GC(Q,U){return U=+U,function(){R2(this,Q).duration=U}}function oF(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?UC:GC)(U,Q)):G2(this.node(),U).duration}function ZC(Q,U){if(typeof U!=="function")throw Error();return function(){R2(this,Q).ease=U}}function nF(Q){var U=this._id;return arguments.length?this.each(ZC(U,Q)):G2(this.node(),U).ease}function KC(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();R2(this,Q).ease=Z}}function eF(Q){if(typeof Q!=="function")throw Error();return this.each(KC(this._id,Q))}function _X(Q){if(typeof Q!=="function")Q=t7(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],B=Y.length,W=X[H]=[],M,R=0;R<B;++R)if((M=Y[R])&&Q.call(M,M.__data__,R,Y))W.push(M);return new r2(X,this._parents,this._name,this._id)}function JX(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,X=U.length,H=Z.length,Y=Math.min(X,H),B=Array(X),W=0;W<Y;++W)for(var M=U[W],R=Z[W],T=M.length,A=B[W]=Array(T),O,w=0;w<T;++w)if(O=M[w]||R[w])A[w]=O;for(;W<X;++W)B[W]=U[W];return new r2(B,this._parents,this._name,this._id)}function FC(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 XC(Q,U,Z){var X,H,Y=FC(U)?OJ:R2;return function(){var B=Y(this,Q),W=B.on;if(W!==X)(H=(X=W).copy()).on(U,Z);B.on=H}}function $X(Q,U){var Z=this._id;return arguments.length<2?G2(this.node(),Z).on.on(Q):this.each(XC(Z,Q,U))}function HC(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function QX(){return this.on("end.remove",HC(this._id))}function qX(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=A6(Q);for(var X=this._groups,H=X.length,Y=Array(H),B=0;B<H;++B)for(var W=X[B],M=W.length,R=Y[B]=Array(M),T,A,O=0;O<M;++O)if((T=W[O])&&(A=Q.call(T,T.__data__,O,W))){if("__data__"in T)A.__data__=T.__data__;R[O]=A,M3(R[O],U,Z,O,R,G2(T,Z))}return new r2(Y,this._parents,U,Z)}function UX(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=o7(Q);for(var X=this._groups,H=X.length,Y=[],B=[],W=0;W<H;++W)for(var M=X[W],R=M.length,T,A=0;A<R;++A)if(T=M[A]){for(var O=Q.call(T,T.__data__,A,M),w,P=G2(T,Z),V=0,S=O.length;V<S;++V)if(w=O[V])M3(w,U,Z,V,O,P);Y.push(O),B.push(T)}return new r2(Y,B,U,Z)}var YC=L3.prototype.constructor;function GX(){return new YC(this._groups,this._parents)}function zC(Q,U){var Z,X,H;return function(){var Y=M6(this,Q),B=(this.style.removeProperty(Q),M6(this,Q));return Y===B?null:Y===Z&&B===X?H:H=U(Z=Y,X=B)}}function OM(Q){return function(){this.style.removeProperty(Q)}}function BC(Q,U,Z){var X,H=Z+"",Y;return function(){var B=M6(this,Q);return B===H?null:B===X?Y:Y=U(X=B,Z)}}function WC(Q,U,Z){var X,H,Y;return function(){var B=M6(this,Q),W=Z(this),M=W+"";if(W==null)M=W=(this.style.removeProperty(Q),M6(this,Q));return B===M?null:B===X&&M===H?Y:(H=M,Y=U(X=B,W))}}function LC(Q,U){var Z,X,H,Y="style."+U,B="end."+Y,W;return function(){var M=R2(this,Q),R=M.on,T=M.value[Y]==null?W||(W=OM(U)):void 0;if(R!==Z||H!==T)(X=(Z=R).copy()).on(B,H=T);M.on=X}}function ZX(Q,U,Z){var X=(Q+="")==="transform"?cF:IJ;return U==null?this.styleTween(Q,zC(Q,X)).on("end.style."+Q,OM(Q)):typeof U==="function"?this.styleTween(Q,WC(Q,X,Q9(this,"style."+Q,U))).each(LC(this._id,Q)):this.styleTween(Q,BC(Q,X,U),Z).on("end.style."+Q,null)}function AC(Q,U,Z){return function(X){this.style.setProperty(Q,U.call(this,X),Z)}}function MC(Q,U,Z){var X,H;function Y(){var B=U.apply(this,arguments);if(B!==H)X=(H=B)&&AC(Q,B,Z);return X}return Y._value=U,Y}function KX(Q,U,Z){var X="style."+(Q+="");if(arguments.length<2)return(X=this.tween(X))&&X._value;if(U==null)return this.tween(X,null);if(typeof U!=="function")throw Error();return this.tween(X,MC(Q,U,Z==null?"":Z))}function TC(Q){return function(){this.textContent=Q}}function RC(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function FX(Q){return this.tween("text",typeof Q==="function"?RC(Q9(this,"text",Q)):TC(Q==null?"":Q+""))}function OC(Q){return function(U){this.textContent=Q.call(this,U)}}function IC(Q){var U,Z;function X(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&OC(H);return U}return X._value=Q,X}function XX(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,IC(Q))}function HX(){var Q=this._name,U=this._id,Z=jq();for(var X=this._groups,H=X.length,Y=0;Y<H;++Y)for(var B=X[Y],W=B.length,M,R=0;R<W;++R)if(M=B[R]){var T=G2(M,U);M3(M,Q,Z,R,B,{time:T.time+T.delay+T.duration,delay:0,duration:T.duration,ease:T.ease})}return new r2(X,this._parents,Q,Z)}function YX(){var Q,U,Z=this,X=Z._id,H=Z.size();return new Promise(function(Y,B){var W={value:B},M={value:function(){if(--H===0)Y()}};if(Z.each(function(){var R=R2(this,X),T=R.on;if(T!==Q)U=(Q=T).copy(),U._.cancel.push(W),U._.interrupt.push(W),U._.end.push(M);R.on=U}),H===0)Y()})}var wC=0;function r2(Q,U,Z,X){this._groups=Q,this._parents=U,this._name=Z,this._id=X}function IM(Q){return L3().transition(Q)}function jq(){return++wC}var T3=L3.prototype;r2.prototype=IM.prototype={constructor:r2,select:qX,selectAll:UX,selectChild:T3.selectChild,selectChildren:T3.selectChildren,filter:_X,merge:JX,selection:GX,transition:HX,call:T3.call,nodes:T3.nodes,node:T3.node,size:T3.size,empty:T3.empty,each:T3.each,on:$X,attr:aF,attrTween:sF,style:ZX,styleTween:KX,text:FX,textTween:XX,remove:QX,tween:iF,delay:tF,duration:oF,ease:nF,easeVarying:eF,end:YX,[Symbol.iterator]:T3[Symbol.iterator]};function yq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var PC={time:null,delay:0,duration:250,ease:yq};function NC(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function zX(Q){var U,Z;if(Q instanceof r2)U=Q._id,Q=Q._name;else U=jq(),(Z=PC).time=MJ(),Q=Q==null?null:Q+"";for(var X=this._groups,H=X.length,Y=0;Y<H;++Y)for(var B=X[Y],W=B.length,M,R=0;R<W;++R)if(M=B[R])M3(M,Q,U,R,B,Z||NC(M,U));return new r2(X,this._parents,Q,U)}L3.prototype.interrupt=rF;L3.prototype.transition=zX;var wJ=(Q)=>()=>Q;function BX(Q,{sourceEvent:U,target:Z,transform:X,dispatch:H}){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:X,enumerable:!0,configurable:!0},_:{value:H}})}function _4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}_4.prototype={constructor:_4,scale:function(Q){return Q===1?this:new _4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new _4(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 j8=new _4(1,0,0);PJ.prototype=_4.prototype;function PJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return j8;return Q.__zoom}function Vq(Q){Q.stopImmediatePropagation()}function y8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function fC(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function CC(){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 wM(){return this.__zoom||j8}function SC(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function jC(){return navigator.maxTouchPoints||"ontouchstart"in this}function yC(Q,U,Z){var X=Q.invertX(U[0][0])-Z[0][0],H=Q.invertX(U[1][0])-Z[1][0],Y=Q.invertY(U[0][1])-Z[0][1],B=Q.invertY(U[1][1])-Z[1][1];return Q.translate(H>X?(X+H)/2:Math.min(0,X)||Math.max(0,H),B>Y?(Y+B)/2:Math.min(0,Y)||Math.max(0,B))}function NJ(){var Q=fC,U=CC,Z=yC,X=SC,H=jC,Y=[0,1/0],B=[[-1/0,-1/0],[1/0,1/0]],W=250,M=C8,R=I8("start","zoom","end"),T,A,O,w=500,P=150,V=0,S=10;function f(x){x.property("__zoom",wM).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",m).filter(H).on("touchstart.zoom",$1).on("touchmove.zoom",J1).on("touchend.zoom touchcancel.zoom",t).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}f.transform=function(x,g,c,a){var r=x.selection?x.selection():x;if(r.property("__zoom",wM),x!==r)v(x,g,c,a);else r.interrupt().each(function(){h(this,arguments).event(a).start().zoom(null,typeof g==="function"?g.apply(this,arguments):g).end()})},f.scaleBy=function(x,g,c,a){f.scaleTo(x,function(){var r=this.__zoom.k,n=typeof g==="function"?g.apply(this,arguments):g;return r*n},c,a)},f.scaleTo=function(x,g,c,a){f.transform(x,function(){var r=U.apply(this,arguments),n=this.__zoom,k=c==null?y(r):typeof c==="function"?c.apply(this,arguments):c,p=n.invert(k),q1=typeof g==="function"?g.apply(this,arguments):g;return Z(N(D(n,q1),k,p),r,B)},c,a)},f.translateBy=function(x,g,c,a){f.transform(x,function(){return Z(this.__zoom.translate(typeof g==="function"?g.apply(this,arguments):g,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),B)},null,a)},f.translateTo=function(x,g,c,a,r){f.transform(x,function(){var n=U.apply(this,arguments),k=this.__zoom,p=a==null?y(n):typeof a==="function"?a.apply(this,arguments):a;return Z(j8.translate(p[0],p[1]).scale(k.k).translate(typeof g==="function"?-g.apply(this,arguments):-g,typeof c==="function"?-c.apply(this,arguments):-c),n,B)},a,r)};function D(x,g){return g=Math.max(Y[0],Math.min(Y[1],g)),g===x.k?x:new _4(g,x.x,x.y)}function N(x,g,c){var a=g[0]-c[0]*x.k,r=g[1]-c[1]*x.k;return a===x.x&&r===x.y?x:new _4(x.k,a,r)}function y(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function v(x,g,c,a){x.on("start.zoom",function(){h(this,arguments).event(a).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).event(a).end()}).tween("zoom",function(){var r=this,n=arguments,k=h(r,n).event(a),p=U.apply(r,n),q1=c==null?y(p):typeof c==="function"?c.apply(r,n):c,s=Math.max(p[1][0]-p[0][0],p[1][1]-p[0][1]),H1=r.__zoom,M1=typeof g==="function"?g.apply(r,n):g,A1=M(H1.invert(q1).concat(s/H1.k),M1.invert(q1).concat(s/M1.k));return function(B1){if(B1===1)B1=M1;else{var U1=A1(B1),O1=s/U1[2];B1=new _4(O1,q1[0]-U1[0]*O1,q1[1]-U1[1]*O1)}k.zoom(null,B1)}})}function h(x,g,c){return!c&&x.__zooming||new u(x,g)}function u(x,g){this.that=x,this.args=g,this.active=0,this.sourceEvent=null,this.extent=U.apply(x,g),this.taps=0}u.prototype={event:function(x){if(x)this.sourceEvent=x;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(x,g){if(this.mouse&&x!=="mouse")this.mouse[1]=g.invert(this.mouse[0]);if(this.touch0&&x!=="touch")this.touch0[1]=g.invert(this.touch0[0]);if(this.touch1&&x!=="touch")this.touch1[1]=g.invert(this.touch1[0]);return this.that.__zoom=g,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(x){var g=U2(this.that).datum();R.call(x,this.that,new BX(x,{sourceEvent:this.sourceEvent,target:f,type:x,transform:this.that.__zoom,dispatch:R}),g)}};function b(x,...g){if(!Q.apply(this,arguments))return;var c=h(this,g).event(x),a=this.__zoom,r=Math.max(Y[0],Math.min(Y[1],a.k*Math.pow(2,X.apply(this,arguments)))),n=j2(x);if(c.wheel){if(c.mouse[0][0]!==n[0]||c.mouse[0][1]!==n[1])c.mouse[1]=a.invert(c.mouse[0]=n);clearTimeout(c.wheel)}else if(a.k===r)return;else c.mouse=[n,a.invert(n)],T6(this),c.start();y8(x),c.wheel=setTimeout(k,P),c.zoom("mouse",Z(N(D(a,r),c.mouse[0],c.mouse[1]),c.extent,B));function k(){c.wheel=null,c.end()}}function E(x,...g){if(O||!Q.apply(this,arguments))return;var c=x.currentTarget,a=h(this,g,!0).event(x),r=U2(x.view).on("mousemove.zoom",q1,!0).on("mouseup.zoom",s,!0),n=j2(x,c),k=x.clientX,p=x.clientY;n7(x.view),Vq(x),a.mouse=[n,this.__zoom.invert(n)],T6(this),a.start();function q1(H1){if(y8(H1),!a.moved){var M1=H1.clientX-k,A1=H1.clientY-p;a.moved=M1*M1+A1*A1>V}a.event(H1).zoom("mouse",Z(N(a.that.__zoom,a.mouse[0]=j2(H1,c),a.mouse[1]),a.extent,B))}function s(H1){r.on("mousemove.zoom mouseup.zoom",null),qJ(H1.view,a.moved),y8(H1),a.event(H1).end()}}function m(x,...g){if(!Q.apply(this,arguments))return;var c=this.__zoom,a=j2(x.changedTouches?x.changedTouches[0]:x,this),r=c.invert(a),n=c.k*(x.shiftKey?0.5:2),k=Z(N(D(c,n),a,r),U.apply(this,g),B);if(y8(x),W>0)U2(this).transition().duration(W).call(v,k,a,x);else U2(this).call(f.transform,k,a,x)}function $1(x,...g){if(!Q.apply(this,arguments))return;var c=x.touches,a=c.length,r=h(this,g,x.changedTouches.length===a).event(x),n,k,p,q1;Vq(x);for(k=0;k<a;++k)if(p=c[k],q1=j2(p,this),q1=[q1,this.__zoom.invert(q1),p.identifier],!r.touch0)r.touch0=q1,n=!0,r.taps=1+!!T;else if(!r.touch1&&r.touch0[2]!==q1[2])r.touch1=q1,r.taps=0;if(T)T=clearTimeout(T);if(n){if(r.taps<2)A=q1[0],T=setTimeout(function(){T=null},w);T6(this),r.start()}}function J1(x,...g){if(!this.__zooming)return;var c=h(this,g).event(x),a=x.changedTouches,r=a.length,n,k,p,q1;y8(x);for(n=0;n<r;++n)if(k=a[n],p=j2(k,this),c.touch0&&c.touch0[2]===k.identifier)c.touch0[0]=p;else if(c.touch1&&c.touch1[2]===k.identifier)c.touch1[0]=p;if(k=c.that.__zoom,c.touch1){var s=c.touch0[0],H1=c.touch0[1],M1=c.touch1[0],A1=c.touch1[1],B1=(B1=M1[0]-s[0])*B1+(B1=M1[1]-s[1])*B1,U1=(U1=A1[0]-H1[0])*U1+(U1=A1[1]-H1[1])*U1;k=D(k,Math.sqrt(B1/U1)),p=[(s[0]+M1[0])/2,(s[1]+M1[1])/2],q1=[(H1[0]+A1[0])/2,(H1[1]+A1[1])/2]}else if(c.touch0)p=c.touch0[0],q1=c.touch0[1];else return;c.zoom("touch",Z(N(k,p,q1),c.extent,B))}function t(x,...g){if(!this.__zooming)return;var c=h(this,g).event(x),a=x.changedTouches,r=a.length,n,k;if(Vq(x),O)clearTimeout(O);O=setTimeout(function(){O=null},w);for(n=0;n<r;++n)if(k=a[n],c.touch0&&c.touch0[2]===k.identifier)delete c.touch0;else if(c.touch1&&c.touch1[2]===k.identifier)delete c.touch1;if(c.touch1&&!c.touch0)c.touch0=c.touch1,delete c.touch1;if(c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),c.taps===2){if(k=j2(k,this),Math.hypot(A[0]-k[0],A[1]-k[1])<S){var p=U2(this).on("dblclick.zoom");if(p)p.apply(this,arguments)}}}return f.wheelDelta=function(x){return arguments.length?(X=typeof x==="function"?x:wJ(+x),f):X},f.filter=function(x){return arguments.length?(Q=typeof x==="function"?x:wJ(!!x),f):Q},f.touchable=function(x){return arguments.length?(H=typeof x==="function"?x:wJ(!!x),f):H},f.extent=function(x){return arguments.length?(U=typeof x==="function"?x:wJ([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),f):U},f.scaleExtent=function(x){return arguments.length?(Y[0]=+x[0],Y[1]=+x[1],f):[Y[0],Y[1]]},f.translateExtent=function(x){return arguments.length?(B[0][0]=+x[0][0],B[1][0]=+x[1][0],B[0][1]=+x[0][1],B[1][1]=+x[1][1],f):[[B[0][0],B[0][1]],[B[1][0],B[1][1]]]},f.constrain=function(x){return arguments.length?(Z=x,f):Z},f.duration=function(x){return arguments.length?(W=+x,f):W},f.interpolate=function(x){return arguments.length?(M=x,f):M},f.on=function(){var x=R.on.apply(R,arguments);return x===R?f:x},f.clickDistance=function(x){return arguments.length?(V=(x=+x)*x,f):Math.sqrt(V)},f.tapDistance=function(x){return arguments.length?(S=+x,f):S},f}var i2={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:X})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:X}", 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.`},Z9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],TX=["Enter"," ","Escape"],RX={"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"},w6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(w6||(w6={}));var R3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(R3||(R3={}));var V8;(function(Q){Q.Partial="partial",Q.Full="full"})(V8||(V8={}));var OX={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},h4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(h4||(h4={}));var U9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(U9||(U9={}));var V1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(V1||(V1={}));var PM={[V1.Left]:V1.Right,[V1.Right]:V1.Left,[V1.Top]:V1.Bottom,[V1.Bottom]:V1.Top},IX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),hM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),wX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var CJ=(Q,U=[0,0])=>{let{width:Z,height:X}=u5(Q),H=Q.origin??U,Y=Z*H[0],B=X*H[1];return{x:Q.position.x-Y,y:Q.position.y-B}},PX=(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,X=Q.reduce((H,Y)=>{let B=typeof Y==="string",W=!U.nodeLookup&&!B?Y:void 0;if(U.nodeLookup)W=B?U.nodeLookup.get(Y):!wX(Y)?U.nodeLookup.get(Y.id):Y;if(!W)return H;return Z=!0,Eq(H,Dq(W,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?hq(X):{x:0,y:0,width:0,height:0}},b8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},X=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=Eq(Z,Dq(H)),X=!0}),X?hq(Z):{x:0,y:0,width:0,height:0}},bq=(Q,U,[Z,X,H]=[0,0,1],Y=!1,B=!1)=>{let W=(U.x-Z)/H,M=(U.y-X)/H,R=U.width/H,T=U.height/H,A=[];for(let O of Q.values()){let{measured:w,selectable:P=!0,hidden:V=!1}=O;if(B&&!P||V)continue;let S=w.width??O.width??O.initialWidth??0,f=w.height??O.height??O.initialHeight??0,{x:D,y:N}=O.internals.positionAbsolute,y=cM(W,M,R,T,D,N,S,f),v=S*f,h=Y&&y>0;if(!O.internals.handleBounds||h||y>=v||O.dragging)A.push(O)}return A},xM=(Q,U)=>{let Z=new Set;return Q.forEach((X)=>{Z.add(X.id)}),U.filter((X)=>Z.has(X.source)||Z.has(X.target))};function VC(Q,U){let Z=new Map,X=U?.nodes?new Set(U.nodes.map((H)=>H.id)):null;return Q.forEach((H)=>{let Y;if(U?.includeHiddenNodes){let{width:B,height:W}=u5(H);Y=B>0&&W>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!X||X.has(H.id)))Z.set(H.id,H)}),Z}async function mM({nodes:Q,width:U,height:Z,panZoom:X,minZoom:H,maxZoom:Y},B){if(Q.size===0)return!0;let W=VC(Q,B),M=b8(W),R=jJ(M,U,Z,B?.minZoom??H,B?.maxZoom??Y,B?.padding??0.1);return await X.setViewport(R,{duration:B?.duration,ease:B?.ease,interpolate:B?.interpolate}),!0}function NX({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:X=[0,0],nodeExtent:H,onError:Y}){let B=Z.get(Q),W=B.parentId?Z.get(B.parentId):void 0,{x:M,y:R}=W?W.internals.positionAbsolute:{x:0,y:0},T=B.origin??X,A=B.extent||H;if(B.extent==="parent"&&!B.expandParent)if(!W)Y?.("005",i2.error005());else{let{width:w,height:P}=u5(W);if(w&&P)A=[[M,R],[M+w,R+P]]}else if(W&&D8(B.extent))A=[[B.extent[0][0]+M,B.extent[0][1]+R],[B.extent[1][0]+M,B.extent[1][1]+R]];let O=D8(A)?k8(U,A,B.measured):U;if(B.measured.width===void 0||B.measured.height===void 0)Y?.("015",i2.error015());return{position:{x:O.x-M+(B.measured.width??0)*T[0],y:O.y-R+(B.measured.height??0)*T[1]},positionAbsolute:O}}async function gM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:X,onBeforeDelete:H}){let Y=new Set(Q.map((O)=>O.id)),B=[];for(let O of Z){if(O.deletable===!1)continue;let w=Y.has(O.id),P=!w&&O.parentId&&B.find((V)=>V.id===O.parentId);if(w||P)B.push(O)}let W=new Set(U.map((O)=>O.id)),M=X.filter((O)=>O.deletable!==!1),T=xM(B,M);for(let O of M)if(W.has(O.id)&&!T.find((P)=>P.id===O.id))T.push(O);if(!H)return{edges:T,nodes:B};let A=await H({nodes:B,edges:T});if(typeof A==="boolean")return A?{edges:T,nodes:B}:{edges:[],nodes:[]};return A}var G9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),k8=(Q={x:0,y:0},U,Z)=>({x:G9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:G9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function pM(Q,U,Z){let{width:X,height:H}=u5(Z),{x:Y,y:B}=Z.internals.positionAbsolute;return k8(Q,[[Y,B],[Y+X,B+H]],U)}var NM=(Q,U,Z)=>{if(Q<U)return G9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-G9(Math.abs(Q-Z),1,U)/U;return 0},uq=(Q,U,Z=15,X=40)=>{let H=NM(Q.x,X,U.width-X)*Z,Y=NM(Q.y,X,U.height-X)*Z;return[H,Y]},Eq=(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)}),MX=({x:Q,y:U,width:Z,height:X})=>({x:Q,y:U,x2:Q+Z,y2:U+X}),hq=({x:Q,y:U,x2:Z,y2:X})=>({x:Q,y:U,width:Z-Q,height:X-U}),K9=(Q,U=[0,0])=>{let{x:Z,y:X}=wX(Q)?Q.internals.positionAbsolute:CJ(Q,U);return{x:Z,y:X,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},Dq=(Q,U=[0,0])=>{let{x:Z,y:X}=wX(Q)?Q.internals.positionAbsolute:CJ(Q,U);return{x:Z,y:X,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:X+(Q.measured?.height??Q.height??Q.initialHeight??0)}},fX=(Q,U)=>hq(Eq(MX(Q),MX(U))),cM=(Q,U,Z,X,H,Y,B,W)=>{let M=Math.max(0,Math.min(Q+Z,H+B)-Math.max(Q,H)),R=Math.max(0,Math.min(U+X,Y+W)-Math.max(U,Y));return Math.ceil(M*R)},SJ=(Q,U)=>cM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),CX=(Q)=>D5(Q.width)&&D5(Q.height)&&D5(Q.x)&&D5(Q.y),D5=(Q)=>!isNaN(Q)&&isFinite(Q),SX=(Q,U)=>(Z,X)=>{console.warn(`[${Q}]: ${X} Help: ${U}error#${Z}`)},F9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},X9=({x:Q,y:U},[Z,X,H],Y=!1,B=[1,1])=>{let W={x:(Q-Z)/H,y:(U-X)/H};return Y?F9(W,B):W},v8=({x:Q,y:U},[Z,X,H])=>{return{x:Q*H+Z,y:U*H+X}};function q9(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 kC(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let X=q9(Q,Z),H=q9(Q,U);return{top:X,right:H,bottom:X,left:H,x:H*2,y:X*2}}if(typeof Q==="object"){let X=q9(Q.top??Q.y??0,Z),H=q9(Q.bottom??Q.y??0,Z),Y=q9(Q.left??Q.x??0,U),B=q9(Q.right??Q.x??0,U);return{top:X,right:B,bottom:H,left:Y,x:Y+B,y:X+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function vC(Q,U,Z,X,H,Y){let{x:B,y:W}=v8(Q,[U,Z,X]),{x:M,y:R}=v8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,X]),T=H-M,A=Y-R;return{left:Math.floor(B),top:Math.floor(W),right:Math.floor(T),bottom:Math.floor(A)}}var jJ=(Q,U,Z,X,H,Y)=>{let B=kC(Y,U,Z),W=(U-B.x)/Q.width,M=(Z-B.y)/Q.height,R=Math.min(W,M),T=G9(R,X,H),A=Q.x+Q.width/2,O=Q.y+Q.height/2,w=U/2-A*T,P=Z/2-O*T,V=vC(Q,w,P,T,U,Z),S={left:Math.min(V.left-B.left,0),top:Math.min(V.top-B.top,0),right:Math.min(V.right-B.right,0),bottom:Math.min(V.bottom-B.bottom,0)};return{x:w-S.left+S.right,y:P-S.top+S.bottom,zoom:T}},H9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function D8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function u5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function jX(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function yX(Q,U={width:0,height:0},Z,X,H){let Y={...Q},B=X.get(Z);if(B){let W=B.origin||H;Y.x+=B.internals.positionAbsolute.x-(U.width??0)*W[0],Y.y+=B.internals.positionAbsolute.y-(U.height??0)*W[1]}return Y}function VX(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function lM(){let Q,U;return{promise:new Promise((X,H)=>{Q=X,U=H}),resolve:Q,reject:U}}function dM(Q){return{...RX,...Q||{}}}function DC(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 X=U.getBoundingClientRect();if(X.width===0&&X.height===0)return!0;let H=document.querySelector(`.${Q}-flow__attribution`);if(!H||!H.isConnected)return!1;let Y=getComputedStyle(H);if(Y.display==="none")return!1;if(Y.visibility==="hidden"||Y.visibility==="collapse")return!1;if(Y.opacity==="0")return!1;let B=H.getBoundingClientRect();if(B.width===0&&B.height===0)return!1;return!0}var fM=!1;function rM(Q){if(fM)return;fM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!DC(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 kX(Q){return Q===null?null:Q?"valid":"invalid"}function fJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:X,containerBounds:H}){let{x:Y,y:B}=b5(Q),W=X9({x:Y-(H?.left??0),y:B-(H?.top??0)},X),{x:M,y:R}=Z?F9(W,U):W;return{xSnapped:M,ySnapped:R,...W}}var xq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),vX=(Q)=>Q?.getRootNode?.()||window?.document,bC=["INPUT","SELECT","TEXTAREA"];function DX(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return bC.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var bX=(Q)=>("clientX"in Q),b5=(Q,U)=>{let Z=bX(Q),X=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:X-(U?.left??0),y:H-(U?.top??0)}},CM=(Q,U,Z,X,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((B)=>{let W=B.getBoundingClientRect();return{id:B.getAttribute("data-handleid"),type:Q,nodeId:H,position:B.getAttribute("data-handlepos"),x:(W.left-Z.left)/X,y:(W.top-Z.top)/X,...xq(B)}})};function mq({sourceX:Q,sourceY:U,targetX:Z,targetY:X,sourceControlX:H,sourceControlY:Y,targetControlX:B,targetControlY:W}){let M=Q*0.125+H*0.375+B*0.375+Z*0.125,R=U*0.125+Y*0.375+W*0.375+X*0.125,T=Math.abs(M-Q),A=Math.abs(R-U);return[M,R,T,A]}function kq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function SM({pos:Q,x1:U,y1:Z,x2:X,y2:H,c:Y}){switch(Q){case V1.Left:return[U-kq(U-X,Y),Z];case V1.Right:return[U+kq(X-U,Y),Z];case V1.Top:return[U,Z-kq(Z-H,Y)];case V1.Bottom:return[U,Z+kq(H-Z,Y)]}}function gq({sourceX:Q,sourceY:U,sourcePosition:Z=V1.Bottom,targetX:X,targetY:H,targetPosition:Y=V1.Top,curvature:B=0.25}){let[W,M]=SM({pos:Z,x1:Q,y1:U,x2:X,y2:H,c:B}),[R,T]=SM({pos:Y,x1:X,y1:H,x2:Q,y2:U,c:B}),[A,O,w,P]=mq({sourceX:Q,sourceY:U,targetX:X,targetY:H,sourceControlX:W,sourceControlY:M,targetControlX:R,targetControlY:T});return[`M${Q},${U} C${W},${M} ${R},${T} ${X},${H}`,A,O,w,P]}function uX({sourceX:Q,sourceY:U,targetX:Z,targetY:X}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,B=Math.abs(X-U)/2,W=X<U?X+B:X-B;return[Y,W,H,B]}function iM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:X=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return X;let B=H&&Z?X+1000:X,W=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return B+W}function aM({sourceNode:Q,targetNode:U,width:Z,height:X,transform:H}){let Y=Eq(Dq(Q),Dq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let B={x:-H[0]/H[2],y:-H[1]/H[2],width:Z/H[2],height:X/H[2]};return SJ(B,hq(Y))>0}var uC=({source:Q,sourceHandle:U,target:Z,targetHandle:X})=>`xy-edge__${Q}${U||""}-${Z}${X||""}`,EC=(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))},sM=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",i2.error006()),U;let X=Z.getEdgeId||uC,H;if(IX(Q))H={...Q};else H={...Q,id:X(Q)};if(EC(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function pq({sourceX:Q,sourceY:U,targetX:Z,targetY:X}){let[H,Y,B,W]=uX({sourceX:Q,sourceY:U,targetX:Z,targetY:X});return[`M ${Q},${U}L ${Z},${X}`,H,Y,B,W]}var jM={[V1.Left]:{x:-1,y:0},[V1.Right]:{x:1,y:0},[V1.Top]:{x:0,y:-1},[V1.Bottom]:{x:0,y:1}},hC=({source:Q,sourcePosition:U=V1.Bottom,target:Z})=>{if(U===V1.Left||U===V1.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}},yM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function xC({source:Q,sourcePosition:U=V1.Bottom,target:Z,targetPosition:X=V1.Top,center:H,offset:Y,stepPosition:B}){let W=jM[U],M=jM[X],R={x:Q.x+W.x*Y,y:Q.y+W.y*Y},T={x:Z.x+M.x*Y,y:Z.y+M.y*Y},A=hC({source:R,sourcePosition:U,target:T}),O=A.x!==0?"x":"y",w=A[O],P=[],V,S,f={x:0,y:0},D={x:0,y:0},[,,N,y]=uX({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(W[O]*M[O]===-1){if(O==="x")V=H.x??R.x+(T.x-R.x)*B,S=H.y??(R.y+T.y)/2;else V=H.x??(R.x+T.x)/2,S=H.y??R.y+(T.y-R.y)*B;let b=[{x:V,y:R.y},{x:V,y:T.y}],E=[{x:R.x,y:S},{x:T.x,y:S}];if(W[O]===w)P=O==="x"?b:E;else P=O==="x"?E:b}else{let b=[{x:R.x,y:T.y}],E=[{x:T.x,y:R.y}];if(O==="x")P=W.x===w?E:b;else P=W.y===w?b:E;if(U===X){let x=Math.abs(Q[O]-Z[O]);if(x<=Y){let g=Math.min(Y-1,Y-x);if(W[O]===w)f[O]=(R[O]>Q[O]?-1:1)*g;else D[O]=(T[O]>Z[O]?-1:1)*g}}if(U!==X){let x=O==="x"?"y":"x",g=W[O]===M[x],c=R[x]>T[x],a=R[x]<T[x];if(W[O]===1&&(!g&&c||g&&a)||W[O]!==1&&(!g&&a||g&&c))P=O==="x"?b:E}let m={x:R.x+f.x,y:R.y+f.y},$1={x:T.x+D.x,y:T.y+D.y},J1=Math.max(Math.abs(m.x-P[0].x),Math.abs($1.x-P[0].x)),t=Math.max(Math.abs(m.y-P[0].y),Math.abs($1.y-P[0].y));if(J1>=t)V=(m.x+$1.x)/2,S=P[0].y;else V=P[0].x,S=(m.y+$1.y)/2}let v={x:R.x+f.x,y:R.y+f.y},h={x:T.x+D.x,y:T.y+D.y};return[[Q,...v.x!==P[0].x||v.y!==P[0].y?[v]:[],...P,...h.x!==P[P.length-1].x||h.y!==P[P.length-1].y?[h]:[],Z],V,S,N,y]}function mC(Q,U,Z,X){let H=Math.min(yM(Q,U)/2,yM(U,Z)/2,X),{x:Y,y:B}=U;if(Q.x===Y&&Y===Z.x||Q.y===B&&B===Z.y)return`L${Y} ${B}`;if(Q.y===B){let R=Q.x<Z.x?-1:1,T=Q.y<Z.y?1:-1;return`L ${Y+H*R},${B}Q ${Y},${B} ${Y},${B+H*T}`}let W=Q.x<Z.x?1:-1,M=Q.y<Z.y?-1:1;return`L ${Y},${B+H*M}Q ${Y},${B} ${Y+H*W},${B}`}function yJ({sourceX:Q,sourceY:U,sourcePosition:Z=V1.Bottom,targetX:X,targetY:H,targetPosition:Y=V1.Top,borderRadius:B=5,centerX:W,centerY:M,offset:R=20,stepPosition:T=0.5}){let[A,O,w,P,V]=xC({source:{x:Q,y:U},sourcePosition:Z,target:{x:X,y:H},targetPosition:Y,center:{x:W,y:M},offset:R,stepPosition:T}),S=`M${A[0].x} ${A[0].y}`;for(let f=1;f<A.length-1;f++)S+=mC(A[f-1],A[f],A[f+1],B);return S+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[S,O,w,P,V]}function VM(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(!VM(U)||!VM(Z))return null;let X=U.internals.handleBounds||kM(U.handles),H=Z.internals.handleBounds||kM(Z.handles),Y=vM(X?.source??[],Q.sourceHandle),B=vM(Q.connectionMode===w6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!B)return Q.onError?.("008",i2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let W=Y?.position||V1.Bottom,M=B?.position||V1.Top,R=P6(U,Y,W),T=P6(Z,B,M);return{sourceX:R.x,sourceY:R.y,targetX:T.x,targetY:T.y,sourcePosition:W,targetPosition:M}}function kM(Q){if(!Q)return null;let U=[],Z=[];for(let X of Q)if(X.width=X.width??1,X.height=X.height??1,X.type==="source")U.push(X);else if(X.type==="target")Z.push(X);return{source:U,target:Z}}function P6(Q,U,Z=V1.Left,X=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:B,height:W}=U??u5(Q);if(X)return{x:H+B/2,y:Y+W/2};switch(U?.position??Z){case V1.Top:return{x:H+B/2,y:Y};case V1.Right:return{x:H+B,y:Y+W/2};case V1.Bottom:return{x:H+B/2,y:Y+W};case V1.Left:return{x:H,y:Y+W/2}}}function vM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function cq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((X)=>`${X}=${Q[X]}`).join("&")}`}function oM(Q,{id:U,defaultColor:Z,defaultMarkerStart:X,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((B,W)=>{return[W.markerStart||X,W.markerEnd||H].forEach((M)=>{if(M&&typeof M==="object"){let R=cq(M,U);if(!Y.has(R))B.push({id:R,color:M.color||Z,...M}),Y.add(R)}}),B},[]).sort((B,W)=>B.id.localeCompare(W.id))}function nM(Q,U,Z,X,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let B=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-X],W=[-100*Y,-100];switch(Z){case V1.Right:B=[(Q.x+Q.width)*U.zoom+U.x+X,(Q.y+Q.height*Y)*U.zoom+U.y],W=[0,-100*Y];break;case V1.Bottom:B[1]=(Q.y+Q.height)*U.zoom+U.y+X,W[1]=0;break;case V1.Left:B=[Q.x*U.zoom+U.x-X,(Q.y+Q.height*Y)*U.zoom+U.y],W=[-100,-100*Y];break}return`translate(${B[0]}px, ${B[1]}px) translate(${W[0]}%, ${W[1]}%)`}var eM=1000,gC=10,EX={nodeOrigin:[0,0],nodeExtent:Z9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},pC={...EX,checkEquality:!0};function hX(Q,U){let Z={...Q};for(let X in U)if(U[X]!==void 0)Z[X]=U[X];return Z}function _T(Q,U,Z){let X=hX(EX,Z);for(let H of Q.values())if(H.parentId)mX(H,Q,U,X);else{let Y=CJ(H,X.nodeOrigin),B=D8(H.extent)?H.extent:X.nodeExtent,W=k8(Y,B,u5(H));H.internals.positionAbsolute=W}}function cC(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],X=[];for(let H of Q.handles){let Y={id:H.id,width:H.width??1,height:H.height??1,nodeId:Q.id,x:H.x,y:H.y,position:H.position,type:H.type};if(H.type==="source")Z.push(Y);else if(H.type==="target")X.push(Y)}return{source:Z,target:X}}function xX(Q){return Q==="manual"}function lq(Q,U,Z,X={}){let H=hX(pC,X),Y={i:0},B=new Map(U),W=H?.elevateNodesOnSelect&&!xX(H.zIndexMode)?eM:0,M=Q.length>0,R=!1;U.clear(),Z.clear();for(let T of Q){let A=B.get(T.id);if(H.checkEquality&&T===A?.internals.userNode)U.set(T.id,A);else{let O=CJ(T,H.nodeOrigin),w=D8(T.extent)?T.extent:H.nodeExtent,P=k8(O,w,u5(T));A={...H.defaults,...T,measured:{width:T.measured?.width,height:T.measured?.height},internals:{positionAbsolute:P,handleBounds:cC(T,A),z:JT(T,W,H.zIndexMode),userNode:T}},U.set(T.id,A)}if((A.measured===void 0||A.measured.width===void 0||A.measured.height===void 0)&&!A.hidden)M=!1;if(T.parentId)mX(A,U,Z,X,Y);R||=T.selected??!1}return{nodesInitialized:M,hasSelectedNodes:R}}function lC(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 mX(Q,U,Z,X,H){let{elevateNodesOnSelect:Y,nodeOrigin:B,nodeExtent:W,zIndexMode:M}=hX(EX,X),R=Q.parentId,T=U.get(R);if(!T){console.warn(`Parent node ${R} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(lC(Q,Z),H&&!T.parentId&&T.internals.rootParentIndex===void 0&&M==="auto")T.internals.rootParentIndex=++H.i,T.internals.z=T.internals.z+H.i*gC;if(H&&T.internals.rootParentIndex!==void 0)H.i=T.internals.rootParentIndex;let A=Y&&!xX(M)?eM:0,{x:O,y:w,z:P}=dC(Q,T,B,W,A,M),{positionAbsolute:V}=Q.internals,S=O!==V.x||w!==V.y;if(S||P!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:S?{x:O,y:w}:V,z:P}})}function JT(Q,U,Z){let X=D5(Q.zIndex)?Q.zIndex:0;if(xX(Z))return X;return X+(Q.selected?U:0)}function dC(Q,U,Z,X,H,Y){let{x:B,y:W}=U.internals.positionAbsolute,M=u5(Q),R=CJ(Q,Z),T=D8(Q.extent)?k8(R,Q.extent,M):R,A=k8({x:B+T.x,y:W+T.y},X,M);if(Q.extent==="parent")A=pM(A,M,U);let O=JT(Q,H,Y),w=U.internals.z??0;return{x:A.x,y:A.y,z:w>=O?w+1:O}}function dq(Q,U,Z,X=[0,0]){let H=[],Y=new Map;for(let B of Q){let W=U.get(B.parentId);if(!W)continue;let M=Y.get(B.parentId)?.expandedRect??K9(W),R=fX(M,B.rect);Y.set(B.parentId,{expandedRect:R,parent:W})}if(Y.size>0)Y.forEach(({expandedRect:B,parent:W},M)=>{let R=W.internals.positionAbsolute,T=u5(W),A=W.origin??X,O=B.x<R.x?Math.round(Math.abs(R.x-B.x)):0,w=B.y<R.y?Math.round(Math.abs(R.y-B.y)):0,P=Math.max(T.width,Math.round(B.width)),V=Math.max(T.height,Math.round(B.height)),S=(P-T.width)*A[0],f=(V-T.height)*A[1];if(O>0||w>0||S||f)H.push({id:M,type:"position",position:{x:W.position.x-O+S,y:W.position.y-w+f}}),Z.get(M)?.forEach((D)=>{if(!Q.some((N)=>N.id===D.id))H.push({id:D.id,type:"position",position:{x:D.position.x+O,y:D.position.y+w}})});if(T.width<B.width||T.height<B.height||O||w)H.push({id:M,type:"dimensions",setAttributes:!0,dimensions:{width:P+(O?A[0]*O-S:0),height:V+(w?A[1]*w-f:0)}})});return H}function $T(Q,U,Z,X,H,Y,B){let W=X?.querySelector(".xyflow__viewport"),M=!1;if(!W)return{changes:[],updatedInternals:M};let R=[],T=window.getComputedStyle(W),{m22:A}=new window.DOMMatrixReadOnly(T.transform),O=[];for(let w of Q.values()){let P=U.get(w.id);if(!P)continue;if(P.hidden){U.set(P.id,{...P,internals:{...P.internals,handleBounds:void 0}}),M=!0;continue}let V=xq(w.nodeElement),S=P.measured.width!==V.width||P.measured.height!==V.height;if(!!(V.width&&V.height&&(S||!P.internals.handleBounds||w.force))){let D=w.nodeElement.getBoundingClientRect(),N=D8(P.extent)?P.extent:Y,{positionAbsolute:y}=P.internals;if(P.parentId&&P.extent==="parent"){let h=U.get(P.parentId);if(h)y=pM(y,V,h)}else if(N)y=k8(y,N,V);let v={...P,measured:V,internals:{...P.internals,positionAbsolute:y,handleBounds:{source:CM("source",w.nodeElement,D,A,P.id),target:CM("target",w.nodeElement,D,A,P.id)}}};if(U.set(P.id,v),P.parentId)mX(v,U,Z,{nodeOrigin:H,zIndexMode:B});if(M=!0,S){if(R.push({id:P.id,type:"dimensions",dimensions:V}),P.expandParent&&P.parentId)O.push({id:P.id,parentId:P.parentId,rect:K9(v,H)})}}}if(O.length>0){let w=dq(O,U,Z,H);R.push(...w)}return{changes:R,updatedInternals:M}}async function QT({delta:Q,panZoom:U,transform:Z,translateExtent:X,width:H,height:Y}){if(!U||!Q.x&&!Q.y)return!1;let B=await U.setViewportConstrained({x:Z[0]+Q.x,y:Z[1]+Q.y,zoom:Z[2]},[[0,0],[H,Y]],X);return!!B&&(B.x!==Z[0]||B.y!==Z[1]||B.k!==Z[2])}function DM(Q,U,Z,X,H,Y){let B=H,W=X.get(B)||new Map;X.set(B,W.set(Z,U)),B=`${H}-${Q}`;let M=X.get(B)||new Map;if(X.set(B,M.set(Z,U)),Y){B=`${H}-${Q}-${Y}`;let R=X.get(B)||new Map;X.set(B,R.set(Z,U))}}function gX(Q,U,Z){Q.clear(),U.clear();for(let X of Z){let{source:H,target:Y,sourceHandle:B=null,targetHandle:W=null}=X,M={edgeId:X.id,source:H,target:Y,sourceHandle:B,targetHandle:W},R=`${H}-${B}--${Y}-${W}`,T=`${Y}-${W}--${H}-${B}`;DM("source",M,T,Q,H,B),DM("target",M,R,Q,Y,W),U.set(X.id,X)}}function qT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return qT(Z,U)}function bM(Q,U,Z){let X=Q;do{if(X?.matches?.(U))return!0;if(X===Z)return!1;X=X?.parentElement}while(X);return!1}function rC(Q,U,Z,X){let H=new Map;for(let[Y,B]of Q)if((B.selected||B.id===X)&&(!B.parentId||!qT(B,Q))&&(B.draggable||U&&typeof B.draggable>"u")){let W=Q.get(Y);if(W)H.set(Y,{id:Y,position:W.position||{x:0,y:0},distance:{x:Z.x-W.internals.positionAbsolute.x,y:Z.y-W.internals.positionAbsolute.y},extent:W.extent,parentId:W.parentId,origin:W.origin,expandParent:W.expandParent,internals:{positionAbsolute:W.internals.positionAbsolute||{x:0,y:0}},measured:{width:W.measured.width??0,height:W.measured.height??0}})}return H}function WX({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:X=!0}){let H=[];for(let[B,W]of U){let M=Z.get(B)?.internals.userNode;if(M)H.push({...M,position:W.position,dragging:X})}if(!Q)return[H[0],H];let Y=Z.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:X},H]}function iC({dragItems:Q,snapGrid:U,x:Z,y:X}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:X-H.distance.y},B=F9(Y,U);return{x:B.x-Y.x,y:B.y-Y.y}}function UT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:X,onDragStop:H}){let Y={x:null,y:null},B=0,W=new Map,M=!1,R={x:0,y:0},T=null,A=!1,O=null,w=!1,P=!1,V=null;function S({noDragClassName:D,handleSelector:N,domNode:y,isSelectable:v,nodeId:h,nodeClickDistance:u=0}){O=U2(y);function b({x:J1,y:t}){let{nodeLookup:x,nodeExtent:g,snapGrid:c,snapToGrid:a,nodeOrigin:r,onNodeDrag:n,onSelectionDrag:k,onError:p,updateNodePositions:q1}=U();Y={x:J1,y:t};let s=!1,H1=W.size>1,M1=H1&&g?MX(b8(W)):null,A1=H1&&a?iC({dragItems:W,snapGrid:c,x:J1,y:t}):null;for(let[B1,U1]of W){if(!x.has(B1))continue;let O1={x:J1-U1.distance.x,y:t-U1.distance.y};if(a)O1=A1?{x:Math.round(O1.x+A1.x),y:Math.round(O1.y+A1.y)}:F9(O1,c);let N1=null;if(H1&&g&&!U1.extent&&M1){let{positionAbsolute:k1}=U1.internals,h1=k1.x-M1.x+g[0][0],v1=k1.x+U1.measured.width-M1.x2+g[1][0],L1=k1.y-M1.y+g[0][1],i1=k1.y+U1.measured.height-M1.y2+g[1][1];N1=[[h1,L1],[v1,i1]]}let{position:W1,positionAbsolute:S1}=NX({nodeId:B1,nextPosition:O1,nodeLookup:x,nodeExtent:N1?N1:g,nodeOrigin:r,onError:p});s=s||U1.position.x!==W1.x||U1.position.y!==W1.y,U1.position=W1,U1.internals.positionAbsolute=S1}if(P=P||s,!s)return;if(q1(W,!0),V&&(X||n||!h&&k)){let[B1,U1]=WX({nodeId:h,dragItems:W,nodeLookup:x});if(X?.(V,W,B1,U1),n?.(V,B1,U1),!h)k?.(V,U1)}}async function E(){if(!T)return;let{transform:J1,panBy:t,autoPanSpeed:x,autoPanOnNodeDrag:g}=U();if(!g){M=!1,cancelAnimationFrame(B);return}let[c,a]=uq(R,T,x);if(c!==0||a!==0){if(Y.x=(Y.x??0)-c/J1[2],Y.y=(Y.y??0)-a/J1[2],await t({x:c,y:a}))b(Y)}B=requestAnimationFrame(E)}function m(J1){let{nodeLookup:t,multiSelectionActive:x,nodesDraggable:g,transform:c,snapGrid:a,snapToGrid:r,selectNodesOnDrag:n,onNodeDragStart:k,onSelectionDragStart:p,unselectNodesAndEdges:q1}=U();if(A=!0,(!n||!v)&&!x&&h){if(!t.get(h)?.selected)q1()}if(v&&n&&h)Q?.(h);let s=fJ(J1.sourceEvent,{transform:c,snapGrid:a,snapToGrid:r,containerBounds:T});if(Y=s,W=rC(t,g,s,h),W.size>0&&(Z||k||!h&&p)){let[H1,M1]=WX({nodeId:h,dragItems:W,nodeLookup:t});if(Z?.(J1.sourceEvent,W,H1,M1),k?.(J1.sourceEvent,H1,M1),!h)p?.(J1.sourceEvent,M1)}}let $1=ZJ().clickDistance(u).on("start",(J1)=>{let{domNode:t,nodeDragThreshold:x,transform:g,snapGrid:c,snapToGrid:a}=U();if(T=t?.getBoundingClientRect()||null,w=!1,P=!1,V=J1.sourceEvent,x===0)m(J1);Y=fJ(J1.sourceEvent,{transform:g,snapGrid:c,snapToGrid:a,containerBounds:T}),R=b5(J1.sourceEvent,T)}).on("drag",(J1)=>{let{autoPanOnNodeDrag:t,transform:x,snapGrid:g,snapToGrid:c,nodeDragThreshold:a,nodeLookup:r}=U(),n=fJ(J1.sourceEvent,{transform:x,snapGrid:g,snapToGrid:c,containerBounds:T});if(V=J1.sourceEvent,J1.sourceEvent.type==="touchmove"&&J1.sourceEvent.touches.length>1||h&&!r.has(h))w=!0;if(w)return;if(!M&&t&&A)M=!0,E();if(!A){let k=b5(J1.sourceEvent,T),p=k.x-R.x,q1=k.y-R.y;if(Math.sqrt(p*p+q1*q1)>a)m(J1)}if((Y.x!==n.xSnapped||Y.y!==n.ySnapped)&&W&&A)R=b5(J1.sourceEvent,T),b(n)}).on("end",(J1)=>{if(!A||w){if(w&&W.size>0)U().updateNodePositions(W,!1);return}if(M=!1,A=!1,cancelAnimationFrame(B),W.size>0){let{nodeLookup:t,updateNodePositions:x,onNodeDragStop:g,onSelectionDragStop:c}=U();if(P)x(W,!1),P=!1;if(H||g||!h&&c){let[a,r]=WX({nodeId:h,dragItems:W,nodeLookup:t,dragging:!1});if(H?.(J1.sourceEvent,W,a,r),g?.(J1.sourceEvent,a,r),!h)c?.(J1.sourceEvent,r)}}}).filter((J1)=>{let t=J1.target;return!J1.button&&(!D||!bM(t,`.${D}`,y))&&(!N||bM(t,N,y))});O.call($1)}function f(){O?.on(".drag",null)}return{update:S,destroy:f}}function aC(Q,U,Z){let X=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(SJ(H,K9(Y))>0)X.push(Y);return X}var sC=250;function tC(Q,U,Z,X){let H=[],Y=1/0,B=aC(Q,Z,U+sC);for(let W of B){let M=[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]];for(let R of M){if(X.nodeId===R.nodeId&&X.type===R.type&&X.id===R.id)continue;let{x:T,y:A}=P6(W,R,R.position,!0),O=Math.sqrt(Math.pow(T-Q.x,2)+Math.pow(A-Q.y,2));if(O>U)continue;if(O<Y)H=[{...R,x:T,y:A}],Y=O;else if(O===Y)H.push({...R,x:T,y:A})}}if(!H.length)return null;if(H.length>1){let W=X.type==="source"?"target":"source";return H.find((M)=>M.type===W)??H[0]}return H[0]}function GT(Q,U,Z,X,H,Y=!1){let B=X.get(Q);if(!B)return null;let W=H==="strict"?B.internals.handleBounds?.[U]:[...B.internals.handleBounds?.source??[],...B.internals.handleBounds?.target??[]],M=(Z?W?.find((R)=>R.id===Z):W?.[0])??null;return M&&Y?{...M,...P6(B,M,M.position,!0)}:M}function ZT(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 oC(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var KT=()=>!0;function nC(Q,{connectionMode:U,connectionRadius:Z,handleId:X,nodeId:H,edgeUpdaterType:Y,isTarget:B,domNode:W,nodeLookup:M,lib:R,autoPanOnConnect:T,flowId:A,panBy:O,cancelConnection:w,onConnectStart:P,onConnect:V,onConnectEnd:S,isValidConnection:f=KT,onReconnectEnd:D,updateConnection:N,getTransform:y,getFromHandle:v,autoPanSpeed:h,dragThreshold:u=1,handleDomNode:b}){let E=vX(Q.target),m=0,$1,{x:J1,y:t}=b5(Q),x=ZT(Y,b),g=W?.getBoundingClientRect(),c=!1;if(!g||!x)return;let a=GT(H,x,X,M,U);if(!a)return;let r=b5(Q,g),n=!1,k=null,p=!1,q1=null;function s(){if(!T||!g)return;let[W1,S1]=uq(r,g,h);O({x:W1,y:S1}),m=requestAnimationFrame(s)}let H1={...a,nodeId:H,type:x,position:a.position},M1=M.get(H),B1={inProgress:!0,isValid:null,from:P6(M1,H1,V1.Left,!0),fromHandle:H1,fromPosition:H1.position,fromNode:M1,to:r,toHandle:null,toPosition:PM[H1.position],toNode:null,pointer:r};function U1(){c=!0,N(B1),P?.(Q,{nodeId:H,handleId:X,handleType:x})}if(u===0)U1();function O1(W1){if(!c){let{x:i1,y:j1}=b5(W1),x0=i1-J1,e1=j1-t;if(!(x0*x0+e1*e1>u*u))return;U1()}if(!v()||!H1){N1(W1);return}let S1=y();if(r=b5(W1,g),$1=tC(X9(r,S1,!1,[1,1]),Z,M,H1),!n)s(),n=!0;let k1=FT(W1,{handle:$1,connectionMode:U,fromNodeId:H,fromHandleId:X,fromType:B?"target":"source",isValidConnection:f,doc:E,lib:R,flowId:A,nodeLookup:M});q1=k1.handleDomNode,k=k1.connection,p=oC(!!$1,k1.isValid);let h1=M.get(H),v1=h1?P6(h1,H1,V1.Left,!0):B1.from,L1={...B1,from:v1,isValid:p,to:k1.toHandle&&p?v8({x:k1.toHandle.x,y:k1.toHandle.y},S1):r,toHandle:k1.toHandle,toPosition:p&&k1.toHandle?k1.toHandle.position:PM[H1.position],toNode:k1.toHandle?M.get(k1.toHandle.nodeId):null,pointer:r};N(L1),B1=L1}function N1(W1){if("touches"in W1&&W1.touches.length>0)return;if(c){if(($1||q1)&&k&&p)V?.(k);let{inProgress:S1,...k1}=B1,h1={...k1,toPosition:B1.toHandle?B1.toPosition:null};if(S?.(W1,h1),Y)D?.(W1,h1)}w(),cancelAnimationFrame(m),n=!1,p=!1,k=null,q1=null,E.removeEventListener("mousemove",O1),E.removeEventListener("mouseup",N1),E.removeEventListener("touchmove",O1),E.removeEventListener("touchend",N1)}E.addEventListener("mousemove",O1),E.addEventListener("mouseup",N1),E.addEventListener("touchmove",O1),E.addEventListener("touchend",N1)}function FT(Q,{handle:U,connectionMode:Z,fromNodeId:X,fromHandleId:H,fromType:Y,doc:B,lib:W,flowId:M,isValidConnection:R=KT,nodeLookup:T}){let A=Y==="target",O=U?B.querySelector(`.${W}-flow__handle[data-id="${M}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:w,y:P}=b5(Q),V=B.elementFromPoint(w,P),S=V?.classList.contains(`${W}-flow__handle`)?V:O,f={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let D=ZT(void 0,S),N=S.getAttribute("data-nodeid"),y=S.getAttribute("data-handleid"),v=S.classList.contains("connectable"),h=S.classList.contains("connectableend");if(!N||!D)return f;let u={source:A?N:X,sourceHandle:A?y:H,target:A?X:N,targetHandle:A?H:y};f.connection=u;let E=v&&h&&(Z===w6.Strict?A&&D==="source"||!A&&D==="target":N!==X||y!==H);f.isValid=E&&R(u),f.toHandle=GT(N,D,y,T,Z,!0)}return f}var rq={onPointerDown:nC,isValid:FT};function XT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:X}){let H=U2(Q);function Y({translateExtent:W,width:M,height:R,zoomStep:T=1,pannable:A=!0,zoomable:O=!0,inversePan:w=!1}){let P=(N)=>{if(N.sourceEvent.type!=="wheel"||!U)return;let y=Z(),v=N.sourceEvent.ctrlKey&&H9()?10:1,h=-N.sourceEvent.deltaY*(N.sourceEvent.deltaMode===1?0.05:N.sourceEvent.deltaMode?1:0.002)*T,u=y[2]*Math.pow(2,h*v);U.scaleTo(u)},V=[0,0],S=(N)=>{if(N.sourceEvent.type==="mousedown"||N.sourceEvent.type==="touchstart")V=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY]},f=(N)=>{let y=Z();if(N.sourceEvent.type!=="mousemove"&&N.sourceEvent.type!=="touchmove"||!U)return;let v=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY],h=[v[0]-V[0],v[1]-V[1]];V=v;let u=X()*Math.max(y[2],Math.log(y[2]))*(w?-1:1),b={x:y[0]-h[0]*u,y:y[1]-h[1]*u},E=[[0,0],[M,R]];U.setViewportConstrained({x:b.x,y:b.y,zoom:y[2]},E,W)},D=NJ().on("start",S).on("zoom",A?f:null).on("zoom.wheel",O?P:null);H.call(D,{})}function B(){H.on("zoom",null)}return{update:Y,destroy:B,pointer:j2}}var iq=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),LX=({x:Q,y:U,zoom:Z})=>j8.translate(Q,U).scale(Z),I6=(Q,U)=>Q.target.closest(`.${U}`),HT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),eC=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,AX=(Q,U=0,Z=eC,X=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)X();return H?Q.transition().duration(U).ease(Z).on("end",X):Q},YT=(Q)=>{let U=Q.ctrlKey&&H9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function _S({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:X,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:B,onPanZoomStart:W,onPanZoom:M,onPanZoomEnd:R}){return(T)=>{if(I6(T,U)){if(T.ctrlKey)T.preventDefault();return!1}T.preventDefault(),T.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(T.ctrlKey&&B){let S=j2(T),f=YT(T),D=A*Math.pow(2,f);X.scaleTo(Z,D,S,T);return}let O=T.deltaMode===1?20:1,w=H===R3.Vertical?0:T.deltaX*O,P=H===R3.Horizontal?0:T.deltaY*O;if(!H9()&&T.shiftKey&&H!==R3.Vertical)w=T.deltaY*O,P=0;X.translateBy(Z,-(w/A)*Y,-(P/A)*Y,{internal:!0});let V=iq(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,W?.(T,V);else M?.(T,V);Q.panScrollTimeout=setTimeout(()=>{R?.(T,V),Q.isPanScrolling=!1},150)}}function JS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(X,H){let Y=X.type==="wheel",B=!U&&Y&&!X.ctrlKey,W=I6(X,Q);if(X.ctrlKey&&Y&&W)X.preventDefault();if(B||W)return null;X.preventDefault(),Z.call(this,X,H)}}function $S({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(X)=>{if(X.sourceEvent?.internal)return;let H=iq(X.transform);if(Q.mouseButton=X.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,X.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(X.sourceEvent,H)}}function QS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:X,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&HT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)X([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,iq(Y.transform))}}function qS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:X,onPanZoomEnd:H,onPaneContextMenu:Y}){return(B)=>{if(B.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&HT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&B.sourceEvent)Y(B.sourceEvent);if(Q.usedRightMouseButton=!1,X(!1),H){let W=iq(B.transform);Q.prevViewport=W,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(B.sourceEvent,W)},Z?150:0)}}}function US({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:X,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:B,userSelectionActive:W,noWheelClassName:M,noPanClassName:R,lib:T,connectionInProgress:A}){return(O)=>{let w=U||Z,P=X&&O.ctrlKey,V=O.type==="wheel";if(O.button===1&&O.type==="mousedown"&&(I6(O,`${T}-flow__node`)||I6(O,`${T}-flow__edge`)||I6(O,`${T}-flow__selection`)||I6(O,`${T}-flow__nodesselection`)))return!0;if(!H&&!w&&!Y&&!B&&!X)return!1;if(W)return!1;if(A&&!V)return!1;if(I6(O,M)&&V)return!1;if(I6(O,R)&&(!V||Y&&V&&!U))return!1;if(!X&&O.ctrlKey&&V)return!1;if(!X&&O.type==="touchstart"&&O.touches?.length>1)return O.preventDefault(),!1;if(!w&&!Y&&!P&&V)return!1;if(!H&&(O.type==="mousedown"||O.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(O.button)&&O.type==="mousedown")return!1;let S=Array.isArray(H)&&H.includes(O.button)||!O.button||O.button<=1;return(!O.ctrlKey||V||Q)&&S}}function zT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:X,viewport:H,onPanZoom:Y,onPanZoomStart:B,onPanZoomEnd:W,onDraggingChange:M}){let R={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},T=Q.getBoundingClientRect(),A=[[0,0],[T.width,T.height]];(typeof ResizeObserver<"u"?new ResizeObserver((t)=>{let x=t[0];if(x)A=[[0,0],[x.contentRect.width,x.contentRect.height]]}):null)?.observe(Q);let w=NJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(X),P=U2(Q).call(w);y({x:H.x,y:H.y,zoom:G9(H.zoom,U,Z)},[[0,0],[T.width,T.height]],X);let V=P.on("wheel.zoom"),S=P.on("dblclick.zoom");w.wheelDelta(YT);async function f(t,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?E4:C8).transform(AX(P,x?.duration,x?.ease,()=>g(!0)),t)});return!1}function D({noWheelClassName:t,noPanClassName:x,onPaneContextMenu:g,userSelectionActive:c,panOnScroll:a,panOnDrag:r,panOnScrollMode:n,panOnScrollSpeed:k,preventScrolling:p,zoomOnPinch:q1,zoomOnScroll:s,zoomOnDoubleClick:H1,panActivationKeyPressed:M1=!1,zoomActivationKeyPressed:A1,lib:B1,onTransformChange:U1,connectionInProgress:O1,paneClickDistance:N1,selectionOnDrag:W1}){if(c&&!R.isZoomingOrPanning)N();let S1=a&&!A1&&!c;w.clickDistance(W1?1/0:!D5(N1)||N1<0?0:N1);let k1=S1?_S({zoomPanValues:R,noWheelClassName:t,d3Selection:P,d3Zoom:w,panOnScrollMode:n,panOnScrollSpeed:k,zoomOnPinch:q1,onPanZoomStart:B,onPanZoom:Y,onPanZoomEnd:W}):JS({noWheelClassName:t,preventScrolling:p,d3ZoomHandler:V});P.on("wheel.zoom",k1,{passive:!1});let h1=$S({zoomPanValues:R,onDraggingChange:M,onPanZoomStart:B});w.on("start",h1);let v1=QS({zoomPanValues:R,panOnDrag:r,onPaneContextMenu:!!g,onPanZoom:Y,onTransformChange:U1});w.on("zoom",v1);let L1=qS({zoomPanValues:R,panOnDrag:r,panOnScroll:a,onPaneContextMenu:g,onPanZoomEnd:W,onDraggingChange:M});w.on("end",L1);let i1=US({panActivationKeyPressed:M1,zoomActivationKeyPressed:A1,panOnDrag:r,zoomOnScroll:s,panOnScroll:a,zoomOnDoubleClick:H1,zoomOnPinch:q1,userSelectionActive:c,noPanClassName:x,noWheelClassName:t,lib:B1,connectionInProgress:O1});if(w.filter(i1),H1)P.on("dblclick.zoom",S);else P.on("dblclick.zoom",null)}function N(){w.on("zoom",null)}async function y(t,x,g){let c=LX(t),a=w?.constrain()(c,x,g);if(a)await f(a);return a}async function v(t,x){let g=LX(t);return await f(g,x),g}function h(t){if(P){let x=LX(t),g=P.property("__zoom");if(g.k!==t.zoom||g.x!==t.x||g.y!==t.y)w?.transform(P,x,null,{sync:!0})}}function u(){let t=P?PJ(P.node()):{x:0,y:0,k:1};return{x:t.x,y:t.y,zoom:t.k}}async function b(t,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?E4:C8).scaleTo(AX(P,x?.duration,x?.ease,()=>g(!0)),t)});return!1}async function E(t,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?E4:C8).scaleBy(AX(P,x?.duration,x?.ease,()=>g(!0)),t)});return!1}function m(t){w?.scaleExtent(t)}function $1(t){w?.translateExtent(t)}function J1(t){let x=!D5(t)||t<0?0:t;w?.clickDistance(x)}return{update:D,destroy:N,setViewport:v,setViewportConstrained:y,getViewport:u,scaleTo:b,scaleBy:E,setScaleExtent:m,setTranslateExtent:$1,syncViewport:h,setClickDistance:J1}}var N6;(function(Q){Q.Line="line",Q.Handle="handle"})(N6||(N6={}));function GS({width:Q,prevWidth:U,height:Z,prevHeight:X,affectsX:H,affectsY:Y}){let B=Q-U,W=Z-X,M=[B>0?1:B<0?-1:0,W>0?1:W<0?-1:0];if(B&&H)M[0]=M[0]*-1;if(W&&Y)M[1]=M[1]*-1;return M}function uM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),X=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:X,affectsY:H}}function R6(Q,U){return Math.max(0,U-Q)}function O6(Q,U){return Math.max(0,Q-U)}function vq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function EM(Q,U){return Q?!U:U}function ZS(Q,U,Z,X,H,Y,B,W){let{affectsX:M,affectsY:R}=U,{isHorizontal:T,isVertical:A}=U,O=T&&A,{xSnapped:w,ySnapped:P}=Z,{minWidth:V,maxWidth:S,minHeight:f,maxHeight:D}=X,{x:N,y,width:v,height:h,aspectRatio:u}=Q,b=Math.floor(T?w-Q.pointerX:0),E=Math.floor(A?P-Q.pointerY:0),m=v+(M?-b:b),$1=h+(R?-E:E),J1=-Y[0]*v,t=-Y[1]*h,x=vq(m,V,S),g=vq($1,f,D);if(B){let r=0,n=0;if(M&&b<0)r=R6(N+b+J1,B[0][0]);else if(!M&&b>0)r=O6(N+m+J1,B[1][0]);if(R&&E<0)n=R6(y+E+t,B[0][1]);else if(!R&&E>0)n=O6(y+$1+t,B[1][1]);x=Math.max(x,r),g=Math.max(g,n)}if(W){let r=0,n=0;if(M&&b>0)r=O6(N+b,W[0][0]);else if(!M&&b<0)r=R6(N+m,W[1][0]);if(R&&E>0)n=O6(y+E,W[0][1]);else if(!R&&E<0)n=R6(y+$1,W[1][1]);x=Math.max(x,r),g=Math.max(g,n)}if(H){if(T){let r=vq(m/u,f,D)*u;if(x=Math.max(x,r),B){let n=0;if(!M&&!R||M&&!R&&O)n=O6(y+t+m/u,B[1][1])*u;else n=R6(y+t+(M?b:-b)/u,B[0][1])*u;x=Math.max(x,n)}if(W){let n=0;if(!M&&!R||M&&!R&&O)n=R6(y+m/u,W[1][1])*u;else n=O6(y+(M?b:-b)/u,W[0][1])*u;x=Math.max(x,n)}}if(A){let r=vq($1*u,V,S)/u;if(g=Math.max(g,r),B){let n=0;if(!M&&!R||R&&!M&&O)n=O6(N+$1*u+J1,B[1][0])/u;else n=R6(N+(R?E:-E)*u+J1,B[0][0])/u;g=Math.max(g,n)}if(W){let n=0;if(!M&&!R||R&&!M&&O)n=R6(N+$1*u,W[1][0])/u;else n=O6(N+(R?E:-E)*u,W[0][0])/u;g=Math.max(g,n)}}}if(E=E+(E<0?g:-g),b=b+(b<0?x:-x),H)if(O)if(m>$1*u)E=(EM(M,R)?-b:b)/u;else b=(EM(M,R)?-E:E)*u;else if(T)E=b/u,R=M;else b=E*u,M=R;let c=M?N+b:N,a=R?y+E:y;return{width:v+(M?-b:b),height:h+(R?-E:E),x:Y[0]*b*(!M?1:-1)+c,y:Y[1]*E*(!R?1:-1)+a}}var BT={width:0,height:0,x:0,y:0},KS={...BT,pointerX:0,pointerY:0,aspectRatio:1};function FS(Q,U,Z){let X=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,B=Q.measured.height??0,W=Z[0]*Y,M=Z[1]*B;return[[X-W,H-M],[X+Y-W,H+B-M]]}function WT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:X,onEnd:H}){let Y=U2(Q),B={controlDirection:uM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function W({controlPosition:R,boundaries:T,keepAspectRatio:A,resizeDirection:O,onResizeStart:w,onResize:P,onResizeEnd:V,shouldResize:S}){let f={...BT},D={...KS};B={boundaries:T,resizeDirection:O,keepAspectRatio:A,controlDirection:uM(R)};let N=void 0,y=null,v=[],h=void 0,u=void 0,b=void 0,E=ZJ().on("start",(m)=>{let{nodeLookup:$1,transform:J1,snapGrid:t,snapToGrid:x,nodeOrigin:g,paneDomNode:c}=Z();if(N=$1.get(U),!N)return;y=c?.getBoundingClientRect()??null;let{xSnapped:a,ySnapped:r}=fJ(m.sourceEvent,{transform:J1,snapGrid:t,snapToGrid:x,containerBounds:y});if(f={width:N.measured.width??0,height:N.measured.height??0,x:N.position.x??0,y:N.position.y??0},D={...f,pointerX:a,pointerY:r,aspectRatio:f.width/f.height},h=void 0,u=D8(N.extent)?N.extent:void 0,N.parentId&&(N.extent==="parent"||N.expandParent))h=$1.get(N.parentId);if(h&&N.extent==="parent")u=[[0,0],[h.measured.width,h.measured.height]];v=[],b=void 0;for(let[n,k]of $1)if(k.parentId===U){if(v.push({id:n,position:{...k.position},extent:k.extent}),k.extent==="parent"||k.expandParent){let p=FS(k,N,k.origin??g);if(b)b=[[Math.min(p[0][0],b[0][0]),Math.min(p[0][1],b[0][1])],[Math.max(p[1][0],b[1][0]),Math.max(p[1][1],b[1][1])]];else b=p}}w?.(m,{...f})}).on("drag",(m)=>{let{transform:$1,snapGrid:J1,snapToGrid:t,nodeOrigin:x}=Z(),g=fJ(m.sourceEvent,{transform:$1,snapGrid:J1,snapToGrid:t,containerBounds:y}),c=[];if(!N)return;let{x:a,y:r,width:n,height:k}=f,p={},q1=N.origin??x,{width:s,height:H1,x:M1,y:A1}=ZS(D,B.controlDirection,g,B.boundaries,B.keepAspectRatio,q1,u,b),B1=s!==n,U1=H1!==k,O1=M1!==a&&B1,N1=A1!==r&&U1;if(!O1&&!N1&&!B1&&!U1)return;let W1={prevValues:{...f},startX:D.x,startY:D.y,childNodes:v.map((v1)=>({...v1,position:{...v1.position}}))};if(O1||N1||q1[0]===1||q1[1]===1){if(p.x=O1?M1:f.x,p.y=N1?A1:f.y,f.x=p.x,f.y=p.y,v.length>0){let v1=M1-a,L1=A1-r;for(let i1 of v)i1.position={x:i1.position.x-v1+q1[0]*(s-n),y:i1.position.y-L1+q1[1]*(H1-k)},c.push(i1)}}if(B1||U1)p.width=B1&&(!B.resizeDirection||B.resizeDirection==="horizontal")?s:f.width,p.height=U1&&(!B.resizeDirection||B.resizeDirection==="vertical")?H1:f.height,f.width=p.width,f.height=p.height;if(h&&N.expandParent){let v1=q1[0]*(p.width??0);if(p.x&&p.x<v1)f.x=v1,D.x=D.x-(p.x-v1);let L1=q1[1]*(p.height??0);if(p.y&&p.y<L1)f.y=L1,D.y=D.y-(p.y-L1)}let S1=GS({width:f.width,prevWidth:n,height:f.height,prevHeight:k,affectsX:B.controlDirection.affectsX,affectsY:B.controlDirection.affectsY}),k1={...f,direction:S1};if(S?.(m,k1)===!1){f=W1.prevValues,D.x=W1.startX,D.y=W1.startY,v.forEach((v1,L1)=>{v1.position=W1.childNodes[L1].position});return}P?.(m,k1),X(p,c)}).on("end",(m)=>{V?.(m,{...f}),H?.({...f})});Y.call(E)}function M(){Y.on(".drag",null)}return{update:W,destroy:M}}var OT=b0(o5(),1),IT=b0(AT(),1);var MT=(Q)=>{let U,Z=new Set,X=(T,A)=>{let O=typeof T==="function"?T(U):T;if(!Object.is(O,U)){let w=U;U=(A!=null?A:typeof O!=="object"||O===null)?O:Object.assign({},U,O),Z.forEach((P)=>P(U,w))}},H=()=>U,M={setState:X,getState:H,getInitialState:()=>R,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()}},R=U=Q(X,H,M);return M},TT=(Q)=>Q?MT(Q):MT;var{useDebugValue:YS}=OT.default,{useSyncExternalStoreWithSelector:zS}=IT.default,BS=(Q)=>Q;function pX(Q,U=BS,Z){let X=zS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return YS(X),X}var RT=(Q,U)=>{let Z=TT(Q),X=(H,Y=U)=>pX(Z,H,Y);return Object.assign(X,Z),X},wT=(Q,U)=>Q?RT(Q,U):RT;function V0(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[X,H]of Q)if(!Object.is(H,U.get(X)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let X of Q)if(!U.has(X))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let X of Z)if(!Object.prototype.hasOwnProperty.call(U,X)||!Object.is(Q[X],U[X]))return!1;return!0}var tT=b0(xK(),1),nq=X1.createContext(null),WS=nq.Provider,oT=i2.error001("react");function F0(Q,U){let Z=X1.useContext(nq);if(Z===null)throw Error(oT);return pX(Z,Q,U)}function k0(){let Q=X1.useContext(nq);if(Q===null)throw Error(oT);return X1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var PT={display:"none"},LS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},nT="react-flow__node-desc",eT="react-flow__edge-desc",AS="react-flow__aria-live",MS=(Q)=>Q.ariaLiveMessage,TS=(Q)=>Q.ariaLabelConfig;function RS({rfId:Q}){let U=F0(MS);return F1.jsx("div",{id:`${AS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:LS,children:U})}function OS({rfId:Q,disableKeyboardA11y:U}){let Z=F0(TS);return F1.jsxs(F1.Fragment,{children:[F1.jsx("div",{id:`${nT}-${Q}`,style:PT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),F1.jsx("div",{id:`${eT}-${Q}`,style:PT,children:Z["edge.a11yDescription.default"]}),!U&&F1.jsx(RS,{rfId:Q})]})}var E8=X1.forwardRef(({position:Q="top-left",children:U,className:Z,style:X,...H},Y)=>{let B=`${Q}`.split("-");return F1.jsx("div",{className:h0(["react-flow__panel",Z,...B]),style:X,ref:Y,...H,children:U})});E8.displayName="Panel";var NT="https://reactflow.dev/attribution";function IS({proOptions:Q,position:U="bottom-right"}){if(X1.useEffect(()=>{rM("react")},[]),Q?.hideAttribution)return null;return F1.jsx(E8,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${NT}`,children:F1.jsx("a",{href:NT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var wS=(Q)=>{let U=[],Z=[];for(let[,X]of Q.nodeLookup)if(X.selected)U.push(X.internals.userNode);for(let[,X]of Q.edgeLookup)if(X.selected)Z.push(X);return{selectedNodes:U,selectedEdges:Z}},aq=(Q)=>Q.id;function PS(Q,U){return V0(Q.selectedNodes.map(aq),U.selectedNodes.map(aq))&&V0(Q.selectedEdges.map(aq),U.selectedEdges.map(aq))}function NS({onSelectionChange:Q}){let U=k0(),{selectedNodes:Z,selectedEdges:X}=F0(wS,PS);return X1.useEffect(()=>{let H={nodes:Z,edges:X};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,X,Q]),null}var fS=(Q)=>!!Q.onSelectionChangeHandlers;function CS({onSelectionChange:Q}){let U=F0(fS);if(Q||U)return F1.jsx(NS,{onSelectionChange:Q});return null}var _R=[0,0],SS={x:0,y:0,zoom:1},jS=["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"],fT=[...jS,"rfId"],yS=(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}),CT={translateExtent:Z9,nodeOrigin:_R,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function VS(Q){let{setNodes:U,setEdges:Z,setMinZoom:X,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:B,reset:W,setDefaultNodesAndEdges:M}=F0(yS,V0),R=k0();X1.useEffect(()=>{return M(Q.defaultNodes,Q.defaultEdges),()=>{T.current=CT,W()}},[]);let T=X1.useRef(CT);return X1.useEffect(()=>{for(let A of fT){let O=Q[A],w=T.current[A];if(O===w)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(O);else if(A==="edges")Z(O);else if(A==="minZoom")X(O);else if(A==="maxZoom")H(O);else if(A==="translateExtent")Y(O);else if(A==="nodeExtent")B(O);else if(A==="ariaLabelConfig")R.setState({ariaLabelConfig:dM(O)});else if(A==="fitView")R.setState({fitViewQueued:O});else if(A==="fitViewOptions")R.setState({fitViewOptions:O});else R.setState({[A]:O})}T.current=Q},fT.map((A)=>Q[A])),null}function ST(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function kS(Q){let[U,Z]=X1.useState(Q==="system"?null:Q);return X1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let X=ST(),H=()=>Z(X?.matches?"dark":"light");return H(),X?.addEventListener("change",H),()=>{X?.removeEventListener("change",H)}},[Q]),U!==null?U:ST()?.matches?"dark":"light"}var jT=typeof document<"u"?document:null;function VJ(Q=null,U={target:jT,actInsideInputWithModifier:!0}){let[Z,X]=X1.useState(!1),H=X1.useRef(!1),Y=X1.useRef(new Set([])),[B,W]=X1.useMemo(()=>{if(Q!==null){let R=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
240
+ <%s key={someKey} {...props} />`,s,T1,A1,T1),t[T1+s]=!0)}if(T1=null,q1!==void 0&&(Z(q1),T1=""+q1),W(p)&&(Z(p.key),T1=""+p.key),"key"in p){q1={};for(var U1 in p)U1!=="key"&&(q1[U1]=p[U1])}else q1=p;return T1&&B(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,T1,q1,H(),W1,R1)}function A(y){O(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===b&&(y._payload.status==="fulfilled"?O(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function O(y){return typeof y==="object"&&y!==null&&y.$$typeof===w}var w=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),N=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),m=Symbol.for("react.client.reference"),e=w8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,x=console.createTask?console.createTask:function(){return null};w8={react_stack_bottom_frame:function(y){return y()}};var g,c={},a=w8.react_stack_bottom_frame.bind(w8,Y)(),d=x(X(Y)),t={};MN.Fragment=V,MN.jsx=function(y,p,q1){var s=1e4>e.recentlyCreatedOwnerStacks++;return M(y,p,q1,!1,s?Error("react-stack-top-frame"):a,s?x(X(y)):d)},MN.jsxs=function(y,p,q1){var s=1e4>e.recentlyCreatedOwnerStacks++;return M(y,p,q1,!0,s?Error("react-stack-top-frame"):a,s?x(X(y)):d)}})()});var OT=D4((WS)=>{var O5=E0(n5());(function(){function Q(O,w){return O===w&&(O!==0||1/O===1/w)||O!==O&&w!==w}function U(O,w){R||O5.startTransition===void 0||(R=!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 P=w();if(!M){var V=w();H(P,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),M=!0)}V=Y({inst:{value:P,getSnapshot:w}});var S=V[0].inst,C=V[1];return B(function(){S.value=P,S.getSnapshot=w,Z(S)&&C({inst:S})},[O,P,w]),W(function(){return Z(S)&&C({inst:S}),O(function(){Z(S)&&C({inst:S})})},[O]),T(P),P}function Z(O){var w=O.getSnapshot;O=O.value;try{var P=w();return!H(O,P)}catch(V){return!0}}function X(O,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H=typeof Object.is==="function"?Object.is:Q,Y=O5.useState,W=O5.useEffect,B=O5.useLayoutEffect,T=O5.useDebugValue,R=!1,M=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?X:U;WS.useSyncExternalStore=O5.useSyncExternalStore!==void 0?O5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var IT=D4((BS)=>{var I3=E0(n5());(function(){function Q(T,R){return T===R&&(T!==0||1/T===1/R)||T!==T&&R!==R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var U=OT(),Z=typeof Object.is==="function"?Object.is:Q,X=U.useSyncExternalStore,H=I3.useRef,Y=I3.useEffect,W=I3.useMemo,B=I3.useDebugValue;BS.useSyncExternalStoreWithSelector=function(T,R,M,A,O){var w=H(null);if(w.current===null){var P={hasValue:!1,value:null};w.current=P}else P=w.current;w=W(function(){function S(u){if(!C){if(C=!0,D=u,u=A(u),O!==void 0&&P.hasValue){var h=P.value;if(O(h,u))return N=h}return N=u}if(h=N,Z(D,u))return h;var k=A(u);if(O!==void 0&&O(h,k))return D=u,h;return D=u,N=k}var C=!1,D,N,v=M===void 0?null:M;return[function(){return S(R())},v===null?void 0:function(){return S(v())}]},[R,M,A,O]);var V=X(T,w[0],w[1]);return Y(function(){P.hasValue=!0,P.value=V},[V]),B(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var IO=E0(uA(),1);var A2=E0(n5(),1);var bA={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 m1=E0(O8(),1),zN="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function QJ({href:Q,onClick:U}){return m1.jsxDEV("h1",{children:m1.jsxDEV("a",{href:Q,onClick:U,children:[m1.jsxDEV("img",{src:zN,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),m1.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 L3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function hA(Q,U,Z=0,X=""){let[H,Y]=A2.useState({state:"loading"});return A2.useEffect(()=>{Y({state:"loading"})},[X,U]),A2.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let B=await Q(U),T=B.ok?{state:"ok",data:await B.json()}:{state:"error",status:B.status,error:await L3(B)};if(W)Y(T)}catch(B){if(W)Y({state:"error",status:0,error:String(B)})}})(),()=>{W=!1}},[X,U,Z]),H}function v2({load:Q,what:U,retry:Z,lines:X=3}){if(Q.state==="loading")return m1.jsxDEV(WN,{lines:X,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return m1.jsxDEV("div",{role:"alert",className:"error-state",children:[m1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?m1.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 WN({lines:Q=3,label:U="Loading…"}){return m1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,X)=>m1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][X%5]}%`}},X,!1,void 0,this))},void 0,!1,void 0,this)}function R0({iso:Q,time:U}){if(!Q)return m1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return m1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var rF=(Q)=>Q?new Date(Q).toLocaleString():"—";function aF(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 r0(Q,U){let Z=U.replace(/[_-]+/g," "),X=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:X}`}var I8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,BN={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"},c1=(Q)=>BN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function $2({vendor:Q}){let U=bA[Q];return m1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?m1.jsxDEV("svg",{viewBox:"0 0 24 24",children:m1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):c1(Q).charAt(0)},void 0,!1,void 0,this)}var EA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},LN="volter.theme",sF=()=>{try{let Q=localStorage.getItem(LN);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Wq(Q=sF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function xA(){return A2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(X)=>{if(X.key!=="Escape"||document.querySelector("dialog[open]"))return;let H=Q();if(!H.length)return;for(let Y of H)Y.removeAttribute("open");H[H.length-1].querySelector("summary")?.focus()},Z=(X)=>{let H=X.target;for(let Y of Q())if(!H||!Y.contains(H))Y.removeAttribute("open")};return document.addEventListener("keydown",U),document.addEventListener("click",Z),()=>{document.removeEventListener("keydown",U),document.removeEventListener("click",Z)}},[]),null}function R5({open:Q,onClose:U,title:Z,children:X,footer:H,wide:Y}){let W=A2.useRef(null),B=A2.useId();return A2.useEffect(()=>{let T=W.current;if(!T)return;if(Q&&!T.open){T.showModal();let R=T.querySelector(".dialog-body :is(input:not([type=hidden]):not([disabled]), select, textarea)");if(R?.focus(),R instanceof HTMLInputElement&&R.value&&/^(text|search|email|url)$/.test(R.type))R.select()}if(!Q&&T.open)T.close()},[Q]),m1.jsxDEV("dialog",{ref:W,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":B,onClose:U,onCancel:(T)=>{T.preventDefault(),U()},onMouseDown:(T)=>{if(T.target===W.current)U()},children:Q?m1.jsxDEV(m1.Fragment,{children:[m1.jsxDEV("div",{className:"dialog-head",children:[m1.jsxDEV("h2",{id:B,children:Z},void 0,!1,void 0,this),m1.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),m1.jsxDEV("div",{className:"dialog-body",children:X},void 0,!1,void 0,this),H?m1.jsxDEV("div",{className:"dialog-foot",children:H},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null},void 0,!1,void 0,this)}var dF="volter:confirm";function u4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(dF,{detail:{ask:Q,resolve:U}}))})}function mA(){let[Q,U]=A2.useState(null),[Z,X]=A2.useState("");A2.useEffect(()=>{let B=(T)=>{X(""),U(T.detail)};return window.addEventListener(dF,B),()=>window.removeEventListener(dF,B)},[]);let H=(B)=>{Q?.resolve(B),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return m1.jsxDEV(R5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:m1.jsxDEV(m1.Fragment,{children:[m1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),m1.jsxDEV("button",{type:"button",className:Y?.danger?"danger-button":"primary",disabled:!W,onClick:()=>H(!0),children:Y?.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[Y?.body?m1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?m1.jsxDEV("div",{className:"typed-confirm",children:[m1.jsxDEV("p",{children:["Type ",m1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),m1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(B)=>X(B.target.value),onKeyDown:(B)=>{if(B.key==="Enter"&&W)H(!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 iF="volter:toast";function c0(Q,U="ok"){window.dispatchEvent(new CustomEvent(iF,{detail:{text:Q,kind:U}}))}function gA(){let[Q,U]=A2.useState([]);return A2.useEffect(()=>{let Z=0,X=(H)=>{let{text:Y,kind:W}=H.detail,B=++Z;if(U((T)=>[...T.slice(-3),{id:B,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((T)=>T.filter((R)=>R.id!==B)),4500)};return window.addEventListener(iF,X),()=>window.removeEventListener(iF,X)},[]),m1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>m1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[m1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),m1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((X)=>X.filter((H)=>H.id!==Z.id)),children:"✕"},void 0,!1,void 0,this)]},Z.id,!0,void 0,this))},void 0,!1,void 0,this)}function tF({value:Q,label:U,secret:Z}){let[X,H]=A2.useState(!1);return m1.jsxDEV("div",{className:"copy-field",children:[U?m1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,m1.jsxDEV("div",{className:"copy-row",children:[m1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),m1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),c0(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>c0("Your browser would not copy it: select it and copy","error"))},children:X?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function pA({label:Q,items:U}){return m1.jsxDEV("details",{className:"menu row-menu",children:[m1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),m1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?m1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:EA,children:Z.label},Z.label,!1,void 0,this):m1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(X)=>{EA(X),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function o7({title:Q,children:U,action:Z}){return m1.jsxDEV("div",{className:"empty-state",children:[m1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?m1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?m1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function cA(){return A2.useEffect(()=>{let Q=(Z)=>{let X=document.querySelector("main.app"),H=Z.target;if(X?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))X.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")AN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),m1.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 AN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var X1=E0(n5(),1);var Y1=E0(lA(),1),z1=E0(n5(),1);function m0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,X;Z<Q.length;Z++)if((X=m0(Q[Z]))!=="")U+=(U&&" ")+X}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var TN={value:()=>{}};function iA(){for(var Q=0,U=arguments.length,Z={},X;Q<U;++Q){if(!(X=arguments[Q]+"")||X in Z||/[\s.]/.test(X))throw Error("illegal type: "+X);Z[X]=[]}return new Bq(Z)}function Bq(Q){this._=Q}function RN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var X="",H=Z.indexOf(".");if(H>=0)X=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:X}})}Bq.prototype=iA.prototype={constructor:Bq,on:function(Q,U){var Z=this._,X=RN(Q+"",Z),H,Y=-1,W=X.length;if(arguments.length<2){while(++Y<W)if((H=(Q=X[Y]).type)&&(H=ON(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<W)if(H=(Q=X[Y]).type)Z[H]=dA(Z[H],Q.name,U);else if(U==null)for(H in Z)Z[H]=dA(Z[H],Q.name,null);return this},copy:function(){var Q={},U=this._;for(var Z in U)Q[Z]=U[Z].slice();return new Bq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),X=0,H,Y;X<H;++X)Z[X]=arguments[X+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],X=0,H=Y.length;X<H;++X)Y[X].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var X=this._[Q],H=0,Y=X.length;H<Y;++H)X[H].value.apply(U,Z)}};function ON(Q,U){for(var Z=0,X=Q.length,H;Z<X;++Z)if((H=Q[Z]).name===U)return H.value}function dA(Q,U,Z){for(var X=0,H=Q.length;X<H;++X)if(Q[X].name===U){Q[X]=TN,Q=Q.slice(0,X).concat(Q.slice(X+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var P8=iA;function n7(Q){return function(){return this.matches(Q)}}function Lq(Q){return function(U){return U.matches(Q)}}var Aq="http://www.w3.org/1999/xhtml",oF={svg:"http://www.w3.org/2000/svg",xhtml:Aq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function b4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return oF.hasOwnProperty(U)?{space:oF[U],local:Q}:Q}function nF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function V2(Q,U){if(Q=nF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var X=Z.createSVGPoint();return X.x=Q.clientX,X.y=Q.clientY,X=X.matrixTransform(U.getScreenCTM().inverse()),[X.x,X.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function IN(){}function M6(Q){return Q==null?IN:function(){return this.querySelector(Q)}}function eF(Q){if(typeof Q!=="function")Q=M6(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=X[H]=Array(W),T,R,M=0;M<W;++M)if((T=Y[M])&&(R=Q.call(T,T.__data__,M,Y))){if("__data__"in T)R.__data__=T.__data__;B[M]=R}return new l0(X,this._parents)}function _K(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function wN(){return[]}function e7(Q){return Q==null?wN:function(){return this.querySelectorAll(Q)}}function PN(Q){return function(){return _K(Q.apply(this,arguments))}}function JK(Q){if(typeof Q==="function")Q=PN(Q);else Q=e7(Q);for(var U=this._groups,Z=U.length,X=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R])X.push(Q.call(T,T.__data__,R,W)),H.push(T);return new l0(X,H)}var NN=Array.prototype.find;function CN(Q){return function(){return NN.call(this.children,Q)}}function fN(){return this.firstElementChild}function $K(Q){return this.select(Q==null?fN:CN(typeof Q==="function"?Q:Lq(Q)))}var SN=Array.prototype.filter;function jN(){return Array.from(this.children)}function vN(Q){return function(){return SN.call(this.children,Q)}}function QK(Q){return this.selectAll(Q==null?jN:vN(typeof Q==="function"?Q:Lq(Q)))}function qK(Q){if(typeof Q!=="function")Q=n7(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=X[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))B.push(T);return new l0(X,this._parents)}function qJ(Q){return Array(Q.length)}function UK(){return new l0(this._enter||this._groups.map(qJ),this._parents)}function UJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}UJ.prototype={constructor:UJ,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 GK(Q){return function(){return Q}}function VN(Q,U,Z,X,H,Y){var W=0,B,T=U.length,R=Y.length;for(;W<R;++W)if(B=U[W])B.__data__=Y[W],X[W]=B;else Z[W]=new UJ(Q,Y[W]);for(;W<T;++W)if(B=U[W])H[W]=B}function yN(Q,U,Z,X,H,Y,W){var B,T,R=new Map,M=U.length,A=Y.length,O=Array(M),w;for(B=0;B<M;++B)if(T=U[B])if(O[B]=w=W.call(T,T.__data__,B,U)+"",R.has(w))H[B]=T;else R.set(w,T);for(B=0;B<A;++B)if(w=W.call(Q,Y[B],B,Y)+"",T=R.get(w))X[B]=T,T.__data__=Y[B],R.delete(w);else Z[B]=new UJ(Q,Y[B]);for(B=0;B<M;++B)if((T=U[B])&&R.get(O[B])===T)H[B]=T}function kN(Q){return Q.__data__}function ZK(Q,U){if(!arguments.length)return Array.from(this,kN);var Z=U?yN:VN,X=this._parents,H=this._groups;if(typeof Q!=="function")Q=GK(Q);for(var Y=H.length,W=Array(Y),B=Array(Y),T=Array(Y),R=0;R<Y;++R){var M=X[R],A=H[R],O=A.length,w=DN(Q.call(M,M&&M.__data__,R,X)),P=w.length,V=B[R]=Array(P),S=W[R]=Array(P),C=T[R]=Array(O);Z(M,A,V,S,C,w,U);for(var D=0,N=0,v,u;D<P;++D)if(v=V[D]){if(D>=N)N=D+1;while(!(u=S[N])&&++N<P);v._next=u||null}}return W=new l0(W,X),W._enter=B,W._exit=T,W}function DN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function FK(){return new l0(this._exit||this._groups.map(qJ),this._parents)}function KK(Q,U,Z){var X=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(X=Q(X),X)X=X.selection()}else X=X.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return X&&H?X.merge(H).order():H}function XK(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,X=U._groups,H=Z.length,Y=X.length,W=Math.min(H,Y),B=Array(H),T=0;T<W;++T)for(var R=Z[T],M=X[T],A=R.length,O=B[T]=Array(A),w,P=0;P<A;++P)if(w=R[P]||M[P])O[P]=w;for(;T<H;++T)B[T]=Z[T];return new l0(B,this._parents)}function HK(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var X=Q[U],H=X.length-1,Y=X[H],W;--H>=0;)if(W=X[H]){if(Y&&W.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(W,Y);Y=W}return this}function YK(Q){if(!Q)Q=uN;function U(A,O){return A&&O?Q(A.__data__,O.__data__):!A-!O}for(var Z=this._groups,X=Z.length,H=Array(X),Y=0;Y<X;++Y){for(var W=Z[Y],B=W.length,T=H[Y]=Array(B),R,M=0;M<B;++M)if(R=W[M])T[M]=R;T.sort(U)}return new l0(H,this._parents).order()}function uN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function zK(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function WK(){return Array.from(this)}function BK(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var X=Q[U],H=0,Y=X.length;H<Y;++H){var W=X[H];if(W)return W}return null}function LK(){let Q=0;for(let U of this)++Q;return Q}function AK(){return!this.node()}function MK(Q){for(var U=this._groups,Z=0,X=U.length;Z<X;++Z)for(var H=U[Z],Y=0,W=H.length,B;Y<W;++Y)if(B=H[Y])Q.call(B,B.__data__,Y,H);return this}function bN(Q){return function(){this.removeAttribute(Q)}}function EN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function hN(Q,U){return function(){this.setAttribute(Q,U)}}function xN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function mN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function gN(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 TK(Q,U){var Z=b4(Q);if(arguments.length<2){var X=this.node();return Z.local?X.getAttributeNS(Z.space,Z.local):X.getAttribute(Z)}return this.each((U==null?Z.local?EN:bN:typeof U==="function"?Z.local?gN:mN:Z.local?xN:hN)(Z,U))}function GJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function pN(Q){return function(){this.style.removeProperty(Q)}}function cN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function lN(Q,U,Z){return function(){var X=U.apply(this,arguments);if(X==null)this.style.removeProperty(Q);else this.style.setProperty(Q,X,Z)}}function RK(Q,U,Z){return arguments.length>1?this.each((U==null?pN:typeof U==="function"?lN:cN)(Q,U,Z==null?"":Z)):T6(this.node(),Q)}function T6(Q,U){return Q.style.getPropertyValue(U)||GJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function dN(Q){return function(){delete this[Q]}}function iN(Q,U){return function(){this[Q]=U}}function rN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function OK(Q,U){return arguments.length>1?this.each((U==null?dN:typeof U==="function"?rN:iN)(Q,U)):this.node()[Q]}function rA(Q){return Q.trim().split(/^|\s+/)}function IK(Q){return Q.classList||new aA(Q)}function aA(Q){this._node=Q,this._names=rA(Q.getAttribute("class")||"")}aA.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 sA(Q,U){var Z=IK(Q),X=-1,H=U.length;while(++X<H)Z.add(U[X])}function tA(Q,U){var Z=IK(Q),X=-1,H=U.length;while(++X<H)Z.remove(U[X])}function aN(Q){return function(){sA(this,Q)}}function sN(Q){return function(){tA(this,Q)}}function tN(Q,U){return function(){(U.apply(this,arguments)?sA:tA)(this,Q)}}function wK(Q,U){var Z=rA(Q+"");if(arguments.length<2){var X=IK(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!X.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?tN:U?aN:sN)(Z,U))}function oN(){this.textContent=""}function nN(Q){return function(){this.textContent=Q}}function eN(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function PK(Q){return arguments.length?this.each(Q==null?oN:(typeof Q==="function"?eN:nN)(Q)):this.node().textContent}function _C(){this.innerHTML=""}function JC(Q){return function(){this.innerHTML=Q}}function $C(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function NK(Q){return arguments.length?this.each(Q==null?_C:(typeof Q==="function"?$C:JC)(Q)):this.node().innerHTML}function QC(){if(this.nextSibling)this.parentNode.appendChild(this)}function CK(){return this.each(QC)}function qC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fK(){return this.each(qC)}function UC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Aq&&U.documentElement.namespaceURI===Aq?U.createElement(Q):U.createElementNS(Z,Q)}}function GC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function ZJ(Q){var U=b4(Q);return(U.local?GC:UC)(U)}function SK(Q){var U=typeof Q==="function"?Q:ZJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function ZC(){return null}function jK(Q,U){var Z=typeof Q==="function"?Q:ZJ(Q),X=U==null?ZC:typeof U==="function"?U:M6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),X.apply(this,arguments)||null)})}function FC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function vK(){return this.each(FC)}function KC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function XC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function VK(Q){return this.select(Q?XC:KC)}function yK(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function HC(Q){return function(U){Q.call(this,U,this.__data__)}}function YC(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",X=U.indexOf(".");if(X>=0)Z=U.slice(X+1),U=U.slice(0,X);return{type:U,name:Z}})}function zC(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,X=-1,H=U.length,Y;Z<H;++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[++X]=Y;if(++X)U.length=X;else delete this.__on}}function WC(Q,U,Z){return function(){var X=this.__on,H,Y=HC(U);if(X){for(var W=0,B=X.length;W<B;++W)if((H=X[W]).type===Q.type&&H.name===Q.name){this.removeEventListener(H.type,H.listener,H.options),this.addEventListener(H.type,H.listener=Y,H.options=Z),H.value=U;return}}if(this.addEventListener(Q.type,Y,Z),H={type:Q.type,name:Q.name,value:U,listener:Y,options:Z},!X)this.__on=[H];else X.push(H)}}function kK(Q,U,Z){var X=YC(Q+""),H,Y=X.length,W;if(arguments.length<2){var B=this.node().__on;if(B){for(var T=0,R=B.length,M;T<R;++T)for(H=0,M=B[T];H<Y;++H)if((W=X[H]).type===M.type&&W.name===M.name)return M.value}return}B=U?WC:zC;for(H=0;H<Y;++H)this.each(B(X[H],U,Z));return this}function oA(Q,U,Z){var X=GJ(Q),H=X.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=X.document.createEvent("Event"),Z)H.initEvent(U,Z.bubbles,Z.cancelable),H.detail=Z.detail;else H.initEvent(U,!1,!1);Q.dispatchEvent(H)}function BC(Q,U){return function(){return oA(this,Q,U)}}function LC(Q,U){return function(){return oA(this,Q,U.apply(this,arguments))}}function DK(Q,U){return this.each((typeof U==="function"?LC:BC)(Q,U))}function*uK(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var X=Q[U],H=0,Y=X.length,W;H<Y;++H)if(W=X[H])yield W}var bK=[null];function l0(Q,U){this._groups=Q,this._parents=U}function nA(){return new l0([[document.documentElement]],bK)}function AC(){return this}l0.prototype=nA.prototype={constructor:l0,select:eF,selectAll:JK,selectChild:$K,selectChildren:QK,filter:qK,data:ZK,enter:UK,exit:FK,join:KK,merge:XK,selection:AC,order:HK,sort:YK,call:zK,nodes:WK,node:BK,size:LK,empty:AK,each:MK,attr:TK,style:RK,property:OK,classed:wK,text:PK,html:NK,raise:CK,lower:fK,append:SK,insert:jK,remove:vK,clone:VK,datum:yK,on:kK,dispatch:DK,[Symbol.iterator]:uK};var A3=nA;function F2(Q){return typeof Q==="string"?new l0([[document.querySelector(Q)]],[document.documentElement]):new l0([[Q]],bK)}var eA={passive:!1},N8={capture:!0,passive:!1};function Mq(Q){Q.stopImmediatePropagation()}function M3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function _9(Q){var U=Q.document.documentElement,Z=F2(Q).on("dragstart.drag",M3,N8);if("onselectstart"in U)Z.on("selectstart.drag",M3,N8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function FJ(Q,U){var Z=Q.document.documentElement,X=F2(Q).on("dragstart.drag",null);if(U)X.on("click.drag",M3,N8),setTimeout(function(){X.on("click.drag",null)},0);if("onselectstart"in Z)X.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var KJ=(Q)=>()=>Q;function XJ(Q,{sourceEvent:U,subject:Z,target:X,identifier:H,active:Y,x:W,y:B,dx:T,dy:R,dispatch:M}){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:X,enumerable:!0,configurable:!0},identifier:{value:H,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:T,enumerable:!0,configurable:!0},dy:{value:R,enumerable:!0,configurable:!0},_:{value:M}})}XJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function MC(Q){return!Q.ctrlKey&&!Q.button}function TC(){return this.parentNode}function RC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function OC(){return navigator.maxTouchPoints||"ontouchstart"in this}function HJ(){var Q=MC,U=TC,Z=RC,X=OC,H={},Y=P8("start","drag","end"),W=0,B,T,R,M,A=0;function O(v){v.on("mousedown.drag",w).filter(X).on("touchstart.drag",S).on("touchmove.drag",C,eA).on("touchend.drag touchcancel.drag",D).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(v,u){if(M||!Q.call(this,v,u))return;var h=N(this,U.call(this,v,u),v,u,"mouse");if(!h)return;F2(v.view).on("mousemove.drag",P,N8).on("mouseup.drag",V,N8),_9(v.view),Mq(v),R=!1,B=v.clientX,T=v.clientY,h("start",v)}function P(v){if(M3(v),!R){var u=v.clientX-B,h=v.clientY-T;R=u*u+h*h>A}H.mouse("drag",v)}function V(v){F2(v.view).on("mousemove.drag mouseup.drag",null),FJ(v.view,R),M3(v),H.mouse("end",v)}function S(v,u){if(!Q.call(this,v,u))return;var h=v.changedTouches,k=U.call(this,v,u),b=h.length,E,m;for(E=0;E<b;++E)if(m=N(this,k,v,u,h[E].identifier,h[E]))Mq(v),m("start",v,h[E])}function C(v){var u=v.changedTouches,h=u.length,k,b;for(k=0;k<h;++k)if(b=H[u[k].identifier])M3(v),b("drag",v,u[k])}function D(v){var u=v.changedTouches,h=u.length,k,b;if(M)clearTimeout(M);M=setTimeout(function(){M=null},500);for(k=0;k<h;++k)if(b=H[u[k].identifier])Mq(v),b("end",v,u[k])}function N(v,u,h,k,b,E){var m=Y.copy(),e=V2(E||h,u),Q1,J1,x;if((x=Z.call(v,new XJ("beforestart",{sourceEvent:h,target:O,identifier:b,active:W,x:e[0],y:e[1],dx:0,dy:0,dispatch:m}),k))==null)return;return Q1=x.x-e[0]||0,J1=x.y-e[1]||0,function g(c,a,d){var t=e,y;switch(c){case"start":H[b]=g,y=W++;break;case"end":delete H[b],--W;case"drag":e=V2(d||a,u),y=W;break}m.call(c,v,new XJ(c,{sourceEvent:a,subject:x,target:O,identifier:b,active:y,x:e[0]+Q1,y:e[1]+J1,dx:e[0]-t[0],dy:e[1]-t[1],dispatch:m}),k)}}return O.filter=function(v){return arguments.length?(Q=typeof v==="function"?v:KJ(!!v),O):Q},O.container=function(v){return arguments.length?(U=typeof v==="function"?v:KJ(v),O):U},O.subject=function(v){return arguments.length?(Z=typeof v==="function"?v:KJ(v),O):Z},O.touchable=function(v){return arguments.length?(X=typeof v==="function"?v:KJ(!!v),O):X},O.on=function(){var v=Y.on.apply(Y,arguments);return v===Y?O:v},O.clickDistance=function(v){return arguments.length?(A=(v=+v)*v,O):Math.sqrt(A)},O}function YJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function EK(Q,U){var Z=Object.create(Q.prototype);for(var X in U)Z[X]=U[X];return Z}function BJ(){}var zJ=0.7,Oq=1/zJ,J9="\\s*([+-]?\\d+)\\s*",WJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",E4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",IC=/^#([0-9a-f]{3,8})$/,wC=new RegExp(`^rgb\\(${J9},${J9},${J9}\\)$`),PC=new RegExp(`^rgb\\(${E4},${E4},${E4}\\)$`),NC=new RegExp(`^rgba\\(${J9},${J9},${J9},${WJ}\\)$`),CC=new RegExp(`^rgba\\(${E4},${E4},${E4},${WJ}\\)$`),fC=new RegExp(`^hsl\\(${WJ},${E4},${E4}\\)$`),SC=new RegExp(`^hsla\\(${WJ},${E4},${E4},${WJ}\\)$`),_M={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};YJ(BJ,_4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:JM,formatHex:JM,formatHex8:jC,formatHsl:vC,formatRgb:$M,toString:$M});function JM(){return this.rgb().formatHex()}function jC(){return this.rgb().formatHex8()}function vC(){return FM(this).formatHsl()}function $M(){return this.rgb().formatRgb()}function _4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=IC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?QM(U):Z===3?new q5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Tq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Tq(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=wC.exec(Q))?new q5(U[1],U[2],U[3],1):(U=PC.exec(Q))?new q5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=NC.exec(Q))?Tq(U[1],U[2],U[3],U[4]):(U=CC.exec(Q))?Tq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=fC.exec(Q))?GM(U[1],U[2]/100,U[3]/100,1):(U=SC.exec(Q))?GM(U[1],U[2]/100,U[3]/100,U[4]):_M.hasOwnProperty(Q)?QM(_M[Q]):Q==="transparent"?new q5(NaN,NaN,NaN,0):null}function QM(Q){return new q5(Q>>16&255,Q>>8&255,Q&255,1)}function Tq(Q,U,Z,X){if(X<=0)Q=U=Z=NaN;return new q5(Q,U,Z,X)}function VC(Q){if(!(Q instanceof BJ))Q=_4(Q);if(!Q)return new q5;return Q=Q.rgb(),new q5(Q.r,Q.g,Q.b,Q.opacity)}function $9(Q,U,Z,X){return arguments.length===1?VC(Q):new q5(Q,U,Z,X==null?1:X)}function q5(Q,U,Z,X){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+X}YJ(q5,$9,EK(BJ,{brighter(Q){return Q=Q==null?Oq:Math.pow(Oq,Q),new q5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?zJ:Math.pow(zJ,Q),new q5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new q5(f8(this.r),f8(this.g),f8(this.b),Iq(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:qM,formatHex:qM,formatHex8:yC,formatRgb:UM,toString:UM}));function qM(){return`#${C8(this.r)}${C8(this.g)}${C8(this.b)}`}function yC(){return`#${C8(this.r)}${C8(this.g)}${C8(this.b)}${C8((isNaN(this.opacity)?1:this.opacity)*255)}`}function UM(){let Q=Iq(this.opacity);return`${Q===1?"rgb(":"rgba("}${f8(this.r)}, ${f8(this.g)}, ${f8(this.b)}${Q===1?")":`, ${Q})`}`}function Iq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function f8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function C8(Q){return Q=f8(Q),(Q<16?"0":"")+Q.toString(16)}function GM(Q,U,Z,X){if(X<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new e5(Q,U,Z,X)}function FM(Q){if(Q instanceof e5)return new e5(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof BJ))Q=_4(Q);if(!Q)return new e5;if(Q instanceof e5)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,X=Q.b/255,H=Math.min(U,Z,X),Y=Math.max(U,Z,X),W=NaN,B=Y-H,T=(Y+H)/2;if(B){if(U===Y)W=(Z-X)/B+(Z<X)*6;else if(Z===Y)W=(X-U)/B+2;else W=(U-Z)/B+4;B/=T<0.5?Y+H:2-Y-H,W*=60}else B=T>0&&T<1?0:W;return new e5(W,B,T,Q.opacity)}function KM(Q,U,Z,X){return arguments.length===1?FM(Q):new e5(Q,U,Z,X==null?1:X)}function e5(Q,U,Z,X){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+X}YJ(e5,KM,EK(BJ,{brighter(Q){return Q=Q==null?Oq:Math.pow(Oq,Q),new e5(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?zJ:Math.pow(zJ,Q),new e5(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,X=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-X;return new q5(hK(Q>=240?Q-240:Q+120,H,X),hK(Q,H,X),hK(Q<120?Q+240:Q-120,H,X),this.opacity)},clamp(){return new e5(ZM(this.h),Rq(this.s),Rq(this.l),Iq(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=Iq(this.opacity);return`${Q===1?"hsl(":"hsla("}${ZM(this.h)}, ${Rq(this.s)*100}%, ${Rq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function ZM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Rq(Q){return Math.max(0,Math.min(1,Q||0))}function hK(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 xK(Q,U,Z,X,H){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)*X+W*H)/6}function mK(Q){var U=Q.length-1;return function(Z){var X=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[X],Y=Q[X+1],W=X>0?Q[X-1]:2*H-Y,B=X<U-1?Q[X+2]:2*Y-H;return xK((Z-X/U)*U,W,H,Y,B)}}function gK(Q){var U=Q.length;return function(Z){var X=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(X+U-1)%U],Y=Q[X%U],W=Q[(X+1)%U],B=Q[(X+2)%U];return xK((Z-X/U)*U,H,Y,W,B)}}var LJ=(Q)=>()=>Q;function kC(Q,U){return function(Z){return Q+Z*U}}function DC(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(X){return Math.pow(Q+X*U,Z)}}function XM(Q){return(Q=+Q)===1?wq:function(U,Z){return Z-U?DC(U,Z,Q):LJ(isNaN(U)?Z:U)}}function wq(Q,U){var Z=U-Q;return Z?kC(Q,Z):LJ(isNaN(Q)?U:Q)}var S8=function Q(U){var Z=XM(U);function X(H,Y){var W=Z((H=$9(H)).r,(Y=$9(Y)).r),B=Z(H.g,Y.g),T=Z(H.b,Y.b),R=wq(H.opacity,Y.opacity);return function(M){return H.r=W(M),H.g=B(M),H.b=T(M),H.opacity=R(M),H+""}}return X.gamma=Q,X}(1);function HM(Q){return function(U){var Z=U.length,X=Array(Z),H=Array(Z),Y=Array(Z),W,B;for(W=0;W<Z;++W)B=$9(U[W]),X[W]=B.r||0,H[W]=B.g||0,Y[W]=B.b||0;return X=Q(X),H=Q(H),Y=Q(Y),B.opacity=1,function(T){return B.r=X(T),B.g=H(T),B.b=Y(T),B+""}}}var uC=HM(mK),bC=HM(gK);function pK(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,X=U.slice(),H;return function(Y){for(H=0;H<Z;++H)X[H]=Q[H]*(1-Y)+U[H]*Y;return X}}function YM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function zM(Q,U){var Z=U?U.length:0,X=Q?Math.min(Z,Q.length):0,H=Array(X),Y=Array(Z),W;for(W=0;W<X;++W)H[W]=h4(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(B){for(W=0;W<X;++W)Y[W]=H[W](B);return Y}}function cK(Q,U){var Z=new Date;return Q=+Q,U=+U,function(X){return Z.setTime(Q*(1-X)+U*X),Z}}function y2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function lK(Q,U){var Z={},X={},H;if(Q===null||typeof Q!=="object")Q={};if(U===null||typeof U!=="object")U={};for(H in U)if(H in Q)Z[H]=h4(Q[H],U[H]);else X[H]=U[H];return function(Y){for(H in Z)X[H]=Z[H](Y);return X}}var iK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dK=new RegExp(iK.source,"g");function EC(Q){return function(){return Q}}function hC(Q){return function(U){return Q(U)+""}}function Q9(Q,U){var Z=iK.lastIndex=dK.lastIndex=0,X,H,Y,W=-1,B=[],T=[];Q=Q+"",U=U+"";while((X=iK.exec(Q))&&(H=dK.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),B[W])B[W]+=Y;else B[++W]=Y;if((X=X[0])===(H=H[0]))if(B[W])B[W]+=H;else B[++W]=H;else B[++W]=null,T.push({i:W,x:y2(X,H)});Z=dK.lastIndex}if(Z<U.length)if(Y=U.slice(Z),B[W])B[W]+=Y;else B[++W]=Y;return B.length<2?T[0]?hC(T[0].x):EC(U):(U=T.length,function(R){for(var M=0,A;M<U;++M)B[(A=T[M]).i]=A.x(R);return B.join("")})}function h4(Q,U){var Z=typeof U,X;return U==null||Z==="boolean"?LJ(U):(Z==="number"?y2:Z==="string"?(X=_4(U))?(U=X,S8):Q9:U instanceof _4?S8:U instanceof Date?cK:YM(U)?pK:Array.isArray(U)?zM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?lK:y2)(Q,U)}var WM=180/Math.PI,Pq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Nq(Q,U,Z,X,H,Y){var W,B,T;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(T=Q*Z+U*X)Z-=Q*T,X-=U*T;if(B=Math.sqrt(Z*Z+X*X))Z/=B,X/=B,T/=B;if(Q*X<U*Z)Q=-Q,U=-U,T=-T,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*WM,skewX:Math.atan(T)*WM,scaleX:W,scaleY:B}}var Cq;function BM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Pq:Nq(U.a,U.b,U.c,U.d,U.e,U.f)}function LM(Q){if(Q==null)return Pq;if(!Cq)Cq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Cq.setAttribute("transform",Q),!(Q=Cq.transform.baseVal.consolidate()))return Pq;return Q=Q.matrix,Nq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function AM(Q,U,Z,X){function H(R){return R.length?R.pop()+" ":""}function Y(R,M,A,O,w,P){if(R!==A||M!==O){var V=w.push("translate(",null,U,null,Z);P.push({i:V-4,x:y2(R,A)},{i:V-2,x:y2(M,O)})}else if(A||O)w.push("translate("+A+U+O+Z)}function W(R,M,A,O){if(R!==M){if(R-M>180)M+=360;else if(M-R>180)R+=360;O.push({i:A.push(H(A)+"rotate(",null,X)-2,x:y2(R,M)})}else if(M)A.push(H(A)+"rotate("+M+X)}function B(R,M,A,O){if(R!==M)O.push({i:A.push(H(A)+"skewX(",null,X)-2,x:y2(R,M)});else if(M)A.push(H(A)+"skewX("+M+X)}function T(R,M,A,O,w,P){if(R!==A||M!==O){var V=w.push(H(w)+"scale(",null,",",null,")");P.push({i:V-4,x:y2(R,A)},{i:V-2,x:y2(M,O)})}else if(A!==1||O!==1)w.push(H(w)+"scale("+A+","+O+")")}return function(R,M){var A=[],O=[];return R=Q(R),M=Q(M),Y(R.translateX,R.translateY,M.translateX,M.translateY,A,O),W(R.rotate,M.rotate,A,O),B(R.skewX,M.skewX,A,O),T(R.scaleX,R.scaleY,M.scaleX,M.scaleY,A,O),R=M=null,function(w){var P=-1,V=O.length,S;while(++P<V)A[(S=O[P]).i]=S.x(w);return A.join("")}}}var rK=AM(BM,"px, ","px)","deg)"),aK=AM(LM,", ",")",")");var xC=0.000000000001;function MM(Q){return((Q=Math.exp(Q))+1/Q)/2}function mC(Q){return((Q=Math.exp(Q))-1/Q)/2}function gC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var j8=function Q(U,Z,X){function H(Y,W){var B=Y[0],T=Y[1],R=Y[2],M=W[0],A=W[1],O=W[2],w=M-B,P=A-T,V=w*w+P*P,S,C;if(V<xC)C=Math.log(O/R)/U,S=function(k){return[B+k*w,T+k*P,R*Math.exp(U*k*C)]};else{var D=Math.sqrt(V),N=(O*O-R*R+X*V)/(2*R*Z*D),v=(O*O-R*R-X*V)/(2*O*Z*D),u=Math.log(Math.sqrt(N*N+1)-N),h=Math.log(Math.sqrt(v*v+1)-v);C=(h-u)/U,S=function(k){var b=k*C,E=MM(u),m=R/(Z*D)*(E*gC(U*b+u)-mC(u));return[B+m*w,T+m*P,R*E/MM(U*b+u)]}}return S.duration=C*1000*U/Math.SQRT2,S}return H.rho=function(Y){var W=Math.max(0.001,+Y),B=W*W,T=B*B;return Q(W,B,T)},H}(Math.SQRT2,2,4);var q9=0,MJ=0,AJ=0,RM=1000,fq,TJ,Sq=0,v8=0,jq=0,RJ=typeof performance==="object"&&performance.now?performance:Date,OM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function IJ(){return v8||(OM(pC),v8=RJ.now()+jq)}function pC(){v8=0}function OJ(){this._call=this._time=this._next=null}OJ.prototype=vq.prototype={constructor:OJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?IJ():+Z)+(U==null?0:+U),!this._next&&TJ!==this){if(TJ)TJ._next=this;else fq=this;TJ=this}this._call=Q,this._time=Z,sK()},stop:function(){if(this._call)this._call=null,this._time=1/0,sK()}};function vq(Q,U,Z){var X=new OJ;return X.restart(Q,U,Z),X}function IM(){IJ(),++q9;var Q=fq,U;while(Q){if((U=v8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--q9}function TM(){v8=(Sq=RJ.now())+jq,q9=MJ=0;try{IM()}finally{q9=0,lC(),v8=0}}function cC(){var Q=RJ.now(),U=Q-Sq;if(U>RM)jq-=U,Sq=Q}function lC(){var Q,U=fq,Z,X=1/0;while(U)if(U._call){if(X>U._time)X=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:fq=Z;TJ=Q,sK(X)}function sK(Q){if(q9)return;if(MJ)MJ=clearTimeout(MJ);var U=Q-v8;if(U>24){if(Q<1/0)MJ=setTimeout(TM,Q-RJ.now()-jq);if(AJ)AJ=clearInterval(AJ)}else{if(!AJ)Sq=RJ.now(),AJ=setInterval(cC,RM);q9=1,OM(TM)}}function wJ(Q,U,Z){var X=new OJ;return U=U==null?0:+U,X.restart((H)=>{X.stop(),Q(H+U)},U,Z),X}var dC=P8("start","end","cancel","interrupt"),iC=[],NM=0,wM=1,yq=2,Vq=3,PM=4,kq=5,PJ=6;function T3(Q,U,Z,X,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;rC(Q,Z,{name:U,index:X,group:H,on:dC,tween:iC,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:NM})}function NJ(Q,U){var Z=K2(Q,U);if(Z.state>NM)throw Error("too late; already scheduled");return Z}function w2(Q,U){var Z=K2(Q,U);if(Z.state>Vq)throw Error("too late; already running");return Z}function K2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function rC(Q,U,Z){var X=Q.__transition,H;X[U]=Z,Z.timer=vq(Y,0,Z.time);function Y(R){if(Z.state=wM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=R)W(R-Z.delay)}function W(R){var M,A,O,w;if(Z.state!==wM)return T();for(M in X){if(w=X[M],w.name!==Z.name)continue;if(w.state===Vq)return wJ(W);if(w.state===PM)w.state=PJ,w.timer.stop(),w.on.call("interrupt",Q,Q.__data__,w.index,w.group),delete X[M];else if(+M<U)w.state=PJ,w.timer.stop(),w.on.call("cancel",Q,Q.__data__,w.index,w.group),delete X[M]}if(wJ(function(){if(Z.state===Vq)Z.state=PM,Z.timer.restart(B,Z.delay,Z.time),B(R)}),Z.state=yq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==yq)return;Z.state=Vq,H=Array(O=Z.tween.length);for(M=0,A=-1;M<O;++M)if(w=Z.tween[M].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=w;H.length=A+1}function B(R){var M=R<Z.duration?Z.ease.call(null,R/Z.duration):(Z.timer.restart(T),Z.state=kq,1),A=-1,O=H.length;while(++A<O)H[A].call(Q,M);if(Z.state===kq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),T()}function T(){Z.state=PJ,Z.timer.stop(),delete X[U];for(var R in X)return;delete Q.__transition}}function R6(Q,U){var Z=Q.__transition,X,H,Y=!0,W;if(!Z)return;U=U==null?null:U+"";for(W in Z){if((X=Z[W]).name!==U){Y=!1;continue}H=X.state>yq&&X.state<kq,X.state=PJ,X.timer.stop(),X.on.call(H?"interrupt":"cancel",Q,Q.__data__,X.index,X.group),delete Z[W]}if(Y)delete Q.__transition}function tK(Q){return this.each(function(){R6(this,Q)})}function aC(Q,U){var Z,X;return function(){var H=w2(this,Q),Y=H.tween;if(Y!==Z){X=Z=Y;for(var W=0,B=X.length;W<B;++W)if(X[W].name===U){X=X.slice(),X.splice(W,1);break}}H.tween=X}}function sC(Q,U,Z){var X,H;if(typeof Z!=="function")throw Error();return function(){var Y=w2(this,Q),W=Y.tween;if(W!==X){H=(X=W).slice();for(var B={name:U,value:Z},T=0,R=H.length;T<R;++T)if(H[T].name===U){H[T]=B;break}if(T===R)H.push(B)}Y.tween=H}}function oK(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var X=K2(this.node(),Z).tween;for(var H=0,Y=X.length,W;H<Y;++H)if((W=X[H]).name===Q)return W.value;return null}return this.each((U==null?aC:sC)(Z,Q,U))}function U9(Q,U,Z){var X=Q._id;return Q.each(function(){var H=w2(this,X);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return K2(H,X).value[U]}}function CJ(Q,U){var Z;return(typeof U==="number"?y2:U instanceof _4?S8:(Z=_4(U))?(U=Z,S8):Q9)(Q,U)}function tC(Q){return function(){this.removeAttribute(Q)}}function oC(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function nC(Q,U,Z){var X,H=Z+"",Y;return function(){var W=this.getAttribute(Q);return W===H?null:W===X?Y:Y=U(X=W,Z)}}function eC(Q,U,Z){var X,H=Z+"",Y;return function(){var W=this.getAttributeNS(Q.space,Q.local);return W===H?null:W===X?Y:Y=U(X=W,Z)}}function _f(Q,U,Z){var X,H,Y;return function(){var W,B=Z(this),T;if(B==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),T=B+"",W===T?null:W===X&&T===H?Y:(H=T,Y=U(X=W,B))}}function Jf(Q,U,Z){var X,H,Y;return function(){var W,B=Z(this),T;if(B==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),T=B+"",W===T?null:W===X&&T===H?Y:(H=T,Y=U(X=W,B))}}function nK(Q,U){var Z=b4(Q),X=Z==="transform"?aK:CJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Jf:_f)(Z,X,U9(this,"attr."+Q,U)):U==null?(Z.local?oC:tC)(Z):(Z.local?eC:nC)(Z,X,U))}function $f(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Qf(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function qf(Q,U){var Z,X;function H(){var Y=U.apply(this,arguments);if(Y!==X)Z=(X=Y)&&Qf(Q,Y);return Z}return H._value=U,H}function Uf(Q,U){var Z,X;function H(){var Y=U.apply(this,arguments);if(Y!==X)Z=(X=Y)&&$f(Q,Y);return Z}return H._value=U,H}function eK(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 X=b4(Q);return this.tween(Z,(X.local?qf:Uf)(X,U))}function Gf(Q,U){return function(){NJ(this,Q).delay=+U.apply(this,arguments)}}function Zf(Q,U){return U=+U,function(){NJ(this,Q).delay=U}}function _X(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Gf:Zf)(U,Q)):K2(this.node(),U).delay}function Ff(Q,U){return function(){w2(this,Q).duration=+U.apply(this,arguments)}}function Kf(Q,U){return U=+U,function(){w2(this,Q).duration=U}}function JX(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Ff:Kf)(U,Q)):K2(this.node(),U).duration}function Xf(Q,U){if(typeof U!=="function")throw Error();return function(){w2(this,Q).ease=U}}function $X(Q){var U=this._id;return arguments.length?this.each(Xf(U,Q)):K2(this.node(),U).ease}function Hf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();w2(this,Q).ease=Z}}function QX(Q){if(typeof Q!=="function")throw Error();return this.each(Hf(this._id,Q))}function qX(Q){if(typeof Q!=="function")Q=n7(Q);for(var U=this._groups,Z=U.length,X=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=X[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))B.push(T);return new r2(X,this._parents,this._name,this._id)}function UX(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,X=U.length,H=Z.length,Y=Math.min(X,H),W=Array(X),B=0;B<Y;++B)for(var T=U[B],R=Z[B],M=T.length,A=W[B]=Array(M),O,w=0;w<M;++w)if(O=T[w]||R[w])A[w]=O;for(;B<X;++B)W[B]=U[B];return new r2(W,this._parents,this._name,this._id)}function Yf(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 zf(Q,U,Z){var X,H,Y=Yf(U)?NJ:w2;return function(){var W=Y(this,Q),B=W.on;if(B!==X)(H=(X=B).copy()).on(U,Z);W.on=H}}function GX(Q,U){var Z=this._id;return arguments.length<2?K2(this.node(),Z).on.on(Q):this.each(zf(Z,Q,U))}function Wf(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function ZX(){return this.on("end.remove",Wf(this._id))}function FX(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=M6(Q);for(var X=this._groups,H=X.length,Y=Array(H),W=0;W<H;++W)for(var B=X[W],T=B.length,R=Y[W]=Array(T),M,A,O=0;O<T;++O)if((M=B[O])&&(A=Q.call(M,M.__data__,O,B))){if("__data__"in M)A.__data__=M.__data__;R[O]=A,T3(R[O],U,Z,O,R,K2(M,Z))}return new r2(Y,this._parents,U,Z)}function KX(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=e7(Q);for(var X=this._groups,H=X.length,Y=[],W=[],B=0;B<H;++B)for(var T=X[B],R=T.length,M,A=0;A<R;++A)if(M=T[A]){for(var O=Q.call(M,M.__data__,A,T),w,P=K2(M,Z),V=0,S=O.length;V<S;++V)if(w=O[V])T3(w,U,Z,V,O,P);Y.push(O),W.push(M)}return new r2(Y,W,U,Z)}var Bf=A3.prototype.constructor;function XX(){return new Bf(this._groups,this._parents)}function Lf(Q,U){var Z,X,H;return function(){var Y=T6(this,Q),W=(this.style.removeProperty(Q),T6(this,Q));return Y===W?null:Y===Z&&W===X?H:H=U(Z=Y,X=W)}}function CM(Q){return function(){this.style.removeProperty(Q)}}function Af(Q,U,Z){var X,H=Z+"",Y;return function(){var W=T6(this,Q);return W===H?null:W===X?Y:Y=U(X=W,Z)}}function Mf(Q,U,Z){var X,H,Y;return function(){var W=T6(this,Q),B=Z(this),T=B+"";if(B==null)T=B=(this.style.removeProperty(Q),T6(this,Q));return W===T?null:W===X&&T===H?Y:(H=T,Y=U(X=W,B))}}function Tf(Q,U){var Z,X,H,Y="style."+U,W="end."+Y,B;return function(){var T=w2(this,Q),R=T.on,M=T.value[Y]==null?B||(B=CM(U)):void 0;if(R!==Z||H!==M)(X=(Z=R).copy()).on(W,H=M);T.on=X}}function HX(Q,U,Z){var X=(Q+="")==="transform"?rK:CJ;return U==null?this.styleTween(Q,Lf(Q,X)).on("end.style."+Q,CM(Q)):typeof U==="function"?this.styleTween(Q,Mf(Q,X,U9(this,"style."+Q,U))).each(Tf(this._id,Q)):this.styleTween(Q,Af(Q,X,U),Z).on("end.style."+Q,null)}function Rf(Q,U,Z){return function(X){this.style.setProperty(Q,U.call(this,X),Z)}}function Of(Q,U,Z){var X,H;function Y(){var W=U.apply(this,arguments);if(W!==H)X=(H=W)&&Rf(Q,W,Z);return X}return Y._value=U,Y}function YX(Q,U,Z){var X="style."+(Q+="");if(arguments.length<2)return(X=this.tween(X))&&X._value;if(U==null)return this.tween(X,null);if(typeof U!=="function")throw Error();return this.tween(X,Of(Q,U,Z==null?"":Z))}function If(Q){return function(){this.textContent=Q}}function wf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function zX(Q){return this.tween("text",typeof Q==="function"?wf(U9(this,"text",Q)):If(Q==null?"":Q+""))}function Pf(Q){return function(U){this.textContent=Q.call(this,U)}}function Nf(Q){var U,Z;function X(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&Pf(H);return U}return X._value=Q,X}function WX(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,Nf(Q))}function BX(){var Q=this._name,U=this._id,Z=Dq();for(var X=this._groups,H=X.length,Y=0;Y<H;++Y)for(var W=X[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R]){var M=K2(T,U);T3(T,Q,Z,R,W,{time:M.time+M.delay+M.duration,delay:0,duration:M.duration,ease:M.ease})}return new r2(X,this._parents,Q,Z)}function LX(){var Q,U,Z=this,X=Z._id,H=Z.size();return new Promise(function(Y,W){var B={value:W},T={value:function(){if(--H===0)Y()}};if(Z.each(function(){var R=w2(this,X),M=R.on;if(M!==Q)U=(Q=M).copy(),U._.cancel.push(B),U._.interrupt.push(B),U._.end.push(T);R.on=U}),H===0)Y()})}var Cf=0;function r2(Q,U,Z,X){this._groups=Q,this._parents=U,this._name=Z,this._id=X}function fM(Q){return A3().transition(Q)}function Dq(){return++Cf}var R3=A3.prototype;r2.prototype=fM.prototype={constructor:r2,select:FX,selectAll:KX,selectChild:R3.selectChild,selectChildren:R3.selectChildren,filter:qX,merge:UX,selection:XX,transition:BX,call:R3.call,nodes:R3.nodes,node:R3.node,size:R3.size,empty:R3.empty,each:R3.each,on:GX,attr:nK,attrTween:eK,style:HX,styleTween:YX,text:zX,textTween:WX,remove:ZX,tween:oK,delay:_X,duration:JX,ease:$X,easeVarying:QX,end:LX,[Symbol.iterator]:R3[Symbol.iterator]};function uq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var ff={time:null,delay:0,duration:250,ease:uq};function Sf(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function AX(Q){var U,Z;if(Q instanceof r2)U=Q._id,Q=Q._name;else U=Dq(),(Z=ff).time=IJ(),Q=Q==null?null:Q+"";for(var X=this._groups,H=X.length,Y=0;Y<H;++Y)for(var W=X[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R])T3(T,Q,U,R,W,Z||Sf(T,U));return new r2(X,this._parents,Q,U)}A3.prototype.interrupt=tK;A3.prototype.transition=AX;var fJ=(Q)=>()=>Q;function MX(Q,{sourceEvent:U,target:Z,transform:X,dispatch:H}){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:X,enumerable:!0,configurable:!0},_:{value:H}})}function J4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}J4.prototype={constructor:J4,scale:function(Q){return Q===1?this:new J4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new J4(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 V8=new J4(1,0,0);SJ.prototype=J4.prototype;function SJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return V8;return Q.__zoom}function bq(Q){Q.stopImmediatePropagation()}function y8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function jf(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function vf(){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 SM(){return this.__zoom||V8}function Vf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function yf(){return navigator.maxTouchPoints||"ontouchstart"in this}function kf(Q,U,Z){var X=Q.invertX(U[0][0])-Z[0][0],H=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(H>X?(X+H)/2:Math.min(0,X)||Math.max(0,H),W>Y?(Y+W)/2:Math.min(0,Y)||Math.max(0,W))}function jJ(){var Q=jf,U=vf,Z=kf,X=Vf,H=yf,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],B=250,T=j8,R=P8("start","zoom","end"),M,A,O,w=500,P=150,V=0,S=10;function C(x){x.property("__zoom",SM).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",m).filter(H).on("touchstart.zoom",e).on("touchmove.zoom",Q1).on("touchend.zoom touchcancel.zoom",J1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(x,g,c,a){var d=x.selection?x.selection():x;if(d.property("__zoom",SM),x!==d)u(x,g,c,a);else d.interrupt().each(function(){h(this,arguments).event(a).start().zoom(null,typeof g==="function"?g.apply(this,arguments):g).end()})},C.scaleBy=function(x,g,c,a){C.scaleTo(x,function(){var d=this.__zoom.k,t=typeof g==="function"?g.apply(this,arguments):g;return d*t},c,a)},C.scaleTo=function(x,g,c,a){C.transform(x,function(){var d=U.apply(this,arguments),t=this.__zoom,y=c==null?v(d):typeof c==="function"?c.apply(this,arguments):c,p=t.invert(y),q1=typeof g==="function"?g.apply(this,arguments):g;return Z(N(D(t,q1),y,p),d,W)},c,a)},C.translateBy=function(x,g,c,a){C.transform(x,function(){return Z(this.__zoom.translate(typeof g==="function"?g.apply(this,arguments):g,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),W)},null,a)},C.translateTo=function(x,g,c,a,d){C.transform(x,function(){var t=U.apply(this,arguments),y=this.__zoom,p=a==null?v(t):typeof a==="function"?a.apply(this,arguments):a;return Z(V8.translate(p[0],p[1]).scale(y.k).translate(typeof g==="function"?-g.apply(this,arguments):-g,typeof c==="function"?-c.apply(this,arguments):-c),t,W)},a,d)};function D(x,g){return g=Math.max(Y[0],Math.min(Y[1],g)),g===x.k?x:new J4(g,x.x,x.y)}function N(x,g,c){var a=g[0]-c[0]*x.k,d=g[1]-c[1]*x.k;return a===x.x&&d===x.y?x:new J4(x.k,a,d)}function v(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function u(x,g,c,a){x.on("start.zoom",function(){h(this,arguments).event(a).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).event(a).end()}).tween("zoom",function(){var d=this,t=arguments,y=h(d,t).event(a),p=U.apply(d,t),q1=c==null?v(p):typeof c==="function"?c.apply(d,t):c,s=Math.max(p[1][0]-p[0][0],p[1][1]-p[0][1]),W1=d.__zoom,R1=typeof g==="function"?g.apply(d,t):g,T1=T(W1.invert(q1).concat(s/W1.k),R1.invert(q1).concat(s/R1.k));return function(A1){if(A1===1)A1=R1;else{var U1=T1(A1),w1=s/U1[2];A1=new J4(w1,q1[0]-U1[0]*w1,q1[1]-U1[1]*w1)}y.zoom(null,A1)}})}function h(x,g,c){return!c&&x.__zooming||new k(x,g)}function k(x,g){this.that=x,this.args=g,this.active=0,this.sourceEvent=null,this.extent=U.apply(x,g),this.taps=0}k.prototype={event:function(x){if(x)this.sourceEvent=x;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(x,g){if(this.mouse&&x!=="mouse")this.mouse[1]=g.invert(this.mouse[0]);if(this.touch0&&x!=="touch")this.touch0[1]=g.invert(this.touch0[0]);if(this.touch1&&x!=="touch")this.touch1[1]=g.invert(this.touch1[0]);return this.that.__zoom=g,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(x){var g=F2(this.that).datum();R.call(x,this.that,new MX(x,{sourceEvent:this.sourceEvent,target:C,type:x,transform:this.that.__zoom,dispatch:R}),g)}};function b(x,...g){if(!Q.apply(this,arguments))return;var c=h(this,g).event(x),a=this.__zoom,d=Math.max(Y[0],Math.min(Y[1],a.k*Math.pow(2,X.apply(this,arguments)))),t=V2(x);if(c.wheel){if(c.mouse[0][0]!==t[0]||c.mouse[0][1]!==t[1])c.mouse[1]=a.invert(c.mouse[0]=t);clearTimeout(c.wheel)}else if(a.k===d)return;else c.mouse=[t,a.invert(t)],R6(this),c.start();y8(x),c.wheel=setTimeout(y,P),c.zoom("mouse",Z(N(D(a,d),c.mouse[0],c.mouse[1]),c.extent,W));function y(){c.wheel=null,c.end()}}function E(x,...g){if(O||!Q.apply(this,arguments))return;var c=x.currentTarget,a=h(this,g,!0).event(x),d=F2(x.view).on("mousemove.zoom",q1,!0).on("mouseup.zoom",s,!0),t=V2(x,c),y=x.clientX,p=x.clientY;_9(x.view),bq(x),a.mouse=[t,this.__zoom.invert(t)],R6(this),a.start();function q1(W1){if(y8(W1),!a.moved){var R1=W1.clientX-y,T1=W1.clientY-p;a.moved=R1*R1+T1*T1>V}a.event(W1).zoom("mouse",Z(N(a.that.__zoom,a.mouse[0]=V2(W1,c),a.mouse[1]),a.extent,W))}function s(W1){d.on("mousemove.zoom mouseup.zoom",null),FJ(W1.view,a.moved),y8(W1),a.event(W1).end()}}function m(x,...g){if(!Q.apply(this,arguments))return;var c=this.__zoom,a=V2(x.changedTouches?x.changedTouches[0]:x,this),d=c.invert(a),t=c.k*(x.shiftKey?0.5:2),y=Z(N(D(c,t),a,d),U.apply(this,g),W);if(y8(x),B>0)F2(this).transition().duration(B).call(u,y,a,x);else F2(this).call(C.transform,y,a,x)}function e(x,...g){if(!Q.apply(this,arguments))return;var c=x.touches,a=c.length,d=h(this,g,x.changedTouches.length===a).event(x),t,y,p,q1;bq(x);for(y=0;y<a;++y)if(p=c[y],q1=V2(p,this),q1=[q1,this.__zoom.invert(q1),p.identifier],!d.touch0)d.touch0=q1,t=!0,d.taps=1+!!M;else if(!d.touch1&&d.touch0[2]!==q1[2])d.touch1=q1,d.taps=0;if(M)M=clearTimeout(M);if(t){if(d.taps<2)A=q1[0],M=setTimeout(function(){M=null},w);R6(this),d.start()}}function Q1(x,...g){if(!this.__zooming)return;var c=h(this,g).event(x),a=x.changedTouches,d=a.length,t,y,p,q1;y8(x);for(t=0;t<d;++t)if(y=a[t],p=V2(y,this),c.touch0&&c.touch0[2]===y.identifier)c.touch0[0]=p;else if(c.touch1&&c.touch1[2]===y.identifier)c.touch1[0]=p;if(y=c.that.__zoom,c.touch1){var s=c.touch0[0],W1=c.touch0[1],R1=c.touch1[0],T1=c.touch1[1],A1=(A1=R1[0]-s[0])*A1+(A1=R1[1]-s[1])*A1,U1=(U1=T1[0]-W1[0])*U1+(U1=T1[1]-W1[1])*U1;y=D(y,Math.sqrt(A1/U1)),p=[(s[0]+R1[0])/2,(s[1]+R1[1])/2],q1=[(W1[0]+T1[0])/2,(W1[1]+T1[1])/2]}else if(c.touch0)p=c.touch0[0],q1=c.touch0[1];else return;c.zoom("touch",Z(N(y,p,q1),c.extent,W))}function J1(x,...g){if(!this.__zooming)return;var c=h(this,g).event(x),a=x.changedTouches,d=a.length,t,y;if(bq(x),O)clearTimeout(O);O=setTimeout(function(){O=null},w);for(t=0;t<d;++t)if(y=a[t],c.touch0&&c.touch0[2]===y.identifier)delete c.touch0;else if(c.touch1&&c.touch1[2]===y.identifier)delete c.touch1;if(c.touch1&&!c.touch0)c.touch0=c.touch1,delete c.touch1;if(c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),c.taps===2){if(y=V2(y,this),Math.hypot(A[0]-y[0],A[1]-y[1])<S){var p=F2(this).on("dblclick.zoom");if(p)p.apply(this,arguments)}}}return C.wheelDelta=function(x){return arguments.length?(X=typeof x==="function"?x:fJ(+x),C):X},C.filter=function(x){return arguments.length?(Q=typeof x==="function"?x:fJ(!!x),C):Q},C.touchable=function(x){return arguments.length?(H=typeof x==="function"?x:fJ(!!x),C):H},C.extent=function(x){return arguments.length?(U=typeof x==="function"?x:fJ([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),C):U},C.scaleExtent=function(x){return arguments.length?(Y[0]=+x[0],Y[1]=+x[1],C):[Y[0],Y[1]]},C.translateExtent=function(x){return arguments.length?(W[0][0]=+x[0][0],W[1][0]=+x[1][0],W[0][1]=+x[0][1],W[1][1]=+x[1][1],C):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},C.constrain=function(x){return arguments.length?(Z=x,C):Z},C.duration=function(x){return arguments.length?(B=+x,C):B},C.interpolate=function(x){return arguments.length?(T=x,C):T},C.on=function(){var x=R.on.apply(R,arguments);return x===R?C:x},C.clickDistance=function(x){return arguments.length?(V=(x=+x)*x,C):Math.sqrt(V)},C.tapDistance=function(x){return arguments.length?(S=+x,C):S},C}var a2={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:X})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:X}", 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.`},K9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],wX=["Enter"," ","Escape"],PX={"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"},P6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(P6||(P6={}));var O3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(O3||(O3={}));var k8;(function(Q){Q.Partial="partial",Q.Full="full"})(k8||(k8={}));var NX={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},x4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(x4||(x4={}));var Z9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(Z9||(Z9={}));var D1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(D1||(D1={}));var jM={[D1.Left]:D1.Right,[D1.Right]:D1.Left,[D1.Top]:D1.Bottom,[D1.Bottom]:D1.Top},CX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),cM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),fX=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var VJ=(Q,U=[0,0])=>{let{width:Z,height:X}=E5(Q),H=Q.origin??U,Y=Z*H[0],W=X*H[1];return{x:Q.position.x-Y,y:Q.position.y-W}},SX=(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,X=Q.reduce((H,Y)=>{let W=typeof Y==="string",B=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)B=W?U.nodeLookup.get(Y):!fX(Y)?U.nodeLookup.get(Y.id):Y;if(!B)return H;return Z=!0,pq(H,xq(B,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?cq(X):{x:0,y:0,width:0,height:0}},E8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},X=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=pq(Z,xq(H)),X=!0}),X?cq(Z):{x:0,y:0,width:0,height:0}},mq=(Q,U,[Z,X,H]=[0,0,1],Y=!1,W=!1)=>{let B=(U.x-Z)/H,T=(U.y-X)/H,R=U.width/H,M=U.height/H,A=[];for(let O of Q.values()){let{measured:w,selectable:P=!0,hidden:V=!1}=O;if(W&&!P||V)continue;let S=w.width??O.width??O.initialWidth??0,C=w.height??O.height??O.initialHeight??0,{x:D,y:N}=O.internals.positionAbsolute,v=aM(B,T,R,M,D,N,S,C),u=S*C,h=Y&&v>0;if(!O.internals.handleBounds||h||v>=u||O.dragging)A.push(O)}return A},lM=(Q,U)=>{let Z=new Set;return Q.forEach((X)=>{Z.add(X.id)}),U.filter((X)=>Z.has(X.source)||Z.has(X.target))};function Df(Q,U){let Z=new Map,X=U?.nodes?new Set(U.nodes.map((H)=>H.id)):null;return Q.forEach((H)=>{let Y;if(U?.includeHiddenNodes){let{width:W,height:B}=E5(H);Y=W>0&&B>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!X||X.has(H.id)))Z.set(H.id,H)}),Z}async function dM({nodes:Q,width:U,height:Z,panZoom:X,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let B=Df(Q,W),T=E8(B),R=kJ(T,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await X.setViewport(R,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function jX({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:X=[0,0],nodeExtent:H,onError:Y}){let W=Z.get(Q),B=W.parentId?Z.get(W.parentId):void 0,{x:T,y:R}=B?B.internals.positionAbsolute:{x:0,y:0},M=W.origin??X,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!B)Y?.("005",a2.error005());else{let{width:w,height:P}=E5(B);if(w&&P)A=[[T,R],[T+w,R+P]]}else if(B&&b8(W.extent))A=[[W.extent[0][0]+T,W.extent[0][1]+R],[W.extent[1][0]+T,W.extent[1][1]+R]];let O=b8(A)?D8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",a2.error015());return{position:{x:O.x-T+(W.measured.width??0)*M[0],y:O.y-R+(W.measured.height??0)*M[1]},positionAbsolute:O}}async function iM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:X,onBeforeDelete:H}){let Y=new Set(Q.map((O)=>O.id)),W=[];for(let O of Z){if(O.deletable===!1)continue;let w=Y.has(O.id),P=!w&&O.parentId&&W.find((V)=>V.id===O.parentId);if(w||P)W.push(O)}let B=new Set(U.map((O)=>O.id)),T=X.filter((O)=>O.deletable!==!1),M=lM(W,T);for(let O of T)if(B.has(O.id)&&!M.find((P)=>P.id===O.id))M.push(O);if(!H)return{edges:M,nodes:W};let A=await H({nodes:W,edges:M});if(typeof A==="boolean")return A?{edges:M,nodes:W}:{edges:[],nodes:[]};return A}var F9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),D8=(Q={x:0,y:0},U,Z)=>({x:F9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:F9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function rM(Q,U,Z){let{width:X,height:H}=E5(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return D8(Q,[[Y,W],[Y+X,W+H]],U)}var vM=(Q,U,Z)=>{if(Q<U)return F9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-F9(Math.abs(Q-Z),1,U)/U;return 0},gq=(Q,U,Z=15,X=40)=>{let H=vM(Q.x,X,U.width-X)*Z,Y=vM(Q.y,X,U.height-X)*Z;return[H,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)}),IX=({x:Q,y:U,width:Z,height:X})=>({x:Q,y:U,x2:Q+Z,y2:U+X}),cq=({x:Q,y:U,x2:Z,y2:X})=>({x:Q,y:U,width:Z-Q,height:X-U}),X9=(Q,U=[0,0])=>{let{x:Z,y:X}=fX(Q)?Q.internals.positionAbsolute:VJ(Q,U);return{x:Z,y:X,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},xq=(Q,U=[0,0])=>{let{x:Z,y:X}=fX(Q)?Q.internals.positionAbsolute:VJ(Q,U);return{x:Z,y:X,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:X+(Q.measured?.height??Q.height??Q.initialHeight??0)}},vX=(Q,U)=>cq(pq(IX(Q),IX(U))),aM=(Q,U,Z,X,H,Y,W,B)=>{let T=Math.max(0,Math.min(Q+Z,H+W)-Math.max(Q,H)),R=Math.max(0,Math.min(U+X,Y+B)-Math.max(U,Y));return Math.ceil(T*R)},yJ=(Q,U)=>aM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),VX=(Q)=>u5(Q.width)&&u5(Q.height)&&u5(Q.x)&&u5(Q.y),u5=(Q)=>!isNaN(Q)&&isFinite(Q),yX=(Q,U)=>(Z,X)=>{console.warn(`[${Q}]: ${X} Help: ${U}error#${Z}`)},H9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},Y9=({x:Q,y:U},[Z,X,H],Y=!1,W=[1,1])=>{let B={x:(Q-Z)/H,y:(U-X)/H};return Y?H9(B,W):B},u8=({x:Q,y:U},[Z,X,H])=>{return{x:Q*H+Z,y:U*H+X}};function G9(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 uf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let X=G9(Q,Z),H=G9(Q,U);return{top:X,right:H,bottom:X,left:H,x:H*2,y:X*2}}if(typeof Q==="object"){let X=G9(Q.top??Q.y??0,Z),H=G9(Q.bottom??Q.y??0,Z),Y=G9(Q.left??Q.x??0,U),W=G9(Q.right??Q.x??0,U);return{top:X,right:W,bottom:H,left:Y,x:Y+W,y:X+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function bf(Q,U,Z,X,H,Y){let{x:W,y:B}=u8(Q,[U,Z,X]),{x:T,y:R}=u8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,X]),M=H-T,A=Y-R;return{left:Math.floor(W),top:Math.floor(B),right:Math.floor(M),bottom:Math.floor(A)}}var kJ=(Q,U,Z,X,H,Y)=>{let W=uf(Y,U,Z),B=(U-W.x)/Q.width,T=(Z-W.y)/Q.height,R=Math.min(B,T),M=F9(R,X,H),A=Q.x+Q.width/2,O=Q.y+Q.height/2,w=U/2-A*M,P=Z/2-O*M,V=bf(Q,w,P,M,U,Z),S={left:Math.min(V.left-W.left,0),top:Math.min(V.top-W.top,0),right:Math.min(V.right-W.right,0),bottom:Math.min(V.bottom-W.bottom,0)};return{x:w-S.left+S.right,y:P-S.top+S.bottom,zoom:M}},z9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function b8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function E5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function kX(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function DX(Q,U={width:0,height:0},Z,X,H){let Y={...Q},W=X.get(Z);if(W){let B=W.origin||H;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 uX(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function sM(){let Q,U;return{promise:new Promise((X,H)=>{Q=X,U=H}),resolve:Q,reject:U}}function tM(Q){return{...PX,...Q||{}}}function Ef(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 X=U.getBoundingClientRect();if(X.width===0&&X.height===0)return!0;let H=document.querySelector(`.${Q}-flow__attribution`);if(!H||!H.isConnected)return!1;let Y=getComputedStyle(H);if(Y.display==="none")return!1;if(Y.visibility==="hidden"||Y.visibility==="collapse")return!1;if(Y.opacity==="0")return!1;let W=H.getBoundingClientRect();if(W.width===0&&W.height===0)return!1;return!0}var VM=!1;function oM(Q){if(VM)return;VM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!Ef(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 bX(Q){return Q===null?null:Q?"valid":"invalid"}function vJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:X,containerBounds:H}){let{x:Y,y:W}=b5(Q),B=Y9({x:Y-(H?.left??0),y:W-(H?.top??0)},X),{x:T,y:R}=Z?H9(B,U):B;return{xSnapped:T,ySnapped:R,...B}}var lq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),EX=(Q)=>Q?.getRootNode?.()||window?.document,hf=["INPUT","SELECT","TEXTAREA"];function hX(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return hf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var xX=(Q)=>("clientX"in Q),b5=(Q,U)=>{let Z=xX(Q),X=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:X-(U?.left??0),y:H-(U?.top??0)}},yM=(Q,U,Z,X,H)=>{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:H,position:W.getAttribute("data-handlepos"),x:(B.left-Z.left)/X,y:(B.top-Z.top)/X,...lq(W)}})};function dq({sourceX:Q,sourceY:U,targetX:Z,targetY:X,sourceControlX:H,sourceControlY:Y,targetControlX:W,targetControlY:B}){let T=Q*0.125+H*0.375+W*0.375+Z*0.125,R=U*0.125+Y*0.375+B*0.375+X*0.125,M=Math.abs(T-Q),A=Math.abs(R-U);return[T,R,M,A]}function Eq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function kM({pos:Q,x1:U,y1:Z,x2:X,y2:H,c:Y}){switch(Q){case D1.Left:return[U-Eq(U-X,Y),Z];case D1.Right:return[U+Eq(X-U,Y),Z];case D1.Top:return[U,Z-Eq(Z-H,Y)];case D1.Bottom:return[U,Z+Eq(H-Z,Y)]}}function iq({sourceX:Q,sourceY:U,sourcePosition:Z=D1.Bottom,targetX:X,targetY:H,targetPosition:Y=D1.Top,curvature:W=0.25}){let[B,T]=kM({pos:Z,x1:Q,y1:U,x2:X,y2:H,c:W}),[R,M]=kM({pos:Y,x1:X,y1:H,x2:Q,y2:U,c:W}),[A,O,w,P]=dq({sourceX:Q,sourceY:U,targetX:X,targetY:H,sourceControlX:B,sourceControlY:T,targetControlX:R,targetControlY:M});return[`M${Q},${U} C${B},${T} ${R},${M} ${X},${H}`,A,O,w,P]}function mX({sourceX:Q,sourceY:U,targetX:Z,targetY:X}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,W=Math.abs(X-U)/2,B=X<U?X+W:X-W;return[Y,B,H,W]}function nM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:X=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return X;let W=H&&Z?X+1000:X,B=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return W+B}function eM({sourceNode:Q,targetNode:U,width:Z,height:X,transform:H}){let Y=pq(xq(Q),xq(U));if(Y.x===Y.x2)Y.x2+=1;if(Y.y===Y.y2)Y.y2+=1;let W={x:-H[0]/H[2],y:-H[1]/H[2],width:Z/H[2],height:X/H[2]};return yJ(W,cq(Y))>0}var xf=({source:Q,sourceHandle:U,target:Z,targetHandle:X})=>`xy-edge__${Q}${U||""}-${Z}${X||""}`,mf=(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))},_T=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",a2.error006()),U;let X=Z.getEdgeId||xf,H;if(CX(Q))H={...Q};else H={...Q,id:X(Q)};if(mf(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function rq({sourceX:Q,sourceY:U,targetX:Z,targetY:X}){let[H,Y,W,B]=mX({sourceX:Q,sourceY:U,targetX:Z,targetY:X});return[`M ${Q},${U}L ${Z},${X}`,H,Y,W,B]}var DM={[D1.Left]:{x:-1,y:0},[D1.Right]:{x:1,y:0},[D1.Top]:{x:0,y:-1},[D1.Bottom]:{x:0,y:1}},gf=({source:Q,sourcePosition:U=D1.Bottom,target:Z})=>{if(U===D1.Left||U===D1.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 pf({source:Q,sourcePosition:U=D1.Bottom,target:Z,targetPosition:X=D1.Top,center:H,offset:Y,stepPosition:W}){let B=DM[U],T=DM[X],R={x:Q.x+B.x*Y,y:Q.y+B.y*Y},M={x:Z.x+T.x*Y,y:Z.y+T.y*Y},A=gf({source:R,sourcePosition:U,target:M}),O=A.x!==0?"x":"y",w=A[O],P=[],V,S,C={x:0,y:0},D={x:0,y:0},[,,N,v]=mX({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(B[O]*T[O]===-1){if(O==="x")V=H.x??R.x+(M.x-R.x)*W,S=H.y??(R.y+M.y)/2;else V=H.x??(R.x+M.x)/2,S=H.y??R.y+(M.y-R.y)*W;let b=[{x:V,y:R.y},{x:V,y:M.y}],E=[{x:R.x,y:S},{x:M.x,y:S}];if(B[O]===w)P=O==="x"?b:E;else P=O==="x"?E:b}else{let b=[{x:R.x,y:M.y}],E=[{x:M.x,y:R.y}];if(O==="x")P=B.x===w?E:b;else P=B.y===w?b:E;if(U===X){let x=Math.abs(Q[O]-Z[O]);if(x<=Y){let g=Math.min(Y-1,Y-x);if(B[O]===w)C[O]=(R[O]>Q[O]?-1:1)*g;else D[O]=(M[O]>Z[O]?-1:1)*g}}if(U!==X){let x=O==="x"?"y":"x",g=B[O]===T[x],c=R[x]>M[x],a=R[x]<M[x];if(B[O]===1&&(!g&&c||g&&a)||B[O]!==1&&(!g&&a||g&&c))P=O==="x"?b:E}let m={x:R.x+C.x,y:R.y+C.y},e={x:M.x+D.x,y:M.y+D.y},Q1=Math.max(Math.abs(m.x-P[0].x),Math.abs(e.x-P[0].x)),J1=Math.max(Math.abs(m.y-P[0].y),Math.abs(e.y-P[0].y));if(Q1>=J1)V=(m.x+e.x)/2,S=P[0].y;else V=P[0].x,S=(m.y+e.y)/2}let u={x:R.x+C.x,y:R.y+C.y},h={x:M.x+D.x,y:M.y+D.y};return[[Q,...u.x!==P[0].x||u.y!==P[0].y?[u]:[],...P,...h.x!==P[P.length-1].x||h.y!==P[P.length-1].y?[h]:[],Z],V,S,N,v]}function cf(Q,U,Z,X){let H=Math.min(uM(Q,U)/2,uM(U,Z)/2,X),{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 R=Q.x<Z.x?-1:1,M=Q.y<Z.y?1:-1;return`L ${Y+H*R},${W}Q ${Y},${W} ${Y},${W+H*M}`}let B=Q.x<Z.x?1:-1,T=Q.y<Z.y?-1:1;return`L ${Y},${W+H*T}Q ${Y},${W} ${Y+H*B},${W}`}function DJ({sourceX:Q,sourceY:U,sourcePosition:Z=D1.Bottom,targetX:X,targetY:H,targetPosition:Y=D1.Top,borderRadius:W=5,centerX:B,centerY:T,offset:R=20,stepPosition:M=0.5}){let[A,O,w,P,V]=pf({source:{x:Q,y:U},sourcePosition:Z,target:{x:X,y:H},targetPosition:Y,center:{x:B,y:T},offset:R,stepPosition:M}),S=`M${A[0].x} ${A[0].y}`;for(let C=1;C<A.length-1;C++)S+=cf(A[C-1],A[C],A[C+1],W);return S+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[S,O,w,P,V]}function bM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function JT(Q){let{sourceNode:U,targetNode:Z}=Q;if(!bM(U)||!bM(Z))return null;let X=U.internals.handleBounds||EM(U.handles),H=Z.internals.handleBounds||EM(Z.handles),Y=hM(X?.source??[],Q.sourceHandle),W=hM(Q.connectionMode===P6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",a2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let B=Y?.position||D1.Bottom,T=W?.position||D1.Top,R=N6(U,Y,B),M=N6(Z,W,T);return{sourceX:R.x,sourceY:R.y,targetX:M.x,targetY:M.y,sourcePosition:B,targetPosition:T}}function EM(Q){if(!Q)return null;let U=[],Z=[];for(let X of Q)if(X.width=X.width??1,X.height=X.height??1,X.type==="source")U.push(X);else if(X.type==="target")Z.push(X);return{source:U,target:Z}}function N6(Q,U,Z=D1.Left,X=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:B}=U??E5(Q);if(X)return{x:H+W/2,y:Y+B/2};switch(U?.position??Z){case D1.Top:return{x:H+W/2,y:Y};case D1.Right:return{x:H+W,y:Y+B/2};case D1.Bottom:return{x:H+W/2,y:Y+B};case D1.Left:return{x:H,y:Y+B/2}}}function hM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function aq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((X)=>`${X}=${Q[X]}`).join("&")}`}function $T(Q,{id:U,defaultColor:Z,defaultMarkerStart:X,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((W,B)=>{return[B.markerStart||X,B.markerEnd||H].forEach((T)=>{if(T&&typeof T==="object"){let R=aq(T,U);if(!Y.has(R))W.push({id:R,color:T.color||Z,...T}),Y.add(R)}}),W},[]).sort((W,B)=>W.id.localeCompare(B.id))}function QT(Q,U,Z,X,H){let Y=0.5;if(H==="start")Y=0;else if(H==="end")Y=1;let W=[(Q.x+Q.width*Y)*U.zoom+U.x,Q.y*U.zoom+U.y-X],B=[-100*Y,-100];switch(Z){case D1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+X,(Q.y+Q.height*Y)*U.zoom+U.y],B=[0,-100*Y];break;case D1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+X,B[1]=0;break;case D1.Left:W=[Q.x*U.zoom+U.x-X,(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 qT=1000,lf=10,gX={nodeOrigin:[0,0],nodeExtent:K9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},df={...gX,checkEquality:!0};function pX(Q,U){let Z={...Q};for(let X in U)if(U[X]!==void 0)Z[X]=U[X];return Z}function UT(Q,U,Z){let X=pX(gX,Z);for(let H of Q.values())if(H.parentId)lX(H,Q,U,X);else{let Y=VJ(H,X.nodeOrigin),W=b8(H.extent)?H.extent:X.nodeExtent,B=D8(Y,W,E5(H));H.internals.positionAbsolute=B}}function rf(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],X=[];for(let H of Q.handles){let Y={id:H.id,width:H.width??1,height:H.height??1,nodeId:Q.id,x:H.x,y:H.y,position:H.position,type:H.type};if(H.type==="source")Z.push(Y);else if(H.type==="target")X.push(Y)}return{source:Z,target:X}}function cX(Q){return Q==="manual"}function sq(Q,U,Z,X={}){let H=pX(df,X),Y={i:0},W=new Map(U),B=H?.elevateNodesOnSelect&&!cX(H.zIndexMode)?qT:0,T=Q.length>0,R=!1;U.clear(),Z.clear();for(let M of Q){let A=W.get(M.id);if(H.checkEquality&&M===A?.internals.userNode)U.set(M.id,A);else{let O=VJ(M,H.nodeOrigin),w=b8(M.extent)?M.extent:H.nodeExtent,P=D8(O,w,E5(M));A={...H.defaults,...M,measured:{width:M.measured?.width,height:M.measured?.height},internals:{positionAbsolute:P,handleBounds:rf(M,A),z:GT(M,B,H.zIndexMode),userNode:M}},U.set(M.id,A)}if((A.measured===void 0||A.measured.width===void 0||A.measured.height===void 0)&&!A.hidden)T=!1;if(M.parentId)lX(A,U,Z,X,Y);R||=M.selected??!1}return{nodesInitialized:T,hasSelectedNodes:R}}function af(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 lX(Q,U,Z,X,H){let{elevateNodesOnSelect:Y,nodeOrigin:W,nodeExtent:B,zIndexMode:T}=pX(gX,X),R=Q.parentId,M=U.get(R);if(!M){console.warn(`Parent node ${R} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}if(af(Q,Z),H&&!M.parentId&&M.internals.rootParentIndex===void 0&&T==="auto")M.internals.rootParentIndex=++H.i,M.internals.z=M.internals.z+H.i*lf;if(H&&M.internals.rootParentIndex!==void 0)H.i=M.internals.rootParentIndex;let A=Y&&!cX(T)?qT:0,{x:O,y:w,z:P}=sf(Q,M,W,B,A,T),{positionAbsolute:V}=Q.internals,S=O!==V.x||w!==V.y;if(S||P!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:S?{x:O,y:w}:V,z:P}})}function GT(Q,U,Z){let X=u5(Q.zIndex)?Q.zIndex:0;if(cX(Z))return X;return X+(Q.selected?U:0)}function sf(Q,U,Z,X,H,Y){let{x:W,y:B}=U.internals.positionAbsolute,T=E5(Q),R=VJ(Q,Z),M=b8(Q.extent)?D8(R,Q.extent,T):R,A=D8({x:W+M.x,y:B+M.y},X,T);if(Q.extent==="parent")A=rM(A,T,U);let O=GT(Q,H,Y),w=U.internals.z??0;return{x:A.x,y:A.y,z:w>=O?w+1:O}}function tq(Q,U,Z,X=[0,0]){let H=[],Y=new Map;for(let W of Q){let B=U.get(W.parentId);if(!B)continue;let T=Y.get(W.parentId)?.expandedRect??X9(B),R=vX(T,W.rect);Y.set(W.parentId,{expandedRect:R,parent:B})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:B},T)=>{let R=B.internals.positionAbsolute,M=E5(B),A=B.origin??X,O=W.x<R.x?Math.round(Math.abs(R.x-W.x)):0,w=W.y<R.y?Math.round(Math.abs(R.y-W.y)):0,P=Math.max(M.width,Math.round(W.width)),V=Math.max(M.height,Math.round(W.height)),S=(P-M.width)*A[0],C=(V-M.height)*A[1];if(O>0||w>0||S||C)H.push({id:T,type:"position",position:{x:B.position.x-O+S,y:B.position.y-w+C}}),Z.get(T)?.forEach((D)=>{if(!Q.some((N)=>N.id===D.id))H.push({id:D.id,type:"position",position:{x:D.position.x+O,y:D.position.y+w}})});if(M.width<W.width||M.height<W.height||O||w)H.push({id:T,type:"dimensions",setAttributes:!0,dimensions:{width:P+(O?A[0]*O-S:0),height:V+(w?A[1]*w-C:0)}})});return H}function ZT(Q,U,Z,X,H,Y,W){let B=X?.querySelector(".xyflow__viewport"),T=!1;if(!B)return{changes:[],updatedInternals:T};let R=[],M=window.getComputedStyle(B),{m22:A}=new window.DOMMatrixReadOnly(M.transform),O=[];for(let w of Q.values()){let P=U.get(w.id);if(!P)continue;if(P.hidden){U.set(P.id,{...P,internals:{...P.internals,handleBounds:void 0}}),T=!0;continue}let V=lq(w.nodeElement),S=P.measured.width!==V.width||P.measured.height!==V.height;if(!!(V.width&&V.height&&(S||!P.internals.handleBounds||w.force))){let D=w.nodeElement.getBoundingClientRect(),N=b8(P.extent)?P.extent:Y,{positionAbsolute:v}=P.internals;if(P.parentId&&P.extent==="parent"){let h=U.get(P.parentId);if(h)v=rM(v,V,h)}else if(N)v=D8(v,N,V);let u={...P,measured:V,internals:{...P.internals,positionAbsolute:v,handleBounds:{source:yM("source",w.nodeElement,D,A,P.id),target:yM("target",w.nodeElement,D,A,P.id)}}};if(U.set(P.id,u),P.parentId)lX(u,U,Z,{nodeOrigin:H,zIndexMode:W});if(T=!0,S){if(R.push({id:P.id,type:"dimensions",dimensions:V}),P.expandParent&&P.parentId)O.push({id:P.id,parentId:P.parentId,rect:X9(u,H)})}}}if(O.length>0){let w=tq(O,U,Z,H);R.push(...w)}return{changes:R,updatedInternals:T}}async function FT({delta:Q,panZoom:U,transform:Z,translateExtent:X,width:H,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],[H,Y]],X);return!!W&&(W.x!==Z[0]||W.y!==Z[1]||W.k!==Z[2])}function xM(Q,U,Z,X,H,Y){let W=H,B=X.get(W)||new Map;X.set(W,B.set(Z,U)),W=`${H}-${Q}`;let T=X.get(W)||new Map;if(X.set(W,T.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let R=X.get(W)||new Map;X.set(W,R.set(Z,U))}}function dX(Q,U,Z){Q.clear(),U.clear();for(let X of Z){let{source:H,target:Y,sourceHandle:W=null,targetHandle:B=null}=X,T={edgeId:X.id,source:H,target:Y,sourceHandle:W,targetHandle:B},R=`${H}-${W}--${Y}-${B}`,M=`${Y}-${B}--${H}-${W}`;xM("source",T,M,Q,H,W),xM("target",T,R,Q,Y,B),U.set(X.id,X)}}function KT(Q,U){if(!Q.parentId)return!1;let Z=U.get(Q.parentId);if(!Z)return!1;if(Z.selected)return!0;return KT(Z,U)}function mM(Q,U,Z){let X=Q;do{if(X?.matches?.(U))return!0;if(X===Z)return!1;X=X?.parentElement}while(X);return!1}function tf(Q,U,Z,X){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===X)&&(!W.parentId||!KT(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let B=Q.get(Y);if(B)H.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 H}function TX({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:X=!0}){let H=[];for(let[W,B]of U){let T=Z.get(W)?.internals.userNode;if(T)H.push({...T,position:B.position,dragging:X})}if(!Q)return[H[0],H];let Y=Z.get(Q)?.internals.userNode;return[!Y?H[0]:{...Y,position:U.get(Q)?.position||Y.position,dragging:X},H]}function of({dragItems:Q,snapGrid:U,x:Z,y:X}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:X-H.distance.y},W=H9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function XT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:X,onDragStop:H}){let Y={x:null,y:null},W=0,B=new Map,T=!1,R={x:0,y:0},M=null,A=!1,O=null,w=!1,P=!1,V=null;function S({noDragClassName:D,handleSelector:N,domNode:v,isSelectable:u,nodeId:h,nodeClickDistance:k=0}){O=F2(v);function b({x:Q1,y:J1}){let{nodeLookup:x,nodeExtent:g,snapGrid:c,snapToGrid:a,nodeOrigin:d,onNodeDrag:t,onSelectionDrag:y,onError:p,updateNodePositions:q1}=U();Y={x:Q1,y:J1};let s=!1,W1=B.size>1,R1=W1&&g?IX(E8(B)):null,T1=W1&&a?of({dragItems:B,snapGrid:c,x:Q1,y:J1}):null;for(let[A1,U1]of B){if(!x.has(A1))continue;let w1={x:Q1-U1.distance.x,y:J1-U1.distance.y};if(a)w1=T1?{x:Math.round(w1.x+T1.x),y:Math.round(w1.y+T1.y)}:H9(w1,c);let v1=null;if(W1&&g&&!U1.extent&&R1){let{positionAbsolute:B1}=U1.internals,I1=B1.x-R1.x+g[0][0],C1=B1.x+U1.measured.width-R1.x2+g[1][0],K1=B1.y-R1.y+g[0][1],u1=B1.y+U1.measured.height-R1.y2+g[1][1];v1=[[I1,K1],[C1,u1]]}let{position:M1,positionAbsolute:G1}=jX({nodeId:A1,nextPosition:w1,nodeLookup:x,nodeExtent:v1?v1:g,nodeOrigin:d,onError:p});s=s||U1.position.x!==M1.x||U1.position.y!==M1.y,U1.position=M1,U1.internals.positionAbsolute=G1}if(P=P||s,!s)return;if(q1(B,!0),V&&(X||t||!h&&y)){let[A1,U1]=TX({nodeId:h,dragItems:B,nodeLookup:x});if(X?.(V,B,A1,U1),t?.(V,A1,U1),!h)y?.(V,U1)}}async function E(){if(!M)return;let{transform:Q1,panBy:J1,autoPanSpeed:x,autoPanOnNodeDrag:g}=U();if(!g){T=!1,cancelAnimationFrame(W);return}let[c,a]=gq(R,M,x);if(c!==0||a!==0){if(Y.x=(Y.x??0)-c/Q1[2],Y.y=(Y.y??0)-a/Q1[2],await J1({x:c,y:a}))b(Y)}W=requestAnimationFrame(E)}function m(Q1){let{nodeLookup:J1,multiSelectionActive:x,nodesDraggable:g,transform:c,snapGrid:a,snapToGrid:d,selectNodesOnDrag:t,onNodeDragStart:y,onSelectionDragStart:p,unselectNodesAndEdges:q1}=U();if(A=!0,(!t||!u)&&!x&&h){if(!J1.get(h)?.selected)q1()}if(u&&t&&h)Q?.(h);let s=vJ(Q1.sourceEvent,{transform:c,snapGrid:a,snapToGrid:d,containerBounds:M});if(Y=s,B=tf(J1,g,s,h),B.size>0&&(Z||y||!h&&p)){let[W1,R1]=TX({nodeId:h,dragItems:B,nodeLookup:J1});if(Z?.(Q1.sourceEvent,B,W1,R1),y?.(Q1.sourceEvent,W1,R1),!h)p?.(Q1.sourceEvent,R1)}}let e=HJ().clickDistance(k).on("start",(Q1)=>{let{domNode:J1,nodeDragThreshold:x,transform:g,snapGrid:c,snapToGrid:a}=U();if(M=J1?.getBoundingClientRect()||null,w=!1,P=!1,V=Q1.sourceEvent,x===0)m(Q1);Y=vJ(Q1.sourceEvent,{transform:g,snapGrid:c,snapToGrid:a,containerBounds:M}),R=b5(Q1.sourceEvent,M)}).on("drag",(Q1)=>{let{autoPanOnNodeDrag:J1,transform:x,snapGrid:g,snapToGrid:c,nodeDragThreshold:a,nodeLookup:d}=U(),t=vJ(Q1.sourceEvent,{transform:x,snapGrid:g,snapToGrid:c,containerBounds:M});if(V=Q1.sourceEvent,Q1.sourceEvent.type==="touchmove"&&Q1.sourceEvent.touches.length>1||h&&!d.has(h))w=!0;if(w)return;if(!T&&J1&&A)T=!0,E();if(!A){let y=b5(Q1.sourceEvent,M),p=y.x-R.x,q1=y.y-R.y;if(Math.sqrt(p*p+q1*q1)>a)m(Q1)}if((Y.x!==t.xSnapped||Y.y!==t.ySnapped)&&B&&A)R=b5(Q1.sourceEvent,M),b(t)}).on("end",(Q1)=>{if(!A||w){if(w&&B.size>0)U().updateNodePositions(B,!1);return}if(T=!1,A=!1,cancelAnimationFrame(W),B.size>0){let{nodeLookup:J1,updateNodePositions:x,onNodeDragStop:g,onSelectionDragStop:c}=U();if(P)x(B,!1),P=!1;if(H||g||!h&&c){let[a,d]=TX({nodeId:h,dragItems:B,nodeLookup:J1,dragging:!1});if(H?.(Q1.sourceEvent,B,a,d),g?.(Q1.sourceEvent,a,d),!h)c?.(Q1.sourceEvent,d)}}}).filter((Q1)=>{let J1=Q1.target;return!Q1.button&&(!D||!mM(J1,`.${D}`,v))&&(!N||mM(J1,N,v))});O.call(e)}function C(){O?.on(".drag",null)}return{update:S,destroy:C}}function nf(Q,U,Z){let X=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(yJ(H,X9(Y))>0)X.push(Y);return X}var ef=250;function _S(Q,U,Z,X){let H=[],Y=1/0,W=nf(Q,Z,U+ef);for(let B of W){let T=[...B.internals.handleBounds?.source??[],...B.internals.handleBounds?.target??[]];for(let R of T){if(X.nodeId===R.nodeId&&X.type===R.type&&X.id===R.id)continue;let{x:M,y:A}=N6(B,R,R.position,!0),O=Math.sqrt(Math.pow(M-Q.x,2)+Math.pow(A-Q.y,2));if(O>U)continue;if(O<Y)H=[{...R,x:M,y:A}],Y=O;else if(O===Y)H.push({...R,x:M,y:A})}}if(!H.length)return null;if(H.length>1){let B=X.type==="source"?"target":"source";return H.find((T)=>T.type===B)??H[0]}return H[0]}function HT(Q,U,Z,X,H,Y=!1){let W=X.get(Q);if(!W)return null;let B=H==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],T=(Z?B?.find((R)=>R.id===Z):B?.[0])??null;return T&&Y?{...T,...N6(W,T,T.position,!0)}:T}function YT(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 JS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var zT=()=>!0;function $S(Q,{connectionMode:U,connectionRadius:Z,handleId:X,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:B,nodeLookup:T,lib:R,autoPanOnConnect:M,flowId:A,panBy:O,cancelConnection:w,onConnectStart:P,onConnect:V,onConnectEnd:S,isValidConnection:C=zT,onReconnectEnd:D,updateConnection:N,getTransform:v,getFromHandle:u,autoPanSpeed:h,dragThreshold:k=1,handleDomNode:b}){let E=EX(Q.target),m=0,e,{x:Q1,y:J1}=b5(Q),x=YT(Y,b),g=B?.getBoundingClientRect(),c=!1;if(!g||!x)return;let a=HT(H,x,X,T,U);if(!a)return;let d=b5(Q,g),t=!1,y=null,p=!1,q1=null;function s(){if(!M||!g)return;let[M1,G1]=gq(d,g,h);O({x:M1,y:G1}),m=requestAnimationFrame(s)}let W1={...a,nodeId:H,type:x,position:a.position},R1=T.get(H),A1={inProgress:!0,isValid:null,from:N6(R1,W1,D1.Left,!0),fromHandle:W1,fromPosition:W1.position,fromNode:R1,to:d,toHandle:null,toPosition:jM[W1.position],toNode:null,pointer:d};function U1(){c=!0,N(A1),P?.(Q,{nodeId:H,handleId:X,handleType:x})}if(k===0)U1();function w1(M1){if(!c){let{x:u1,y:N1}=b5(M1),Q0=u1-Q1,b1=N1-J1;if(!(Q0*Q0+b1*b1>k*k))return;U1()}if(!u()||!W1){v1(M1);return}let G1=v();if(d=b5(M1,g),e=_S(Y9(d,G1,!1,[1,1]),Z,T,W1),!t)s(),t=!0;let B1=WT(M1,{handle:e,connectionMode:U,fromNodeId:H,fromHandleId:X,fromType:W?"target":"source",isValidConnection:C,doc:E,lib:R,flowId:A,nodeLookup:T});q1=B1.handleDomNode,y=B1.connection,p=JS(!!e,B1.isValid);let I1=T.get(H),C1=I1?N6(I1,W1,D1.Left,!0):A1.from,K1={...A1,from:C1,isValid:p,to:B1.toHandle&&p?u8({x:B1.toHandle.x,y:B1.toHandle.y},G1):d,toHandle:B1.toHandle,toPosition:p&&B1.toHandle?B1.toHandle.position:jM[W1.position],toNode:B1.toHandle?T.get(B1.toHandle.nodeId):null,pointer:d};N(K1),A1=K1}function v1(M1){if("touches"in M1&&M1.touches.length>0)return;if(c){if((e||q1)&&y&&p)V?.(y);let{inProgress:G1,...B1}=A1,I1={...B1,toPosition:A1.toHandle?A1.toPosition:null};if(S?.(M1,I1),Y)D?.(M1,I1)}w(),cancelAnimationFrame(m),t=!1,p=!1,y=null,q1=null,E.removeEventListener("mousemove",w1),E.removeEventListener("mouseup",v1),E.removeEventListener("touchmove",w1),E.removeEventListener("touchend",v1)}E.addEventListener("mousemove",w1),E.addEventListener("mouseup",v1),E.addEventListener("touchmove",w1),E.addEventListener("touchend",v1)}function WT(Q,{handle:U,connectionMode:Z,fromNodeId:X,fromHandleId:H,fromType:Y,doc:W,lib:B,flowId:T,isValidConnection:R=zT,nodeLookup:M}){let A=Y==="target",O=U?W.querySelector(`.${B}-flow__handle[data-id="${T}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:w,y:P}=b5(Q),V=W.elementFromPoint(w,P),S=V?.classList.contains(`${B}-flow__handle`)?V:O,C={handleDomNode:S,isValid:!1,connection:null,toHandle:null};if(S){let D=YT(void 0,S),N=S.getAttribute("data-nodeid"),v=S.getAttribute("data-handleid"),u=S.classList.contains("connectable"),h=S.classList.contains("connectableend");if(!N||!D)return C;let k={source:A?N:X,sourceHandle:A?v:H,target:A?X:N,targetHandle:A?H:v};C.connection=k;let E=u&&h&&(Z===P6.Strict?A&&D==="source"||!A&&D==="target":N!==X||v!==H);C.isValid=E&&R(k),C.toHandle=HT(N,D,v,M,Z,!0)}return C}var oq={onPointerDown:$S,isValid:WT};function BT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:X}){let H=F2(Q);function Y({translateExtent:B,width:T,height:R,zoomStep:M=1,pannable:A=!0,zoomable:O=!0,inversePan:w=!1}){let P=(N)=>{if(N.sourceEvent.type!=="wheel"||!U)return;let v=Z(),u=N.sourceEvent.ctrlKey&&z9()?10:1,h=-N.sourceEvent.deltaY*(N.sourceEvent.deltaMode===1?0.05:N.sourceEvent.deltaMode?1:0.002)*M,k=v[2]*Math.pow(2,h*u);U.scaleTo(k)},V=[0,0],S=(N)=>{if(N.sourceEvent.type==="mousedown"||N.sourceEvent.type==="touchstart")V=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY]},C=(N)=>{let v=Z();if(N.sourceEvent.type!=="mousemove"&&N.sourceEvent.type!=="touchmove"||!U)return;let u=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY],h=[u[0]-V[0],u[1]-V[1]];V=u;let k=X()*Math.max(v[2],Math.log(v[2]))*(w?-1:1),b={x:v[0]-h[0]*k,y:v[1]-h[1]*k},E=[[0,0],[T,R]];U.setViewportConstrained({x:b.x,y:b.y,zoom:v[2]},E,B)},D=jJ().on("start",S).on("zoom",A?C:null).on("zoom.wheel",O?P:null);H.call(D,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:V2}}var nq=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),RX=({x:Q,y:U,zoom:Z})=>V8.translate(Q,U).scale(Z),w6=(Q,U)=>Q.target.closest(`.${U}`),LT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),QS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,OX=(Q,U=0,Z=QS,X=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)X();return H?Q.transition().duration(U).ease(Z).on("end",X):Q},AT=(Q)=>{let U=Q.ctrlKey&&z9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function qS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:X,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:B,onPanZoom:T,onPanZoomEnd:R}){return(M)=>{if(w6(M,U)){if(M.ctrlKey)M.preventDefault();return!1}M.preventDefault(),M.stopImmediatePropagation();let A=Z.property("__zoom").k||1;if(M.ctrlKey&&W){let S=V2(M),C=AT(M),D=A*Math.pow(2,C);X.scaleTo(Z,D,S,M);return}let O=M.deltaMode===1?20:1,w=H===O3.Vertical?0:M.deltaX*O,P=H===O3.Horizontal?0:M.deltaY*O;if(!z9()&&M.shiftKey&&H!==O3.Vertical)w=M.deltaY*O,P=0;X.translateBy(Z,-(w/A)*Y,-(P/A)*Y,{internal:!0});let V=nq(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,B?.(M,V);else T?.(M,V);Q.panScrollTimeout=setTimeout(()=>{R?.(M,V),Q.isPanScrolling=!1},150)}}function US({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(X,H){let Y=X.type==="wheel",W=!U&&Y&&!X.ctrlKey,B=w6(X,Q);if(X.ctrlKey&&Y&&B)X.preventDefault();if(W||B)return null;X.preventDefault(),Z.call(this,X,H)}}function GS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(X)=>{if(X.sourceEvent?.internal)return;let H=nq(X.transform);if(Q.mouseButton=X.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,X.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(X.sourceEvent,H)}}function ZS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:X,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&LT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)X([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,nq(Y.transform))}}function FS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:X,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&LT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,X(!1),H){let B=nq(W.transform);Q.prevViewport=B,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,B)},Z?150:0)}}}function KS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:X,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:B,noWheelClassName:T,noPanClassName:R,lib:M,connectionInProgress:A}){return(O)=>{let w=U||Z,P=X&&O.ctrlKey,V=O.type==="wheel";if(O.button===1&&O.type==="mousedown"&&(w6(O,`${M}-flow__node`)||w6(O,`${M}-flow__edge`)||w6(O,`${M}-flow__selection`)||w6(O,`${M}-flow__nodesselection`)))return!0;if(!H&&!w&&!Y&&!W&&!X)return!1;if(B)return!1;if(A&&!V)return!1;if(w6(O,T)&&V)return!1;if(w6(O,R)&&(!V||Y&&V&&!U))return!1;if(!X&&O.ctrlKey&&V)return!1;if(!X&&O.type==="touchstart"&&O.touches?.length>1)return O.preventDefault(),!1;if(!w&&!Y&&!P&&V)return!1;if(!H&&(O.type==="mousedown"||O.type==="touchstart"))return!1;if(Array.isArray(H)&&!H.includes(O.button)&&O.type==="mousedown")return!1;let S=Array.isArray(H)&&H.includes(O.button)||!O.button||O.button<=1;return(!O.ctrlKey||V||Q)&&S}}function MT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:X,viewport:H,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:B,onDraggingChange:T}){let R={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},M=Q.getBoundingClientRect(),A=[[0,0],[M.width,M.height]];(typeof ResizeObserver<"u"?new ResizeObserver((J1)=>{let x=J1[0];if(x)A=[[0,0],[x.contentRect.width,x.contentRect.height]]}):null)?.observe(Q);let w=jJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(X),P=F2(Q).call(w);v({x:H.x,y:H.y,zoom:F9(H.zoom,U,Z)},[[0,0],[M.width,M.height]],X);let V=P.on("wheel.zoom"),S=P.on("dblclick.zoom");w.wheelDelta(AT);async function C(J1,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?h4:j8).transform(OX(P,x?.duration,x?.ease,()=>g(!0)),J1)});return!1}function D({noWheelClassName:J1,noPanClassName:x,onPaneContextMenu:g,userSelectionActive:c,panOnScroll:a,panOnDrag:d,panOnScrollMode:t,panOnScrollSpeed:y,preventScrolling:p,zoomOnPinch:q1,zoomOnScroll:s,zoomOnDoubleClick:W1,panActivationKeyPressed:R1=!1,zoomActivationKeyPressed:T1,lib:A1,onTransformChange:U1,connectionInProgress:w1,paneClickDistance:v1,selectionOnDrag:M1}){if(c&&!R.isZoomingOrPanning)N();let G1=a&&!T1&&!c;w.clickDistance(M1?1/0:!u5(v1)||v1<0?0:v1);let B1=G1?qS({zoomPanValues:R,noWheelClassName:J1,d3Selection:P,d3Zoom:w,panOnScrollMode:t,panOnScrollSpeed:y,zoomOnPinch:q1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:B}):US({noWheelClassName:J1,preventScrolling:p,d3ZoomHandler:V});P.on("wheel.zoom",B1,{passive:!1});let I1=GS({zoomPanValues:R,onDraggingChange:T,onPanZoomStart:W});w.on("start",I1);let C1=ZS({zoomPanValues:R,panOnDrag:d,onPaneContextMenu:!!g,onPanZoom:Y,onTransformChange:U1});w.on("zoom",C1);let K1=FS({zoomPanValues:R,panOnDrag:d,panOnScroll:a,onPaneContextMenu:g,onPanZoomEnd:B,onDraggingChange:T});w.on("end",K1);let u1=KS({panActivationKeyPressed:R1,zoomActivationKeyPressed:T1,panOnDrag:d,zoomOnScroll:s,panOnScroll:a,zoomOnDoubleClick:W1,zoomOnPinch:q1,userSelectionActive:c,noPanClassName:x,noWheelClassName:J1,lib:A1,connectionInProgress:w1});if(w.filter(u1),W1)P.on("dblclick.zoom",S);else P.on("dblclick.zoom",null)}function N(){w.on("zoom",null)}async function v(J1,x,g){let c=RX(J1),a=w?.constrain()(c,x,g);if(a)await C(a);return a}async function u(J1,x){let g=RX(J1);return await C(g,x),g}function h(J1){if(P){let x=RX(J1),g=P.property("__zoom");if(g.k!==J1.zoom||g.x!==J1.x||g.y!==J1.y)w?.transform(P,x,null,{sync:!0})}}function k(){let J1=P?SJ(P.node()):{x:0,y:0,k:1};return{x:J1.x,y:J1.y,zoom:J1.k}}async function b(J1,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?h4:j8).scaleTo(OX(P,x?.duration,x?.ease,()=>g(!0)),J1)});return!1}async function E(J1,x){if(P)return new Promise((g)=>{w?.interpolate(x?.interpolate==="linear"?h4:j8).scaleBy(OX(P,x?.duration,x?.ease,()=>g(!0)),J1)});return!1}function m(J1){w?.scaleExtent(J1)}function e(J1){w?.translateExtent(J1)}function Q1(J1){let x=!u5(J1)||J1<0?0:J1;w?.clickDistance(x)}return{update:D,destroy:N,setViewport:u,setViewportConstrained:v,getViewport:k,scaleTo:b,scaleBy:E,setScaleExtent:m,setTranslateExtent:e,syncViewport:h,setClickDistance:Q1}}var C6;(function(Q){Q.Line="line",Q.Handle="handle"})(C6||(C6={}));function XS({width:Q,prevWidth:U,height:Z,prevHeight:X,affectsX:H,affectsY:Y}){let W=Q-U,B=Z-X,T=[W>0?1:W<0?-1:0,B>0?1:B<0?-1:0];if(W&&H)T[0]=T[0]*-1;if(B&&Y)T[1]=T[1]*-1;return T}function gM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),X=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:X,affectsY:H}}function O6(Q,U){return Math.max(0,U-Q)}function I6(Q,U){return Math.max(0,Q-U)}function hq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function pM(Q,U){return Q?!U:U}function HS(Q,U,Z,X,H,Y,W,B){let{affectsX:T,affectsY:R}=U,{isHorizontal:M,isVertical:A}=U,O=M&&A,{xSnapped:w,ySnapped:P}=Z,{minWidth:V,maxWidth:S,minHeight:C,maxHeight:D}=X,{x:N,y:v,width:u,height:h,aspectRatio:k}=Q,b=Math.floor(M?w-Q.pointerX:0),E=Math.floor(A?P-Q.pointerY:0),m=u+(T?-b:b),e=h+(R?-E:E),Q1=-Y[0]*u,J1=-Y[1]*h,x=hq(m,V,S),g=hq(e,C,D);if(W){let d=0,t=0;if(T&&b<0)d=O6(N+b+Q1,W[0][0]);else if(!T&&b>0)d=I6(N+m+Q1,W[1][0]);if(R&&E<0)t=O6(v+E+J1,W[0][1]);else if(!R&&E>0)t=I6(v+e+J1,W[1][1]);x=Math.max(x,d),g=Math.max(g,t)}if(B){let d=0,t=0;if(T&&b>0)d=I6(N+b,B[0][0]);else if(!T&&b<0)d=O6(N+m,B[1][0]);if(R&&E>0)t=I6(v+E,B[0][1]);else if(!R&&E<0)t=O6(v+e,B[1][1]);x=Math.max(x,d),g=Math.max(g,t)}if(H){if(M){let d=hq(m/k,C,D)*k;if(x=Math.max(x,d),W){let t=0;if(!T&&!R||T&&!R&&O)t=I6(v+J1+m/k,W[1][1])*k;else t=O6(v+J1+(T?b:-b)/k,W[0][1])*k;x=Math.max(x,t)}if(B){let t=0;if(!T&&!R||T&&!R&&O)t=O6(v+m/k,B[1][1])*k;else t=I6(v+(T?b:-b)/k,B[0][1])*k;x=Math.max(x,t)}}if(A){let d=hq(e*k,V,S)/k;if(g=Math.max(g,d),W){let t=0;if(!T&&!R||R&&!T&&O)t=I6(N+e*k+Q1,W[1][0])/k;else t=O6(N+(R?E:-E)*k+Q1,W[0][0])/k;g=Math.max(g,t)}if(B){let t=0;if(!T&&!R||R&&!T&&O)t=O6(N+e*k,B[1][0])/k;else t=I6(N+(R?E:-E)*k,B[0][0])/k;g=Math.max(g,t)}}}if(E=E+(E<0?g:-g),b=b+(b<0?x:-x),H)if(O)if(m>e*k)E=(pM(T,R)?-b:b)/k;else b=(pM(T,R)?-E:E)*k;else if(M)E=b/k,R=T;else b=E*k,T=R;let c=T?N+b:N,a=R?v+E:v;return{width:u+(T?-b:b),height:h+(R?-E:E),x:Y[0]*b*(!T?1:-1)+c,y:Y[1]*E*(!R?1:-1)+a}}var TT={width:0,height:0,x:0,y:0},YS={...TT,pointerX:0,pointerY:0,aspectRatio:1};function zS(Q,U,Z){let X=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,W=Q.measured.height??0,B=Z[0]*Y,T=Z[1]*W;return[[X-B,H-T],[X+Y-B,H+W-T]]}function RT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:X,onEnd:H}){let Y=F2(Q),W={controlDirection:gM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function B({controlPosition:R,boundaries:M,keepAspectRatio:A,resizeDirection:O,onResizeStart:w,onResize:P,onResizeEnd:V,shouldResize:S}){let C={...TT},D={...YS};W={boundaries:M,resizeDirection:O,keepAspectRatio:A,controlDirection:gM(R)};let N=void 0,v=null,u=[],h=void 0,k=void 0,b=void 0,E=HJ().on("start",(m)=>{let{nodeLookup:e,transform:Q1,snapGrid:J1,snapToGrid:x,nodeOrigin:g,paneDomNode:c}=Z();if(N=e.get(U),!N)return;v=c?.getBoundingClientRect()??null;let{xSnapped:a,ySnapped:d}=vJ(m.sourceEvent,{transform:Q1,snapGrid:J1,snapToGrid:x,containerBounds:v});if(C={width:N.measured.width??0,height:N.measured.height??0,x:N.position.x??0,y:N.position.y??0},D={...C,pointerX:a,pointerY:d,aspectRatio:C.width/C.height},h=void 0,k=b8(N.extent)?N.extent:void 0,N.parentId&&(N.extent==="parent"||N.expandParent))h=e.get(N.parentId);if(h&&N.extent==="parent")k=[[0,0],[h.measured.width,h.measured.height]];u=[],b=void 0;for(let[t,y]of e)if(y.parentId===U){if(u.push({id:t,position:{...y.position},extent:y.extent}),y.extent==="parent"||y.expandParent){let p=zS(y,N,y.origin??g);if(b)b=[[Math.min(p[0][0],b[0][0]),Math.min(p[0][1],b[0][1])],[Math.max(p[1][0],b[1][0]),Math.max(p[1][1],b[1][1])]];else b=p}}w?.(m,{...C})}).on("drag",(m)=>{let{transform:e,snapGrid:Q1,snapToGrid:J1,nodeOrigin:x}=Z(),g=vJ(m.sourceEvent,{transform:e,snapGrid:Q1,snapToGrid:J1,containerBounds:v}),c=[];if(!N)return;let{x:a,y:d,width:t,height:y}=C,p={},q1=N.origin??x,{width:s,height:W1,x:R1,y:T1}=HS(D,W.controlDirection,g,W.boundaries,W.keepAspectRatio,q1,k,b),A1=s!==t,U1=W1!==y,w1=R1!==a&&A1,v1=T1!==d&&U1;if(!w1&&!v1&&!A1&&!U1)return;let M1={prevValues:{...C},startX:D.x,startY:D.y,childNodes:u.map((C1)=>({...C1,position:{...C1.position}}))};if(w1||v1||q1[0]===1||q1[1]===1){if(p.x=w1?R1:C.x,p.y=v1?T1:C.y,C.x=p.x,C.y=p.y,u.length>0){let C1=R1-a,K1=T1-d;for(let u1 of u)u1.position={x:u1.position.x-C1+q1[0]*(s-t),y:u1.position.y-K1+q1[1]*(W1-y)},c.push(u1)}}if(A1||U1)p.width=A1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?s:C.width,p.height=U1&&(!W.resizeDirection||W.resizeDirection==="vertical")?W1:C.height,C.width=p.width,C.height=p.height;if(h&&N.expandParent){let C1=q1[0]*(p.width??0);if(p.x&&p.x<C1)C.x=C1,D.x=D.x-(p.x-C1);let K1=q1[1]*(p.height??0);if(p.y&&p.y<K1)C.y=K1,D.y=D.y-(p.y-K1)}let G1=XS({width:C.width,prevWidth:t,height:C.height,prevHeight:y,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),B1={...C,direction:G1};if(S?.(m,B1)===!1){C=M1.prevValues,D.x=M1.startX,D.y=M1.startY,u.forEach((C1,K1)=>{C1.position=M1.childNodes[K1].position});return}P?.(m,B1),X(p,c)}).on("end",(m)=>{V?.(m,{...C}),H?.({...C})});Y.call(E)}function T(){Y.on(".drag",null)}return{update:B,destroy:T}}var CT=E0(n5(),1),fT=E0(IT(),1);var wT=(Q)=>{let U,Z=new Set,X=(M,A)=>{let O=typeof M==="function"?M(U):M;if(!Object.is(O,U)){let w=U;U=(A!=null?A:typeof O!=="object"||O===null)?O:Object.assign({},U,O),Z.forEach((P)=>P(U,w))}},H=()=>U,T={setState:X,getState:H,getInitialState:()=>R,subscribe:(M)=>{return Z.add(M),()=>Z.delete(M)},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()}},R=U=Q(X,H,T);return T},PT=(Q)=>Q?wT(Q):wT;var{useDebugValue:LS}=CT.default,{useSyncExternalStoreWithSelector:AS}=fT.default,MS=(Q)=>Q;function iX(Q,U=MS,Z){let X=AS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return LS(X),X}var NT=(Q,U)=>{let Z=PT(Q),X=(H,Y=U)=>iX(Z,H,Y);return Object.assign(X,Z),X},ST=(Q,U)=>Q?NT(Q,U):NT;function k0(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[X,H]of Q)if(!Object.is(H,U.get(X)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let X of Q)if(!U.has(X))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let X of Z)if(!Object.prototype.hasOwnProperty.call(U,X)||!Object.is(Q[X],U[X]))return!1;return!0}var JR=E0(cF(),1),QU=z1.createContext(null),TS=QU.Provider,$R=a2.error001("react");function X0(Q,U){let Z=z1.useContext(QU);if(Z===null)throw Error($R);return iX(Z,Q,U)}function D0(){let Q=z1.useContext(QU);if(Q===null)throw Error($R);return z1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var jT={display:"none"},RS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},QR="react-flow__node-desc",qR="react-flow__edge-desc",OS="react-flow__aria-live",IS=(Q)=>Q.ariaLiveMessage,wS=(Q)=>Q.ariaLabelConfig;function PS({rfId:Q}){let U=X0(IS);return Y1.jsx("div",{id:`${OS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:RS,children:U})}function NS({rfId:Q,disableKeyboardA11y:U}){let Z=X0(wS);return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx("div",{id:`${QR}-${Q}`,style:jT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),Y1.jsx("div",{id:`${qR}-${Q}`,style:jT,children:Z["edge.a11yDescription.default"]}),!U&&Y1.jsx(PS,{rfId:Q})]})}var x8=z1.forwardRef(({position:Q="top-left",children:U,className:Z,style:X,...H},Y)=>{let W=`${Q}`.split("-");return Y1.jsx("div",{className:m0(["react-flow__panel",Z,...W]),style:X,ref:Y,...H,children:U})});x8.displayName="Panel";var vT="https://reactflow.dev/attribution";function CS({proOptions:Q,position:U="bottom-right"}){if(z1.useEffect(()=>{oM("react")},[]),Q?.hideAttribution)return null;return Y1.jsx(x8,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${vT}`,children:Y1.jsx("a",{href:vT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var fS=(Q)=>{let U=[],Z=[];for(let[,X]of Q.nodeLookup)if(X.selected)U.push(X.internals.userNode);for(let[,X]of Q.edgeLookup)if(X.selected)Z.push(X);return{selectedNodes:U,selectedEdges:Z}},eq=(Q)=>Q.id;function SS(Q,U){return k0(Q.selectedNodes.map(eq),U.selectedNodes.map(eq))&&k0(Q.selectedEdges.map(eq),U.selectedEdges.map(eq))}function jS({onSelectionChange:Q}){let U=D0(),{selectedNodes:Z,selectedEdges:X}=X0(fS,SS);return z1.useEffect(()=>{let H={nodes:Z,edges:X};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,X,Q]),null}var vS=(Q)=>!!Q.onSelectionChangeHandlers;function VS({onSelectionChange:Q}){let U=X0(vS);if(Q||U)return Y1.jsx(jS,{onSelectionChange:Q});return null}var UR=[0,0],yS={x:0,y:0,zoom:1},kS=["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"],VT=[...kS,"rfId"],DS=(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}),yT={translateExtent:K9,nodeOrigin:UR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function uS(Q){let{setNodes:U,setEdges:Z,setMinZoom:X,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:B,setDefaultNodesAndEdges:T}=X0(DS,k0),R=D0();z1.useEffect(()=>{return T(Q.defaultNodes,Q.defaultEdges),()=>{M.current=yT,B()}},[]);let M=z1.useRef(yT);return z1.useEffect(()=>{for(let A of VT){let O=Q[A],w=M.current[A];if(O===w)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(O);else if(A==="edges")Z(O);else if(A==="minZoom")X(O);else if(A==="maxZoom")H(O);else if(A==="translateExtent")Y(O);else if(A==="nodeExtent")W(O);else if(A==="ariaLabelConfig")R.setState({ariaLabelConfig:tM(O)});else if(A==="fitView")R.setState({fitViewQueued:O});else if(A==="fitViewOptions")R.setState({fitViewOptions:O});else R.setState({[A]:O})}M.current=Q},VT.map((A)=>Q[A])),null}function kT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function bS(Q){let[U,Z]=z1.useState(Q==="system"?null:Q);return z1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let X=kT(),H=()=>Z(X?.matches?"dark":"light");return H(),X?.addEventListener("change",H),()=>{X?.removeEventListener("change",H)}},[Q]),U!==null?U:kT()?.matches?"dark":"light"}var DT=typeof document<"u"?document:null;function uJ(Q=null,U={target:DT,actInsideInputWithModifier:!0}){let[Z,X]=z1.useState(!1),H=z1.useRef(!1),Y=z1.useRef(new Set([])),[W,B]=z1.useMemo(()=>{if(Q!==null){let R=(Array.isArray(Q)?Q:[Q]).filter((A)=>typeof A==="string").map((A)=>A.replace(/\+/g,`
242
242
  `).replace(`
243
243
 
244
244
  `,`
245
245
  +`).split(`
246
- `)),T=R.reduce((A,O)=>A.concat(...O),[]);return[R,T]}return[[],[]]},[Q]);return X1.useEffect(()=>{let M=U?.target??jT,R=U?.actInsideInputWithModifier??!0;if(Q!==null){let T=(w)=>{if(H.current=w.ctrlKey||w.metaKey||w.shiftKey||w.altKey,(!H.current||H.current&&!R)&&DX(w))return!1;let V=VT(w.code,W);if(Y.current.add(w[V]),yT(B,Y.current,!1)){let S=w.composedPath?.()?.[0]||w.target,f=S?.nodeName==="BUTTON"||S?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!f))w.preventDefault();X(!0)}},A=(w)=>{let P=VT(w.code,W);if(yT(B,Y.current,!0))X(!1),Y.current.clear();else Y.current.delete(w[P]);if(w.key==="Meta")Y.current.clear();H.current=!1},O=()=>{Y.current.clear(),X(!1)};return M?.addEventListener("keydown",T),M?.addEventListener("keyup",A),window.addEventListener("blur",O),window.addEventListener("contextmenu",O),()=>{M?.removeEventListener("keydown",T),M?.removeEventListener("keyup",A),window.removeEventListener("blur",O),window.removeEventListener("contextmenu",O)}}},[Q,X]),Z}function yT(Q,U,Z){return Q.filter((X)=>Z||X.length===U.size).some((X)=>X.every((H)=>U.has(H)))}function VT(Q,U){return U.includes(Q)?"code":"key"}var vS=()=>{let Q=k0();return X1.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:X}=Q.getState();return X?X.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[X,H,Y],panZoom:B}=Q.getState();if(!B)return!1;return await B.setViewport({x:U.x??X,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,X]=Q.getState().transform;return{x:U,y:Z,zoom:X}},setCenter:async(U,Z,X)=>{return Q.getState().setCenter(U,Z,X)},fitBounds:async(U,Z)=>{let{width:X,height:H,minZoom:Y,maxZoom:B,panZoom:W}=Q.getState(),M=jJ(U,X,H,Y,B,Z?.padding??0.1);if(!W)return!1;return await W.setViewport(M,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:X,snapGrid:H,snapToGrid:Y,domNode:B}=Q.getState();if(!B)return U;let{x:W,y:M}=B.getBoundingClientRect(),R={x:U.x-W,y:U.y-M},T=Z.snapGrid??H,A=Z.snapToGrid??Y;return X9(R,X,A,T)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:X}=Q.getState();if(!X)return U;let{x:H,y:Y}=X.getBoundingClientRect(),B=v8(U,Z);return{x:B.x+H,y:B.y+Y}}}},[])};function JR(Q,U){let Z=[],X=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")X.set(Y.id,[Y]);else{let B=X.get(Y.id);if(B)B.push(Y);else X.set(Y.id,[Y])}for(let Y of U){let B=X.get(Y.id);if(!B){Z.push(Y);continue}if(B[0].type==="remove")continue;if(B[0].type==="replace"){Z.push({...B[0].item});continue}let W={...Y};for(let M of B)DS(M,W);Z.push(W)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)Z.splice(Y.index,0,{...Y.item});else Z.push({...Y.item})});return Z}function DS(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 $R(Q,U){return JR(Q,U)}function bS(Q,U){return JR(Q,U)}function u8(Q,U){return{id:Q,type:"select",selected:U}}function Y9(Q,U=new Set,Z=!1){let X=[];for(let[H,Y]of Q){let B=U.has(H);if(!(Y.selected===void 0&&!B)&&Y.selected!==B){if(Z)Y.selected=B;X.push(u8(Y.id,B))}}return X}function kT({items:Q=[],lookup:U}){let Z=[],X=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let B=U.get(Y.id),W=B?.internals?.userNode??B;if(W!==void 0&&W!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(W===void 0)Z.push({item:Y,type:"add",index:H})}for(let[H]of U)if(X.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function vT(Q){return{id:Q.id,type:"remove"}}var uS=SX("React Flow","https://reactflow.dev/");function ES(Q,U,Z={}){return sM(Q,U,{...Z,onError:Z.onError??uS})}var DT=(Q)=>hM(Q),hS=(Q)=>IX(Q);function QR(Q){return X1.forwardRef(Q)}var qR=typeof window<"u"?X1.useLayoutEffect:X1.useEffect;function bT(Q){let[U,Z]=X1.useState(BigInt(0)),[X]=X1.useState(()=>xS(()=>Z((H)=>H+BigInt(1))));return qR(()=>{let H=X.get();if(H.length)Q(H),X.reset()},[U]),X}function xS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var UR=X1.createContext(null);function mS({children:Q}){let U=k0(),Z=X1.useCallback((W)=>{let{nodes:M=[],setNodes:R,hasDefaultNodes:T,onNodesChange:A,nodeLookup:O,fitViewQueued:w,onNodesChangeMiddlewareMap:P}=U.getState(),V=M;for(let f of W)V=typeof f==="function"?f(V):f;let S=kT({items:V,lookup:O});for(let f of P.values())S=f(S);if(T)R(V);if(S.length>0)A?.(S);else if(w)window.requestAnimationFrame(()=>{let{fitViewQueued:f,nodes:D,setNodes:N}=U.getState();if(f)N(D)})},[]),X=bT(Z),H=X1.useCallback((W)=>{let{edges:M=[],setEdges:R,hasDefaultEdges:T,onEdgesChange:A,edgeLookup:O}=U.getState(),w=M;for(let P of W)w=typeof P==="function"?P(w):P;if(T)R(w);else if(A)A(kT({items:w,lookup:O}))},[]),Y=bT(H),B=X1.useMemo(()=>({nodeQueue:X,edgeQueue:Y}),[]);return F1.jsx(UR.Provider,{value:B,children:Q})}function gS(){let Q=X1.useContext(UR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var pS=(Q)=>!!Q.panZoom;function kJ(){let Q=vS(),U=k0(),Z=gS(),X=F0(pS),H=X1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),B=(A)=>{Z.nodeQueue.push(A)},W=(A)=>{Z.edgeQueue.push(A)},M=(A)=>{let{nodeLookup:O,nodeOrigin:w}=U.getState(),P=DT(A)?A:O.get(A.id),V=P.parentId?yX(P.position,P.measured,P.parentId,O,w):P.position,S={...P,position:V,width:P.measured?.width??P.width,height:P.measured?.height??P.height};return K9(S)},R=(A,O,w={replace:!1})=>{B((P)=>P.map((V)=>{if(V.id===A){let S=typeof O==="function"?O(V):O;return w.replace&&DT(S)?S:{...V,...S}}return V}))},T=(A,O,w={replace:!1})=>{W((P)=>P.map((V)=>{if(V.id===A){let S=typeof O==="function"?O(V):O;return w.replace&&hS(S)?S:{...V,...S}}return V}))};return{getNodes:()=>U.getState().nodes.map((A)=>({...A})),getNode:(A)=>Y(A)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:A=[]}=U.getState();return A.map((O)=>({...O}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:B,setEdges:W,addNodes:(A)=>{let O=Array.isArray(A)?A:[A];Z.nodeQueue.push((w)=>[...w,...O])},addEdges:(A)=>{let O=Array.isArray(A)?A:[A];Z.edgeQueue.push((w)=>[...w,...O])},toObject:()=>{let{nodes:A=[],edges:O=[],transform:w}=U.getState(),[P,V,S]=w;return{nodes:A.map((f)=>({...f})),edges:O.map((f)=>({...f})),viewport:{x:P,y:V,zoom:S}}},deleteElements:async({nodes:A=[],edges:O=[]})=>{let{nodes:w,edges:P,onNodesDelete:V,onEdgesDelete:S,triggerNodeChanges:f,triggerEdgeChanges:D,onDelete:N,onBeforeDelete:y}=U.getState(),{nodes:v,edges:h}=await gM({nodesToRemove:A,edgesToRemove:O,nodes:w,edges:P,onBeforeDelete:y}),u=h.length>0,b=v.length>0;if(u){let E=h.map(vT);S?.(h),D(E)}if(b){let E=v.map(vT);V?.(v),f(E)}if(b||u)N?.({nodes:v,edges:h});return{deletedNodes:v,deletedEdges:h}},getIntersectingNodes:(A,O=!0,w)=>{let P=CX(A),V=P?A:M(A),S=w!==void 0;if(!V)return[];return(w||U.getState().nodes).filter((f)=>{let D=U.getState().nodeLookup.get(f.id);if(D&&!P&&(f.id===A.id||!D.internals.positionAbsolute))return!1;let N=K9(S?f:D),y=SJ(N,V);return O&&y>0||y>=N.width*N.height||y>=V.width*V.height})},isNodeIntersecting:(A,O,w=!0)=>{let V=CX(A)?A:M(A);if(!V)return!1;let S=SJ(V,O);return w&&S>0||S>=O.width*O.height||S>=V.width*V.height},updateNode:R,updateNodeData:(A,O,w={replace:!1})=>{R(A,(P)=>{let V=typeof O==="function"?O(P):O;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},updateEdge:T,updateEdgeData:(A,O,w={replace:!1})=>{T(A,(P)=>{let V=typeof O==="function"?O(P):O;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},getNodesBounds:(A)=>{let{nodeLookup:O,nodeOrigin:w}=U.getState();return PX(A,{nodeLookup:O,nodeOrigin:w})},getHandleConnections:({type:A,id:O,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}-${A}${O?`-${O}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:O,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}${A?O?`-${A}-${O}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let O=U.getState().fitViewResolver??lM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:O}),Z.nodeQueue.push((w)=>[...w]),O.promise}}},[]);return X1.useMemo(()=>{return{...H,...Q,viewportInitialized:X}},[X])}var uT=(Q)=>Q.selected,cS=typeof window<"u"?window:void 0;function lS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=k0(),{deleteElements:X}=kJ(),H=VJ(Q,{actInsideInputWithModifier:!1}),Y=VJ(U,{target:cS});X1.useEffect(()=>{if(H){let{edges:B,nodes:W}=Z.getState();X({nodes:W.filter(uT),edges:B.filter(uT)}),Z.setState({nodesSelectionActive:!1})}},[H]),X1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function dS(Q){let U=k0();X1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let X=xq(Q.current);if(X.height===0||X.width===0)U.getState().onError?.("004",i2.error004());U.setState({width:X.width||500,height:X.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let X=new ResizeObserver(()=>Z());return X.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),X&&Q.current)X.unobserve(Q.current)}}},[])}var eq={position:"absolute",width:"100%",height:"100%",top:0,left:0},rS=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function iS({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:X=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:B=R3.Free,zoomOnDoubleClick:W=!0,panOnDrag:M=!0,defaultViewport:R,translateExtent:T,minZoom:A,maxZoom:O,zoomActivationKeyCode:w,preventScrolling:P=!0,children:V,noWheelClassName:S,noPanClassName:f,onViewportChange:D,isControlledViewport:N,paneClickDistance:y,selectionOnDrag:v}){let h=k0(),u=X1.useRef(null),{userSelectionActive:b,lib:E,connectionInProgress:m}=F0(rS,V0),$1=VJ(w),J1=X1.useRef();dS(u);let t=X1.useCallback((x)=>{if(D?.({x:x[0],y:x[1],zoom:x[2]}),!N)h.setState({transform:x})},[D,N]);return X1.useEffect(()=>{if(u.current){J1.current=zT({domNode:u.current,minZoom:A,maxZoom:O,translateExtent:T,viewport:R,onDraggingChange:(a)=>h.setState((r)=>r.paneDragging===a?r:{paneDragging:a}),onPanZoomStart:(a,r)=>{let{onViewportChangeStart:n,onMoveStart:k}=h.getState();k?.(a,r),n?.(r)},onPanZoom:(a,r)=>{let{onViewportChange:n,onMove:k}=h.getState();k?.(a,r),n?.(r)},onPanZoomEnd:(a,r)=>{let{onViewportChangeEnd:n,onMoveEnd:k}=h.getState();k?.(a,r),n?.(r)}});let{x,y:g,zoom:c}=J1.current.getViewport();return h.setState({panZoom:J1.current,transform:[x,g,c],domNode:u.current.closest(".react-flow")}),()=>{J1.current?.destroy()}}},[]),X1.useEffect(()=>{J1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:X,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:B,zoomOnDoubleClick:W,panOnDrag:M,zoomActivationKeyPressed:$1,preventScrolling:P,noPanClassName:f,userSelectionActive:b,noWheelClassName:S,lib:E,onTransformChange:t,connectionInProgress:m,selectionOnDrag:v,paneClickDistance:y})},[Q,U,Z,X,H,Y,B,W,M,$1,P,f,b,S,E,t,m,v,y]),F1.jsx("div",{className:"react-flow__renderer",ref:u,style:eq,children:V})}var aS=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function sS(){let{userSelectionActive:Q,userSelectionRect:U}=F0(aS,V0);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 cX=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},tS=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function oS({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=V8.Full,panOnDrag:X,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:B,onSelectionStart:W,onSelectionEnd:M,onPaneClick:R,onPaneContextMenu:T,onPaneScroll:A,onPaneMouseEnter:O,onPaneMouseMove:w,onPaneMouseLeave:P,children:V}){let S=X1.useRef(0),f=k0(),{userSelectionActive:D,elementsSelectable:N,dragging:y,panBy:v,autoPanSpeed:h}=F0(tS,V0),u=N&&(Q||D),b=X1.useRef(null),E=X1.useRef(),m=X1.useRef(new Set),$1=X1.useRef(new Set),J1=X1.useRef(!1),t=X1.useRef(!1),x=X1.useRef({x:0,y:0}),g=X1.useRef(!1),c=(U1)=>{if(t.current||J1.current||f.getState().connection.inProgress){t.current=!1,J1.current=!1;return}R?.(U1),f.getState().resetSelectedElements(),f.setState({nodesSelectionActive:!1})},a=(U1)=>{if(Array.isArray(X)&&X?.includes(2)){U1.preventDefault();return}T?.(U1)},r=A?(U1)=>A(U1):void 0,n=(U1)=>{if(t.current)U1.stopPropagation(),t.current=!1},k=(U1)=>{if(U1.pointerType==="touch"&&X!==!1&&!U)return;let{domNode:O1,transform:N1}=f.getState();if(E.current=O1?.getBoundingClientRect(),!E.current)return;let W1=U1.target===b.current;if(!W1&&!!U1.target.closest(".nokey")||!Q||!(B&&W1||U)||U1.button!==0||!U1.isPrimary)return;U1.target?.setPointerCapture?.(U1.pointerId),t.current=!1;let{x:h1,y:v1}=b5(U1.nativeEvent,E.current),L1=X9({x:h1,y:v1},N1);if(f.setState({userSelectionRect:{width:0,height:0,startX:L1.x,startY:L1.y,x:h1,y:v1}}),!W1)U1.stopPropagation(),U1.preventDefault()};function p(U1,O1){let{userSelectionRect:N1}=f.getState();if(!N1)return;let{transform:W1,nodeLookup:S1,edgeLookup:k1,connectionLookup:h1,triggerNodeChanges:v1,triggerEdgeChanges:L1,defaultEdgeOptions:i1}=f.getState(),j1={x:N1.startX,y:N1.startY},{x:x0,y:e1}=v8(j1,W1),B2={startX:j1.x,startY:j1.y,x:U1<x0?U1:x0,y:O1<e1?O1:e1,width:Math.abs(U1-x0),height:Math.abs(O1-e1)},O2=m.current,k2=$1.current;m.current=new Set(bq(S1,B2,W1,Z===V8.Partial,!0).map((D2)=>D2.id)),$1.current=new Set;let v2=i1?.selectable??!0;for(let D2 of m.current){let I2=h1.get(D2);if(!I2)continue;for(let{edgeId:w2}of I2.values()){let P2=k1.get(w2);if(P2&&(P2.selectable??v2))$1.current.add(w2)}}if(!VX(O2,m.current)){let D2=Y9(S1,m.current,!0);v1(D2)}if(!VX(k2,$1.current)){let D2=Y9(k1,$1.current);L1(D2)}f.setState({userSelectionRect:B2,userSelectionActive:!0,nodesSelectionActive:!1})}function q1(){if(!H||!E.current)return;let[U1,O1]=uq(x.current,E.current,h);v({x:U1,y:O1}).then((N1)=>{if(!t.current||!N1){S.current=requestAnimationFrame(q1);return}let{x:W1,y:S1}=x.current;p(W1,S1),S.current=requestAnimationFrame(q1)})}let s=()=>{cancelAnimationFrame(S.current),S.current=0,g.current=!1};X1.useEffect(()=>{return()=>s()},[]);let H1=(U1)=>{let{userSelectionRect:O1,transform:N1,resetSelectedElements:W1}=f.getState();if(!E.current||!O1)return;let{x:S1,y:k1}=b5(U1.nativeEvent,E.current);x.current={x:S1,y:k1};let h1=v8({x:O1.startX,y:O1.startY},N1);if(!t.current){let v1=U?0:Y;if(Math.hypot(S1-h1.x,k1-h1.y)<=v1)return;W1(),W?.(U1)}if(t.current=!0,!g.current)q1(),g.current=!0;p(S1,k1)},M1=(U1)=>{if(!u){if(U1.target===b.current&&f.getState().connection.inProgress)J1.current=!0;return}if(U1.button!==0)return;if(U1.target?.releasePointerCapture?.(U1.pointerId),!D&&U1.target===b.current&&f.getState().userSelectionRect)c?.(U1);if(f.setState({userSelectionActive:!1,userSelectionRect:null}),t.current)M?.(U1),f.setState({nodesSelectionActive:m.current.size>0});s()},A1=(U1)=>{U1.target?.releasePointerCapture?.(U1.pointerId),s()},B1=X===!0||Array.isArray(X)&&X.includes(0);return F1.jsxs("div",{className:h0(["react-flow__pane",{draggable:B1,dragging:y,selection:Q}]),onClick:u?void 0:cX(c,b),onContextMenu:cX(a,b),onWheel:cX(r,b),onPointerEnter:u?void 0:O,onPointerMove:u?H1:w,onPointerUp:M1,onPointerCancel:u?A1:void 0,onPointerDownCapture:u?k:void 0,onClickCapture:u?n:void 0,onPointerLeave:P,ref:b,style:eq,children:[V,F1.jsx(sS,{})]})}function dX({id:Q,store:U,unselect:Z=!1,nodeRef:X}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:B,nodeLookup:W,onError:M}=U.getState(),R=W.get(Q);if(!R){M?.("012",i2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!R.selected)H([Q]);else if(Z||R.selected&&B)Y({nodes:[R],edges:[]}),requestAnimationFrame(()=>X?.current?.blur())}function GR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:X,nodeId:H,isSelectable:Y,nodeClickDistance:B}){let W=k0(),[M,R]=X1.useState(!1),T=X1.useRef();return X1.useEffect(()=>{if(U)return;return T.current=UT({getStoreItems:()=>W.getState(),onNodeMouseDown:(A)=>{dX({id:A,store:W,nodeRef:Q})},onDragStart:()=>{R(!0)},onDragStop:()=>{R(!1)}}),()=>{T.current?.destroy(),T.current=void 0}},[U,W,Q]),X1.useEffect(()=>{if(U||!Q.current||!T.current)return;T.current.update({noDragClassName:Z,handleSelector:X,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:B})},[Z,X,U,Y,Q,H,B]),M}var nS=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function ZR(){let Q=k0();return X1.useCallback((Z)=>{let{nodeExtent:X,snapToGrid:H,snapGrid:Y,nodesDraggable:B,onError:W,updateNodePositions:M,nodeLookup:R,nodeOrigin:T}=Q.getState(),A=new Map,O=nS(B),w=H?Y[0]:5,P=H?Y[1]:5,V=Z.direction.x*w*Z.factor,S=Z.direction.y*P*Z.factor;for(let[,f]of R){if(!O(f))continue;let D={x:f.internals.positionAbsolute.x+V,y:f.internals.positionAbsolute.y+S};if(H)D=F9(D,Y);let{position:N,positionAbsolute:y}=NX({nodeId:f.id,nextPosition:D,nodeLookup:R,nodeExtent:X,nodeOrigin:T,onError:W});f.position=N,f.internals.positionAbsolute=y,A.set(f.id,f)}M(A)},[])}var rX=X1.createContext(null),eS=rX.Provider;rX.Consumer;var iX=()=>{return X1.useContext(rX)},_j=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),KR=X1.createContext(null);function Jj({children:Q}){let U=F0(_j,V0);return F1.jsx(KR.Provider,{value:U,children:Q})}function $j(){let Q=X1.useContext(KR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Qj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},qj=(Q,U,Z)=>(X)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:B}=X,{fromHandle:W,toHandle:M,isValid:R}=B;if(!W&&!H)return Qj;let T=M?.nodeId===Q&&M?.id===U&&M?.type===Z;return{connectingFrom:W?.nodeId===Q&&W?.id===U&&W?.type===Z,connectingTo:T,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===w6.Strict?W?.type!==Z:Q!==W?.nodeId||U!==W?.id,connectionInProcess:!!W,clickConnectionInProcess:!!H,valid:T&&R}};function Uj({type:Q="source",position:U=V1.Top,isValidConnection:Z,isConnectable:X=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:B,onConnect:W,children:M,className:R,onMouseDown:T,onTouchStart:A,...O},w){let P=B||null,V=Q==="target",S=k0(),f=iX(),{connectOnClick:D,noPanClassName:N,rfId:y}=$j(),{connectingFrom:v,connectingTo:h,clickConnecting:u,isPossibleEndHandle:b,connectionInProcess:E,clickConnectionInProcess:m,valid:$1}=F0(qj(f,P,Q),V0);if(!f)S.getState().onError?.("010",i2.error010());let J1=(g)=>{let{defaultEdgeOptions:c,onConnect:a,hasDefaultEdges:r}=S.getState(),n={...c,...g};if(r){let{edges:k,setEdges:p,onError:q1}=S.getState();p(ES(n,k,{onError:q1}))}a?.(n),W?.(n)},t=(g)=>{if(!f)return;let c=bX(g.nativeEvent);if(H&&(c&&g.button===0||!c)){let a=S.getState();rq.onPointerDown(g.nativeEvent,{handleDomNode:g.currentTarget,autoPanOnConnect:a.autoPanOnConnect,connectionMode:a.connectionMode,connectionRadius:a.connectionRadius,domNode:a.domNode,nodeLookup:a.nodeLookup,lib:a.lib,isTarget:V,handleId:P,nodeId:f,flowId:a.rfId,panBy:a.panBy,cancelConnection:a.cancelConnection,onConnectStart:a.onConnectStart,onConnectEnd:(...r)=>S.getState().onConnectEnd?.(...r),updateConnection:a.updateConnection,onConnect:J1,isValidConnection:Z||((...r)=>S.getState().isValidConnection?.(...r)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:a.autoPanSpeed,dragThreshold:a.connectionDragThreshold})}if(c)T?.(g);else A?.(g)},x=(g)=>{let{onClickConnectStart:c,onClickConnectEnd:a,connectionClickStartHandle:r,connectionMode:n,isValidConnection:k,lib:p,rfId:q1,nodeLookup:s,connection:H1}=S.getState();if(!f||!r&&!H)return;if(!r){c?.(g.nativeEvent,{nodeId:f,handleId:P,handleType:Q}),S.setState({connectionClickStartHandle:{nodeId:f,type:Q,id:P}});return}let M1=vX(g.target),A1=Z||k,{connection:B1,isValid:U1}=rq.isValid(g.nativeEvent,{handle:{nodeId:f,id:P,type:Q},connectionMode:n,fromNodeId:r.nodeId,fromHandleId:r.id||null,fromType:r.type,isValidConnection:A1,flowId:q1,doc:M1,lib:p,nodeLookup:s});if(U1&&B1)J1(B1);let O1=structuredClone(H1);delete O1.inProgress,O1.toPosition=O1.toHandle?O1.toHandle.position:null,a?.(g,O1),S.setState({connectionClickStartHandle:null})};return F1.jsx("div",{"data-handleid":P,"data-nodeid":f,"data-handlepos":U,"data-id":`${y}-${f}-${P}-${Q}`,className:h0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",N,R,{source:!V,target:V,connectable:X,connectablestart:H,connectableend:Y,clickconnecting:u,connectingfrom:v,connectingto:h,valid:$1,connectionindicator:X&&(!E||b)&&(E||m?Y:H)}]),onMouseDown:t,onTouchStart:t,onClick:D?x:void 0,ref:w,...O,children:M})}var tq=X1.memo(QR(Uj));function Gj({data:Q,isConnectable:U,sourcePosition:Z=V1.Bottom}){return F1.jsxs(F1.Fragment,{children:[Q?.label,F1.jsx(tq,{type:"source",position:Z,isConnectable:U})]})}function Zj({data:Q,isConnectable:U,targetPosition:Z=V1.Top,sourcePosition:X=V1.Bottom}){return F1.jsxs(F1.Fragment,{children:[F1.jsx(tq,{type:"target",position:Z,isConnectable:U}),Q?.label,F1.jsx(tq,{type:"source",position:X,isConnectable:U})]})}function Kj(){return null}function Fj({data:Q,isConnectable:U,targetPosition:Z=V1.Top}){return F1.jsxs(F1.Fragment,{children:[F1.jsx(tq,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var oq={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},ET={input:Gj,default:Zj,output:Fj,group:Kj};function Xj(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 Hj=(Q)=>{let{width:U,height:Z,x:X,y:H}=b8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:D5(U)?U:null,height:D5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${X}px,${H}px)`}};function Yj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let X=k0(),{width:H,height:Y,transformString:B,userSelectionActive:W}=F0(Hj,V0),M=ZR(),R=X1.useRef(null);X1.useEffect(()=>{if(!Z)R.current?.focus({preventScroll:!0})},[Z]);let T=!W&&H!==null&&Y!==null;if(GR({nodeRef:R,disabled:!T}),!T)return null;let A=Q?(w)=>{let P=X.getState().nodes.filter((V)=>V.selected);Q(w,P)}:void 0,O=(w)=>{if(Object.prototype.hasOwnProperty.call(oq,w.key))w.preventDefault(),M({direction:oq[w.key],factor:w.shiftKey?4:1})};return F1.jsx("div",{className:h0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:B},children:F1.jsx("div",{ref:R,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:O,style:{width:H,height:Y}})})}var hT=typeof window<"u"?window:void 0,zj=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function FR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:X,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:B,paneClickDistance:W,deleteKeyCode:M,selectionKeyCode:R,selectionOnDrag:T,selectionMode:A,onSelectionStart:O,onSelectionEnd:w,multiSelectionKeyCode:P,panActivationKeyCode:V,zoomActivationKeyCode:S,elementsSelectable:f,zoomOnScroll:D,zoomOnPinch:N,panOnScroll:y,panOnScrollSpeed:v,panOnScrollMode:h,zoomOnDoubleClick:u,panOnDrag:b,autoPanOnSelection:E,defaultViewport:m,translateExtent:$1,minZoom:J1,maxZoom:t,preventScrolling:x,onSelectionContextMenu:g,noWheelClassName:c,noPanClassName:a,disableKeyboardA11y:r,onViewportChange:n,isControlledViewport:k}){let{nodesSelectionActive:p,userSelectionActive:q1}=F0(zj,V0),s=VJ(R,{target:hT}),H1=VJ(V,{target:hT}),M1=H1||b,A1=H1||y,B1=T&&M1!==!0,U1=s||q1||B1;return lS({deleteKeyCode:M,multiSelectionKeyCode:P}),F1.jsx(iS,{onPaneContextMenu:Y,elementsSelectable:f,zoomOnScroll:D,zoomOnPinch:N,panOnScroll:A1,panActivationKeyPressed:H1,panOnScrollSpeed:v,panOnScrollMode:h,zoomOnDoubleClick:u,panOnDrag:!s&&M1,defaultViewport:m,translateExtent:$1,minZoom:J1,maxZoom:t,zoomActivationKeyCode:S,preventScrolling:x,noWheelClassName:c,noPanClassName:a,onViewportChange:n,isControlledViewport:k,paneClickDistance:W,selectionOnDrag:B1,children:F1.jsxs(oS,{onSelectionStart:O,onSelectionEnd:w,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:X,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:B,panOnDrag:M1,autoPanOnSelection:E,isSelecting:!!U1,selectionMode:A,selectionKeyPressed:s,paneClickDistance:W,selectionOnDrag:B1,children:[Q,p&&F1.jsx(Yj,{onSelectionContextMenu:g,noPanClassName:a,disableKeyboardA11y:r})]})})}FR.displayName="FlowRenderer";var Bj=X1.memo(FR),Wj=(Q)=>(U)=>{return Q?bq(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 Lj(Q){return F0(X1.useCallback(Wj(Q),[Q]),V0)}var Aj=(Q)=>Q.updateNodeInternals;function Mj(){let Q=F0(Aj),[U]=X1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let X=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");X.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(X)})});return X1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Tj({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:X}){let H=k0(),Y=X1.useRef(null),B=X1.useRef(null),W=X1.useRef(Q.sourcePosition),M=X1.useRef(Q.targetPosition),R=X1.useRef(U),T=Z&&!!Q.internals.handleBounds;return X1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!T||B.current!==Y.current)){if(B.current)X?.unobserve(B.current);X?.observe(Y.current),B.current=Y.current}},[T,Q.hidden]),X1.useEffect(()=>{return()=>{if(B.current)X?.unobserve(B.current),B.current=null}},[]),X1.useEffect(()=>{if(Y.current){let A=R.current!==U,O=W.current!==Q.sourcePosition,w=M.current!==Q.targetPosition;if(A||O||w)R.current=U,W.current=Q.sourcePosition,M.current=Q.targetPosition,H.getState().updateNodeInternals(new Map([[Q.id,{id:Q.id,nodeElement:Y.current,force:!0}]]))}},[Q.id,U,Q.sourcePosition,Q.targetPosition]),Y}function Rj({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:X,onMouseLeave:H,onContextMenu:Y,onDoubleClick:B,nodesDraggable:W,elementsSelectable:M,nodesConnectable:R,nodesFocusable:T,resizeObserver:A,noDragClassName:O,noPanClassName:w,disableKeyboardA11y:P,rfId:V,nodeTypes:S,nodeClickDistance:f,onError:D}){let{node:N,internals:y,isParent:v}=F0((U1)=>{let O1=U1.nodeLookup.get(Q),N1=U1.parentLookup.has(Q);return{node:O1,internals:O1.internals,isParent:N1}},V0),h=N.type||"default",u=S?.[h]||ET[h];if(u===void 0)D?.("003",i2.error003(h)),h="default",u=S?.default||ET.default;let b=!!(N.draggable||W&&typeof N.draggable>"u"),E=!!(N.selectable||M&&typeof N.selectable>"u"),m=!!(N.connectable||R&&typeof N.connectable>"u"),$1=!!(N.focusable||T&&typeof N.focusable>"u"),J1=k0(),t=jX(N),x=Tj({node:N,nodeType:h,hasDimensions:t,resizeObserver:A}),g=GR({nodeRef:x,disabled:N.hidden||!b,noDragClassName:O,handleSelector:N.dragHandle,nodeId:Q,isSelectable:E,nodeClickDistance:f}),c=ZR();if(N.hidden)return null;let a=u5(N),r=Xj(N),n=E||b||U||Z||X||H,k=Z?(U1)=>Z(U1,{...y.userNode}):void 0,p=X?(U1)=>X(U1,{...y.userNode}):void 0,q1=H?(U1)=>H(U1,{...y.userNode}):void 0,s=Y?(U1)=>Y(U1,{...y.userNode}):void 0,H1=B?(U1)=>B(U1,{...y.userNode}):void 0,M1=(U1)=>{let{selectNodesOnDrag:O1,nodeDragThreshold:N1}=J1.getState();if(E&&(!O1||!b||N1>0))dX({id:Q,store:J1,nodeRef:x});if(U)U(U1,{...y.userNode})},A1=(U1)=>{if(DX(U1.nativeEvent)||P)return;if(TX.includes(U1.key)&&E){let O1=U1.key==="Escape";dX({id:Q,store:J1,unselect:O1,nodeRef:x})}else if(b&&N.selected&&Object.prototype.hasOwnProperty.call(oq,U1.key)){U1.preventDefault();let{ariaLabelConfig:O1}=J1.getState();J1.setState({ariaLiveMessage:O1["node.a11yDescription.ariaLiveMessage"]({direction:U1.key.replace("Arrow","").toLowerCase(),x:~~y.positionAbsolute.x,y:~~y.positionAbsolute.y})}),c({direction:oq[U1.key],factor:U1.shiftKey?4:1})}},B1=()=>{if(P||!x.current?.matches(":focus-visible"))return;let{transform:U1,width:O1,height:N1,autoPanOnNodeFocus:W1,setCenter:S1}=J1.getState();if(!W1)return;if(!(bq(new Map([[Q,N]]),{x:0,y:0,width:O1,height:N1},U1,!0).length>0))S1(N.position.x+a.width/2,N.position.y+a.height/2,{zoom:U1[2]})};return F1.jsx("div",{className:h0(["react-flow__node",`react-flow__node-${h}`,{[w]:b},N.className,{selected:N.selected,selectable:E,parent:v,draggable:b,dragging:g}]),ref:x,style:{zIndex:y.z,transform:`translate(${y.positionAbsolute.x}px,${y.positionAbsolute.y}px)`,pointerEvents:n?"all":"none",visibility:t?"visible":"hidden",...N.style,...r},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:k,onMouseMove:p,onMouseLeave:q1,onContextMenu:s,onClick:M1,onDoubleClick:H1,onKeyDown:$1?A1:void 0,tabIndex:$1?0:void 0,onFocus:$1?B1:void 0,role:N.ariaRole??($1?"group":void 0),"aria-roledescription":"node","aria-describedby":P?void 0:`${nT}-${V}`,"aria-label":N.ariaLabel,...N.domAttributes,children:F1.jsx(eS,{value:Q,children:F1.jsx(u,{id:Q,data:N.data,type:h,positionAbsoluteX:y.positionAbsolute.x,positionAbsoluteY:y.positionAbsolute.y,selected:N.selected??!1,selectable:E,draggable:b,deletable:N.deletable??!0,isConnectable:m,sourcePosition:N.sourcePosition,targetPosition:N.targetPosition,dragging:g,dragHandle:N.dragHandle,zIndex:y.z,parentId:N.parentId,...a})})})}var Oj=X1.memo(Rj),Ij=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function XR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:X,onError:H}=F0(Ij,V0),Y=Lj(Q.onlyRenderVisibleElements),B=Mj();return F1.jsx("div",{className:"react-flow__nodes",style:eq,children:Y.map((W)=>{return F1.jsx(Oj,{id:W,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:B,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:X,nodeClickDistance:Q.nodeClickDistance,onError:H},W)})})}XR.displayName="NodeRenderer";var wj=X1.memo(XR);function Pj(Q){return F0(X1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let X=[];if(Z.width&&Z.height)for(let H of Z.edges){let Y=Z.nodeLookup.get(H.source),B=Z.nodeLookup.get(H.target);if(Y&&B&&aM({sourceNode:Y,targetNode:B,width:Z.width,height:Z.height,transform:Z.transform}))X.push(H.id)}return X},[Q]),V0)}var Nj=({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"})},fj=({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"})},xT={[U9.Arrow]:Nj,[U9.ArrowClosed]:fj};function Cj(Q){let U=k0();return X1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(xT,Q))return U.getState().onError?.("009",i2.error009(Q)),null;return xT[Q]},[Q])}var Sj=({id:Q,type:U,color:Z,width:X=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:B,orient:W="auto-start-reverse"})=>{let M=Cj(U);if(!M)return null;return F1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${X}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:W,refX:"0",refY:"0",children:F1.jsx(M,{color:Z,strokeWidth:B})})},HR=({defaultColor:Q,rfId:U})=>{let Z=F0((Y)=>Y.edges),X=F0((Y)=>Y.defaultEdgeOptions),H=X1.useMemo(()=>{return oM(Z,{id:U,defaultColor:Q,defaultMarkerStart:X?.markerStart,defaultMarkerEnd:X?.markerEnd})},[Z,X,U,Q]);if(!H.length)return null;return F1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:F1.jsx("defs",{children:H.map((Y)=>F1.jsx(Sj,{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))})})};HR.displayName="MarkerDefinitions";var jj=X1.memo(HR);function YR({x:Q,y:U,label:Z,labelStyle:X,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:B=[2,4],labelBgBorderRadius:W=2,children:M,className:R,...T}){let[A,O]=X1.useState({x:1,y:0,width:0,height:0}),w=h0(["react-flow__edge-textwrapper",R]),P=X1.useRef(null);if(X1.useEffect(()=>{if(P.current){let V=P.current.getBBox();O({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return F1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:w,visibility:A.width?"visible":"hidden",...T,children:[H&&F1.jsx("rect",{width:A.width+2*B[0],x:-B[0],y:-B[1],height:A.height+2*B[1],className:"react-flow__edge-textbg",style:Y,rx:W,ry:W}),F1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:P,style:X,children:Z}),M]})}YR.displayName="EdgeText";var yj=X1.memo(YR);function _U({path:Q,labelX:U,labelY:Z,label:X,labelStyle:H,labelShowBg:Y,labelBgStyle:B,labelBgPadding:W,labelBgBorderRadius:M,interactionWidth:R=20,...T}){return F1.jsxs(F1.Fragment,{children:[F1.jsx("path",{...T,d:Q,fill:"none",className:h0(["react-flow__edge-path",T.className])}),R?F1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:R,className:"react-flow__edge-interaction"}):null,X&&D5(U)&&D5(Z)?F1.jsx(yj,{x:U,y:Z,label:X,labelStyle:H,labelShowBg:Y,labelBgStyle:B,labelBgPadding:W,labelBgBorderRadius:M}):null]})}function mT({pos:Q,x1:U,y1:Z,x2:X,y2:H}){if(Q===V1.Left||Q===V1.Right)return[0.5*(U+X),Z];return[U,0.5*(Z+H)]}function zR({sourceX:Q,sourceY:U,sourcePosition:Z=V1.Bottom,targetX:X,targetY:H,targetPosition:Y=V1.Top}){let[B,W]=mT({pos:Z,x1:Q,y1:U,x2:X,y2:H}),[M,R]=mT({pos:Y,x1:X,y1:H,x2:Q,y2:U}),[T,A,O,w]=mq({sourceX:Q,sourceY:U,targetX:X,targetY:H,sourceControlX:B,sourceControlY:W,targetControlX:M,targetControlY:R});return[`M${Q},${U} C${B},${W} ${M},${R} ${X},${H}`,T,A,O,w]}function BR(Q){return X1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,sourcePosition:B,targetPosition:W,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:f})=>{let[D,N,y]=zR({sourceX:Z,sourceY:X,sourcePosition:B,targetX:H,targetY:Y,targetPosition:W}),v=Q.isInternal?void 0:U;return F1.jsx(_U,{id:v,path:D,labelX:N,labelY:y,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:f})})}var Vj=BR({isInternal:!1}),WR=BR({isInternal:!0});Vj.displayName="SimpleBezierEdge";WR.displayName="SimpleBezierEdgeInternal";function LR(Q){return X1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,label:B,labelStyle:W,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,sourcePosition:w=V1.Bottom,targetPosition:P=V1.Top,markerEnd:V,markerStart:S,pathOptions:f,interactionWidth:D})=>{let[N,y,v]=yJ({sourceX:Z,sourceY:X,sourcePosition:w,targetX:H,targetY:Y,targetPosition:P,borderRadius:f?.borderRadius,offset:f?.offset,stepPosition:f?.stepPosition}),h=Q.isInternal?void 0:U;return F1.jsx(_U,{id:h,path:N,labelX:y,labelY:v,label:B,labelStyle:W,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:V,markerStart:S,interactionWidth:D})})}var AR=LR({isInternal:!1}),MR=LR({isInternal:!0});AR.displayName="SmoothStepEdge";MR.displayName="SmoothStepEdgeInternal";function TR(Q){return X1.memo(({id:U,...Z})=>{let X=Q.isInternal?void 0:U;return F1.jsx(AR,{...Z,id:X,pathOptions:X1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var kj=TR({isInternal:!1}),RR=TR({isInternal:!0});kj.displayName="StepEdge";RR.displayName="StepEdgeInternal";function OR(Q){return X1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,label:B,labelStyle:W,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:w,markerStart:P,interactionWidth:V})=>{let[S,f,D]=pq({sourceX:Z,sourceY:X,targetX:H,targetY:Y}),N=Q.isInternal?void 0:U;return F1.jsx(_U,{id:N,path:S,labelX:f,labelY:D,label:B,labelStyle:W,labelShowBg:M,labelBgStyle:R,labelBgPadding:T,labelBgBorderRadius:A,style:O,markerEnd:w,markerStart:P,interactionWidth:V})})}var vj=OR({isInternal:!1}),IR=OR({isInternal:!0});vj.displayName="StraightEdge";IR.displayName="StraightEdgeInternal";function wR(Q){return X1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,sourcePosition:B=V1.Bottom,targetPosition:W=V1.Top,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,pathOptions:f,interactionWidth:D})=>{let[N,y,v]=gq({sourceX:Z,sourceY:X,sourcePosition:B,targetX:H,targetY:Y,targetPosition:W,curvature:f?.curvature}),h=Q.isInternal?void 0:U;return F1.jsx(_U,{id:h,path:N,labelX:y,labelY:v,label:M,labelStyle:R,labelShowBg:T,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:D})})}var Dj=wR({isInternal:!1}),PR=wR({isInternal:!0});Dj.displayName="BezierEdge";PR.displayName="BezierEdgeInternal";var gT={default:PR,straight:IR,step:RR,smoothstep:MR,simplebezier:WR},pT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},bj=(Q,U,Z)=>{if(Z===V1.Left)return Q-U;if(Z===V1.Right)return Q+U;return Q},uj=(Q,U,Z)=>{if(Z===V1.Top)return Q-U;if(Z===V1.Bottom)return Q+U;return Q},cT="react-flow__edgeupdater";function lT({position:Q,centerX:U,centerY:Z,radius:X=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:B,type:W}){return F1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:B,className:h0([cT,`${cT}-${W}`]),cx:bj(U,X,Q),cy:uj(Z,X,Q),r:X,stroke:"transparent",fill:"transparent"})}function Ej({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:X,sourceY:H,targetX:Y,targetY:B,sourcePosition:W,targetPosition:M,onReconnect:R,onReconnectStart:T,onReconnectEnd:A,setReconnecting:O,setUpdateHover:w}){let P=k0(),V=(y,v)=>{if(y.button!==0)return;let{autoPanOnConnect:h,domNode:u,connectionMode:b,connectionRadius:E,lib:m,onConnectStart:$1,cancelConnection:J1,nodeLookup:t,rfId:x,panBy:g,updateConnection:c}=P.getState(),a=v.type==="target",r=(p,q1)=>{O(!1),A?.(p,Z,v.type,q1)},n=(p)=>R?.(Z,p),k=(p,q1)=>{O(!0),T?.(y,Z,v.type),$1?.(p,q1)};rq.onPointerDown(y.nativeEvent,{autoPanOnConnect:h,connectionMode:b,connectionRadius:E,domNode:u,handleId:v.id,nodeId:v.nodeId,nodeLookup:t,isTarget:a,edgeUpdaterType:v.type,lib:m,flowId:x,cancelConnection:J1,panBy:g,isValidConnection:(...p)=>P.getState().isValidConnection?.(...p)??!0,onConnect:n,onConnectStart:k,onConnectEnd:(...p)=>P.getState().onConnectEnd?.(...p),onReconnectEnd:r,updateConnection:c,getTransform:()=>P.getState().transform,getFromHandle:()=>P.getState().connection.fromHandle,dragThreshold:P.getState().connectionDragThreshold,handleDomNode:y.currentTarget})},S=(y)=>V(y,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),f=(y)=>V(y,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),D=()=>w(!0),N=()=>w(!1);return F1.jsxs(F1.Fragment,{children:[(Q===!0||Q==="source")&&F1.jsx(lT,{position:W,centerX:X,centerY:H,radius:U,onMouseDown:S,onMouseEnter:D,onMouseOut:N,type:"source"}),(Q===!0||Q==="target")&&F1.jsx(lT,{position:M,centerX:Y,centerY:B,radius:U,onMouseDown:f,onMouseEnter:D,onMouseOut:N,type:"target"})]})}function hj({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:X,onClick:H,onDoubleClick:Y,onContextMenu:B,onMouseEnter:W,onMouseMove:M,onMouseLeave:R,reconnectRadius:T,onReconnect:A,onReconnectStart:O,onReconnectEnd:w,rfId:P,edgeTypes:V,noPanClassName:S,onError:f,disableKeyboardA11y:D}){let N=F0((S1)=>S1.edgeLookup.get(Q)),y=F0((S1)=>S1.defaultEdgeOptions);N=y?{...y,...N}:N;let v=N.type||"default",h=V?.[v]||gT[v];if(h===void 0)f?.("011",i2.error011(v)),v="default",h=V?.default||gT.default;let u=!!(N.focusable||U&&typeof N.focusable>"u"),b=typeof A<"u"&&(N.reconnectable||Z&&typeof N.reconnectable>"u"),E=!!(N.selectable||X&&typeof N.selectable>"u"),m=X1.useRef(null),[$1,J1]=X1.useState(!1),[t,x]=X1.useState(!1),g=k0(),{zIndex:c=N.zIndex,sourceX:a,sourceY:r,targetX:n,targetY:k,sourcePosition:p,targetPosition:q1}=F0(X1.useCallback((S1)=>{let k1=S1.nodeLookup.get(N.source),h1=S1.nodeLookup.get(N.target);if(!k1||!h1)return pT;let v1=tM({id:Q,sourceNode:k1,targetNode:h1,sourceHandle:N.sourceHandle||null,targetHandle:N.targetHandle||null,connectionMode:S1.connectionMode,onError:f}),L1=iM({selected:N.selected,zIndex:N.zIndex,sourceNode:k1,targetNode:h1,elevateOnSelect:S1.elevateEdgesOnSelect,zIndexMode:S1.zIndexMode});return{...v1||pT,zIndex:L1}},[N.source,N.target,N.sourceHandle,N.targetHandle,N.selected,N.zIndex,f]),V0),s=X1.useMemo(()=>N.markerStart?`url('#${cq(N.markerStart,P)}')`:void 0,[N.markerStart,P]),H1=X1.useMemo(()=>N.markerEnd?`url('#${cq(N.markerEnd,P)}')`:void 0,[N.markerEnd,P]);if(N.hidden||a===null||r===null||n===null||k===null)return null;let M1=(S1)=>{let{addSelectedEdges:k1,unselectNodesAndEdges:h1,multiSelectionActive:v1}=g.getState();if(E)if(g.setState({nodesSelectionActive:!1}),N.selected&&v1)h1({nodes:[],edges:[N]}),m.current?.blur();else k1([Q]);if(H)H(S1,N)},A1=Y?(S1)=>{Y(S1,{...N})}:void 0,B1=B?(S1)=>{B(S1,{...N})}:void 0,U1=W?(S1)=>{W(S1,{...N})}:void 0,O1=M?(S1)=>{M(S1,{...N})}:void 0,N1=R?(S1)=>{R(S1,{...N})}:void 0,W1=(S1)=>{if(!D&&TX.includes(S1.key)&&E){let{unselectNodesAndEdges:k1,addSelectedEdges:h1}=g.getState();if(S1.key==="Escape")m.current?.blur(),k1({edges:[N]});else h1([Q])}};return F1.jsx("svg",{style:{zIndex:c},children:F1.jsxs("g",{className:h0(["react-flow__edge",`react-flow__edge-${v}`,N.className,S,{selected:N.selected,animated:N.animated,inactive:!E&&!H,updating:$1,selectable:E}]),onClick:M1,onDoubleClick:A1,onContextMenu:B1,onMouseEnter:U1,onMouseMove:O1,onMouseLeave:N1,onKeyDown:u?W1:void 0,tabIndex:u?0:void 0,role:N.ariaRole??(u?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":N.ariaLabel===null?void 0:N.ariaLabel||`Edge from ${N.source} to ${N.target}`,"aria-describedby":u?`${eT}-${P}`:void 0,ref:m,...N.domAttributes,children:[!t&&F1.jsx(h,{id:Q,source:N.source,target:N.target,type:N.type,selected:N.selected,animated:N.animated,selectable:E,deletable:N.deletable??!0,label:N.label,labelStyle:N.labelStyle,labelShowBg:N.labelShowBg,labelBgStyle:N.labelBgStyle,labelBgPadding:N.labelBgPadding,labelBgBorderRadius:N.labelBgBorderRadius,sourceX:a,sourceY:r,targetX:n,targetY:k,sourcePosition:p,targetPosition:q1,data:N.data,style:N.style,sourceHandleId:N.sourceHandle,targetHandleId:N.targetHandle,markerStart:s,markerEnd:H1,pathOptions:"pathOptions"in N?N.pathOptions:void 0,interactionWidth:N.interactionWidth}),b&&F1.jsx(Ej,{edge:N,isReconnectable:b,reconnectRadius:T,onReconnect:A,onReconnectStart:O,onReconnectEnd:w,sourceX:a,sourceY:r,targetX:n,targetY:k,sourcePosition:p,targetPosition:q1,setUpdateHover:J1,setReconnecting:x})]})})}var xj=X1.memo(hj),mj=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function NR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:X,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:B,onEdgeMouseEnter:W,onEdgeMouseMove:M,onEdgeMouseLeave:R,onEdgeClick:T,reconnectRadius:A,onEdgeDoubleClick:O,onReconnectStart:w,onReconnectEnd:P,disableKeyboardA11y:V}){let{edgesFocusable:S,edgesReconnectable:f,elementsSelectable:D,onError:N}=F0(mj,V0),y=Pj(U);return F1.jsxs("div",{className:"react-flow__edges",children:[F1.jsx(jj,{defaultColor:Q,rfId:Z}),y.map((v)=>{return F1.jsx(xj,{id:v,edgesFocusable:S,edgesReconnectable:f,elementsSelectable:D,noPanClassName:H,onReconnect:Y,onContextMenu:B,onMouseEnter:W,onMouseMove:M,onMouseLeave:R,onClick:T,reconnectRadius:A,onDoubleClick:O,onReconnectStart:w,onReconnectEnd:P,rfId:Z,onError:N,edgeTypes:X,disableKeyboardA11y:V},v)})]})}NR.displayName="EdgeRenderer";var gj=X1.memo(NR),dT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function pj({children:Q}){let U=k0(),Z=X1.useRef(null),[X]=X1.useState(()=>U.getState().transform);return qR(()=>{let H=null,Y=()=>{let B=U.getState().transform;if(H&&B[0]===H[0]&&B[1]===H[1]&&B[2]===H[2])return;if(H=B,Z.current)Z.current.style.transform=dT(B)};return Y(),U.subscribe(Y)},[U]),F1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:dT(X)},children:Q})}function cj(Q){let U=kJ(),Z=X1.useRef(!1);X1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var lj=(Q)=>Q.panZoom?.syncViewport;function dj(Q){let U=F0(lj),Z=k0();return X1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function rT(Q){return Q.connection.inProgress?{...Q.connection,to:X9(Q.connection.to,Q.transform)}:{...Q.connection}}function rj(Q){if(Q)return(Z)=>{let X=rT(Z);return Q(X)};return rT}function ij(Q){let U=rj(Q);return F0(U,V0)}var aj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function sj({containerStyle:Q,style:U,type:Z,component:X}){let{nodesConnectable:H,width:Y,height:B,isValid:W,inProgress:M}=F0(aj,V0);if(!(Y&&H&&M))return null;return F1.jsx("svg",{style:Q,width:Y,height:B,className:"react-flow__connectionline react-flow__container",children:F1.jsx("g",{className:h0(["react-flow__connection",kX(W)]),children:F1.jsx(fR,{style:U,type:Z,CustomComponent:X,isValid:W})})})}var fR=({style:Q,type:U=h4.Bezier,CustomComponent:Z,isValid:X})=>{let{inProgress:H,from:Y,fromNode:B,fromHandle:W,fromPosition:M,to:R,toNode:T,toHandle:A,toPosition:O,pointer:w}=ij();if(!H)return;if(Z)return F1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:B,fromHandle:W,fromX:Y.x,fromY:Y.y,toX:R.x,toY:R.y,fromPosition:M,toPosition:O,connectionStatus:kX(X),toNode:T,toHandle:A,pointer:w});let P="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:M,targetX:R.x,targetY:R.y,targetPosition:O};switch(U){case h4.Bezier:[P]=gq(V);break;case h4.SimpleBezier:[P]=zR(V);break;case h4.Step:[P]=yJ({...V,borderRadius:0});break;case h4.SmoothStep:[P]=yJ(V);break;default:[P]=pq(V)}return F1.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Q})};fR.displayName="ConnectionLine";var tj={};function iT(Q=tj){let U=X1.useRef(Q),Z=k0();X1.useEffect(()=>{{let X=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of X)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",i2.error002());break}U.current=Q}},[Q])}function oj(){let Q=k0(),U=X1.useRef(!1);X1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",i2.error013("react"));U.current=!0}},[])}function CR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:X,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:B,onNodeMouseEnter:W,onNodeMouseMove:M,onNodeMouseLeave:R,onNodeContextMenu:T,onSelectionContextMenu:A,onSelectionStart:O,onSelectionEnd:w,connectionLineType:P,connectionLineStyle:V,connectionLineComponent:S,connectionLineContainerStyle:f,selectionKeyCode:D,selectionOnDrag:N,selectionMode:y,multiSelectionKeyCode:v,panActivationKeyCode:h,zoomActivationKeyCode:u,deleteKeyCode:b,onlyRenderVisibleElements:E,elementsSelectable:m,defaultViewport:$1,translateExtent:J1,minZoom:t,maxZoom:x,preventScrolling:g,defaultMarkerColor:c,zoomOnScroll:a,zoomOnPinch:r,panOnScroll:n,panOnScrollSpeed:k,panOnScrollMode:p,zoomOnDoubleClick:q1,panOnDrag:s,autoPanOnSelection:H1,onPaneClick:M1,onPaneMouseEnter:A1,onPaneMouseMove:B1,onPaneMouseLeave:U1,onPaneScroll:O1,onPaneContextMenu:N1,paneClickDistance:W1,nodeClickDistance:S1,onEdgeContextMenu:k1,onEdgeMouseEnter:h1,onEdgeMouseMove:v1,onEdgeMouseLeave:L1,reconnectRadius:i1,onReconnect:j1,onReconnectStart:x0,onReconnectEnd:e1,noDragClassName:B2,noWheelClassName:O2,noPanClassName:k2,disableKeyboardA11y:v2,nodeExtent:D2,rfId:I2,viewport:w2,onViewportChange:P2,nodesDraggable:N3}){return iT(Q),iT(U),oj(),cj(Z),dj(w2),F1.jsx(Bj,{onPaneClick:M1,onPaneMouseEnter:A1,onPaneMouseMove:B1,onPaneMouseLeave:U1,onPaneContextMenu:N1,onPaneScroll:O1,paneClickDistance:W1,deleteKeyCode:b,selectionKeyCode:D,selectionOnDrag:N,selectionMode:y,onSelectionStart:O,onSelectionEnd:w,multiSelectionKeyCode:v,panActivationKeyCode:h,zoomActivationKeyCode:u,elementsSelectable:m,zoomOnScroll:a,zoomOnPinch:r,zoomOnDoubleClick:q1,panOnScroll:n,panOnScrollSpeed:k,panOnScrollMode:p,panOnDrag:s,autoPanOnSelection:H1,defaultViewport:$1,translateExtent:J1,minZoom:t,maxZoom:x,onSelectionContextMenu:A,preventScrolling:g,noDragClassName:B2,noWheelClassName:O2,noPanClassName:k2,disableKeyboardA11y:v2,onViewportChange:P2,isControlledViewport:!!w2,children:F1.jsxs(pj,{children:[F1.jsx(gj,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:B,onReconnect:j1,onReconnectStart:x0,onReconnectEnd:e1,onlyRenderVisibleElements:E,onEdgeContextMenu:k1,onEdgeMouseEnter:h1,onEdgeMouseMove:v1,onEdgeMouseLeave:L1,reconnectRadius:i1,defaultMarkerColor:c,noPanClassName:k2,disableKeyboardA11y:v2,rfId:I2}),F1.jsx(sj,{style:V,type:P,component:S,containerStyle:f}),F1.jsx("div",{className:"react-flow__edgelabel-renderer"}),F1.jsx(wj,{nodeTypes:Q,onNodeClick:X,onNodeDoubleClick:Y,onNodeMouseEnter:W,onNodeMouseMove:M,onNodeMouseLeave:R,onNodeContextMenu:T,nodeClickDistance:S1,onlyRenderVisibleElements:E,noPanClassName:k2,noDragClassName:B2,disableKeyboardA11y:v2,nodeExtent:D2,rfId:I2,nodesDraggable:N3}),F1.jsx("div",{className:"react-flow__viewport-portal"})]})})}CR.displayName="GraphView";var nj=X1.memo(CR),ej=SX("React Flow","https://reactflow.dev/"),aT=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:B,fitViewOptions:W,minZoom:M=0.5,maxZoom:R=2,nodeOrigin:T,nodeExtent:A,zIndexMode:O="basic"}={})=>{let w=new Map,P=new Map,V=new Map,S=new Map,f=X??U??[],D=Z??Q??[],N=T??[0,0],y=A??Z9;gX(V,S,f);let{nodesInitialized:v}=lq(D,w,P,{nodeOrigin:N,nodeExtent:y,zIndexMode:O}),h=[0,0,1];if(B&&H&&Y){let u=b8(w,{filter:($1)=>!!(($1.width||$1.initialWidth)&&($1.height||$1.initialHeight))}),{x:b,y:E,zoom:m}=jJ(u,H,Y,M,R,W?.padding??0.1);h=[b,E,m]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:D,nodesInitialized:v,nodeLookup:w,parentLookup:P,edges:f,edgeLookup:S,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:X!==void 0,panZoom:null,minZoom:M,maxZoom:R,translateExtent:Z9,nodeExtent:y,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:w6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:N,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:B??!1,fitViewOptions:W,fitViewResolver:null,connection:{...OX},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:ej,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:RX,zIndexMode:O,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}},_y=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:B,fitViewOptions:W,minZoom:M,maxZoom:R,nodeOrigin:T,nodeExtent:A,zIndexMode:O})=>wT((w,P)=>{async function V(){let{nodeLookup:S,panZoom:f,fitViewOptions:D,fitViewResolver:N,width:y,height:v,minZoom:h,maxZoom:u}=P();if(!f)return;await mM({nodes:S,width:y,height:v,panZoom:f,minZoom:h,maxZoom:u},D),N?.resolve(!0),w({fitViewResolver:null})}return{...aT({nodes:Q,edges:U,width:H,height:Y,fitView:B,fitViewOptions:W,minZoom:M,maxZoom:R,nodeOrigin:T,nodeExtent:A,defaultNodes:Z,defaultEdges:X,zIndexMode:O}),setNodes:(S)=>{let{nodeLookup:f,parentLookup:D,nodeOrigin:N,nodeExtent:y,elevateNodesOnSelect:v,fitViewQueued:h,zIndexMode:u,nodesSelectionActive:b}=P(),{nodesInitialized:E,hasSelectedNodes:m}=lq(S,f,D,{nodeOrigin:N,nodeExtent:y,elevateNodesOnSelect:v,checkEquality:!0,zIndexMode:u}),$1=b&&m;if(h&&E)V(),w({nodes:S,nodesInitialized:E,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:$1});else w({nodes:S,nodesInitialized:E,nodesSelectionActive:$1})},setEdges:(S)=>{let{connectionLookup:f,edgeLookup:D}=P();gX(f,D,S),w({edges:S})},setDefaultNodesAndEdges:(S,f)=>{if(S){let{setNodes:D}=P();D(S),w({hasDefaultNodes:!0})}if(f){let{setEdges:D}=P();D(f),w({hasDefaultEdges:!0})}},updateNodeInternals:(S)=>{let{triggerNodeChanges:f,nodeLookup:D,parentLookup:N,domNode:y,nodeOrigin:v,nodeExtent:h,debug:u,fitViewQueued:b,zIndexMode:E}=P(),{changes:m,updatedInternals:$1}=$T(S,D,N,y,v,h,E);if(!$1)return;if(_T(D,N,{nodeOrigin:v,nodeExtent:h,zIndexMode:E}),b)V(),w({fitViewQueued:!1,fitViewOptions:void 0});else w({});if(m?.length>0){if(u)console.log("React Flow: trigger node changes",m);f?.(m)}},updateNodePositions:(S,f=!1)=>{let D=[],N=[],{nodeLookup:y,triggerNodeChanges:v,connection:h,updateConnection:u,onNodesChangeMiddlewareMap:b}=P();for(let[E,m]of S){let $1=y.get(E),J1=!!($1?.expandParent&&$1?.parentId&&m?.position),t={id:E,type:"position",position:J1?{x:Math.max(0,m.position.x),y:Math.max(0,m.position.y)}:m.position,dragging:f};if($1&&h.inProgress&&h.fromNode.id===$1.id){let x=P6($1,h.fromHandle,V1.Left,!0);u({...h,from:x})}if(J1&&$1.parentId)D.push({id:E,parentId:$1.parentId,rect:{...m.internals.positionAbsolute,width:m.measured.width??0,height:m.measured.height??0}});N.push(t)}if(D.length>0){let{parentLookup:E,nodeOrigin:m}=P(),$1=dq(D,y,E,m);N.push(...$1)}for(let E of b.values())N=E(N);v(N)},triggerNodeChanges:(S)=>{let{onNodesChange:f,setNodes:D,nodes:N,hasDefaultNodes:y,debug:v}=P();if(S?.length){if(y){let h=$R(S,N);D(h)}if(v)console.log("React Flow: trigger node changes",S);f?.(S)}},triggerEdgeChanges:(S)=>{let{onEdgesChange:f,setEdges:D,edges:N,hasDefaultEdges:y,debug:v}=P();if(S?.length){if(y){let h=bS(S,N);D(h)}if(v)console.log("React Flow: trigger edge changes",S);f?.(S)}},addSelectedNodes:(S)=>{let{multiSelectionActive:f,edgeLookup:D,nodeLookup:N,triggerNodeChanges:y,triggerEdgeChanges:v}=P();if(f){let h=S.map((u)=>u8(u,!0));y(h);return}y(Y9(N,new Set([...S]),!0)),v(Y9(D))},addSelectedEdges:(S)=>{let{multiSelectionActive:f,edgeLookup:D,nodeLookup:N,triggerNodeChanges:y,triggerEdgeChanges:v}=P();if(f){let h=S.map((u)=>u8(u,!0));v(h);return}v(Y9(D,new Set([...S]))),y(Y9(N,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:f}={})=>{let{edges:D,nodes:N,nodeLookup:y,triggerNodeChanges:v,triggerEdgeChanges:h}=P(),u=S?S:N,b=f?f:D,E=[];for(let $1 of u){if(!$1.selected)continue;let J1=y.get($1.id);if(J1)J1.selected=!1;E.push(u8($1.id,!1))}let m=[];for(let $1 of b){if(!$1.selected)continue;m.push(u8($1.id,!1))}v(E),h(m)},setMinZoom:(S)=>{let{panZoom:f,maxZoom:D}=P();f?.setScaleExtent([S,D]),w({minZoom:S})},setMaxZoom:(S)=>{let{panZoom:f,minZoom:D}=P();f?.setScaleExtent([D,S]),w({maxZoom:S})},setTranslateExtent:(S)=>{P().panZoom?.setTranslateExtent(S),w({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:f,triggerNodeChanges:D,triggerEdgeChanges:N,elementsSelectable:y}=P();if(!y)return;let v=f.reduce((u,b)=>b.selected?[...u,u8(b.id,!1)]:u,[]),h=S.reduce((u,b)=>b.selected?[...u,u8(b.id,!1)]:u,[]);D(v),N(h)},setNodeExtent:(S)=>{let{nodes:f,nodeLookup:D,parentLookup:N,nodeOrigin:y,elevateNodesOnSelect:v,nodeExtent:h,zIndexMode:u}=P();if(S[0][0]===h[0][0]&&S[0][1]===h[0][1]&&S[1][0]===h[1][0]&&S[1][1]===h[1][1])return;lq(f,D,N,{nodeOrigin:y,nodeExtent:S,elevateNodesOnSelect:v,checkEquality:!1,zIndexMode:u}),w({nodeExtent:S})},panBy:(S)=>{let{transform:f,width:D,height:N,panZoom:y,translateExtent:v}=P();return QT({delta:S,panZoom:y,transform:f,translateExtent:v,width:D,height:N})},setCenter:async(S,f,D)=>{let{width:N,height:y,maxZoom:v,panZoom:h}=P();if(!h)return!1;let u=typeof D?.zoom<"u"?D.zoom:v;return await h.setViewport({x:N/2-S*u,y:y/2-f*u,zoom:u},{duration:D?.duration,ease:D?.ease,interpolate:D?.interpolate}),!0},cancelConnection:()=>{w({connection:{...OX}})},updateConnection:(S)=>{w({connection:S})},reset:()=>w({...aT()})}},Object.is);function aX({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:X,initialWidth:H,initialHeight:Y,initialMinZoom:B,initialMaxZoom:W,initialFitViewOptions:M,fitView:R,nodeOrigin:T,nodeExtent:A,zIndexMode:O,children:w}){let[P]=X1.useState(()=>_y({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:R,minZoom:B,maxZoom:W,fitViewOptions:M,nodeOrigin:T,nodeExtent:A,zIndexMode:O}));return F1.jsx(WS,{value:P,children:F1.jsx(mS,{children:F1.jsx(Jj,{children:w})})})}function Jy({children:Q,nodes:U,edges:Z,defaultNodes:X,defaultEdges:H,width:Y,height:B,fitView:W,fitViewOptions:M,minZoom:R,maxZoom:T,nodeOrigin:A,nodeExtent:O,zIndexMode:w}){if(X1.useContext(nq))return F1.jsx(F1.Fragment,{children:Q});return F1.jsx(aX,{initialNodes:U,initialEdges:Z,defaultNodes:X,defaultEdges:H,initialWidth:Y,initialHeight:B,fitView:W,initialFitViewOptions:M,initialMinZoom:R,initialMaxZoom:T,nodeOrigin:A,nodeExtent:O,zIndexMode:w,children:Q})}var $y={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Qy({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,className:H,nodeTypes:Y,edgeTypes:B,onNodeClick:W,onEdgeClick:M,onInit:R,onMove:T,onMoveStart:A,onMoveEnd:O,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:f,onNodeMouseEnter:D,onNodeMouseMove:N,onNodeMouseLeave:y,onNodeContextMenu:v,onNodeDoubleClick:h,onNodeDragStart:u,onNodeDrag:b,onNodeDragStop:E,onNodesDelete:m,onEdgesDelete:$1,onDelete:J1,onSelectionChange:t,onSelectionDragStart:x,onSelectionDrag:g,onSelectionDragStop:c,onSelectionContextMenu:a,onSelectionStart:r,onSelectionEnd:n,onBeforeDelete:k,connectionMode:p,connectionLineType:q1=h4.Bezier,connectionLineStyle:s,connectionLineComponent:H1,connectionLineContainerStyle:M1,deleteKeyCode:A1="Backspace",selectionKeyCode:B1="Shift",selectionOnDrag:U1=!1,selectionMode:O1=V8.Full,panActivationKeyCode:N1="Space",multiSelectionKeyCode:W1=H9()?"Meta":"Control",zoomActivationKeyCode:S1=H9()?"Meta":"Control",snapToGrid:k1,snapGrid:h1,onlyRenderVisibleElements:v1=!1,selectNodesOnDrag:L1,nodesDraggable:i1,autoPanOnNodeFocus:j1,nodesConnectable:x0,nodesFocusable:e1,nodeOrigin:B2=_R,edgesFocusable:O2,edgesReconnectable:k2,elementsSelectable:v2=!0,defaultViewport:D2=SS,minZoom:I2=0.5,maxZoom:w2=2,translateExtent:P2=Z9,preventScrolling:N3=!0,nodeExtent:h5,defaultMarkerColor:m4="#b1b1b7",zoomOnScroll:g4=!0,zoomOnPinch:p4=!0,panOnScroll:y6=!1,panOnScrollSpeed:Q4=0.5,panOnScrollMode:j=R3.Free,zoomOnDoubleClick:Q1=!0,panOnDrag:R1=!0,onPaneClick:w1,onPaneMouseEnter:C1,onPaneMouseMove:c1,onPaneMouseLeave:l1,onPaneScroll:K0,onPaneContextMenu:D1,paneClickDistance:Z2=1,nodeClickDistance:b2=0,children:q4,onReconnect:V6,onReconnectStart:EJ,onReconnectEnd:l8,onEdgeContextMenu:d8,onEdgeDoubleClick:x5,onEdgeMouseEnter:a2,onEdgeMouseMove:hJ,onEdgeMouseLeave:FU,reconnectRadius:L9=10,onNodesChange:xJ,onEdgesChange:r8,noDragClassName:s2="nodrag",noWheelClassName:mJ="nowheel",noPanClassName:i8="nopan",fitView:A9,fitViewOptions:a8,connectOnClick:gJ,attributionPosition:pJ,proOptions:f3,defaultEdgeOptions:cJ,elevateNodesOnSelect:lJ=!0,elevateEdgesOnSelect:dJ=!1,disableKeyboardA11y:M9=!1,autoPanOnConnect:rJ,autoPanOnNodeDrag:u2,autoPanOnSelection:C3=!0,autoPanSpeed:c4,connectionRadius:iJ,isValidConnection:k6,onError:s8,style:T9,id:S3,nodeDragThreshold:j3,connectionDragThreshold:R9,viewport:XU,onViewportChange:HU,width:aJ,height:O9,colorMode:I9="light",debug:sJ,onScroll:w9,ariaLabelConfig:tJ,zIndexMode:oJ="basic",...nJ},P9){let y3=S3||"1",v6=kS(I9),YU=X1.useCallback((N9)=>{N9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),w9?.(N9)},[w9]);return F1.jsx("div",{"data-testid":"rf__wrapper",...nJ,onScroll:YU,style:{...T9,...$y},ref:P9,className:h0(["react-flow",H,v6]),id:S3,role:"application",children:F1.jsxs(Jy,{nodes:Q,edges:U,width:aJ,height:O9,fitView:A9,fitViewOptions:a8,minZoom:I2,maxZoom:w2,nodeOrigin:B2,nodeExtent:h5,zIndexMode:oJ,children:[F1.jsx(VS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:f,nodesDraggable:i1,autoPanOnNodeFocus:j1,nodesConnectable:x0,nodesFocusable:e1,edgesFocusable:O2,edgesReconnectable:k2,elementsSelectable:v2,elevateNodesOnSelect:lJ,elevateEdgesOnSelect:dJ,minZoom:I2,maxZoom:w2,nodeExtent:h5,onNodesChange:xJ,onEdgesChange:r8,snapToGrid:k1,snapGrid:h1,connectionMode:p,translateExtent:P2,connectOnClick:gJ,defaultEdgeOptions:cJ,fitView:A9,fitViewOptions:a8,onNodesDelete:m,onEdgesDelete:$1,onDelete:J1,onNodeDragStart:u,onNodeDrag:b,onNodeDragStop:E,onSelectionDrag:g,onSelectionDragStart:x,onSelectionDragStop:c,onMove:T,onMoveStart:A,onMoveEnd:O,noPanClassName:i8,nodeOrigin:B2,rfId:y3,autoPanOnConnect:rJ,autoPanOnNodeDrag:u2,autoPanSpeed:c4,onError:s8,connectionRadius:iJ,isValidConnection:k6,selectNodesOnDrag:L1,nodeDragThreshold:j3,connectionDragThreshold:R9,onBeforeDelete:k,debug:sJ,ariaLabelConfig:tJ,zIndexMode:oJ}),F1.jsx(nj,{onInit:R,onNodeClick:W,onEdgeClick:M,onNodeMouseEnter:D,onNodeMouseMove:N,onNodeMouseLeave:y,onNodeContextMenu:v,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:B,connectionLineType:q1,connectionLineStyle:s,connectionLineComponent:H1,connectionLineContainerStyle:M1,selectionKeyCode:B1,selectionOnDrag:U1,selectionMode:O1,deleteKeyCode:A1,multiSelectionKeyCode:W1,panActivationKeyCode:N1,zoomActivationKeyCode:S1,onlyRenderVisibleElements:v1,defaultViewport:D2,translateExtent:P2,minZoom:I2,maxZoom:w2,preventScrolling:N3,zoomOnScroll:g4,zoomOnPinch:p4,zoomOnDoubleClick:Q1,panOnScroll:y6,panOnScrollSpeed:Q4,panOnScrollMode:j,panOnDrag:R1,autoPanOnSelection:C3,onPaneClick:w1,onPaneMouseEnter:C1,onPaneMouseMove:c1,onPaneMouseLeave:l1,onPaneScroll:K0,onPaneContextMenu:D1,paneClickDistance:Z2,nodeClickDistance:b2,onSelectionContextMenu:a,onSelectionStart:r,onSelectionEnd:n,onReconnect:V6,onReconnectStart:EJ,onReconnectEnd:l8,onEdgeContextMenu:d8,onEdgeDoubleClick:x5,onEdgeMouseEnter:a2,onEdgeMouseMove:hJ,onEdgeMouseLeave:FU,reconnectRadius:L9,defaultMarkerColor:m4,noDragClassName:s2,noWheelClassName:mJ,noPanClassName:i8,rfId:y3,disableKeyboardA11y:M9,nodeExtent:h5,viewport:XU,onViewportChange:HU,nodesDraggable:i1}),F1.jsx(CS,{onSelectionChange:t}),q4,F1.jsx(IS,{proOptions:f3,position:pJ}),F1.jsx(OS,{rfId:y3,disableKeyboardA11y:M9})]})})}var SR=QR(Qy);function jR(Q){let[U,Z]=X1.useState(Q),X=X1.useCallback((H)=>Z((Y)=>$R(H,Y)),[]);return[U,Z,X]}var Tg=i2.error014();function qy({dimensions:Q,lineWidth:U,variant:Z,className:X}){return F1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:h0(["react-flow__background-pattern",Z,X])})}function Uy({radius:Q,className:U}){return F1.jsx("circle",{cx:Q,cy:Q,r:Q,className:h0(["react-flow__background-pattern","dots",U])})}var x4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(x4||(x4={}));var Gy={[x4.Dots]:1,[x4.Lines]:1,[x4.Cross]:6},Zy=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function yR({id:Q,variant:U=x4.Dots,gap:Z=20,size:X,lineWidth:H=1,offset:Y=0,color:B,bgColor:W,style:M,className:R,patternClassName:T}){let A=X1.useRef(null),{transform:O,patternId:w}=F0(Zy,V0),P=X||Gy[U],V=U===x4.Dots,S=U===x4.Cross,f=Array.isArray(Z)?Z:[Z,Z],D=[f[0]*O[2]||1,f[1]*O[2]||1],N=P*O[2],y=Array.isArray(Y)?Y:[Y,Y],v=S?[N,N]:D,h=[y[0]*O[2]+v[0]/2,y[1]*O[2]+v[1]/2],u=`${w}${Q?Q:""}`;return F1.jsxs("svg",{className:h0(["react-flow__background",R]),style:{...M,...eq,"--xy-background-color-props":W,"--xy-background-pattern-color-props":B},ref:A,"data-testid":"rf__background",children:[F1.jsx("pattern",{id:u,x:O[0]%D[0],y:O[1]%D[1],width:D[0],height:D[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:V?F1.jsx(Uy,{radius:N/2,className:T}):F1.jsx(qy,{dimensions:v,lineWidth:H,variant:U,className:T})}),F1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${u})`})]})}yR.displayName="Background";var VR=X1.memo(yR);function Ky(){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 Fy(){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 Xy(){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 Hy(){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 Yy(){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 sq({children:Q,className:U,...Z}){return F1.jsx("button",{type:"button",className:h0(["react-flow__controls-button",U]),...Z,children:Q})}var zy=(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:X=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:B,onFitView:W,onInteractiveChange:M,className:R,children:T,position:A="bottom-left",orientation:O="vertical","aria-label":w}){let P=k0(),{isInteractive:V,minZoomReached:S,maxZoomReached:f,ariaLabelConfig:D}=F0(zy,V0),{zoomIn:N,zoomOut:y,fitView:v}=kJ(),h=()=>{N(),Y?.()},u=()=>{y(),B?.()},b=()=>{v(H),W?.()},E=()=>{P.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),M?.(!V)};return F1.jsxs(E8,{className:h0(["react-flow__controls",O==="horizontal"?"horizontal":"vertical",R]),position:A,style:Q,"data-testid":"rf__controls","aria-label":w??D["controls.ariaLabel"],children:[U&&F1.jsxs(F1.Fragment,{children:[F1.jsx(sq,{onClick:h,className:"react-flow__controls-zoomin",title:D["controls.zoomIn.ariaLabel"],"aria-label":D["controls.zoomIn.ariaLabel"],disabled:f,children:F1.jsx(Ky,{})}),F1.jsx(sq,{onClick:u,className:"react-flow__controls-zoomout",title:D["controls.zoomOut.ariaLabel"],"aria-label":D["controls.zoomOut.ariaLabel"],disabled:S,children:F1.jsx(Fy,{})})]}),Z&&F1.jsx(sq,{className:"react-flow__controls-fitview",onClick:b,title:D["controls.fitView.ariaLabel"],"aria-label":D["controls.fitView.ariaLabel"],children:F1.jsx(Xy,{})}),X&&F1.jsx(sq,{className:"react-flow__controls-interactive",onClick:E,title:D["controls.interactive.ariaLabel"],"aria-label":D["controls.interactive.ariaLabel"],children:V?F1.jsx(Yy,{}):F1.jsx(Hy,{})}),T]})}kR.displayName="Controls";var vR=X1.memo(kR);function By({id:Q,x:U,y:Z,width:X,height:H,style:Y,color:B,strokeColor:W,strokeWidth:M,className:R,borderRadius:T,shapeRendering:A,selected:O,onClick:w}){let{background:P,backgroundColor:V}=Y||{},S=B||P||V;return F1.jsx("rect",{className:h0(["react-flow__minimap-node",{selected:O},R]),x:U,y:Z,rx:T,ry:T,width:X,height:H,style:{fill:S,stroke:W,strokeWidth:M},shapeRendering:A,onClick:w?(f)=>w(f,Q):void 0})}var Wy=X1.memo(By),Ly=(Q)=>Q.nodes.map((U)=>U.id),lX=(Q)=>Q instanceof Function?Q:()=>Q;function Ay({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:X=5,nodeStrokeWidth:H,nodeComponent:Y=Wy,onClick:B}){let W=F0(Ly,V0),M=lX(U),R=lX(Q),T=lX(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return F1.jsx(F1.Fragment,{children:W.map((O)=>F1.jsx(Ty,{id:O,nodeColorFunc:M,nodeStrokeColorFunc:R,nodeClassNameFunc:T,nodeBorderRadius:X,nodeStrokeWidth:H,NodeComponent:Y,onClick:B,shapeRendering:A},O))})}function My({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:X,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:B,NodeComponent:W,onClick:M}){let{node:R,x:T,y:A,width:O,height:w}=F0((P)=>{let V=P.nodeLookup.get(Q);if(!V)return{node:void 0,x:0,y:0,width:0,height:0};let S=V.internals.userNode,{x:f,y:D}=V.internals.positionAbsolute,{width:N,height:y}=u5(S);return{node:S,x:f,y:D,width:N,height:y}},V0);if(!R||R.hidden||!jX(R))return null;return F1.jsx(W,{x:T,y:A,width:O,height:w,style:R.style,selected:!!R.selected,className:X(R),color:U(R),borderRadius:H,strokeColor:Z(R),strokeWidth:Y,shapeRendering:B,onClick:M,id:R.id})}var Ty=X1.memo(My),Ry=X1.memo(Ay),Oy=200,Iy=150,wy=(Q)=>!Q.hidden,Py=(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 X of Q.nodeLookup.values())if(!X.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?fX(b8(Q.nodeLookup,{filter:wy}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},sT=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,Ny=(Q,U)=>sT(Q.viewBB,U.viewBB)&&sT(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,fy="react-flow__minimap-desc";function DR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:X,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:B,nodeComponent:W,bgColor:M,maskColor:R,maskStrokeColor:T,maskStrokeWidth:A,position:O="bottom-right",onClick:w,onNodeClick:P,pannable:V=!1,zoomable:S=!1,ariaLabel:f,inversePan:D,zoomStep:N=1,offsetScale:y=5}){let v=k0(),h=X1.useRef(null),{boundingRect:u,panZoom:b,viewBB:E,rfId:m,translateExtent:$1,flowWidth:J1,flowHeight:t,ariaLabelConfig:x}=F0(Py,Ny),g=Q?.width??Oy,c=Q?.height??Iy,a=u.width/g,r=u.height/c,n=Math.max(a,r),k=n*g,p=n*c,q1=y*n,s=u.x-(k-u.width)/2-q1,H1=u.y-(p-u.height)/2-q1,M1=k+q1*2,A1=p+q1*2,B1=`${fy}-${m}`,U1=X1.useRef(0),O1=X1.useRef();U1.current=n,X1.useEffect(()=>{let h1=v.getState().panZoom;if(h.current&&h1)return O1.current=XT({domNode:h.current,panZoom:h1,getTransform:()=>v.getState().transform,getViewScale:()=>U1.current}),()=>{O1.current?.destroy()}},[b]),X1.useEffect(()=>{O1.current?.update({translateExtent:$1,width:J1,height:t,inversePan:D,pannable:V,zoomStep:N,zoomable:S})},[V,S,D,N,$1,J1,t]);let N1=w?(h1)=>{let[v1,L1]=O1.current?.pointer(h1)||[0,0];w(h1,{x:v1,y:L1})}:void 0,W1=X1.useCallback((h1,v1)=>{let L1=v.getState().nodeLookup.get(v1).internals.userNode;P?.(h1,L1)},[P]),S1=P?W1:void 0,k1=f??x["minimap.ariaLabel"];return F1.jsx(E8,{position:O,style:{...Q,"--xy-minimap-background-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-background-color-props":typeof R==="string"?R:void 0,"--xy-minimap-mask-stroke-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-stroke-width-props":typeof A==="number"?A*n:void 0,"--xy-minimap-node-background-color-props":typeof X==="string"?X:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof B==="number"?B:void 0},className:h0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:F1.jsxs("svg",{width:g,height:c,viewBox:`${s} ${H1} ${M1} ${A1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":B1,ref:h,onClick:N1,children:[k1&&F1.jsx("title",{id:B1,children:k1}),F1.jsx(Ry,{onClick:S1,nodeColor:X,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:B,nodeComponent:W}),F1.jsx("path",{className:"react-flow__minimap-mask",d:`M${s-q1},${H1-q1}h${M1+q1*2}v${A1+q1*2}h${-M1-q1*2}z
247
- M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}DR.displayName="MiniMap";var bR=X1.memo(DR),Cy=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,Sy={[N6.Line]:"right",[N6.Handle]:"bottom-right"};function jy({nodeId:Q,position:U,variant:Z=N6.Handle,className:X,style:H=void 0,children:Y,color:B,minWidth:W=10,minHeight:M=10,maxWidth:R=Number.MAX_VALUE,maxHeight:T=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:O,autoScale:w=!0,shouldResize:P,onResizeStart:V,onResize:S,onResizeEnd:f}){let D=iX(),N=typeof Q==="string"?Q:D,y=k0(),v=X1.useRef(null),h=Z===N6.Handle,u=F0(X1.useCallback(Cy(h&&w),[h,w]),V0),b=X1.useRef(null),E=U??Sy[Z];X1.useEffect(()=>{if(!v.current||!N)return;if(!b.current)b.current=WT({domNode:v.current,nodeId:N,getStoreItems:()=>{let{nodeLookup:$1,transform:J1,snapGrid:t,snapToGrid:x,nodeOrigin:g,domNode:c}=y.getState();return{nodeLookup:$1,transform:J1,snapGrid:t,snapToGrid:x,nodeOrigin:g,paneDomNode:c}},onChange:($1,J1)=>{let{triggerNodeChanges:t,nodeLookup:x,parentLookup:g,nodeOrigin:c}=y.getState(),a=[],r={x:$1.x,y:$1.y},n=x.get(N);if(n&&n.expandParent&&n.parentId){let k=n.origin??c,p=$1.width??n.measured.width??0,q1=$1.height??n.measured.height??0,s={id:n.id,parentId:n.parentId,rect:{width:p,height:q1,...yX({x:$1.x??n.position.x,y:$1.y??n.position.y},{width:p,height:q1},n.parentId,x,k)}},H1=dq([s],x,g,c);a.push(...H1),r.x=$1.x?Math.max(k[0]*p,$1.x):void 0,r.y=$1.y?Math.max(k[1]*q1,$1.y):void 0}if(r.x!==void 0&&r.y!==void 0){let k={id:N,type:"position",position:{...r}};a.push(k)}if($1.width!==void 0&&$1.height!==void 0){let p={id:N,type:"dimensions",resizing:!0,setAttributes:!O?!0:O==="horizontal"?"width":"height",dimensions:{width:$1.width,height:$1.height}};a.push(p)}for(let k of J1){let p={...k,type:"position"};a.push(p)}t(a)},onEnd:({width:$1,height:J1})=>{let t={id:N,type:"dimensions",resizing:!1,dimensions:{width:$1,height:J1}};y.getState().triggerNodeChanges([t])}});return b.current.update({controlPosition:E,boundaries:{minWidth:W,minHeight:M,maxWidth:R,maxHeight:T},keepAspectRatio:A,resizeDirection:O,onResizeStart:V,onResize:S,onResizeEnd:f,shouldResize:P}),()=>{b.current?.destroy()}},[E,W,M,R,T,A,V,S,f,P]);let m=E.split("-");return F1.jsx("div",{className:h0(["react-flow__resize-control","nodrag",...m,Z,X]),ref:v,style:{...H,scale:u,...B&&{[h?"backgroundColor":"borderColor"]:B}},children:Y})}var Rg=X1.memo(jy);var yy=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function Vy({children:Q}){let U=F0(yy);if(!U)return null;return tT.createPortal(Q,U)}var ky=(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,vy=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,X]of Q)if(ky(X,U.get(Z)))return!1;return!0},Dy=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function uR({nodeId:Q,children:U,className:Z,style:X,isVisible:H,position:Y=V1.Top,offset:B=10,align:W="center",...M}){let R=iX(),T=X1.useCallback((v)=>{return(Array.isArray(Q)?Q:[Q||R||""]).reduce((b,E)=>{let m=v.nodeLookup.get(E);if(m)b.set(m.id,m);return b},new Map)},[Q,R]),A=F0(T,vy),{x:O,y:w,zoom:P,selectedNodesCount:V}=F0(Dy,V0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let f=b8(A),D=Array.from(A.values()),N=Math.max(...D.map((v)=>v.internals.z+1)),y={position:"absolute",transform:nM(f,{x:O,y:w,zoom:P},Y,B,W),zIndex:N,...X};return F1.jsx(Vy,{children:F1.jsx("div",{style:y,className:h0(["react-flow__node-toolbar",Z]),...M,"data-id":D.reduce((v,h)=>`${v}${h.id} `,"").trim(),children:U})})}function JU(Q={}){let U=(X,H)=>Q.tools?`${H} (\`${X}\`)`:`\`${X}\``,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 X=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 ${X} --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://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),Z.join(`
248
- `)}var ER={"git-commit-horizontal":[["rect",{x:"9",y:"9",width:"6",height:"6"}],["path",{d:"M3 12h6M15 12h6"}]],"arrow-down-to-line":[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]],"arrow-up-from-line":[["path",{d:"m18 9-6-6-6 6"}],["path",{d:"M12 3v14"}],["path",{d:"M5 21h14"}]],"git-branch":[["rect",{x:"4",y:"3",width:"4",height:"4"}],["rect",{x:"4",y:"17",width:"4",height:"4"}],["rect",{x:"16",y:"5",width:"4",height:"4"}],["path",{d:"M6 7v10M18 9v2a4 4 0 0 1-4 4H6"}]],monitor:[["rect",{x:"3",y:"4",width:"18",height:"13"}],["path",{d:"M8 21h8M12 17v4"}]],vault:[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"6.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 7.9 2.7 2.7"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 10.6 2.7-2.7"}],["rect",{x:"6.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 16.1 2.7-2.7"}],["rect",{x:"15.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 13.4 2.7 2.7"}],["circle",{cx:"12",cy:"12",r:"2"}]],settings:[["circle",{cx:"12",cy:"12",r:"3"}],["circle",{cx:"12",cy:"12",r:"7"}],["path",{d:"M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9L7 7M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"}]],history:[["path",{d:"M3 12a9 9 0 1 0 3-6.7"}],["path",{d:"M3 4v5h5"}],["path",{d:"M12 7v5l3 3"}]],activity:[["path",{d:"M2 12h4l3-8 6 16 3-8h4"}]],"file-diff":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M9 10h6"}],["path",{d:"M12 13V7"}],["path",{d:"M9 17h6"}]],"square-plus":[["rect",{x:"4",y:"4",width:"16",height:"16"}],["path",{d:"M12 8v8M8 12h8"}]],"square-minus":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["path",{d:"M8 12h8"}]],"square-dot":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"10.8",y:"10.8",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],cloud:[["path",{d:"M7 19a5 5 0 0 1-.5-10A6 6 0 0 1 18 8a4.5 4.5 0 0 1 .5 11z"}]],"refresh-cw":[["path",{d:"M20 12a8 8 0 0 1-14.3 4.9M4 12a8 8 0 0 1 14.3-4.9"}],["path",{d:"M19 3v5h-5M5 21v-5h5"}]],clock:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M12 7v5l3 3"}]],"key-round":[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],plug:[["path",{d:"M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0zM12 18v3"}]],"list-checks":[["path",{d:"M11 6h9M11 12h9M11 18h9"}],["path",{d:"M3 6l1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17"}]],palette:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}],["rect",{x:"12.3",y:"5.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"16.3",y:"9.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"5.3",y:"11.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"7.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],check:[["path",{d:"M4 12l5 5L20 6"}]],plus:[["path",{d:"M12 4v16M4 12h16"}]],"chevron-down":[["path",{d:"M5 9l7 7 7-7"}]],"external-link":[["path",{d:"M14 4h6v6M20 4l-9 9"}],["path",{d:"M18 14v6H4V6h6"}]],"table-2":[["path",{d:"M3 9h18"}],["path",{d:"M9 3v18"}],["rect",{x:"3",y:"3",width:"18",height:"18"}]],"scroll-text":[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]],"layout-grid":[["rect",{x:"4",y:"4",width:"7",height:"7"}],["rect",{x:"13",y:"4",width:"7",height:"7"}],["rect",{x:"4",y:"13",width:"7",height:"7"}],["rect",{x:"13",y:"13",width:"7",height:"7"}]],globe:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"}]],"arrow-left":[["path",{d:"M20 12H5M11 6l-6 6 6 6"}]],link:[["path",{d:"M9 15l6-6"}],["path",{d:"M11 6l2-2a4.2 4.2 0 0 1 6 6l-2 2M13 18l-2 2a4.2 4.2 0 0 1-6-6l2-2"}]],user:[["circle",{cx:"12",cy:"8",r:"4"}],["path",{d:"M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"}]],"log-out":[["path",{d:"M10 4H4v16h6M9 12h11M16 8l4 4-4 4"}]]};var F=b0(T8(),1),$U="volter.console.token",p8=document.getElementById("root"),p1=p8.dataset.base??"/-/console",Y0=window.location.origin,g8=(p8.dataset.worlds??Y0).replace(/\/+$/,""),rR=(p8.dataset.names??"").split(",").filter((Q)=>Q!==""),f6=p8.dataset.worldOrigin==="1",m8=window.fetch.bind(window),C6="(session)",iR="(pass)",vJ=(Q)=>{try{if(Q&&!f6)sessionStorage.setItem($U,Q);else sessionStorage.removeItem($U);localStorage.removeItem($U)}catch{}},aR="volter.console.portal",sR=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(aR,new URL(Q).origin)}catch{}},by=()=>{return c8.get("token")??""},V2=()=>{try{let Q=sessionStorage.getItem(aR)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},uy=()=>{let Q=by();if(f6){if(vJ(""),c8.get("pass"))return iR;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?"":C6)}if(Q)return vJ(Q),Q;try{return sessionStorage.getItem($U)??""}catch{return""}};function e0(Q){let U=Q.trim();if(/not ready/i.test(U)&&/(never verified|not verified|no approvals)/i.test(U)){let Y=[],B=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),B.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),B.push("approve");return{text:`Not ready to deploy: ${R8(Y)}.`,acts:B}}let Z=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(Z)return{text:`No credential is sealed for ${g1(Z[1])}: seal one in Settings › Vault.`,acts:["vault"]};if(/has no origin/i.test(U))return{text:"This World has no remote: name one in Settings › Remote.",acts:["remote"]};let X=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(X){let Y=X[1].split(/,\s*/).filter(Boolean).map(g1);return{text:`${R8(Y)} ${Y.length===1?"is":"are"} not connected to ${Y.length===1?"its":"their"} real service: Settings › Real services.`,acts:["settings"]}}if(/opening a seal is/i.test(U))return{text:"A key cannot seal a credential: open the World as yourself.",acts:[]};if(/a key manages no keys/i.test(U))return{text:"A key cannot manage keys: open the World as yourself.",acts:[]};if(/^PUT origin:/i.test(U))return{text:"That is not a World's address: https://<host>/<org>/<world>",acts:[]};if(/^clock: \{/i.test(U))return{text:"Pick a date and time.",acts:[]};if(/^advance: \{/i.test(U))return{text:"Advance by a number and a unit: 90m, 12h, 3d.",acts:[]};if(/^branches: \{/i.test(U))return{text:"That branch could not be made: pick now, or an instant before it.",acts:[]};if(/^approve: \{/i.test(U))return{text:"Name who approves.",acts:[]};if(/a browser deploys only what it names/i.test(U))return{text:"A deploy is confirmed by its name: use Deploy again.",acts:[]};if(/^no such door/i.test(U))return{text:"This World does not answer that here.",acts:[]};return{text:U.replace(/\s*[—–-]+\s*(?:run\s+)?`[^`]*`/g,"").replace(/\s*[—–-]+\s*(?:PUT|POST|GET|DELETE)\s+\/-\/\S+(?:\s*\{[^}]*\})?/g,"").replace(/\s*\(\s*`[^`]*`\s*\)/g,"").replace(/`(?:volter|printf|curl|npm|bun)[^`]*`/g,"").replace(/:\s*\{[^}]*\}/g,"").replace(/\(\s*\)/g,"").replace(/\s*;\s*(?=[;.]|$)/g,"").replace(/\s+([,.;:])/g,"$1").trim()||Q,acts:[]}}var E5=async(Q)=>e0(await W3(Q)).text,Ey={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function tR({name:Q,acts:U}){let Z=U.map((X)=>Ey[X]).filter((X)=>Boolean(X));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([X,H])=>F.jsxDEV(Y1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${p1}/${Q}/~/${X}`,onClick:(Y)=>{Y.preventDefault(),z0([...Q.split("/"),"~",...X.split("/")])},children:H},void 0,!1,void 0,this)]},X,!0,void 0,this))},void 0,!1,void 0,this)}async function T0(Q,U,Z={}){return m8(`${Y0}${U}`,{...Z,headers:{...Z.headers??{},...Q===C6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function w0(Q,U,Z=0){let X=vA((H)=>T0(Q,H),U,Z,Q);return X.state==="error"?{...X,error:e0(X.error).text}:X}var W9=(Q)=>{let U=new Date(Q),Z=(X)=>String(X).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},hR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),oR=(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",hy=(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},eX="volter.console.snapshots",w3=()=>{try{return JSON.parse(sessionStorage.getItem(eX)??"{}")}catch{return{}}},nR=new Map,_H=(Q)=>{if(f6){if(Q.token||Q.readToken)nR.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(eX,JSON.stringify({...w3(),[Q.name]:Q}))}catch{}},JH=(Q)=>nR.get(Q)?.readToken||w3()[Q]?.readToken||"",QU=(Q)=>{try{let U=w3();delete U[Q],sessionStorage.setItem(eX,JSON.stringify(U))}catch{}},c8=new URLSearchParams(window.location.hash.slice(1)),z9=c8.get("close")??"";function bJ(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 $H(Q){let U=bJ(Q);if(!U)return null;let Z=new URL(Y0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let X=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!X.test(U.hostname))return null;let H=U.hostname.replace(X,"");return H===Z.hostname||X.test(Z.hostname)&&H===Z.hostname.replace(X,"")?U.origin:null}function xy(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 X=U.parentOrigin===void 0?void 0:$H(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,...X?{parentOrigin:X}:{}}}{let Q=c8.get("snapshot");if(Q){let U=xy(Q);if(U&&!w3()[U.name])_H(U)}}var eR="volter.console.home",_O=(Q)=>{let U=bJ(Q);if(!U)return null;let Z=new URL(Y0).hostname,X=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===X?U.origin:null};{let Q=_O(c8.get("home"));if(Q)try{sessionStorage.setItem(eR,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>c8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var J4=()=>{try{return _O(sessionStorage.getItem(eR))??""}catch{return""}};function QH(Q,U,Z,X){let H=new URLSearchParams({token:U,home:J4()||Y0}),Y=w3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${X??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var nX=p8.dataset.route==="memory"?"":null;function h8(){return(nX??window.location.pathname.slice(p1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var xR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,I3=(Q,U)=>Q&&U&&xR.test(Q)&&xR.test(U)?`${Q}/${U}`:"";function z0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(nX!==null)nX=U;else window.history.pushState(null,"",`${p1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function JO(Q,U){let Z=$H(w3()[Q]?.origin);if(Z&&Z!==Y0){QH(Z,JH(Q),Q,`${p1}/${U.map(encodeURIComponent).join("/")}`);return}z0(U)}async function mR(){let[Q,U]=h8(),Z=I3(Q,U),X=Z?[Z]:rR;if(X.length===0){let H=await m8(`${Y0}/-/ping`).catch(()=>null);X=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}X=X.filter((H)=>{let[Y,B,...W]=H.split("/");return W.length===0&&I3(Y,B)===H});for(let H of X){let Y=await m8(`${Y0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let B=await Y.json().catch(()=>({})),W=bJ(B.origin)?.origin;if(Y.status===409&&W&&W!==Y0)return window.location.replace(`${W}${p1}/${H}`),"moved";if(Y.ok&&B.local)return{token:typeof B.token==="string"&&B.token?B.token:C6}}return null}function my(){let[Q,U]=Y1.useState(dK),Z=(X)=>()=>{try{if(X==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",X)}catch{}Fq(X),U(X)};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Appearance",children:["system","light","dark"].map((X)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===X,onClick:Z(X),children:X==="system"?"System":X==="light"?"Light":"Dark"},X,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gy(){let[Q,U]=Y1.useState(uy()),[Z,X]=Y1.useState(!1),[H,Y]=Y1.useState(!1),[B,W]=Y1.useState(""),[M,R]=Y1.useState(null),[T,A]=Y1.useState(null),[O,w]=Y1.useState(h8());Y1.useEffect(()=>{let p=()=>w(h8());return window.addEventListener("popstate",p),()=>window.removeEventListener("popstate",p)},[]),Y1.useEffect(()=>{let[p,q1]=h8(),s=I3(p,q1),[H1,M1]=s?s.split("/"):[],A1=w3()[z9];if(!z9||!Q||!H1||!M1||!A1?.made||A1.parent!==`${H1}/${M1}`||I3(...z9.split("/"))!==z9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}T0(Q,`/-/${H1}/${M1}/branches/${z9}`,{method:"DELETE"}).catch(()=>null).then(()=>QU(z9))},[Q]);let P=Y1.useCallback(async(p)=>{if(A(null),!p){let M1=await mR();if(M1==="moved")return;if(M1){if(X(!0),M1.token!==C6)vJ(M1.token);U(M1.token);return}R(null),Y(!0);return}if(f6&&p===C6){let M1=await mR();if(M1==="moved")return;if(M1)X(!0)}if(f6&&p===iR){let[M1,A1]=h8(),B1=I3(M1,A1),[U1,O1]=B1?B1.split("/"):[],N1=U1&&O1?await m8(`${Y0}/-/${U1}/${O1}/session`,{method:"POST",headers:{"x-volter-pass":c8.get("pass")??""}}).catch(()=>null):null;if(!N1){A(`${Y0} did not answer: no session was opened`),R(null);return}if(!N1.ok){A(`${await E5(N1)}. Open it again from the platform.`),R(null);return}sR((await N1.json().catch(()=>({}))).issuer),U(C6);return}if(f6&&p!==C6){let[M1,A1]=h8(),B1=I3(M1,A1),[U1,O1]=B1?B1.split("/"):[],N1=U1&&O1?await m8(`${Y0}/-/${U1}/${O1}/session`,{method:"POST",headers:{"x-volter-token":p}}).catch(()=>null):null;if(!N1){A(`${Y0} did not answer: no session was opened`),R(null);return}if(!N1.ok){let W1=await E5(N1);A(N1.status===401||N1.status===403?`That token does not open ${U1}/${O1}.`:N1.status===409?`${U1}/${O1}'s session lives at another origin: ${W1}`:`The World could not open a session (${N1.status}): ${W1}`),R(null);return}U(C6);return}let q1=f6?new Response(null,{status:404}):await T0(p,"/-/worlds");if(q1.ok){let{worlds:M1}=await q1.json();R({kind:"admin",worlds:M1});return}if(q1.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),R(null);return}if(q1.status>=500){let M1=await q1.json().catch(()=>({}));A(`The platform could not list your worlds${M1.error?`: ${M1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),R(null);return}let s=rR;if(s.length===0){let M1=await m8(`${Y0}/-/ping`);if(!M1.ok){A(`${Y0} does not answer as a host`),R(null);return}if(s=(await M1.json()).worlds??[],s.length===0){A(`${Y0} does not list its Worlds: open a World at its own address, ${Y0}${p1}/<org>/<world>`),R(null);return}}let H1=[];for(let M1 of s){let A1=await T0(p,`/-/${M1}/twins`);if(A1.ok){let B1=await A1.json();H1.push({name:M1,base:`${g8}/${M1}`,twins:(B1.twins??[]).map((U1)=>({vendor:U1.twin,protocol:U1.protocol??null,root:U1.root??null}))})}}if(H1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),R(null);return}R({kind:"world",worlds:H1})},[]);Y1.useEffect(()=>{P(Q)},[Q,P]);let V=(p)=>M?.kind==="admin"?M.worlds.find((q1)=>q1.name===p)?.token??Q:Q,[S,f]=Y1.useState("");if(!Q||!M&&!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(e_,{href:`${p1}/`},void 0,!1,void 0,this),Q&&!M&&!T||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(p)=>{p.preventDefault(),vJ(B.trim()),U(B.trim())},className:"stack",children:[F.jsxDEV("h2",{children:"Open a World"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"A World's token opens that World. A host's admin token opens every World it serves."},void 0,!1,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Token"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"token",type:"password",value:B,onChange:(p)=>W(p.target.value),autoFocus:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let D=()=>{if(Z){window.location.reload();return}if(f6){let[p,q1]=h8(),s=I3(p,q1),[H1,M1]=s?s.split("/"):[],A1=()=>window.location.replace(V2()?`${V2()}/`:`${Y0}${p1}/${H1&&M1?`${H1}/${M1}`:""}?signin`);if(setTimeout(A1,2000),H1&&M1)m8(`${Y0}/-/${H1}/${M1}/session/end`,{method:"POST"}).catch(()=>null).then(A1);else A1();return}if(M)for(let p of M.worlds)navigator.sendBeacon(`${p.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${p.name}/session/end`);vJ(""),U(""),W(""),R(null),z0([])};if(T||!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(e_,{href:`${p1}/`},void 0,!1,void 0,this),F.jsxDEV("h2",{children:"Could not open it"},void 0,!1,void 0,this),F.jsxDEV("p",{role:"alert",children:T??"nothing answered"},void 0,!1,void 0,this),V2()?F.jsxDEV("a",{className:"button primary",href:`${V2()}/`,children:["Back to ",new URL(V2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:D,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let[N,y,v,h,u,b,E]=O,m=v==="~",$1=/^[A-Za-z0-9_-]+$/,J1=/^[^\u0000-\u001f\u007f]{1,200}$/,t=m||!v||!$1.test(v)?void 0:v,x=u&&$1.test(u)?b!==void 0&&h!=="changes"&&h!=="screens"?I3(u,b)||void 0:u:void 0,g=h==="changes"&&u==="changesets"&&b&&$1.test(b)?b:h==="screens"&&b&&E&&/^[A-Za-z0-9_.-]+$/.test(b)&&J1.test(E)?`${b}:${E}`:void 0,c=I3(N,y),a=c?w3()[c]??null:null,r=(p)=>JH(p)||V(p),n=a?M.kind==="admin"?M.worlds.find((p)=>p.name===a.parent)?.token??null:M.worlds.some((p)=>p.name===a.parent)?Q:null:null,k=async(p)=>{let q1=$H(p.parentOrigin);if(q1&&q1!==Y0){QU(p.name),window.location.assign(`${q1}${p1}/${p.parent}#close=${encodeURIComponent(p.name)}`);return}if(p.made)await T0(V(p.parent),`/-/${p.parent}/branches/${p.name}`,{method:"DELETE"}).catch(()=>null),QU(p.name);z0(p.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(hA,{},void 0,!1,void 0,this):null,F.jsxDEV(e_,{href:`${J4()&&J4()!==Y0?J4():""}${p1}/`,onClick:(p)=>{if(J4()&&J4()!==Y0)return;p.preventDefault(),z0([])}},void 0,!1,void 0,this),F.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[c?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("span",{children:c.split("/")[0]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${c}`,className:"crumb-world",onClick:(p)=>{p.preventDefault(),z0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t?F.jsxDEV("span",{children:[" / ",t]},void 0,!0,void 0,this):null,m&&h==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),V2()?F.jsxDEV("a",{href:`${V2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(V2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(V2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,c?null:F.jsxDEV("span",{className:"mode",children:Z?"on this machine":S?`signed in as ${S}`:M.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:D,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(ly,{name:c,token:r(c),twin:t,tab:m?h??"overview":"overview",arg:m?x:void 0,...m&&g?{sub:g}:{},admin:a?null:M.kind==="admin"?Q:null,snapshot:a,parentToken:n,who:{local:Z,person:S||null,admin:M.kind==="admin"},onSignOut:D,onReturn:k,opens:(p)=>!!w3()[p]||M.kind==="admin"&&M.worlds.some((q1)=>q1.name===p),onRemoved:()=>{P(Q),z0([])},onWho:f,worlds:M.worlds.map((p)=>p.name)},c,!1,void 0,this):F.jsxDEV(py,{mode:M,admin:M.kind==="admin"?Q:null,reload:()=>P(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function py({mode:Q,admin:U,reload:Z}){let[X,H]=Y1.useState(""),[Y,B]=Y1.useState(""),[W,M]=Y1.useState(""),[R,T]=Y1.useState(null),A=async(u)=>{if(!await D4({title:`Rotate the tokens of ${u}?`,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 b=await T0(U,`/-/worlds/${u}/rotate`,{method:"POST"}),E=await b.json().catch(()=>({}));T(b.ok?`rotated ${u}: the new tokens are shown once — token ${E.token} · read token ${E.readToken}`:E.error?e0(E.error).text:`answered ${b.status}`),await Z()},O=async(u)=>{let b=await T0(U,`/-/worlds/${u}`,{method:"DELETE"}),E=await b.json().catch(()=>({}));T(b.ok?`removed ${u}`:E.error?e0(E.error).text:`answered ${b.status}`),await Z()},[w,P]=Y1.useState(!1),[V,S]=Y1.useState(!1),[f,D]=Y1.useState(""),N=async(u)=>{u.preventDefault(),T(null),P(!0);try{let b=await T0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:X,world:Y,vendors:W.split(",").map((m)=>m.trim()).filter(Boolean)})}),E=await b.json();if(!b.ok){T(E.error?e0(E.error).text:`the host answered ${b.status}`);return}T(`provisioned ${E.name}`),B(""),M(""),S(!1),await Z()}finally{P(!1)}},y=f.trim().toLowerCase(),v=Q.worlds.filter((u)=>!y||u.name.toLowerCase().includes(y)||u.twins.some((b)=>b.vendor.includes(y))),h=[...new Set(v.map((u)=>u.name.split("/")[0]))];return F.jsxDEV("section",{className:"home-window","aria-labelledby":"worlds",children:[F.jsxDEV("div",{className:"home-head",children:[F.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[d0(Q.worlds.length,"World")," ",U?"this host serves":"this key opens"]},void 0,!0,void 0,this),U?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{T(null),S(!0)},children:[F.jsxDEV(U0,{name:"plus",size:16},void 0,!1,void 0,this),"New World"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"home-find",children:F.jsxDEV("input",{type:"search",placeholder:"Filter by World or vendor","aria-label":"Filter Worlds",value:f,onChange:(u)=>D(u.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),R&&!V?F.jsxDEV("p",{role:"status",className:"home-note",children:R},void 0,!1,void 0,this):null,h.map((u)=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:u},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:v.filter((b)=>b.name.split("/")[0]===u).map((b)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${p1}/${b.name}`,onClick:(E)=>{E.preventDefault(),z0(b.name.split("/"))},children:[F.jsxDEV(U0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:b.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:b.base},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"home-vendors",children:b.twins.map((E)=>F.jsxDEV("span",{title:g1(E.vendor),children:F.jsxDEV(q2,{vendor:E.vendor},void 0,!1,void 0,this)},E.vendor,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?F.jsxDEV("details",{className:"menu home-more",children:[F.jsxDEV("summary",{"aria-label":`More for ${b.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(E)=>{E.currentTarget.closest("details")?.removeAttribute("open"),A(b.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(E)=>{E.currentTarget.closest("details")?.removeAttribute("open"),D4({title:`Remove ${b.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:b.name}).then((m)=>{if(m)O(b.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},b.name,!0,void 0,this))},void 0,!1,void 0,this)]},u,!0,void 0,this)),v.length===0?F.jsxDEV("p",{className:"mode home-note",children:y?`No World matches ${f}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(T5,{open:V,onClose:()=>{if(!w)S(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>S(!1),disabled:w,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:w,children:w?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:N,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:X,onChange:(u)=>H(u.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"world",value:Y,onChange:(u)=>B(u.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Vendors"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"vendors",value:W,onChange:(u)=>M(u.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"status",children:R},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)}var cy=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],$O=(Q,U)=>{let Z=U?.screens?.find((X)=>X.path.replace(/\/+$/,"")==="")??U?.screens?.find((X)=>!/[{<]/.test(X.path));return U&&Z?`${g8}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},gR={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 $4(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),X=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${X.charAt(0).toUpperCase()}${X.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),B=U.replace(/[._]+/g," ").trim(),W=Y?`${H} seeded`:gR[Z]?`${H} ${gR[Z]}`:`${B.charAt(0).toUpperCase()}${B.slice(1)}`,M=Q.fields??{},R=["title","name","email","text","subject","summary","description"].map((A)=>M[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,T=R===null?null:R.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,O,w)=>`${O==="!"?"@":O}${w}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:W,label:T===null?null:T.length>80?`${T.slice(0,79)}…`:T}}var S6=(Q)=>/token|password|secret|key|credential/i.test(Q.subject.type)&&Q.subject.id.length>6?`••••${Q.subject.id.slice(-4)}`:Q.subject.id;function ly({name:Q,token:U,twin:Z,tab:X,arg:H,sub:Y,admin:B,snapshot:W,parentToken:M,who:R,onSignOut:T,onReturn:A,opens:O,onRemoved:w,onWho:P,worlds:V=[]}){let[S,f]=Y1.useState("pending"),[D,N]=Y1.useState(null),[y,v]=Y1.useState(0),[h,u]=Y1.useState(null);Y1.useEffect(()=>{let B1=!0;return N(null),T0(U,`/-/${Q}/session`,{method:"POST"}).then(async(U1)=>{let O1=await U1.json().catch(()=>({}));if(sR(O1.issuer),O1.who)P?.(O1.who);u(typeof O1.signsAs==="string"?O1.signsAs:null);let N1=bJ(O1.origin)?.origin;if(U1.status===409&&N1&&N1!==Y0){QH(N1,U,Q);return}if(!B1)return;if(f(!U1.ok?"unknown":O1.scope==="read"?"read":O1.scope==="write"?"write":"unknown"),!U1.ok)N(O1.error?e0(O1.error).text:`answered ${U1.status}`)}).catch((U1)=>{if(B1)f("unknown"),N(`the World did not answer: ${U1 instanceof Error?U1.message:String(U1)}`)}),()=>{B1=!1}},[Q,U,y]);let b=D?{state:"error",error:D}:S==="pending"?{state:"pending"}:{state:"ok",scope:S},E=S==="write",m=(B1)=>{if(B1.status!==403)return;B1.clone().json().then((U1)=>{if(/read token|opens only reads|write access|reads only/i.test(U1?.error??""))f("read")},()=>null)},[$1,J1]=Y1.useState(0);Y1.useEffect(()=>{let B1=setInterval(()=>{if(!document.hidden)J1((U1)=>U1+1)},5000);return()=>clearInterval(B1)},[]);let[t,x]=Y1.useState(0),g=w0(U,`/-/${Q}/clock`,$1+t),c=w0(U,`/-/${Q}/twins`),a=w0(U,`/-/${Q}/branches`,t),r=w0(U,`/-/${Q}/map`,Math.floor($1/2)),n=!(a.state==="error"&&(a.status===404||a.status===405)),k=cy.includes(X)?X:"overview",p=c.state==="ok"?c.data.twins.map((B1)=>B1.twin):[];if(Z&&c.state==="ok"&&!p.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(s7,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${p1}/${Q}`,onClick:(B1)=>{B1.preventDefault(),z0(Q.split("/"))},children:["Open ",Q]},void 0,!0,void 0,this),children:F.jsxDEV("p",{children:["No vendor of this World is called ",Z,". Its changesets are under Changes › History."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);let q1=k==="vendors"&&H?H:void 0,s=()=>{f("pending"),v((B1)=>B1+1)};if(k==="canvas"||k==="vendors"&&!q1||X==="screens"&&!H)return F.jsxDEV(WV,{name:Q,token:U,twins:c,session:b,retry:s,snapshot:W,back:()=>z0(Q.split("/"))},void 0,!1,void 0,this);let M1=X==="settings"?{kind:"settings",tab:((B1)=>QO.find(([U1])=>U1===B1)?.[0]??"account")(H)}:X==="remote"?{kind:"settings",tab:"remote"}:X==="vault"?{kind:"settings",tab:"vault"}:X==="branches"?{kind:"branches",...H?{open:H}:{}}:null,A1=Z?"vendor":X==="screens"&&H?"screen":k==="vendors"&&q1?"vendor":X==="trace"?"trace":X==="events"?"events":X==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(_V,{name:Q,token:U,view:A1,win:M1,who:R,snapshot:W,onReturn:A,onSignOut:T,worlds:V,session:b,retry:s,...A1==="vendor"?{arg:Z??q1}:A1==="events"||A1==="trace"||A1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:r,branches:n?a:null,clock:g,canWrite:E&&!W,refused:m,signsAs:h,opens:O,tick:$1,admin:B,onRemoved:w,onClock:()=>x((B1)=>B1+1),scope:W?"read":S},void 0,!1,void 0,this)}function U0({name:Q,size:U=20}){return F.jsxDEV("svg",{className:"icon",viewBox:"0 0 24 24",width:U,height:U,fill:"none",stroke:"currentColor",strokeWidth:U<=16?1.75:1.5,strokeLinecap:"square",strokeLinejoin:"miter","aria-hidden":"true",children:(ER[Q]??[]).map(([Z,X],H)=>Y1.default.createElement(Z,{key:H,...X}))},void 0,!1,void 0,this)}function ZU(Q){let U=(Z)=>{let X=(Z.operation??Z.op).toLowerCase();return X.includes(".")?X.slice(X.lastIndexOf(".")+1):X};if(Q.some((Z)=>/^(delete|remove|archive|revoke)/.test(U(Z))||Z.fields?.deleted===!0))return{icon:"square-minus",word:"removed",tone:"removed"};if(/^(create|add|insert|issue|send|post|upload|invite|record|seed)/.test(U(Q[0])))return{icon:"square-plus",word:"made",tone:"added"};return{icon:"square-dot",word:"changed",tone:"changed"}}var QO=[["account","Account","user"],["changesets","Changesets","git-commit-horizontal"],["remote","Remote","cloud"],["access","Access","key-round"],["services","Real services","plug"],["vault","Vault","vault"],["checks","Checks","list-checks"],["clock","Clock","clock"],["appearance","Appearance","palette"]],dy=(Q,U)=>{let Z=U.split("/").pop()??U,X=Q.split("/").pop()??"";return Z.startsWith(`${X}-`)?Z.slice(X.length+1):Z},x8=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function qO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],X=$4(Z),H=ZU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),B=Q.writes[0].occurredAt,W={};if(U){for(let A of U)if(!Y.has(A.id)&&!A.landsId&&!A.aliasOf&&A.subject.type===Z.subject.type&&A.subject.id===Z.subject.id&&A.occurredAt<=B)Object.assign(W,A.fields??{})}let M={...W};for(let A of Q.writes)Object.assign(M,A.fields??{});let R=H.tone==="added"&&Object.keys(W).length===0,T=[...new Set([...Object.keys(W),...Object.keys(M)])].filter((A)=>!WO(W[A],M[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${X.label??S6(Z)}: its changes`,children:[F.jsxDEV("div",{className:"ws-diff-head",children:[F.jsxDEV("span",{className:`ws-kind ${H.tone}`,title:H.word,children:F.jsxDEV(U0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(q2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:X.label??S6(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[g1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:S6(Z)},void 0,!1,void 0,this)," · ",H.word," here"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ol",{className:"ws-writes",children:Q.writes.map((A)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:$4(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(M0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",DJ(A)]},void 0,!0,void 0,this)]},A.id,!0,void 0,this))},void 0,!1,void 0,this),U===null?F.jsxDEV("p",{className:"mode pad",children:"Reading its history…"},void 0,!1,void 0,this):T.length===0?F.jsxDEV("p",{className:"mode pad",children:"No field holds a new value."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"ws-fields","aria-label":"Fields before and after",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Field"},void 0,!1,void 0,this),R?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:H.tone==="removed"?"After":"Now"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:T.map((A)=>F.jsxDEV("tr",{children:[F.jsxDEV("th",{scope:"row",children:F.jsxDEV("code",{children:A},void 0,!1,void 0,this)},void 0,!1,void 0,this),R?null:F.jsxDEV("td",{className:A in W?"was":"none",children:A in W?F.jsxDEV(P3,{v:W[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:A in M?"now":"none",children:A in M?F.jsxDEV(P3,{v:M[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},A,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function UO({records:Q,selected:U,onPick:Z,label:X}){let[H,Y]=Y1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),B=(R)=>{Y(R);try{localStorage.setItem("volter.console.records",R?"tree":"path")}catch{}},W=(R,T)=>{let A=R.writes[R.writes.length-1],O=$4(A),w=ZU(R.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===R.key?"on":"",T?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===R.key,onClick:()=>Z(R.key),children:[T?null:F.jsxDEV(q2,{vendor:R.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:O.label??S6(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[x8(A.subject.type)," · ",O.what.split(" ").slice(-1)[0],R.writes.length>1?` · ${d0(R.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${w.tone}`,title:w.word,"aria-label":w.word,children:F.jsxDEV(U0,{name:w.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R.key,!1,void 0,this)},M=[...new Set(Q.map((R)=>R.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>B(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>B(!0),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"ws-list","aria-label":X,children:H?M.map((R)=>{let T=Q.filter((A)=>A.twin===R);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV(q2,{vendor:R},void 0,!1,void 0,this),F.jsxDEV("b",{children:g1(R)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:T.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:T.map((A)=>W(A,!0))},void 0,!1,void 0,this)]},R,!0,void 0,this)}):Q.map((R)=>W(R,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ry({name:Q,token:U,branches:Z,opens:X,refused:H,onChanged:Y}){let[B,W]=Y1.useState(""),[M,R]=Y1.useState(!1),T=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:T,running:!0}],O=Z?.state==="ok"?Z.data.branches:[],w=B.trim().toLowerCase(),P=(S)=>!w||S.toLowerCase().includes(w),V=(S)=>{S.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"The branch served here",children:[F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("b",{children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(U0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover ws-branch-menu",children:[F.jsxDEV("div",{className:"ws-branch-find",children:[F.jsxDEV("input",{type:"search",placeholder:"Filter","aria-label":"Filter branches",value:B,onChange:(S)=>W(S.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(S)=>{V(S),R(!0)},disabled:!Z,children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"This World"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-branch-list",children:A.filter((S)=>P(S.name)).map((S)=>F.jsxDEV("li",{className:S.name===T?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:S.name===T?F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:S.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.name===T?"served here":S.running?"running":"stopped"},void 0,!1,void 0,this)]},S.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),O.length===0?F.jsxDEV("p",{className:"mode ws-branch-none",children:"None yet. New branch makes one, from now or as the World was."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"ws-branch-list",children:O.filter((S)=>P(S.name)).map((S)=>{let f=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:dy(Q,S.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(M0,{iso:S.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D=S.expiresAt?`Goes away ${new Date(S.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:X(S.name)?F.jsxDEV("a",{href:`${p1}/${S.name}`,title:D,onClick:(N)=>{N.preventDefault(),V(N),JO(S.name,S.name.split("/"))},children:f},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${D}. Its tokens went to whoever made it; it opens from their page.`,children:f},void 0,!1,void 0,this)},S.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${p1}/${Q}/~/branches`,onClick:(S)=>{S.preventDefault(),V(S),z0([...Q.split("/"),"~","branches"])},children:"Manage branches…"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(KO,{name:Q,token:U,open:M,onClose:()=>R(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function GO({name:Q,view:U,changes:Z,changesets:X}){let H=(Y)=>(B)=>{B.preventDefault(),z0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${p1}/${Q}/~/changes`,className:U==="changes"?"on":void 0,"aria-current":U==="changes"?"page":void 0,onClick:H(["changes"]),children:["Changes",Z?F.jsxDEV("span",{className:"count",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",X?F.jsxDEV("span",{className:"count",children:X},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function iy({name:Q,token:U,sets:Z,sub:X,signsAs:H,canWrite:Y,rooted:B,refused:W,onChanged:M,changes:R,withScreens:T,required:A}){let[O,w]=Y1.useState(null),[P,V]=Y1.useState(!1),S=Z.state==="ok"?[...Z.data.changesets].sort((b,E)=>E.createdAt.localeCompare(b.createdAt)):[],f=S.find((b)=>b.name===X)??S[0],D=Y1.useMemo(()=>{let b=new Map;for(let E of f?zO(f):[]){let m=`${E.twin}:${E.entry.subject.type}:${E.entry.subject.id}`,$1=b.get(m)??{key:m,twin:E.twin,writes:[]};$1.writes.push(E.entry),b.set(m,$1)}return[...b.values()]},[f]),N=D.find((b)=>b.key===O)??D[0],y=w0(U,N?`/-/${Q}/log/${N.twin}`:null),v={added:0,removed:0,changed:0};for(let b of D)v[ZU(b.writes).tone]=(v[ZU(b.writes).tone]??0)+1;let h=f?KU(f):null,u=f?BO(f,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(GO,{name:Q,view:"history",changes:R,changesets:S.length},void 0,!1,void 0,this),F.jsxDEV(S2,{load:Z,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:S.map((b)=>{let E=f?.name===b.name,m=KU(b).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${p1}/${Q}/~/changes/changesets/${b.name}`,className:E?"on":void 0,"aria-current":E?"true":void 0,onClick:($1)=>{$1.preventDefault(),w(null),z0([...Q.split("/"),"~","changes","changesets",b.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:oX(b)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[b.owner??(b.cutBy?qU(b.cutBy):"unrecorded")," • ",F.jsxDEV(M0,{iso:b.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(U0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},b.name,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-pane-right",children:[Z.state==="ok"&&!f?F.jsxDEV(s7,{title:"No changesets yet",children:F.jsxDEV("p",{children:"Cut one from Changes: the cut box is at its foot."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,f&&h&&u?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-commit-head",children:[F.jsxDEV("div",{className:"ws-commit-title",children:[F.jsxDEV("h3",{children:oX(f)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(U0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",d0(D.length,"changed record"),v.added?F.jsxDEV("span",{className:"plus",children:[" +",v.added]},void 0,!0,void 0,this):null,v.removed?F.jsxDEV("span",{className:"minus",children:[" −",v.removed]},void 0,!0,void 0,this):null,v.changed?F.jsxDEV("span",{className:"dot",children:[" •",v.changed]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode ws-commit-meta",children:[F.jsxDEV("code",{children:f.name},void 0,!1,void 0,this)," · ",F.jsxDEV(M0,{iso:f.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",f.owner??(f.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(f.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",f.cutBy?f.pushedBy&&f.applied===null&&f.cutBy==="machine"?"the machine it was cut on":qU(f.cutBy):"unrecorded"],...f.pushedBy?[["Pushed by",qU(f.pushedBy)]]:[]].map(([b,E])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:b},void 0,!1,void 0,this)," ",E]},b,!0,void 0,this))},void 0,!1,void 0,this),f.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:f.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),title:"Where it went, the checks, the approvals; Verify, Approve and Deploy",children:[F.jsxDEV("span",{className:`badge cs-${h.tone}`,children:h.label},void 0,!1,void 0,this),F.jsxDEV("span",{className:`badge cs-${u.tone}`,children:u.label},void 0,!1,void 0,this),"Review…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-two inner",children:[F.jsxDEV("div",{className:"ws-files",children:F.jsxDEV(UO,{records:D,...N?{selected:N.key}:{},onPick:w,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:N?F.jsxDEV(qO,{record:N,history:y.state==="ok"?y.data.entries:y.state==="error"?[]:null},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"It changes nothing."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(T5,{open:P,onClose:()=>V(!1),title:`Review: ${oX(f)}`,wide:!0,children:[F.jsxDEV(dR,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:B,refused:W,onChanged:M,part:"head",required:A},`h:${f.name}`,!1,void 0,this),F.jsxDEV(dR,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:B,refused:W,onChanged:M,part:"review",required:A},`r:${f.name}`,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ay({name:Q,token:U,vendors:Z,vendor:X,tick:H}){let[Y,B]=Y1.useState(pR*4),[W,M]=Y1.useState(""),[R,T]=Y1.useState(null),A=w0(U,`/-/${Q}/timeline?limit=${Y}${X?`&twin=${encodeURIComponent(X)}`:""}`,Math.floor(H/2)),O=A.state==="ok"?YV(A.data.entries):[],w=[...new Set(O.map((v)=>$4(v.entry).what))].sort(),P=O.filter((v)=>!W||$4(v.entry).what===W),V=P.find((v)=>B9(v)===R)??P[0],S=(v)=>(h)=>{h.preventDefault(),T(null),z0([...Q.split("/"),"~","events",...v?[v]:[]])},f=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,D=V?hy(V.entry.traceparent):null,N=V?cR(V):null,y=V?KV(V.entry):[];return F.jsxDEV("div",{className:"ws-events",children:[F.jsxDEV("div",{className:"ws-filterbar",children:[F.jsxDEV("nav",{className:"ws-seg","aria-label":"Vendor",children:[F.jsxDEV("a",{href:`${p1}/${Q}/~/events`,className:!X?"on":void 0,"aria-current":!X?"page":void 0,onClick:S(),children:"All"},void 0,!1,void 0,this),Z.map((v)=>F.jsxDEV("a",{href:`${p1}/${Q}/~/events/${v}`,className:X===v?"on":void 0,"aria-current":X===v?"page":void 0,onClick:S(v),children:[F.jsxDEV(q2,{vendor:v},void 0,!1,void 0,this),g1(v)]},v,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:W,onChange:(v)=>{M(v.target.value),T(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),w.map((v)=>F.jsxDEV("option",{value:v,children:v},v,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[F.jsxDEV(S2,{load:A,what:"the events",lines:6},void 0,!1,void 0,this),F.jsxDEV("table",{className:"ws-grid","aria-label":"Events",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Time"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"What"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Record"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"By"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Receipt"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:P.map((v)=>{let h=$4(v.entry),u=cR(v),b=V&&B9(v)===B9(V);return F.jsxDEV("tr",{className:b?"on":void 0,"aria-selected":b,onClick:()=>T(B9(v)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(M0,{iso:v.entry.occurredAt,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:v.twin},void 0,!1,void 0,this),g1(v.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:h.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:h.label?`“${h.label}”`:F.jsxDEV("code",{children:S6(v.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:DJ(v.entry,v.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u?F.jsxDEV("span",{className:u.bad?"badge cs-bad":u.status==="deployed"?"badge cs-done":"badge",children:u.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:oR(v.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},B9(v),!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-detail",children:V?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-event-line",children:[F.jsxDEV("span",{className:"badge",children:XO(V.entry)},void 0,!1,void 0,this),N?F.jsxDEV("span",{className:N.bad?"badge cs-bad":"badge cs-good",children:N.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[V.entry.subject.type,":",S6(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(M0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",DJ(V.entry,V.caller)]},void 0,!0,void 0,this),D?F.jsxDEV("a",{href:`${p1}/${Q}/~/trace/${D.trace}`,onClick:(v)=>{v.preventDefault(),z0([...Q.split("/"),"~","trace",D.trace])},children:"Its trace →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-panes",children:[F.jsxDEV("div",{role:"region","aria-label":"The request",children:[F.jsxDEV("h4",{children:"Request"},void 0,!1,void 0,this),f!==void 0?F.jsxDEV(XV,{body:f},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"No request body: the World or the vendor wrote it."},void 0,!1,void 0,this),y.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:y.map(([v,h])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},v,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{role:"region","aria-label":"What it wrote",children:[F.jsxDEV("h4",{children:"Written"},void 0,!1,void 0,this),F.jsxDEV(YO,{fields:V.entry.fields},void 0,!1,void 0,this),F.jsxDEV("h4",{children:V.copies.length?"Receipts":"Receipt"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:V.copies.length?V.copies.map((v)=>v.entry.receipt?.status??"landed copy").join(" · "):HV(V.entry)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"Nothing written here yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:[F.jsxDEV("span",{children:[V?`${P.indexOf(V)+1} of ${P.length}`:P.length," events",X?` at ${g1(X)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>B((v)=>v+pR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sy({name:Q,token:U,id:Z}){let X=/^[0-9a-f]{32}$/.test(Z),H=w0(U,X?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,O)=>-FO(A,O)):[],[B,W]=Y1.useState(null),M=Y[0]?Date.parse(Y[0].entry.occurredAt):0,R=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-M):1,T=[...new Set(Y.map((A)=>A.twin))];return F.jsxDEV("div",{className:"ws-sheet ws-trace",children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${p1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),z0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(U0,{name:"arrow-left",size:16},void 0,!1,void 0,this)," Events"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("h2",{children:[Y[0]?`${$4(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:Z.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!X?F.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):F.jsxDEV(S2,{load:H,what:"the trace"},void 0,!1,void 0,this),Y.length?F.jsxDEV("p",{className:"ws-trace-meta",children:["Started ",F.jsxDEV("b",{children:F.jsxDEV(M0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[R," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:T.map(g1).join(", ")},void 0,!1,void 0,this)," · Writes ",F.jsxDEV("b",{children:Y.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.state==="ok"&&Y.length===0?F.jsxDEV(s7,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(R/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let O=Date.parse(A.entry.occurredAt)-M,w=B9(A),P=$4(A.entry);return F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("div",{className:B===w?"ws-span on":"ws-span",role:"row",onClick:()=>W(B===w?null:w),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(q2,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:g1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[P.what,P.label?` “${P.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${O/R*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${O/R*100}%`},children:["+",O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B===w?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:XO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",S6(A.entry)]},void 0,!0,void 0,this)," · ",DJ(A.entry,A.caller)," · ",oR(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(YO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},w,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function ty({name:Q,token:U,vendor:Z,withScreens:X,tick:H}){let Y=w0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),B=Y.state==="ok"?Y.data.tree.filter((y)=>y.deleted!==!0):[],W=[...new Set(B.map((y)=>y.type))].map((y)=>({type:y,count:B.filter((v)=>v.type===y).length})).sort((y,v)=>Number(y.type.startsWith("_"))-Number(v.type.startsWith("_"))||x8(y.type).localeCompare(x8(v.type))),[M,R]=Y1.useState(null),[T,A]=Y1.useState(null),O=W.some((y)=>y.type===M)?M:W[0]?.type,w=B.filter((y)=>y.type===O),P=w.find((y)=>y.id===T)??w[0],V=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],S=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),f=(y)=>!S.has(y)&&w.some((v)=>v[y]!==void 0&&v[y]!==null&&typeof v[y]!=="object"),D=[...new Set(w.flatMap((y)=>Object.keys(y)))],N=[...V.filter(f),...D.filter((y)=>!V.includes(y)&&f(y))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${g1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:Z},void 0,!1,void 0,this),g1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(S2,{load:Y,what:"what it stores",lines:4},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Stores"},void 0,!1,void 0,this),W.map((y)=>F.jsxDEV("a",{href:`#${y.type}`,className:O===y.type?"on":void 0,"aria-current":O===y.type?"true":void 0,onClick:(v)=>{v.preventDefault(),R(y.type),A(null)},children:[F.jsxDEV(U0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:x8(y.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:y.count},void 0,!1,void 0,this)]},y.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/~/events/${Z}`,onClick:(y)=>{y.preventDefault(),z0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(U0,{name:"activity",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X?F.jsxDEV("a",{href:`${p1}/${Q}/~/screens/${Z}`,onClick:(y)=>{y.preventDefault(),z0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(U0,{name:"monitor",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[Y.state==="ok"&&W.length===0?F.jsxDEV(s7,{title:`${g1(Z)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,w.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${x8(O??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),N.map((y)=>F.jsxDEV("th",{children:y},y,!1,void 0,this)),F.jsxDEV("th",{children:"updated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:w.map((y)=>F.jsxDEV("tr",{className:P?.id===y.id?"on":void 0,"aria-selected":P?.id===y.id,onClick:()=>A(y.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:y.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.map((v)=>F.jsxDEV("td",{className:"ws-cell-clip",children:y[v]===void 0||y[v]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(y[v])},v,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof y.updatedAt==="string"?F.jsxDEV(M0,{iso:y.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},y.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("aside",{className:"ws-record","aria-label":"The selected record",children:P?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:x8(P.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:P.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(P).filter(([y])=>y!=="type"&&y!=="id").map(([y,v])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:y},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(P3,{v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},y,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:P?`${w.indexOf(P)+1} of ${d0(w.length,x8(O??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oy({name:Q,vendor:U,url:Z,mapError:X,holding:H,session:Y,retry:B}){return F.jsxDEV("div",{className:"ws-screen",children:[F.jsxDEV("div",{className:"ws-screen-bar",children:[F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:g1(U)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:H},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/~/vendors/${U}`,onClick:(W)=>{W.preventDefault(),z0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(U0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),Z?F.jsxDEV("a",{href:Z,target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV(U0,{name:"external-link",size:16},void 0,!1,void 0,this),"New tab"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Y.state==="ok"&&Y.scope==="read"?F.jsxDEV("p",{className:"mode ws-screens-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,X?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not say where its screens are: ",X]},void 0,!0,void 0,this):Y.state==="pending"||Z===void 0?F.jsxDEV("p",{className:"mode ws-screens-note",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Y.state==="error"?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not open its screens: ",Y.error," ",F.jsxDEV("button",{type:"button",onClick:B,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z===null?F.jsxDEV("p",{className:"mode ws-screens-note",children:[g1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${g1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function ny({name:Q,token:U,who:Z,scope:X}){let[H,Y]=Y1.useState(0),B=w0(U,`/-/${Q}/twins`),W=w0(U,`/-/${Q}/rules`,H),M=W.state==="ok"?W.data.changesets:null,[R,T]=Y1.useState(null),[A,O]=Y1.useState(null),[w,P]=Y1.useState(!1),[V,S]=Y1.useState([]),f=R??M?.approvals??1,D=A??M?.summary??"required",N=M!==null&&(f!==(M.approvals??1)||D!==(M.summary??"required")),y=(m,$1)=>{if(S((J1)=>[{ok:m,text:$1,at:new Date().toISOString(),n:++uJ},...J1].slice(0,3)),!m)Q2($1,"error")},v=async(m)=>{m.preventDefault(),P(!0);try{let $1=await T0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:f,summary:D}})});if(!$1.ok){y(!1,`Save: ${await E5($1)}`);return}y(!0,`Saved: ${f===0?"no approval":d0(f,"approval")} before a deploy; a summary ${D==="required"?"required":"generated when none is given"}.`),T(null),O(null),Y((J1)=>J1+1)}finally{P(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},u=Z.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:Z.person},void 0,!1,void 0,this),Z.local?", signed in on this machine":""]},void 0,!0,void 0,this):Z.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this machine"},void 0,!1,void 0,this),": no one is signed in here, so no person owns them until they are pushed by one"]},void 0,!0,void 0,this):Z.admin?F.jsxDEV(F.Fragment,{children:F.jsxDEV("b",{children:"the host's admin"},void 0,!1,void 0,this)},void 0,!1,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this token"},void 0,!1,void 0,this),", a service"]},void 0,!0,void 0,this),b=B.state==="ok"?B.data.twins.filter((m)=>m.root?.url):[],E=X!=="write"?"This session reads the World; it changes no rules":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Changesets"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"This World's rules, kept with it and shared by everyone who works in it. A person or the World's token changes them; a key never does, so an agent cannot relax the review its own changes go through."},void 0,!1,void 0,this),F.jsxDEV(S2,{load:W,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(m)=>void v(m),"aria-label":"Changeset rules",children:[F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Recorded as"},void 0,!1,void 0,this),F.jsxDEV("p",{children:["What you cut here is recorded as ",u,". An agent's or an app's key cuts as itself, for the person it was made for; a World's token cuts as a service."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"A cut's summary"},void 0,!1,void 0,this),F.jsxDEV("fieldset",{className:"choice",disabled:Boolean(E)||M===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="required",onChange:()=>O("required")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Required: whoever cuts says what it does and why"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="generated",onChange:()=>O("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this),"Verified: replayed in a throwaway World, the World's checks passing"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("label",{className:"ws-rule-row",children:[F.jsxDEV("span",{children:"Approved by"},void 0,!1,void 0,this),F.jsxDEV("select",{value:f,onChange:(m)=>T(Number(m.target.value)),disabled:Boolean(E)||M===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((m)=>F.jsxDEV("option",{value:m,children:m===0?"no one: verified is enough":m===1?"1 person":`${m} different people`},m,!1,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"for its contents as they stand"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Deploys to"},void 0,!1,void 0,this),B.state==="ok"&&b.length===0?F.jsxDEV("p",{className:"mode",children:"No vendor here is connected to its real service, so nothing deploys from this World."},void 0,!1,void 0,this):null,b.length?F.jsxDEV("ul",{className:"ws-rule-list",children:b.map((m)=>F.jsxDEV("li",{children:[F.jsxDEV(q2,{vendor:m.twin},void 0,!1,void 0,this),g1(m.twin),": ",h[m.root.deploy??"gated"]??"gated"]},m.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${p1}/${Q}/~/settings/services`,onClick:(m)=>{m.preventDefault(),z0([...Q.split("/"),"~","settings","services"])},children:"Real services"},void 0,!1,void 0,this)," sets each vendor's deploy policy."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(j6,{log:V,name:Q},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(E)||w||!N,title:E??void 0,children:w?"Saving…":"Save"},void 0,!1,void 0,this),N?F.jsxDEV("button",{type:"button",onClick:()=>{T(null),O(null)},children:"Cancel"},void 0,!1,void 0,this):null,E?F.jsxDEV("span",{className:"mode",children:[E,"."]},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)}function ey({who:Q,scope:U,snapshot:Z,portal:X,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[B,W]=Z?["A snapshot",`of ${Z.parent}, read only`]:Q.local&&Q.person?[Q.person,"Signed in on this machine: this World is served here, and acts as you"]:Q.local?["This machine","Served here, with no one signed in: what you do is recorded as this machine"]:Q.person?[Q.person,X?`Signed in through ${new URL(X).host}`:"Signed in"]:Q.admin?["The host's admin","Opened with the host admin token: every World it serves"]:["A link or key","Opened with a token for this World"];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Account"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-account",children:[F.jsxDEV("span",{className:"ws-account-face","aria-hidden":"true",children:F.jsxDEV(U0,{name:Q.person?"user":Q.local?"monitor":Z?"clock":"key-round",size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:B},void 0,!1,void 0,this),F.jsxDEV("small",{children:W},void 0,!1,void 0,this),F.jsxDEV("small",{children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.local||Z?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV(U0,{name:"log-out",size:16},void 0,!1,void 0,this),Q.person?"Sign out":Q.admin?"Sign out of the host":"Use another token"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${X}/`,children:new URL(X).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function _V({name:Q,token:U,view:Z,sub:X,arg:H,win:Y,who:B,snapshot:W,onReturn:M,onSignOut:R,worlds:T,session:A,retry:O,twins:w,map:P,branches:V,clock:S,canWrite:f,refused:D,signsAs:N,opens:y,tick:v,admin:h,onRemoved:u,onClock:b,scope:E}){let m=LO(Q,U,v,D),[$1,J1]=Y1.useState(0),t=$1*1e5+Math.floor(v/2),x=w0(U,`/-/${Q}/diff`,t),g=w0(U,`/-/${Q}/changesets`,t),c=w0(U,`/-/${Q}/rules`,t),[a,r]=Y1.useState(null),n=(L1)=>(i1)=>{i1?.preventDefault(),z0([...Q.split("/"),"~",...L1])},k=w.state==="ok"?w.data.twins.map((L1)=>L1.twin):[],p=new Map((P.state==="ok"?P.data.twins:[]).flatMap((L1)=>{let i1=$O(Q,L1);return i1?[[L1.twin,i1]]:[]})),q1=[...p.keys()],s=P.state==="ok"?P.data.twins.filter((L1)=>L1.root).map((L1)=>L1.twin):[],H1=(L1)=>P.state==="ok"?(P.data.twins.find((i1)=>i1.twin===L1)?.resources??[]).reduce((i1,j1)=>i1+j1.count,0):0,M1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],A1=Y1.useMemo(()=>{if(x.state!=="ok")return[];let L1=new Map;for(let i1 of x.data.changes){let j1=`${i1.twin}:${i1.entry.subject.type}:${i1.entry.subject.id}`,x0=L1.get(j1)??{key:j1,twin:i1.twin,writes:[]};x0.writes.push(i1.entry),L1.set(j1,x0)}return[...L1.values()]},[x]),B1=A1.find((L1)=>L1.key===a)??A1[0],U1=w0(U,Z==="changes"&&B1?`/-/${Q}/log/${B1.twin}`:null,t),O1=x.state==="ok"?x.data.changes.length:0,N1=m.waiting.length,W1=m.there,S1=m.origin.state==="ok"?m.origin.data.origin:null,k1=!f?"This session reads the World; it changes nothing":!W1?"No remote: name one in Settings › Remote":null,h1=(L1,i1,j1,x0,e1,B2)=>F.jsxDEV("a",{href:`${p1}/${Q}/~/${x0}`,className:L1?"on":void 0,"aria-current":L1?"page":void 0,onClick:e1,children:[i1,F.jsxDEV("span",{children:j1},void 0,!1,void 0,this),B2?F.jsxDEV("span",{className:"count",children:B2},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),v1=(L1)=>{L1.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("div",{className:"ws",children:[F.jsxDEV("div",{className:"ws-bar",role:"toolbar","aria-label":`${Q} toolbar`,children:[F.jsxDEV("div",{className:"ws-left",children:[F.jsxDEV(e_,{href:`${p1}/${Q}`,onClick:(L1)=>{L1.preventDefault(),n(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(U0,{name:"globe",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("b",{children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(U0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover menu-list ws-world-menu",children:[B.local?null:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Worlds"},void 0,!1,void 0,this),T.map((L1)=>F.jsxDEV("a",{href:`${p1}/${L1}`,className:L1===Q?"on":void 0,onClick:(i1)=>{i1.preventDefault(),v1(i1),z0(L1.split("/"))},children:[L1===Q?F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(U0,{name:"globe",size:16},void 0,!1,void 0,this),L1]},L1,!0,void 0,this)),F.jsxDEV("a",{href:`${J4()&&J4()!==Y0?J4():""}${p1}/`,onClick:(L1)=>{if(J4()&&J4()!==Y0)return;L1.preventDefault(),v1(L1),z0([])},children:[F.jsxDEV(U0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",V2()?` on ${new URL(V2()).host}`:""]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Connect an app"},void 0,!1,void 0,this),V2()?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",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),F.jsxDEV("pre",{children:[g8,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(sX,{text:JU({platform:V2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!B.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key from Settings › Access; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[g8,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(sX,{text:JU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Run it in this World; its calls to these vendors land here:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:"volter world run -- npm start"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-menu-text mode",children:["Or point an SDK at ",F.jsxDEV("code",{children:[g8,"/",Q,"/<vendor>"]},void 0,!0,void 0,this)," with the token in ",F.jsxDEV("code",{children:".volter/token"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),F.jsxDEV(sX,{text:JU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/~/settings`,onClick:(L1)=>{v1(L1),n(["settings"])(L1)},children:[F.jsxDEV(U0,{name:"settings",size:16},void 0,!1,void 0,this),"Settings…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(ry,{name:Q,token:U,branches:V,opens:y,refused:D,onChanged:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-where",title:"Where this is",children:[F.jsxDEV("span",{children:Q},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("span",{children:M1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),S1?F.jsxDEV("a",{href:`${p1}/${Q}/~/remote`,onClick:n(["remote"]),children:["origin ",S1.namespace,N1?F.jsxDEV("b",{children:[" ↑",N1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${p1}/${Q}/~/remote`,onClick:n(["remote"]),children:"no remote"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/~/settings/clock`,onClick:n(["settings","clock"]),children:S.state==="ok"?F.jsxDEV(F.Fragment,{children:[S.data.frozen?"stopped at ":"",F.jsxDEV(M0,{iso:S.data.at,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-right",children:[F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.pull(),disabled:Boolean(k1)||m.busy!==null,title:k1??`Fetch what ${W1} has and move this branch onto it`,children:[F.jsxDEV(U0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),m.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.push(),disabled:Boolean(k1)||m.busy!==null||N1===0,title:k1??(N1?`Push ${d0(N1,"changeset")} to ${W1}`:`Every changeset is at ${W1}`),children:[F.jsxDEV(U0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),m.busy==="Push"?"Pushing…":"Push",N1?F.jsxDEV("span",{className:"ws-btn-count",children:N1},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn icon-only","aria-label":"Settings",title:"Settings",onClick:()=>n(["settings"])(),children:F.jsxDEV(U0,{name:"settings",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(U0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:W.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(M0,{iso:W.at},void 0,!1,void 0,this),": a read-only snapshot",W.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(M0,{iso:W.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,"."]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void M(W),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(j6,{log:m.log.slice(0,1),name:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV("div",{className:"ws-body",children:[F.jsxDEV("nav",{className:"ws-side","aria-label":`${Q} places`,children:[q1.length?F.jsxDEV("a",{href:`${p1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:n(["screens"]),title:`${d0(q1.length,"screen")}: ${R8(q1.map(g1))}`,children:[F.jsxDEV(U0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Screens"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-screens-marks",children:[q1.slice(0,3).map((L1)=>F.jsxDEV(q2,{vendor:L1},L1,!1,void 0,this)),q1.length>3?F.jsxDEV("span",{className:"more",children:["+",q1.length-3]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"count",children:q1.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{className:"side-group",children:"Workspace"},void 0,!1,void 0,this),h1(Z==="changes"||Z==="history",F.jsxDEV(U0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",n(["changes"]),A1.length?String(A1.length):void 0),h1(Z==="events"&&!H||Z==="trace",F.jsxDEV(U0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",n(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),k.map((L1)=>F.jsxDEV(Y1.default.Fragment,{children:h1(Z==="vendor"&&H===L1,F.jsxDEV(q2,{vendor:L1},void 0,!1,void 0,this),g1(L1),`vendors/${L1}`,n(["vendors",L1]),H1(L1)?String(H1(L1)):void 0)},L1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),h1(!1,F.jsxDEV(U0,{name:"cloud",size:16},void 0,!1,void 0,this),W1?"origin":"Name a remote…","remote",n(["remote"]),N1?`↑${N1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[Z==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(GO,{name:Q,view:"changes",changes:A1.length,changesets:g.state==="ok"?g.data.changesets.length:0},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:"Not in a changeset"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:x.state==="ok"?`${d0(A1.length,"record")} · ${d0(O1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(S2,{load:x,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(UO,{records:A1,...B1?{selected:B1.key}:{},onPick:r,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[x.state==="ok"&&!B1?F.jsxDEV(s7,{title:"No changes on this branch",action:N1>0&&W1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(k1)||m.busy!==null,onClick:()=>void m.push(),children:["Push ",d0(N1,"changeset")," to origin"]},void 0,!0,void 0,this):void 0,children:F.jsxDEV("p",{children:["What your app writes to this World lands here, record by record, to cut into a changeset. Everything since ",x.data.base.at?F.jsxDEV(M0,{iso:x.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:x.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,B1?F.jsxDEV(qO,{record:B1,history:U1.state==="ok"?U1.data.entries:U1.state==="error"?[]:null},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(TV,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV(U0,{name:B.person?"user":B.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:B.person??(B.local?"This machine":B.admin?"The host's admin":"A token"),account:`${p1}/${Q}/~/settings/account`,branch:M1},name:Q,token:U,changes:O1,canWrite:f,refused:D,onCut:()=>{J1((L1)=>L1+1),r(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(iy,{name:Q,token:U,sets:g,changes:A1.length,withScreens:q1,required:c.state==="ok"?c.data.changesets.approvals??1:1,...X?{sub:X}:{},signsAs:N,canWrite:f,rooted:s,refused:D,onChanged:()=>J1((L1)=>L1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(ay,{name:Q,token:U,vendors:k,...H&&k.includes(H)?{vendor:H}:{},tick:v},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(sy,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(ty,{name:Q,token:U,vendor:H,withScreens:q1.includes(H),tick:v},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(oy,{name:Q,vendor:H,url:P.state==="ok"?p.get(H)??null:void 0,...P.state==="error"?{mapError:P.error}:{},holding:$V(P.state==="ok"?P.data.twins.find((L1)=>L1.twin===H)?.resources??[]:[]),session:A,retry:O},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(T5,{open:Y?.kind==="settings",onClose:()=>n(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:QO.map(([L1,i1,j1])=>F.jsxDEV("a",{href:`${p1}/${Q}/~/settings/${L1}`,className:Y.tab===L1?"on":void 0,"aria-current":Y.tab===L1?"page":void 0,onClick:n(["settings",L1]),children:[F.jsxDEV(U0,{name:j1,size:16},void 0,!1,void 0,this),i1]},L1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[E==="read"?F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"badge read-only",children:"Read only"},void 0,!1,void 0,this)," This session reads the World; it changes nothing."]},void 0,!0,void 0,this):null,Y.tab==="account"?F.jsxDEV(ey,{who:B,scope:E,snapshot:W,portal:V2(),onSignOut:R},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(ny,{name:Q,token:U,who:B,scope:E},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(OV,{name:Q,token:U,canWrite:f,tick:v,refused:D},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(wV,{name:Q,token:U,admin:h,canWrite:f,refused:D,onRemoved:u,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(IV,{name:Q,token:U,canWrite:f,refused:D},void 0,!1,void 0,this):null,Y.tab==="appearance"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV(my,{},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):null},void 0,!1,void 0,this),F.jsxDEV(T5,{open:Y?.kind==="branches",onClose:()=>n(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(UV,{name:Q,token:U,canWrite:f,branches:V,opens:y,...Y.open?{open:Y.open}:{},onChanged:b,refused:D},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sX({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>Q2("Copied the prompt: paste it into your coding agent"),()=>Q2("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var qH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,JV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),$V=(Q,U=4)=>{let Z=[...Q].filter((X)=>X.count>0).sort((X,H)=>H.count-X.count);return Z.length?Z.slice(0,U).map((X)=>d0(X.count,X.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},ZO=F.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:F.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);function QV({name:Q,token:U,clock:Z,canWrite:X,onChanged:H,refused:Y,open:B}){let[W,M]=Y1.useState(!1),[R,T]=Y1.useState(""),[A,O]=Y1.useState(""),[w,P]=Y1.useState(null),[V,S]=Y1.useState(!1),f=Z.state==="ok"?Z.data:null,D=async(h,u,b)=>{S(!0),P(null);try{let E=await T0(U,`/-/${Q}/${u}`,{method:u==="clock"?"PUT":"POST",body:JSON.stringify(b)});if(!E.ok){Y(E),P({ok:!1,text:await E5(E)});return}let m=await E.json();P({ok:!0,text:`${h} — the World is at ${new Date(m.at).toLocaleString()}`}),M(!1),H()}catch(E){P({ok:!1,text:`the World did not answer: ${E instanceof Error?E.message:String(E)}`})}finally{S(!1)}},N=(h)=>{h.preventDefault();let u=new Date(R);if(Number.isNaN(u.getTime())){P({ok:!1,text:"Pick a date and time."});return}if(f&&u.getTime()<Date.parse(f.at)){P({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(f.at).toLocaleString()}.`});return}D("Clock set","clock",{at:u.toISOString()})},y=(h,u)=>{D(`Advanced ${u}`,"clock/advance",{by:h})},v=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${f?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):f.frozen?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",F.jsxDEV("strong",{children:F.jsxDEV(M0,{iso:f.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:["World time ",F.jsxDEV("strong",{children:F.jsxDEV(M0,{iso:f.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",F.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),X&&f?F.jsxDEV("details",{className:B?"clock-more inline":"clock-more",open:B||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:B?void 0:"popover",children:[F.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, the branch picker’s Manage branches… views an earlier moment."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"clock-controls",children:[F.jsxDEV("button",{type:"button","aria-expanded":W,onClick:()=>{M(!W),T(W9(hR(f.at))),P(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),v.map(([h,u])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${u}`,disabled:V||!f.frozen,title:f.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>y(h,u),children:u},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){P({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}y(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(h)=>O(h.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!f.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V||!f.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!f.frozen?F.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?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:N,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:W9(hR(f.at)),onChange:(h)=>T(h.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>M(!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,w?F.jsxDEV("p",{role:w.ok?"status":"alert",children:w.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function qV({name:Q,token:U,clock:Z,refused:X}){let[H,Y]=Y1.useState(!1),[B,W]=Y1.useState(""),[M,R]=Y1.useState(null),[T,A]=Y1.useState(!1),O=Z.state==="ok"?Z.data.at:new Date().toISOString(),w=Y1.useRef(null);return Y1.useEffect(()=>{if(!H)return;let V=(f)=>{if(f.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),w.current?.querySelector("button")?.focus()},S=(f)=>{if(!w.current?.contains(f.target))Y(!1)};return document.addEventListener("keydown",V),document.addEventListener("click",S),()=>{document.removeEventListener("keydown",V),document.removeEventListener("click",S)}},[H]),F.jsxDEV("div",{className:"as-of",ref:w,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),W(W9(O)),R(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(V)=>{V.preventDefault(),R(null);let S=new Date(B);if(Number.isNaN(S.getTime())){R("Pick a date and time.");return}if(S.getTime()>Date.parse(O)){R(`That is after the World's present (${new Date(O).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let f=await T0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:S.toISOString()},ttl:3600})});if(!f.ok){X(f),R(await E5(f));return}let D=await f.json();_H({name:D.name,parent:Q,token:D.token,readToken:D.readToken,at:S.toISOString(),expiresAt:D.expiresAt??null,parentOrigin:Y0,made:!0});let N=bJ(D.origin)?.origin;if(N&&N!==Y0){QH(N,D.readToken,D.name,`${p1}/${D.name}`);return}z0(D.name.split("/"))}catch(f){R(`the World did not answer: ${f instanceof Error?f.message:String(f)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:B,max:W9(O),onChange:(V)=>W(V.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:T,children:T?"Opening…":"Open snapshot"},void 0,!1,void 0,this),F.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,M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function KO({name:Q,token:U,open:Z,onClose:X,onMade:H,refused:Y}){let B=(u)=>u.split("/").pop()??u,[W,M]=Y1.useState(!1),[R,T]=Y1.useState(null),[A,O]=Y1.useState(""),[w,P]=Y1.useState("now"),[V,S]=Y1.useState(""),[f,D]=Y1.useState("24"),[N,y]=Y1.useState(!0);Y1.useEffect(()=>{if(Z)T(null),S(W9(new Date().toISOString()))},[Z]);let v=async(u)=>{u.preventDefault(),T(null);let b=w==="at"?new Date(V):null;if(b&&Number.isNaN(b.getTime())){T("Pick a date and time, or make it as of now.");return}if(b&&b.getTime()>Date.now()){T("A branch is made as of now or a moment before it.");return}M(!0);let E=await T0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(f)*3600),...b?{at:{instant:b.toISOString()}}:N?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(M(!1),!E){T(`${Y0} did not answer`);return}if(!E.ok){Y(E),T(await E5(E));return}let m=await E.json();_H({name:m.name,parent:Q,token:m.token??"",readToken:m.readToken,at:(b??new Date).toISOString(),expiresAt:m.expiresAt??null,parentOrigin:Y0,...m.origin?{origin:m.origin}:{}}),X(),O(""),Q2(`Made ${B(m.name)}`),H()};return F.jsxDEV(T5,{open:Z,onClose:()=>{if(!W)X()},title:`New branch of ${B(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>X(),disabled:W,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:W,children:W?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"new-branch",onSubmit:(u)=>void v(u),className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Label ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"branchLabel",value:A,onChange:(u)=>O(u.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),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="now",onChange:()=>P("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:N,onChange:(u)=>y(u.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="at",onChange:()=>P("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:W9(new Date().toISOString()),onChange:(u)=>S(u.target.value)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Goes away after"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"branchLife",value:f,onChange:(u)=>D(u.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.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),R?F.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function UV({name:Q,token:U,canWrite:Z,branches:X,opens:H,open:Y,onChanged:B,refused:W,snapshotOf:M}){let R=w0(U,`/-/${Q}/clock`),T=(D)=>D.split("/").pop()??D,[A,O]=Y1.useState(!1),w=(D)=>(N)=>{N.preventDefault(),z0([...Q.split("/"),"~","branches",...D?D.split("/"):[]])};if(!X)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let P=X.state==="ok"?X.data.branches:[],V=X.state==="ok"&&(X.data.named?.length??0)>0?X.data.named:[{name:T(Q),running:!0}],S=X.state==="ok"?X.data.checkedOut??T(Q):T(Q),f=async(D)=>{if(!await D4({title:`Remove the branch ${T(D)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let N=await T0(U,`/-/${Q}/branches/${D}`,{method:"DELETE"}).catch((y)=>y);if(N instanceof Error){Q2(`Remove ${T(D)}: the World did not answer (${N.message})`,"error");return}if(!N.ok){W(N),Q2(`Remove ${T(D)}: ${await E5(N)}`,"error");return}QU(D),Q2(`Removed ${T(D)}`),B(),z0([...Q.split("/"),"~","branches"])};if(Y){let D=Y.includes("/")?P.find((y)=>y.name===Y):void 0,N=Y.includes("/")?void 0:V.find((y)=>y.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${p1}/${Q}/~/branches`,onClick:w(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(S2,{load:X,what:"the branches"},void 0,!1,void 0,this),X.state==="ok"&&!D&&!N?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,D?F.jsxDEV(GV,{name:Q,b:D,canWrite:Z,opens:H(D.name),remove:()=>void f(D.name)},void 0,!1,void 0,this):null,N&&!D?F.jsxDEV(ZV,{name:Q,token:U,b:N,served:N.name===S,canWrite:Z,canServe:X.state==="ok"&&Boolean(X.data.canServe)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}return F.jsxDEV("div",{"aria-labelledby":"branches",children:[F.jsxDEV("div",{className:"branches-head",children:[F.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",F.jsxDEV("b",{children:S},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),Z?F.jsxDEV("div",{className:"head-actions",children:[M?null:F.jsxDEV(qV,{name:Q,token:U,clock:R,refused:W},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>O(!0),children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(S2,{load:X,what:"the branches"},void 0,!1,void 0,this),X.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:[V.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${p1}/${Q}/~/branches/${D.name}`,onClick:w(D.name),children:F.jsxDEV("b",{children:D.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),D.name===S?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${D.name}`,!0,void 0,this)),P.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${p1}/${Q}/~/branches/${D.name}`,onClick:w(D.name),children:F.jsxDEV("b",{children:T(D.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:T(D.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.at?.instant?F.jsxDEV(M0,{iso:D.at.instant},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV(M0,{iso:D.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.expiresAt?F.jsxDEV(M0,{iso:D.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},D.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(KO,{name:Q,token:U,open:A,onClose:()=>O(!1),onMade:B,refused:W},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function GV({name:Q,b:U,canWrite:Z,opens:X,remove:H}){let Y=(M)=>M.split("/").pop()??M,B=JH(U.name),W=w0(B,B?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[ZO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[X?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>JO(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,Z?F.jsxDEV("button",{type:"button",className:"danger-button",onClick:H,children:"Remove…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:U.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Y(U.from??Q)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.at?.instant?F.jsxDEV(M0,{iso:U.at.instant},void 0,!1,void 0,this):"live: it keeps its parent's time"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(M0,{iso:U.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Goes away"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.expiresAt?F.jsxDEV(M0,{iso:U.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!X?F.jsxDEV("p",{className:"mode",children:"Its tokens were handed to whoever made it: it opens, and shows its own changes, in their tab."},void 0,!1,void 0,this):null,W.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),W.data.changes.length===0?F.jsxDEV("p",{className:"mode",children:"Nothing written on it since it branched."},void 0,!1,void 0,this):F.jsxDEV(MV,{changes:W.data.changes,idPrefix:`branch-${Y(U.name)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function ZV({name:Q,token:U,b:Z,served:X,canWrite:H,canServe:Y}){let[B,W]=Y1.useState(!1),[M,R]=Y1.useState(null),T=async()=>{W(!0),R(null);let A=await T0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}W(!1),R(A?await E5(A):`${Y0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[ZO," ",Z.name," ",X?F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:H&&Y&&!X?F.jsxDEV("button",{type:"button",className:"primary",disabled:B,onClick:()=>void T(),children:B?"Switching…":"Serve here"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:Z.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Kind"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:"one of this World's own branches"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"State"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Z.running?"running":"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${p1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),z0([...Q.split("/"),"~","changes"])},children:"Changes"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):Y?F.jsxDEV("p",{className:"mode",children:["“Serve here” stops this one's twins and serves ",Z.name," in its place."]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode",children:"This host serves one of the World's own branches at a time, and does not switch them from this page."},void 0,!1,void 0,this),M?F.jsxDEV("p",{role:"alert",children:M},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var pR=50,B9=(Q)=>`${Q.twin}:${Q.position}`,FO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,qU=(Q)=>{if(!Q)return"someone";if(Q.startsWith("key:")){let[U,Z]=Q.slice(4).split(" for:");return Z?`${U}, for ${Z}`:U||"a key"}if(Q.startsWith("person:"))return Q.slice(7);return Q==="machine"?"this machine":Q==="person"?"a session with no name":Q==="token:read"?"the read-only token":Q==="token"?"the World's token":Q},DJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${qU(Z)}`;if(Z.startsWith("person:")&&Z.length>7)return`by ${Z.slice(7)}`;if(Z==="machine")return"by this machine";if(Z==="person")return"by a session with no name";if(Z==="key")return"by a key";if(Z==="token:read")return"by the read-only token";if(Z==="token")return"by the World's token";return Q.actor?.kind==="system"?"by the vendor":Q.actor?.id?`by ${Q.actor.id}`:"by an app"},XO=(Q)=>Q.operation??Q.op;function KV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,X=(...R)=>R.map((T)=>Z[T]??U[T]).find((T)=>typeof T==="number"),H=[],Y=X("prompt_tokens","input_tokens"),B=X("completion_tokens","output_tokens"),W=X("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(B!==void 0)H.push(["tokens out",B.toLocaleString()]);if(W!==void 0)H.push(["tokens in all",W.toLocaleString()]);let M=X("cost_usd","cost");if(M!==void 0)H.push(["cost",`$${M<0.01?M.toPrecision(2):M.toFixed(2)}`]);return H}function HO({text:Q,at:U=280}){if(Q.length<=U)return F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this);return F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:[F.jsxDEV("span",{className:"text",children:[Q.slice(0,U),"…"]},void 0,!0,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:["show all ",Q.length.toLocaleString()," characters"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function P3({v:Q}){if(typeof Q==="string")return F.jsxDEV(HO,{text:Q},void 0,!1,void 0,this);if(Q===null||typeof Q!=="object")return F.jsxDEV("code",{children:String(Q)},void 0,!1,void 0,this);let U=JSON.stringify(Q,null,2);return U.length<=160?F.jsxDEV("code",{children:JSON.stringify(Q)},void 0,!1,void 0,this):F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:F.jsxDEV("code",{children:[JSON.stringify(Q).slice(0,120),"…"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("pre",{children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var FV=(Q)=>typeof Q==="string"?Q:Array.isArray(Q)?Q.map((U)=>U&&typeof U==="object"&&typeof U.text==="string"?U.text:"").filter(Boolean).join(`
249
- `):JSON.stringify(Q??"");function XV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(P3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,X=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[X.length?F.jsxDEV("dl",{className:"fields",children:X.map(([H,Y])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(P3,{v:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},H,!0,void 0,this))},void 0,!1,void 0,this):null,Z?F.jsxDEV("ol",{className:"messages",children:Z.map((H,Y)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"role",children:typeof H.role==="string"?H.role:"message"},void 0,!1,void 0,this),F.jsxDEV(HO,{text:FV(H.content)},void 0,!1,void 0,this)]},Y,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function YO({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return F.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return F.jsxDEV("dl",{className:"fields",children:U.map(([Z,X])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(P3,{v:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var HV=(Q)=>Q.receipt?`${Q.receipt.status??""}${Q.receipt.externalId?` · ${Q.receipt.externalId}`:""}${Q.receipt.reason?` · ${Q.receipt.reason}`:""}`:Q.operation==="observed"?"observed from the vendor":Q.provenance==="placeholder"?"default data":"none: it has not left this World";function YV(Q){let U=new Map,Z=[],X=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){X.push(Y);continue}let B={...Y,copies:[]};if(Z.push(B),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,B);if(!H.has(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`))H.set(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`,B)}for(let Y of X){let B=Y.entry.landsId?U.get(`${Y.twin}:${Y.entry.landsId}`):Y.entry.aliasOf?H.get(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.aliasOf}`):void 0;if(B)B.copies.push(Y);else Z.push({...Y,copies:[]})}return Z.sort(FO)}var tX={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function cR(Q){let U=[Q.entry.receipt,...Q.copies.map((H)=>H.entry.receipt)].filter((H)=>Boolean(H?.status));if(U.length===0)return null;let Z=U.find((H)=>H.status==="failed"||H.status==="refused"),X=[...U].sort((H,Y)=>(tX[Y.status]??0)-(tX[H.status]??0))[0];return Z&&!(tX[X.status]>=5)?{status:Z.status,bad:!0}:{status:X.status,bad:!1}}var UU=1280,GU=820,lR=160;function zV({data:Q}){let{world:U,vendor:Z,url:X,active:H,open:Y,changed:B}=Q;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(uR,{isVisible:!0,position:V1.Top,align:"start",className:"frame-label",children:[F.jsxDEV(q2,{vendor:Z},void 0,!1,void 0,this),F.jsxDEV("span",{children:g1(Z)},void 0,!1,void 0,this),B?F.jsxDEV("a",{className:"frame-changed nodrag",href:`${p1}/${U}/~/changes`,onClick:(W)=>{W.preventDefault(),z0([...U.split("/"),"~","changes"])},title:`${d0(B,"record")} changed here, not in a changeset: see them in Changes`,children:[F.jsxDEV(U0,{name:"square-dot",size:14},void 0,!1,void 0,this),B]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:H?"frame on":"frame",style:{width:UU,height:GU},children:[F.jsxDEV("div",{className:"frame-bar",title:"Drag to move",children:[F.jsxDEV(q2,{vendor:Z},void 0,!1,void 0,this),F.jsxDEV("strong",{children:g1(Z)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"frame-url",children:X.replace(/^https?:\/\//,"")},void 0,!1,void 0,this),F.jsxDEV("a",{className:"nodrag",href:`${p1}/${U}/~/screens/${Z}`,onClick:(W)=>{W.preventDefault(),Y(Z)},children:"Open"},void 0,!1,void 0,this),F.jsxDEV("a",{className:"nodrag",href:X,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${g1(Z)} in a new tab`,children:"↗"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:H?"frame-body nodrag nopan nowheel":"frame-body",children:F.jsxDEV("iframe",{title:`${Z} screens`,src:X,loading:"lazy",style:{pointerEvents:H?"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 BV={screen:zV};function WV(Q){return F.jsxDEV(aX,{children:F.jsxDEV(LV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function LV({name:Q,token:U,twins:Z,session:X,retry:H,snapshot:Y,back:B}){let W=w0(U,`/-/${Q}/diff`),M=Y1.useMemo(()=>{let J1={};if(W.state==="ok")for(let t of W.data.changes)(J1[t.twin]??=new Set).add(`${t.entry.subject.type}:${t.entry.subject.id}`);return Object.fromEntries(Object.entries(J1).map(([t,x])=>[t,x.size]))},[W]),R=(J1)=>M[J1]??0,T=new Map((Z.state==="ok"?Z.data.twins:[]).flatMap((J1)=>{let t=$O(Q,J1);return t?[[J1.twin,t]]:[]})),A=[...T.keys()],O=`volter.canvas.${Q}`,[w,P]=Y1.useState(null),[V,S]=Y1.useState(!0),f=kJ(),D=Y1.useCallback((J1)=>z0([...Q.split("/"),"~","screens",J1]),[Q]),N=Math.max(1,Math.ceil(Math.sqrt(A.length))),y=Y1.useCallback(()=>{let J1={};try{J1=JSON.parse(localStorage.getItem(O)??"{}")}catch{}return A.map((t,x)=>({id:t,type:"screen",dragHandle:".frame-bar",position:J1[t]??{x:x%N*(UU+lR),y:Math.floor(x/N)*(GU+lR)},data:{world:Q,vendor:t,url:T.get(t),active:!1,open:D,changed:M[t]??0}}))},[A.join(","),Q,N,D,M]),[v,h,u]=jR([]);Y1.useEffect(()=>{h(y())},[y,h]),Y1.useEffect(()=>{h((J1)=>J1.map((t)=>t.data.active===(t.id===w)?t:{...t,data:{...t.data,active:t.id===w}}))},[w,h]),Y1.useEffect(()=>{let J1=(t)=>{if(t.key==="Escape")P(null)};return document.addEventListener("keydown",J1),()=>document.removeEventListener("keydown",J1)},[]);let b=()=>{try{localStorage.setItem(O,JSON.stringify(Object.fromEntries(v.map((J1)=>[J1.id,J1.position]))))}catch{}},E=(J1)=>{P(J1);let t=f.getNode(J1);if(!t)return;let x=Math.min((window.innerWidth-300)/UU,(window.innerHeight-120)/GU,1);f.setCenter(t.position.x+UU/2-130/x,t.position.y+GU/2,{zoom:x,duration:400})},m=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,$1=X.state==="ok"&&Z.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"Every vendor's screens",children:F.jsxDEV(SR,{nodes:$1?v:[],onNodesChange:u,nodeTypes:BV,onNodeDragStop:b,onNodeClick:(J1,t)=>P(t.id),onPaneClick:()=>P(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:m?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(VR,{variant:x4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(E8,{position:"top-left",className:"float layers",children:[F.jsxDEV("div",{className:"float-head",children:[F.jsxDEV("button",{type:"button",className:"back",onClick:B,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"float-title",children:[F.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],Y?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost","aria-expanded":V,"aria-label":V?"Hide the screens list":"Show the screens list",onClick:()=>S(!V),children:V?"▾":"▸"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V?F.jsxDEV("ul",{className:"layer-list","aria-label":"Screens",children:A.map((J1)=>F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:w===J1?"on":void 0,onClick:()=>E(J1),children:[F.jsxDEV(q2,{vendor:J1},void 0,!1,void 0,this),F.jsxDEV("span",{children:g1(J1)},void 0,!1,void 0,this),R(J1)?F.jsxDEV("span",{className:"layer-changed",title:`${d0(R(J1),"record")} changed, not in a changeset`,children:[F.jsxDEV(U0,{name:"square-dot",size:14},void 0,!1,void 0,this),R(J1)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},J1,!1,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV(S2,{load:Z,what:"the vendors"},void 0,!1,void 0,this),X.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,X.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",X.error," ",F.jsxDEV("button",{type:"button",onClick:H,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(E8,{position:"top-center",className:"float hint mode",children:w?`Using ${g1(w)} · Esc to leave`:"Drag to pan · scroll to zoom · click a screen to use it"},void 0,!1,void 0,this),F.jsxDEV(vR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(bR,{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 zO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),AV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function KU(Q){let U=Q.actions.filter(AV).length,Z=Q.actions.length-U,X=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((M)=>M.status==="deployed"),...X.filter((M)=>M.status==="confirmed")].map((M)=>M.actionId)).size,B=new Set([...H.filter((M)=>M.status==="refused"||M.status==="failed"),...X.filter((M)=>M.status==="failed")].map((M)=>M.actionId)).size,W={performed:Y,failed:B,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...W};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...W};if(B>0)return{label:`${B} refused or failed`,tone:"bad",...W};if(X.some((M)=>M.status==="replayed")&&X.every((M)=>M.status==="replayed"||M.status==="skipped"))return{label:"Pushed",tone:"good",...W};return{label:"Not sent",tone:"plain",...W}}var oX=(Q)=>Q.message??Q.narration?.split(`
250
- `)[0]?.replace(/ setting .*$/,"")??Q.name;function BO(Q,U=1){let Z=Q.currentHash??Q.contentHash,X=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===Z).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===Z?Q.verification:null;if(H&&!H.passed)return{label:"Checks failed",tone:"bad"};if(X>0&&X<U)return{label:`Approved by ${X} of ${U}`,tone:"plain"};if(X>0)return{label:`Approved by ${X}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function dR({name:Q,token:U,signsAs:Z,c:X,canWrite:H,rooted:Y,refused:B,onChanged:W,part:M,required:R}){let T=M==="head",A=M==="review",[O,w]=Y1.useState(null),[P,V]=Y1.useState(!1),[S,f]=Y1.useState(""),[D,N]=Y1.useState(""),[y,v]=Y1.useState(null),h=w0(U,`/-/${Q}/origin`),u=KU(X),b=BO(X,R),E=zO(X),m=[...new Set(E.map((s)=>s.twin))],$1=m.some((s)=>Y.includes(s)),J1=(s)=>s===(X.currentHash??X.contentHash),t=X.applied?.receipts??[],x=(X.deployed??[]).filter((s)=>s.status!=="landed"),g=t.filter((s)=>s.status==="confirmed").length,c=x.filter((s)=>s.status==="deployed"),a=async(s,H1,M1,A1)=>{w(s),v(null);try{let B1=await T0(U,H1,{method:"POST",...M1===void 0?{}:{body:JSON.stringify(M1)}});if(!B1.ok)return B(B1),v({what:s,...e0(await W3(B1))}),!1;if(A1)Q2(A1);return W(),!0}catch(B1){return v({what:s,text:`the World did not answer (${B1 instanceof Error?B1.message:String(B1)})`,acts:[]}),!1}finally{w(null)}},r=()=>{a("Verify",`/-/${Q}/changesets/${X.name}/verify`,void 0,"Verified: the checks ran over it")},n=async(s)=>{if(s.preventDefault(),await a("Approve",`/-/${Q}/changesets/${X.name}/approve`,{...S.trim()?{note:S.trim()}:{},...Z===null&&D.trim()?{as:D.trim()}:{}},"Approved"))V(!1),f("")},k=async()=>{let s=m.filter((H1)=>Y.includes(H1));if(!await D4({title:`Deploy ${X.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",X.actions.length," change",X.actions.length===1?"":"s"," against the real account",s.length===1?"":"s"," behind ",R8(s.map(g1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:X.name}))return;w("Deploy"),v(null);try{let H1=await T0(U,`/-/${Q}/deploy/${X.name}`,{method:"POST",body:JSON.stringify({confirm:X.name})});if(!H1.ok){B(H1),v({what:"Deploy",...e0(await W3(H1))});return}let M1=await T0(U,`/-/${Q}/changesets/${X.name}`),A1=M1.ok?await M1.json():null;if(!A1){Q2("Deploy: sent; reading its receipts failed","info"),W();return}let B1=KU(A1);Q2(`Deploy: ${B1.performed} of ${B1.total} change${B1.total===1?"":"s"} performed at the vendor${B1.failed?`; ${B1.failed} refused or failed`:""}`,B1.failed?"error":B1.performed?"ok":"info"),W()}catch(H1){v({what:"Deploy",text:`the World did not answer (${H1 instanceof Error?H1.message:String(H1)})`,acts:[]})}finally{w(null)}},p=!H?"This session reads the World; it changes nothing":u.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,q1=h.state==="ok"&&h.data.origin?qH(h.data.origin):null;return F.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[T?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"changeset-title",children:[X.message??X.name," ",F.jsxDEV("span",{className:`badge cs-${u.tone}`,children:u.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${b.tone}`,children:b.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:X.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(M0,{iso:X.createdAt},void 0,!1,void 0,this)," · ",X.actions.length," change",X.actions.length===1?"":"s"," at ",R8(m.map(g1))||"no vendor"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[F.jsxDEV("button",{type:"button",onClick:r,disabled:Boolean(p)||O!==null,title:p??"Replay it in a throwaway World and run the World's checks",children:O==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:Boolean(p)||O!==null,title:p??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),$1?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void k(),disabled:Boolean(p)||O!==null,title:p??"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),p&&u.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[p,"."]},void 0,!0,void 0,this):null,y?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:y.what},void 0,!1,void 0,this),": ",y.text]},void 0,!0,void 0,this),y.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:r,disabled:O!==null,children:"Verify"},void 0,!1,void 0,this):null,y.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:O!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(tR,{name:Q,acts:y.acts},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null,A?F.jsxDEV(F.Fragment,{children:[X.narration?F.jsxDEV("p",{className:"narration",children:X.narration},void 0,!1,void 0,this):null,F.jsxDEV("h4",{children:"Where it went"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"block where",children:[u.performed>0?F.jsxDEV("p",{className:"pad",children:[u.performed>=u.total?"Deployed":"Partly deployed",": ",u.performed," of ",u.total," change",u.total===1?"":"s",u.own?` (and ${u.own} of the World's own, which stay in it)`:""," performed at ",R8([...new Set([...c.map((s)=>s.service),...t.filter((s)=>s.status==="confirmed").map((s)=>s.service)].map(g1))]),c.length?` (${c.length} from here`:" (",c.length&&g?", ":"",g?`${g} by the remote`:"",")."]},void 0,!0,void 0,this):u.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",q1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:q1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,X.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(M0,{iso:X.applied.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,": every change was replayed there. No vendor has performed any of it."]},void 0,!0,void 0,this):u.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",X.applied?.outcome==="refused"?" A push was refused (below); Push sends it again.":F.jsxDEV(F.Fragment,{children:[" Push sends it to the remote World",$1?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,u.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[u.failed," change",u.failed===1?" was":"s were"," refused or failed at the vendor",[...x.filter((s)=>s.reason&&(s.status==="refused"||s.status==="failed")).map((s)=>s.reason),...t.filter((s)=>s.status==="failed"&&s.error).map((s)=>s.error)].slice(0,3).map((s)=>`: ${e0(s).text}`).join(""),"."]},void 0,!0,void 0,this):null,X.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:X.applied.refusal.map((s,H1)=>F.jsxDEV("li",{className:"mode",children:e0(s).text},H1,!1,void 0,this))},void 0,!1,void 0,this):null,x.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the vendor"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:x.map((s)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:s.status==="refused"||s.status==="failed"?"badge cs-bad":s.status==="deployed"?"badge cs-done":"badge",children:s.status},void 0,!1,void 0,this)," ",g1(s.service)," ",s.status==="deployed"?s.url?F.jsxDEV("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",children:s.externalId??s.url},void 0,!1,void 0,this):s.externalId?F.jsxDEV("code",{children:s.externalId},void 0,!1,void 0,this):null:null,s.reason?F.jsxDEV("span",{className:"mode",children:[" · ",e0(s.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(M0,{iso:s.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${s.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the remote"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:t.map((s)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:s.status==="failed"?"badge cs-bad":s.status==="confirmed"?"badge cs-done":"badge",children:s.status},void 0,!1,void 0,this)," ",g1(s.service)," ",F.jsxDEV("span",{className:"mode",children:s.status==="replayed"?"replayed at the remote World":s.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),s.status==="confirmed"&&s.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:s.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,s.error?F.jsxDEV("span",{className:"mode",children:[" · ",e0(s.error).text]},void 0,!0,void 0,this):null]},`r:${s.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!$1&&u.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:["No vendor it changes is connected to its real service here, so it does not deploy from this World. ",F.jsxDEV("a",{href:`${p1}/${Q}/~/settings/services`,onClick:(s)=>{s.preventDefault(),z0([...Q.split("/"),"~","settings","services"])},children:"Connect a vendor in Settings › Real services"},void 0,!1,void 0,this)," to deploy."]},void 0,!0,void 0,this):null,F.jsxDEV("h4",{children:"Checks"},void 0,!1,void 0,this),!X.verification?F.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):F.jsxDEV("div",{className:J1(X.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[X.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(M0,{iso:X.verification.at},void 0,!1,void 0,this),J1(X.verification.contentHash)?null:F.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),X.verification.results.length?F.jsxDEV("ul",{className:"checks",children:X.verification.results.map((s)=>F.jsxDEV("li",{children:[s.passed?"✓":"✗"," ",F.jsxDEV("code",{children:s.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:g1(s.service)},void 0,!1,void 0,this)]},s.id,!0,void 0,this))},void 0,!1,void 0,this):null,X.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:X.verification.refusals.map((s,H1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:s.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[g1(s.service),": ",s.reason]},void 0,!0,void 0,this)]},H1,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("h4",{children:"Approvals"},void 0,!1,void 0,this),X.approvals.length===0?F.jsxDEV("p",{className:"mode",children:"No one has approved it."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"approvals",children:X.approvals.map((s,H1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:s.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(M0,{iso:s.at},void 0,!1,void 0,this),J1(s.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),s.note?F.jsxDEV("div",{className:"mode",children:["“",s.note,"”"]},void 0,!0,void 0,this):null]},H1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(T5,{open:P,onClose:()=>{if(!O)V(!1)},title:`Approve ${X.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(!1),disabled:O!==null,children:"Cancel"},void 0,!1,void 0,this),F.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:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(s)=>void n(s),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",Z?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.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?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:D,onChange:(s)=>N(s.target.value),maxLength:80,required:!0,placeholder:"your name or email",autoComplete:"off"},void 0,!1,void 0,this),F.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,F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Note ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("textarea",{name:"approveNote",value:S,onChange:(s)=>f(s.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)}var WO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function MV({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((X)=>X.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((X)=>{let H=Q.filter((B)=>B.twin===X).map((B)=>B.entry),Y=[...new Set(H.map((B)=>`${B.subject.type}:${B.subject.id}`))];return F.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`${U}-${X}`,children:[F.jsxDEV("h3",{id:`${U}-${X}`,className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:X},void 0,!1,void 0,this),g1(X)," ",F.jsxDEV("span",{className:"mode",children:["· ",d0(Y.length,"record"),", ",d0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((B)=>{let W=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===B),M=W[W.length-1],R=$4(M),T={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:M.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",R.label?F.jsxDEV("span",{className:"label",children:["“",R.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:S6(M)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.map((A)=>{let O=A.fields??{},w=Object.entries(O).filter(([V,S])=>!(V in T)||!WO(T[V],S)),P=T;return T={...T,...O},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:$4(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(M0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",DJ(A)]},void 0,!0,void 0,this),w.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${$4(A).what} set`,children:w.map(([V,S])=>F.jsxDEV(Y1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:V in P?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(P3,{v:P[V]},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"arrow","aria-label":"becomes",children:"→"},void 0,!1,void 0,this),F.jsxDEV("ins",{children:F.jsxDEV(P3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(P3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},V,!0,void 0,this))},void 0,!1,void 0,this)]},A.id,!0,void 0,this)})]},B,!0,void 0,this)})},void 0,!1,void 0,this)]},X,!0,void 0,this)})},void 0,!1,void 0,this)}function TV({name:Q,token:U,changes:Z,canWrite:X,refused:H,onCut:Y,pinned:B,generated:W,inputRef:M,author:R}){let[T,A]=Y1.useState(""),[O,w]=Y1.useState(!1),[P,V]=Y1.useState([]),S=(D,N,y)=>{V((v)=>[{ok:D,text:N,at:new Date().toISOString(),n:++uJ,...y?.length?{acts:y}:{}},...v].slice(0,4))},f=async(D)=>{D.preventDefault(),w(!0);try{let N=await T0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(T.trim()?{message:T.trim()}:{})});if(!N.ok){H(N);let v=e0(await W3(N));S(!1,`Cut a changeset: ${v.text}`,v.acts);return}let y=await N.json();S(!0,`Cut ${y.name??"a changeset"}: ${d0(y.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(N){S(!1,`Cut a changeset: the World did not answer (${N instanceof Error?N.message:String(N)})`)}finally{w(!1)}};if(B){let D=!X?"This session reads the World; it changes nothing":Z===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(j6,{log:P,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(N)=>void f(N),"aria-label":"Cut a changeset",children:[R?F.jsxDEV("a",{className:"ws-author",href:R.account,title:`${R.who}: your account`,onClick:(N)=>{N.preventDefault(),z0(R.account.slice(p1.length+1).split("/"))},children:R.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:M,name:"changesetMessage","aria-label":"Summary",value:T,onChange:(N)=>A(N.target.value),placeholder:Z===0?"Nothing to cut":W?"Summary (optional)":"Summary (required)",required:!W,maxLength:200,disabled:Boolean(D),title:D??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(D)||O,title:D??void 0,children:O?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",d0(Z,"change"),R?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:R.branch},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)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!X||Z===0)return F.jsxDEV(j6,{log:P,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(D)=>void f(D),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",Z===1?"this change":`these ${Z} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:T,onChange:(D)=>A(D.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:Z===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:O||Z===0,children:O?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(j6,{log:P,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function RV({name:Q,token:U}){let[Z,X]=Y1.useState(0),H=w0(U,`/-/${Q}/keys`,Z),[Y,B]=Y1.useState(!1),[W,M]=Y1.useState(""),[R,T]=Y1.useState("write"),[A,O]=Y1.useState(!1),[w,P]=Y1.useState(null),[V,S]=Y1.useState(null),[f,D]=Y1.useState(null),N=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,u=await T0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),b=u?await u.json().catch(()=>({})):{error:`${Y0} did not answer`};if(!u?.ok||!b.key){Q2(b.error?e0(b.error).text:"refused","error");return}D(`${window.location.origin}${p1}/${Q}#${new URLSearchParams({token:b.key}).toString()}`),X((E)=>E+1)},y=async(h)=>{h.preventDefault(),O(!0),P(null);let u=await T0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:W.trim(),scope:R})}).catch(()=>null);O(!1);let b=u?await u.json().catch(()=>({})):{error:`${Y0} did not answer`};if(!u?.ok||!b.key){P(b.error?e0(b.error).text:"refused");return}B(!1),S({key:b.key,name:W.trim()}),M(""),X((E)=>E+1)},v=async(h)=>{if(!await D4({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let u=await T0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(u.ok)Q2(`Revoked ${h.name}`);else Q2(await E5(u),"error");X((b)=>b+1)};return F.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[F.jsxDEV("div",{className:"keys-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),F.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),V2()?F.jsxDEV("a",{className:"button primary",href:`${V2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):F.jsxDEV("div",{className:"head-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>void N(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{P(null),B(!0)},children:"Make a key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(S2,{load:H,what:"the keys",retry:()=>X((h)=>h+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.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),F.jsxDEV("tbody",{children:H.data.keys.map((h)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:h.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:cK(h.createdAt),children:lK(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?lK(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(EA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void v(h)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},h.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(T5,{open:Y,onClose:()=>{if(!A)B(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>B(!1),disabled:A,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"make-key",disabled:A||!W.trim(),children:A?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"make-key",onSubmit:y,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:W,onChange:(h)=>M(h.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:["Access ",F.jsxDEV("select",{value:R,onChange:(h)=>T(h.target.value==="read"?"read":"write"),children:[F.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),F.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),w?F.jsxDEV("p",{role:"alert",children:w},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(T5,{open:Boolean(V),onClose:()=>S(null),title:`${V?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>S(null),children:"Done"},void 0,!1,void 0,this),children:[F.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),V?F.jsxDEV(rK,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(T5,{open:Boolean(f),onClose:()=>D(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>D(null),children:"Done"},void 0,!1,void 0,this),children:[F.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),f?F.jsxDEV(rK,{label:"Link",value:f,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var uJ=0;function j6({log:Q,name:U}){if(Q.length===0)return null;return F.jsxDEV("ul",{className:"narration-log",role:"status","aria-live":"polite",children:Q.map((Z)=>F.jsxDEV("li",{className:Z.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(M0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(tR,{name:U,acts:Z.acts},void 0,!1,void 0,this):null]},Z.n,!0,void 0,this))},void 0,!1,void 0,this)}function LO(Q,U,Z,X){let[H,Y]=Y1.useState(0),B=H*1e5+Math.floor(Z/2),W=w0(U,`/-/${Q}/origin`,B),M=w0(U,`/-/${Q}/diff`,B),R=w0(U,`/-/${Q}/changesets`,B),[T,A]=Y1.useState([]),[O,w]=Y1.useState(null),P=(v,h,u)=>{if(A((b)=>[{ok:v,text:h,at:new Date().toISOString(),n:++uJ,...u?.length?{acts:u}:{}},...b].slice(0,8)),!v)Q2(h,"error")},V=async(v,h,u)=>{w(v);try{let b=await T0(U,`/-/${Q}/${h}`,u);if(!b.ok){X(b);let E=e0(await W3(b));return P(!1,`${v}: ${E.text}`,E.acts),null}return await b.json()}catch(b){return P(!1,`${v}: the World did not answer (${b instanceof Error?b.message:String(b)})`),null}finally{w(null),Y((b)=>b+1)}},S=W.state==="ok"&&W.data.origin?qH(W.data.origin):null,f=M.state==="ok"?M.data.changes.length:null,D=R.state==="ok"&&S?JV(R.data.changesets.filter((v)=>!v.pushedBy)).sort((v,h)=>v.createdAt.localeCompare(h.createdAt)):[];return{origin:W,diff:M,sets:R,there:S,changes:f,waiting:D,log:T,busy:O,say:P,send:V,push:async()=>{let v=await V("Push","origin/push",{method:"POST"});if(!v)return;if(v.pushed.length===0){P(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of v.pushed){let u=h.receipts??[],b=u.filter((t)=>t.status==="replayed").length,E=u.filter((t)=>t.status==="confirmed").length,m=u.filter((t)=>t.status==="failed").length,$1=h.outcome==="applied"&&m===0;if(h.outcome==="refused"){P(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((t)=>e0(t).text).join("; ")}`:""}.`);continue}let J1=[`${b} of ${d0(u.length,"change")} replayed there`,...E?[`${E} performed at the vendor by the remote`]:[],...m?[`${m} failed`]:[]];P($1,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${S??"the remote"}: ${J1.join("; ")}${h.refusal?.length?` (${h.refusal.map((t)=>e0(t).text).join("; ")})`:""}.`)}},pull:async()=>{let v=await V("Pull","origin/pull",{method:"POST"});if(!v)return;let h=Object.entries(v.appended).filter(([,b])=>b>0),u=v.rebased.flatMap((b)=>b.conflicts.map((E)=>`${g1(b.twin)} ${E.subject.type}:${E.subject.id} ${E.field}`));P(u.length===0,`Pulled from ${S??"the remote"}: ${h.length?h.map(([b,E])=>`${d0(E,"entry")} at ${g1(b)}`).join(", "):"nothing new"}${u.length?`; conflicts at ${u.join(", ")}`:""}.`)}}}function OV({name:Q,token:U,canWrite:Z,tick:X,refused:H}){let{origin:Y,there:B,changes:W,log:M,busy:R,say:T,send:A,push:O,pull:w}=LO(Q,U,X,H),[P,V]=Y1.useState(""),[S,f]=Y1.useState(""),[D,N]=Y1.useState(!1),y=async(h)=>{h.preventDefault();let u=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:P.trim(),token:S.trim()})});if(u){let b=Object.values(u.appended??{}).reduce((E,m)=>E+m,0);T(!0,`The remote is ${qH(u.origin)}: its history came in (${d0(b,"entry")}).`),f(""),N(!1)}},v=!Z?"This session reads the World; it changes nothing":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"block remote",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{children:"Origin"},void 0,!1,void 0,this),Z?F.jsxDEV("button",{type:"button",onClick:()=>{V(B??""),N(!D)},"aria-expanded":D,children:B?"Change the remote…":"Name a remote…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"pad",children:[Y.state==="ok"?B?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:B},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(M0,{iso:Y.data.origin.fetchedAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("p",{children:"No remote — this World keeps its default data. Name one to push its changesets to a shared World and pull what others pushed there."},void 0,!1,void 0,this):F.jsxDEV(S2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),D?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void y(h),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:P,onChange:(h)=>V(h.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:S,onChange:(h)=>f(h.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:R!==null,children:R==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>N(!1),children:"Cancel"},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)]},void 0,!0,void 0,this),F.jsxDEV(j6,{log:M,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function IV({name:Q,token:U,canWrite:Z,refused:X}){let[H,Y]=Y1.useState(0),B=w0(U,`/-/${Q}/twins`,H),W=w0(U,`/-/${Q}/links`,H),M=w0(U,`/-/${Q}/requests?hours=24`,H),[R,T]=Y1.useState({}),[A,O]=Y1.useState(null),[w,P]=Y1.useState(""),[V,S]=Y1.useState(!1),[f,D]=Y1.useState([]),N=(E,m,$1)=>{if(D((J1)=>[{ok:E,text:m,at:new Date().toISOString(),n:++uJ,...$1?.length?{acts:$1}:{}},...J1].slice(0,6)),!E)Q2(m,"error")},y=W.state==="ok"?Object.keys(W.data.links).sort():[];Y1.useEffect(()=>{let E=!0;return Promise.all(y.map(async(m)=>{let $1=await T0(U,`/-/${Q}/twins/${m}/credential`).catch(()=>null),J1=$1?.ok?await $1.json():null;return[m,J1?.credential??null]})).then((m)=>{if(E)T(Object.fromEntries(m))}),()=>{E=!1}},[Q,U,y.join(","),H]);let v=async(E)=>{if(E.preventDefault(),!A||!w)return;S(!0);let m=await T0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:w,headers:{"content-type":"text/plain"}}).catch(()=>null);if(S(!1),!m){N(!1,`Seal ${A.vendor}: ${Y0} did not answer`);return}if(!m.ok){X(m);let J1=e0(await W3(m));N(!1,`Seal ${g1(A.vendor)}: ${J1.text}`,J1.acts);return}let $1=await m.json().catch(()=>({}));N(!0,`Sealed a credential for ${g1(A.vendor)}${$1.fingerprint?` (${$1.fingerprint})`:""}: it opens for ${$1.boundTo??A.to} only, and is never shown again.`),P(""),O(null),Y((J1)=>J1+1)},h=async(E)=>{if(!await D4({title:`Remove the link ${E}?`,body:`Requests to ${g8}/${Q}/${E}/… stop being forwarded to ${W.state==="ok"?W.data.links[E]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let m=await T0(U,`/-/${Q}/links/${E}`,{method:"DELETE"}).catch(()=>null);if(!m?.ok){if(m)X(m);N(!1,`Remove ${E}: ${m?await E5(m):"the World did not answer"}`);return}N(!0,`Removed the link ${E}.`),Y(($1)=>$1+1)},u=(E)=>E?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge rooted",children:"sealed"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[E.fingerprint?F.jsxDEV("code",{children:E.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(M0,{iso:E.placedAt},void 0,!1,void 0,this),E.sealedBy?` · by ${E.sealedBy==="vault"?"the vault":"the host's key"}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this),b=B.state==="ok"?B.data.twins:[];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"lede",children:"A real vendor's credential lives in one place, sealed: beside this World, bound to where it goes. It is never readable back; this page says only that one is sealed, when, by what, and for where."},void 0,!1,void 0,this),F.jsxDEV(j6,{log:f,name:Q},void 0,!1,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"creds-head",children:[F.jsxDEV("div",{className:"block-head",children:F.jsxDEV("h3",{id:"creds-head",children:"Vendors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(S2,{load:B,what:"the vendors"},void 0,!1,void 0,this),B.state==="ok"?F.jsxDEV("table",{className:"dense","aria-label":"Credentials by vendor",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Bound to"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:b.map((E)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:E.twin},void 0,!1,void 0,this),g1(E.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u(E.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E.credential?.boundTo?F.jsxDEV("code",{children:E.credential.boundTo},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E.root?.url?F.jsxDEV("code",{children:E.root.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"none: a stand-in"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!E.root?.url,title:E.root?.url?`Seal ${g1(E.twin)}'s real credential for ${E.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{P(""),O({vendor:E.twin,to:E.root.url})},children:E.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},E.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,B.state==="ok"&&b.every((E)=>!E.root?.url)?F.jsxDEV("p",{className:"mode pad",children:"No vendor here has a real service behind it, so none holds a credential. Connect one in Settings › Real services; its credential is sealed here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"links-head",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{id:"links-head",children:"Links"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"a vendor with no twin, forwarded with its sealed credential"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(S2,{load:W,what:"the links"},void 0,!1,void 0,this),M.state==="ok"&&(M.data.journalFailures??0)>0?F.jsxDEV("p",{className:"mode pad",role:"alert",children:[M.data.journalFailures," request ",M.data.journalFailures===1?"line was":"lines were"," not kept by this World's server since it started (its links, and the twins it runs in its own process): those requests are missing from what this page counts."]},void 0,!0,void 0,this):null,W.state==="ok"&&y.length===0?F.jsxDEV("p",{className:"mode pad",children:["No links. A link forwards requests for a vendor with no twin here, at ",F.jsxDEV("code",{children:[g8,"/",Q,"/<link>/…"]},void 0,!0,void 0,this),", to that vendor's real API with the credential sealed for it."]},void 0,!0,void 0,this):null,y.length?F.jsxDEV("table",{className:"dense","aria-label":"Links",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Link"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Origin"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:"Requests, 24h"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:y.map((E)=>{let m=W.state==="ok"?W.data.links[E].origin:"",$1=M.state==="ok"?M.data.twins.find((J1)=>J1.twin===E):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:E},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:m},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:$1?F.jsxDEV("span",{title:Object.entries($1.byStatus).map(([J1,t])=>`${J1}: ${t}`).join(" · "),children:$1.requests},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:[u(R[E]??null),R[E]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:R[E].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Z?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{P(""),O({vendor:E,to:m})},children:R[E]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(E),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},E,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(T5,{open:Boolean(A),onClose:()=>{if(!V)O(null)},title:`Seal ${A?g1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>O(null),disabled:V,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:V||!w,children:V?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(E)=>void v(E),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:w,onChange:(E)=>P(E.target.value),autoComplete:"off",required:!0,autoFocus:!0},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 wV({name:Q,token:U,admin:Z,canWrite:X,refused:H,onRemoved:Y,only:B}){let W=(r)=>!B||B===r,[M,R]=Y1.useState(0),T=w0(U,`/-/${Q}/twins`,M),A=w0(U,`/-/${Q}/checks`,M),[O,w]=Y1.useState(0),P=w0(U,`/-/${Q}/clock`,O),[V,S]=Y1.useState([]),[f,D]=Y1.useState(null),[N,y]=Y1.useState(null),[v,h]=Y1.useState(""),[u,b]=Y1.useState("gated"),[E,m]=Y1.useState(!1),$1=(r,n,k)=>{if(S((p)=>[{ok:r,text:n,at:new Date().toISOString(),n:++uJ,...k?.length?{acts:k}:{}},...p].slice(0,6)),!r)Q2(n,"error")},J1=async(r,n,k)=>{let p=await T0(U,n,k).catch(()=>null);if(!p)return $1(!1,`${r}: the World did not answer`),!1;if(!p.ok){H(p);let q1=e0(await W3(p));return $1(!1,`${r}: ${q1.text}`,q1.acts),!1}return $1(!0,`${r}: done.`),R((q1)=>q1+1),!0},t=async(r)=>{if(r.preventDefault(),!N)return;m(!0);let n=N.root??{},k=await J1(v.trim()?`Connect ${g1(N.twin)} to ${v.trim()}`:`Disconnect ${g1(N.twin)}`,`/-/${Q}/twins/${N.twin}/root`,{method:"PUT",body:JSON.stringify(v.trim()?{...n,url:v.trim(),deploy:u}:null)});if(m(!1),k)y(null)},x=async()=>{if(!await D4({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 r=await T0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(r.ok)D(await r.json()),$1(!0,"Rotated: the new tokens are shown once, below.");else $1(!1,`Rotate: ${await E5(r)}`)},g=async()=>{if(!await D4({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 r=await T0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((n)=>n);if(r instanceof Error){$1(!1,`Remove: the host did not answer (${r.message})`);return}if(r.ok)Y();else $1(!1,`Remove: ${await E5(r)}`)},c=T.state==="ok"?T.data.twins:[],a={gated:"gated: a person deploys an approved changeset",auto:"auto: a push deploys at once",hold:"hold: nothing deploys"};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(j6,{log:V,name:Q},void 0,!1,void 0,this),W("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),X?F.jsxDEV(RV,{name:Q,token:U},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"This session reads the World: its keys are managed by whoever holds its token."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W("services")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Real services"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:[c.some((r)=>r.root?.url)?null:"Every vendor here is a stand-in. ","Connect a vendor to its real service to read the real state into this World; its real credential is sealed in the Vault, and an approved changeset deploys there by its policy."]},void 0,!0,void 0,this),F.jsxDEV(S2,{load:T,what:"the vendors"},void 0,!1,void 0,this),T.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Real services",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last read from it"},void 0,!1,void 0,this),X?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:c.map((r)=>{let n=r.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(q2,{vendor:r.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${p1}/${Q}/${r.twin}`,title:`Its log and stored state · ${r.position??0} entries`,onClick:(k)=>{k.preventDefault(),z0([...Q.split("/"),r.twin])},children:g1(r.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:n?.url?F.jsxDEV("code",{children:n.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:n?.url?a[n.deploy??""]??n.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:r.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",r.refresh.failed.count??1,": ",r.refresh.failed.reason??""]},void 0,!0,void 0,this):n?.url?cK(r.refresh?.observedAt??r.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(n?.url??""),b(n?.deploy==="auto"||n?.deploy==="hold"?n.deploy:"gated"),y(r)},children:n?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!n?.url,title:n?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void D4({title:`Read ${g1(r.twin)} now?`,body:`The real ${g1(r.twin)}'s current state is read into this World. Nothing is written to ${g1(r.twin)}.`,action:"Read from it"}).then((k)=>{if(k)J1(`Read from ${g1(r.twin)}`,`/-/${Q}/twins/${r.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},r.twin,!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):null,W("clock")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Clock"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"The instant every vendor here stamps from. Set it and move it forward to see what happens later: renewals, expiries, scheduled sends."},void 0,!1,void 0,this),F.jsxDEV(QV,{name:Q,token:U,clock:P,canWrite:X,onChanged:()=>w((r)=>r+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W("checks")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Checks"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"JavaScript the World runs over every change before it is performed (a changeset's Verify runs them too)."},void 0,!1,void 0,this),F.jsxDEV(S2,{load:A,what:"the checks"},void 0,!1,void 0,this),A.state==="ok"?A.data.checks.length===0?F.jsxDEV("p",{className:"mode",children:"No checks: every change is performed as it comes."},void 0,!1,void 0,this):F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Checks",children:F.jsxDEV("tbody",{children:A.data.checks.map((r)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},r,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,Z&&!B?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),f?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:f.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:f.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void x(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",F.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),F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void g(),children:"Remove world"},void 0,!1,void 0,this)," ",F.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,F.jsxDEV(T5,{open:Boolean(N),onClose:()=>{if(!E)y(null)},title:`Connect ${N?g1(N.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>y(null),disabled:E,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:E,children:E?"Saving…":v.trim()?"Connect":"Disconnect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"connect-root",className:"stack",onSubmit:(r)=>void t(r),children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real service's API address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"rootUrl",value:v,onChange:(r)=>h(r.target.value),placeholder:"https://api.openai.com",autoFocus:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Empty disconnects it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"rootDeploy",value:u,onChange:(r)=>b(r.target.value==="auto"?"auto":r.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((r)=>F.jsxDEV("option",{value:r,children:a[r]},r,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function AO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(gy,{},void 0,!1,void 0,this),F.jsxDEV(uA,{},void 0,!1,void 0,this),F.jsxDEV(bA,{},void 0,!1,void 0,this),F.jsxDEV(DA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var TO=b0(T8(),1);Fq();MO.createRoot(p8).render(TO.jsxDEV(AO,{},void 0,!1,void 0,this));
246
+ `)),M=R.reduce((A,O)=>A.concat(...O),[]);return[R,M]}return[[],[]]},[Q]);return z1.useEffect(()=>{let T=U?.target??DT,R=U?.actInsideInputWithModifier??!0;if(Q!==null){let M=(w)=>{if(H.current=w.ctrlKey||w.metaKey||w.shiftKey||w.altKey,(!H.current||H.current&&!R)&&hX(w))return!1;let V=bT(w.code,B);if(Y.current.add(w[V]),uT(W,Y.current,!1)){let S=w.composedPath?.()?.[0]||w.target,C=S?.nodeName==="BUTTON"||S?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!C))w.preventDefault();X(!0)}},A=(w)=>{let P=bT(w.code,B);if(uT(W,Y.current,!0))X(!1),Y.current.clear();else Y.current.delete(w[P]);if(w.key==="Meta")Y.current.clear();H.current=!1},O=()=>{Y.current.clear(),X(!1)};return T?.addEventListener("keydown",M),T?.addEventListener("keyup",A),window.addEventListener("blur",O),window.addEventListener("contextmenu",O),()=>{T?.removeEventListener("keydown",M),T?.removeEventListener("keyup",A),window.removeEventListener("blur",O),window.removeEventListener("contextmenu",O)}}},[Q,X]),Z}function uT(Q,U,Z){return Q.filter((X)=>Z||X.length===U.size).some((X)=>X.every((H)=>U.has(H)))}function bT(Q,U){return U.includes(Q)?"code":"key"}var ES=()=>{let Q=D0();return z1.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:X}=Q.getState();return X?X.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[X,H,Y],panZoom:W}=Q.getState();if(!W)return!1;return await W.setViewport({x:U.x??X,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,X]=Q.getState().transform;return{x:U,y:Z,zoom:X}},setCenter:async(U,Z,X)=>{return Q.getState().setCenter(U,Z,X)},fitBounds:async(U,Z)=>{let{width:X,height:H,minZoom:Y,maxZoom:W,panZoom:B}=Q.getState(),T=kJ(U,X,H,Y,W,Z?.padding??0.1);if(!B)return!1;return await B.setViewport(T,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:X,snapGrid:H,snapToGrid:Y,domNode:W}=Q.getState();if(!W)return U;let{x:B,y:T}=W.getBoundingClientRect(),R={x:U.x-B,y:U.y-T},M=Z.snapGrid??H,A=Z.snapToGrid??Y;return Y9(R,X,A,M)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:X}=Q.getState();if(!X)return U;let{x:H,y:Y}=X.getBoundingClientRect(),W=u8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function GR(Q,U){let Z=[],X=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")X.set(Y.id,[Y]);else{let W=X.get(Y.id);if(W)W.push(Y);else X.set(Y.id,[Y])}for(let Y of U){let W=X.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 T of W)hS(T,B);Z.push(B)}if(H.length)H.forEach((Y)=>{if(Y.index!==void 0)Z.splice(Y.index,0,{...Y.item});else Z.push({...Y.item})});return Z}function hS(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 ZR(Q,U){return GR(Q,U)}function xS(Q,U){return GR(Q,U)}function h8(Q,U){return{id:Q,type:"select",selected:U}}function W9(Q,U=new Set,Z=!1){let X=[];for(let[H,Y]of Q){let W=U.has(H);if(!(Y.selected===void 0&&!W)&&Y.selected!==W){if(Z)Y.selected=W;X.push(h8(Y.id,W))}}return X}function ET({items:Q=[],lookup:U}){let Z=[],X=new Map(Q.map((H)=>[H.id,H]));for(let[H,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:H})}for(let[H]of U)if(X.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function hT(Q){return{id:Q.id,type:"remove"}}var mS=yX("React Flow","https://reactflow.dev/");function gS(Q,U,Z={}){return _T(Q,U,{...Z,onError:Z.onError??mS})}var xT=(Q)=>cM(Q),pS=(Q)=>CX(Q);function FR(Q){return z1.forwardRef(Q)}var KR=typeof window<"u"?z1.useLayoutEffect:z1.useEffect;function mT(Q){let[U,Z]=z1.useState(BigInt(0)),[X]=z1.useState(()=>cS(()=>Z((H)=>H+BigInt(1))));return KR(()=>{let H=X.get();if(H.length)Q(H),X.reset()},[U]),X}function cS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var XR=z1.createContext(null);function lS({children:Q}){let U=D0(),Z=z1.useCallback((B)=>{let{nodes:T=[],setNodes:R,hasDefaultNodes:M,onNodesChange:A,nodeLookup:O,fitViewQueued:w,onNodesChangeMiddlewareMap:P}=U.getState(),V=T;for(let C of B)V=typeof C==="function"?C(V):C;let S=ET({items:V,lookup:O});for(let C of P.values())S=C(S);if(M)R(V);if(S.length>0)A?.(S);else if(w)window.requestAnimationFrame(()=>{let{fitViewQueued:C,nodes:D,setNodes:N}=U.getState();if(C)N(D)})},[]),X=mT(Z),H=z1.useCallback((B)=>{let{edges:T=[],setEdges:R,hasDefaultEdges:M,onEdgesChange:A,edgeLookup:O}=U.getState(),w=T;for(let P of B)w=typeof P==="function"?P(w):P;if(M)R(w);else if(A)A(ET({items:w,lookup:O}))},[]),Y=mT(H),W=z1.useMemo(()=>({nodeQueue:X,edgeQueue:Y}),[]);return Y1.jsx(XR.Provider,{value:W,children:Q})}function dS(){let Q=z1.useContext(XR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var iS=(Q)=>!!Q.panZoom;function bJ(){let Q=ES(),U=D0(),Z=dS(),X=X0(iS),H=z1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),W=(A)=>{Z.nodeQueue.push(A)},B=(A)=>{Z.edgeQueue.push(A)},T=(A)=>{let{nodeLookup:O,nodeOrigin:w}=U.getState(),P=xT(A)?A:O.get(A.id),V=P.parentId?DX(P.position,P.measured,P.parentId,O,w):P.position,S={...P,position:V,width:P.measured?.width??P.width,height:P.measured?.height??P.height};return X9(S)},R=(A,O,w={replace:!1})=>{W((P)=>P.map((V)=>{if(V.id===A){let S=typeof O==="function"?O(V):O;return w.replace&&xT(S)?S:{...V,...S}}return V}))},M=(A,O,w={replace:!1})=>{B((P)=>P.map((V)=>{if(V.id===A){let S=typeof O==="function"?O(V):O;return w.replace&&pS(S)?S:{...V,...S}}return V}))};return{getNodes:()=>U.getState().nodes.map((A)=>({...A})),getNode:(A)=>Y(A)?.internals.userNode,getInternalNode:Y,getEdges:()=>{let{edges:A=[]}=U.getState();return A.map((O)=>({...O}))},getEdge:(A)=>U.getState().edgeLookup.get(A),setNodes:W,setEdges:B,addNodes:(A)=>{let O=Array.isArray(A)?A:[A];Z.nodeQueue.push((w)=>[...w,...O])},addEdges:(A)=>{let O=Array.isArray(A)?A:[A];Z.edgeQueue.push((w)=>[...w,...O])},toObject:()=>{let{nodes:A=[],edges:O=[],transform:w}=U.getState(),[P,V,S]=w;return{nodes:A.map((C)=>({...C})),edges:O.map((C)=>({...C})),viewport:{x:P,y:V,zoom:S}}},deleteElements:async({nodes:A=[],edges:O=[]})=>{let{nodes:w,edges:P,onNodesDelete:V,onEdgesDelete:S,triggerNodeChanges:C,triggerEdgeChanges:D,onDelete:N,onBeforeDelete:v}=U.getState(),{nodes:u,edges:h}=await iM({nodesToRemove:A,edgesToRemove:O,nodes:w,edges:P,onBeforeDelete:v}),k=h.length>0,b=u.length>0;if(k){let E=h.map(hT);S?.(h),D(E)}if(b){let E=u.map(hT);V?.(u),C(E)}if(b||k)N?.({nodes:u,edges:h});return{deletedNodes:u,deletedEdges:h}},getIntersectingNodes:(A,O=!0,w)=>{let P=VX(A),V=P?A:T(A),S=w!==void 0;if(!V)return[];return(w||U.getState().nodes).filter((C)=>{let D=U.getState().nodeLookup.get(C.id);if(D&&!P&&(C.id===A.id||!D.internals.positionAbsolute))return!1;let N=X9(S?C:D),v=yJ(N,V);return O&&v>0||v>=N.width*N.height||v>=V.width*V.height})},isNodeIntersecting:(A,O,w=!0)=>{let V=VX(A)?A:T(A);if(!V)return!1;let S=yJ(V,O);return w&&S>0||S>=O.width*O.height||S>=V.width*V.height},updateNode:R,updateNodeData:(A,O,w={replace:!1})=>{R(A,(P)=>{let V=typeof O==="function"?O(P):O;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},updateEdge:M,updateEdgeData:(A,O,w={replace:!1})=>{M(A,(P)=>{let V=typeof O==="function"?O(P):O;return w.replace?{...P,data:V}:{...P,data:{...P.data,...V}}},w)},getNodesBounds:(A)=>{let{nodeLookup:O,nodeOrigin:w}=U.getState();return SX(A,{nodeLookup:O,nodeOrigin:w})},getHandleConnections:({type:A,id:O,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}-${A}${O?`-${O}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:O,nodeId:w})=>Array.from(U.getState().connectionLookup.get(`${w}${A?O?`-${A}-${O}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let O=U.getState().fitViewResolver??sM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:O}),Z.nodeQueue.push((w)=>[...w]),O.promise}}},[]);return z1.useMemo(()=>{return{...H,...Q,viewportInitialized:X}},[X])}var gT=(Q)=>Q.selected,rS=typeof window<"u"?window:void 0;function aS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=D0(),{deleteElements:X}=bJ(),H=uJ(Q,{actInsideInputWithModifier:!1}),Y=uJ(U,{target:rS});z1.useEffect(()=>{if(H){let{edges:W,nodes:B}=Z.getState();X({nodes:B.filter(gT),edges:W.filter(gT)}),Z.setState({nodesSelectionActive:!1})}},[H]),z1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function sS(Q){let U=D0();z1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let X=lq(Q.current);if(X.height===0||X.width===0)U.getState().onError?.("004",a2.error004());U.setState({width:X.width||500,height:X.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let X=new ResizeObserver(()=>Z());return X.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),X&&Q.current)X.unobserve(Q.current)}}},[])}var qU={position:"absolute",width:"100%",height:"100%",top:0,left:0},tS=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function oS({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:X=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=O3.Free,zoomOnDoubleClick:B=!0,panOnDrag:T=!0,defaultViewport:R,translateExtent:M,minZoom:A,maxZoom:O,zoomActivationKeyCode:w,preventScrolling:P=!0,children:V,noWheelClassName:S,noPanClassName:C,onViewportChange:D,isControlledViewport:N,paneClickDistance:v,selectionOnDrag:u}){let h=D0(),k=z1.useRef(null),{userSelectionActive:b,lib:E,connectionInProgress:m}=X0(tS,k0),e=uJ(w),Q1=z1.useRef();sS(k);let J1=z1.useCallback((x)=>{if(D?.({x:x[0],y:x[1],zoom:x[2]}),!N)h.setState({transform:x})},[D,N]);return z1.useEffect(()=>{if(k.current){Q1.current=MT({domNode:k.current,minZoom:A,maxZoom:O,translateExtent:M,viewport:R,onDraggingChange:(a)=>h.setState((d)=>d.paneDragging===a?d:{paneDragging:a}),onPanZoomStart:(a,d)=>{let{onViewportChangeStart:t,onMoveStart:y}=h.getState();y?.(a,d),t?.(d)},onPanZoom:(a,d)=>{let{onViewportChange:t,onMove:y}=h.getState();y?.(a,d),t?.(d)},onPanZoomEnd:(a,d)=>{let{onViewportChangeEnd:t,onMoveEnd:y}=h.getState();y?.(a,d),t?.(d)}});let{x,y:g,zoom:c}=Q1.current.getViewport();return h.setState({panZoom:Q1.current,transform:[x,g,c],domNode:k.current.closest(".react-flow")}),()=>{Q1.current?.destroy()}}},[]),z1.useEffect(()=>{Q1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:X,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:B,panOnDrag:T,zoomActivationKeyPressed:e,preventScrolling:P,noPanClassName:C,userSelectionActive:b,noWheelClassName:S,lib:E,onTransformChange:J1,connectionInProgress:m,selectionOnDrag:u,paneClickDistance:v})},[Q,U,Z,X,H,Y,W,B,T,e,P,C,b,S,E,J1,m,u,v]),Y1.jsx("div",{className:"react-flow__renderer",ref:k,style:qU,children:V})}var nS=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function eS(){let{userSelectionActive:Q,userSelectionRect:U}=X0(nS,k0);if(!(Q&&U))return null;return Y1.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 rX=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},_j=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Jj({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=k8.Full,panOnDrag:X,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:B,onSelectionEnd:T,onPaneClick:R,onPaneContextMenu:M,onPaneScroll:A,onPaneMouseEnter:O,onPaneMouseMove:w,onPaneMouseLeave:P,children:V}){let S=z1.useRef(0),C=D0(),{userSelectionActive:D,elementsSelectable:N,dragging:v,panBy:u,autoPanSpeed:h}=X0(_j,k0),k=N&&(Q||D),b=z1.useRef(null),E=z1.useRef(),m=z1.useRef(new Set),e=z1.useRef(new Set),Q1=z1.useRef(!1),J1=z1.useRef(!1),x=z1.useRef({x:0,y:0}),g=z1.useRef(!1),c=(U1)=>{if(J1.current||Q1.current||C.getState().connection.inProgress){J1.current=!1,Q1.current=!1;return}R?.(U1),C.getState().resetSelectedElements(),C.setState({nodesSelectionActive:!1})},a=(U1)=>{if(Array.isArray(X)&&X?.includes(2)){U1.preventDefault();return}M?.(U1)},d=A?(U1)=>A(U1):void 0,t=(U1)=>{if(J1.current)U1.stopPropagation(),J1.current=!1},y=(U1)=>{if(U1.pointerType==="touch"&&X!==!1&&!U)return;let{domNode:w1,transform:v1}=C.getState();if(E.current=w1?.getBoundingClientRect(),!E.current)return;let M1=U1.target===b.current;if(!M1&&!!U1.target.closest(".nokey")||!Q||!(W&&M1||U)||U1.button!==0||!U1.isPrimary)return;U1.target?.setPointerCapture?.(U1.pointerId),J1.current=!1;let{x:I1,y:C1}=b5(U1.nativeEvent,E.current),K1=Y9({x:I1,y:C1},v1);if(C.setState({userSelectionRect:{width:0,height:0,startX:K1.x,startY:K1.y,x:I1,y:C1}}),!M1)U1.stopPropagation(),U1.preventDefault()};function p(U1,w1){let{userSelectionRect:v1}=C.getState();if(!v1)return;let{transform:M1,nodeLookup:G1,edgeLookup:B1,connectionLookup:I1,triggerNodeChanges:C1,triggerEdgeChanges:K1,defaultEdgeOptions:u1}=C.getState(),N1={x:v1.startX,y:v1.startY},{x:Q0,y:b1}=u8(N1,M1),a0={startX:N1.x,startY:N1.y,x:U1<Q0?U1:Q0,y:w1<b1?w1:b1,width:Math.abs(U1-Q0),height:Math.abs(w1-b1)},q2=m.current,O0=e.current;m.current=new Set(mq(G1,a0,M1,Z===k8.Partial,!0).map((u2)=>u2.id)),e.current=new Set;let D2=u1?.selectable??!0;for(let u2 of m.current){let P2=I1.get(u2);if(!P2)continue;for(let{edgeId:N2}of P2.values()){let C2=B1.get(N2);if(C2&&(C2.selectable??D2))e.current.add(N2)}}if(!uX(q2,m.current)){let u2=W9(G1,m.current,!0);C1(u2)}if(!uX(O0,e.current)){let u2=W9(B1,e.current);K1(u2)}C.setState({userSelectionRect:a0,userSelectionActive:!0,nodesSelectionActive:!1})}function q1(){if(!H||!E.current)return;let[U1,w1]=gq(x.current,E.current,h);u({x:U1,y:w1}).then((v1)=>{if(!J1.current||!v1){S.current=requestAnimationFrame(q1);return}let{x:M1,y:G1}=x.current;p(M1,G1),S.current=requestAnimationFrame(q1)})}let s=()=>{cancelAnimationFrame(S.current),S.current=0,g.current=!1};z1.useEffect(()=>{return()=>s()},[]);let W1=(U1)=>{let{userSelectionRect:w1,transform:v1,resetSelectedElements:M1}=C.getState();if(!E.current||!w1)return;let{x:G1,y:B1}=b5(U1.nativeEvent,E.current);x.current={x:G1,y:B1};let I1=u8({x:w1.startX,y:w1.startY},v1);if(!J1.current){let C1=U?0:Y;if(Math.hypot(G1-I1.x,B1-I1.y)<=C1)return;M1(),B?.(U1)}if(J1.current=!0,!g.current)q1(),g.current=!0;p(G1,B1)},R1=(U1)=>{if(!k){if(U1.target===b.current&&C.getState().connection.inProgress)Q1.current=!0;return}if(U1.button!==0)return;if(U1.target?.releasePointerCapture?.(U1.pointerId),!D&&U1.target===b.current&&C.getState().userSelectionRect)c?.(U1);if(C.setState({userSelectionActive:!1,userSelectionRect:null}),J1.current)T?.(U1),C.setState({nodesSelectionActive:m.current.size>0});s()},T1=(U1)=>{U1.target?.releasePointerCapture?.(U1.pointerId),s()},A1=X===!0||Array.isArray(X)&&X.includes(0);return Y1.jsxs("div",{className:m0(["react-flow__pane",{draggable:A1,dragging:v,selection:Q}]),onClick:k?void 0:rX(c,b),onContextMenu:rX(a,b),onWheel:rX(d,b),onPointerEnter:k?void 0:O,onPointerMove:k?W1:w,onPointerUp:R1,onPointerCancel:k?T1:void 0,onPointerDownCapture:k?y:void 0,onClickCapture:k?t:void 0,onPointerLeave:P,ref:b,style:qU,children:[V,Y1.jsx(eS,{})]})}function sX({id:Q,store:U,unselect:Z=!1,nodeRef:X}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:B,onError:T}=U.getState(),R=B.get(Q);if(!R){T?.("012",a2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!R.selected)H([Q]);else if(Z||R.selected&&W)Y({nodes:[R],edges:[]}),requestAnimationFrame(()=>X?.current?.blur())}function HR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:X,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let B=D0(),[T,R]=z1.useState(!1),M=z1.useRef();return z1.useEffect(()=>{if(U)return;return M.current=XT({getStoreItems:()=>B.getState(),onNodeMouseDown:(A)=>{sX({id:A,store:B,nodeRef:Q})},onDragStart:()=>{R(!0)},onDragStop:()=>{R(!1)}}),()=>{M.current?.destroy(),M.current=void 0}},[U,B,Q]),z1.useEffect(()=>{if(U||!Q.current||!M.current)return;M.current.update({noDragClassName:Z,handleSelector:X,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,X,U,Y,Q,H,W]),T}var $j=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function YR(){let Q=D0();return z1.useCallback((Z)=>{let{nodeExtent:X,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:B,updateNodePositions:T,nodeLookup:R,nodeOrigin:M}=Q.getState(),A=new Map,O=$j(W),w=H?Y[0]:5,P=H?Y[1]:5,V=Z.direction.x*w*Z.factor,S=Z.direction.y*P*Z.factor;for(let[,C]of R){if(!O(C))continue;let D={x:C.internals.positionAbsolute.x+V,y:C.internals.positionAbsolute.y+S};if(H)D=H9(D,Y);let{position:N,positionAbsolute:v}=jX({nodeId:C.id,nextPosition:D,nodeLookup:R,nodeExtent:X,nodeOrigin:M,onError:B});C.position=N,C.internals.positionAbsolute=v,A.set(C.id,C)}T(A)},[])}var tX=z1.createContext(null),Qj=tX.Provider;tX.Consumer;var oX=()=>{return z1.useContext(tX)},qj=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),zR=z1.createContext(null);function Uj({children:Q}){let U=X0(qj,k0);return Y1.jsx(zR.Provider,{value:U,children:Q})}function Gj(){let Q=z1.useContext(zR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Zj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},Fj=(Q,U,Z)=>(X)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=X,{fromHandle:B,toHandle:T,isValid:R}=W;if(!B&&!H)return Zj;let M=T?.nodeId===Q&&T?.id===U&&T?.type===Z;return{connectingFrom:B?.nodeId===Q&&B?.id===U&&B?.type===Z,connectingTo:M,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===P6.Strict?B?.type!==Z:Q!==B?.nodeId||U!==B?.id,connectionInProcess:!!B,clickConnectionInProcess:!!H,valid:M&&R}};function Kj({type:Q="source",position:U=D1.Top,isValidConnection:Z,isConnectable:X=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:B,children:T,className:R,onMouseDown:M,onTouchStart:A,...O},w){let P=W||null,V=Q==="target",S=D0(),C=oX(),{connectOnClick:D,noPanClassName:N,rfId:v}=Gj(),{connectingFrom:u,connectingTo:h,clickConnecting:k,isPossibleEndHandle:b,connectionInProcess:E,clickConnectionInProcess:m,valid:e}=X0(Fj(C,P,Q),k0);if(!C)S.getState().onError?.("010",a2.error010());let Q1=(g)=>{let{defaultEdgeOptions:c,onConnect:a,hasDefaultEdges:d}=S.getState(),t={...c,...g};if(d){let{edges:y,setEdges:p,onError:q1}=S.getState();p(gS(t,y,{onError:q1}))}a?.(t),B?.(t)},J1=(g)=>{if(!C)return;let c=xX(g.nativeEvent);if(H&&(c&&g.button===0||!c)){let a=S.getState();oq.onPointerDown(g.nativeEvent,{handleDomNode:g.currentTarget,autoPanOnConnect:a.autoPanOnConnect,connectionMode:a.connectionMode,connectionRadius:a.connectionRadius,domNode:a.domNode,nodeLookup:a.nodeLookup,lib:a.lib,isTarget:V,handleId:P,nodeId:C,flowId:a.rfId,panBy:a.panBy,cancelConnection:a.cancelConnection,onConnectStart:a.onConnectStart,onConnectEnd:(...d)=>S.getState().onConnectEnd?.(...d),updateConnection:a.updateConnection,onConnect:Q1,isValidConnection:Z||((...d)=>S.getState().isValidConnection?.(...d)??!0),getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,autoPanSpeed:a.autoPanSpeed,dragThreshold:a.connectionDragThreshold})}if(c)M?.(g);else A?.(g)},x=(g)=>{let{onClickConnectStart:c,onClickConnectEnd:a,connectionClickStartHandle:d,connectionMode:t,isValidConnection:y,lib:p,rfId:q1,nodeLookup:s,connection:W1}=S.getState();if(!C||!d&&!H)return;if(!d){c?.(g.nativeEvent,{nodeId:C,handleId:P,handleType:Q}),S.setState({connectionClickStartHandle:{nodeId:C,type:Q,id:P}});return}let R1=EX(g.target),T1=Z||y,{connection:A1,isValid:U1}=oq.isValid(g.nativeEvent,{handle:{nodeId:C,id:P,type:Q},connectionMode:t,fromNodeId:d.nodeId,fromHandleId:d.id||null,fromType:d.type,isValidConnection:T1,flowId:q1,doc:R1,lib:p,nodeLookup:s});if(U1&&A1)Q1(A1);let w1=structuredClone(W1);delete w1.inProgress,w1.toPosition=w1.toHandle?w1.toHandle.position:null,a?.(g,w1),S.setState({connectionClickStartHandle:null})};return Y1.jsx("div",{"data-handleid":P,"data-nodeid":C,"data-handlepos":U,"data-id":`${v}-${C}-${P}-${Q}`,className:m0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",N,R,{source:!V,target:V,connectable:X,connectablestart:H,connectableend:Y,clickconnecting:k,connectingfrom:u,connectingto:h,valid:e,connectionindicator:X&&(!E||b)&&(E||m?Y:H)}]),onMouseDown:J1,onTouchStart:J1,onClick:D?x:void 0,ref:w,...O,children:T})}var JU=z1.memo(FR(Kj));function Xj({data:Q,isConnectable:U,sourcePosition:Z=D1.Bottom}){return Y1.jsxs(Y1.Fragment,{children:[Q?.label,Y1.jsx(JU,{type:"source",position:Z,isConnectable:U})]})}function Hj({data:Q,isConnectable:U,targetPosition:Z=D1.Top,sourcePosition:X=D1.Bottom}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(JU,{type:"target",position:Z,isConnectable:U}),Q?.label,Y1.jsx(JU,{type:"source",position:X,isConnectable:U})]})}function Yj(){return null}function zj({data:Q,isConnectable:U,targetPosition:Z=D1.Top}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(JU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var $U={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},pT={input:Xj,default:Hj,output:zj,group:Yj};function Wj(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 Bj=(Q)=>{let{width:U,height:Z,x:X,y:H}=E8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:u5(U)?U:null,height:u5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${X}px,${H}px)`}};function Lj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let X=D0(),{width:H,height:Y,transformString:W,userSelectionActive:B}=X0(Bj,k0),T=YR(),R=z1.useRef(null);z1.useEffect(()=>{if(!Z)R.current?.focus({preventScroll:!0})},[Z]);let M=!B&&H!==null&&Y!==null;if(HR({nodeRef:R,disabled:!M}),!M)return null;let A=Q?(w)=>{let P=X.getState().nodes.filter((V)=>V.selected);Q(w,P)}:void 0,O=(w)=>{if(Object.prototype.hasOwnProperty.call($U,w.key))w.preventDefault(),T({direction:$U[w.key],factor:w.shiftKey?4:1})};return Y1.jsx("div",{className:m0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:Y1.jsx("div",{ref:R,className:"react-flow__nodesselection-rect",onContextMenu:A,tabIndex:Z?void 0:-1,onKeyDown:Z?void 0:O,style:{width:H,height:Y}})})}var cT=typeof window<"u"?window:void 0,Aj=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function WR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:X,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:B,deleteKeyCode:T,selectionKeyCode:R,selectionOnDrag:M,selectionMode:A,onSelectionStart:O,onSelectionEnd:w,multiSelectionKeyCode:P,panActivationKeyCode:V,zoomActivationKeyCode:S,elementsSelectable:C,zoomOnScroll:D,zoomOnPinch:N,panOnScroll:v,panOnScrollSpeed:u,panOnScrollMode:h,zoomOnDoubleClick:k,panOnDrag:b,autoPanOnSelection:E,defaultViewport:m,translateExtent:e,minZoom:Q1,maxZoom:J1,preventScrolling:x,onSelectionContextMenu:g,noWheelClassName:c,noPanClassName:a,disableKeyboardA11y:d,onViewportChange:t,isControlledViewport:y}){let{nodesSelectionActive:p,userSelectionActive:q1}=X0(Aj,k0),s=uJ(R,{target:cT}),W1=uJ(V,{target:cT}),R1=W1||b,T1=W1||v,A1=M&&R1!==!0,U1=s||q1||A1;return aS({deleteKeyCode:T,multiSelectionKeyCode:P}),Y1.jsx(oS,{onPaneContextMenu:Y,elementsSelectable:C,zoomOnScroll:D,zoomOnPinch:N,panOnScroll:T1,panActivationKeyPressed:W1,panOnScrollSpeed:u,panOnScrollMode:h,zoomOnDoubleClick:k,panOnDrag:!s&&R1,defaultViewport:m,translateExtent:e,minZoom:Q1,maxZoom:J1,zoomActivationKeyCode:S,preventScrolling:x,noWheelClassName:c,noPanClassName:a,onViewportChange:t,isControlledViewport:y,paneClickDistance:B,selectionOnDrag:A1,children:Y1.jsxs(Jj,{onSelectionStart:O,onSelectionEnd:w,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:X,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:R1,autoPanOnSelection:E,isSelecting:!!U1,selectionMode:A,selectionKeyPressed:s,paneClickDistance:B,selectionOnDrag:A1,children:[Q,p&&Y1.jsx(Lj,{onSelectionContextMenu:g,noPanClassName:a,disableKeyboardA11y:d})]})})}WR.displayName="FlowRenderer";var Mj=z1.memo(WR),Tj=(Q)=>(U)=>{return Q?mq(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 Rj(Q){return X0(z1.useCallback(Tj(Q),[Q]),k0)}var Oj=(Q)=>Q.updateNodeInternals;function Ij(){let Q=X0(Oj),[U]=z1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let X=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");X.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(X)})});return z1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function wj({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:X}){let H=D0(),Y=z1.useRef(null),W=z1.useRef(null),B=z1.useRef(Q.sourcePosition),T=z1.useRef(Q.targetPosition),R=z1.useRef(U),M=Z&&!!Q.internals.handleBounds;return z1.useEffect(()=>{if(Y.current&&!Q.hidden&&(!M||W.current!==Y.current)){if(W.current)X?.unobserve(W.current);X?.observe(Y.current),W.current=Y.current}},[M,Q.hidden]),z1.useEffect(()=>{return()=>{if(W.current)X?.unobserve(W.current),W.current=null}},[]),z1.useEffect(()=>{if(Y.current){let A=R.current!==U,O=B.current!==Q.sourcePosition,w=T.current!==Q.targetPosition;if(A||O||w)R.current=U,B.current=Q.sourcePosition,T.current=Q.targetPosition,H.getState().updateNodeInternals(new Map([[Q.id,{id:Q.id,nodeElement:Y.current,force:!0}]]))}},[Q.id,U,Q.sourcePosition,Q.targetPosition]),Y}function Pj({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:X,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:B,elementsSelectable:T,nodesConnectable:R,nodesFocusable:M,resizeObserver:A,noDragClassName:O,noPanClassName:w,disableKeyboardA11y:P,rfId:V,nodeTypes:S,nodeClickDistance:C,onError:D}){let{node:N,internals:v,isParent:u}=X0((U1)=>{let w1=U1.nodeLookup.get(Q),v1=U1.parentLookup.has(Q);return{node:w1,internals:w1.internals,isParent:v1}},k0),h=N.type||"default",k=S?.[h]||pT[h];if(k===void 0)D?.("003",a2.error003(h)),h="default",k=S?.default||pT.default;let b=!!(N.draggable||B&&typeof N.draggable>"u"),E=!!(N.selectable||T&&typeof N.selectable>"u"),m=!!(N.connectable||R&&typeof N.connectable>"u"),e=!!(N.focusable||M&&typeof N.focusable>"u"),Q1=D0(),J1=kX(N),x=wj({node:N,nodeType:h,hasDimensions:J1,resizeObserver:A}),g=HR({nodeRef:x,disabled:N.hidden||!b,noDragClassName:O,handleSelector:N.dragHandle,nodeId:Q,isSelectable:E,nodeClickDistance:C}),c=YR();if(N.hidden)return null;let a=E5(N),d=Wj(N),t=E||b||U||Z||X||H,y=Z?(U1)=>Z(U1,{...v.userNode}):void 0,p=X?(U1)=>X(U1,{...v.userNode}):void 0,q1=H?(U1)=>H(U1,{...v.userNode}):void 0,s=Y?(U1)=>Y(U1,{...v.userNode}):void 0,W1=W?(U1)=>W(U1,{...v.userNode}):void 0,R1=(U1)=>{let{selectNodesOnDrag:w1,nodeDragThreshold:v1}=Q1.getState();if(E&&(!w1||!b||v1>0))sX({id:Q,store:Q1,nodeRef:x});if(U)U(U1,{...v.userNode})},T1=(U1)=>{if(hX(U1.nativeEvent)||P)return;if(wX.includes(U1.key)&&E){let w1=U1.key==="Escape";sX({id:Q,store:Q1,unselect:w1,nodeRef:x})}else if(b&&N.selected&&Object.prototype.hasOwnProperty.call($U,U1.key)){U1.preventDefault();let{ariaLabelConfig:w1}=Q1.getState();Q1.setState({ariaLiveMessage:w1["node.a11yDescription.ariaLiveMessage"]({direction:U1.key.replace("Arrow","").toLowerCase(),x:~~v.positionAbsolute.x,y:~~v.positionAbsolute.y})}),c({direction:$U[U1.key],factor:U1.shiftKey?4:1})}},A1=()=>{if(P||!x.current?.matches(":focus-visible"))return;let{transform:U1,width:w1,height:v1,autoPanOnNodeFocus:M1,setCenter:G1}=Q1.getState();if(!M1)return;if(!(mq(new Map([[Q,N]]),{x:0,y:0,width:w1,height:v1},U1,!0).length>0))G1(N.position.x+a.width/2,N.position.y+a.height/2,{zoom:U1[2]})};return Y1.jsx("div",{className:m0(["react-flow__node",`react-flow__node-${h}`,{[w]:b},N.className,{selected:N.selected,selectable:E,parent:u,draggable:b,dragging:g}]),ref:x,style:{zIndex:v.z,transform:`translate(${v.positionAbsolute.x}px,${v.positionAbsolute.y}px)`,pointerEvents:t?"all":"none",visibility:J1?"visible":"hidden",...N.style,...d},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:y,onMouseMove:p,onMouseLeave:q1,onContextMenu:s,onClick:R1,onDoubleClick:W1,onKeyDown:e?T1:void 0,tabIndex:e?0:void 0,onFocus:e?A1:void 0,role:N.ariaRole??(e?"group":void 0),"aria-roledescription":"node","aria-describedby":P?void 0:`${QR}-${V}`,"aria-label":N.ariaLabel,...N.domAttributes,children:Y1.jsx(Qj,{value:Q,children:Y1.jsx(k,{id:Q,data:N.data,type:h,positionAbsoluteX:v.positionAbsolute.x,positionAbsoluteY:v.positionAbsolute.y,selected:N.selected??!1,selectable:E,draggable:b,deletable:N.deletable??!0,isConnectable:m,sourcePosition:N.sourcePosition,targetPosition:N.targetPosition,dragging:g,dragHandle:N.dragHandle,zIndex:v.z,parentId:N.parentId,...a})})})}var Nj=z1.memo(Pj),Cj=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function BR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:X,onError:H}=X0(Cj,k0),Y=Rj(Q.onlyRenderVisibleElements),W=Ij();return Y1.jsx("div",{className:"react-flow__nodes",style:qU,children:Y.map((B)=>{return Y1.jsx(Nj,{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:X,nodeClickDistance:Q.nodeClickDistance,onError:H},B)})})}BR.displayName="NodeRenderer";var fj=z1.memo(BR);function Sj(Q){return X0(z1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let X=[];if(Z.width&&Z.height)for(let H of Z.edges){let Y=Z.nodeLookup.get(H.source),W=Z.nodeLookup.get(H.target);if(Y&&W&&eM({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))X.push(H.id)}return X},[Q]),k0)}var jj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return Y1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},vj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return Y1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},lT={[Z9.Arrow]:jj,[Z9.ArrowClosed]:vj};function Vj(Q){let U=D0();return z1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(lT,Q))return U.getState().onError?.("009",a2.error009(Q)),null;return lT[Q]},[Q])}var yj=({id:Q,type:U,color:Z,width:X=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:B="auto-start-reverse"})=>{let T=Vj(U);if(!T)return null;return Y1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${X}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:B,refX:"0",refY:"0",children:Y1.jsx(T,{color:Z,strokeWidth:W})})},LR=({defaultColor:Q,rfId:U})=>{let Z=X0((Y)=>Y.edges),X=X0((Y)=>Y.defaultEdgeOptions),H=z1.useMemo(()=>{return $T(Z,{id:U,defaultColor:Q,defaultMarkerStart:X?.markerStart,defaultMarkerEnd:X?.markerEnd})},[Z,X,U,Q]);if(!H.length)return null;return Y1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:Y1.jsx("defs",{children:H.map((Y)=>Y1.jsx(yj,{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))})})};LR.displayName="MarkerDefinitions";var kj=z1.memo(LR);function AR({x:Q,y:U,label:Z,labelStyle:X,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:B=2,children:T,className:R,...M}){let[A,O]=z1.useState({x:1,y:0,width:0,height:0}),w=m0(["react-flow__edge-textwrapper",R]),P=z1.useRef(null);if(z1.useEffect(()=>{if(P.current){let V=P.current.getBBox();O({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return Y1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:w,visibility:A.width?"visible":"hidden",...M,children:[H&&Y1.jsx("rect",{width:A.width+2*W[0],x:-W[0],y:-W[1],height:A.height+2*W[1],className:"react-flow__edge-textbg",style:Y,rx:B,ry:B}),Y1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:P,style:X,children:Z}),T]})}AR.displayName="EdgeText";var Dj=z1.memo(AR);function UU({path:Q,labelX:U,labelY:Z,label:X,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:T,interactionWidth:R=20,...M}){return Y1.jsxs(Y1.Fragment,{children:[Y1.jsx("path",{...M,d:Q,fill:"none",className:m0(["react-flow__edge-path",M.className])}),R?Y1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:R,className:"react-flow__edge-interaction"}):null,X&&u5(U)&&u5(Z)?Y1.jsx(Dj,{x:U,y:Z,label:X,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:T}):null]})}function dT({pos:Q,x1:U,y1:Z,x2:X,y2:H}){if(Q===D1.Left||Q===D1.Right)return[0.5*(U+X),Z];return[U,0.5*(Z+H)]}function MR({sourceX:Q,sourceY:U,sourcePosition:Z=D1.Bottom,targetX:X,targetY:H,targetPosition:Y=D1.Top}){let[W,B]=dT({pos:Z,x1:Q,y1:U,x2:X,y2:H}),[T,R]=dT({pos:Y,x1:X,y1:H,x2:Q,y2:U}),[M,A,O,w]=dq({sourceX:Q,sourceY:U,targetX:X,targetY:H,sourceControlX:W,sourceControlY:B,targetControlX:T,targetControlY:R});return[`M${Q},${U} C${W},${B} ${T},${R} ${X},${H}`,M,A,O,w]}function TR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,sourcePosition:W,targetPosition:B,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:C})=>{let[D,N,v]=MR({sourceX:Z,sourceY:X,sourcePosition:W,targetX:H,targetY:Y,targetPosition:B}),u=Q.isInternal?void 0:U;return Y1.jsx(UU,{id:u,path:D,labelX:N,labelY:v,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:C})})}var uj=TR({isInternal:!1}),RR=TR({isInternal:!0});uj.displayName="SimpleBezierEdge";RR.displayName="SimpleBezierEdgeInternal";function OR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,sourcePosition:w=D1.Bottom,targetPosition:P=D1.Top,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:D})=>{let[N,v,u]=DJ({sourceX:Z,sourceY:X,sourcePosition:w,targetX:H,targetY:Y,targetPosition:P,borderRadius:C?.borderRadius,offset:C?.offset,stepPosition:C?.stepPosition}),h=Q.isInternal?void 0:U;return Y1.jsx(UU,{id:h,path:N,labelX:v,labelY:u,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:V,markerStart:S,interactionWidth:D})})}var IR=OR({isInternal:!1}),wR=OR({isInternal:!0});IR.displayName="SmoothStepEdge";wR.displayName="SmoothStepEdgeInternal";function PR(Q){return z1.memo(({id:U,...Z})=>{let X=Q.isInternal?void 0:U;return Y1.jsx(IR,{...Z,id:X,pathOptions:z1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var bj=PR({isInternal:!1}),NR=PR({isInternal:!0});bj.displayName="StepEdge";NR.displayName="StepEdgeInternal";function CR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:w,markerStart:P,interactionWidth:V})=>{let[S,C,D]=rq({sourceX:Z,sourceY:X,targetX:H,targetY:Y}),N=Q.isInternal?void 0:U;return Y1.jsx(UU,{id:N,path:S,labelX:C,labelY:D,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:w,markerStart:P,interactionWidth:V})})}var Ej=CR({isInternal:!1}),fR=CR({isInternal:!0});Ej.displayName="StraightEdge";fR.displayName="StraightEdgeInternal";function SR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:X,targetX:H,targetY:Y,sourcePosition:W=D1.Bottom,targetPosition:B=D1.Top,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,pathOptions:C,interactionWidth:D})=>{let[N,v,u]=iq({sourceX:Z,sourceY:X,sourcePosition:W,targetX:H,targetY:Y,targetPosition:B,curvature:C?.curvature}),h=Q.isInternal?void 0:U;return Y1.jsx(UU,{id:h,path:N,labelX:v,labelY:u,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:w,style:P,markerEnd:V,markerStart:S,interactionWidth:D})})}var hj=SR({isInternal:!1}),jR=SR({isInternal:!0});hj.displayName="BezierEdge";jR.displayName="BezierEdgeInternal";var iT={default:jR,straight:fR,step:NR,smoothstep:wR,simplebezier:RR},rT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},xj=(Q,U,Z)=>{if(Z===D1.Left)return Q-U;if(Z===D1.Right)return Q+U;return Q},mj=(Q,U,Z)=>{if(Z===D1.Top)return Q-U;if(Z===D1.Bottom)return Q+U;return Q},aT="react-flow__edgeupdater";function sT({position:Q,centerX:U,centerY:Z,radius:X=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:B}){return Y1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:m0([aT,`${aT}-${B}`]),cx:xj(U,X,Q),cy:mj(Z,X,Q),r:X,stroke:"transparent",fill:"transparent"})}function gj({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:X,sourceY:H,targetX:Y,targetY:W,sourcePosition:B,targetPosition:T,onReconnect:R,onReconnectStart:M,onReconnectEnd:A,setReconnecting:O,setUpdateHover:w}){let P=D0(),V=(v,u)=>{if(v.button!==0)return;let{autoPanOnConnect:h,domNode:k,connectionMode:b,connectionRadius:E,lib:m,onConnectStart:e,cancelConnection:Q1,nodeLookup:J1,rfId:x,panBy:g,updateConnection:c}=P.getState(),a=u.type==="target",d=(p,q1)=>{O(!1),A?.(p,Z,u.type,q1)},t=(p)=>R?.(Z,p),y=(p,q1)=>{O(!0),M?.(v,Z,u.type),e?.(p,q1)};oq.onPointerDown(v.nativeEvent,{autoPanOnConnect:h,connectionMode:b,connectionRadius:E,domNode:k,handleId:u.id,nodeId:u.nodeId,nodeLookup:J1,isTarget:a,edgeUpdaterType:u.type,lib:m,flowId:x,cancelConnection:Q1,panBy:g,isValidConnection:(...p)=>P.getState().isValidConnection?.(...p)??!0,onConnect:t,onConnectStart:y,onConnectEnd:(...p)=>P.getState().onConnectEnd?.(...p),onReconnectEnd:d,updateConnection:c,getTransform:()=>P.getState().transform,getFromHandle:()=>P.getState().connection.fromHandle,dragThreshold:P.getState().connectionDragThreshold,handleDomNode:v.currentTarget})},S=(v)=>V(v,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),C=(v)=>V(v,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),D=()=>w(!0),N=()=>w(!1);return Y1.jsxs(Y1.Fragment,{children:[(Q===!0||Q==="source")&&Y1.jsx(sT,{position:B,centerX:X,centerY:H,radius:U,onMouseDown:S,onMouseEnter:D,onMouseOut:N,type:"source"}),(Q===!0||Q==="target")&&Y1.jsx(sT,{position:T,centerX:Y,centerY:W,radius:U,onMouseDown:C,onMouseEnter:D,onMouseOut:N,type:"target"})]})}function pj({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:X,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:T,onMouseLeave:R,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:w,rfId:P,edgeTypes:V,noPanClassName:S,onError:C,disableKeyboardA11y:D}){let N=X0((G1)=>G1.edgeLookup.get(Q)),v=X0((G1)=>G1.defaultEdgeOptions);N=v?{...v,...N}:N;let u=N.type||"default",h=V?.[u]||iT[u];if(h===void 0)C?.("011",a2.error011(u)),u="default",h=V?.default||iT.default;let k=!!(N.focusable||U&&typeof N.focusable>"u"),b=typeof A<"u"&&(N.reconnectable||Z&&typeof N.reconnectable>"u"),E=!!(N.selectable||X&&typeof N.selectable>"u"),m=z1.useRef(null),[e,Q1]=z1.useState(!1),[J1,x]=z1.useState(!1),g=D0(),{zIndex:c=N.zIndex,sourceX:a,sourceY:d,targetX:t,targetY:y,sourcePosition:p,targetPosition:q1}=X0(z1.useCallback((G1)=>{let B1=G1.nodeLookup.get(N.source),I1=G1.nodeLookup.get(N.target);if(!B1||!I1)return rT;let C1=JT({id:Q,sourceNode:B1,targetNode:I1,sourceHandle:N.sourceHandle||null,targetHandle:N.targetHandle||null,connectionMode:G1.connectionMode,onError:C}),K1=nM({selected:N.selected,zIndex:N.zIndex,sourceNode:B1,targetNode:I1,elevateOnSelect:G1.elevateEdgesOnSelect,zIndexMode:G1.zIndexMode});return{...C1||rT,zIndex:K1}},[N.source,N.target,N.sourceHandle,N.targetHandle,N.selected,N.zIndex,C]),k0),s=z1.useMemo(()=>N.markerStart?`url('#${aq(N.markerStart,P)}')`:void 0,[N.markerStart,P]),W1=z1.useMemo(()=>N.markerEnd?`url('#${aq(N.markerEnd,P)}')`:void 0,[N.markerEnd,P]);if(N.hidden||a===null||d===null||t===null||y===null)return null;let R1=(G1)=>{let{addSelectedEdges:B1,unselectNodesAndEdges:I1,multiSelectionActive:C1}=g.getState();if(E)if(g.setState({nodesSelectionActive:!1}),N.selected&&C1)I1({nodes:[],edges:[N]}),m.current?.blur();else B1([Q]);if(H)H(G1,N)},T1=Y?(G1)=>{Y(G1,{...N})}:void 0,A1=W?(G1)=>{W(G1,{...N})}:void 0,U1=B?(G1)=>{B(G1,{...N})}:void 0,w1=T?(G1)=>{T(G1,{...N})}:void 0,v1=R?(G1)=>{R(G1,{...N})}:void 0,M1=(G1)=>{if(!D&&wX.includes(G1.key)&&E){let{unselectNodesAndEdges:B1,addSelectedEdges:I1}=g.getState();if(G1.key==="Escape")m.current?.blur(),B1({edges:[N]});else I1([Q])}};return Y1.jsx("svg",{style:{zIndex:c},children:Y1.jsxs("g",{className:m0(["react-flow__edge",`react-flow__edge-${u}`,N.className,S,{selected:N.selected,animated:N.animated,inactive:!E&&!H,updating:e,selectable:E}]),onClick:R1,onDoubleClick:T1,onContextMenu:A1,onMouseEnter:U1,onMouseMove:w1,onMouseLeave:v1,onKeyDown:k?M1:void 0,tabIndex:k?0:void 0,role:N.ariaRole??(k?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":N.ariaLabel===null?void 0:N.ariaLabel||`Edge from ${N.source} to ${N.target}`,"aria-describedby":k?`${qR}-${P}`:void 0,ref:m,...N.domAttributes,children:[!J1&&Y1.jsx(h,{id:Q,source:N.source,target:N.target,type:N.type,selected:N.selected,animated:N.animated,selectable:E,deletable:N.deletable??!0,label:N.label,labelStyle:N.labelStyle,labelShowBg:N.labelShowBg,labelBgStyle:N.labelBgStyle,labelBgPadding:N.labelBgPadding,labelBgBorderRadius:N.labelBgBorderRadius,sourceX:a,sourceY:d,targetX:t,targetY:y,sourcePosition:p,targetPosition:q1,data:N.data,style:N.style,sourceHandleId:N.sourceHandle,targetHandleId:N.targetHandle,markerStart:s,markerEnd:W1,pathOptions:"pathOptions"in N?N.pathOptions:void 0,interactionWidth:N.interactionWidth}),b&&Y1.jsx(gj,{edge:N,isReconnectable:b,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:w,sourceX:a,sourceY:d,targetX:t,targetY:y,sourcePosition:p,targetPosition:q1,setUpdateHover:Q1,setReconnecting:x})]})})}var cj=z1.memo(pj),lj=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function vR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:X,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:B,onEdgeMouseMove:T,onEdgeMouseLeave:R,onEdgeClick:M,reconnectRadius:A,onEdgeDoubleClick:O,onReconnectStart:w,onReconnectEnd:P,disableKeyboardA11y:V}){let{edgesFocusable:S,edgesReconnectable:C,elementsSelectable:D,onError:N}=X0(lj,k0),v=Sj(U);return Y1.jsxs("div",{className:"react-flow__edges",children:[Y1.jsx(kj,{defaultColor:Q,rfId:Z}),v.map((u)=>{return Y1.jsx(cj,{id:u,edgesFocusable:S,edgesReconnectable:C,elementsSelectable:D,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:T,onMouseLeave:R,onClick:M,reconnectRadius:A,onDoubleClick:O,onReconnectStart:w,onReconnectEnd:P,rfId:Z,onError:N,edgeTypes:X,disableKeyboardA11y:V},u)})]})}vR.displayName="EdgeRenderer";var dj=z1.memo(vR),tT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function ij({children:Q}){let U=D0(),Z=z1.useRef(null),[X]=z1.useState(()=>U.getState().transform);return KR(()=>{let H=null,Y=()=>{let W=U.getState().transform;if(H&&W[0]===H[0]&&W[1]===H[1]&&W[2]===H[2])return;if(H=W,Z.current)Z.current.style.transform=tT(W)};return Y(),U.subscribe(Y)},[U]),Y1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:tT(X)},children:Q})}function rj(Q){let U=bJ(),Z=z1.useRef(!1);z1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var aj=(Q)=>Q.panZoom?.syncViewport;function sj(Q){let U=X0(aj),Z=D0();return z1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function oT(Q){return Q.connection.inProgress?{...Q.connection,to:Y9(Q.connection.to,Q.transform)}:{...Q.connection}}function tj(Q){if(Q)return(Z)=>{let X=oT(Z);return Q(X)};return oT}function oj(Q){let U=tj(Q);return X0(U,k0)}var nj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function ej({containerStyle:Q,style:U,type:Z,component:X}){let{nodesConnectable:H,width:Y,height:W,isValid:B,inProgress:T}=X0(nj,k0);if(!(Y&&H&&T))return null;return Y1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:Y1.jsx("g",{className:m0(["react-flow__connection",bX(B)]),children:Y1.jsx(VR,{style:U,type:Z,CustomComponent:X,isValid:B})})})}var VR=({style:Q,type:U=x4.Bezier,CustomComponent:Z,isValid:X})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:B,fromPosition:T,to:R,toNode:M,toHandle:A,toPosition:O,pointer:w}=oj();if(!H)return;if(Z)return Y1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:B,fromX:Y.x,fromY:Y.y,toX:R.x,toY:R.y,fromPosition:T,toPosition:O,connectionStatus:bX(X),toNode:M,toHandle:A,pointer:w});let P="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:T,targetX:R.x,targetY:R.y,targetPosition:O};switch(U){case x4.Bezier:[P]=iq(V);break;case x4.SimpleBezier:[P]=MR(V);break;case x4.Step:[P]=DJ({...V,borderRadius:0});break;case x4.SmoothStep:[P]=DJ(V);break;default:[P]=rq(V)}return Y1.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Q})};VR.displayName="ConnectionLine";var _v={};function nT(Q=_v){let U=z1.useRef(Q),Z=D0();z1.useEffect(()=>{{let X=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of X)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",a2.error002());break}U.current=Q}},[Q])}function Jv(){let Q=D0(),U=z1.useRef(!1);z1.useEffect(()=>{if(!U.current){let Z=document.querySelector(".react-flow__pane");if(Z&&window.getComputedStyle(Z).zIndex!=="1")Q.getState().onError?.("013",a2.error013("react"));U.current=!0}},[])}function yR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:X,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:B,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,onSelectionContextMenu:A,onSelectionStart:O,onSelectionEnd:w,connectionLineType:P,connectionLineStyle:V,connectionLineComponent:S,connectionLineContainerStyle:C,selectionKeyCode:D,selectionOnDrag:N,selectionMode:v,multiSelectionKeyCode:u,panActivationKeyCode:h,zoomActivationKeyCode:k,deleteKeyCode:b,onlyRenderVisibleElements:E,elementsSelectable:m,defaultViewport:e,translateExtent:Q1,minZoom:J1,maxZoom:x,preventScrolling:g,defaultMarkerColor:c,zoomOnScroll:a,zoomOnPinch:d,panOnScroll:t,panOnScrollSpeed:y,panOnScrollMode:p,zoomOnDoubleClick:q1,panOnDrag:s,autoPanOnSelection:W1,onPaneClick:R1,onPaneMouseEnter:T1,onPaneMouseMove:A1,onPaneMouseLeave:U1,onPaneScroll:w1,onPaneContextMenu:v1,paneClickDistance:M1,nodeClickDistance:G1,onEdgeContextMenu:B1,onEdgeMouseEnter:I1,onEdgeMouseMove:C1,onEdgeMouseLeave:K1,reconnectRadius:u1,onReconnect:N1,onReconnectStart:Q0,onReconnectEnd:b1,noDragClassName:a0,noWheelClassName:q2,noPanClassName:O0,disableKeyboardA11y:D2,nodeExtent:u2,rfId:P2,viewport:N2,onViewportChange:C2,nodesDraggable:C3}){return nT(Q),nT(U),Jv(),rj(Z),sj(N2),Y1.jsx(Mj,{onPaneClick:R1,onPaneMouseEnter:T1,onPaneMouseMove:A1,onPaneMouseLeave:U1,onPaneContextMenu:v1,onPaneScroll:w1,paneClickDistance:M1,deleteKeyCode:b,selectionKeyCode:D,selectionOnDrag:N,selectionMode:v,onSelectionStart:O,onSelectionEnd:w,multiSelectionKeyCode:u,panActivationKeyCode:h,zoomActivationKeyCode:k,elementsSelectable:m,zoomOnScroll:a,zoomOnPinch:d,zoomOnDoubleClick:q1,panOnScroll:t,panOnScrollSpeed:y,panOnScrollMode:p,panOnDrag:s,autoPanOnSelection:W1,defaultViewport:e,translateExtent:Q1,minZoom:J1,maxZoom:x,onSelectionContextMenu:A,preventScrolling:g,noDragClassName:a0,noWheelClassName:q2,noPanClassName:O0,disableKeyboardA11y:D2,onViewportChange:C2,isControlledViewport:!!N2,children:Y1.jsxs(ij,{children:[Y1.jsx(dj,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:N1,onReconnectStart:Q0,onReconnectEnd:b1,onlyRenderVisibleElements:E,onEdgeContextMenu:B1,onEdgeMouseEnter:I1,onEdgeMouseMove:C1,onEdgeMouseLeave:K1,reconnectRadius:u1,defaultMarkerColor:c,noPanClassName:O0,disableKeyboardA11y:D2,rfId:P2}),Y1.jsx(ej,{style:V,type:P,component:S,containerStyle:C}),Y1.jsx("div",{className:"react-flow__edgelabel-renderer"}),Y1.jsx(fj,{nodeTypes:Q,onNodeClick:X,onNodeDoubleClick:Y,onNodeMouseEnter:B,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,nodeClickDistance:G1,onlyRenderVisibleElements:E,noPanClassName:O0,noDragClassName:a0,disableKeyboardA11y:D2,nodeExtent:u2,rfId:P2,nodesDraggable:C3}),Y1.jsx("div",{className:"react-flow__viewport-portal"})]})})}yR.displayName="GraphView";var $v=z1.memo(yR),Qv=yX("React Flow","https://reactflow.dev/"),eT=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T=0.5,maxZoom:R=2,nodeOrigin:M,nodeExtent:A,zIndexMode:O="basic"}={})=>{let w=new Map,P=new Map,V=new Map,S=new Map,C=X??U??[],D=Z??Q??[],N=M??[0,0],v=A??K9;dX(V,S,C);let{nodesInitialized:u}=sq(D,w,P,{nodeOrigin:N,nodeExtent:v,zIndexMode:O}),h=[0,0,1];if(W&&H&&Y){let k=E8(w,{filter:(e)=>!!((e.width||e.initialWidth)&&(e.height||e.initialHeight))}),{x:b,y:E,zoom:m}=kJ(k,H,Y,T,R,B?.padding??0.1);h=[b,E,m]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:D,nodesInitialized:u,nodeLookup:w,parentLookup:P,edges:C,edgeLookup:S,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:X!==void 0,panZoom:null,minZoom:T,maxZoom:R,translateExtent:K9,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:P6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:N,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:{...NX},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Qv,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:PX,zIndexMode:O,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}},qv=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O})=>ST((w,P)=>{async function V(){let{nodeLookup:S,panZoom:C,fitViewOptions:D,fitViewResolver:N,width:v,height:u,minZoom:h,maxZoom:k}=P();if(!C)return;await dM({nodes:S,width:v,height:u,panZoom:C,minZoom:h,maxZoom:k},D),N?.resolve(!0),w({fitViewResolver:null})}return{...eT({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,defaultNodes:Z,defaultEdges:X,zIndexMode:O}),setNodes:(S)=>{let{nodeLookup:C,parentLookup:D,nodeOrigin:N,nodeExtent:v,elevateNodesOnSelect:u,fitViewQueued:h,zIndexMode:k,nodesSelectionActive:b}=P(),{nodesInitialized:E,hasSelectedNodes:m}=sq(S,C,D,{nodeOrigin:N,nodeExtent:v,elevateNodesOnSelect:u,checkEquality:!0,zIndexMode:k}),e=b&&m;if(h&&E)V(),w({nodes:S,nodesInitialized:E,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:e});else w({nodes:S,nodesInitialized:E,nodesSelectionActive:e})},setEdges:(S)=>{let{connectionLookup:C,edgeLookup:D}=P();dX(C,D,S),w({edges:S})},setDefaultNodesAndEdges:(S,C)=>{if(S){let{setNodes:D}=P();D(S),w({hasDefaultNodes:!0})}if(C){let{setEdges:D}=P();D(C),w({hasDefaultEdges:!0})}},updateNodeInternals:(S)=>{let{triggerNodeChanges:C,nodeLookup:D,parentLookup:N,domNode:v,nodeOrigin:u,nodeExtent:h,debug:k,fitViewQueued:b,zIndexMode:E}=P(),{changes:m,updatedInternals:e}=ZT(S,D,N,v,u,h,E);if(!e)return;if(UT(D,N,{nodeOrigin:u,nodeExtent:h,zIndexMode:E}),b)V(),w({fitViewQueued:!1,fitViewOptions:void 0});else w({});if(m?.length>0){if(k)console.log("React Flow: trigger node changes",m);C?.(m)}},updateNodePositions:(S,C=!1)=>{let D=[],N=[],{nodeLookup:v,triggerNodeChanges:u,connection:h,updateConnection:k,onNodesChangeMiddlewareMap:b}=P();for(let[E,m]of S){let e=v.get(E),Q1=!!(e?.expandParent&&e?.parentId&&m?.position),J1={id:E,type:"position",position:Q1?{x:Math.max(0,m.position.x),y:Math.max(0,m.position.y)}:m.position,dragging:C};if(e&&h.inProgress&&h.fromNode.id===e.id){let x=N6(e,h.fromHandle,D1.Left,!0);k({...h,from:x})}if(Q1&&e.parentId)D.push({id:E,parentId:e.parentId,rect:{...m.internals.positionAbsolute,width:m.measured.width??0,height:m.measured.height??0}});N.push(J1)}if(D.length>0){let{parentLookup:E,nodeOrigin:m}=P(),e=tq(D,v,E,m);N.push(...e)}for(let E of b.values())N=E(N);u(N)},triggerNodeChanges:(S)=>{let{onNodesChange:C,setNodes:D,nodes:N,hasDefaultNodes:v,debug:u}=P();if(S?.length){if(v){let h=ZR(S,N);D(h)}if(u)console.log("React Flow: trigger node changes",S);C?.(S)}},triggerEdgeChanges:(S)=>{let{onEdgesChange:C,setEdges:D,edges:N,hasDefaultEdges:v,debug:u}=P();if(S?.length){if(v){let h=xS(S,N);D(h)}if(u)console.log("React Flow: trigger edge changes",S);C?.(S)}},addSelectedNodes:(S)=>{let{multiSelectionActive:C,edgeLookup:D,nodeLookup:N,triggerNodeChanges:v,triggerEdgeChanges:u}=P();if(C){let h=S.map((k)=>h8(k,!0));v(h);return}v(W9(N,new Set([...S]),!0)),u(W9(D))},addSelectedEdges:(S)=>{let{multiSelectionActive:C,edgeLookup:D,nodeLookup:N,triggerNodeChanges:v,triggerEdgeChanges:u}=P();if(C){let h=S.map((k)=>h8(k,!0));u(h);return}u(W9(D,new Set([...S]))),v(W9(N,new Set,!0))},unselectNodesAndEdges:({nodes:S,edges:C}={})=>{let{edges:D,nodes:N,nodeLookup:v,triggerNodeChanges:u,triggerEdgeChanges:h}=P(),k=S?S:N,b=C?C:D,E=[];for(let e of k){if(!e.selected)continue;let Q1=v.get(e.id);if(Q1)Q1.selected=!1;E.push(h8(e.id,!1))}let m=[];for(let e of b){if(!e.selected)continue;m.push(h8(e.id,!1))}u(E),h(m)},setMinZoom:(S)=>{let{panZoom:C,maxZoom:D}=P();C?.setScaleExtent([S,D]),w({minZoom:S})},setMaxZoom:(S)=>{let{panZoom:C,minZoom:D}=P();C?.setScaleExtent([D,S]),w({maxZoom:S})},setTranslateExtent:(S)=>{P().panZoom?.setTranslateExtent(S),w({translateExtent:S})},resetSelectedElements:()=>{let{edges:S,nodes:C,triggerNodeChanges:D,triggerEdgeChanges:N,elementsSelectable:v}=P();if(!v)return;let u=C.reduce((k,b)=>b.selected?[...k,h8(b.id,!1)]:k,[]),h=S.reduce((k,b)=>b.selected?[...k,h8(b.id,!1)]:k,[]);D(u),N(h)},setNodeExtent:(S)=>{let{nodes:C,nodeLookup:D,parentLookup:N,nodeOrigin:v,elevateNodesOnSelect:u,nodeExtent:h,zIndexMode:k}=P();if(S[0][0]===h[0][0]&&S[0][1]===h[0][1]&&S[1][0]===h[1][0]&&S[1][1]===h[1][1])return;sq(C,D,N,{nodeOrigin:v,nodeExtent:S,elevateNodesOnSelect:u,checkEquality:!1,zIndexMode:k}),w({nodeExtent:S})},panBy:(S)=>{let{transform:C,width:D,height:N,panZoom:v,translateExtent:u}=P();return FT({delta:S,panZoom:v,transform:C,translateExtent:u,width:D,height:N})},setCenter:async(S,C,D)=>{let{width:N,height:v,maxZoom:u,panZoom:h}=P();if(!h)return!1;let k=typeof D?.zoom<"u"?D.zoom:u;return await h.setViewport({x:N/2-S*k,y:v/2-C*k,zoom:k},{duration:D?.duration,ease:D?.ease,interpolate:D?.interpolate}),!0},cancelConnection:()=>{w({connection:{...NX}})},updateConnection:(S)=>{w({connection:S})},reset:()=>w({...eT()})}},Object.is);function nX({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:X,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:B,initialFitViewOptions:T,fitView:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O,children:w}){let[P]=z1.useState(()=>qv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,width:H,height:Y,fitView:R,minZoom:W,maxZoom:B,fitViewOptions:T,nodeOrigin:M,nodeExtent:A,zIndexMode:O}));return Y1.jsx(TS,{value:P,children:Y1.jsx(lS,{children:Y1.jsx(Uj,{children:w})})})}function Uv({children:Q,nodes:U,edges:Z,defaultNodes:X,defaultEdges:H,width:Y,height:W,fitView:B,fitViewOptions:T,minZoom:R,maxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:w}){if(z1.useContext(QU))return Y1.jsx(Y1.Fragment,{children:Q});return Y1.jsx(nX,{initialNodes:U,initialEdges:Z,defaultNodes:X,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:B,initialFitViewOptions:T,initialMinZoom:R,initialMaxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:w,children:Q})}var Gv={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Zv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:B,onEdgeClick:T,onInit:R,onMove:M,onMoveStart:A,onMoveEnd:O,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,onNodeMouseEnter:D,onNodeMouseMove:N,onNodeMouseLeave:v,onNodeContextMenu:u,onNodeDoubleClick:h,onNodeDragStart:k,onNodeDrag:b,onNodeDragStop:E,onNodesDelete:m,onEdgesDelete:e,onDelete:Q1,onSelectionChange:J1,onSelectionDragStart:x,onSelectionDrag:g,onSelectionDragStop:c,onSelectionContextMenu:a,onSelectionStart:d,onSelectionEnd:t,onBeforeDelete:y,connectionMode:p,connectionLineType:q1=x4.Bezier,connectionLineStyle:s,connectionLineComponent:W1,connectionLineContainerStyle:R1,deleteKeyCode:T1="Backspace",selectionKeyCode:A1="Shift",selectionOnDrag:U1=!1,selectionMode:w1=k8.Full,panActivationKeyCode:v1="Space",multiSelectionKeyCode:M1=z9()?"Meta":"Control",zoomActivationKeyCode:G1=z9()?"Meta":"Control",snapToGrid:B1,snapGrid:I1,onlyRenderVisibleElements:C1=!1,selectNodesOnDrag:K1,nodesDraggable:u1,autoPanOnNodeFocus:N1,nodesConnectable:Q0,nodesFocusable:b1,nodeOrigin:a0=UR,edgesFocusable:q2,edgesReconnectable:O0,elementsSelectable:D2=!0,defaultViewport:u2=yS,minZoom:P2=0.5,maxZoom:N2=2,translateExtent:C2=K9,preventScrolling:C3=!0,nodeExtent:x5,defaultMarkerColor:g4="#b1b1b7",zoomOnScroll:p4=!0,zoomOnPinch:c4=!0,panOnScroll:y6=!1,panOnScrollSpeed:q4=0.5,panOnScrollMode:j=O3.Free,zoomOnDoubleClick:$1=!0,panOnDrag:P1=!0,onPaneClick:S1,onPaneMouseEnter:y1,onPaneMouseMove:l1,onPaneMouseLeave:d1,onPaneScroll:K0,onPaneContextMenu:E1,paneClickDistance:H2=1,nodeClickDistance:b2=0,children:U4,onReconnect:k6,onReconnectStart:pJ,onReconnectEnd:i8,onEdgeContextMenu:r8,onEdgeDoubleClick:m5,onEdgeMouseEnter:s2,onEdgeMouseMove:cJ,onEdgeMouseLeave:zU,reconnectRadius:R9=10,onNodesChange:lJ,onEdgesChange:a8,noDragClassName:t2="nodrag",noWheelClassName:dJ="nowheel",noPanClassName:s8="nopan",fitView:O9,fitViewOptions:t8,connectOnClick:iJ,attributionPosition:rJ,proOptions:f3,defaultEdgeOptions:aJ,elevateNodesOnSelect:sJ=!0,elevateEdgesOnSelect:tJ=!1,disableKeyboardA11y:I9=!1,autoPanOnConnect:oJ,autoPanOnNodeDrag:E2,autoPanOnSelection:S3=!0,autoPanSpeed:l4,connectionRadius:nJ,isValidConnection:D6,onError:o8,style:w9,id:j3,nodeDragThreshold:v3,connectionDragThreshold:P9,viewport:WU,onViewportChange:BU,width:eJ,height:N9,colorMode:C9="light",debug:_$,onScroll:f9,ariaLabelConfig:J$,zIndexMode:$$="basic",...Q$},S9){let V3=j3||"1",u6=bS(C9),LU=z1.useCallback((j9)=>{j9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),f9?.(j9)},[f9]);return Y1.jsx("div",{"data-testid":"rf__wrapper",...Q$,onScroll:LU,style:{...w9,...Gv},ref:S9,className:m0(["react-flow",H,u6]),id:j3,role:"application",children:Y1.jsxs(Uv,{nodes:Q,edges:U,width:eJ,height:N9,fitView:O9,fitViewOptions:t8,minZoom:P2,maxZoom:N2,nodeOrigin:a0,nodeExtent:x5,zIndexMode:$$,children:[Y1.jsx(uS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:X,onConnect:w,onConnectStart:P,onConnectEnd:V,onClickConnectStart:S,onClickConnectEnd:C,nodesDraggable:u1,autoPanOnNodeFocus:N1,nodesConnectable:Q0,nodesFocusable:b1,edgesFocusable:q2,edgesReconnectable:O0,elementsSelectable:D2,elevateNodesOnSelect:sJ,elevateEdgesOnSelect:tJ,minZoom:P2,maxZoom:N2,nodeExtent:x5,onNodesChange:lJ,onEdgesChange:a8,snapToGrid:B1,snapGrid:I1,connectionMode:p,translateExtent:C2,connectOnClick:iJ,defaultEdgeOptions:aJ,fitView:O9,fitViewOptions:t8,onNodesDelete:m,onEdgesDelete:e,onDelete:Q1,onNodeDragStart:k,onNodeDrag:b,onNodeDragStop:E,onSelectionDrag:g,onSelectionDragStart:x,onSelectionDragStop:c,onMove:M,onMoveStart:A,onMoveEnd:O,noPanClassName:s8,nodeOrigin:a0,rfId:V3,autoPanOnConnect:oJ,autoPanOnNodeDrag:E2,autoPanSpeed:l4,onError:o8,connectionRadius:nJ,isValidConnection:D6,selectNodesOnDrag:K1,nodeDragThreshold:v3,connectionDragThreshold:P9,onBeforeDelete:y,debug:_$,ariaLabelConfig:J$,zIndexMode:$$}),Y1.jsx($v,{onInit:R,onNodeClick:B,onEdgeClick:T,onNodeMouseEnter:D,onNodeMouseMove:N,onNodeMouseLeave:v,onNodeContextMenu:u,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:W,connectionLineType:q1,connectionLineStyle:s,connectionLineComponent:W1,connectionLineContainerStyle:R1,selectionKeyCode:A1,selectionOnDrag:U1,selectionMode:w1,deleteKeyCode:T1,multiSelectionKeyCode:M1,panActivationKeyCode:v1,zoomActivationKeyCode:G1,onlyRenderVisibleElements:C1,defaultViewport:u2,translateExtent:C2,minZoom:P2,maxZoom:N2,preventScrolling:C3,zoomOnScroll:p4,zoomOnPinch:c4,zoomOnDoubleClick:$1,panOnScroll:y6,panOnScrollSpeed:q4,panOnScrollMode:j,panOnDrag:P1,autoPanOnSelection:S3,onPaneClick:S1,onPaneMouseEnter:y1,onPaneMouseMove:l1,onPaneMouseLeave:d1,onPaneScroll:K0,onPaneContextMenu:E1,paneClickDistance:H2,nodeClickDistance:b2,onSelectionContextMenu:a,onSelectionStart:d,onSelectionEnd:t,onReconnect:k6,onReconnectStart:pJ,onReconnectEnd:i8,onEdgeContextMenu:r8,onEdgeDoubleClick:m5,onEdgeMouseEnter:s2,onEdgeMouseMove:cJ,onEdgeMouseLeave:zU,reconnectRadius:R9,defaultMarkerColor:g4,noDragClassName:t2,noWheelClassName:dJ,noPanClassName:s8,rfId:V3,disableKeyboardA11y:I9,nodeExtent:x5,viewport:WU,onViewportChange:BU,nodesDraggable:u1}),Y1.jsx(VS,{onSelectionChange:J1}),U4,Y1.jsx(CS,{proOptions:f3,position:rJ}),Y1.jsx(NS,{rfId:V3,disableKeyboardA11y:I9})]})})}var kR=FR(Zv);function DR(Q){let[U,Z]=z1.useState(Q),X=z1.useCallback((H)=>Z((Y)=>ZR(H,Y)),[]);return[U,Z,X]}var fg=a2.error014();function Fv({dimensions:Q,lineWidth:U,variant:Z,className:X}){return Y1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:m0(["react-flow__background-pattern",Z,X])})}function Kv({radius:Q,className:U}){return Y1.jsx("circle",{cx:Q,cy:Q,r:Q,className:m0(["react-flow__background-pattern","dots",U])})}var m4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(m4||(m4={}));var Xv={[m4.Dots]:1,[m4.Lines]:1,[m4.Cross]:6},Hv=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function uR({id:Q,variant:U=m4.Dots,gap:Z=20,size:X,lineWidth:H=1,offset:Y=0,color:W,bgColor:B,style:T,className:R,patternClassName:M}){let A=z1.useRef(null),{transform:O,patternId:w}=X0(Hv,k0),P=X||Xv[U],V=U===m4.Dots,S=U===m4.Cross,C=Array.isArray(Z)?Z:[Z,Z],D=[C[0]*O[2]||1,C[1]*O[2]||1],N=P*O[2],v=Array.isArray(Y)?Y:[Y,Y],u=S?[N,N]:D,h=[v[0]*O[2]+u[0]/2,v[1]*O[2]+u[1]/2],k=`${w}${Q?Q:""}`;return Y1.jsxs("svg",{className:m0(["react-flow__background",R]),style:{...T,...qU,"--xy-background-color-props":B,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[Y1.jsx("pattern",{id:k,x:O[0]%D[0],y:O[1]%D[1],width:D[0],height:D[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:V?Y1.jsx(Kv,{radius:N/2,className:M}):Y1.jsx(Fv,{dimensions:u,lineWidth:H,variant:U,className:M})}),Y1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${k})`})]})}uR.displayName="Background";var bR=z1.memo(uR);function Yv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:Y1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function zv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:Y1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Wv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:Y1.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 Bv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:Y1.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 Lv(){return Y1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:Y1.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 _U({children:Q,className:U,...Z}){return Y1.jsx("button",{type:"button",className:m0(["react-flow__controls-button",U]),...Z,children:Q})}var Av=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function ER({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:X=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:B,onInteractiveChange:T,className:R,children:M,position:A="bottom-left",orientation:O="vertical","aria-label":w}){let P=D0(),{isInteractive:V,minZoomReached:S,maxZoomReached:C,ariaLabelConfig:D}=X0(Av,k0),{zoomIn:N,zoomOut:v,fitView:u}=bJ(),h=()=>{N(),Y?.()},k=()=>{v(),W?.()},b=()=>{u(H),B?.()},E=()=>{P.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),T?.(!V)};return Y1.jsxs(x8,{className:m0(["react-flow__controls",O==="horizontal"?"horizontal":"vertical",R]),position:A,style:Q,"data-testid":"rf__controls","aria-label":w??D["controls.ariaLabel"],children:[U&&Y1.jsxs(Y1.Fragment,{children:[Y1.jsx(_U,{onClick:h,className:"react-flow__controls-zoomin",title:D["controls.zoomIn.ariaLabel"],"aria-label":D["controls.zoomIn.ariaLabel"],disabled:C,children:Y1.jsx(Yv,{})}),Y1.jsx(_U,{onClick:k,className:"react-flow__controls-zoomout",title:D["controls.zoomOut.ariaLabel"],"aria-label":D["controls.zoomOut.ariaLabel"],disabled:S,children:Y1.jsx(zv,{})})]}),Z&&Y1.jsx(_U,{className:"react-flow__controls-fitview",onClick:b,title:D["controls.fitView.ariaLabel"],"aria-label":D["controls.fitView.ariaLabel"],children:Y1.jsx(Wv,{})}),X&&Y1.jsx(_U,{className:"react-flow__controls-interactive",onClick:E,title:D["controls.interactive.ariaLabel"],"aria-label":D["controls.interactive.ariaLabel"],children:V?Y1.jsx(Lv,{}):Y1.jsx(Bv,{})}),M]})}ER.displayName="Controls";var hR=z1.memo(ER);function Mv({id:Q,x:U,y:Z,width:X,height:H,style:Y,color:W,strokeColor:B,strokeWidth:T,className:R,borderRadius:M,shapeRendering:A,selected:O,onClick:w}){let{background:P,backgroundColor:V}=Y||{},S=W||P||V;return Y1.jsx("rect",{className:m0(["react-flow__minimap-node",{selected:O},R]),x:U,y:Z,rx:M,ry:M,width:X,height:H,style:{fill:S,stroke:B,strokeWidth:T},shapeRendering:A,onClick:w?(C)=>w(C,Q):void 0})}var Tv=z1.memo(Mv),Rv=(Q)=>Q.nodes.map((U)=>U.id),aX=(Q)=>Q instanceof Function?Q:()=>Q;function Ov({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:X=5,nodeStrokeWidth:H,nodeComponent:Y=Tv,onClick:W}){let B=X0(Rv,k0),T=aX(U),R=aX(Q),M=aX(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return Y1.jsx(Y1.Fragment,{children:B.map((O)=>Y1.jsx(wv,{id:O,nodeColorFunc:T,nodeStrokeColorFunc:R,nodeClassNameFunc:M,nodeBorderRadius:X,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},O))})}function Iv({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:X,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:B,onClick:T}){let{node:R,x:M,y:A,width:O,height:w}=X0((P)=>{let V=P.nodeLookup.get(Q);if(!V)return{node:void 0,x:0,y:0,width:0,height:0};let S=V.internals.userNode,{x:C,y:D}=V.internals.positionAbsolute,{width:N,height:v}=E5(S);return{node:S,x:C,y:D,width:N,height:v}},k0);if(!R||R.hidden||!kX(R))return null;return Y1.jsx(B,{x:M,y:A,width:O,height:w,style:R.style,selected:!!R.selected,className:X(R),color:U(R),borderRadius:H,strokeColor:Z(R),strokeWidth:Y,shapeRendering:W,onClick:T,id:R.id})}var wv=z1.memo(Iv),Pv=z1.memo(Ov),Nv=200,Cv=150,fv=(Q)=>!Q.hidden,Sv=(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 X of Q.nodeLookup.values())if(!X.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?vX(E8(Q.nodeLookup,{filter:fv}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},_R=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,jv=(Q,U)=>_R(Q.viewBB,U.viewBB)&&_R(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,vv="react-flow__minimap-desc";function xR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:X,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:B,bgColor:T,maskColor:R,maskStrokeColor:M,maskStrokeWidth:A,position:O="bottom-right",onClick:w,onNodeClick:P,pannable:V=!1,zoomable:S=!1,ariaLabel:C,inversePan:D,zoomStep:N=1,offsetScale:v=5}){let u=D0(),h=z1.useRef(null),{boundingRect:k,panZoom:b,viewBB:E,rfId:m,translateExtent:e,flowWidth:Q1,flowHeight:J1,ariaLabelConfig:x}=X0(Sv,jv),g=Q?.width??Nv,c=Q?.height??Cv,a=k.width/g,d=k.height/c,t=Math.max(a,d),y=t*g,p=t*c,q1=v*t,s=k.x-(y-k.width)/2-q1,W1=k.y-(p-k.height)/2-q1,R1=y+q1*2,T1=p+q1*2,A1=`${vv}-${m}`,U1=z1.useRef(0),w1=z1.useRef();U1.current=t,z1.useEffect(()=>{let I1=u.getState().panZoom;if(h.current&&I1)return w1.current=BT({domNode:h.current,panZoom:I1,getTransform:()=>u.getState().transform,getViewScale:()=>U1.current}),()=>{w1.current?.destroy()}},[b]),z1.useEffect(()=>{w1.current?.update({translateExtent:e,width:Q1,height:J1,inversePan:D,pannable:V,zoomStep:N,zoomable:S})},[V,S,D,N,e,Q1,J1]);let v1=w?(I1)=>{let[C1,K1]=w1.current?.pointer(I1)||[0,0];w(I1,{x:C1,y:K1})}:void 0,M1=z1.useCallback((I1,C1)=>{let K1=u.getState().nodeLookup.get(C1).internals.userNode;P?.(I1,K1)},[P]),G1=P?M1:void 0,B1=C??x["minimap.ariaLabel"];return Y1.jsx(x8,{position:O,style:{...Q,"--xy-minimap-background-color-props":typeof T==="string"?T:void 0,"--xy-minimap-mask-background-color-props":typeof R==="string"?R:void 0,"--xy-minimap-mask-stroke-color-props":typeof M==="string"?M:void 0,"--xy-minimap-mask-stroke-width-props":typeof A==="number"?A*t:void 0,"--xy-minimap-node-background-color-props":typeof X==="string"?X: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:m0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:Y1.jsxs("svg",{width:g,height:c,viewBox:`${s} ${W1} ${R1} ${T1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":A1,ref:h,onClick:v1,children:[B1&&Y1.jsx("title",{id:A1,children:B1}),Y1.jsx(Pv,{onClick:G1,nodeColor:X,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:B}),Y1.jsx("path",{className:"react-flow__minimap-mask",d:`M${s-q1},${W1-q1}h${R1+q1*2}v${T1+q1*2}h${-R1-q1*2}z
247
+ M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}xR.displayName="MiniMap";var mR=z1.memo(xR),Vv=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,yv={[C6.Line]:"right",[C6.Handle]:"bottom-right"};function kv({nodeId:Q,position:U,variant:Z=C6.Handle,className:X,style:H=void 0,children:Y,color:W,minWidth:B=10,minHeight:T=10,maxWidth:R=Number.MAX_VALUE,maxHeight:M=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:O,autoScale:w=!0,shouldResize:P,onResizeStart:V,onResize:S,onResizeEnd:C}){let D=oX(),N=typeof Q==="string"?Q:D,v=D0(),u=z1.useRef(null),h=Z===C6.Handle,k=X0(z1.useCallback(Vv(h&&w),[h,w]),k0),b=z1.useRef(null),E=U??yv[Z];z1.useEffect(()=>{if(!u.current||!N)return;if(!b.current)b.current=RT({domNode:u.current,nodeId:N,getStoreItems:()=>{let{nodeLookup:e,transform:Q1,snapGrid:J1,snapToGrid:x,nodeOrigin:g,domNode:c}=v.getState();return{nodeLookup:e,transform:Q1,snapGrid:J1,snapToGrid:x,nodeOrigin:g,paneDomNode:c}},onChange:(e,Q1)=>{let{triggerNodeChanges:J1,nodeLookup:x,parentLookup:g,nodeOrigin:c}=v.getState(),a=[],d={x:e.x,y:e.y},t=x.get(N);if(t&&t.expandParent&&t.parentId){let y=t.origin??c,p=e.width??t.measured.width??0,q1=e.height??t.measured.height??0,s={id:t.id,parentId:t.parentId,rect:{width:p,height:q1,...DX({x:e.x??t.position.x,y:e.y??t.position.y},{width:p,height:q1},t.parentId,x,y)}},W1=tq([s],x,g,c);a.push(...W1),d.x=e.x?Math.max(y[0]*p,e.x):void 0,d.y=e.y?Math.max(y[1]*q1,e.y):void 0}if(d.x!==void 0&&d.y!==void 0){let y={id:N,type:"position",position:{...d}};a.push(y)}if(e.width!==void 0&&e.height!==void 0){let p={id:N,type:"dimensions",resizing:!0,setAttributes:!O?!0:O==="horizontal"?"width":"height",dimensions:{width:e.width,height:e.height}};a.push(p)}for(let y of Q1){let p={...y,type:"position"};a.push(p)}J1(a)},onEnd:({width:e,height:Q1})=>{let J1={id:N,type:"dimensions",resizing:!1,dimensions:{width:e,height:Q1}};v.getState().triggerNodeChanges([J1])}});return b.current.update({controlPosition:E,boundaries:{minWidth:B,minHeight:T,maxWidth:R,maxHeight:M},keepAspectRatio:A,resizeDirection:O,onResizeStart:V,onResize:S,onResizeEnd:C,shouldResize:P}),()=>{b.current?.destroy()}},[E,B,T,R,M,A,V,S,C,P]);let m=E.split("-");return Y1.jsx("div",{className:m0(["react-flow__resize-control","nodrag",...m,Z,X]),ref:u,style:{...H,scale:k,...W&&{[h?"backgroundColor":"borderColor"]:W}},children:Y})}var Sg=z1.memo(kv);var Dv=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function uv({children:Q}){let U=X0(Dv);if(!U)return null;return JR.createPortal(Q,U)}var bv=(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,Ev=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,X]of Q)if(bv(X,U.get(Z)))return!1;return!0},hv=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function gR({nodeId:Q,children:U,className:Z,style:X,isVisible:H,position:Y=D1.Top,offset:W=10,align:B="center",...T}){let R=oX(),M=z1.useCallback((u)=>{return(Array.isArray(Q)?Q:[Q||R||""]).reduce((b,E)=>{let m=u.nodeLookup.get(E);if(m)b.set(m.id,m);return b},new Map)},[Q,R]),A=X0(M,Ev),{x:O,y:w,zoom:P,selectedNodesCount:V}=X0(hv,k0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let C=E8(A),D=Array.from(A.values()),N=Math.max(...D.map((u)=>u.internals.z+1)),v={position:"absolute",transform:QT(C,{x:O,y:w,zoom:P},Y,W,B),zIndex:N,...X};return Y1.jsx(uv,{children:Y1.jsx("div",{style:v,className:m0(["react-flow__node-toolbar",Z]),...T,"data-id":D.reduce((u,h)=>`${u}${h.id} `,"").trim(),children:U})})}function GU(Q={}){let U=(X,H)=>Q.tools?`${H} (\`${X}\`)`:`\`${X}\``,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 X=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 ${X} --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://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),Z.join(`
248
+ `)}var pR={"git-commit-horizontal":[["rect",{x:"9",y:"9",width:"6",height:"6"}],["path",{d:"M3 12h6M15 12h6"}]],"arrow-down-to-line":[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]],"arrow-up-from-line":[["path",{d:"m18 9-6-6-6 6"}],["path",{d:"M12 3v14"}],["path",{d:"M5 21h14"}]],"git-branch":[["rect",{x:"4",y:"3",width:"4",height:"4"}],["rect",{x:"4",y:"17",width:"4",height:"4"}],["rect",{x:"16",y:"5",width:"4",height:"4"}],["path",{d:"M6 7v10M18 9v2a4 4 0 0 1-4 4H6"}]],monitor:[["rect",{x:"3",y:"4",width:"18",height:"13"}],["path",{d:"M8 21h8M12 17v4"}]],vault:[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"6.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 7.9 2.7 2.7"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 10.6 2.7-2.7"}],["rect",{x:"6.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m7.9 16.1 2.7-2.7"}],["rect",{x:"15.3",y:"15.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["path",{d:"m13.4 13.4 2.7 2.7"}],["circle",{cx:"12",cy:"12",r:"2"}]],settings:[["circle",{cx:"12",cy:"12",r:"3"}],["circle",{cx:"12",cy:"12",r:"7"}],["path",{d:"M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9L7 7M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"}]],history:[["path",{d:"M3 12a9 9 0 1 0 3-6.7"}],["path",{d:"M3 4v5h5"}],["path",{d:"M12 7v5l3 3"}]],activity:[["path",{d:"M2 12h4l3-8 6 16 3-8h4"}]],"file-diff":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M9 10h6"}],["path",{d:"M12 13V7"}],["path",{d:"M9 17h6"}]],"square-plus":[["rect",{x:"4",y:"4",width:"16",height:"16"}],["path",{d:"M12 8v8M8 12h8"}]],"square-minus":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["path",{d:"M8 12h8"}]],"square-dot":[["rect",{width:"18",height:"18",x:"3",y:"3"}],["rect",{x:"10.8",y:"10.8",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],cloud:[["path",{d:"M7 19a5 5 0 0 1-.5-10A6 6 0 0 1 18 8a4.5 4.5 0 0 1 .5 11z"}]],"refresh-cw":[["path",{d:"M20 12a8 8 0 0 1-14.3 4.9M4 12a8 8 0 0 1 14.3-4.9"}],["path",{d:"M19 3v5h-5M5 21v-5h5"}]],clock:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M12 7v5l3 3"}]],"key-round":[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["rect",{x:"15.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],plug:[["path",{d:"M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0zM12 18v3"}]],"list-checks":[["path",{d:"M11 6h9M11 12h9M11 18h9"}],["path",{d:"M3 6l1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17"}]],palette:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}],["rect",{x:"12.3",y:"5.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"16.3",y:"9.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"5.3",y:"11.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}],["rect",{x:"7.3",y:"6.3",width:"2.4",height:"2.4",fill:"currentColor",stroke:"none"}]],check:[["path",{d:"M4 12l5 5L20 6"}]],plus:[["path",{d:"M12 4v16M4 12h16"}]],"chevron-down":[["path",{d:"M5 9l7 7 7-7"}]],"external-link":[["path",{d:"M14 4h6v6M20 4l-9 9"}],["path",{d:"M18 14v6H4V6h6"}]],"table-2":[["path",{d:"M3 9h18"}],["path",{d:"M9 3v18"}],["rect",{x:"3",y:"3",width:"18",height:"18"}]],"scroll-text":[["path",{d:"M15 12h-5"}],["path",{d:"M15 8h-5"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3"}]],"layout-grid":[["rect",{x:"4",y:"4",width:"7",height:"7"}],["rect",{x:"13",y:"4",width:"7",height:"7"}],["rect",{x:"4",y:"13",width:"7",height:"7"}],["rect",{x:"13",y:"13",width:"7",height:"7"}]],globe:[["circle",{cx:"12",cy:"12",r:"9"}],["path",{d:"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"}]],"arrow-left":[["path",{d:"M20 12H5M11 6l-6 6 6 6"}]],link:[["path",{d:"M9 15l6-6"}],["path",{d:"M11 6l2-2a4.2 4.2 0 0 1 6 6l-2 2M13 18l-2 2a4.2 4.2 0 0 1-6-6l2-2"}]],user:[["circle",{cx:"12",cy:"8",r:"4"}],["path",{d:"M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"}]],"log-out":[["path",{d:"M10 4H4v16h6M9 12h11M16 8l4 4-4 4"}]]};var F=E0(O8(),1),FU="volter.console.token",l8=document.getElementById("root"),a1=l8.dataset.base??"/-/console",z0=window.location.origin,j6=(l8.dataset.worlds??z0).replace(/\/+$/,""),oR=(l8.dataset.names??"").split(",").filter((Q)=>Q!==""),f6=l8.dataset.worldOrigin==="1",c8=window.fetch.bind(window),S6="(session)",nR="(pass)",hJ=(Q)=>{try{if(Q&&!f6)sessionStorage.setItem(FU,Q);else sessionStorage.removeItem(FU);localStorage.removeItem(FU)}catch{}},eR="volter.console.portal",_O=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(eR,new URL(Q).origin)}catch{}},xv=()=>{return d8.get("token")??""},k2=()=>{try{let Q=sessionStorage.getItem(eR)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},mv=()=>{let Q=xv();if(f6){if(hJ(""),d8.get("pass"))return nR;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?"":S6)}if(Q)return hJ(Q),Q;try{return sessionStorage.getItem(FU)??""}catch{return""}};function Q2(Q){let U=Q.trim();if(/not ready/i.test(U)&&/(never verified|not verified|no approvals)/i.test(U)){let Y=[],W=[];if(/(never verified|not verified)/i.test(U))Y.push("it is not verified yet"),W.push("verify");if(/no approvals/i.test(U))Y.push("no one has approved it"),W.push("approve");return{text:`Not ready to deploy: ${I8(Y)}.`,acts:W}}let Z=/no credential (?:is )?sealed for ([a-z0-9_-]+)/i.exec(U);if(Z)return{text:`No credential is sealed for ${c1(Z[1])}: seal one in Settings › Vault.`,acts:["vault"]};if(/has no origin/i.test(U))return{text:"This World has no remote: name one in Settings › Remote.",acts:["remote"]};let X=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(X){let Y=X[1].split(/,\s*/).filter(Boolean).map(c1);return{text:`${I8(Y)} ${Y.length===1?"is":"are"} not connected to ${Y.length===1?"its":"their"} real service: Settings › Real services.`,acts:["settings"]}}if(/opening a seal is/i.test(U))return{text:"A key cannot seal a credential: open the World as yourself.",acts:[]};if(/a key manages no keys/i.test(U))return{text:"A key cannot manage keys: open the World as yourself.",acts:[]};if(/^PUT origin:/i.test(U))return{text:"That is not a World's address: https://<host>/<org>/<world>",acts:[]};if(/^clock: \{/i.test(U))return{text:"Pick a date and time.",acts:[]};if(/^advance: \{/i.test(U))return{text:"Advance by a number and a unit: 90m, 12h, 3d.",acts:[]};if(/^branches: \{/i.test(U))return{text:"That branch could not be made: pick now, or an instant before it.",acts:[]};if(/^approve: \{/i.test(U))return{text:"Name who approves.",acts:[]};if(/a browser deploys only what it names/i.test(U))return{text:"A deploy is confirmed by its name: use Deploy again.",acts:[]};if(/^no such door/i.test(U))return{text:"This World does not answer that here.",acts:[]};return{text:U.replace(/\s*[—–-]+\s*(?:run\s+)?`[^`]*`/g,"").replace(/\s*[—–-]+\s*(?:PUT|POST|GET|DELETE)\s+\/-\/\S+(?:\s*\{[^}]*\})?/g,"").replace(/\s*\(\s*`[^`]*`\s*\)/g,"").replace(/`(?:volter|printf|curl|npm|bun)[^`]*`/g,"").replace(/:\s*\{[^}]*\}/g,"").replace(/\(\s*\)/g,"").replace(/\s*;\s*(?=[;.]|$)/g,"").replace(/\s+([,.;:])/g,"$1").trim()||Q,acts:[]}}var h5=async(Q)=>Q2(await L3(Q)).text,gv={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function JO({name:Q,acts:U}){let Z=U.map((X)=>gv[X]).filter((X)=>Boolean(X));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([X,H])=>F.jsxDEV(X1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${a1}/${Q}/~/${X}`,onClick:(Y)=>{Y.preventDefault(),A0([...Q.split("/"),"~",...X.split("/")])},children:H},void 0,!1,void 0,this)]},X,!0,void 0,this))},void 0,!1,void 0,this)}async function W0(Q,U,Z={}){return c8(`${z0}${U}`,{...Z,headers:{...Z.headers??{},...Q===S6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function f0(Q,U,Z=0){let X=hA((H)=>W0(Q,H),U,Z,Q);return X.state==="error"?{...X,error:Q2(X.error).text}:X}var T9=(Q)=>{let U=new Date(Q),Z=(X)=>String(X).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},cR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),$O=(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",pv=(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},QH="volter.console.snapshots",P3=()=>{try{return JSON.parse(sessionStorage.getItem(QH)??"{}")}catch{return{}}},QO=new Map,qH=(Q)=>{if(f6){if(Q.token||Q.readToken)QO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(QH,JSON.stringify({...P3(),[Q.name]:Q}))}catch{}},UH=(Q)=>QO.get(Q)?.readToken||P3()[Q]?.readToken||"",KU=(Q)=>{try{let U=P3();delete U[Q],sessionStorage.setItem(QH,JSON.stringify(U))}catch{}},d8=new URLSearchParams(window.location.hash.slice(1)),B9=d8.get("close")??"";function mJ(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 GH(Q){let U=mJ(Q);if(!U)return null;let Z=new URL(z0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let X=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!X.test(U.hostname))return null;let H=U.hostname.replace(X,"");return H===Z.hostname||X.test(Z.hostname)&&H===Z.hostname.replace(X,"")?U.origin:null}function cv(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 X=U.parentOrigin===void 0?void 0:GH(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,...X?{parentOrigin:X}:{}}}{let Q=d8.get("snapshot");if(Q){let U=cv(Q);if(U&&!P3()[U.name])qH(U)}}var qO="volter.console.home",UO=(Q)=>{let U=mJ(Q);if(!U)return null;let Z=new URL(z0).hostname,X=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===X?U.origin:null};{let Q=UO(d8.get("home"));if(Q)try{sessionStorage.setItem(qO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>d8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var $4=()=>{try{return UO(sessionStorage.getItem(qO))??""}catch{return""}};function ZH(Q,U,Z,X){let H=new URLSearchParams({token:U,home:$4()||z0}),Y=P3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${X??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var $H=l8.dataset.route==="memory"?"":null;function g8(){return($H??window.location.pathname.slice(a1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var lR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,w3=(Q,U)=>Q&&U&&lR.test(Q)&&lR.test(U)?`${Q}/${U}`:"";function A0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if($H!==null)$H=U;else window.history.pushState(null,"",`${a1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function GO(Q,U){let Z=GH(P3()[Q]?.origin);if(Z&&Z!==z0){ZH(Z,UH(Q),Q,`${a1}/${U.map(encodeURIComponent).join("/")}`);return}A0(U)}async function dR(){let[Q,U]=g8(),Z=w3(Q,U),X=Z?[Z]:oR;if(X.length===0){let H=await c8(`${z0}/-/ping`).catch(()=>null);X=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}X=X.filter((H)=>{let[Y,W,...B]=H.split("/");return B.length===0&&w3(Y,W)===H});for(let H of X){let Y=await c8(`${z0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),B=mJ(W.origin)?.origin;if(Y.status===409&&B&&B!==z0)return window.location.replace(`${B}${a1}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:S6}}return null}function lv(){let[Q,U]=X1.useState(sF),Z=(X)=>()=>{try{if(X==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",X)}catch{}Wq(X),U(X)};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"theme-choice",role:"radiogroup","aria-label":"Appearance",children:["system","light","dark"].map((X)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===X,onClick:Z(X),children:X==="system"?"System":X==="light"?"Light":"Dark"},X,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function dv(){let[Q,U]=X1.useState(mv()),[Z,X]=X1.useState(!1),[H,Y]=X1.useState(!1),[W,B]=X1.useState(""),[T,R]=X1.useState(null),[M,A]=X1.useState(null),[O,w]=X1.useState(g8());X1.useEffect(()=>{let p=()=>w(g8());return window.addEventListener("popstate",p),()=>window.removeEventListener("popstate",p)},[]),X1.useEffect(()=>{let[p,q1]=g8(),s=w3(p,q1),[W1,R1]=s?s.split("/"):[],T1=P3()[B9];if(!B9||!Q||!W1||!R1||!T1?.made||T1.parent!==`${W1}/${R1}`||w3(...B9.split("/"))!==B9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}W0(Q,`/-/${W1}/${R1}/branches/${B9}`,{method:"DELETE"}).catch(()=>null).then(()=>KU(B9))},[Q]);let P=X1.useCallback(async(p)=>{if(A(null),!p){let R1=await dR();if(R1==="moved")return;if(R1){if(X(!0),R1.token!==S6)hJ(R1.token);U(R1.token);return}R(null),Y(!0);return}if(f6&&p===S6){let R1=await dR();if(R1==="moved")return;if(R1)X(!0)}if(f6&&p===nR){let[R1,T1]=g8(),A1=w3(R1,T1),[U1,w1]=A1?A1.split("/"):[],v1=U1&&w1?await c8(`${z0}/-/${U1}/${w1}/session`,{method:"POST",headers:{"x-volter-pass":d8.get("pass")??""}}).catch(()=>null):null;if(!v1){A(`${z0} did not answer: no session was opened`),R(null);return}if(!v1.ok){A(`${await h5(v1)}. Open it again from the platform.`),R(null);return}_O((await v1.json().catch(()=>({}))).issuer),U(S6);return}if(f6&&p!==S6){let[R1,T1]=g8(),A1=w3(R1,T1),[U1,w1]=A1?A1.split("/"):[],v1=U1&&w1?await c8(`${z0}/-/${U1}/${w1}/session`,{method:"POST",headers:{"x-volter-token":p}}).catch(()=>null):null;if(!v1){A(`${z0} did not answer: no session was opened`),R(null);return}if(!v1.ok){let M1=await h5(v1);A(v1.status===401||v1.status===403?`That token does not open ${U1}/${w1}.`:v1.status===409?`${U1}/${w1}'s session lives at another origin: ${M1}`:`The World could not open a session (${v1.status}): ${M1}`),R(null);return}U(S6);return}let q1=f6?new Response(null,{status:404}):await W0(p,"/-/worlds");if(q1.ok){let{worlds:R1}=await q1.json();R({kind:"admin",worlds:R1});return}if(q1.status===429){A("You are asking faster than the platform allows — wait a moment and reload."),R(null);return}if(q1.status>=500){let R1=await q1.json().catch(()=>({}));A(`The platform could not list your worlds${R1.error?`: ${R1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),R(null);return}let s=oR;if(s.length===0){let R1=await c8(`${z0}/-/ping`);if(!R1.ok){A(`${z0} does not answer as a host`),R(null);return}if(s=(await R1.json()).worlds??[],s.length===0){A(`${z0} does not list its Worlds: open a World at its own address, ${z0}${a1}/<org>/<world>`),R(null);return}}let W1=[];for(let R1 of s){let T1=await W0(p,`/-/${R1}/twins`);if(T1.ok){let A1=await T1.json();W1.push({name:R1,base:`${j6}/${R1}`,twins:(A1.twins??[]).map((U1)=>({vendor:U1.twin,protocol:U1.protocol??null,root:U1.root??null}))})}}if(W1.length===0){A("This link or key opens no World here: it was revoked, or it has ended."),R(null);return}R({kind:"world",worlds:W1})},[]);X1.useEffect(()=>{P(Q)},[Q,P]);let V=(p)=>T?.kind==="admin"?T.worlds.find((q1)=>q1.name===p)?.token??Q:Q,[S,C]=X1.useState("");if(!Q||!T&&!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(QJ,{href:`${a1}/`},void 0,!1,void 0,this),Q&&!T&&!M||!Q&&!H?F.jsxDEV("p",{className:"mode",children:"Opening…"},void 0,!1,void 0,this):F.jsxDEV("form",{onSubmit:(p)=>{p.preventDefault(),hJ(W.trim()),U(W.trim())},className:"stack",children:[F.jsxDEV("h2",{children:"Open a World"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"A World's token opens that World. A host's admin token opens every World it serves."},void 0,!1,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Token"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"token",type:"password",value:W,onChange:(p)=>B(p.target.value),autoFocus:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",children:"Open"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let D=()=>{if(Z){window.location.reload();return}if(f6){let[p,q1]=g8(),s=w3(p,q1),[W1,R1]=s?s.split("/"):[],T1=()=>window.location.replace(k2()?`${k2()}/`:`${z0}${a1}/${W1&&R1?`${W1}/${R1}`:""}?signin`);if(setTimeout(T1,2000),W1&&R1)c8(`${z0}/-/${W1}/${R1}/session/end`,{method:"POST"}).catch(()=>null).then(T1);else T1();return}if(T)for(let p of T.worlds)navigator.sendBeacon(`${p.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${p.name}/session/end`);hJ(""),U(""),B(""),R(null),A0([])};if(M||!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(QJ,{href:`${a1}/`},void 0,!1,void 0,this),F.jsxDEV("h2",{children:"Could not open it"},void 0,!1,void 0,this),F.jsxDEV("p",{role:"alert",children:M??"nothing answered"},void 0,!1,void 0,this),k2()?F.jsxDEV("a",{className:"button primary",href:`${k2()}/`,children:["Back to ",new URL(k2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:D,children:Z?"Try again":"Use another token"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let[N,v,u,h,k,b,E]=O,m=u==="~",e=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,J1=m||!u||!e.test(u)?void 0:u,x=k&&e.test(k)?b!==void 0&&h!=="changes"&&h!=="screens"?w3(k,b)||void 0:k:void 0,g=h==="changes"&&k==="changesets"&&b&&e.test(b)?b:h==="screens"&&b&&E&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(E)?`${b}:${E}`:void 0,c=w3(N,v),a=c?P3()[c]??null:null,d=(p)=>UH(p)||V(p),t=a?T.kind==="admin"?T.worlds.find((p)=>p.name===a.parent)?.token??null:T.worlds.some((p)=>p.name===a.parent)?Q:null:null,y=async(p)=>{let q1=GH(p.parentOrigin);if(q1&&q1!==z0){KU(p.name),window.location.assign(`${q1}${a1}/${p.parent}#close=${encodeURIComponent(p.name)}`);return}if(p.made)await W0(V(p.parent),`/-/${p.parent}/branches/${p.name}`,{method:"DELETE"}).catch(()=>null),KU(p.name);A0(p.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(cA,{},void 0,!1,void 0,this):null,F.jsxDEV(QJ,{href:`${$4()&&$4()!==z0?$4():""}${a1}/`,onClick:(p)=>{if($4()&&$4()!==z0)return;p.preventDefault(),A0([])}},void 0,!1,void 0,this),F.jsxDEV("nav",{"aria-label":"breadcrumb",className:"crumbs",children:[c?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("span",{children:c.split("/")[0]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"crumb-sep","aria-hidden":"true",children:"/"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${c}`,className:"crumb-world",onClick:(p)=>{p.preventDefault(),A0(c.split("/"))},children:c.split("/")[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J1?F.jsxDEV("span",{children:[" / ",J1]},void 0,!0,void 0,this):null,m&&h==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k2()?F.jsxDEV("a",{href:`${k2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(k2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(k2()).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,c?null:F.jsxDEV("span",{className:"mode",children:Z?"on this machine":S?`signed in as ${S}`:T.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:D,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(sv,{name:c,token:d(c),twin:J1,tab:m?h??"overview":"overview",arg:m?x:void 0,...m&&g?{sub:g}:{},admin:a?null:T.kind==="admin"?Q:null,snapshot:a,parentToken:t,who:{local:Z,person:S||null,admin:T.kind==="admin"},onSignOut:D,onReturn:y,opens:(p)=>!!P3()[p]||T.kind==="admin"&&T.worlds.some((q1)=>q1.name===p),onRemoved:()=>{P(Q),A0([])},onWho:C,worlds:T.worlds.map((p)=>p.name)},c,!1,void 0,this):F.jsxDEV(iv,{mode:T,admin:T.kind==="admin"?Q:null,reload:()=>P(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iv({mode:Q,admin:U,reload:Z}){let[X,H]=X1.useState(""),[Y,W]=X1.useState(""),[B,T]=X1.useState(""),[R,M]=X1.useState(null),A=async(k)=>{if(!await u4({title:`Rotate the tokens of ${k}?`,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 b=await W0(U,`/-/worlds/${k}/rotate`,{method:"POST"}),E=await b.json().catch(()=>({}));M(b.ok?`rotated ${k}: the new tokens are shown once — token ${E.token} · read token ${E.readToken}`:E.error?Q2(E.error).text:`answered ${b.status}`),await Z()},O=async(k)=>{let b=await W0(U,`/-/worlds/${k}`,{method:"DELETE"}),E=await b.json().catch(()=>({}));M(b.ok?`removed ${k}`:E.error?Q2(E.error).text:`answered ${b.status}`),await Z()},[w,P]=X1.useState(!1),[V,S]=X1.useState(!1),[C,D]=X1.useState(""),N=async(k)=>{k.preventDefault(),M(null),P(!0);try{let b=await W0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:X,world:Y,vendors:B.split(",").map((m)=>m.trim()).filter(Boolean)})}),E=await b.json();if(!b.ok){M(E.error?Q2(E.error).text:`the host answered ${b.status}`);return}M(`provisioned ${E.name}`),W(""),T(""),S(!1),await Z()}finally{P(!1)}},v=C.trim().toLowerCase(),u=Q.worlds.filter((k)=>!v||k.name.toLowerCase().includes(v)||k.twins.some((b)=>b.vendor.includes(v))),h=[...new Set(u.map((k)=>k.name.split("/")[0]))];return F.jsxDEV("section",{className:"home-window","aria-labelledby":"worlds",children:[F.jsxDEV("div",{className:"home-head",children:[F.jsxDEV("h2",{id:"worlds",children:"Worlds"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[r0(Q.worlds.length,"World")," ",U?"this host serves":"this key opens"]},void 0,!0,void 0,this),U?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{M(null),S(!0)},children:[F.jsxDEV(U0,{name:"plus",size:16},void 0,!1,void 0,this),"New World"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"home-find",children:F.jsxDEV("input",{type:"search",placeholder:"Filter by World or vendor","aria-label":"Filter Worlds",value:C,onChange:(k)=>D(k.target.value)},void 0,!1,void 0,this)},void 0,!1,void 0,this),R&&!V?F.jsxDEV("p",{role:"status",className:"home-note",children:R},void 0,!1,void 0,this):null,h.map((k)=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:k},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:u.filter((b)=>b.name.split("/")[0]===k).map((b)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${a1}/${b.name}`,onClick:(E)=>{E.preventDefault(),A0(b.name.split("/"))},children:[F.jsxDEV(U0,{name:"globe",size:20},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:b.name.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("small",{children:F.jsxDEV("code",{children:b.base},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"home-vendors",children:b.twins.map((E)=>F.jsxDEV("span",{title:c1(E.vendor),children:F.jsxDEV($2,{vendor:E.vendor},void 0,!1,void 0,this)},E.vendor,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?F.jsxDEV("details",{className:"menu home-more",children:[F.jsxDEV("summary",{"aria-label":`More for ${b.name}`,children:"⋯"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"popover menu-list",children:[F.jsxDEV("button",{type:"button",onClick:(E)=>{E.currentTarget.closest("details")?.removeAttribute("open"),A(b.name)},children:"Rotate tokens…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"danger-item",onClick:(E)=>{E.currentTarget.closest("details")?.removeAttribute("open"),u4({title:`Remove ${b.name}?`,body:"The host stops serving it and its whole history goes with it. This cannot be undone.",action:"Remove World",danger:!0,typed:b.name}).then((m)=>{if(m)O(b.name)})},children:"Remove World…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},b.name,!0,void 0,this))},void 0,!1,void 0,this)]},k,!0,void 0,this)),u.length===0?F.jsxDEV("p",{className:"mode home-note",children:v?`No World matches ${C}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(R5,{open:V,onClose:()=>{if(!w)S(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>S(!1),disabled:w,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:w,children:w?"Making… (ten seconds or so)":"Make World"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"provision",onSubmit:N,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:X,onChange:(k)=>H(k.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"world",value:Y,onChange:(k)=>W(k.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Vendors"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"vendors",value:B,onChange:(k)=>T(k.target.value),placeholder:"stripe, slack",required:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"A twin of each, with its default data."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R?F.jsxDEV("p",{role:"status",children:R},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)}var rv=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],av=(Q,U)=>{let Z=U?.screens?.find((X)=>X.path.replace(/\/+$/,"")==="")??U?.screens?.find((X)=>!/[{<]/.test(X.path));return U&&Z?`${j6}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},iR={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 Q4(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),X=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${X.charAt(0).toUpperCase()}${X.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),W=U.replace(/[._]+/g," ").trim(),B=Y?`${H} seeded`:iR[Z]?`${H} ${iR[Z]}`:`${W.charAt(0).toUpperCase()}${W.slice(1)}`,T=Q.fields??{},R=["title","name","email","text","subject","summary","description"].map((A)=>T[A]).find((A)=>typeof A==="string"&&A.trim()!=="")??null,M=R===null?null:R.replace(/<([@#!])[^|>]*\|([^>]+)>/g,(A,O,w)=>`${O==="!"?"@":O}${w}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:B,label:M===null?null:M.length>80?`${M.slice(0,79)}…`:M}}var v6=(Q)=>/token|password|secret|key|credential/i.test(Q.subject.type)&&Q.subject.id.length>6?`••••${Q.subject.id.slice(-4)}`:Q.subject.id;function sv({name:Q,token:U,twin:Z,tab:X,arg:H,sub:Y,admin:W,snapshot:B,parentToken:T,who:R,onSignOut:M,onReturn:A,opens:O,onRemoved:w,onWho:P,worlds:V=[]}){let[S,C]=X1.useState("pending"),[D,N]=X1.useState(null),[v,u]=X1.useState(0),[h,k]=X1.useState(null);X1.useEffect(()=>{let A1=!0;return N(null),W0(U,`/-/${Q}/session`,{method:"POST"}).then(async(U1)=>{let w1=await U1.json().catch(()=>({}));if(_O(w1.issuer),w1.who)P?.(w1.who);k(typeof w1.signsAs==="string"?w1.signsAs:null);let v1=mJ(w1.origin)?.origin;if(U1.status===409&&v1&&v1!==z0){ZH(v1,U,Q);return}if(!A1)return;if(C(!U1.ok?"unknown":w1.scope==="read"?"read":w1.scope==="write"?"write":"unknown"),!U1.ok)N(w1.error?Q2(w1.error).text:`answered ${U1.status}`)}).catch((U1)=>{if(A1)C("unknown"),N(`the World did not answer: ${U1 instanceof Error?U1.message:String(U1)}`)}),()=>{A1=!1}},[Q,U,v]);let b=D?{state:"error",error:D}:S==="pending"?{state:"pending"}:{state:"ok",scope:S},E=S==="write",m=(A1)=>{if(A1.status!==403)return;A1.clone().json().then((U1)=>{if(/read token|opens only reads|write access|reads only/i.test(U1?.error??""))C("read")},()=>null)},[e,Q1]=X1.useState(0);X1.useEffect(()=>{let A1=setInterval(()=>{if(!document.hidden)Q1((U1)=>U1+1)},5000);return()=>clearInterval(A1)},[]);let[J1,x]=X1.useState(0),g=f0(U,`/-/${Q}/clock`,e+J1),c=f0(U,`/-/${Q}/twins`),a=f0(U,`/-/${Q}/branches`,J1),d=f0(U,`/-/${Q}/map`,Math.floor(e/2)),t=!(a.state==="error"&&(a.status===404||a.status===405)),y=rv.includes(X)?X:"overview",p=c.state==="ok"?c.data.twins.map((A1)=>A1.twin):[];if(Z&&c.state==="ok"&&!p.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(o7,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${a1}/${Q}`,onClick:(A1)=>{A1.preventDefault(),A0(Q.split("/"))},children:["Open ",Q]},void 0,!0,void 0,this),children:F.jsxDEV("p",{children:["No vendor of this World is called ",Z,". Its changesets are under Changes › History."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);let q1=y==="vendors"&&H?H:void 0,s=()=>{C("pending"),u((A1)=>A1+1)};if(y==="canvas"||y==="vendors"&&!q1||X==="screens"&&!H)return F.jsxDEV(wV,{name:Q,token:U,twins:c,session:b,retry:s,snapshot:B,back:()=>A0(Q.split("/")),canWrite:E&&!B},void 0,!1,void 0,this);let R1=X==="settings"?{kind:"settings",tab:((A1)=>ZO.find(([U1])=>U1===A1)?.[0]??"account")(H)}:X==="remote"?{kind:"settings",tab:"remote"}:X==="vault"?{kind:"settings",tab:"vault"}:X==="branches"?{kind:"branches",...H?{open:H}:{}}:null,T1=Z?"vendor":X==="screens"&&H?"screen":y==="vendors"&&q1?"vendor":X==="trace"?"trace":X==="events"?"events":X==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(UV,{name:Q,token:U,view:T1,win:R1,who:R,snapshot:B,onReturn:A,onSignOut:M,worlds:V,session:b,retry:s,...T1==="vendor"?{arg:Z??q1}:T1==="events"||T1==="trace"||T1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:d,branches:t?a:null,clock:g,canWrite:E&&!B,refused:m,signsAs:h,opens:O,tick:e,admin:W,onRemoved:w,onClock:()=>x((A1)=>A1+1),scope:B?"read":S},void 0,!1,void 0,this)}function U0({name:Q,size:U=20}){return F.jsxDEV("svg",{className:"icon",viewBox:"0 0 24 24",width:U,height:U,fill:"none",stroke:"currentColor",strokeWidth:U<=16?1.75:1.5,strokeLinecap:"square",strokeLinejoin:"miter","aria-hidden":"true",children:(pR[Q]??[]).map(([Z,X],H)=>X1.default.createElement(Z,{key:H,...X}))},void 0,!1,void 0,this)}function HU(Q){let U=(Z)=>{let X=(Z.operation??Z.op).toLowerCase();return X.includes(".")?X.slice(X.lastIndexOf(".")+1):X};if(Q.some((Z)=>/^(delete|remove|archive|revoke)/.test(U(Z))||Z.fields?.deleted===!0))return{icon:"square-minus",word:"removed",tone:"removed"};if(/^(create|add|insert|issue|send|post|upload|invite|record|seed)/.test(U(Q[0])))return{icon:"square-plus",word:"made",tone:"added"};return{icon:"square-dot",word:"changed",tone:"changed"}}var ZO=[["account","Account","user"],["changesets","Changesets","git-commit-horizontal"],["remote","Remote","cloud"],["access","Access","key-round"],["services","Real services","plug"],["vault","Vault","vault"],["checks","Checks","list-checks"],["clock","Clock","clock"],["appearance","Appearance","palette"]],tv=(Q,U)=>{let Z=U.split("/").pop()??U,X=Q.split("/").pop()??"";return Z.startsWith(`${X}-`)?Z.slice(X.length+1):Z},p8=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function FO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],X=Q4(Z),H=HU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),W=Q.writes[0].occurredAt,B={};if(U){for(let A of U)if(!Y.has(A.id)&&!A.landsId&&!A.aliasOf&&A.subject.type===Z.subject.type&&A.subject.id===Z.subject.id&&A.occurredAt<=W)Object.assign(B,A.fields??{})}let T={...B};for(let A of Q.writes)Object.assign(T,A.fields??{});let R=H.tone==="added"&&Object.keys(B).length===0,M=[...new Set([...Object.keys(B),...Object.keys(T)])].filter((A)=>!TO(B[A],T[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${X.label??v6(Z)}: its changes`,children:[F.jsxDEV("div",{className:"ws-diff-head",children:[F.jsxDEV("span",{className:`ws-kind ${H.tone}`,title:H.word,children:F.jsxDEV(U0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV($2,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:X.label??v6(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[c1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:v6(Z)},void 0,!1,void 0,this)," · ",H.word," here"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ol",{className:"ws-writes",children:Q.writes.map((A)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:Q4(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(R0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",xJ(A)]},void 0,!0,void 0,this)]},A.id,!0,void 0,this))},void 0,!1,void 0,this),U===null?F.jsxDEV("p",{className:"mode pad",children:"Reading its history…"},void 0,!1,void 0,this):M.length===0?F.jsxDEV("p",{className:"mode pad",children:"No field holds a new value."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"ws-fields","aria-label":"Fields before and after",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Field"},void 0,!1,void 0,this),R?null:F.jsxDEV("th",{children:"Before"},void 0,!1,void 0,this),F.jsxDEV("th",{children:H.tone==="removed"?"After":"Now"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:M.map((A)=>F.jsxDEV("tr",{children:[F.jsxDEV("th",{scope:"row",children:F.jsxDEV("code",{children:A},void 0,!1,void 0,this)},void 0,!1,void 0,this),R?null:F.jsxDEV("td",{className:A in B?"was":"none",children:A in B?F.jsxDEV(N3,{v:B[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:A in T?"now":"none",children:A in T?F.jsxDEV(N3,{v:T[A]},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},A,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KO({records:Q,selected:U,onPick:Z,label:X}){let[H,Y]=X1.useState(()=>{try{return localStorage.getItem("volter.console.records")==="tree"}catch{return!1}}),W=(R)=>{Y(R);try{localStorage.setItem("volter.console.records",R?"tree":"path")}catch{}},B=(R,M)=>{let A=R.writes[R.writes.length-1],O=Q4(A),w=HU(R.writes);return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:[U===R.key?"on":"",M?"nested":""].join(" ").trim()||void 0,"aria-pressed":U===R.key,onClick:()=>Z(R.key),children:[M?null:F.jsxDEV($2,{vendor:R.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:O.label??v6(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[p8(A.subject.type)," · ",O.what.split(" ").slice(-1)[0],R.writes.length>1?` · ${r0(R.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${w.tone}`,title:w.word,"aria-label":w.word,children:F.jsxDEV(U0,{name:w.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R.key,!1,void 0,this)},T=[...new Set(Q.map((R)=>R.twin))];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-view-switch",role:"group","aria-label":"List the records by",children:[F.jsxDEV("button",{type:"button","aria-pressed":!H,className:H?void 0:"on",onClick:()=>W(!1),children:"Path"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button","aria-pressed":H,className:H?"on":void 0,onClick:()=>W(!0),children:"Tree"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"ws-list","aria-label":X,children:H?T.map((R)=>{let M=Q.filter((A)=>A.twin===R);return F.jsxDEV("li",{className:"ws-group",children:[F.jsxDEV("p",{className:"ws-group-head",children:[F.jsxDEV($2,{vendor:R},void 0,!1,void 0,this),F.jsxDEV("b",{children:c1(R)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:M.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:M.map((A)=>B(A,!0))},void 0,!1,void 0,this)]},R,!0,void 0,this)}):Q.map((R)=>B(R,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ov({name:Q,token:U,branches:Z,opens:X,refused:H,onChanged:Y}){let[W,B]=X1.useState(""),[T,R]=X1.useState(!1),M=Z?.state==="ok"&&Z.data.checkedOut||Q.split("/")[1],A=Z?.state==="ok"&&Z.data.named?.length?Z.data.named:[{name:M,running:!0}],O=Z?.state==="ok"?Z.data.branches:[],w=W.trim().toLowerCase(),P=(S)=>!w||S.toLowerCase().includes(w),V=(S)=>{S.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"The branch served here",children:[F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("b",{children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(U0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover ws-branch-menu",children:[F.jsxDEV("div",{className:"ws-branch-find",children:[F.jsxDEV("input",{type:"search",placeholder:"Filter","aria-label":"Filter branches",value:W,onChange:(S)=>B(S.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(S)=>{V(S),R(!0)},disabled:!Z,children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"This World"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-branch-list",children:A.filter((S)=>P(S.name)).map((S)=>F.jsxDEV("li",{className:S.name===M?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:S.name===M?F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:S.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.name===M?"served here":S.running?"running":"stopped"},void 0,!1,void 0,this)]},S.name,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Branches of it"},void 0,!1,void 0,this),O.length===0?F.jsxDEV("p",{className:"mode ws-branch-none",children:"None yet. New branch makes one, from now or as the World was."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"ws-branch-list",children:O.filter((S)=>P(S.name)).map((S)=>{let C=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(U0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:tv(Q,S.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:S.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(R0,{iso:S.at.instant,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D=S.expiresAt?`Goes away ${new Date(S.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:X(S.name)?F.jsxDEV("a",{href:`${a1}/${S.name}`,title:D,onClick:(N)=>{N.preventDefault(),V(N),GO(S.name,S.name.split("/"))},children:C},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${D}. Its tokens went to whoever made it; it opens from their page.`,children:C},void 0,!1,void 0,this)},S.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${a1}/${Q}/~/branches`,onClick:(S)=>{S.preventDefault(),V(S),A0([...Q.split("/"),"~","branches"])},children:"Manage branches…"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(YO,{name:Q,token:U,open:T,onClose:()=>R(!1),onMade:Y,refused:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function XO({name:Q,view:U,changes:Z,changesets:X}){let H=(Y)=>(W)=>{W.preventDefault(),A0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${a1}/${Q}/~/changes`,className:U==="changes"?"on":void 0,"aria-current":U==="changes"?"page":void 0,onClick:H(["changes"]),children:["Changes",Z?F.jsxDEV("span",{className:"count",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",X?F.jsxDEV("span",{className:"count",children:X},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function nv({name:Q,token:U,sets:Z,sub:X,signsAs:H,canWrite:Y,rooted:W,refused:B,onChanged:T,changes:R,withScreens:M,required:A}){let[O,w]=X1.useState(null),[P,V]=X1.useState(!1),S=Z.state==="ok"?[...Z.data.changesets].sort((b,E)=>E.createdAt.localeCompare(b.createdAt)):[],C=S.find((b)=>b.name===X)??S[0],D=X1.useMemo(()=>{let b=new Map;for(let E of C?AO(C):[]){let m=`${E.twin}:${E.entry.subject.type}:${E.entry.subject.id}`,e=b.get(m)??{key:m,twin:E.twin,writes:[]};e.writes.push(E.entry),b.set(m,e)}return[...b.values()]},[C]),N=D.find((b)=>b.key===O)??D[0],v=f0(U,N?`/-/${Q}/log/${N.twin}`:null),u={added:0,removed:0,changed:0};for(let b of D)u[HU(b.writes).tone]=(u[HU(b.writes).tone]??0)+1;let h=C?YU(C):null,k=C?MO(C,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(XO,{name:Q,view:"history",changes:R,changesets:S.length},void 0,!1,void 0,this),F.jsxDEV(v2,{load:Z,what:"the changesets",lines:4},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-list ws-commits","aria-label":"Changesets",children:S.map((b)=>{let E=C?.name===b.name,m=YU(b).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${a1}/${Q}/~/changes/changesets/${b.name}`,className:E?"on":void 0,"aria-current":E?"true":void 0,onClick:(e)=>{e.preventDefault(),w(null),A0([...Q.split("/"),"~","changes","changesets",b.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:JH(b)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[b.owner??(b.cutBy?XU(b.cutBy):"unrecorded")," • ",F.jsxDEV(R0,{iso:b.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(U0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},b.name,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-pane-right",children:[Z.state==="ok"&&!C?F.jsxDEV(o7,{title:"No changesets yet",children:F.jsxDEV("p",{children:"Cut one from Changes: the cut box is at its foot."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,C&&h&&k?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-commit-head",children:[F.jsxDEV("div",{className:"ws-commit-title",children:[F.jsxDEV("h3",{children:JH(C)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(U0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",r0(D.length,"changed record"),u.added?F.jsxDEV("span",{className:"plus",children:[" +",u.added]},void 0,!0,void 0,this):null,u.removed?F.jsxDEV("span",{className:"minus",children:[" −",u.removed]},void 0,!0,void 0,this):null,u.changed?F.jsxDEV("span",{className:"dot",children:[" •",u.changed]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode ws-commit-meta",children:[F.jsxDEV("code",{children:C.name},void 0,!1,void 0,this)," · ",F.jsxDEV(R0,{iso:C.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"ws-commit-who",children:[["Owner",C.owner??(C.cutBy&&/^(token|token:read)$|^key:(?!.* for:)/.test(C.cutBy)?"no person: a service’s":"unrecorded")],["Cut by",C.cutBy?C.pushedBy&&C.applied===null&&C.cutBy==="machine"?"the machine it was cut on":XU(C.cutBy):"unrecorded"],...C.pushedBy?[["Pushed by",XU(C.pushedBy)]]:[]].map(([b,E])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:b},void 0,!1,void 0,this)," ",E]},b,!0,void 0,this))},void 0,!1,void 0,this),C.pushedBy?F.jsxDEV("p",{className:"mode ws-commit-meta",children:C.applied===null?"Owner and cut by are as the World it was cut in recorded them; pushed by is this World's own record.":"Owner and cut by are this World’s record; pushed by is as the remote recorded it."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),title:"Where it went, the checks, the approvals; Verify, Approve and Deploy",children:[F.jsxDEV("span",{className:`badge cs-${h.tone}`,children:h.label},void 0,!1,void 0,this),F.jsxDEV("span",{className:`badge cs-${k.tone}`,children:k.label},void 0,!1,void 0,this),"Review…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-two inner",children:[F.jsxDEV("div",{className:"ws-files",children:F.jsxDEV(KO,{records:D,...N?{selected:N.key}:{},onPick:w,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:N?F.jsxDEV(FO,{record:N,history:v.state==="ok"?v.data.entries:v.state==="error"?[]:null},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"It changes nothing."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(R5,{open:P,onClose:()=>V(!1),title:`Review: ${JH(C)}`,wide:!0,children:[F.jsxDEV(tR,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:B,onChanged:T,part:"head",required:A},`h:${C.name}`,!1,void 0,this),F.jsxDEV(tR,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:B,onChanged:T,part:"review",required:A},`r:${C.name}`,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ev({name:Q,token:U,vendors:Z,vendor:X,tick:H}){let[Y,W]=X1.useState(rR*4),[B,T]=X1.useState(""),[R,M]=X1.useState(null),A=f0(U,`/-/${Q}/timeline?limit=${Y}${X?`&twin=${encodeURIComponent(X)}`:""}`,Math.floor(H/2)),O=A.state==="ok"?AV(A.data.entries):[],w=[...new Set(O.map((u)=>Q4(u.entry).what))].sort(),P=O.filter((u)=>!B||Q4(u.entry).what===B),V=P.find((u)=>L9(u)===R)??P[0],S=(u)=>(h)=>{h.preventDefault(),M(null),A0([...Q.split("/"),"~","events",...u?[u]:[]])},C=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,D=V?pv(V.entry.traceparent):null,N=V?aR(V):null,v=V?zV(V.entry):[];return F.jsxDEV("div",{className:"ws-events",children:[F.jsxDEV("div",{className:"ws-filterbar",children:[F.jsxDEV("nav",{className:"ws-seg","aria-label":"Vendor",children:[F.jsxDEV("a",{href:`${a1}/${Q}/~/events`,className:!X?"on":void 0,"aria-current":!X?"page":void 0,onClick:S(),children:"All"},void 0,!1,void 0,this),Z.map((u)=>F.jsxDEV("a",{href:`${a1}/${Q}/~/events/${u}`,className:X===u?"on":void 0,"aria-current":X===u?"page":void 0,onClick:S(u),children:[F.jsxDEV($2,{vendor:u},void 0,!1,void 0,this),c1(u)]},u,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:B,onChange:(u)=>{T(u.target.value),M(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),w.map((u)=>F.jsxDEV("option",{value:u,children:u},u,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[F.jsxDEV(v2,{load:A,what:"the events",lines:6},void 0,!1,void 0,this),F.jsxDEV("table",{className:"ws-grid","aria-label":"Events",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Time"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"What"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Record"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"By"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Receipt"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:P.map((u)=>{let h=Q4(u.entry),k=aR(u),b=V&&L9(u)===L9(V);return F.jsxDEV("tr",{className:b?"on":void 0,"aria-selected":b,onClick:()=>M(L9(u)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(R0,{iso:u.entry.occurredAt,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:u.twin},void 0,!1,void 0,this),c1(u.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("b",{children:h.what},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"ws-cell-clip",children:h.label?`“${h.label}”`:F.jsxDEV("code",{children:v6(u.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:xJ(u.entry,u.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:k?F.jsxDEV("span",{className:k.bad?"badge cs-bad":k.status==="deployed"?"badge cs-done":"badge",children:k.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:$O(u.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},L9(u),!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-detail",children:V?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-event-line",children:[F.jsxDEV("span",{className:"badge",children:WO(V.entry)},void 0,!1,void 0,this),N?F.jsxDEV("span",{className:N.bad?"badge cs-bad":"badge cs-good",children:N.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[V.entry.subject.type,":",v6(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(R0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",xJ(V.entry,V.caller)]},void 0,!0,void 0,this),D?F.jsxDEV("a",{href:`${a1}/${Q}/~/trace/${D.trace}`,onClick:(u)=>{u.preventDefault(),A0([...Q.split("/"),"~","trace",D.trace])},children:"Its trace →"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-event-panes",children:[F.jsxDEV("div",{role:"region","aria-label":"The request",children:[F.jsxDEV("h4",{children:"Request"},void 0,!1,void 0,this),C!==void 0?F.jsxDEV(BV,{body:C},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"No request body: the World or the vendor wrote it."},void 0,!1,void 0,this),v.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:v.map(([u,h])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:u},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},u,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{role:"region","aria-label":"What it wrote",children:[F.jsxDEV("h4",{children:"Written"},void 0,!1,void 0,this),F.jsxDEV(LO,{fields:V.entry.fields},void 0,!1,void 0,this),F.jsxDEV("h4",{children:V.copies.length?"Receipts":"Receipt"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:V.copies.length?V.copies.map((u)=>u.entry.receipt?.status??"landed copy").join(" · "):LV(V.entry)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode pad",children:"Nothing written here yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:[F.jsxDEV("span",{children:[V?`${P.indexOf(V)+1} of ${P.length}`:P.length," events",X?` at ${c1(X)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((u)=>u+rR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function _V({name:Q,token:U,id:Z}){let X=/^[0-9a-f]{32}$/.test(Z),H=f0(U,X?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,O)=>-zO(A,O)):[],[W,B]=X1.useState(null),T=Y[0]?Date.parse(Y[0].entry.occurredAt):0,R=Y.length?Math.max(1,Date.parse(Y[Y.length-1].entry.occurredAt)-T):1,M=[...new Set(Y.map((A)=>A.twin))];return F.jsxDEV("div",{className:"ws-sheet ws-trace",children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${a1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),A0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(U0,{name:"arrow-left",size:16},void 0,!1,void 0,this)," Events"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("h2",{children:[Y[0]?`${Q4(Y[0].entry).what} …`:"Trace"," ",F.jsxDEV("code",{className:"mode",children:Z.slice(0,12)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!X?F.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):F.jsxDEV(v2,{load:H,what:"the trace"},void 0,!1,void 0,this),Y.length?F.jsxDEV("p",{className:"ws-trace-meta",children:["Started ",F.jsxDEV("b",{children:F.jsxDEV(R0,{iso:Y[0].entry.occurredAt},void 0,!1,void 0,this)},void 0,!1,void 0,this)," · Took ",F.jsxDEV("b",{children:[R," ms"]},void 0,!0,void 0,this)," · Vendors ",F.jsxDEV("b",{children:M.map(c1).join(", ")},void 0,!1,void 0,this)," · Writes ",F.jsxDEV("b",{children:Y.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,H.state==="ok"&&Y.length===0?F.jsxDEV(o7,{title:"Nothing in this World carries this trace",children:F.jsxDEV("p",{children:["An app instrumented with OpenTelemetry sends a ",F.jsxDEV("code",{children:"traceparent"},void 0,!1,void 0,this)," with each call, and every write that call makes keeps it, so one click reads across every vendor."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,Y.length?F.jsxDEV("div",{className:"ws-spans",role:"table","aria-label":"The trace's writes",children:[F.jsxDEV("div",{className:"ws-span head",role:"row",children:[F.jsxDEV("span",{role:"columnheader",children:"Vendor and what"},void 0,!1,void 0,this),F.jsxDEV("span",{role:"columnheader",className:"ws-ticks",children:[F.jsxDEV("span",{children:"0 ms"},void 0,!1,void 0,this),F.jsxDEV("span",{children:[Math.round(R/2)," ms"]},void 0,!0,void 0,this),F.jsxDEV("span",{children:[R," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.map((A)=>{let O=Date.parse(A.entry.occurredAt)-T,w=L9(A),P=Q4(A.entry);return F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("div",{className:W===w?"ws-span on":"ws-span",role:"row",onClick:()=>B(W===w?null:w),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV($2,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:c1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[P.what,P.label?` “${P.label}”`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{role:"cell",className:"ws-span-track",children:[F.jsxDEV("span",{className:"ws-span-dot",style:{left:`${O/R*100}%`}},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-span-at mode",style:{left:`${O/R*100}%`},children:["+",O," ms"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W===w?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:WO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",v6(A.entry)]},void 0,!0,void 0,this)," · ",xJ(A.entry,A.caller)," · ",$O(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(LO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},w,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function JV({name:Q,token:U,vendor:Z,withScreens:X,tick:H}){let Y=f0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),W=Y.state==="ok"?Y.data.tree.filter((v)=>v.deleted!==!0):[],B=[...new Set(W.map((v)=>v.type))].map((v)=>({type:v,count:W.filter((u)=>u.type===v).length})).sort((v,u)=>Number(v.type.startsWith("_"))-Number(u.type.startsWith("_"))||p8(v.type).localeCompare(p8(u.type))),[T,R]=X1.useState(null),[M,A]=X1.useState(null),O=B.some((v)=>v.type===T)?T:B[0]?.type,w=W.filter((v)=>v.type===O),P=w.find((v)=>v.id===M)??w[0],V=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],S=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),C=(v)=>!S.has(v)&&w.some((u)=>u[v]!==void 0&&u[v]!==null&&typeof u[v]!=="object"),D=[...new Set(w.flatMap((v)=>Object.keys(v)))],N=[...V.filter(C),...D.filter((v)=>!V.includes(v)&&C(v))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${c1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:Z},void 0,!1,void 0,this),c1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(v2,{load:Y,what:"what it stores",lines:4},void 0,!1,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Stores"},void 0,!1,void 0,this),B.map((v)=>F.jsxDEV("a",{href:`#${v.type}`,className:O===v.type?"on":void 0,"aria-current":O===v.type?"true":void 0,onClick:(u)=>{u.preventDefault(),R(v.type),A(null)},children:[F.jsxDEV(U0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:p8(v.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:v.count},void 0,!1,void 0,this)]},v.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/events/${Z}`,onClick:(v)=>{v.preventDefault(),A0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(U0,{name:"activity",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X?F.jsxDEV("a",{href:`${a1}/${Q}/~/screens/${Z}`,onClick:(v)=>{v.preventDefault(),A0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(U0,{name:"monitor",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Its screens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-grid-wrap",children:[Y.state==="ok"&&B.length===0?F.jsxDEV(o7,{title:`${c1(Z)} stores nothing yet`,children:F.jsxDEV("p",{children:"What your app makes there shows here, by type."},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,w.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${p8(O??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),N.map((v)=>F.jsxDEV("th",{children:v},v,!1,void 0,this)),F.jsxDEV("th",{children:"updated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:w.map((v)=>F.jsxDEV("tr",{className:P?.id===v.id?"on":void 0,"aria-selected":P?.id===v.id,onClick:()=>A(v.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:v.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.map((u)=>F.jsxDEV("td",{className:"ws-cell-clip",children:v[u]===void 0||v[u]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(v[u])},u,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof v.updatedAt==="string"?F.jsxDEV(R0,{iso:v.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},v.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("aside",{className:"ws-record","aria-label":"The selected record",children:P?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:p8(P.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:P.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(P).filter(([v])=>v!=="type"&&v!=="id").map(([v,u])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(N3,{v:u},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},v,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-foot mode",children:P?`${w.indexOf(P)+1} of ${r0(w.length,p8(O??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $V({name:Q,vendor:U,url:Z,mapError:X,holding:H,session:Y,retry:W}){return F.jsxDEV("div",{className:"ws-screen",children:[F.jsxDEV("div",{className:"ws-screen-bar",children:[F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:c1(U)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:H},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/vendors/${U}`,onClick:(B)=>{B.preventDefault(),A0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(U0,{name:"table-2",size:16},void 0,!1,void 0,this),"Its records"]},void 0,!0,void 0,this),Z?F.jsxDEV("a",{href:Z,target:"_blank",rel:"noopener noreferrer",children:[F.jsxDEV(U0,{name:"external-link",size:16},void 0,!1,void 0,this),"New tab"]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Y.state==="ok"&&Y.scope==="read"?F.jsxDEV("p",{className:"mode ws-screens-note",children:"You are looking read only: the screens browse, and refuse changes."},void 0,!1,void 0,this):null,X?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not say where its screens are: ",X]},void 0,!0,void 0,this):Y.state==="pending"||Z===void 0?F.jsxDEV("p",{className:"mode ws-screens-note",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Y.state==="error"?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not open its screens: ",Y.error," ",F.jsxDEV("button",{type:"button",onClick:W,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z===null?F.jsxDEV("p",{className:"mode ws-screens-note",children:[c1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${c1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function QV({name:Q,token:U,who:Z,scope:X}){let[H,Y]=X1.useState(0),W=f0(U,`/-/${Q}/twins`),B=f0(U,`/-/${Q}/rules`,H),T=B.state==="ok"?B.data.changesets:null,[R,M]=X1.useState(null),[A,O]=X1.useState(null),[w,P]=X1.useState(!1),[V,S]=X1.useState([]),C=R??T?.approvals??1,D=A??T?.summary??"required",N=T!==null&&(C!==(T.approvals??1)||D!==(T.summary??"required")),v=(m,e)=>{if(S((Q1)=>[{ok:m,text:e,at:new Date().toISOString(),n:++gJ},...Q1].slice(0,3)),!m)c0(e,"error")},u=async(m)=>{m.preventDefault(),P(!0);try{let e=await W0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:C,summary:D}})});if(!e.ok){v(!1,`Save: ${await h5(e)}`);return}v(!0,`Saved: ${C===0?"no approval":r0(C,"approval")} before a deploy; a summary ${D==="required"?"required":"generated when none is given"}.`),M(null),O(null),Y((Q1)=>Q1+1)}finally{P(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},k=Z.person?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:Z.person},void 0,!1,void 0,this),Z.local?", signed in on this machine":""]},void 0,!0,void 0,this):Z.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this machine"},void 0,!1,void 0,this),": no one is signed in here, so no person owns them until they are pushed by one"]},void 0,!0,void 0,this):Z.admin?F.jsxDEV(F.Fragment,{children:F.jsxDEV("b",{children:"the host's admin"},void 0,!1,void 0,this)},void 0,!1,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("b",{children:"this token"},void 0,!1,void 0,this),", a service"]},void 0,!0,void 0,this),b=W.state==="ok"?W.data.twins.filter((m)=>m.root?.url):[],E=X!=="write"?"This session reads the World; it changes no rules":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Changesets"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"This World's rules, kept with it and shared by everyone who works in it. A person or the World's token changes them; a key never does, so an agent cannot relax the review its own changes go through."},void 0,!1,void 0,this),F.jsxDEV(v2,{load:B,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(m)=>void u(m),"aria-label":"Changeset rules",children:[F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Recorded as"},void 0,!1,void 0,this),F.jsxDEV("p",{children:["What you cut here is recorded as ",k,". An agent's or an app's key cuts as itself, for the person it was made for; a World's token cuts as a service."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"A cut's summary"},void 0,!1,void 0,this),F.jsxDEV("fieldset",{className:"choice",disabled:Boolean(E)||T===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="required",onChange:()=>O("required")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Required: whoever cuts says what it does and why"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:D==="generated",onChange:()=>O("generated")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Generated from its changes when none is given"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Either way a cut takes every change not yet in a changeset: there is no staging."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Ready to deploy"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"ws-rule-list",children:F.jsxDEV("li",{children:[F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this),"Verified: replayed in a throwaway World, the World's checks passing"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("label",{className:"ws-rule-row",children:[F.jsxDEV("span",{children:"Approved by"},void 0,!1,void 0,this),F.jsxDEV("select",{value:C,onChange:(m)=>M(Number(m.target.value)),disabled:Boolean(E)||T===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((m)=>F.jsxDEV("option",{value:m,children:m===0?"no one: verified is enough":m===1?"1 person":`${m} different people`},m,!1,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"for its contents as they stand"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-rule",children:[F.jsxDEV("h4",{children:"Deploys to"},void 0,!1,void 0,this),W.state==="ok"&&b.length===0?F.jsxDEV("p",{className:"mode",children:"No vendor here is connected to its real service, so nothing deploys from this World."},void 0,!1,void 0,this):null,b.length?F.jsxDEV("ul",{className:"ws-rule-list",children:b.map((m)=>F.jsxDEV("li",{children:[F.jsxDEV($2,{vendor:m.twin},void 0,!1,void 0,this),c1(m.twin),": ",h[m.root.deploy??"gated"]??"gated"]},m.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${a1}/${Q}/~/settings/services`,onClick:(m)=>{m.preventDefault(),A0([...Q.split("/"),"~","settings","services"])},children:"Real services"},void 0,!1,void 0,this)," sets each vendor's deploy policy."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(V6,{log:V,name:Q},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(E)||w||!N,title:E??void 0,children:w?"Saving…":"Save"},void 0,!1,void 0,this),N?F.jsxDEV("button",{type:"button",onClick:()=>{M(null),O(null)},children:"Cancel"},void 0,!1,void 0,this):null,E?F.jsxDEV("span",{className:"mode",children:[E,"."]},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)}function qV({who:Q,scope:U,snapshot:Z,portal:X,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[W,B]=Z?["A snapshot",`of ${Z.parent}, read only`]:Q.local&&Q.person?[Q.person,"Signed in on this machine: this World is served here, and acts as you"]:Q.local?["This machine","Served here, with no one signed in: what you do is recorded as this machine"]:Q.person?[Q.person,X?`Signed in through ${new URL(X).host}`:"Signed in"]:Q.admin?["The host's admin","Opened with the host admin token: every World it serves"]:["A link or key","Opened with a token for this World"];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Account"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-account",children:[F.jsxDEV("span",{className:"ws-account-face","aria-hidden":"true",children:F.jsxDEV(U0,{name:Q.person?"user":Q.local?"monitor":Z?"clock":"key-round",size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:W},void 0,!1,void 0,this),F.jsxDEV("small",{children:B},void 0,!1,void 0,this),F.jsxDEV("small",{children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.local||Z?null:F.jsxDEV("p",{children:F.jsxDEV("button",{type:"button",onClick:H,children:[F.jsxDEV(U0,{name:"log-out",size:16},void 0,!1,void 0,this),Q.person?"Sign out":Q.admin?"Sign out of the host":"Use another token"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${X}/`,children:new URL(X).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function UV({name:Q,token:U,view:Z,sub:X,arg:H,win:Y,who:W,snapshot:B,onReturn:T,onSignOut:R,worlds:M,session:A,retry:O,twins:w,map:P,branches:V,clock:S,canWrite:C,refused:D,signsAs:N,opens:v,tick:u,admin:h,onRemoved:k,onClock:b,scope:E}){let m=RO(Q,U,u,D),[e,Q1]=X1.useState(0),J1=e*1e5+Math.floor(u/2),x=f0(U,`/-/${Q}/diff`,J1),g=f0(U,`/-/${Q}/changesets`,J1),c=f0(U,`/-/${Q}/rules`,J1),[a,d]=X1.useState(null),t=(K1)=>(u1)=>{u1?.preventDefault(),A0([...Q.split("/"),"~",...K1])},y=w.state==="ok"?w.data.twins.map((K1)=>K1.twin):[],p=new Map((P.state==="ok"?P.data.twins:[]).flatMap((K1)=>{let u1=av(Q,K1);return u1?[[K1.twin,u1]]:[]})),q1=[...p.keys()],s=P.state==="ok"?P.data.twins.filter((K1)=>K1.root).map((K1)=>K1.twin):[],W1=(K1)=>P.state==="ok"?(P.data.twins.find((u1)=>u1.twin===K1)?.resources??[]).reduce((u1,N1)=>u1+N1.count,0):0,R1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],T1=X1.useMemo(()=>{if(x.state!=="ok")return[];let K1=new Map;for(let u1 of x.data.changes){let N1=`${u1.twin}:${u1.entry.subject.type}:${u1.entry.subject.id}`,Q0=K1.get(N1)??{key:N1,twin:u1.twin,writes:[]};Q0.writes.push(u1.entry),K1.set(N1,Q0)}return[...K1.values()]},[x]),A1=T1.find((K1)=>K1.key===a)??T1[0],U1=f0(U,Z==="changes"&&A1?`/-/${Q}/log/${A1.twin}`:null,J1),w1=x.state==="ok"?x.data.changes.length:0,v1=m.waiting.length,M1=m.there,G1=m.origin.state==="ok"?m.origin.data.origin:null,B1=!C?"This session reads the World; it changes nothing":!M1?"No remote: name one in Settings › Remote":null,I1=(K1,u1,N1,Q0,b1,a0)=>F.jsxDEV("a",{href:`${a1}/${Q}/~/${Q0}`,className:K1?"on":void 0,"aria-current":K1?"page":void 0,onClick:b1,children:[u1,F.jsxDEV("span",{children:N1},void 0,!1,void 0,this),a0?F.jsxDEV("span",{className:"count",children:a0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),C1=(K1)=>{K1.currentTarget.closest("details")?.removeAttribute("open")};return F.jsxDEV("div",{className:"ws",children:[F.jsxDEV("div",{className:"ws-bar",role:"toolbar","aria-label":`${Q} toolbar`,children:[F.jsxDEV("div",{className:"ws-left",children:[F.jsxDEV(QJ,{href:`${a1}/${Q}`,onClick:(K1)=>{K1.preventDefault(),t(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(U0,{name:"globe",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-pick-label",children:[F.jsxDEV("small",{children:"World"},void 0,!1,void 0,this),F.jsxDEV("b",{children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(U0,{name:"chevron-down",size:16},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"popover menu-list ws-world-menu",children:[W.local?null:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"menu-label",children:"Worlds"},void 0,!1,void 0,this),M.map((K1)=>F.jsxDEV("a",{href:`${a1}/${K1}`,className:K1===Q?"on":void 0,onClick:(u1)=>{u1.preventDefault(),C1(u1),A0(K1.split("/"))},children:[K1===Q?F.jsxDEV(U0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(U0,{name:"globe",size:16},void 0,!1,void 0,this),K1]},K1,!0,void 0,this)),F.jsxDEV("a",{href:`${$4()&&$4()!==z0?$4():""}${a1}/`,onClick:(K1)=>{if($4()&&$4()!==z0)return;K1.preventDefault(),C1(K1),A0([])},children:[F.jsxDEV(U0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",k2()?` on ${new URL(k2()).host}`:""]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"menu-label",children:"Connect an app"},void 0,!1,void 0,this),k2()?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",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),F.jsxDEV("pre",{children:[j6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(eX,{text:GU({platform:k2(),world:Q})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):!W.local?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Point your app's SDKs here with a key from Settings › Access; its calls to these vendors land in this World:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:[j6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(eX,{text:GU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"ws-menu-text",children:"Run it in this World; its calls to these vendors land here:"},void 0,!1,void 0,this),F.jsxDEV("pre",{children:"volter world run -- npm start"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-menu-text mode",children:["Or point an SDK at ",F.jsxDEV("code",{children:[j6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this)," with the token in ",F.jsxDEV("code",{children:".volter/token"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this),F.jsxDEV(eX,{text:GU()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("hr",{},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/settings`,onClick:(K1)=>{C1(K1),t(["settings"])(K1)},children:[F.jsxDEV(U0,{name:"settings",size:16},void 0,!1,void 0,this),"Settings…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(ov,{name:Q,token:U,branches:V,opens:v,refused:D,onChanged:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-where",title:"Where this is",children:[F.jsxDEV("span",{children:Q},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("span",{children:R1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),G1?F.jsxDEV("a",{href:`${a1}/${Q}/~/remote`,onClick:t(["remote"]),children:["origin ",G1.namespace,v1?F.jsxDEV("b",{children:[" ↑",v1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${a1}/${Q}/~/remote`,onClick:t(["remote"]),children:"no remote"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/~/settings/clock`,onClick:t(["settings","clock"]),children:S.state==="ok"?F.jsxDEV(F.Fragment,{children:[S.data.frozen?"stopped at ":"",F.jsxDEV(R0,{iso:S.data.at,time:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):"…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-right",children:[F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.pull(),disabled:Boolean(B1)||m.busy!==null,title:B1??`Fetch what ${M1} has and move this branch onto it`,children:[F.jsxDEV(U0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),m.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void m.push(),disabled:Boolean(B1)||m.busy!==null||v1===0,title:B1??(v1?`Push ${r0(v1,"changeset")} to ${M1}`:`Every changeset is at ${M1}`),children:[F.jsxDEV(U0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),m.busy==="Push"?"Pushing…":"Push",v1?F.jsxDEV("span",{className:"ws-btn-count",children:v1},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn icon-only","aria-label":"Settings",title:"Settings",onClick:()=>t(["settings"])(),children:F.jsxDEV(U0,{name:"settings",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(U0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:B.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(R0,{iso:B.at},void 0,!1,void 0,this),": a read-only snapshot",B.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(R0,{iso:B.expiresAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,"."]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void T(B),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(V6,{log:m.log.slice(0,1),name:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV("div",{className:"ws-body",children:[F.jsxDEV("nav",{className:"ws-side","aria-label":`${Q} places`,children:[y.length?F.jsxDEV("a",{href:`${a1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:t(["screens"]),title:`The board: ${I8(y.map(c1))}`,children:[F.jsxDEV(U0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Board"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-screens-marks",children:[y.slice(0,3).map((K1)=>F.jsxDEV($2,{vendor:K1},K1,!1,void 0,this)),y.length>3?F.jsxDEV("span",{className:"more",children:["+",y.length-3]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{className:"side-group",children:"Workspace"},void 0,!1,void 0,this),I1(Z==="changes"||Z==="history",F.jsxDEV(U0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",t(["changes"]),T1.length?String(T1.length):void 0),I1(Z==="events"&&!H||Z==="trace",F.jsxDEV(U0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",t(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),y.map((K1)=>F.jsxDEV(X1.default.Fragment,{children:I1(Z==="vendor"&&H===K1,F.jsxDEV($2,{vendor:K1},void 0,!1,void 0,this),c1(K1),`vendors/${K1}`,t(["vendors",K1]),W1(K1)?String(W1(K1)):void 0)},K1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),I1(!1,F.jsxDEV(U0,{name:"cloud",size:16},void 0,!1,void 0,this),M1?"origin":"Name a remote…","remote",t(["remote"]),v1?`↑${v1}`:void 0)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-main",role:"main",children:[Z==="changes"?F.jsxDEV("div",{className:"ws-status",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(XO,{name:Q,view:"changes",changes:T1.length,changesets:g.state==="ok"?g.data.changesets.length:0},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:"Not in a changeset"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:x.state==="ok"?`${r0(T1.length,"record")} · ${r0(w1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:x,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(KO,{records:T1,...A1?{selected:A1.key}:{},onPick:d,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[x.state==="ok"&&!A1?F.jsxDEV(o7,{title:"No changes on this branch",action:v1>0&&M1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(B1)||m.busy!==null,onClick:()=>void m.push(),children:["Push ",r0(v1,"changeset")," to origin"]},void 0,!0,void 0,this):void 0,children:F.jsxDEV("p",{children:["What your app writes to this World lands here, record by record, to cut into a changeset. Everything since ",x.data.base.at?F.jsxDEV(R0,{iso:x.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:x.data.base.id},void 0,!1,void 0,this)," is in one already."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,A1?F.jsxDEV(FO,{record:A1,history:U1.state==="ok"?U1.data.entries:U1.state==="error"?[]:null},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(fV,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV(U0,{name:W.person?"user":W.local?"monitor":"key-round",size:18},void 0,!1,void 0,this),who:W.person??(W.local?"This machine":W.admin?"The host's admin":"A token"),account:`${a1}/${Q}/~/settings/account`,branch:R1},name:Q,token:U,changes:w1,canWrite:C,refused:D,onCut:()=>{Q1((K1)=>K1+1),d(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(nv,{name:Q,token:U,sets:g,changes:T1.length,withScreens:q1,required:c.state==="ok"?c.data.changesets.approvals??1:1,...X?{sub:X}:{},signsAs:N,canWrite:C,rooted:s,refused:D,onChanged:()=>Q1((K1)=>K1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(ev,{name:Q,token:U,vendors:y,...H&&y.includes(H)?{vendor:H}:{},tick:u},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(_V,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(JV,{name:Q,token:U,vendor:H,withScreens:q1.includes(H),tick:u},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV($V,{name:Q,vendor:H,url:P.state==="ok"?p.get(H)??null:void 0,...P.state==="error"?{mapError:P.error}:{},holding:ZV(P.state==="ok"?P.data.twins.find((K1)=>K1.twin===H)?.resources??[]:[]),session:A,retry:O},H,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(R5,{open:Y?.kind==="settings",onClose:()=>t(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:ZO.map(([K1,u1,N1])=>F.jsxDEV("a",{href:`${a1}/${Q}/~/settings/${K1}`,className:Y.tab===K1?"on":void 0,"aria-current":Y.tab===K1?"page":void 0,onClick:t(["settings",K1]),children:[F.jsxDEV(U0,{name:N1,size:16},void 0,!1,void 0,this),u1]},K1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[E==="read"?F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"badge read-only",children:"Read only"},void 0,!1,void 0,this)," This session reads the World; it changes nothing."]},void 0,!0,void 0,this):null,Y.tab==="account"?F.jsxDEV(qV,{who:W,scope:E,snapshot:B,portal:k2(),onSignOut:R},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(QV,{name:Q,token:U,who:W,scope:E},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(jV,{name:Q,token:U,canWrite:C,tick:u,refused:D},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(VV,{name:Q,token:U,admin:h,canWrite:C,refused:D,onRemoved:k,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(vV,{name:Q,token:U,canWrite:C,refused:D},void 0,!1,void 0,this):null,Y.tab==="appearance"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Appearance"},void 0,!1,void 0,this),F.jsxDEV(lv,{},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):null},void 0,!1,void 0,this),F.jsxDEV(R5,{open:Y?.kind==="branches",onClose:()=>t(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(XV,{name:Q,token:U,canWrite:C,branches:V,opens:v,...Y.open?{open:Y.open}:{},onChanged:b,refused:D},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eX({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>c0("Copied the prompt: paste it into your coding agent"),()=>c0("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var FH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,GV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),ZV=(Q,U=4)=>{let Z=[...Q].filter((X)=>X.count>0).sort((X,H)=>H.count-X.count);return Z.length?Z.slice(0,U).map((X)=>r0(X.count,X.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},HO=F.jsxDEV("svg",{className:"branch-glyph",viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:F.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);function FV({name:Q,token:U,clock:Z,canWrite:X,onChanged:H,refused:Y,open:W}){let[B,T]=X1.useState(!1),[R,M]=X1.useState(""),[A,O]=X1.useState(""),[w,P]=X1.useState(null),[V,S]=X1.useState(!1),C=Z.state==="ok"?Z.data:null,D=async(h,k,b)=>{S(!0),P(null);try{let E=await W0(U,`/-/${Q}/${k}`,{method:k==="clock"?"PUT":"POST",body:JSON.stringify(b)});if(!E.ok){Y(E),P({ok:!1,text:await h5(E)});return}let m=await E.json();P({ok:!0,text:`${h} — the World is at ${new Date(m.at).toLocaleString()}`}),T(!1),H()}catch(E){P({ok:!1,text:`the World did not answer: ${E instanceof Error?E.message:String(E)}`})}finally{S(!1)}},N=(h)=>{h.preventDefault();let k=new Date(R);if(Number.isNaN(k.getTime())){P({ok:!1,text:"Pick a date and time."});return}if(C&&k.getTime()<Date.parse(C.at)){P({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(C.at).toLocaleString()}.`});return}D("Clock set","clock",{at:k.toISOString()})},v=(h,k)=>{D(`Advanced ${k}`,"clock/advance",{by:h})},u=[["1h","1 hour"],["1d","1 day"],["7d","1 week"],["30d","30 days"]];return F.jsxDEV("div",{className:`clock${C?.frozen?" frozen":""}`,role:"region","aria-label":"World clock",children:[F.jsxDEV("p",{className:"clock-now",children:Z.state==="loading"?F.jsxDEV("span",{className:"mode",children:"clock…"},void 0,!1,void 0,this):Z.state==="error"?F.jsxDEV("span",{className:"mode",children:["Clock: ",Z.error]},void 0,!0,void 0,this):C.frozen?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge",children:"Simulation"},void 0,!1,void 0,this)," World time ",F.jsxDEV("strong",{children:F.jsxDEV(R0,{iso:C.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(F.Fragment,{children:["World time ",F.jsxDEV("strong",{children:F.jsxDEV(R0,{iso:C.at},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",F.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),X&&C?F.jsxDEV("details",{className:W?"clock-more inline":"clock-more",open:W||void 0,children:[F.jsxDEV("summary",{children:"Simulate time…"},void 0,!1,void 0,this),F.jsxDEV("div",{className:W?void 0:"popover",children:[F.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, the branch picker’s Manage branches… views an earlier moment."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"clock-controls",children:[F.jsxDEV("button",{type:"button","aria-expanded":B,onClick:()=>{T(!B),M(T9(cR(C.at))),P(null)},children:"Set time…"},void 0,!1,void 0,this),F.jsxDEV("div",{role:"group","aria-label":"Advance the clock",className:"advance",children:[F.jsxDEV("span",{className:"mode",children:"Advance"},void 0,!1,void 0,this),u.map(([h,k])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${k}`,disabled:V||!C.frozen,title:C.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>v(h,k),children:k},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){P({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}v(A.trim(),`by ${A.trim()}`)},children:[F.jsxDEV("label",{className:"sr",children:["Advance by ",F.jsxDEV("input",{name:"advanceBy",value:A,onChange:(h)=>O(h.target.value),placeholder:"90m, 12h, 3d",size:9,disabled:!C.frozen},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V||!C.frozen,children:"Advance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!C.frozen?F.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,B?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:N,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:T9(cR(C.at)),onChange:(h)=>M(h.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:Intl.DateTimeFormat().resolvedOptions().timeZone},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",disabled:V,children:"Set time"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>T(!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,w?F.jsxDEV("p",{role:w.ok?"status":"alert",children:w.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function KV({name:Q,token:U,clock:Z,refused:X}){let[H,Y]=X1.useState(!1),[W,B]=X1.useState(""),[T,R]=X1.useState(null),[M,A]=X1.useState(!1),O=Z.state==="ok"?Z.data.at:new Date().toISOString(),w=X1.useRef(null);return X1.useEffect(()=>{if(!H)return;let V=(C)=>{if(C.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),w.current?.querySelector("button")?.focus()},S=(C)=>{if(!w.current?.contains(C.target))Y(!1)};return document.addEventListener("keydown",V),document.addEventListener("click",S),()=>{document.removeEventListener("keydown",V),document.removeEventListener("click",S)}},[H]),F.jsxDEV("div",{className:"as-of",ref:w,children:[F.jsxDEV("button",{type:"button","aria-expanded":H,title:"Open a read-only copy of this World as it was at a moment you pick",onClick:()=>{Y(!H),B(T9(O)),R(null)},children:"View an earlier moment…"},void 0,!1,void 0,this),H?F.jsxDEV("form",{className:"inline","aria-label":"View the World as of a past moment",onSubmit:async(V)=>{V.preventDefault(),R(null);let S=new Date(W);if(Number.isNaN(S.getTime())){R("Pick a date and time.");return}if(S.getTime()>Date.parse(O)){R(`That is after the World's present (${new Date(O).toLocaleString()}); a snapshot looks back.`);return}A(!0);try{let C=await W0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:S.toISOString()},ttl:3600})});if(!C.ok){X(C),R(await h5(C));return}let D=await C.json();qH({name:D.name,parent:Q,token:D.token,readToken:D.readToken,at:S.toISOString(),expiresAt:D.expiresAt??null,parentOrigin:z0,made:!0});let N=mJ(D.origin)?.origin;if(N&&N!==z0){ZH(N,D.readToken,D.name,`${a1}/${D.name}`);return}A0(D.name.split("/"))}catch(C){R(`the World did not answer: ${C instanceof Error?C.message:String(C)}`)}finally{A(!1)}},noValidate:!0,children:[F.jsxDEV("label",{children:["As of ",F.jsxDEV("input",{name:"asOf",type:"datetime-local",value:W,max:T9(O),onChange:(V)=>B(V.target.value),required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",disabled:M,children:M?"Opening…":"Open snapshot"},void 0,!1,void 0,this),F.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,T?F.jsxDEV("p",{role:"alert",children:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function YO({name:Q,token:U,open:Z,onClose:X,onMade:H,refused:Y}){let W=(k)=>k.split("/").pop()??k,[B,T]=X1.useState(!1),[R,M]=X1.useState(null),[A,O]=X1.useState(""),[w,P]=X1.useState("now"),[V,S]=X1.useState(""),[C,D]=X1.useState("24"),[N,v]=X1.useState(!0);X1.useEffect(()=>{if(Z)M(null),S(T9(new Date().toISOString()))},[Z]);let u=async(k)=>{k.preventDefault(),M(null);let b=w==="at"?new Date(V):null;if(b&&Number.isNaN(b.getTime())){M("Pick a date and time, or make it as of now.");return}if(b&&b.getTime()>Date.now()){M("A branch is made as of now or a moment before it.");return}T(!0);let E=await W0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(C)*3600),...b?{at:{instant:b.toISOString()}}:N?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(T(!1),!E){M(`${z0} did not answer`);return}if(!E.ok){Y(E),M(await h5(E));return}let m=await E.json();qH({name:m.name,parent:Q,token:m.token??"",readToken:m.readToken,at:(b??new Date).toISOString(),expiresAt:m.expiresAt??null,parentOrigin:z0,...m.origin?{origin:m.origin}:{}}),X(),O(""),c0(`Made ${W(m.name)}`),H()};return F.jsxDEV(R5,{open:Z,onClose:()=>{if(!B)X()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>X(),disabled:B,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:B,children:B?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"new-branch",onSubmit:(k)=>void u(k),className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Label ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"branchLabel",value:A,onChange:(k)=>O(k.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),F.jsxDEV("fieldset",{className:"choice",children:[F.jsxDEV("legend",{children:"From"},void 0,!1,void 0,this),F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="now",onChange:()=>P("now")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Now: the World as it is"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:N,onChange:(k)=>v(k.target.checked)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"Live: its clock keeps this World's time, as a pull request's preview does (else it stops now)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"branchWhen",checked:w==="at",onChange:()=>P("at")},void 0,!1,void 0,this)," ",F.jsxDEV("span",{children:"An instant before now: the World as it was then, its clock stopped there"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:T9(new Date().toISOString()),onChange:(k)=>S(k.target.value)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Goes away after"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"branchLife",value:C,onChange:(k)=>D(k.target.value),children:[F.jsxDEV("option",{value:"1",children:"1 hour"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"24",children:"1 day"},void 0,!1,void 0,this),F.jsxDEV("option",{value:"72",children:"3 days"},void 0,!1,void 0,this),F.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),R?F.jsxDEV("p",{role:"alert",children:R},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function XV({name:Q,token:U,canWrite:Z,branches:X,opens:H,open:Y,onChanged:W,refused:B,snapshotOf:T}){let R=f0(U,`/-/${Q}/clock`),M=(D)=>D.split("/").pop()??D,[A,O]=X1.useState(!1),w=(D)=>(N)=>{N.preventDefault(),A0([...Q.split("/"),"~","branches",...D?D.split("/"):[]])};if(!X)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let P=X.state==="ok"?X.data.branches:[],V=X.state==="ok"&&(X.data.named?.length??0)>0?X.data.named:[{name:M(Q),running:!0}],S=X.state==="ok"?X.data.checkedOut??M(Q):M(Q),C=async(D)=>{if(!await u4({title:`Remove the branch ${M(D)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let N=await W0(U,`/-/${Q}/branches/${D}`,{method:"DELETE"}).catch((v)=>v);if(N instanceof Error){c0(`Remove ${M(D)}: the World did not answer (${N.message})`,"error");return}if(!N.ok){B(N),c0(`Remove ${M(D)}: ${await h5(N)}`,"error");return}KU(D),c0(`Removed ${M(D)}`),W(),A0([...Q.split("/"),"~","branches"])};if(Y){let D=Y.includes("/")?P.find((v)=>v.name===Y):void 0,N=Y.includes("/")?void 0:V.find((v)=>v.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${a1}/${Q}/~/branches`,onClick:w(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(v2,{load:X,what:"the branches"},void 0,!1,void 0,this),X.state==="ok"&&!D&&!N?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,D?F.jsxDEV(HV,{name:Q,b:D,canWrite:Z,opens:H(D.name),remove:()=>void C(D.name)},void 0,!1,void 0,this):null,N&&!D?F.jsxDEV(YV,{name:Q,token:U,b:N,served:N.name===S,canWrite:Z,canServe:X.state==="ok"&&Boolean(X.data.canServe)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}return F.jsxDEV("div",{"aria-labelledby":"branches",children:[F.jsxDEV("div",{className:"branches-head",children:[F.jsxDEV("p",{className:"lede",children:["Branch this World to look at it as it was, or to change it without touching ",F.jsxDEV("b",{children:S},void 0,!1,void 0,this),". Each branch's name opens its page."]},void 0,!0,void 0,this),Z?F.jsxDEV("div",{className:"head-actions",children:[T?null:F.jsxDEV(KV,{name:Q,token:U,clock:R,refused:B},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>O(!0),children:"New branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:X,what:"the branches"},void 0,!1,void 0,this),X.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Branches",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{id:"branches",children:"Branch"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Goes away"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:[V.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${a1}/${Q}/~/branches/${D.name}`,onClick:w(D.name),children:F.jsxDEV("b",{children:D.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),D.name===S?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.running?null:F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("span",{className:"badge",children:"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"live"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"—"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:"kept"},void 0,!1,void 0,this)]},`own:${D.name}`,!0,void 0,this)),P.map((D)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${a1}/${Q}/~/branches/${D.name}`,onClick:w(D.name),children:F.jsxDEV("b",{children:M(D.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:M(D.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.at?.instant?F.jsxDEV(R0,{iso:D.at.instant},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"live"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV(R0,{iso:D.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:D.expiresAt?F.jsxDEV(R0,{iso:D.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},D.name,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(YO,{name:Q,token:U,open:A,onClose:()=>O(!1),onMade:W,refused:B},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HV({name:Q,b:U,canWrite:Z,opens:X,remove:H}){let Y=(T)=>T.split("/").pop()??T,W=UH(U.name),B=f0(W,W?`/-/${U.name}/diff`:null);return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[HO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[X?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>GO(U.name,U.name.split("/")),children:"Open"},void 0,!1,void 0,this):null,Z?F.jsxDEV("button",{type:"button",className:"danger-button",onClick:H,children:"Remove…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:U.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Parent"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Y(U.from??Q)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"As of"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.at?.instant?F.jsxDEV(R0,{iso:U.at.instant},void 0,!1,void 0,this):"live: it keeps its parent's time"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(R0,{iso:U.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Goes away"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:U.expiresAt?F.jsxDEV(R0,{iso:U.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!X?F.jsxDEV("p",{className:"mode",children:"Its tokens were handed to whoever made it: it opens, and shows its own changes, in their tab."},void 0,!1,void 0,this):null,B.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),B.data.changes.length===0?F.jsxDEV("p",{className:"mode",children:"Nothing written on it since it branched."},void 0,!1,void 0,this):F.jsxDEV(CV,{changes:B.data.changes,idPrefix:`branch-${Y(U.name)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function YV({name:Q,token:U,b:Z,served:X,canWrite:H,canServe:Y}){let[W,B]=X1.useState(!1),[T,R]=X1.useState(null),M=async()=>{B(!0),R(null);let A=await W0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}B(!1),R(A?await h5(A):`${z0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[HO," ",Z.name," ",X?F.jsxDEV("span",{className:"badge live",children:"served here"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:H&&Y&&!X?F.jsxDEV("button",{type:"button",className:"primary",disabled:W,onClick:()=>void M(),children:W?"Switching…":"Serve here"},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"block",children:F.jsxDEV("dl",{className:"fields pad",children:[F.jsxDEV("dt",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV("code",{children:Z.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"Kind"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:"one of this World's own branches"},void 0,!1,void 0,this),F.jsxDEV("dt",{children:"State"},void 0,!1,void 0,this),F.jsxDEV("dd",{children:Z.running?"running":"stopped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${a1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),A0([...Q.split("/"),"~","changes"])},children:"Changes"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):Y?F.jsxDEV("p",{className:"mode",children:["“Serve here” stops this one's twins and serves ",Z.name," in its place."]},void 0,!0,void 0,this):F.jsxDEV("p",{className:"mode",children:"This host serves one of the World's own branches at a time, and does not switch them from this page."},void 0,!1,void 0,this),T?F.jsxDEV("p",{role:"alert",children:T},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var rR=50,L9=(Q)=>`${Q.twin}:${Q.position}`,zO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,XU=(Q)=>{if(!Q)return"someone";if(Q.startsWith("key:")){let[U,Z]=Q.slice(4).split(" for:");return Z?`${U}, for ${Z}`:U||"a key"}if(Q.startsWith("person:"))return Q.slice(7);return Q==="machine"?"this machine":Q==="person"?"a session with no name":Q==="token:read"?"the read-only token":Q==="token"?"the World's token":Q},xJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${XU(Z)}`;if(Z.startsWith("person:")&&Z.length>7)return`by ${Z.slice(7)}`;if(Z==="machine")return"by this machine";if(Z==="person")return"by a session with no name";if(Z==="key")return"by a key";if(Z==="token:read")return"by the read-only token";if(Z==="token")return"by the World's token";return Q.actor?.kind==="system"?"by the vendor":Q.actor?.id?`by ${Q.actor.id}`:"by an app"},WO=(Q)=>Q.operation??Q.op;function zV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,X=(...R)=>R.map((M)=>Z[M]??U[M]).find((M)=>typeof M==="number"),H=[],Y=X("prompt_tokens","input_tokens"),W=X("completion_tokens","output_tokens"),B=X("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(W!==void 0)H.push(["tokens out",W.toLocaleString()]);if(B!==void 0)H.push(["tokens in all",B.toLocaleString()]);let T=X("cost_usd","cost");if(T!==void 0)H.push(["cost",`$${T<0.01?T.toPrecision(2):T.toFixed(2)}`]);return H}function BO({text:Q,at:U=280}){if(Q.length<=U)return F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this);return F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:[F.jsxDEV("span",{className:"text",children:[Q.slice(0,U),"…"]},void 0,!0,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:["show all ",Q.length.toLocaleString()," characters"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"text",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function N3({v:Q}){if(typeof Q==="string")return F.jsxDEV(BO,{text:Q},void 0,!1,void 0,this);if(Q===null||typeof Q!=="object")return F.jsxDEV("code",{children:String(Q)},void 0,!1,void 0,this);let U=JSON.stringify(Q,null,2);return U.length<=160?F.jsxDEV("code",{children:JSON.stringify(Q)},void 0,!1,void 0,this):F.jsxDEV("details",{className:"folded",children:[F.jsxDEV("summary",{children:F.jsxDEV("code",{children:[JSON.stringify(Q).slice(0,120),"…"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("pre",{children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var WV=(Q)=>typeof Q==="string"?Q:Array.isArray(Q)?Q.map((U)=>U&&typeof U==="object"&&typeof U.text==="string"?U.text:"").filter(Boolean).join(`
249
+ `):JSON.stringify(Q??"");function BV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(N3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,X=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[X.length?F.jsxDEV("dl",{className:"fields",children:X.map(([H,Y])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(N3,{v:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},H,!0,void 0,this))},void 0,!1,void 0,this):null,Z?F.jsxDEV("ol",{className:"messages",children:Z.map((H,Y)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"role",children:typeof H.role==="string"?H.role:"message"},void 0,!1,void 0,this),F.jsxDEV(BO,{text:WV(H.content)},void 0,!1,void 0,this)]},Y,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function LO({fields:Q}){let U=Object.entries(Q??{});if(U.length===0)return F.jsxDEV("p",{className:"mode",children:"No fields."},void 0,!1,void 0,this);return F.jsxDEV("dl",{className:"fields",children:U.map(([Z,X])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(N3,{v:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var LV=(Q)=>Q.receipt?`${Q.receipt.status??""}${Q.receipt.externalId?` · ${Q.receipt.externalId}`:""}${Q.receipt.reason?` · ${Q.receipt.reason}`:""}`:Q.operation==="observed"?"observed from the vendor":Q.provenance==="placeholder"?"default data":"none: it has not left this World";function AV(Q){let U=new Map,Z=[],X=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){X.push(Y);continue}let W={...Y,copies:[]};if(Z.push(W),!U.has(`${Y.twin}:${Y.entry.id}`))U.set(`${Y.twin}:${Y.entry.id}`,W);if(!H.has(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`))H.set(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.subject.id}`,W)}for(let Y of X){let W=Y.entry.landsId?U.get(`${Y.twin}:${Y.entry.landsId}`):Y.entry.aliasOf?H.get(`${Y.twin}:${Y.entry.subject.type}:${Y.entry.aliasOf}`):void 0;if(W)W.copies.push(Y);else Z.push({...Y,copies:[]})}return Z.sort(zO)}var _H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function aR(Q){let U=[Q.entry.receipt,...Q.copies.map((H)=>H.entry.receipt)].filter((H)=>Boolean(H?.status));if(U.length===0)return null;let Z=U.find((H)=>H.status==="failed"||H.status==="refused"),X=[...U].sort((H,Y)=>(_H[Y.status]??0)-(_H[H.status]??0))[0];return Z&&!(_H[X.status]>=5)?{status:Z.status,bad:!0}:{status:X.status,bad:!1}}var A9=1280,M9=820,ZU=160,EJ=72,sR=72,X2=(Q)=>`${Q.vendor}:${Q.id}`,m8=(Q)=>`${Q.vendor}:section:${Q.section.id}`,KH=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),MV=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${j6}/${Q}/${U.vendor}${U.at.screen}`:null,TV=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(X2(Z))||KH(Z).some((X)=>Q.include.includes(X))):U.filter((Z)=>!(Q.hidden??[]).includes(X2(Z)));function RV({data:Q}){let{world:U,frame:Z,url:X,active:H,boards:Y,addTo:W,remove:B}=Q,T=X2(Z),R=Y.filter((M)=>M.include&&!M.include.includes(T)&&!KH(Z).some((A)=>M.include.includes(A)));return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(gR,{isVisible:!0,position:D1.Top,align:"start",className:"frame-label",children:[F.jsxDEV($2,{vendor:Z.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:[c1(Z.vendor)," · ",Z.kind]},void 0,!0,void 0,this),Z.changes?F.jsxDEV("a",{className:"frame-changed nodrag",href:`${a1}/${U}/~/changes`,onClick:(M)=>{M.preventDefault(),A0([...U.split("/"),"~","changes"])},title:`${r0(Z.changes,"change")} here, not in a changeset: see them in Changes`,children:[F.jsxDEV(U0,{name:"square-dot",size:14},void 0,!1,void 0,this),Z.changes]},void 0,!0,void 0,this):null,R.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${Z.title} to a board`,onChange:(M)=>{if(M.target.value)W(M.target.value,T)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),R.map((M)=>F.jsxDEV("option",{value:M.id,children:M.name},M.id,!1,void 0,this))]},void 0,!0,void 0,this):null,B?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>B.act(T),title:B.label,"aria-label":B.label,children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:H?"frame on":"frame",style:{width:A9,height:M9},children:[F.jsxDEV("div",{className:"frame-bar",title:"Drag to move",children:[F.jsxDEV($2,{vendor:Z.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:Z.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"frame-url",children:Z.url.replace(/^https?:\/\//,"")},void 0,!1,void 0,this),X?F.jsxDEV("a",{className:"nodrag",href:X,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${Z.title} in a new tab`,children:"↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:H?"frame-body nodrag nopan nowheel":"frame-body",children:X?F.jsxDEV("iframe",{title:Z.title,src:X,loading:"lazy",style:{pointerEvents:H?"auto":"none"}},void 0,!1,void 0,this):F.jsxDEV("div",{className:"frame-none",children:[F.jsxDEV("p",{children:F.jsxDEV("strong",{children:Z.unseen==="sites-not-routed"?`This World shows ${Z.title} only at its own local address.`:`${c1(Z.vendor)}'s twin draws no page for this ${Z.kind} yet.`},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:Z.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function OV({data:Q}){return F.jsxDEV("div",{className:"section-box",style:{width:Q.width,height:Q.height},children:F.jsxDEV("span",{className:"section-label",children:[F.jsxDEV($2,{vendor:Q.vendor},void 0,!1,void 0,this),Q.label]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var IV={screen:RV,section:OV};function wV(Q){return F.jsxDEV(nX,{children:F.jsxDEV(PV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function PV({name:Q,token:U,session:Z,retry:X,snapshot:H,back:Y,canWrite:W}){let B=X1.useRef(null),T=X1.useRef(0),R=X1.useRef(Promise.resolve()),M=X1.useRef(0),[,A]=X1.useState(0),[O,w]=X1.useState({state:"loading"}),[P,V]=X1.useState(null),S=X1.useRef(0),C=X1.useRef(0),D=X1.useCallback(async()=>{let G1=M.current,B1=++S.current,I1=await W0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),C1=I1?.ok?await I1.json().catch(()=>null):null;if(B1<C.current)return;if(C.current=B1,!C1?.frames||!C1.boards||!C1.version){let K1=I1?`the World answered ${I1.status}`:"the World did not answer";w((u1)=>u1.state==="ok"?u1:{state:"error",status:I1?.status??0,error:K1}),V(K1);return}if(V(null),G1===M.current&&T.current===0)B.current={boards:C1.boards,version:C1.version};w({state:"ok",data:C1})},[U,Q]);X1.useEffect(()=>{D();let G1=setInterval(()=>{if(!document.hidden)D()},1e4);return()=>clearInterval(G1)},[D]);let N=O.state==="ok"?O.data.frames:[],v=B.current?.boards??[{id:"everything",name:"Everything"}],[u,h]=X1.useState("everything"),k=v.find((G1)=>G1.id===u)??v[0],b=W&&!H,E=X1.useCallback((G1)=>{if(!B.current)return c0("The board is being read again: make that change once it shows","error"),Promise.resolve();B.current={...B.current,boards:G1(B.current.boards)},T.current+=1,M.current+=1,A((I1)=>I1+1);let B1=R.current.then(async()=>{let I1=B.current;if(!I1)return;try{let C1=await W0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:I1.boards,version:I1.version}),signal:AbortSignal.timeout(15000)}),K1=await C1.json().catch(()=>null);if(C1.ok&&K1?.boards&&K1.version)B.current={boards:T.current>1&&B.current?B.current.boards:K1.boards,version:K1.version};else if(C1.status===409&&K1?.boards&&K1.version)B.current={boards:K1.boards,version:K1.version},c0("Someone else changed the board first: it is shown as they left it","error");else throw Error(K1?.error??`the World answered ${C1.status}`)}catch(C1){c0(`The board was not kept: ${C1 instanceof Error?C1.message:String(C1)}`,"error"),B.current=null;let K1=await W0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),u1=K1?.ok?await K1.json().catch(()=>null):null;if(u1?.boards&&u1.version)B.current={boards:u1.boards,version:u1.version}}}).finally(()=>{if(T.current-=1,M.current+=1,A((I1)=>I1+1),T.current===0&&!B.current)D()});return R.current=B1,B1},[U,Q,D]),m=(G1,B1)=>{E((I1)=>I1.map((C1)=>C1.id===G1?B1(C1):C1))},e=TV(k,N),Q1=N.filter((G1)=>G1.changes&&!e.includes(G1)).reduce((G1,B1)=>G1+B1.changes,0),[J1,x]=X1.useState(null),g=bJ(),c=X1.useCallback(()=>{let G1=new Map;for(let N1 of e){let Q0=k.placed?.[X2(N1)];if(Q0)G1.set(X2(N1),Q0)}let B1=Math.max(-ZU,...[...G1.values()].map((N1)=>N1.y+M9)),I1=[...new Set(e.map(m8))];for(let N1 of I1){let Q0=e.filter((O0)=>m8(O0)===N1),b1=Q0.filter((O0)=>G1.has(X2(O0))).map((O0)=>G1.get(X2(O0))),a0=b1.length?Math.max(...b1.map((O0)=>O0.x))+A9+ZU:0,q2=b1.length?Math.min(...b1.map((O0)=>O0.y)):B1+ZU+EJ*2+sR;for(let O0 of Q0)if(!G1.has(X2(O0)))G1.set(X2(O0),{x:a0,y:q2}),a0+=A9+ZU;B1=Math.max(B1,q2+M9)}let C1=v.filter((N1)=>N1.include),K1=(N1,Q0)=>m(N1,(b1)=>({...b1,include:[...b1.include??[],Q0]})),u1={label:k.include?"Take it off this board":"Hide it",act:(N1)=>m(k.id,(Q0)=>Q0.include?{...Q0,include:Q0.include.filter((b1)=>b1!==N1)}:{...Q0,hidden:[...Q0.hidden??[],N1]})};return e.map((N1)=>({id:X2(N1),type:"screen",dragHandle:".frame-bar",draggable:b,position:G1.get(X2(N1)),data:{world:Q,frame:N1,url:MV(Q,N1),active:!1,boards:b?C1:[],addTo:K1,remove:!b||k.include&&!k.include.includes(X2(N1))?null:u1}}))},[JSON.stringify(e),JSON.stringify(k),JSON.stringify(v.map((G1)=>[G1.id,G1.name,G1.include])),Q,b]),[a,d,t]=DR([]),y=X1.useRef("");X1.useEffect(()=>{let G1=c();if(d(G1.map((B1)=>({...B1,data:{...B1.data,active:B1.id===J1}}))),G1.length&&y.current!==k.id)y.current=k.id,requestAnimationFrame(()=>{g.fitView({padding:0.08,duration:0})})},[c,d]),X1.useEffect(()=>{d((G1)=>G1.map((B1)=>B1.data.active===(B1.id===J1)?B1:{...B1,data:{...B1.data,active:B1.id===J1}}))},[J1,d]),X1.useEffect(()=>{let G1=(B1)=>{if(B1.key==="Escape")x(null)};return document.addEventListener("keydown",G1),()=>document.removeEventListener("keydown",G1)},[]);let p=X1.useMemo(()=>{let G1=new Map;for(let B1 of a){let I1=m8(B1.data.frame);G1.set(I1,[...G1.get(I1)??[],B1])}return[...G1].map(([B1,I1])=>{let C1=Math.min(...I1.map((b1)=>b1.position.x))-EJ,K1=Math.min(...I1.map((b1)=>b1.position.y))-EJ-sR,u1=I1[0].data.frame,N1=Math.max(...I1.map((b1)=>b1.position.x))+A9+EJ-C1,Q0=Math.max(...I1.map((b1)=>b1.position.y))+M9+EJ-K1;return{id:`box:${B1}`,type:"section",position:{x:C1,y:K1},width:N1,height:Q0,zIndex:-1,draggable:!1,selectable:!1,data:{vendor:u1.vendor,label:`${c1(u1.vendor)} · ${u1.section.title}`,width:N1,height:Q0}}})},[a]),q1=()=>m(k.id,(G1)=>({...G1,placed:{...G1.placed??{},...Object.fromEntries(a.map((B1)=>[B1.id,{x:Math.round(B1.position.x),y:Math.round(B1.position.y)}]))}})),s=(G1)=>{x(G1);let B1=g.getNode(G1);if(!B1)return;let I1=Math.min((window.innerWidth-300)/A9,(window.innerHeight-120)/M9,1);g.setCenter(B1.position.x+A9/2-130/I1,B1.position.y+M9/2,{zoom:I1,duration:400})},W1=()=>{let G1=`board-${Date.now().toString(36)}`;h(G1),E((B1)=>[...B1,{id:G1,name:`Board ${B1.length}`,include:[]}])},R1=()=>{let G1=window.prompt("Name this board",k.name)?.trim();if(G1)m(k.id,(B1)=>({...B1,name:G1.slice(0,80)}))},T1=()=>{let G1=k.id;h("everything"),E((B1)=>B1.filter((I1)=>I1.id!==G1))},A1=[...new Map(N.map((G1)=>[m8(G1),G1])).values()],U1=k.include?[...A1.filter((G1)=>!KH(G1).some((B1)=>k.include.includes(B1))).map((G1)=>({key:m8(G1),label:`${c1(G1.vendor)} · ${G1.section.title} (all)`})),...N.filter((G1)=>!e.includes(G1)).map((G1)=>({key:X2(G1),label:G1.title}))]:[],w1=k.include?[]:N.filter((G1)=>!e.includes(G1)),v1=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,M1=Z.state==="ok"&&O.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",children:F.jsxDEV(kR,{nodes:M1?[...p,...a]:[],onNodesChange:(G1)=>t(G1.filter((B1)=>!("id"in B1)||!String(B1.id).startsWith("box:"))),nodeTypes:IV,onNodeDragStop:q1,onNodeClick:(G1,B1)=>{if(!B1.id.startsWith("box:"))x(B1.id)},onPaneClick:()=>x(null),minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!1,zoomOnDoubleClick:!1,colorMode:v1?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(bR,{variant:m4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(x8,{position:"top-left",className:"float layers",children:[F.jsxDEV("div",{className:"float-head",children:[F.jsxDEV("button",{type:"button",className:"back",onClick:Y,"aria-label":`Back to ${Q}`,children:"←"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"float-title",children:[F.jsxDEV("strong",{children:Q.split("/")[1]},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:[Q.split("/")[0],H?" · snapshot":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"board-tabs",role:"tablist","aria-label":"Boards",children:[v.map((G1)=>F.jsxDEV("button",{type:"button",role:"tab","aria-selected":G1.id===k.id,className:G1.id===k.id?"on":void 0,onClick:()=>h(G1.id),onDoubleClick:b&&G1.id===k.id&&G1.include?R1:void 0,children:G1.name},G1.id,!1,void 0,this)),b?F.jsxDEV("button",{type:"button",className:"ghost",onClick:W1,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k.include&&b?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:R1,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:T1,children:"Delete board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("ul",{className:"layer-list","aria-label":"Frames",children:[...new Set(e.map(m8))].map((G1)=>{let B1=e.filter((I1)=>m8(I1)===G1);return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"layer-section",children:[F.jsxDEV($2,{vendor:B1[0].vendor},void 0,!1,void 0,this),c1(B1[0].vendor)," · ",B1[0].section.title]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:B1.map((I1)=>F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:J1===X2(I1)?"on":void 0,onClick:()=>s(X2(I1)),children:[F.jsxDEV("span",{children:I1.title},void 0,!1,void 0,this),I1.changes?F.jsxDEV("span",{className:"layer-changed",title:`${r0(I1.changes,"change")}, not in a changeset`,children:[F.jsxDEV(U0,{name:"square-dot",size:14},void 0,!1,void 0,this),I1.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},X2(I1),!1,void 0,this))},void 0,!1,void 0,this)]},G1,!0,void 0,this)})},void 0,!1,void 0,this),k.include&&!e.length?F.jsxDEV("p",{className:"mode pad-s",children:"An empty board: add frames from Everything, or below."},void 0,!1,void 0,this):null,U1.length&&b?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:(G1)=>{let B1=G1.target.value;if(B1)m(k.id,(I1)=>({...I1,include:[...I1.include??[],B1]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),U1.map((G1)=>F.jsxDEV("option",{value:G1.key,children:G1.label},G1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,w1.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",w1.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:w1.map((G1)=>F.jsxDEV("li",{children:b?F.jsxDEV("button",{type:"button",onClick:()=>m(k.id,(B1)=>({...B1,hidden:(B1.hidden??[]).filter((I1)=>I1!==X2(G1))})),children:[F.jsxDEV("span",{children:G1.title},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"pad-s",children:G1.title},void 0,!1,void 0,this)},X2(G1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Q1?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>h("everything"),children:[F.jsxDEV(U0,{name:"square-dot",size:14},void 0,!1,void 0,this),r0(Q1,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(v2,{load:O,what:"the board"},void 0,!1,void 0,this),P&&O.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",P,"): it shows what was last read."]},void 0,!0,void 0,this):null,Z.state==="pending"?F.jsxDEV("p",{className:"mode",role:"status",children:"Opening…"},void 0,!1,void 0,this):null,Z.state==="error"?F.jsxDEV("p",{role:"alert",children:["The World did not open its screens: ",Z.error," ",F.jsxDEV("button",{type:"button",onClick:X,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(x8,{position:"top-center",className:"float hint mode",children:J1?`Using ${e.find((G1)=>X2(G1)===J1)?.title??J1} · Esc to leave`:"Drag to pan · scroll to zoom · click a frame to use it"},void 0,!1,void 0,this),F.jsxDEV(hR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(mR,{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 AO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),NV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function YU(Q){let U=Q.actions.filter(NV).length,Z=Q.actions.length-U,X=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((T)=>T.status==="deployed"),...X.filter((T)=>T.status==="confirmed")].map((T)=>T.actionId)).size,W=new Set([...H.filter((T)=>T.status==="refused"||T.status==="failed"),...X.filter((T)=>T.status==="failed")].map((T)=>T.actionId)).size,B={performed:Y,failed:W,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...B};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...B};if(W>0)return{label:`${W} refused or failed`,tone:"bad",...B};if(X.some((T)=>T.status==="replayed")&&X.every((T)=>T.status==="replayed"||T.status==="skipped"))return{label:"Pushed",tone:"good",...B};return{label:"Not sent",tone:"plain",...B}}var JH=(Q)=>Q.message??Q.narration?.split(`
250
+ `)[0]?.replace(/ setting .*$/,"")??Q.name;function MO(Q,U=1){let Z=Q.currentHash??Q.contentHash,X=Q.readiness?.approvers??new Set(Q.approvals.filter((Y)=>Y.contentHash===Z).map((Y)=>Y.principal)).size,H=Q.verification&&Q.verification.contentHash===Z?Q.verification:null;if(H&&!H.passed)return{label:"Checks failed",tone:"bad"};if(X>0&&X<U)return{label:`Approved by ${X} of ${U}`,tone:"plain"};if(X>0)return{label:`Approved by ${X}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function tR({name:Q,token:U,signsAs:Z,c:X,canWrite:H,rooted:Y,refused:W,onChanged:B,part:T,required:R}){let M=T==="head",A=T==="review",[O,w]=X1.useState(null),[P,V]=X1.useState(!1),[S,C]=X1.useState(""),[D,N]=X1.useState(""),[v,u]=X1.useState(null),h=f0(U,`/-/${Q}/origin`),k=YU(X),b=MO(X,R),E=AO(X),m=[...new Set(E.map((s)=>s.twin))],e=m.some((s)=>Y.includes(s)),Q1=(s)=>s===(X.currentHash??X.contentHash),J1=X.applied?.receipts??[],x=(X.deployed??[]).filter((s)=>s.status!=="landed"),g=J1.filter((s)=>s.status==="confirmed").length,c=x.filter((s)=>s.status==="deployed"),a=async(s,W1,R1,T1)=>{w(s),u(null);try{let A1=await W0(U,W1,{method:"POST",...R1===void 0?{}:{body:JSON.stringify(R1)}});if(!A1.ok)return W(A1),u({what:s,...Q2(await L3(A1))}),!1;if(T1)c0(T1);return B(),!0}catch(A1){return u({what:s,text:`the World did not answer (${A1 instanceof Error?A1.message:String(A1)})`,acts:[]}),!1}finally{w(null)}},d=()=>{a("Verify",`/-/${Q}/changesets/${X.name}/verify`,void 0,"Verified: the checks ran over it")},t=async(s)=>{if(s.preventDefault(),await a("Approve",`/-/${Q}/changesets/${X.name}/approve`,{...S.trim()?{note:S.trim()}:{},...Z===null&&D.trim()?{as:D.trim()}:{}},"Approved"))V(!1),C("")},y=async()=>{let s=m.filter((W1)=>Y.includes(W1));if(!await u4({title:`Deploy ${X.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",X.actions.length," change",X.actions.length===1?"":"s"," against the real account",s.length===1?"":"s"," behind ",I8(s.map(c1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:X.name}))return;w("Deploy"),u(null);try{let W1=await W0(U,`/-/${Q}/deploy/${X.name}`,{method:"POST",body:JSON.stringify({confirm:X.name})});if(!W1.ok){W(W1),u({what:"Deploy",...Q2(await L3(W1))});return}let R1=await W0(U,`/-/${Q}/changesets/${X.name}`),T1=R1.ok?await R1.json():null;if(!T1){c0("Deploy: sent; reading its receipts failed","info"),B();return}let A1=YU(T1);c0(`Deploy: ${A1.performed} of ${A1.total} change${A1.total===1?"":"s"} performed at the vendor${A1.failed?`; ${A1.failed} refused or failed`:""}`,A1.failed?"error":A1.performed?"ok":"info"),B()}catch(W1){u({what:"Deploy",text:`the World did not answer (${W1 instanceof Error?W1.message:String(W1)})`,acts:[]})}finally{w(null)}},p=!H?"This session reads the World; it changes nothing":k.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,q1=h.state==="ok"&&h.data.origin?FH(h.data.origin):null;return F.jsxDEV("div",{className:"changeset","aria-labelledby":"changeset-title",children:[M?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"changeset-title",children:[X.message??X.name," ",F.jsxDEV("span",{className:`badge cs-${k.tone}`,children:k.label},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:`badge cs-${b.tone}`,children:b.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:X.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(R0,{iso:X.createdAt},void 0,!1,void 0,this)," · ",X.actions.length," change",X.actions.length===1?"":"s"," at ",I8(m.map(c1))||"no vendor"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[F.jsxDEV("button",{type:"button",onClick:d,disabled:Boolean(p)||O!==null,title:p??"Replay it in a throwaway World and run the World's checks",children:O==="Verify"?"Verifying…":"Verify"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:Boolean(p)||O!==null,title:p??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),e?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void y(),disabled:Boolean(p)||O!==null,title:p??"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),p&&k.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[p,"."]},void 0,!0,void 0,this):null,v?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:v.what},void 0,!1,void 0,this),": ",v.text]},void 0,!0,void 0,this),v.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:d,disabled:O!==null,children:"Verify"},void 0,!1,void 0,this):null,v.acts.includes("approve")&&H?F.jsxDEV("button",{type:"button",onClick:()=>V(!0),disabled:O!==null,children:"Approve…"},void 0,!1,void 0,this):null,F.jsxDEV(JO,{name:Q,acts:v.acts},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null,A?F.jsxDEV(F.Fragment,{children:[X.narration?F.jsxDEV("p",{className:"narration",children:X.narration},void 0,!1,void 0,this):null,F.jsxDEV("h4",{children:"Where it went"},void 0,!1,void 0,this),F.jsxDEV("div",{className:"block where",children:[k.performed>0?F.jsxDEV("p",{className:"pad",children:[k.performed>=k.total?"Deployed":"Partly deployed",": ",k.performed," of ",k.total," change",k.total===1?"":"s",k.own?` (and ${k.own} of the World's own, which stay in it)`:""," performed at ",I8([...new Set([...c.map((s)=>s.service),...J1.filter((s)=>s.status==="confirmed").map((s)=>s.service)].map(c1))]),c.length?` (${c.length} from here`:" (",c.length&&g?", ":"",g?`${g} by the remote`:"",")."]},void 0,!0,void 0,this):k.label==="Pushed"?F.jsxDEV("p",{className:"pad",children:["Pushed to the remote",q1?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:q1},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,X.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(R0,{iso:X.applied.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,": every change was replayed there. No vendor has performed any of it."]},void 0,!0,void 0,this):k.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",X.applied?.outcome==="refused"?" A push was refused (below); Push sends it again.":F.jsxDEV(F.Fragment,{children:[" Push sends it to the remote World",e?"; Deploy, to the real vendors behind it":"","."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null,k.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[k.failed," change",k.failed===1?" was":"s were"," refused or failed at the vendor",[...x.filter((s)=>s.reason&&(s.status==="refused"||s.status==="failed")).map((s)=>s.reason),...J1.filter((s)=>s.status==="failed"&&s.error).map((s)=>s.error)].slice(0,3).map((s)=>`: ${Q2(s).text}`).join(""),"."]},void 0,!0,void 0,this):null,X.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:X.applied.refusal.map((s,W1)=>F.jsxDEV("li",{className:"mode",children:Q2(s).text},W1,!1,void 0,this))},void 0,!1,void 0,this):null,x.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the vendor"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:x.map((s)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:s.status==="refused"||s.status==="failed"?"badge cs-bad":s.status==="deployed"?"badge cs-done":"badge",children:s.status},void 0,!1,void 0,this)," ",c1(s.service)," ",s.status==="deployed"?s.url?F.jsxDEV("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",children:s.externalId??s.url},void 0,!1,void 0,this):s.externalId?F.jsxDEV("code",{children:s.externalId},void 0,!1,void 0,this):null:null,s.reason?F.jsxDEV("span",{className:"mode",children:[" · ",Q2(s.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(R0,{iso:s.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${s.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,J1.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"pad where-sub mode",children:"At the remote"},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"receipts pad",children:J1.map((s)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:s.status==="failed"?"badge cs-bad":s.status==="confirmed"?"badge cs-done":"badge",children:s.status},void 0,!1,void 0,this)," ",c1(s.service)," ",F.jsxDEV("span",{className:"mode",children:s.status==="replayed"?"replayed at the remote World":s.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),s.status==="confirmed"&&s.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:s.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,s.error?F.jsxDEV("span",{className:"mode",children:[" · ",Q2(s.error).text]},void 0,!0,void 0,this):null]},`r:${s.actionId}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),!e&&k.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:["No vendor it changes is connected to its real service here, so it does not deploy from this World. ",F.jsxDEV("a",{href:`${a1}/${Q}/~/settings/services`,onClick:(s)=>{s.preventDefault(),A0([...Q.split("/"),"~","settings","services"])},children:"Connect a vendor in Settings › Real services"},void 0,!1,void 0,this)," to deploy."]},void 0,!0,void 0,this):null,F.jsxDEV("h4",{children:"Checks"},void 0,!1,void 0,this),!X.verification?F.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):F.jsxDEV("div",{className:Q1(X.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[X.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(R0,{iso:X.verification.at},void 0,!1,void 0,this),Q1(X.verification.contentHash)?null:F.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),X.verification.results.length?F.jsxDEV("ul",{className:"checks",children:X.verification.results.map((s)=>F.jsxDEV("li",{children:[s.passed?"✓":"✗"," ",F.jsxDEV("code",{children:s.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:c1(s.service)},void 0,!1,void 0,this)]},s.id,!0,void 0,this))},void 0,!1,void 0,this):null,X.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:X.verification.refusals.map((s,W1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:s.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[c1(s.service),": ",s.reason]},void 0,!0,void 0,this)]},W1,!0,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("h4",{children:"Approvals"},void 0,!1,void 0,this),X.approvals.length===0?F.jsxDEV("p",{className:"mode",children:"No one has approved it."},void 0,!1,void 0,this):F.jsxDEV("ul",{className:"approvals",children:X.approvals.map((s,W1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:s.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(R0,{iso:s.at},void 0,!1,void 0,this),Q1(s.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),s.note?F.jsxDEV("div",{className:"mode",children:["“",s.note,"”"]},void 0,!0,void 0,this):null]},W1,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(R5,{open:P,onClose:()=>{if(!O)V(!1)},title:`Approve ${X.name}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>V(!1),disabled:O!==null,children:"Cancel"},void 0,!1,void 0,this),F.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:F.jsxDEV("form",{id:"approve-changeset",onSubmit:(s)=>void t(s),className:"stack",children:[F.jsxDEV("p",{className:"mode",children:["You sign its contents as they stand now",Z?F.jsxDEV(F.Fragment,{children:[", recorded as ",F.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?F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Approving as"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"approveAs",value:D,onChange:(s)=>N(s.target.value),maxLength:80,required:!0,placeholder:"your name or email",autoComplete:"off"},void 0,!1,void 0,this),F.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,F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Note ",F.jsxDEV("span",{className:"mode",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("textarea",{name:"approveNote",value:S,onChange:(s)=>C(s.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)}var TO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function CV({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((X)=>X.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((X)=>{let H=Q.filter((W)=>W.twin===X).map((W)=>W.entry),Y=[...new Set(H.map((W)=>`${W.subject.type}:${W.subject.id}`))];return F.jsxDEV("div",{className:"compare",role:"group","aria-labelledby":`${U}-${X}`,children:[F.jsxDEV("h3",{id:`${U}-${X}`,className:"vendor-cell",children:[F.jsxDEV($2,{vendor:X},void 0,!1,void 0,this),c1(X)," ",F.jsxDEV("span",{className:"mode",children:["· ",r0(Y.length,"record"),", ",r0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((W)=>{let B=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===W),T=B[B.length-1],R=Q4(T),M={};return F.jsxDEV("li",{className:"record",children:[F.jsxDEV("p",{className:"record-head",children:[F.jsxDEV("span",{className:"kind",children:T.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")},void 0,!1,void 0,this)," ",R.label?F.jsxDEV("span",{className:"label",children:["“",R.label,"”"]},void 0,!0,void 0,this):null," ",F.jsxDEV("code",{children:v6(T)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B.map((A)=>{let O=A.fields??{},w=Object.entries(O).filter(([V,S])=>!(V in M)||!TO(M[V],S)),P=M;return M={...M,...O},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:Q4(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(R0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",xJ(A)]},void 0,!0,void 0,this),w.length===0?F.jsxDEV("p",{className:"mode",children:"It set no field to a new value."},void 0,!1,void 0,this):F.jsxDEV("dl",{className:"fields field-diff","aria-label":`Fields ${Q4(A).what} set`,children:w.map(([V,S])=>F.jsxDEV(X1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:V in P?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(N3,{v:P[V]},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"arrow","aria-label":"becomes",children:"→"},void 0,!1,void 0,this),F.jsxDEV("ins",{children:F.jsxDEV(N3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(N3,{v:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},V,!0,void 0,this))},void 0,!1,void 0,this)]},A.id,!0,void 0,this)})]},W,!0,void 0,this)})},void 0,!1,void 0,this)]},X,!0,void 0,this)})},void 0,!1,void 0,this)}function fV({name:Q,token:U,changes:Z,canWrite:X,refused:H,onCut:Y,pinned:W,generated:B,inputRef:T,author:R}){let[M,A]=X1.useState(""),[O,w]=X1.useState(!1),[P,V]=X1.useState([]),S=(D,N,v)=>{V((u)=>[{ok:D,text:N,at:new Date().toISOString(),n:++gJ,...v?.length?{acts:v}:{}},...u].slice(0,4))},C=async(D)=>{D.preventDefault(),w(!0);try{let N=await W0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(M.trim()?{message:M.trim()}:{})});if(!N.ok){H(N);let u=Q2(await L3(N));S(!1,`Cut a changeset: ${u.text}`,u.acts);return}let v=await N.json();S(!0,`Cut ${v.name??"a changeset"}: ${r0(v.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(N){S(!1,`Cut a changeset: the World did not answer (${N instanceof Error?N.message:String(N)})`)}finally{w(!1)}};if(W){let D=!X?"This session reads the World; it changes nothing":Z===0?"Nothing to cut: no change is outside a changeset":null;return F.jsxDEV("div",{className:"ws-cut",children:[F.jsxDEV(V6,{log:P,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(N)=>void C(N),"aria-label":"Cut a changeset",children:[R?F.jsxDEV("a",{className:"ws-author",href:R.account,title:`${R.who}: your account`,onClick:(N)=>{N.preventDefault(),A0(R.account.slice(a1.length+1).split("/"))},children:R.face},void 0,!1,void 0,this):null,F.jsxDEV("input",{ref:T,name:"changesetMessage","aria-label":"Summary",value:M,onChange:(N)=>A(N.target.value),placeholder:Z===0?"Nothing to cut":B?"Summary (optional)":"Summary (required)",required:!B,maxLength:200,disabled:Boolean(D),title:D??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(D)||O,title:D??void 0,children:O?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",r0(Z,"change"),R?F.jsxDEV(F.Fragment,{children:[" on ",F.jsxDEV("b",{children:R.branch},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)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}if(!X||Z===0)return F.jsxDEV(V6,{log:P,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(D)=>void C(D),"aria-label":"Cut a changeset",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:["Cut ",Z===1?"this change":`these ${Z} changes`," into a changeset: what it does and why"]},void 0,!0,void 0,this),F.jsxDEV("input",{name:"changesetMessage",value:M,onChange:(D)=>A(D.target.value),placeholder:"Welcome email for new sign-ups",required:!0,maxLength:200,disabled:Z===0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:O||Z===0,children:O?"Cutting…":"Cut a changeset"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(V6,{log:P,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function SV({name:Q,token:U}){let[Z,X]=X1.useState(0),H=f0(U,`/-/${Q}/keys`,Z),[Y,W]=X1.useState(!1),[B,T]=X1.useState(""),[R,M]=X1.useState("write"),[A,O]=X1.useState(!1),[w,P]=X1.useState(null),[V,S]=X1.useState(null),[C,D]=X1.useState(null),N=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,k=await W0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),b=k?await k.json().catch(()=>({})):{error:`${z0} did not answer`};if(!k?.ok||!b.key){c0(b.error?Q2(b.error).text:"refused","error");return}D(`${window.location.origin}${a1}/${Q}#${new URLSearchParams({token:b.key}).toString()}`),X((E)=>E+1)},v=async(h)=>{h.preventDefault(),O(!0),P(null);let k=await W0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:B.trim(),scope:R})}).catch(()=>null);O(!1);let b=k?await k.json().catch(()=>({})):{error:`${z0} did not answer`};if(!k?.ok||!b.key){P(b.error?Q2(b.error).text:"refused");return}W(!1),S({key:b.key,name:B.trim()}),T(""),X((E)=>E+1)},u=async(h)=>{if(!await u4({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let k=await W0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(k.ok)c0(`Revoked ${h.name}`);else c0(await h5(k),"error");X((b)=>b+1)};return F.jsxDEV("section",{"aria-labelledby":"keys-head",className:"keys",children:[F.jsxDEV("div",{className:"keys-head",children:[F.jsxDEV("div",{children:[F.jsxDEV("h3",{id:"keys-head",children:"Keys"},void 0,!1,void 0,this),F.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),k2()?F.jsxDEV("a",{className:"button primary",href:`${k2()}/${encodeURIComponent(Q.split("/")[0]??"")}`,children:"Make a key on the platform"},void 0,!1,void 0,this):F.jsxDEV("div",{className:"head-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>void N(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{P(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),F.jsxDEV(v2,{load:H,what:"the keys",retry:()=>X((h)=>h+1)},void 0,!1,void 0,this),H.state==="ok"?H.data.keys.length===0?F.jsxDEV("p",{className:"mode",children:"No keys yet. The World's own token opens it too."},void 0,!1,void 0,this):F.jsxDEV("table",{className:"dense","aria-label":"Keys",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Name"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"For"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Access"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Made"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last used"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:F.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),F.jsxDEV("tbody",{children:H.data.keys.map((h)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:h.name},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.person??F.jsxDEV("span",{className:"mode",title:"It acts as itself: a service",children:"no one: a service"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:h.scope==="write"?"Read and write":"Read only"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:F.jsxDEV("span",{title:rF(h.createdAt),children:aF(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?aF(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(pA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void u(h)}]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},h.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV(R5,{open:Y,onClose:()=>{if(!A)W(!1)},title:"Make a key",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>W(!1),disabled:A,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"make-key",disabled:A||!B.trim(),children:A?"Making…":"Make key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"make-key",onSubmit:v,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:B,onChange:(h)=>T(h.target.value),placeholder:"ci, staging app…",maxLength:80,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:["Access ",F.jsxDEV("select",{value:R,onChange:(h)=>M(h.target.value==="read"?"read":"write"),children:[F.jsxDEV("option",{value:"write",children:"Read and write"},void 0,!1,void 0,this),F.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),w?F.jsxDEV("p",{role:"alert",children:w},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(R5,{open:Boolean(V),onClose:()=>S(null),title:`${V?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>S(null),children:"Done"},void 0,!1,void 0,this),children:[F.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),V?F.jsxDEV(tF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(R5,{open:Boolean(C),onClose:()=>D(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>D(null),children:"Done"},void 0,!1,void 0,this),children:[F.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),C?F.jsxDEV(tF,{label:"Link",value:C,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var gJ=0;function V6({log:Q,name:U}){if(Q.length===0)return null;return F.jsxDEV("ul",{className:"narration-log",role:"status","aria-live":"polite",children:Q.map((Z)=>F.jsxDEV("li",{className:Z.ok?"ok":"bad",children:[F.jsxDEV("span",{className:"mode",children:F.jsxDEV(R0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(JO,{name:U,acts:Z.acts},void 0,!1,void 0,this):null]},Z.n,!0,void 0,this))},void 0,!1,void 0,this)}function RO(Q,U,Z,X){let[H,Y]=X1.useState(0),W=H*1e5+Math.floor(Z/2),B=f0(U,`/-/${Q}/origin`,W),T=f0(U,`/-/${Q}/diff`,W),R=f0(U,`/-/${Q}/changesets`,W),[M,A]=X1.useState([]),[O,w]=X1.useState(null),P=(u,h,k)=>{if(A((b)=>[{ok:u,text:h,at:new Date().toISOString(),n:++gJ,...k?.length?{acts:k}:{}},...b].slice(0,8)),!u)c0(h,"error")},V=async(u,h,k)=>{w(u);try{let b=await W0(U,`/-/${Q}/${h}`,k);if(!b.ok){X(b);let E=Q2(await L3(b));return P(!1,`${u}: ${E.text}`,E.acts),null}return await b.json()}catch(b){return P(!1,`${u}: the World did not answer (${b instanceof Error?b.message:String(b)})`),null}finally{w(null),Y((b)=>b+1)}},S=B.state==="ok"&&B.data.origin?FH(B.data.origin):null,C=T.state==="ok"?T.data.changes.length:null,D=R.state==="ok"&&S?GV(R.data.changesets.filter((u)=>!u.pushedBy)).sort((u,h)=>u.createdAt.localeCompare(h.createdAt)):[];return{origin:B,diff:T,sets:R,there:S,changes:C,waiting:D,log:M,busy:O,say:P,send:V,push:async()=>{let u=await V("Push","origin/push",{method:"POST"});if(!u)return;if(u.pushed.length===0){P(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of u.pushed){let k=h.receipts??[],b=k.filter((J1)=>J1.status==="replayed").length,E=k.filter((J1)=>J1.status==="confirmed").length,m=k.filter((J1)=>J1.status==="failed").length,e=h.outcome==="applied"&&m===0;if(h.outcome==="refused"){P(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((J1)=>Q2(J1).text).join("; ")}`:""}.`);continue}let Q1=[`${b} of ${r0(k.length,"change")} replayed there`,...E?[`${E} performed at the vendor by the remote`]:[],...m?[`${m} failed`]:[]];P(e,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${S??"the remote"}: ${Q1.join("; ")}${h.refusal?.length?` (${h.refusal.map((J1)=>Q2(J1).text).join("; ")})`:""}.`)}},pull:async()=>{let u=await V("Pull","origin/pull",{method:"POST"});if(!u)return;let h=Object.entries(u.appended).filter(([,b])=>b>0),k=u.rebased.flatMap((b)=>b.conflicts.map((E)=>`${c1(b.twin)} ${E.subject.type}:${E.subject.id} ${E.field}`));P(k.length===0,`Pulled from ${S??"the remote"}: ${h.length?h.map(([b,E])=>`${r0(E,"entry")} at ${c1(b)}`).join(", "):"nothing new"}${k.length?`; conflicts at ${k.join(", ")}`:""}.`)}}}function jV({name:Q,token:U,canWrite:Z,tick:X,refused:H}){let{origin:Y,there:W,changes:B,log:T,busy:R,say:M,send:A,push:O,pull:w}=RO(Q,U,X,H),[P,V]=X1.useState(""),[S,C]=X1.useState(""),[D,N]=X1.useState(!1),v=async(h)=>{h.preventDefault();let k=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:P.trim(),token:S.trim()})});if(k){let b=Object.values(k.appended??{}).reduce((E,m)=>E+m,0);M(!0,`The remote is ${FH(k.origin)}: its history came in (${r0(b,"entry")}).`),C(""),N(!1)}},u=!Z?"This session reads the World; it changes nothing":null;return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"block remote",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{children:"Origin"},void 0,!1,void 0,this),Z?F.jsxDEV("button",{type:"button",onClick:()=>{V(W??""),N(!D)},"aria-expanded":D,children:W?"Change the remote…":"Name a remote…"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"pad",children:[Y.state==="ok"?W?F.jsxDEV("p",{children:[F.jsxDEV("code",{className:"big",children:W},void 0,!1,void 0,this),Y.data.origin?.fetchedAt?F.jsxDEV("span",{className:"mode",children:[" · last fetched ",F.jsxDEV(R0,{iso:Y.data.origin.fetchedAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("p",{children:"No remote — this World keeps its default data. Name one to push its changesets to a shared World and pull what others pushed there."},void 0,!1,void 0,this):F.jsxDEV(v2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),D?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void v(h),"aria-label":"Name the remote",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The World's address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originUrl",value:P,onChange:(h)=>V(h.target.value),placeholder:"https://worlds.example.com/acme/team",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"A key or token that opens it"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"originToken",type:"password",value:S,onChange:(h)=>C(h.target.value),required:!0,autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("p",{className:"mode",children:"Naming it brings its history in. Your pushes are recorded there as whoever this key was made for, or as the key itself."},void 0,!1,void 0,this),F.jsxDEV("div",{className:"row-actions",children:[F.jsxDEV("button",{type:"submit",className:"primary",disabled:R!==null,children:R==="Name the remote"?"Bringing its history in…":"Save the remote"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>N(!1),children:"Cancel"},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)]},void 0,!0,void 0,this),F.jsxDEV(V6,{log:T,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vV({name:Q,token:U,canWrite:Z,refused:X}){let[H,Y]=X1.useState(0),W=f0(U,`/-/${Q}/twins`,H),B=f0(U,`/-/${Q}/links`,H),T=f0(U,`/-/${Q}/requests?hours=24`,H),[R,M]=X1.useState({}),[A,O]=X1.useState(null),[w,P]=X1.useState(""),[V,S]=X1.useState(!1),[C,D]=X1.useState([]),N=(E,m,e)=>{if(D((Q1)=>[{ok:E,text:m,at:new Date().toISOString(),n:++gJ,...e?.length?{acts:e}:{}},...Q1].slice(0,6)),!E)c0(m,"error")},v=B.state==="ok"?Object.keys(B.data.links).sort():[];X1.useEffect(()=>{let E=!0;return Promise.all(v.map(async(m)=>{let e=await W0(U,`/-/${Q}/twins/${m}/credential`).catch(()=>null),Q1=e?.ok?await e.json():null;return[m,Q1?.credential??null]})).then((m)=>{if(E)M(Object.fromEntries(m))}),()=>{E=!1}},[Q,U,v.join(","),H]);let u=async(E)=>{if(E.preventDefault(),!A||!w)return;S(!0);let m=await W0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:w,headers:{"content-type":"text/plain"}}).catch(()=>null);if(S(!1),!m){N(!1,`Seal ${A.vendor}: ${z0} did not answer`);return}if(!m.ok){X(m);let Q1=Q2(await L3(m));N(!1,`Seal ${c1(A.vendor)}: ${Q1.text}`,Q1.acts);return}let e=await m.json().catch(()=>({}));N(!0,`Sealed a credential for ${c1(A.vendor)}${e.fingerprint?` (${e.fingerprint})`:""}: it opens for ${e.boundTo??A.to} only, and is never shown again.`),P(""),O(null),Y((Q1)=>Q1+1)},h=async(E)=>{if(!await u4({title:`Remove the link ${E}?`,body:`Requests to ${j6}/${Q}/${E}/… stop being forwarded to ${B.state==="ok"?B.data.links[E]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let m=await W0(U,`/-/${Q}/links/${E}`,{method:"DELETE"}).catch(()=>null);if(!m?.ok){if(m)X(m);N(!1,`Remove ${E}: ${m?await h5(m):"the World did not answer"}`);return}N(!0,`Removed the link ${E}.`),Y((e)=>e+1)},k=(E)=>E?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"badge rooted",children:"sealed"},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[E.fingerprint?F.jsxDEV("code",{children:E.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(R0,{iso:E.placedAt},void 0,!1,void 0,this),E.sealedBy?` · by ${E.sealedBy==="vault"?"the vault":"the host's key"}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV("span",{className:"mode",children:"none"},void 0,!1,void 0,this),b=W.state==="ok"?W.data.twins:[];return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"lede",children:"A real vendor's credential lives in one place, sealed: beside this World, bound to where it goes. It is never readable back; this page says only that one is sealed, when, by what, and for where."},void 0,!1,void 0,this),F.jsxDEV(V6,{log:C,name:Q},void 0,!1,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"creds-head",children:[F.jsxDEV("div",{className:"block-head",children:F.jsxDEV("h3",{id:"creds-head",children:"Vendors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(v2,{load:W,what:"the vendors"},void 0,!1,void 0,this),W.state==="ok"?F.jsxDEV("table",{className:"dense","aria-label":"Credentials by vendor",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Bound to"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:b.map((E)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:E.twin},void 0,!1,void 0,this),c1(E.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:k(E.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E.credential?.boundTo?F.jsxDEV("code",{children:E.credential.boundTo},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E.root?.url?F.jsxDEV("code",{children:E.root.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"none: a stand-in"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z?F.jsxDEV("td",{className:"num",children:F.jsxDEV("button",{type:"button",disabled:!E.root?.url,title:E.root?.url?`Seal ${c1(E.twin)}'s real credential for ${E.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{P(""),O({vendor:E.twin,to:E.root.url})},children:E.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},E.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&b.every((E)=>!E.root?.url)?F.jsxDEV("p",{className:"mode pad",children:"No vendor here has a real service behind it, so none holds a credential. Connect one in Settings › Real services; its credential is sealed here."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("section",{className:"block","aria-labelledby":"links-head",children:[F.jsxDEV("div",{className:"block-head",children:[F.jsxDEV("h3",{id:"links-head",children:"Links"},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"a vendor with no twin, forwarded with its sealed credential"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:B,what:"the links"},void 0,!1,void 0,this),T.state==="ok"&&(T.data.journalFailures??0)>0?F.jsxDEV("p",{className:"mode pad",role:"alert",children:[T.data.journalFailures," request ",T.data.journalFailures===1?"line was":"lines were"," not kept by this World's server since it started (its links, and the twins it runs in its own process): those requests are missing from what this page counts."]},void 0,!0,void 0,this):null,B.state==="ok"&&v.length===0?F.jsxDEV("p",{className:"mode pad",children:["No links. A link forwards requests for a vendor with no twin here, at ",F.jsxDEV("code",{children:[j6,"/",Q,"/<link>/…"]},void 0,!0,void 0,this),", to that vendor's real API with the credential sealed for it."]},void 0,!0,void 0,this):null,v.length?F.jsxDEV("table",{className:"dense","aria-label":"Links",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Link"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Origin"},void 0,!1,void 0,this),F.jsxDEV("th",{className:"num",children:"Requests, 24h"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Credential"},void 0,!1,void 0,this),Z?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:v.map((E)=>{let m=B.state==="ok"?B.data.links[E].origin:"",e=T.state==="ok"?T.data.twins.find((Q1)=>Q1.twin===E):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:E},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:m},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:e?F.jsxDEV("span",{title:Object.entries(e.byStatus).map(([Q1,J1])=>`${Q1}: ${J1}`).join(" · "),children:e.requests},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:[k(R[E]??null),R[E]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:R[E].boundTo},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Z?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{P(""),O({vendor:E,to:m})},children:R[E]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(E),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},E,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(R5,{open:Boolean(A),onClose:()=>{if(!V)O(null)},title:`Seal ${A?c1(A.vendor):""}'s credential`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>O(null),disabled:V,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"seal-credential",className:"primary",disabled:V||!w,children:V?"Sealing…":"Seal it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"seal-credential",className:"stack",onSubmit:(E)=>void u(E),children:[F.jsxDEV("p",{className:"mode",children:["It is sealed for ",F.jsxDEV("code",{children:A?.to},void 0,!1,void 0,this)," and opens there only. It is never shown again, here or anywhere."]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real key"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"credential",type:"password",value:w,onChange:(E)=>P(E.target.value),autoComplete:"off",required:!0,autoFocus:!0},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 VV({name:Q,token:U,admin:Z,canWrite:X,refused:H,onRemoved:Y,only:W}){let B=(d)=>!W||W===d,[T,R]=X1.useState(0),M=f0(U,`/-/${Q}/twins`,T),A=f0(U,`/-/${Q}/checks`,T),[O,w]=X1.useState(0),P=f0(U,`/-/${Q}/clock`,O),[V,S]=X1.useState([]),[C,D]=X1.useState(null),[N,v]=X1.useState(null),[u,h]=X1.useState(""),[k,b]=X1.useState("gated"),[E,m]=X1.useState(!1),e=(d,t,y)=>{if(S((p)=>[{ok:d,text:t,at:new Date().toISOString(),n:++gJ,...y?.length?{acts:y}:{}},...p].slice(0,6)),!d)c0(t,"error")},Q1=async(d,t,y)=>{let p=await W0(U,t,y).catch(()=>null);if(!p)return e(!1,`${d}: the World did not answer`),!1;if(!p.ok){H(p);let q1=Q2(await L3(p));return e(!1,`${d}: ${q1.text}`,q1.acts),!1}return e(!0,`${d}: done.`),R((q1)=>q1+1),!0},J1=async(d)=>{if(d.preventDefault(),!N)return;m(!0);let t=N.root??{},y=await Q1(u.trim()?`Connect ${c1(N.twin)} to ${u.trim()}`:`Disconnect ${c1(N.twin)}`,`/-/${Q}/twins/${N.twin}/root`,{method:"PUT",body:JSON.stringify(u.trim()?{...t,url:u.trim(),deploy:k}:null)});if(m(!1),y)v(null)},x=async()=>{if(!await u4({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 d=await W0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(d.ok)D(await d.json()),e(!0,"Rotated: the new tokens are shown once, below.");else e(!1,`Rotate: ${await h5(d)}`)},g=async()=>{if(!await u4({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 d=await W0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((t)=>t);if(d instanceof Error){e(!1,`Remove: the host did not answer (${d.message})`);return}if(d.ok)Y();else e(!1,`Remove: ${await h5(d)}`)},c=M.state==="ok"?M.data.twins:[],a={gated:"gated: a person deploys an approved changeset",auto:"auto: a push deploys at once",hold:"hold: nothing deploys"};return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(V6,{log:V,name:Q},void 0,!1,void 0,this),B("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),X?F.jsxDEV(SV,{name:Q,token:U},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode",children:"This session reads the World: its keys are managed by whoever holds its token."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,B("services")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Real services"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:[c.some((d)=>d.root?.url)?null:"Every vendor here is a stand-in. ","Connect a vendor to its real service to read the real state into this World; its real credential is sealed in the Vault, and an approved changeset deploys there by its policy."]},void 0,!0,void 0,this),F.jsxDEV(v2,{load:M,what:"the vendors"},void 0,!1,void 0,this),M.state==="ok"?F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Real services",children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"Vendor"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Real service"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("th",{children:"Last read from it"},void 0,!1,void 0,this),X?F.jsxDEV("th",{className:"num",children:F.jsxDEV("span",{className:"sr",children:"Actions"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("tbody",{children:c.map((d)=>{let t=d.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV($2,{vendor:d.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${a1}/${Q}/${d.twin}`,title:`Its log and stored state · ${d.position??0} entries`,onClick:(y)=>{y.preventDefault(),A0([...Q.split("/"),d.twin])},children:c1(d.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:t?.url?F.jsxDEV("code",{children:t.url},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:"not connected"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:t?.url?a[t.deploy??""]??t.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:d.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",d.refresh.failed.count??1,": ",d.refresh.failed.reason??""]},void 0,!0,void 0,this):t?.url?rF(d.refresh?.observedAt??d.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(t?.url??""),b(t?.deploy==="auto"||t?.deploy==="hold"?t.deploy:"gated"),v(d)},children:t?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!t?.url,title:t?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void u4({title:`Read ${c1(d.twin)} now?`,body:`The real ${c1(d.twin)}'s current state is read into this World. Nothing is written to ${c1(d.twin)}.`,action:"Read from it"}).then((y)=>{if(y)Q1(`Read from ${c1(d.twin)}`,`/-/${Q}/twins/${d.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},d.twin,!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):null,B("clock")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Clock"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"The instant every vendor here stamps from. Set it and move it forward to see what happens later: renewals, expiries, scheduled sends."},void 0,!1,void 0,this),F.jsxDEV(FV,{name:Q,token:U,clock:P,canWrite:X,onChanged:()=>w((d)=>d+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,B("checks")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Checks"},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:"JavaScript the World runs over every change before it is performed (a changeset's Verify runs them too)."},void 0,!1,void 0,this),F.jsxDEV(v2,{load:A,what:"the checks"},void 0,!1,void 0,this),A.state==="ok"?A.data.checks.length===0?F.jsxDEV("p",{className:"mode",children:"No checks: every change is performed as it comes."},void 0,!1,void 0,this):F.jsxDEV("div",{className:"block",children:F.jsxDEV("table",{className:"dense","aria-label":"Checks",children:F.jsxDEV("tbody",{children:A.data.checks.map((d)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:d},void 0,!1,void 0,this)},void 0,!1,void 0,this)},d,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this):null,Z&&!W?F.jsxDEV("div",{className:"danger",role:"region","aria-label":"Danger zone",children:[F.jsxDEV("h3",{children:"Danger zone"},void 0,!1,void 0,this),C?F.jsxDEV("p",{role:"status",children:["token ",F.jsxDEV("code",{children:C.token},void 0,!1,void 0,this)," · read token ",F.jsxDEV("code",{children:C.readToken},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void x(),children:"Rotate tokens"},void 0,!1,void 0,this)," ",F.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),F.jsxDEV("p",{children:[F.jsxDEV("button",{type:"button",onClick:()=>void g(),children:"Remove world"},void 0,!1,void 0,this)," ",F.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,F.jsxDEV(R5,{open:Boolean(N),onClose:()=>{if(!E)v(null)},title:`Connect ${N?c1(N.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(null),disabled:E,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:E,children:E?"Saving…":u.trim()?"Connect":"Disconnect"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"connect-root",className:"stack",onSubmit:(d)=>void J1(d),children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"The real service's API address"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"rootUrl",value:u,onChange:(d)=>h(d.target.value),placeholder:"https://api.openai.com",autoFocus:!0},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:"Empty disconnects it."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Deploy policy"},void 0,!1,void 0,this),F.jsxDEV("select",{name:"rootDeploy",value:k,onChange:(d)=>b(d.target.value==="auto"?"auto":d.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((d)=>F.jsxDEV("option",{value:d,children:a[d]},d,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function OO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(dv,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this),F.jsxDEV(mA,{},void 0,!1,void 0,this),F.jsxDEV(xA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wO=E0(O8(),1);Wq();IO.createRoot(l8).render(wO.jsxDEV(OO,{},void 0,!1,void 0,this));